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