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