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