Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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.h> |
| 18 | |
Sanket Padawe | 1512edb | 2017-02-23 12:31:09 -0800 | [diff] [blame] | 19 | CardStatus cardStatus; |
| 20 | |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 21 | RadioResponse::RadioResponse(RadioHidlTest& parent) : parent(parent) { |
| 22 | } |
| 23 | |
| 24 | Return<void> RadioResponse::getIccCardStatusResponse( |
| 25 | const RadioResponseInfo& info, const CardStatus& card_status) { |
| 26 | rspInfo = info; |
| 27 | cardStatus = card_status; |
| 28 | parent.notify(); |
| 29 | return Void(); |
| 30 | } |
| 31 | |
| 32 | Return<void> RadioResponse::supplyIccPinForAppResponse( |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 33 | const RadioResponseInfo& info, int32_t /*remainingRetries*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 34 | rspInfo = info; |
| 35 | parent.notify(); |
| 36 | return Void(); |
| 37 | } |
| 38 | |
| 39 | Return<void> RadioResponse::supplyIccPukForAppResponse( |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 40 | const RadioResponseInfo& info, int32_t /*remainingRetries*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 41 | rspInfo = info; |
| 42 | parent.notify(); |
| 43 | return Void(); |
| 44 | } |
| 45 | |
| 46 | Return<void> RadioResponse::supplyIccPin2ForAppResponse( |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 47 | const RadioResponseInfo& info, int32_t /*remainingRetries*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 48 | rspInfo = info; |
| 49 | parent.notify(); |
| 50 | return Void(); |
| 51 | } |
| 52 | |
| 53 | Return<void> RadioResponse::supplyIccPuk2ForAppResponse( |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 54 | const RadioResponseInfo& info, int32_t /*remainingRetries*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 55 | rspInfo = info; |
| 56 | parent.notify(); |
| 57 | return Void(); |
| 58 | } |
| 59 | |
| 60 | Return<void> RadioResponse::changeIccPinForAppResponse( |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 61 | const RadioResponseInfo& info, int32_t /*remainingRetries*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 62 | rspInfo = info; |
| 63 | parent.notify(); |
| 64 | return Void(); |
| 65 | } |
| 66 | |
| 67 | Return<void> RadioResponse::changeIccPin2ForAppResponse( |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 68 | const RadioResponseInfo& info, int32_t /*remainingRetries*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 69 | rspInfo = info; |
| 70 | parent.notify(); |
| 71 | return Void(); |
| 72 | } |
| 73 | |
| 74 | Return<void> RadioResponse::supplyNetworkDepersonalizationResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 75 | const RadioResponseInfo& info, int32_t /*remainingRetries*/) { |
| 76 | rspInfo = info; |
| 77 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 78 | return Void(); |
| 79 | } |
| 80 | |
| 81 | Return<void> RadioResponse::getCurrentCallsResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 82 | const RadioResponseInfo& info, const ::android::hardware::hidl_vec<Call>& /*calls*/) { |
| 83 | rspInfo = info; |
| 84 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 85 | return Void(); |
| 86 | } |
| 87 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 88 | Return<void> RadioResponse::dialResponse(const RadioResponseInfo& info) { |
| 89 | rspInfo = info; |
| 90 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 91 | return Void(); |
| 92 | } |
| 93 | |
| 94 | Return<void> RadioResponse::getIMSIForAppResponse( |
| 95 | const RadioResponseInfo& info, const ::android::hardware::hidl_string& imsi) { |
Sanket Padawe | 1512edb | 2017-02-23 12:31:09 -0800 | [diff] [blame] | 96 | rspInfo = info; |
| 97 | this->imsi = imsi; |
| 98 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 99 | return Void(); |
| 100 | } |
| 101 | |
| 102 | Return<void> RadioResponse::hangupConnectionResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 103 | const RadioResponseInfo& info) { |
| 104 | rspInfo = info; |
| 105 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 106 | return Void(); |
| 107 | } |
| 108 | |
| 109 | Return<void> RadioResponse::hangupWaitingOrBackgroundResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 110 | const RadioResponseInfo& info) { |
| 111 | rspInfo = info; |
| 112 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 113 | return Void(); |
| 114 | } |
| 115 | |
| 116 | Return<void> RadioResponse::hangupForegroundResumeBackgroundResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 117 | const RadioResponseInfo& info) { |
| 118 | rspInfo = info; |
| 119 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 120 | return Void(); |
| 121 | } |
| 122 | |
| 123 | Return<void> RadioResponse::switchWaitingOrHoldingAndActiveResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 124 | const RadioResponseInfo& info) { |
| 125 | rspInfo = info; |
| 126 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 127 | return Void(); |
| 128 | } |
| 129 | |
| 130 | Return<void> RadioResponse::conferenceResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 131 | const RadioResponseInfo& info) { |
| 132 | rspInfo = info; |
| 133 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 134 | return Void(); |
| 135 | } |
| 136 | |
| 137 | Return<void> RadioResponse::rejectCallResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 138 | const RadioResponseInfo& info) { |
| 139 | rspInfo = info; |
| 140 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 141 | return Void(); |
| 142 | } |
| 143 | |
| 144 | Return<void> RadioResponse::getLastCallFailCauseResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 145 | const RadioResponseInfo& info, const LastCallFailCauseInfo& /*failCauseInfo*/) { |
| 146 | rspInfo = info; |
| 147 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 148 | return Void(); |
| 149 | } |
| 150 | |
| 151 | Return<void> RadioResponse::getSignalStrengthResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 152 | const RadioResponseInfo& info, const SignalStrength& /*sig_strength*/) { |
| 153 | rspInfo = info; |
| 154 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 155 | return Void(); |
| 156 | } |
| 157 | |
| 158 | Return<void> RadioResponse::getVoiceRegistrationStateResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 159 | const RadioResponseInfo& info, const VoiceRegStateResult& /*voiceRegResponse*/) { |
| 160 | rspInfo = info; |
| 161 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 162 | return Void(); |
| 163 | } |
| 164 | |
| 165 | Return<void> RadioResponse::getDataRegistrationStateResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 166 | const RadioResponseInfo& info, const DataRegStateResult& /*dataRegResponse*/) { |
| 167 | rspInfo = info; |
| 168 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 169 | return Void(); |
| 170 | } |
| 171 | |
| 172 | Return<void> RadioResponse::getOperatorResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 173 | const RadioResponseInfo& info, const ::android::hardware::hidl_string& /*longName*/, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 174 | const ::android::hardware::hidl_string& /*shortName*/, |
| 175 | const ::android::hardware::hidl_string& /*numeric*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 176 | rspInfo = info; |
| 177 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 178 | return Void(); |
| 179 | } |
| 180 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 181 | Return<void> RadioResponse::setRadioPowerResponse(const RadioResponseInfo& info) { |
| 182 | rspInfo = info; |
| 183 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 184 | return Void(); |
| 185 | } |
| 186 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 187 | Return<void> RadioResponse::sendDtmfResponse(const RadioResponseInfo& info) { |
| 188 | rspInfo = info; |
| 189 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 190 | return Void(); |
| 191 | } |
| 192 | |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 193 | Return<void> RadioResponse::sendSmsResponse(const RadioResponseInfo& info, |
| 194 | const SendSmsResult& sms) { |
| 195 | rspInfo = info; |
| 196 | sendSmsResult = sms; |
| 197 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 198 | return Void(); |
| 199 | } |
| 200 | |
| 201 | Return<void> RadioResponse::sendSMSExpectMoreResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 202 | const RadioResponseInfo& info, const SendSmsResult& sms) { |
| 203 | rspInfo = info; |
| 204 | sendSmsResult = sms; |
| 205 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 206 | return Void(); |
| 207 | } |
| 208 | |
| 209 | Return<void> RadioResponse::setupDataCallResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 210 | const RadioResponseInfo& info, const SetupDataCallResult& /*dcResponse*/) { |
| 211 | rspInfo = info; |
| 212 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 213 | return Void(); |
| 214 | } |
| 215 | |
| 216 | Return<void> RadioResponse::iccIOForAppResponse( |
| 217 | const RadioResponseInfo& info, const IccIoResult& iccIo) { |
Sanket Padawe | 1512edb | 2017-02-23 12:31:09 -0800 | [diff] [blame] | 218 | rspInfo = info; |
| 219 | this->iccIoResult = iccIo; |
| 220 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 221 | return Void(); |
| 222 | } |
| 223 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 224 | Return<void> RadioResponse::sendUssdResponse(const RadioResponseInfo& info) { |
| 225 | rspInfo = info; |
| 226 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 227 | return Void(); |
| 228 | } |
| 229 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 230 | Return<void> RadioResponse::cancelPendingUssdResponse(const RadioResponseInfo& info) { |
| 231 | rspInfo = info; |
| 232 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 233 | return Void(); |
| 234 | } |
| 235 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 236 | Return<void> RadioResponse::getClirResponse(const RadioResponseInfo& info, int32_t /*n*/, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 237 | int32_t /*m*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 238 | rspInfo = info; |
| 239 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 240 | return Void(); |
| 241 | } |
| 242 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 243 | Return<void> RadioResponse::setClirResponse(const RadioResponseInfo& info) { |
| 244 | rspInfo = info; |
| 245 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 246 | return Void(); |
| 247 | } |
| 248 | |
| 249 | Return<void> RadioResponse::getCallForwardStatusResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 250 | const RadioResponseInfo& info, const ::android::hardware::hidl_vec<CallForwardInfo>& |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 251 | /*callForwardInfos*/) { |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 252 | rspInfo = info; |
| 253 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 254 | return Void(); |
| 255 | } |
| 256 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 257 | Return<void> RadioResponse::setCallForwardResponse(const RadioResponseInfo& info) { |
| 258 | rspInfo = info; |
| 259 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 260 | return Void(); |
| 261 | } |
| 262 | |
| 263 | Return<void> RadioResponse::getCallWaitingResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 264 | const RadioResponseInfo& info, bool /*enable*/, int32_t /*serviceClass*/) { |
| 265 | rspInfo = info; |
| 266 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 267 | return Void(); |
| 268 | } |
| 269 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 270 | Return<void> RadioResponse::setCallWaitingResponse(const RadioResponseInfo& info) { |
| 271 | rspInfo = info; |
| 272 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 273 | return Void(); |
| 274 | } |
| 275 | |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 276 | Return<void> RadioResponse::acknowledgeLastIncomingGsmSmsResponse(const RadioResponseInfo& info) { |
| 277 | rspInfo = info; |
| 278 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 279 | return Void(); |
| 280 | } |
| 281 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 282 | Return<void> RadioResponse::acceptCallResponse(const RadioResponseInfo& info) { |
| 283 | rspInfo = info; |
| 284 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 285 | return Void(); |
| 286 | } |
| 287 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 288 | Return<void> RadioResponse::deactivateDataCallResponse(const RadioResponseInfo& info) { |
| 289 | rspInfo = info; |
| 290 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 291 | return Void(); |
| 292 | } |
| 293 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 294 | Return<void> RadioResponse::getFacilityLockForAppResponse(const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 295 | int32_t /*response*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 296 | rspInfo = info; |
| 297 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 298 | return Void(); |
| 299 | } |
| 300 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 301 | Return<void> RadioResponse::setFacilityLockForAppResponse(const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 302 | int32_t /*retry*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 303 | rspInfo = info; |
| 304 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 305 | return Void(); |
| 306 | } |
| 307 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 308 | Return<void> RadioResponse::setBarringPasswordResponse(const RadioResponseInfo& info) { |
| 309 | rspInfo = info; |
| 310 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 311 | return Void(); |
| 312 | } |
| 313 | |
| 314 | Return<void> RadioResponse::getNetworkSelectionModeResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 315 | const RadioResponseInfo& info, bool /*manual*/) { |
| 316 | rspInfo = info; |
| 317 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 318 | return Void(); |
| 319 | } |
| 320 | |
| 321 | Return<void> RadioResponse::setNetworkSelectionModeAutomaticResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 322 | const RadioResponseInfo& info) { |
| 323 | rspInfo = info; |
| 324 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 325 | return Void(); |
| 326 | } |
| 327 | |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 328 | Return<void> RadioResponse::setNetworkSelectionModeManualResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 329 | const RadioResponseInfo& info) { |
| 330 | rspInfo = info; |
| 331 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 332 | return Void(); |
| 333 | } |
| 334 | |
| 335 | Return<void> RadioResponse::getAvailableNetworksResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 336 | const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 337 | const ::android::hardware::hidl_vec<OperatorInfo>& /*networkInfos*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 338 | rspInfo = info; |
| 339 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 340 | return Void(); |
| 341 | } |
| 342 | |
| 343 | Return<void> RadioResponse::startDtmfResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 344 | const RadioResponseInfo& info) { |
| 345 | rspInfo = info; |
| 346 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 347 | return Void(); |
| 348 | } |
| 349 | |
| 350 | Return<void> RadioResponse::stopDtmfResponse( |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 351 | const RadioResponseInfo& info) { |
| 352 | rspInfo = info; |
| 353 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 354 | return Void(); |
| 355 | } |
| 356 | |
| 357 | Return<void> RadioResponse::getBasebandVersionResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 358 | const RadioResponseInfo& info, const ::android::hardware::hidl_string& /*version*/) { |
| 359 | rspInfo = info; |
| 360 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 361 | return Void(); |
| 362 | } |
| 363 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 364 | Return<void> RadioResponse::separateConnectionResponse(const RadioResponseInfo& info) { |
| 365 | rspInfo = info; |
| 366 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 367 | return Void(); |
| 368 | } |
| 369 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 370 | Return<void> RadioResponse::setMuteResponse(const RadioResponseInfo& info) { |
| 371 | rspInfo = info; |
| 372 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 373 | return Void(); |
| 374 | } |
| 375 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 376 | Return<void> RadioResponse::getMuteResponse(const RadioResponseInfo& info, bool /*enable*/) { |
| 377 | rspInfo = info; |
| 378 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 379 | return Void(); |
| 380 | } |
| 381 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 382 | Return<void> RadioResponse::getClipResponse(const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 383 | ClipStatus /*status*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 384 | rspInfo = info; |
| 385 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 386 | return Void(); |
| 387 | } |
| 388 | |
| 389 | Return<void> RadioResponse::getDataCallListResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 390 | const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 391 | const ::android::hardware::hidl_vec<SetupDataCallResult>& /*dcResponse*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 392 | rspInfo = info; |
| 393 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 394 | return Void(); |
| 395 | } |
| 396 | |
| 397 | Return<void> RadioResponse::sendOemRilRequestRawResponse( |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 398 | const RadioResponseInfo& /*info*/, |
| 399 | const ::android::hardware::hidl_vec<uint8_t>& /*data*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 400 | return Void(); |
| 401 | } |
| 402 | |
| 403 | Return<void> RadioResponse::sendOemRilRequestStringsResponse( |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 404 | const RadioResponseInfo& /*info*/, |
| 405 | const ::android::hardware::hidl_vec<::android::hardware::hidl_string>& /*data*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 406 | return Void(); |
| 407 | } |
| 408 | |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 409 | Return<void> RadioResponse::setSuppServiceNotificationsResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 410 | const RadioResponseInfo& info) { |
| 411 | rspInfo = info; |
| 412 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 413 | return Void(); |
| 414 | } |
| 415 | |
| 416 | Return<void> RadioResponse::writeSmsToSimResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 417 | const RadioResponseInfo& info, int32_t index) { |
| 418 | rspInfo = info; |
| 419 | writeSmsToSimIndex = index; |
| 420 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 421 | return Void(); |
| 422 | } |
| 423 | |
| 424 | Return<void> RadioResponse::deleteSmsOnSimResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 425 | const RadioResponseInfo& info) { |
| 426 | rspInfo = info; |
| 427 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 428 | return Void(); |
| 429 | } |
| 430 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 431 | Return<void> RadioResponse::setBandModeResponse(const RadioResponseInfo& info) { |
| 432 | rspInfo = info; |
| 433 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 434 | return Void(); |
| 435 | } |
| 436 | |
| 437 | Return<void> RadioResponse::getAvailableBandModesResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 438 | const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 439 | const ::android::hardware::hidl_vec<RadioBandMode>& /*bandModes*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 440 | rspInfo = info; |
| 441 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 442 | return Void(); |
| 443 | } |
| 444 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 445 | Return<void> RadioResponse::sendEnvelopeResponse(const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 446 | const ::android::hardware::hidl_string& /*commandResponse*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 447 | rspInfo = info; |
| 448 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 449 | return Void(); |
| 450 | } |
| 451 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 452 | Return<void> RadioResponse::sendTerminalResponseToSimResponse(const RadioResponseInfo& info) { |
| 453 | rspInfo = info; |
| 454 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 455 | return Void(); |
| 456 | } |
| 457 | |
| 458 | Return<void> RadioResponse::handleStkCallSetupRequestFromSimResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 459 | const RadioResponseInfo& info) { |
| 460 | rspInfo = info; |
| 461 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 462 | return Void(); |
| 463 | } |
| 464 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 465 | Return<void> RadioResponse::explicitCallTransferResponse(const RadioResponseInfo& info) { |
| 466 | rspInfo = info; |
| 467 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 468 | return Void(); |
| 469 | } |
| 470 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 471 | Return<void> RadioResponse::setPreferredNetworkTypeResponse(const RadioResponseInfo& info) { |
| 472 | rspInfo = info; |
| 473 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 474 | return Void(); |
| 475 | } |
| 476 | |
| 477 | Return<void> RadioResponse::getPreferredNetworkTypeResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 478 | const RadioResponseInfo& info, PreferredNetworkType /*nw_type*/) { |
| 479 | rspInfo = info; |
| 480 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 481 | return Void(); |
| 482 | } |
| 483 | |
| 484 | Return<void> RadioResponse::getNeighboringCidsResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 485 | const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 486 | const ::android::hardware::hidl_vec<NeighboringCell>& /*cells*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 487 | rspInfo = info; |
| 488 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 489 | return Void(); |
| 490 | } |
| 491 | |
| 492 | Return<void> RadioResponse::setLocationUpdatesResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 493 | const RadioResponseInfo& info) { |
| 494 | rspInfo = info; |
| 495 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 496 | return Void(); |
| 497 | } |
| 498 | |
Sanket Padawe | 6f957ea | 2017-03-21 14:48:41 -0700 | [diff] [blame] | 499 | Return<void> RadioResponse::setCdmaSubscriptionSourceResponse(const RadioResponseInfo& info) { |
| 500 | rspInfo = info; |
| 501 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 502 | return Void(); |
| 503 | } |
| 504 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 505 | Return<void> RadioResponse::setCdmaRoamingPreferenceResponse(const RadioResponseInfo& info) { |
| 506 | rspInfo = info; |
| 507 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 508 | return Void(); |
| 509 | } |
| 510 | |
| 511 | Return<void> RadioResponse::getCdmaRoamingPreferenceResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 512 | const RadioResponseInfo& info, CdmaRoamingType /*type*/) { |
| 513 | rspInfo = info; |
| 514 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 515 | return Void(); |
| 516 | } |
| 517 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 518 | Return<void> RadioResponse::setTTYModeResponse(const RadioResponseInfo& info) { |
| 519 | rspInfo = info; |
| 520 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 521 | return Void(); |
| 522 | } |
| 523 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 524 | Return<void> RadioResponse::getTTYModeResponse(const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 525 | TtyMode /*mode*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 526 | rspInfo = info; |
| 527 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 528 | return Void(); |
| 529 | } |
| 530 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 531 | Return<void> RadioResponse::setPreferredVoicePrivacyResponse(const RadioResponseInfo& info) { |
| 532 | rspInfo = info; |
| 533 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 534 | return Void(); |
| 535 | } |
| 536 | |
| 537 | Return<void> RadioResponse::getPreferredVoicePrivacyResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 538 | const RadioResponseInfo& info, bool /*enable*/) { |
| 539 | rspInfo = info; |
| 540 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 541 | return Void(); |
| 542 | } |
| 543 | |
Sanket Padawe | 6f957ea | 2017-03-21 14:48:41 -0700 | [diff] [blame] | 544 | Return<void> RadioResponse::sendCDMAFeatureCodeResponse(const RadioResponseInfo& info) { |
| 545 | rspInfo = info; |
| 546 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 547 | return Void(); |
| 548 | } |
| 549 | |
Sanket Padawe | fe7c7a3 | 2017-03-09 11:05:46 -0800 | [diff] [blame] | 550 | Return<void> RadioResponse::sendBurstDtmfResponse(const RadioResponseInfo& info) { |
| 551 | rspInfo = info; |
| 552 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 553 | return Void(); |
| 554 | } |
| 555 | |
| 556 | Return<void> RadioResponse::sendCdmaSmsResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 557 | const RadioResponseInfo& info, const SendSmsResult& sms) { |
| 558 | rspInfo = info; |
| 559 | sendSmsResult = sms; |
| 560 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 561 | return Void(); |
| 562 | } |
| 563 | |
| 564 | Return<void> RadioResponse::acknowledgeLastIncomingCdmaSmsResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 565 | const RadioResponseInfo& info) { |
| 566 | rspInfo = info; |
| 567 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 568 | return Void(); |
| 569 | } |
| 570 | |
| 571 | Return<void> RadioResponse::getGsmBroadcastConfigResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 572 | const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 573 | const ::android::hardware::hidl_vec<GsmBroadcastSmsConfigInfo>& /*configs*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 574 | rspInfo = info; |
| 575 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 576 | return Void(); |
| 577 | } |
| 578 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 579 | Return<void> RadioResponse::setGsmBroadcastConfigResponse(const RadioResponseInfo& info) { |
| 580 | rspInfo = info; |
| 581 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 582 | return Void(); |
| 583 | } |
| 584 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 585 | Return<void> RadioResponse::setGsmBroadcastActivationResponse(const RadioResponseInfo& info) { |
| 586 | rspInfo = info; |
| 587 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 588 | return Void(); |
| 589 | } |
| 590 | |
| 591 | Return<void> RadioResponse::getCdmaBroadcastConfigResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 592 | const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 593 | const ::android::hardware::hidl_vec<CdmaBroadcastSmsConfigInfo>& /*configs*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 594 | rspInfo = info; |
| 595 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 596 | return Void(); |
| 597 | } |
| 598 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 599 | Return<void> RadioResponse::setCdmaBroadcastConfigResponse(const RadioResponseInfo& info) { |
| 600 | rspInfo = info; |
| 601 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 602 | return Void(); |
| 603 | } |
| 604 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 605 | Return<void> RadioResponse::setCdmaBroadcastActivationResponse(const RadioResponseInfo& info) { |
| 606 | rspInfo = info; |
| 607 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 608 | return Void(); |
| 609 | } |
| 610 | |
| 611 | Return<void> RadioResponse::getCDMASubscriptionResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 612 | const RadioResponseInfo& info, const ::android::hardware::hidl_string& /*mdn*/, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 613 | const ::android::hardware::hidl_string& /*hSid*/, |
| 614 | const ::android::hardware::hidl_string& /*hNid*/, |
| 615 | const ::android::hardware::hidl_string& /*min*/, |
| 616 | const ::android::hardware::hidl_string& /*prl*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 617 | rspInfo = info; |
| 618 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 619 | return Void(); |
| 620 | } |
| 621 | |
| 622 | Return<void> RadioResponse::writeSmsToRuimResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 623 | const RadioResponseInfo& info, uint32_t index) { |
| 624 | rspInfo = info; |
| 625 | writeSmsToRuimIndex = index; |
| 626 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 627 | return Void(); |
| 628 | } |
| 629 | |
| 630 | Return<void> RadioResponse::deleteSmsOnRuimResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 631 | const RadioResponseInfo& info) { |
| 632 | rspInfo = info; |
| 633 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 634 | return Void(); |
| 635 | } |
| 636 | |
| 637 | Return<void> RadioResponse::getDeviceIdentityResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 638 | const RadioResponseInfo& info, const ::android::hardware::hidl_string& /*imei*/, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 639 | const ::android::hardware::hidl_string& /*imeisv*/, |
| 640 | const ::android::hardware::hidl_string& /*esn*/, |
| 641 | const ::android::hardware::hidl_string& /*meid*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 642 | rspInfo = info; |
| 643 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 644 | return Void(); |
| 645 | } |
| 646 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 647 | Return<void> RadioResponse::exitEmergencyCallbackModeResponse(const RadioResponseInfo& info) { |
| 648 | rspInfo = info; |
| 649 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 650 | return Void(); |
| 651 | } |
| 652 | |
| 653 | Return<void> RadioResponse::getSmscAddressResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 654 | const RadioResponseInfo& info, const ::android::hardware::hidl_string& smsc) { |
| 655 | rspInfo = info; |
| 656 | smscAddress = smsc; |
| 657 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 658 | return Void(); |
| 659 | } |
| 660 | |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 661 | Return<void> RadioResponse::setSmscAddressResponse(const RadioResponseInfo& info) { |
| 662 | rspInfo = info; |
| 663 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 664 | return Void(); |
| 665 | } |
| 666 | |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 667 | Return<void> RadioResponse::reportSmsMemoryStatusResponse(const RadioResponseInfo& info) { |
| 668 | rspInfo = info; |
| 669 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 670 | return Void(); |
| 671 | } |
| 672 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 673 | Return<void> RadioResponse::reportStkServiceIsRunningResponse(const RadioResponseInfo& info) { |
| 674 | rspInfo = info; |
| 675 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 676 | return Void(); |
| 677 | } |
| 678 | |
| 679 | Return<void> RadioResponse::getCdmaSubscriptionSourceResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 680 | const RadioResponseInfo& info, CdmaSubscriptionSource /*source*/) { |
| 681 | rspInfo = info; |
| 682 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 683 | return Void(); |
| 684 | } |
| 685 | |
| 686 | Return<void> RadioResponse::requestIsimAuthenticationResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 687 | const RadioResponseInfo& info, const ::android::hardware::hidl_string& /*response*/) { |
| 688 | rspInfo = info; |
| 689 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 690 | return Void(); |
| 691 | } |
| 692 | |
| 693 | Return<void> RadioResponse::acknowledgeIncomingGsmSmsWithPduResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 694 | const RadioResponseInfo& info) { |
| 695 | rspInfo = info; |
| 696 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 697 | return Void(); |
| 698 | } |
| 699 | |
| 700 | Return<void> RadioResponse::sendEnvelopeWithStatusResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 701 | const RadioResponseInfo& info, const IccIoResult& /*iccIo*/) { |
| 702 | rspInfo = info; |
| 703 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 704 | return Void(); |
| 705 | } |
| 706 | |
| 707 | Return<void> RadioResponse::getVoiceRadioTechnologyResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 708 | const RadioResponseInfo& info, RadioTechnology /*rat*/) { |
| 709 | rspInfo = info; |
| 710 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 711 | return Void(); |
| 712 | } |
| 713 | |
| 714 | Return<void> RadioResponse::getCellInfoListResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 715 | const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 716 | const ::android::hardware::hidl_vec<CellInfo>& /*cellInfo*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 717 | rspInfo = info; |
| 718 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 719 | return Void(); |
| 720 | } |
| 721 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 722 | Return<void> RadioResponse::setCellInfoListRateResponse(const RadioResponseInfo& info) { |
| 723 | rspInfo = info; |
| 724 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 725 | return Void(); |
| 726 | } |
| 727 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 728 | Return<void> RadioResponse::setInitialAttachApnResponse(const RadioResponseInfo& info) { |
| 729 | rspInfo = info; |
| 730 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 731 | return Void(); |
| 732 | } |
| 733 | |
| 734 | Return<void> RadioResponse::getImsRegistrationStateResponse( |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 735 | const RadioResponseInfo& info, bool /*isRegistered*/, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 736 | RadioTechnologyFamily /*ratFamily*/) { |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 737 | rspInfo = info; |
| 738 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 739 | return Void(); |
| 740 | } |
| 741 | |
| 742 | Return<void> RadioResponse::sendImsSmsResponse( |
Shuoq | 064ee51 | 2017-02-27 16:35:56 -0800 | [diff] [blame] | 743 | const RadioResponseInfo& info, const SendSmsResult& sms) { |
| 744 | rspInfo = info; |
| 745 | sendSmsResult = sms; |
| 746 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 747 | return Void(); |
| 748 | } |
| 749 | |
| 750 | Return<void> RadioResponse::iccTransmitApduBasicChannelResponse( |
| 751 | const RadioResponseInfo& info, const IccIoResult& result) { |
Sanket Padawe | 1512edb | 2017-02-23 12:31:09 -0800 | [diff] [blame] | 752 | rspInfo = info; |
| 753 | this->iccIoResult = result; |
| 754 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 755 | return Void(); |
| 756 | } |
| 757 | |
| 758 | Return<void> RadioResponse::iccOpenLogicalChannelResponse( |
| 759 | const RadioResponseInfo& info, int32_t channelId, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 760 | const ::android::hardware::hidl_vec<int8_t>& /*selectResponse*/) { |
Sanket Padawe | 1512edb | 2017-02-23 12:31:09 -0800 | [diff] [blame] | 761 | rspInfo = info; |
| 762 | this->channelId = channelId; |
| 763 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 764 | return Void(); |
| 765 | } |
| 766 | |
| 767 | Return<void> RadioResponse::iccCloseLogicalChannelResponse(const RadioResponseInfo& info) { |
Sanket Padawe | 1512edb | 2017-02-23 12:31:09 -0800 | [diff] [blame] | 768 | rspInfo = info; |
| 769 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 770 | return Void(); |
| 771 | } |
| 772 | |
| 773 | Return<void> RadioResponse::iccTransmitApduLogicalChannelResponse( |
| 774 | const RadioResponseInfo& info, const IccIoResult& result) { |
Sanket Padawe | 1512edb | 2017-02-23 12:31:09 -0800 | [diff] [blame] | 775 | rspInfo = info; |
| 776 | this->iccIoResult = result; |
| 777 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 778 | return Void(); |
| 779 | } |
| 780 | |
| 781 | Return<void> RadioResponse::nvReadItemResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 782 | const RadioResponseInfo& info, const ::android::hardware::hidl_string& /*result*/) { |
| 783 | rspInfo = info; |
| 784 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 785 | return Void(); |
| 786 | } |
| 787 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 788 | Return<void> RadioResponse::nvWriteItemResponse(const RadioResponseInfo& info) { |
| 789 | rspInfo = info; |
| 790 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 791 | return Void(); |
| 792 | } |
| 793 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 794 | Return<void> RadioResponse::nvWriteCdmaPrlResponse(const RadioResponseInfo& info) { |
| 795 | rspInfo = info; |
| 796 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 797 | return Void(); |
| 798 | } |
| 799 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 800 | Return<void> RadioResponse::nvResetConfigResponse(const RadioResponseInfo& info) { |
| 801 | rspInfo = info; |
| 802 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 803 | return Void(); |
| 804 | } |
| 805 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 806 | Return<void> RadioResponse::setUiccSubscriptionResponse(const RadioResponseInfo& info) { |
| 807 | rspInfo = info; |
| 808 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 809 | return Void(); |
| 810 | } |
| 811 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 812 | Return<void> RadioResponse::setDataAllowedResponse(const RadioResponseInfo& info) { |
| 813 | rspInfo = info; |
| 814 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 815 | return Void(); |
| 816 | } |
| 817 | |
| 818 | Return<void> RadioResponse::getHardwareConfigResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 819 | const RadioResponseInfo& info, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 820 | const ::android::hardware::hidl_vec<HardwareConfig>& /*config*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 821 | rspInfo = info; |
| 822 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 823 | return Void(); |
| 824 | } |
| 825 | |
| 826 | Return<void> RadioResponse::requestIccSimAuthenticationResponse( |
| 827 | const RadioResponseInfo& info, const IccIoResult& result) { |
Sanket Padawe | 1512edb | 2017-02-23 12:31:09 -0800 | [diff] [blame] | 828 | rspInfo = info; |
| 829 | this->iccIoResult = result; |
| 830 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 831 | return Void(); |
| 832 | } |
| 833 | |
Shuoq | 59bac4d | 2017-03-09 17:44:08 -0800 | [diff] [blame] | 834 | Return<void> RadioResponse::setDataProfileResponse(const RadioResponseInfo& info) { |
| 835 | rspInfo = info; |
| 836 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 837 | return Void(); |
| 838 | } |
| 839 | |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 840 | Return<void> RadioResponse::requestShutdownResponse(const RadioResponseInfo& info) { |
| 841 | rspInfo = info; |
| 842 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 843 | return Void(); |
| 844 | } |
| 845 | |
| 846 | Return<void> RadioResponse::getRadioCapabilityResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 847 | const RadioResponseInfo& info, const RadioCapability& /*rc*/) { |
| 848 | rspInfo = info; |
| 849 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 850 | return Void(); |
| 851 | } |
| 852 | |
| 853 | Return<void> RadioResponse::setRadioCapabilityResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 854 | const RadioResponseInfo& info, const RadioCapability& /*rc*/) { |
| 855 | rspInfo = info; |
| 856 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 857 | return Void(); |
| 858 | } |
| 859 | |
| 860 | Return<void> RadioResponse::startLceServiceResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 861 | const RadioResponseInfo& info, const LceStatusInfo& /*statusInfo*/) { |
| 862 | rspInfo = info; |
| 863 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 864 | return Void(); |
| 865 | } |
| 866 | |
| 867 | Return<void> RadioResponse::stopLceServiceResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 868 | const RadioResponseInfo& info, const LceStatusInfo& /*statusInfo*/) { |
| 869 | rspInfo = info; |
| 870 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 871 | return Void(); |
| 872 | } |
| 873 | |
| 874 | Return<void> RadioResponse::pullLceDataResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 875 | const RadioResponseInfo& info, const LceDataInfo& /*lceInfo*/) { |
| 876 | rspInfo = info; |
| 877 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 878 | return Void(); |
| 879 | } |
| 880 | |
| 881 | Return<void> RadioResponse::getModemActivityInfoResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 882 | const RadioResponseInfo& info, const ActivityStatsInfo& /*activityInfo*/) { |
| 883 | rspInfo = info; |
| 884 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 885 | return Void(); |
| 886 | } |
| 887 | |
| 888 | Return<void> RadioResponse::setAllowedCarriersResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 889 | const RadioResponseInfo& info, int32_t /*numAllowed*/) { |
| 890 | rspInfo = info; |
| 891 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 892 | return Void(); |
| 893 | } |
| 894 | |
| 895 | Return<void> RadioResponse::getAllowedCarriersResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 896 | const RadioResponseInfo& info, bool /*allAllowed*/, |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 897 | const CarrierRestrictions& /*carriers*/) { |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 898 | rspInfo = info; |
| 899 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 900 | return Void(); |
| 901 | } |
| 902 | |
| 903 | Return<void> RadioResponse::sendDeviceStateResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 904 | const RadioResponseInfo& info) { |
| 905 | rspInfo = info; |
| 906 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 907 | return Void(); |
| 908 | } |
| 909 | |
| 910 | Return<void> RadioResponse::setIndicationFilterResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 911 | const RadioResponseInfo& info) { |
| 912 | rspInfo = info; |
| 913 | parent.notify(); |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 914 | return Void(); |
| 915 | } |
| 916 | |
Sanket Padawe | 680564a | 2017-02-16 18:11:34 -0800 | [diff] [blame] | 917 | Return<void> RadioResponse::setSimCardPowerResponse( |
Sanket Padawe | 28fc10f | 2017-03-16 11:49:39 -0700 | [diff] [blame] | 918 | const RadioResponseInfo& info) { |
| 919 | rspInfo = info; |
| 920 | parent.notify(); |
Sanket Padawe | 680564a | 2017-02-16 18:11:34 -0800 | [diff] [blame] | 921 | return Void(); |
| 922 | } |
| 923 | |
Sanket Padawe | 77c3822 | 2017-03-01 10:51:56 -0800 | [diff] [blame] | 924 | Return<void> RadioResponse::acknowledgeRequest(int32_t /*serial*/) { |
Sanket Padawe | e4c6323 | 2017-02-07 15:58:34 -0800 | [diff] [blame] | 925 | return Void(); |
| 926 | } |