blob: 53bfab40a9c85cc6c4f5e2450b3d841689ac87e7 [file] [log] [blame]
Sarah Chinfc5603b2021-12-21 11:34:00 -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_modem_utils.h"
18
Sarah Chinc83bce42021-12-29 00:35:12 -080019RadioModemResponse::RadioModemResponse(RadioServiceTest& parent) : parent_modem(parent) {}
Sarah Chinfc5603b2021-12-21 11:34:00 -080020
21ndk::ScopedAStatus RadioModemResponse::acknowledgeRequest(int32_t /*serial*/) {
22 return ndk::ScopedAStatus::ok();
23}
24
25ndk::ScopedAStatus RadioModemResponse::enableModemResponse(const RadioResponseInfo& /*info*/) {
26 return ndk::ScopedAStatus::ok();
27}
28
29ndk::ScopedAStatus RadioModemResponse::getBasebandVersionResponse(const RadioResponseInfo& /*info*/,
30 const std::string& /*version*/) {
31 return ndk::ScopedAStatus::ok();
32}
33
34ndk::ScopedAStatus RadioModemResponse::getDeviceIdentityResponse(const RadioResponseInfo& /*info*/,
35 const std::string& /*imei*/,
36 const std::string& /*imeisv*/,
37 const std::string& /*esn*/,
38 const std::string& /*meid*/) {
39 return ndk::ScopedAStatus::ok();
40}
41
42ndk::ScopedAStatus RadioModemResponse::getHardwareConfigResponse(
43 const RadioResponseInfo& /*info*/, const std::vector<HardwareConfig>& /*config*/) {
44 return ndk::ScopedAStatus::ok();
45}
46
47ndk::ScopedAStatus RadioModemResponse::getModemActivityInfoResponse(
48 const RadioResponseInfo& /*info*/, const ActivityStatsInfo& /*activityInfo*/) {
49 return ndk::ScopedAStatus::ok();
50}
51
52ndk::ScopedAStatus RadioModemResponse::getModemStackStatusResponse(
53 const RadioResponseInfo& /*info*/, const bool /*enabled*/) {
54 return ndk::ScopedAStatus::ok();
55}
56
57ndk::ScopedAStatus RadioModemResponse::getRadioCapabilityResponse(const RadioResponseInfo& /*info*/,
58 const RadioCapability& /*rc*/) {
59 return ndk::ScopedAStatus::ok();
60}
61
62ndk::ScopedAStatus RadioModemResponse::nvReadItemResponse(const RadioResponseInfo& /*info*/,
63 const std::string& /*result*/) {
64 return ndk::ScopedAStatus::ok();
65}
66
67ndk::ScopedAStatus RadioModemResponse::nvResetConfigResponse(const RadioResponseInfo& /*info*/) {
68 return ndk::ScopedAStatus::ok();
69}
70
71ndk::ScopedAStatus RadioModemResponse::nvWriteCdmaPrlResponse(const RadioResponseInfo& /*info*/) {
72 return ndk::ScopedAStatus::ok();
73}
74
75ndk::ScopedAStatus RadioModemResponse::nvWriteItemResponse(const RadioResponseInfo& /*info*/) {
76 return ndk::ScopedAStatus::ok();
77}
78
79ndk::ScopedAStatus RadioModemResponse::requestShutdownResponse(const RadioResponseInfo& /*info*/) {
80 return ndk::ScopedAStatus::ok();
81}
82
83ndk::ScopedAStatus RadioModemResponse::sendDeviceStateResponse(const RadioResponseInfo& /*info*/) {
84 return ndk::ScopedAStatus::ok();
85}
86
87ndk::ScopedAStatus RadioModemResponse::setRadioCapabilityResponse(const RadioResponseInfo& /*info*/,
88 const RadioCapability& /*rc*/) {
89 return ndk::ScopedAStatus::ok();
90}
91
92ndk::ScopedAStatus RadioModemResponse::setRadioPowerResponse(const RadioResponseInfo& info) {
93 rspInfo = info;
94 parent_modem.notify(info.serial);
95 return ndk::ScopedAStatus::ok();
96}