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_config_hidl_hal_utils.h>
18
19 using ::android::hardware::radio::V1_0::RadioResponseInfo;
20
21 // SimSlotStatus slotStatus;
22
RadioConfigResponse(RadioConfigHidlTest & parent)23 RadioConfigResponse::RadioConfigResponse(RadioConfigHidlTest& parent) : parent(parent) {}
24
getSimSlotsStatusResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &,const::android::hardware::hidl_vec<::android::hardware::radio::config::V1_0::SimSlotStatus> &)25 Return<void> RadioConfigResponse::getSimSlotsStatusResponse(
26 const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */,
27 const ::android::hardware::hidl_vec<
28 ::android::hardware::radio::config::V1_0::SimSlotStatus>& /* slotStatus */) {
29 return Void();
30 }
31
getSimSlotsStatusResponse_1_2(const::android::hardware::radio::V1_0::RadioResponseInfo &,const::android::hardware::hidl_vec<SimSlotStatus> &)32 Return<void> RadioConfigResponse::getSimSlotsStatusResponse_1_2(
33 const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */,
34 const ::android::hardware::hidl_vec<SimSlotStatus>& /* slotStatus */) {
35 return Void();
36 }
37
setSimSlotsMappingResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &)38 Return<void> RadioConfigResponse::setSimSlotsMappingResponse(
39 const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */) {
40 return Void();
41 }
42
getPhoneCapabilityResponse(const::android::hardware::radio::V1_0::RadioResponseInfo & info,const PhoneCapability & phoneCapability)43 Return<void> RadioConfigResponse::getPhoneCapabilityResponse(
44 const ::android::hardware::radio::V1_0::RadioResponseInfo& info,
45 const PhoneCapability& phoneCapability) {
46 rspInfo = info;
47 phoneCap = phoneCapability;
48 parent.notify(info.serial);
49 return Void();
50 }
51
setPreferredDataModemResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &)52 Return<void> RadioConfigResponse::setPreferredDataModemResponse(
53 const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */) {
54 return Void();
55 }
56
getModemsConfigResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &,const ModemsConfig &)57 Return<void> RadioConfigResponse::getModemsConfigResponse(
58 const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */,
59 const ModemsConfig& /* mConfig */) {
60 return Void();
61 }
62
setModemsConfigResponse(const::android::hardware::radio::V1_0::RadioResponseInfo &)63 Return<void> RadioConfigResponse::setModemsConfigResponse(
64 const ::android::hardware::radio::V1_0::RadioResponseInfo& /* info */) {
65 return Void();
66 }
67