blob: 00585e6df2134ef0111f1166a0497e0f885839a2 [file] [log] [blame]
Sarah Chinb071f8a2019-11-07 10:43:16 -08001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.1
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_HARDWARE_RADIO_CONFIG_V1_3_RADIOCONFIG_H
18#define ANDROID_HARDWARE_RADIO_CONFIG_V1_3_RADIOCONFIG_H
19
20#include <android/hardware/radio/config/1.3/IRadioConfig.h>
21#include <android/hardware/radio/config/1.3/IRadioConfigIndication.h>
22#include <android/hardware/radio/config/1.3/IRadioConfigResponse.h>
23#include <hidl/MQDescriptor.h>
24#include <hidl/Status.h>
25
26namespace android {
27namespace hardware {
28namespace radio {
29namespace config {
30namespace V1_3 {
31namespace implementation {
32
33using namespace ::android::hardware::radio::config;
34
35using ::android::sp;
36using ::android::hardware::hidl_array;
37using ::android::hardware::hidl_memory;
38using ::android::hardware::hidl_string;
39using ::android::hardware::hidl_vec;
40using ::android::hardware::Return;
41using ::android::hardware::Void;
42
43struct RadioConfig : public V1_3::IRadioConfig {
44 sp<V1_0::IRadioConfigResponse> mRadioConfigResponse;
45 sp<V1_0::IRadioConfigIndication> mRadioConfigIndication;
46 sp<V1_1::IRadioConfigResponse> mRadioConfigResponseV1_1;
47 sp<V1_1::IRadioConfigIndication> mRadioConfigIndicationV1_1;
48 sp<V1_2::IRadioConfigResponse> mRadioConfigResponseV1_2;
49 sp<V1_2::IRadioConfigIndication> mRadioConfigIndicationV1_2;
50 sp<V1_3::IRadioConfigResponse> mRadioConfigResponseV1_3;
51 sp<V1_3::IRadioConfigIndication> mRadioConfigIndicationV1_3;
52
53 // Methods from ::android::hardware::radio::config::V1_0::IRadioConfig follow.
54 Return<void> setResponseFunctions(
55 const sp<V1_0::IRadioConfigResponse>& radioConfigResponse,
56 const sp<V1_0::IRadioConfigIndication>& radioConfigIndication);
57 Return<void> getSimSlotsStatus(int32_t serial);
58 Return<void> setSimSlotsMapping(int32_t serial, const hidl_vec<uint32_t>& slotMap);
59
60 // Methods from ::android::hardware::radio::config::V1_1::IRadioConfig follow.
61 Return<void> getPhoneCapability(int32_t serial);
62 Return<void> setPreferredDataModem(int32_t serial, uint8_t modemId);
63 Return<void> setModemsConfig(int32_t serial, const V1_1::ModemsConfig& modemsConfig);
64 Return<void> getModemsConfig(int32_t serial);
65};
66
67} // namespace implementation
68} // namespace V1_3
69} // namespace config
70} // namespace radio
71} // namespace hardware
72} // namespace android
73
74#endif // ANDROID_HARDWARE_RADIO_CONFIG_V1_3_RADIOCONFIG_H