blob: 1a152fb71212b14ebe46beec1fa2d49a3e0b0868 [file] [log] [blame]
Sarah Chinc83bce42021-12-29 00:35:12 -08001/*
2 * Copyright (C) 2021 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_utils.h"
18
19RadioConfigResponse::RadioConfigResponse(RadioServiceTest& parent) : parent_config(parent) {}
20
21ndk::ScopedAStatus RadioConfigResponse::getSimSlotsStatusResponse(
22 const RadioResponseInfo& /* info */, const std::vector<SimSlotStatus>& /* slotStatus */) {
23 return ndk::ScopedAStatus::ok();
24}
25
26ndk::ScopedAStatus RadioConfigResponse::setSimSlotsMappingResponse(
27 const RadioResponseInfo& /* info */) {
28 return ndk::ScopedAStatus::ok();
29}
30
31ndk::ScopedAStatus RadioConfigResponse::getPhoneCapabilityResponse(
32 const RadioResponseInfo& info, const PhoneCapability& phoneCapability) {
33 rspInfo = info;
34 phoneCap = phoneCapability;
35 parent_config.notify(info.serial);
36 return ndk::ScopedAStatus::ok();
37}
38
39ndk::ScopedAStatus RadioConfigResponse::setPreferredDataModemResponse(
40 const RadioResponseInfo& /* info */) {
41 return ndk::ScopedAStatus::ok();
42}
43
44ndk::ScopedAStatus RadioConfigResponse::getNumOfLiveModemsResponse(
45 const RadioResponseInfo& /* info */, const int8_t /* numOfLiveModems */) {
46 return ndk::ScopedAStatus::ok();
47}
48
49ndk::ScopedAStatus RadioConfigResponse::setNumOfLiveModemsResponse(
50 const RadioResponseInfo& /* info */) {
51 return ndk::ScopedAStatus::ok();
52}
53
54ndk::ScopedAStatus RadioConfigResponse::getHalDeviceCapabilitiesResponse(
55 const RadioResponseInfo& info, bool modemReducedFeatures) {
56 modemReducedFeatureSet1 = modemReducedFeatures;
57 parent_config.notify(info.serial);
58 return ndk::ScopedAStatus::ok();
59}