Sarah Chin | b071f8a | 2019-11-07 10:43:16 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 26 | namespace android { |
| 27 | namespace hardware { |
| 28 | namespace radio { |
| 29 | namespace config { |
| 30 | namespace V1_3 { |
| 31 | namespace implementation { |
| 32 | |
| 33 | using namespace ::android::hardware::radio::config; |
| 34 | |
| 35 | using ::android::sp; |
| 36 | using ::android::hardware::hidl_array; |
| 37 | using ::android::hardware::hidl_memory; |
| 38 | using ::android::hardware::hidl_string; |
| 39 | using ::android::hardware::hidl_vec; |
| 40 | using ::android::hardware::Return; |
| 41 | using ::android::hardware::Void; |
| 42 | |
| 43 | struct 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); |
Sarah Chin | e1d1b0b | 2019-11-20 11:25:02 -0800 | [diff] [blame^] | 65 | |
| 66 | // Methods from ::android::hardware::radio::config::V1_3::IRadioConfig follow. |
| 67 | Return<void> getPhoneCapability_1_3(int32_t serial); |
Sarah Chin | b071f8a | 2019-11-07 10:43:16 -0800 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | } // namespace implementation |
| 71 | } // namespace V1_3 |
| 72 | } // namespace config |
| 73 | } // namespace radio |
| 74 | } // namespace hardware |
| 75 | } // namespace android |
| 76 | |
| 77 | #endif // ANDROID_HARDWARE_RADIO_CONFIG_V1_3_RADIOCONFIG_H |