1 /*
2  * Copyright (C) 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (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.0
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 #include <radio_config_hidl_hal_utils.h>
18 
19 // SimSlotStatus slotStatus;
20 
RadioConfigResponse(RadioResponseWaiter & parent)21 RadioConfigResponse::RadioConfigResponse(RadioResponseWaiter& parent) : parent(parent) {}
22 
getSimSlotsStatusResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &,const::android::hardware::hidl_vec<::android::hardware::radio::config::V1_0::SimSlotStatus> &)23 Return<void> RadioConfigResponse::getSimSlotsStatusResponse(
24         const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */,
25         const ::android::hardware::hidl_vec<
26                 ::android::hardware::radio::config::V1_0::SimSlotStatus>& /* slotStatus */) {
27     return Void();
28 }
29 
getSimSlotsStatusResponse_1_2(const::android::hardware::radio::V1_0::RadioResponseInfo &,const::android::hardware::hidl_vec<SimSlotStatus> &)30 Return<void> RadioConfigResponse::getSimSlotsStatusResponse_1_2(
31         const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */,
32         const ::android::hardware::hidl_vec<SimSlotStatus>& /* slotStatus */) {
33     return Void();
34 }
35 
setSimSlotsMappingResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &)36 Return<void> RadioConfigResponse::setSimSlotsMappingResponse(
37         const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */) {
38     return Void();
39 }
40 
getPhoneCapabilityResponse(const::android::hardware::radio::V1_0::RadioResponseInfo & info,const PhoneCapability & phoneCapability)41 Return<void> RadioConfigResponse::getPhoneCapabilityResponse(
42         const ::android::hardware::radio::V1_0::RadioResponseInfo& info,
43         const PhoneCapability& phoneCapability) {
44     rspInfo = info;
45     phoneCap = phoneCapability;
46     parent.notify(info.serial);
47     return Void();
48 }
49 
setPreferredDataModemResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &)50 Return<void> RadioConfigResponse::setPreferredDataModemResponse(
51         const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */) {
52     return Void();
53 }
54 
getModemsConfigResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &,const ModemsConfig &)55 Return<void> RadioConfigResponse::getModemsConfigResponse(
56         const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */,
57         const ModemsConfig& /* mConfig */) {
58     return Void();
59 }
60 
setModemsConfigResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &)61 Return<void> RadioConfigResponse::setModemsConfigResponse(
62         const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */) {
63     return Void();
64 }
65 
getHalDeviceCapabilitiesResponse(const::android::hardware::radio::V1_6::RadioResponseInfo & info,bool modemReducedFeatures)66 Return<void> RadioConfigResponse::getHalDeviceCapabilitiesResponse(
67         const ::android::hardware::radio::V1_6::RadioResponseInfo& info,
68         bool modemReducedFeatures) {
69     modemReducedFeatureSet1 = modemReducedFeatures;
70     parent.notify(info.serial);
71     return Void();
72 }
73