1 /*
2  * Copyright (C) 2018 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(RadioConfigHidlTest & parent)21 RadioConfigResponse::RadioConfigResponse(RadioConfigHidlTest& parent) : parent(parent) {}
22 
getSimSlotsStatusResponse(const RadioResponseInfo &,const::android::hardware::hidl_vec<SimSlotStatus> &)23 Return<void> RadioConfigResponse::getSimSlotsStatusResponse(
24     const RadioResponseInfo& /* info */,
25     const ::android::hardware::hidl_vec<SimSlotStatus>& /* slotStatus */) {
26     return Void();
27 }
28 
setSimSlotsMappingResponse(const RadioResponseInfo &)29 Return<void> RadioConfigResponse::setSimSlotsMappingResponse(const RadioResponseInfo& /* info */) {
30     return Void();
31 }
32 
getPhoneCapabilityResponse(const RadioResponseInfo & info,const PhoneCapability & phoneCapability)33 Return<void> RadioConfigResponse::getPhoneCapabilityResponse(
34         const RadioResponseInfo& info, const PhoneCapability& phoneCapability) {
35     rspInfo = info;
36     phoneCap = phoneCapability;
37     parent.notify(info.serial);
38     return Void();
39 }
40 
setPreferredDataModemResponse(const RadioResponseInfo & info)41 Return<void> RadioConfigResponse::setPreferredDataModemResponse(const RadioResponseInfo& info) {
42     rspInfo = info;
43     parent.notify(info.serial);
44     return Void();
45 }
46 
getModemsConfigResponse(const RadioResponseInfo & info,const ModemsConfig &)47 Return<void> RadioConfigResponse::getModemsConfigResponse(const RadioResponseInfo& info,
48                                                           const ModemsConfig& /* mConfig */) {
49     rspInfo = info;
50     parent.notify(info.serial);
51     return Void();
52 }
53 
setModemsConfigResponse(const RadioResponseInfo & info)54 Return<void> RadioConfigResponse::setModemsConfigResponse(const RadioResponseInfo& info) {
55     rspInfo = info;
56     parent.notify(info.serial);
57     return Void();
58 }
59