blob: c49286b3c05f1fa0ac973e9dc60a48f8821de278 [file] [log] [blame]
Sanket Padawe76372492016-10-27 13:20:49 -07001/*
2 * Copyright (C) 2016 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
17package android.hardware.radio@1.0;
18
19/*
20 * Interface declaring response functions to solicited radio requests.
21 * Response functions defined in this interface are as per following convention:
22 * <xyz>Response is response to IRadio.<xyz>
23 */
24interface IRadioResponse {
25 /*
26 * @param info Response info struct containing response type, serial no. & error
27 * @param cardStatus ICC card status as defined by CardStatus in types.hal
28 *
29 * Valid errors returned:
30 * RadioError:NONE
31 * RadioError:INVALID_ARGUMENTS
32 */
33 oneway iccCardStatusResponse(RadioResponseInfo info, CardStatus cardStatus);
34
35 /*
36 * @param info Response info struct containing response type, serial no. & error
37 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
38 *
39 * Valid errors returned:
40 * RadioError:NONE
41 * RadioError:INVALID_ARGUMENTS
42 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
43 * RadioError:GENERIC_FAILURE
44 * RadioError:PASSWORD_INCORRECT
45 */
46 oneway supplyIccPinForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
47
48 /*
49 * @param info Response info struct containing response type, serial no. & error
50 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
51 *
52 * Valid errors returned:
53 * RadioError:NONE
54 * RadioError:INVALID_ARGUMENTS
55 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
56 * RadioError:GENERIC_FAILURE
57 * RadioError:PASSWORD_INCORRECT (PUK is invalid)
58 */
59 oneway supplyIccPukForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
60
61 /*
62 * @param info Response info struct containing response type, serial no. & error
63 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
64 *
65 * Valid errors returned:
66 * RadioError:NONE
67 * RadioError:INVALID_ARGUMENTS
68 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
69 * RadioError:GENERIC_FAILURE
70 * RadioError:PASSWORD_INCORRECT
71 */
72 oneway supplyIccPin2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
73
74 /*
75 * @param info Response info struct containing response type, serial no. & error
76 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
77 * Valid errors returned:
78 * RadioError:NONE
79 * RadioError:INVALID_ARGUMENTS
80 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
81 * RadioError:GENERIC_FAILURE
82 * RadioError:PASSWORD_INCORRECT (PUK is invalid)
83 */
84 oneway supplyIccPuk2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
85
86 /*
87 * @param info Response info struct containing response type, serial no. & error
88 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
89 *
90 * Valid errors returned:
91 * RadioError:NONE
92 * RadioError:INVALID_ARGUMENTS
93 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
94 * RadioError:GENERIC_FAILURE
95 * RadioError:PASSWORD_INCORRECT
96 */
97 oneway changeIccPinForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
98
99 /*
100 * @param info Response info struct containing response type, serial no. & error
101 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
102 *
103 * Valid errors returned:
104 * RadioError:NONE
105 * RadioError:INVALID_ARGUMENTS
106 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
107 * RadioError:GENERIC_FAILURE
108 * RadioError:PASSWORD_INCORRECT (old PIN2 is invalid)
109 */
110 oneway changeIccPin2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
111
112 /*
113 * @param info Response info struct containing response type, serial no. & error
114 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
115 *
116 * Valid errors returned:
117 * RadioError:NONE
118 * RadioError:INVALID_ARGUMENTS
119 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
120 * RadioError:GENERIC_FAILURE
121 * RadioError:PASSWORD_INCORRECT (code is invalid)
122 */
123 oneway supplyNetworkDepersonalizationResponse(RadioResponseInfo info, int32_t remainingRetries);
124
125 /*
126 * @param info Response info struct containing response type, serial no. & error
127 * @param calls Current call list
128 *
129 * Valid errors returned:
130 * RadioError:NONE
131 * RadioError:INVALID_ARGUMENTS
132 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
133 * RadioError:GENERIC_FAILURE (request will be made again in a few hundred msec)
134 * RadioError:NO_MEMORY
135 */
136 oneway getCurrentCallsResponse(RadioResponseInfo info, vec<Call> calls);
137
138 /*
139 * @param info Response info struct containing response type, serial no. & error
140 *
141 * Valid errors returned:
142 * RadioError:NONE
143 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
144 * RadioError:GENERIC_FAILURE
145 * RadioError:DIAL_MODIFIED_TO_USSD
146 * RadioError:DIAL_MODIFIED_TO_SS
147 * RadioError:DIAL_MODIFIED_TO_DIAL
148 * RadioError:INVALID_ARGUMENTS
149 * RadioError:NO_MEMORY
150 * RadioError:INVALID_STATE
151 * RadioError:NO_RESOURCES
152 * RadioError:INTERNAL_ERR
153 * RadioError:FDN_CHECK_FAILURE
154 * RadioError:MODEM_ERR
155 * RadioError:NO_SUBSCRIPTION
156 * RadioError:NO_NETWORK_FOUND
157 * RadioError:INVALID_CALL_ID
158 * RadioError:DEVICE_IN_USE
159 * RadioError:MODE_NOT_SUPPORTED
160 * RadioError:ABORTED
161 */
162 oneway dialResponse(RadioResponseInfo info);
163
164 /*
165 * @param info Response info struct containing response type, serial no. & error
166 * @param imsi String containing the IMSI
167 *
168 * Valid errors returned:
169 * RadioError:NONE
170 * RadioError:INVALID_ARGUMENTS
171 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
172 * RadioError:GENERIC_FAILURE
173 */
174 oneway getIMSIForAppResponse(RadioResponseInfo info, string imsi);
175
176 /*
177 * @param info Response info struct containing response type, serial no. & error
178 *
179 * Valid errors returned:
180 * RadioError:NONE
181 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
182 * RadioError:INVALID_ARGUMENTS
183 * RadioError:NO_MEMORY
184 * RadioError:INVALID_STATE
185 * RadioError:MODEM_ERR
186 * RadioError:INTERNAL_ERR
187 * RadioError:INVALID_CALL_ID
188 * RadioError:GENERIC_FAILURE
189 */
190 oneway hangupConnectionResponse(RadioResponseInfo info);
191
192 /*
193 * @param info Response info struct containing response type, serial no. & error
194 *
195 * Valid errors returned:
196 * RadioError:NONE
197 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
198 * RadioError:INVALID_STATE
199 * RadioError:NO_MEMORY
200 * RadioError:MODEM_ERR
201 * RadioError:INTERNAL_ERR
202 * RadioError:INVALID_CALL_ID
203 * RadioError:NO_RESOURCES
204 * RadioError:OPERATION_NOT_ALLOWED
205 * RadioError:INVALID_ARGUMENTS
206 * RadioError:GENERIC_FAILURE
207 */
208 oneway hangupWaitingOrBackgroundResponse(RadioResponseInfo info);
209
210 /*
211 * @param info Response info struct containing response type, serial no. & error
212 *
213 * Valid errors returned:
214 * RadioError:NONE
215 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
216 * RadioError:INVALID_STATE
217 * RadioError:NO_MEMORY
218 * RadioError:MODEM_ERR
219 * RadioError:INTERNAL_ERR
220 * RadioError:INVALID_CALL_ID
221 * RadioError:NO_RESOURCES
222 * RadioError:OPERATION_NOT_ALLOWED
223 * RadioError:INVALID_ARGUMENTS
224 * RadioError:GENERIC_FAILURE
225 */
226 oneway hangupForegroundResumeBackgroundResponse(RadioResponseInfo info);
227
228 /*
229 * @param info Response info struct containing response type, serial no. & error
230 *
231 * Valid errors returned:
232 * RadioError:NONE
233 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
234 * RadioError:INVALID_STATE
235 * RadioError:NO_MEMORY
236 * RadioError:MODEM_ERR
237 * RadioError:INTERNAL_ERR
238 * RadioError:INVALID_STATE
239 * RadioError:INVALID_CALL_ID
240 * RadioError:OPERATION_NOT_ALLOWED
241 * RadioError:INVALID_ARGUMENTS
242 * RadioError:GENERIC_FAILURE
243 */
244 oneway switchWaitingOrHoldingAndActiveResponse(RadioResponseInfo info);
245
246 /*
247 * @param info Response info struct containing response type, serial no. & error
248 *
249 * Valid errors returned:
250 * RadioError:NONE
251 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
252 * RadioError:NO_MEMORY
253 * RadioError:MODEM_ERR
254 * RadioError:INTERNAL_ERR
255 * RadioError:INVALID_STATE
256 * RadioError:INVALID_CALL_ID
257 * RadioError:OPERATION_NOT_ALLOWED
258 * RadioError:INVALID_ARGUMENTS
259 * RadioError:GENERIC_FAILURE
260 */
261 oneway conferenceResponse(RadioResponseInfo info);
262
263 /*
264 * @param info Response info struct containing response type, serial no. & error
265 *
266 * Valid errors returned:
267 * RadioError:NONE
268 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
269 * RadioError:INVALID_STATE
270 * RadioError:NO_RESOURCES
271 * RadioError:NO_MEMORY
272 * RadioError:MODEM_ERR
273 * RadioError:INTERNAL_ERR
274 * RadioError:INVALID_CALL_ID
275 * RadioError:OPERATION_NOT_ALLOWED
276 * RadioError:INVALID_ARGUMENTS
277 * RadioError:GENERIC_FAILURE
278 */
279 oneway rejectCallResponse(RadioResponseInfo info);
280
281 /*
282 * @param info Response info struct containing response type, serial no. & error
283 * @param failCause failCause is LastCallFailCause. GSM failure reasons are
284 * mapped to cause codes defined in TS 24.008 Annex H where possible. CDMA
285 * failure reasons are derived from the possible call failure scenarios
286 * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard.
287 *
288 * The implementation must return LastCallFailCause:ERROR_UNSPECIFIED for blocked
289 * MO calls by restricted state (See unsolRestrictedStateChanged)
290 *
291 * If the implementation does not have access to the exact cause codes,
292 * then it must return one of the values listed in LastCallFailCause,
293 * as the UI layer needs to distinguish these cases for tone generation or
294 * error notification.
295 *
296 * Valid errors returned:
297 * RadioError:NONE
298 * RadioError:INVALID_ARGUMENTS
299 * RadioError:RADIO_NOT_AVAILABLE
300 * RadioError:NO_MEMORY
301 * RadioError:GENERIC_FAILURE
302 */
303 oneway getLastCallFailCauseResponse(RadioResponseInfo info, LastCallFailCause failCause);
304
305 /*
306 * @param info Response info struct containing response type, serial no. & error
307 * @param sigStrength Current signal strength
308 *
309 * Valid errors returned:
310 * RadioError:NONE
311 * RadioError:INVALID_ARGUMENTS
312 * RadioError:RADIO_NOT_AVAILABLE
313 */
314 oneway getSignalStrengthResponse(RadioResponseInfo info, SignalStrength sigStrength);
315
316 /*
317 * @param info Response info struct containing response type, serial no. & error
318 * @param voiceRegResponse Current Voice registration response as defined by VoiceRegStateResult
319 * in types.hal
320 *
321 * Valid errors returned:
322 * RadioError:NONE
323 * RadioError:INVALID_ARGUMENTS
324 * RadioError:RADIO_NOT_AVAILABLE
325 * RadioError:GENERIC_FAILURE
326 */
327 oneway getVoiceRegistrationStateResponse(RadioResponseInfo info,
328 VoiceRegStateResult voiceRegResponse);
329
330 /*
331 * @param info Response info struct containing response type, serial no. & error
332 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
333 * types.hal
334 *
335 * Valid errors returned:
336 * RadioError:NONE
337 * RadioError:INVALID_ARGUMENTS
338 * RadioError:RADIO_NOT_AVAILABLE
339 * RadioError:GENERIC_FAILURE
340 */
341 oneway getDataRegistrationStateResponse(RadioResponseInfo info,
342 DataRegStateResult dataRegResponse);
343
344 /*
345 * @param info Response info struct containing response type, serial no. & error
346 * @param longName is long alpha ONS or EONS or empty string if unregistered
347 * @param shortName is short alpha ONS or EONS or empty string if unregistered
348 * @param numeric is 5 or 6 digit numeric code (MCC + MNC) or empty string if unregistered
349 *
350 * Valid errors returned:
351 * RadioError:NONE
352 * RadioError:INVALID_ARGUMENTS
353 * RadioError:RADIO_NOT_AVAILABLE
354 * RadioError:GENERIC_FAILURE
355 */
356 oneway getOperatorResponse(RadioResponseInfo info, string longName, string shortName,
357 string numeric);
358
359 /*
360 * @param info Response info struct containing response type, serial no. & error
361 *
362 * Valid errors returned:
363 * RadioError:NONE
364 * RadioError:INVALID_ARGUMENTS
365 * RadioError:RADIO_NOT_AVAILABLE
366 * RadioError:GENERIC_FAILURE
367 * RadioError:OPERATION_NOT_ALLOWED
368 */
369 oneway setRadioPowerResponse(RadioResponseInfo info);
370
371 /*
372 * @param info Response info struct containing response type, serial no. & error
373 *
374 * Valid errors returned:
375 * RadioError:NONE
376 * RadioError:RADIO_NOT_AVAILABLE
377 * RadioError:INVALID_ARGUMENTS
378 * RadioError:NO_RESOURCES
379 * RadioError:NO_MEMORY
380 * RadioError:MODEM_ERR
381 * RadioError:INVALID_CALL_ID
382 * RadioError:GENERIC_FAILURE
383 */
384 oneway sendDtmfResponse(RadioResponseInfo info);
385
386 /*
387 * @param info Response info struct containing response type, serial no. & error
388 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
389 *
390 * Valid errors returned:
391 * RadioError:NONE
392 * RadioError:RADIO_NOT_AVAILABLE
393 * RadioError:SMS_SEND_FAIL_RETRY
394 * RadioError:NETWORK_REJECT
395 * RadioError:INVALID_STATE
396 * RadioError:INVALID_ARGUMENTS
397 * RadioError:NO_MEMORY
398 * RadioError:REQUEST_RATE_LIMITED
399 * RadioError:INVALID_SMS_FORMAT
400 * RadioError:SYSTEM_ERR
401 * RadioError:ENCODING_ERR
402 * RadioError:INVALID_SMSC_ADDRESS
403 * RadioError:MODEM_ERR
404 * RadioError:NETWORK_ERR
405 * RadioError:MODE_NOT_SUPPORTED
406 * RadioError:GENERIC_FAILURE
407 */
408 oneway sendSmsResponse(RadioResponseInfo info, SendSmsResult sms);
409
410 /*
411 * @param info Response info struct containing response type, serial no. & error
412 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
413 *
414 * Valid errors returned:
415 * RadioError:NONE
416 * RadioError:RADIO_NOT_AVAILABLE
417 * RadioError:SMS_SEND_FAIL_RETRY
418 * RadioError:NETWORK_REJECT
419 * RadioError:INVALID_STATE
420 * RadioError:INVALID_ARGUMENTS
421 * RadioError:NO_MEMORY
422 * RadioError:REQUEST_RATE_LIMITED
423 * RadioError:INVALID_SMS_FORMAT
424 * RadioError:SYSTEM_ERR
425 * RadioError:FDN_CHECK_FAILURE
426 * RadioError:ENCODING_ERR
427 * RadioError:INVALID_SMSC_ADDRESS
428 * RadioError:MODEM_ERR
429 * RadioError:NETWORK_ERR
430 * RadioError:MODE_NOT_SUPPORTED
431 * RadioError:GENERIC_FAILURE
432 */
433 oneway sendSMSExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
434
435 /*
436 * @param info Response info struct containing response type, serial no. & error
437 * @param dcResponse SetupDataCallResult defined in types.hal
438 *
439 * Valid errors returned:
440 * RadioError:NONE must be returned on both success and failure of setup with the
441 * DataCallResponse.status containing the actual status
442 * For all other errors the DataCallResponse is ignored.
443 * RadioError:INVALID_ARGUMENTS
444 * RadioError:RADIO_NOT_AVAILABLE
445 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
446 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
447 * RadioError:REQUEST_NOT_SUPPORTED
448 * RadioError:GENERIC_FAILURE
449 */
450 oneway setupDataCallResponse(RadioResponseInfo info, SetupDataCallResult dcResponse);
451
452 /*
453 * @param info Response info struct containing response type, serial no. & error
Sanket Padawed52335c2016-11-03 16:46:32 -0700454 * @param iccIo ICC io operation response as defined by IccIoResult in types.hal
Sanket Padawe76372492016-10-27 13:20:49 -0700455 *
456 * Valid errors returned:
457 * RadioError:NONE
458 * RadioError:INVALID_ARGUMENTS
459 * RadioError:RADIO_NOT_AVAILABLE
460 * RadioError:SIM_PIN2
461 * RadioError:SIM_PUK2
462 * RadioError:GENERIC_FAILURE
463 */
464 oneway iccIOForApp(RadioResponseInfo info, IccIoResult iccIo);
465
466 /*
467 * @param info Response info struct containing response type, serial no. & error
468 *
469 * Valid errors returned:
470 * RadioError:NONE
471 * RadioError:RADIO_NOT_AVAILABLE
472 * RadioError:FDN_CHECK_FAILURE
473 * RadioError:USSD_MODIFIED_TO_DIAL
474 * RadioError:USSD_MODIFIED_TO_SS
475 * RadioError:USSD_MODIFIED_TO_USSD
476 * RadioError:SIM_BUSY
477 * RadioError:OPERATION_NOT_ALLOWED
478 * RadioError:INVALID_ARGUMENTS
479 * RadioError:NO_MEMORY
480 * RadioError:MODEM_ERR
481 * RadioError:INTERNAL_ERR
482 * RadioError:ABORTED
483 * RadioError:SYSTEM_ERR
484 * RadioError:INVALID_STATE
485 * RadioError:GENERIC_FAILURE
486 */
487 oneway sendUssdResponse(RadioResponseInfo info);
488
489 /*
490 * @param info Response info struct containing response type, serial no. & error
491 *
492 * Valid errors returned:
493 * RadioError:NONE
494 * RadioError:INVALID_ARGUMENTS
495 * RadioError:RADIO_NOT_AVAILABLE
496 * RadioError:SIM_BUSY
497 * RadioError:OPERATION_NOT_ALLOWED
498 * RadioError:MODEM_ERR
499 * RadioError:INTERNAL_ERR
500 * RadioError:NO_MEMORY
501 * RadioError:INVALID_STATE
502 * RadioError:GENERIC_FAILURE
503 */
504 oneway cancelPendingUssdResponse(RadioResponseInfo info);
505
506 /*
507 * @param info Response info struct containing response type, serial no. & error
508 * @param n is "n" parameter from TS 27.007 7.7
509 * @param m is "m" parameter from TS 27.007 7.7
510 *
511 * Valid errors returned:
512 * RadioError:NONE
513 * RadioError:INVALID_ARGUMENTS
514 * RadioError:RADIO_NOT_AVAILABLE
515 * RadioError:SS_MODIFIED_TO_DIAL
516 * RadioError:SS_MODIFIED_TO_USSD
517 * RadioError:SS_MODIFIED_TO_SS
518 * RadioError:NO_MEMORY
519 * RadioError:MODEM_ERR
520 * RadioError:INTERNAL_ERR
521 * RadioError:FDN_CHECK_FAILURE
522 * RadioError:SYSTEM_ERR
523 * RadioError:GENERIC_FAILURE
524 */
525 oneway getClirResponse(RadioResponseInfo info, int32_t n, int32_t m);
526
527 /*
528 * @param info Response info struct containing response type, serial no. & error
529 *
530 * Valid errors returned:
531 * RadioError:NONE
532 * RadioError:INVALID_ARGUMENTS
533 * RadioError:RADIO_NOT_AVAILABLE
534 * RadioError:SS_MODIFIED_TO_DIAL
535 * RadioError:SS_MODIFIED_TO_USSD
536 * RadioError:SS_MODIFIED_TO_SS
537 * RadioError:INVALID_ARGUMENTS
538 * RadioError:SYSTEM_ERR
539 * RadioError:GENERIC_FAILURE
540 */
541 oneway setClirResponse(RadioResponseInfo info);
542
543 /*
544 * @param info Response info struct containing response type, serial no. & error
545 * @param callForwardInfos points to a vector of CallForwardInfo, one for
546 * each distinct registered phone number.
547 *
548 * For example, if data is forwarded to +18005551212 and voice is forwarded
549 * to +18005559999, then two separate CallForwardInfo's must be returned
550 *
551 * If, however, both data and voice are forwarded to +18005551212, then
552 * a single CallForwardInfo must be returned with the service class
553 * set to "data + voice = 3")
554 *
555 * Valid errors returned:
556 * RadioError:NONE
557 * RadioError:RADIO_NOT_AVAILABLE
558 * RadioError:SS_MODIFIED_TO_DIAL
559 * RadioError:SS_MODIFIED_TO_USSD
560 * RadioError:SS_MODIFIED_TO_SS
561 * RadioError:INVALID_ARGUMENTS
562 * RadioError:NO_MEMORY
563 * RadioError:SYSTEM_ERR
564 * RadioError:MODEM_ERR
565 * RadioError:INTERNAL_ERR
566 * RadioError:FDN_CHECK_FAILURE
567 * RadioError:GENERIC_FAILURE
568 */
569 oneway getCallForwardStatusResponse(RadioResponseInfo info,
570 vec<CallForwardInfo> callForwardInfos);
571
572 /*
573 * @param info Response info struct containing response type, serial no. & error
574 *
575 * Valid errors returned:
576 * RadioError:NONE
577 * RadioError:RADIO_NOT_AVAILABLE
578 * RadioError:SS_MODIFIED_TO_DIAL
579 * RadioError:SS_MODIFIED_TO_USSD
580 * RadioError:SS_MODIFIED_TO_SS
581 * RadioError:INVALID_ARGUMENTS
582 * RadioError:NO_MEMORY
583 * RadioError:SYSTEM_ERR
584 * RadioError:MODEM_ERR
585 * RadioError:INTERNAL_ERR
586 * RadioError:INVALID_STATE
587 * RadioError:FDN_CHECK_FAILURE
588 * RadioError:GENERIC_FAILURE
589 */
590 oneway setCallForwardResponse(RadioResponseInfo info);
591
592 /*
593 * @param info Response info struct containing response type, serial no. & error
594 * @param enable If current call waiting state is disabled, enable = false else true
595 * @param serviceClass If enable, then callWaitingResp[1]
596 * must follow, with the TS 27.007 service class bit vector of services
597 * for which call waiting is enabled.
598 * For example, if callWaitingResp[0] is 1 and
599 * callWaitingResp[1] is 3, then call waiting is enabled for data
600 * and voice and disabled for everything else.
601 *
602 * Valid errors returned:
603 * RadioError:NONE
604 * RadioError:RADIO_NOT_AVAILABLE
605 * RadioError:SS_MODIFIED_TO_DIAL
606 * RadioError:SS_MODIFIED_TO_USSD
607 * RadioError:SS_MODIFIED_TO_SS
608 * RadioError:INVALID_ARGUMENTS
609 * RadioError:NO_MEMORY
610 * RadioError:MODEM_ERR
611 * RadioError:INTERNAL_ERR
612 * RadioError:FDN_CHECK_FAILURE
613 * RadioError:GENERIC_FAILURE
614 */
615 oneway getCallWaitingResponse(RadioResponseInfo info, bool enable, int32_t serviceClass);
616
617 /*
618 * @param info Response info struct containing response type, serial no. & error
619 *
620 * Valid errors returned:
621 * RadioError:NONE
622 * RadioError:RADIO_NOT_AVAILABLE
623 * RadioError:SS_MODIFIED_TO_DIAL
624 * RadioError:SS_MODIFIED_TO_USSD
625 * RadioError:SS_MODIFIED_TO_SS
626 * RadioError:INVALID_ARGUMENTS
627 * RadioError:NO_MEMORY
628 * RadioError:MODEM_ERR
629 * RadioError:INTERNAL_ERR
630 * RadioError:INVALID_STATE
631 * RadioError:FDN_CHECK_FAILURE
632 * RadioError:GENERIC_FAILURE
633 */
634 oneway setCallWaitingResponse(RadioResponseInfo info);
635
636 /*
637 * @param info Response info struct containing response type, serial no. & error
638 *
639 * Valid errors returned:
640 * RadioError:NONE
641 * RadioError:INVALID_ARGUMENTS
642 * RadioError:RADIO_NOT_AVAILABLE
643 * RadioError:GENERIC_FAILURE
644 */
645 oneway acknowledgeLastIncomingGsmSmsResponse(RadioResponseInfo info);
646
647 /*
648 * @param info Response info struct containing response type, serial no. & error
649 *
650 * Valid errors returned:
651 * RadioError:NONE
652 * RadioError:INVALID_ARGUMENTS
653 * RadioError:RADIO_NOT_AVAILABLE
654 * RadioError:INVALID_STATE
655 * RadioError:NO_MEMORY
656 * RadioError:SYSTEM_ERR
657 * RadioError:MODEM_ERR
658 * RadioError:INTERNAL_ERR
659 * RadioError:INVALID_CALL_ID
660 * RadioError:GENERIC_FAILURE
661 */
662 oneway acceptCallResponse(RadioResponseInfo info);
663
664 /*
665 * @param info Response info struct containing response type, serial no. & error
666 *
667 * Valid errors returned:
668 * RadioError:NONE
669 * RadioError:INVALID_ARGUMENTS
670 * RadioError:RADIO_NOT_AVAILABLE
671 * RadioError:GENERIC_FAILURE
672 */
673 oneway deactivateDataCallResponse(RadioResponseInfo info);
674
675 /*
676 * @param info Response info struct containing response type, serial no. & error
677 * @param response 0 is the TS 27.007 service class bit vector of
678 * services for which the specified barring facility
679 * is active. "0" means "disabled for all"
680 *
681 * Valid errors returned:
682 * RadioError:NONE
683 * RadioError:RADIO_NOT_AVAILABLE
684 * RadioError:SS_MODIFIED_TO_DIAL
685 * RadioError:SS_MODIFIED_TO_USSD
686 * RadioError:SS_MODIFIED_TO_SS
687 * RadioError:INVALID_ARGUMENTS
688 * RadioError:NO_MEMORY
689 * RadioError:MODEM_ERR
690 * RadioError:INTERNAL_ERR
691 * RadioError:SYSTEM_ERR
692 * RadioError:FDN_CHECK_FAILURE
693 * RadioError:GENERIC_FAILURE
694 */
695 oneway getFacilityLockForAppResponse(RadioResponseInfo info, int32_t response);
696
697 /*
698 * @param info Response info struct containing response type, serial no. & error
699 * @param retry 0 is the number of retries remaining, or -1 if unknown
700 *
701 * Valid errors returned:
702 * RadioError:NONE
703 * RadioError:RADIO_NOT_AVAILABLE
704 * RadioError:SS_MODIFIED_TO_DIAL
705 * RadioError:SS_MODIFIED_TO_USSD
706 * RadioError:SS_MODIFIED_TO_SS
707 * RadioError:INVALID_ARGUMENTS
708 * RadioError:NO_MEMORY
709 * RadioError:MODEM_ERR
710 * RadioError:INTERNAL_ERR
711 * RadioError:INVALID_STATE
712 * RadioError:FDN_CHECK_FAILURE
713 * RadioError:GENERIC_FAILURE
714 */
715 oneway setFacilityLockForAppResponse(RadioResponseInfo info, int32_t retry);
716
717 /*
718 * @param info Response info struct containing response type, serial no. & error
719 *
720 * Valid errors returned:
721 * RadioError:NONE
722 * RadioError:RADIO_NOT_AVAILABLE
723 * RadioError:SS_MODIFIED_TO_DIAL
724 * RadioError:SS_MODIFIED_TO_USSD
725 * RadioError:SS_MODIFIED_TO_SS
726 * RadioError:INVALID_ARGUMENTS
727 * RadioError:NO_MEMORY
728 * RadioError:MODEM_ERR
729 * RadioError:INTERNAL_ERR
730 * RadioError:SYSTEM_ERR
731 * RadioError:FDN_CHECK_FAILURE
732 * RadioError:GENERIC_FAILURE
733 */
734 oneway setBarringPasswordResponse(RadioResponseInfo info);
735
736 /*
737 * @param info Response info struct containing response type, serial no. & error
738 * @param selection false for automatic selection, true for manual selection
739 *
740 * Valid errors returned:
741 * RadioError:NONE
742 * RadioError:INVALID_ARGUMENTS
743 * RadioError:RADIO_NOT_AVAILABLE
744 * RadioError:GENERIC_FAILURE
745 */
746 oneway getNetworkSelectionModeResponse(RadioResponseInfo info, bool manual);
747
748 /*
749 * @param info Response info struct containing response type, serial no. & error
750 *
751 * Valid errors returned:
752 * RadioError:NONE
753 * RadioError:INVALID_ARGUMENTS
754 * RadioError:RADIO_NOT_AVAILABLE
755 * RadioError:ILLEGAL_SIM_OR_ME
756 * RadioError:OPERATION_NOT_ALLOWED
757 * RadioError:GENERIC_FAILURE
758 *
759 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
760 * no retries needed, such as illegal SIM or ME.
761 * Returns RadioError:GENERIC_FAILURE for all other causes that might be fixed by retries.
762 */
763 oneway setNetworkSelectionModeAutomaticResponse(RadioResponseInfo info);
764
765 /*
766 * @param info Response info struct containing response type, serial no. & error
767 *
768 * Valid errors returned:
769 * RadioError:NONE
770 * RadioError:INVALID_ARGUMENTS
771 * RadioError:RADIO_NOT_AVAILABLE
772 * RadioError:ILLEGAL_SIM_OR_ME
773 * RadioError:OPERATION_NOT_ALLOWED
774 * RadioError:GENERIC_FAILURE
775 *
776 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
777 * no retries needed, such as illegal SIM or ME.
778 * Returns RadioError:GENERIC_FAILURE for all other causes that might be fixed by retries.
779 */
780 oneway setNetworkSelectionModeManualResponse(RadioResponseInfo info);
781
782 /*
783 * @param info Response info struct containing response type, serial no. & error
784 * @param networkInfos List of network operator information as OperatorInfos defined in
785 * types.hal
786 *
787 * Valid errors returned:
788 * RadioError:NONE
789 * RadioError:INVALID_ARGUMENTS
790 * RadioError:RADIO_NOT_AVAILABLE
791 * RadioError:OPERATION_NOT_ALLOWED
792 * RadioError:GENERIC_FAILURE
793 */
794 oneway getAvailableNetworksResponse(RadioResponseInfo info,
795 vec<OperatorInfo> networkInfos);
796
797 /*
798 * @param info Response info struct containing response type, serial no. & error
799 *
800 * Valid errors returned:
801 * RadioError:NONE
802 * RadioError:RADIO_NOT_AVAILABLE
803 * RadioError:INVALID_ARGUMENTS
804 * RadioError:NO_RESOURCES
805 * RadioError:NO_MEMORY
806 * RadioError:SYSTEM_ERR
807 * RadioError:MODEM_ERR
808 * RadioError:INTERNAL_ERR
809 * RadioError:INVALID_CALL_ID
810 * RadioError:GENERIC_FAILURE
811 */
812 oneway startDtmfResponse(RadioResponseInfo info);
813
814 /*
815 * @param info Response info struct containing response type, serial no. & error
816 *
817 * Valid errors returned:
818 * RadioError:NONE
819 * RadioError:RADIO_NOT_AVAILABLE
820 * RadioError:INVALID_ARGUMENTS
821 * RadioError:NO_RESOURCES
822 * RadioError:NO_MEMORY
823 * RadioError:INVALID_ARGUMENTS
824 * RadioError:SYSTEM_ERR
825 * RadioError:MODEM_ERR
826 * RadioError:INTERNAL_ERR
827 * RadioError:INVALID_CALL_ID
828 * RadioError:GENERIC_FAILURE
829 */
830 oneway stopDtmfResponse(RadioResponseInfo info);
831
832 /*
833 * @param info Response info struct containing response type, serial no. & error
834 * @param version string containing version string for log reporting
835 *
836 * Valid errors returned:
837 * RadioError:NONE
838 * RadioError:RADIO_NOT_AVAILABLE
839 * RadioError:INVALID_ARGUMENTS
840 * RadioError:EMPTY_RECORD
841 * RadioError:GENERIC_FAILURE
842 */
843 oneway getBasebandVersionResponse(RadioResponseInfo info, string version);
844
845 /*
846 * @param info Response info struct containing response type, serial no. & error
847 *
848 * Valid errors returned:
849 * RadioError:NONE
850 * RadioError:RADIO_NOT_AVAILABLE
851 * RadioError:INVALID_ARGUMENTS
852 * RadioError:INVALID_STATE
853 * RadioError:NO_RESOURCES
854 * RadioError:NO_MEMORY
855 * RadioError:MODEM_ERR
856 * RadioError:SYSTEM_ERR
857 * RadioError:INTERNAL_ERR
858 * RadioError:INVALID_CALL_ID
859 * RadioError:OPERATION_NOT_ALLOWED
860 * RadioError:GENERIC_FAILURE
861 */
862 oneway separateConnectionResponse(RadioResponseInfo info);
863
864 /*
865 * @param info Response info struct containing response type, serial no. & error
866 *
867 * Valid errors returned:
868 * RadioError:NONE
869 * RadioError:RADIO_NOT_AVAILABLE
870 * RadioError:INVALID_ARGUMENTS
871 * RadioError:NO_MEMORY
872 * RadioError:REQUEST_RATE_LIMITED
873 * RadioError:GENERIC_FAILURE
874 */
875 oneway setMuteResponse(RadioResponseInfo info);
876
877 /*
878 * @param info Response info struct containing response type, serial no. & error
879 * @param enable true for "mute enabled" & false for "mute disabled"
880 *
881 * Valid errors returned:
882 * RadioError:NONE
883 * RadioError:RADIO_NOT_AVAILABLE
884 * RadioError:INVALID_ARGUMENTS
885 * RadioError:SS_MODIFIED_TO_DIAL
886 * RadioError:SS_MODIFIED_TO_USSD
887 * RadioError:SS_MODIFIED_TO_SS
888 * RadioError:NO_MEMORY
889 * RadioError:REQUEST_RATE_LIMITED
890 * RadioError:GENERIC_FAILURE
891 */
892 oneway getMuteResponse(RadioResponseInfo info, bool enable);
893
894 /*
895 * @param info Response info struct containing response type, serial no. & error
896 * @param status indicates CLIP status
897 *
898 * Valid errors returned:
899 * RadioError:NONE
900 * RadioError:RADIO_NOT_AVAILABLE
901 * RadioError:INVALID_ARGUMENTS
902 * RadioError:NO_MEMORY
903 * RadioError:SYSTEM_ERR
904 * RadioError:MODEM_ERR
905 * RadioError:INTERNAL_ERR
906 * RadioError:FDN_CHECK_FAILURE
907 * RadioError:GENERIC_FAILURE
908 */
909 oneway getClipResponse(RadioResponseInfo info, ClipStatus status);
910
911 /*
912 * @param info Response info struct containing response type, serial no. & error
913 * @param dcResponse List of DataCallResult as defined in types.hal
914 *
915 * Valid errors returned:
916 * RadioError:NONE
917 * RadioError:RADIO_NOT_AVAILABLE
918 * RadioError:INVALID_ARGUMENTS
919 * RadioError:GENERIC_FAILURE
920 */
921 oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
922
923 /*
924 * @param info Response info struct containing response type, serial no. & error
925 * @param data data returned by oem
926 *
927 * Valid errors returned:
928 * RadioError:NONE
929 * RadioError:RADIO_NOT_AVAILABLE
930 * RadioError:INVALID_ARGUMENTS
931 * RadioError:OEM_ERROR_X
932 */
933 oneway sendOemRilRequestRawResponse(RadioResponseInfo info, vec<uint8_t> data);
934
935 /*
936 * @param info Response info struct containing response type, serial no. & error
937 * @param data data returned by oem
938 *
939 * Valid errors returned:
940 * RadioError:NONE
941 * RadioError:RADIO_NOT_AVAILABLE
942 * RadioError:INVALID_ARGUMENTS
943 * RadioError:OEM_ERROR_X
944 */
945 oneway sendOemRilRequestStringsResponse(RadioResponseInfo info, vec<string> data);
946
947 /*
948 * @param info Response info struct containing response type, serial no. & error
949 *
950 * Valid errors returned:
951 * RadioError:NONE
952 * RadioError:RADIO_NOT_AVAILABLE
953 * RadioError:INVALID_ARGUMENTS
954 * RadioError:GENERIC_FAILURE
955 */
956 oneway sendScreenStateResponse(RadioResponseInfo info);
957
958 /*
959 * @param info Response info struct containing response type, serial no. & error
960 *
961 * Valid errors returned:
962 * RadioError:NONE
963 * RadioError:RADIO_NOT_AVAILABLE
964 * RadioError:INVALID_ARGUMENTS
965 * RadioError:SIM_BUSY
966 * RadioError:NO_MEMORY
967 * RadioError:SYSTEM_ERR
968 * RadioError:MODEM_ERR
969 * RadioError:INTERNAL_ERR
970 * RadioError:GENERIC_FAILURE
971 */
972 oneway setSuppServiceNotificationsResponse(RadioResponseInfo info);
973
974 /*
975 * @param info Response info struct containing response type, serial no. & error
976 * @param index record index where the message is stored
977 *
978 * Valid errors returned:
979 * RadioError:NONE
980 * RadioError:SIM_FULL
981 * RadioError:INVALID_ARGUMENTS
982 * RadioError:INVALID_SMS_FORMAT
983 * RadioError:INTERNAL_ERR
984 * RadioError:MODEM_ERR
985 * RadioError:ENCODING_ERR
986 * RadioError:NO_MEMORY
987 * RadioError:NO_RESOURCES
988 * RadioError:INVALID_MODEM_STATE
989 * RadioError:MODE_NOT_SUPPORTED
990 * RadioError:INVALID_SMSC_ADDRESS
991 * RadioError:GENERIC_FAILURE
992 */
993 oneway writeSmsToSimResponse(RadioResponseInfo info, int32_t index);
994
995 /*
996 * @param info Response info struct containing response type, serial no. & error
997 *
998 * Valid errors returned:
999 * RadioError:NONE
1000 * RadioError:SIM_FULL
1001 * RadioError:INVALID_ARGUMENTS
1002 * RadioError:NO_MEMORY
1003 * RadioError:REQUEST_RATE_LIMITED
1004 * RadioError:SYSTEM_ERR
1005 * RadioError:MODEM_ERR
1006 * RadioError:NO_SUCH_ENTRY
1007 * RadioError:GENERIC_FAILURE
1008 */
1009 oneway deleteSmsOnSimResponse(RadioResponseInfo info);
1010
1011 /*
1012 * @param info Response info struct containing response type, serial no. & error
1013 *
1014 * Valid errors returned:
1015 * RadioError:NONE
1016 * RadioError:RADIO_NOT_AVAILABLE
1017 * RadioError:INVALID_ARGUMENTS
1018 * RadioError:OPERATION_NOT_ALLOWED
1019 * RadioError:GENERIC_FAILURE
1020 */
1021 oneway setBandModeResponse(RadioResponseInfo info);
1022
1023 /*
1024 * @param info Response info struct containing response type, serial no. & error
1025 * @param bandModes List of RadioBandMode listing supported modes
1026 *
1027 * Valid errors returned:
1028 * RadioError:NONE
1029 * RadioError:RADIO_NOT_AVAILABLE
1030 * RadioError:INVALID_ARGUMENTS
1031 * RadioError:GENERIC_FAILURE
1032 */
1033 oneway getAvailableBandModesResponse(RadioResponseInfo info, vec<RadioBandMode> bandModes);
1034
1035 /*
1036 * @param info Response info struct containing response type, serial no. & error
1037 * @param commandResponse SAT/USAT response in hexadecimal format
1038 * string starting with first byte of response
1039 *
1040 * Valid errors returned:
1041 * RadioError:NONE
1042 * RadioError:RADIO_NOT_AVAILABLE
1043 * RadioError:INVALID_ARGUMENTS
1044 * RadioError:SIM_BUSY
1045 * RadioError:OPERATION_NOT_ALLOWED
1046 * RadioError:GENERIC_FAILURE
1047 */
1048 oneway sendEnvelopeResponse(RadioResponseInfo info, string commandResponse);
1049
1050 /*
1051 * @param info Response info struct containing response type, serial no. & error
1052 *
1053 * Valid errors returned:
1054 * RadioError:NONE
1055 * RadioError:RADIO_NOT_AVAILABLE
1056 * RadioError:INVALID_ARGUMENTS
1057 * RadioError:OPERATION_NOT_ALLOWED
1058 * RadioError:GENERIC_FAILURE
1059 */
1060 oneway sendTerminalResponseToSimResponse(RadioResponseInfo info);
Sanket Padawed52335c2016-11-03 16:46:32 -07001061
1062 /*
1063 * @param info Response info struct containing response type, serial no. & error
1064 *
1065 * Valid errors returned:
1066 * RadioError:NONE
1067 * RadioError:RADIO_NOT_AVAILABLE
1068 * RadioError:INVALID_ARGUMENTS
1069 * RadioError:OPERATION_NOT_ALLOWED
1070 * RadioError:GENERIC_FAILURE
1071 */
1072 oneway handleStkCallSetupRequestFromSimResponse(RadioResponseInfo info);
1073
1074 /*
1075 * @param info Response info struct containing response type, serial no. & error
1076 *
1077 * Valid errors returned:
1078 * RadioError:NONE
1079 * RadioError:RADIO_NOT_AVAILABLE
1080 * RadioError:INVALID_ARGUMENTS
1081 * RadioError:INVALID_STATE
1082 * RadioError:NO_RESOURCES
1083 * RadioError:NO_MEMORY
1084 * RadioError:SYSTEM_ERR
1085 * RadioError:MODEM_ERR
1086 * RadioError:INTERNAL_ERR
1087 * RadioError:INVALID_CALL_ID
1088 * RadioError:OPERATION_NOT_ALLOWED
1089 * RadioError:GENERIC_FAILURE
1090 */
1091 oneway explicitCallTransferResponse(RadioResponseInfo info);
1092
1093 /*
1094 * @param info Response info struct containing response type, serial no. & error
1095 *
1096 * Valid errors returned:
1097 * RadioError:NONE
1098 * RadioError:RADIO_NOT_AVAILABLE
1099 * RadioError:INVALID_ARGUMENTS
1100 * RadioError:OPERATION_NOT_ALLOWED
1101 * RadioError:MODE_NOT_SUPPORTED
1102 * RadioError:GENERIC_FAILURE
1103 */
1104 oneway setPreferredNetworkTypeResponse(RadioResponseInfo info);
1105
1106 /*
1107 * @param info Response info struct containing response type, serial no. & error
1108 * @param nwType RadioPreferredNetworkType defined in types.hal
1109 *
1110 * Valid errors returned:
1111 * RadioError:NONE
1112 * RadioError:RADIO_NOT_AVAILABLE
1113 * RadioError:INVALID_ARGUMENTS
1114 * RadioError:GENERIC_FAILURE
1115 */
1116 oneway getPreferredNetworkTypeResponse(RadioResponseInfo info,
1117 PreferredNetworkType nwType);
1118
1119 /*
1120 * @param info Response info struct containing response type, serial no. & error
1121 * @param cell RadioNeighboringCell defined in types.hal
1122 *
1123 * Valid errors returned:
1124 * RadioError:NONE
1125 * RadioError:RADIO_NOT_AVAILABLE
1126 * RadioError:INVALID_ARGUMENTS
1127 * RadioError:GENERIC_FAILURE
1128 */
1129 oneway getNeighboringCidsResponse(RadioResponseInfo info, NeighboringCell cell);
1130
1131 /*
1132 * @param info Response info struct containing response type, serial no. & error
1133 *
1134 * Valid errors returned:
1135 * RadioError:NONE
1136 * RadioError:RADIO_NOT_AVAILABLE
1137 * RadioError:INVALID_ARGUMENTS
1138 * RadioError:GENERIC_FAILURE
1139 */
1140 oneway setLocationUpdatesResponse(RadioResponseInfo info);
1141
1142 /*
1143 * @param info Response info struct containing response type, serial no. & error
1144 *
1145 * Valid errors returned:
1146 * RadioError:NONE
1147 * RadioError:RADIO_NOT_AVAILABLE
1148 * RadioError:INVALID_ARGUMENTS
1149 * RadioError:SIM_ABSENT
1150 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1151 * RadioError:GENERIC_FAILURE
1152 */
1153 oneway setCdmaSubscriptionSourceResponse(RadioResponseInfo info);
1154
1155 /*
1156 * @param info Response info struct containing response type, serial no. & error
1157 *
1158 * Valid errors returned:
1159 * RadioError:NONE
1160 * RadioError:RADIO_NOT_AVAILABLE
1161 * RadioError:INVALID_ARGUMENTS
1162 * RadioError:GENERIC_FAILURE
1163 */
1164 oneway setCdmaRoamingPreferenceResponse(RadioResponseInfo info);
1165
1166 /*
1167 * @param info Response info struct containing response type, serial no. & error
1168 * @param type CdmaRoamingType defined in types.hal
1169 *
1170 * Valid errors returned:
1171 * RadioError:NONE
1172 * RadioError:RADIO_NOT_AVAILABLE
1173 * RadioError:INVALID_ARGUMENTS
1174 * RadioError:GENERIC_FAILURE
1175 */
1176 oneway getCdmaRoamingPreferenceResponse(RadioResponseInfo info, CdmaRoamingType type);
1177
1178 /*
1179 * @param info Response info struct containing response type, serial no. & error
1180 *
1181 * Valid errors returned:
1182 * RadioError:NONE
1183 * RadioError:RADIO_NOT_AVAILABLE
1184 * RadioError:INVALID_ARGUMENTS
1185 * RadioError:MODEM_ERR
1186 * RadioError:INTERNAL_ERR
1187 * RadioError:NO_MEMORY
1188 * RadioError:GENERIC_FAILURE
1189 */
1190 oneway setTTYModeResponse(RadioResponseInfo info);
1191
1192 /*
1193 * @param info Response info struct containing response type, serial no. & error
1194 * @param mode TtyMode
1195 *
1196 * Valid errors returned:
1197 * RadioError:NONE
1198 * RadioError:RADIO_NOT_AVAILABLE
1199 * RadioError:INVALID_ARGUMENTS
1200 * RadioError:MODEM_ERR
1201 * RadioError:INTERNAL_ERR
1202 * RadioError:NO_MEMORY
1203 * RadioError:GENERIC_FAILURE
1204 */
1205 oneway getTTYModeResponse(RadioResponseInfo info, TtyMode mode);
1206
1207 /*
1208 * @param info Response info struct containing response type, serial no. & error
1209 *
1210 * Valid errors returned:
1211 * RadioError:NONE
1212 * RadioError:RADIO_NOT_AVAILABLE
1213 * RadioError:INVALID_ARGUMENTS
1214 * RadioError:MODEM_ERR
1215 * RadioError:INTERNAL_ERR
1216 * RadioError:NO_MEMORY
1217 * RadioError:GENERIC_FAILURE
1218 */
1219 oneway setPreferredVoicePrivacyResponse(RadioResponseInfo info);
1220
1221 /*
1222 * @param info Response info struct containing response type, serial no. & error
1223 * @param enable false for Standard Privacy Mode (Public Long Code Mask)
1224 * true for Enhanced Privacy Mode (Private Long Code Mask)
1225 *
1226 * Valid errors:
1227 * RadioError:NONE
1228 * RadioError:RADIO_NOT_AVAILABLE
1229 * RadioError:INVALID_ARGUMENTS
1230 * RadioError:MODEM_ERR
1231 * RadioError:INTERNAL_ERR
1232 * RadioError:NO_MEMORY
1233 * RadioError:GENERIC_FAILURE
1234 */
1235 oneway getPreferredVoicePrivacyResponse(RadioResponseInfo info, bool enable);
1236
1237 /*
1238 * Response callback for IRadio.sendCDMAFeatureCode()
1239 *
1240 * @param info Response info struct containing response type, serial no. & error
1241 *
1242 * Valid errors returned:
1243 * RadioError:NONE
1244 * RadioError:RADIO_NOT_AVAILABLE
1245 * RadioError:INVALID_ARGUMENTS
1246 * RadioError:NO_MEMORY
1247 * RadioError:INTERNAL_ERR
1248 * RadioError:SYSTEM_ERR
1249 * RadioError:MODEM_ERR
1250 * RadioError:INVALID_CALL_ID
1251 * RadioError:INVALID_STATE
1252 * RadioError:GENERIC_FAILURE
1253 */
1254 oneway sendCDMAFeatureCodeResponse(RadioResponseInfo info);
1255
1256 /*
1257 * @param info Response info struct containing response type, serial no. & error
1258 *
1259 * Valid errors returned:
1260 * RadioError:NONE
1261 * RadioError:RADIO_NOT_AVAILABLE
1262 * RadioError:INVALID_ARGUMENTS
1263 * RadioError:NO_MEMORY
1264 * RadioError:INTERNAL_ERR
1265 * RadioError:SYSTEM_ERR
1266 * RadioError:MODEM_ERR
1267 * RadioError:INVALID_CALL_ID
1268 * RadioError:INVALID_STATE
1269 * RadioError:GENERIC_FAILURE
1270 */
1271 oneway sendBurstDtmfResponse(RadioResponseInfo info);
1272
1273 /*
1274 * @param info Response info struct containing response type, serial no. & error
1275 * @param sms Sms result struct as defined by SendSmsResult in types.hal
1276 *
1277 * Valid errors returned:
1278 * RadioError:NONE
1279 * RadioError:RADIO_NOT_AVAILABLE
1280 * RadioError:INVALID_ARGUMENTS
1281 * RadioError:SMS_SEND_FAIL_RETRY
1282 * RadioError:NETWORK_REJECT
1283 * RadioError:INVALID_STATE
1284 * RadioError:NO_MEMORY
1285 * RadioError:REQUEST_RATE_LIMITED
1286 * RadioError:INVALID_SMS_FORMAT
1287 * RadioError:SYSTEM_ERR
1288 * RadioError:FDN_CHECK_FAILURE
1289 * RadioError:MODEM_ERR
1290 * RadioError:NETWORK_ERR
1291 * RadioError:ENCODING_ERR
1292 * RadioError:INVALID_SMSC_ADDRESS
1293 * RadioError:MODE_NOT_SUPPORTED
1294 * RadioError:GENERIC_FAILURE
1295 */
1296 oneway sendCdmaSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1297
1298 /*
1299 * @param info Response info struct containing response type, serial no. & error
1300 *
1301 * Valid errors returned:
1302 * RadioError:NONE
1303 * RadioError:RADIO_NOT_AVAILABLE
1304 * RadioError:INVALID_ARGUMENTS
1305 * RadioError:NO_SMS_TO_ACK
1306 * RadioError:INVALID_STATE
1307 * RadioError:NO_MEMORY
1308 * RadioError:REQUEST_RATE_LIMITED
1309 * RadioError:SYSTEM_ERR
1310 * RadioError:MODEM_ERR
1311 * RadioError:MODE_NOT_SUPPORTED
1312 * RadioError:NETWORK_NOT_READY
1313 * RadioError:INVALID_MODEM_STATE
1314 * RadioError:GENERIC_FAILURE
1315 */
1316 oneway acknowledgeLastIncomingCdmaSmsResponse(RadioResponseInfo info);
1317
1318 /*
1319 * @param info Response info struct containing response type, serial no. & error
1320 * @param configInfo Setting of GSM/WCDMA Cell broadcast config
1321 *
1322 * Valid errors returned:
1323 * RadioError:NONE
1324 * RadioError:RADIO_NOT_AVAILABLE
1325 * RadioError:INVALID_ARGUMENTS
1326 * RadioError:INVALID_STATE
1327 * RadioError:NO_MEMORY
1328 * RadioError:REQUEST_RATE_LIMITED
1329 * RadioError:SYSTEM_ERR
1330 * RadioError:MODEM_ERR
1331 * RadioError:NO_RESOURCES
1332 * RadioError:GENERIC_FAILURE
1333 */
1334 oneway getGsmBroadcastConfigResponse(RadioResponseInfo info, GsmBroadcastSmsConfigInfo configInfo);
1335
1336 /*
1337 * @param info Response info struct containing response type, serial no. & error
1338 *
1339 * Valid errors returned:
1340 * RadioError:NONE
1341 * RadioError:RADIO_NOT_AVAILABLE
1342 * RadioError:INVALID_ARGUMENTS
1343 * RadioError:INVALID_STATE
1344 * RadioError:NO_MEMORY
1345 * RadioError:REQUEST_RATE_LIMITED
1346 * RadioError:SYSTEM_ERR
1347 * RadioError:MODEM_ERR
1348 * RadioError:GENERIC_FAILURE
1349 */
1350 oneway setGsmBroadcastConfigResponse(RadioResponseInfo info);
1351
1352 /*
1353 * @param info Response info struct containing response type, serial no. & error
1354 *
1355 * Valid errors returned:
1356 * RadioError:NONE
1357 * RadioError:RADIO_NOT_AVAILABLE
1358 * RadioError:INVALID_ARGUMENTS
1359 * RadioError:INVALID_STATE
1360 * RadioError:NO_MEMORY
1361 * RadioError:REQUEST_RATE_LIMITED
1362 * RadioError:SYSTEM_ERR
1363 * RadioError:MODEM_ERR
1364 * RadioError:GENERIC_FAILURE
1365 */
1366 oneway setGsmBroadcastActivationResponse(RadioResponseInfo info);
1367
1368 /*
1369 * @param info Response info struct containing response type, serial no. & error
1370 * @param configInfo CDMA Broadcast SMS config.
1371 *
1372 * Valid errors returned:
1373 * RadioError:NONE
1374 * RadioError:RADIO_NOT_AVAILABLE
1375 * RadioError:INVALID_ARGUMENTS
1376 * RadioError:INVALID_STATE
1377 * RadioError:NO_MEMORY
1378 * RadioError:REQUEST_RATE_LIMITED
1379 * RadioError:SYSTEM_ERR
1380 * RadioError:MODEM_ERR
1381 * RadioError:NO_RESOURCES
1382 * RadioError:GENERIC_FAILURE
1383 */
1384 oneway getCdmaBroadcastConfigResponse(RadioResponseInfo info, CdmaBroadcastSmsConfigInfo configInfo);
1385
1386 /*
1387 * @param info Response info struct containing response type, serial no. & error
1388 *
1389 * Valid errors returned:
1390 * RadioError:NONE
1391 * RadioError:RADIO_NOT_AVAILABLE
1392 * RadioError:INVALID_ARGUMENTS
1393 * RadioError:INVALID_STATE
1394 * RadioError:NO_MEMORY
1395 * RadioError:REQUEST_RATE_LIMITED
1396 * RadioError:SYSTEM_ERR
1397 * RadioError:MODEM_ERR
1398 * RadioError:GENERIC_FAILURE
1399 */
1400 oneway setCdmaBroadcastConfigResponse(RadioResponseInfo info);
1401
1402 /*
1403 * @param info Response info struct containing response type, serial no. & error
1404 *
1405 * Valid errors returned:
1406 * RadioError:NONE
1407 * RadioError:RADIO_NOT_AVAILABLE
1408 * RadioError:INVALID_ARGUMENTS
1409 * RadioError:INVALID_STATE
1410 * RadioError:NO_MEMORY
1411 * RadioError:REQUEST_RATE_LIMITED
1412 * RadioError:SYSTEM_ERR
1413 * RadioError:MODEM_ERR
1414 * RadioError:GENERIC_FAILURE
1415 */
1416 oneway setCdmaBroadcastActivationResponse(RadioResponseInfo info);
1417
1418 /*
1419 * @param info Response info struct containing response type, serial no. & error
1420 * @param mdn MDN if CDMA subscription is available
1421 * @param hSid is a comma separated list of H_SID (Home SID) if
1422 * CDMA subscription is available, in decimal format
1423 * @param hNid is a comma separated list of H_NID (Home NID) if
1424 * CDMA subscription is available, in decimal format
1425 * @param min MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
1426 * @param prl PRL version if CDMA subscription is available
1427 *
1428 * Valid errors returned:
1429 * RadioError:NONE
1430 * RadioError:RADIO_NOT_AVAILABLE
1431 * RadioError:INVALID_ARGUMENTS
1432 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1433 * RadioError:GENERIC_FAILURE
1434 */
1435 oneway getCDMASubscriptionResponse(RadioResponseInfo info, string mdn, string hSid,
1436 string hNid, string min, string prl);
1437
1438 /*
1439 * @param info Response info struct containing response type, serial no. & error
1440 * @param index record index where the cmda sms message is stored
1441 *
1442 * Valid errors returned:
1443 * RadioError:NONE
1444 * RadioError:RADIO_NOT_AVAILABLE
1445 * RadioError:INVALID_ARGUMENTS
1446 * RadioError:INVALID_SMS_FORMAT
1447 * RadioError:SIM_FULL
1448 * RadioError:INTERNAL_ERR
1449 * RadioError:MODEM_ERR
1450 * RadioError:ENCODING_ERR
1451 * RadioError:NO_MEMORY
1452 * RadioError:NO_RESOURCES
1453 * RadioError:INVALID_MODEM_STATE
1454 * RadioError:MODE_NOT_SUPPORTED
1455 * RadioError:INVALID_SMSC_ADDRESS
1456 * RadioError:GENERIC_FAILURE
1457 */
1458 oneway writeSmsToRuimResponse(RadioResponseInfo info, uint32_t index);
1459
1460 /*
1461 * @param info Response info struct containing response type, serial no. & error
1462 *
1463 * Valid errors returned:
1464 * RadioError:NONE
1465 * RadioError:RADIO_NOT_AVAILABLE
1466 * RadioError:INVALID_ARGUMENTS
1467 * RadioError:NO_MEMORY
1468 * RadioError:REQUEST_RATE_LIMITED
1469 * RadioError:SYSTEM_ERR
1470 * RadioError:MODEM_ERR
1471 * RadioError:NO_SUCH_ENTRY
1472 * RadioError:GENERIC_FAILURE
1473 */
1474 oneway deleteSmsOnRuimResponse(RadioResponseInfo info);
1475
1476 /*
1477 * @param info Response info struct containing response type, serial no. & error
1478 * @param imei IMEI if GSM subscription is available
1479 * @param imeisv IMEISV if GSM subscription is available
1480 * @param esn ESN if CDMA subscription is available
1481 * @param meid MEID if CDMA subscription is available
1482 *
1483 * Valid errors returned:
1484 * RadioError:NONE
1485 * RadioError:RADIO_NOT_AVAILABLE
1486 * RadioError:INVALID_ARGUMENTS
1487 * RadioError:GENERIC_FAILURE
1488 *
1489 * If a empty string value is returned for any of the device id, it means that there was error
1490 * accessing the device.
1491 *
1492 */
1493 oneway getDeviceIdentityResponse(RadioResponseInfo info, string imei, string imeisv,
1494 string esn, string meid);
1495
1496 /*
1497 * @param info Response info struct containing response type, serial no. & error
1498 *
1499 * Valid errors returned:
1500 * RadioError:NONE
1501 * RadioError:RADIO_NOT_AVAILABLE
1502 * RadioError:INVALID_ARGUMENTS
1503 * RadioError:OPERATION_NO_ALLOWED
1504 * RadioError:GENERIC_FAILURE
1505 */
1506 oneway exitEmergencyCallbackModeResponse(RadioResponseInfo info);
1507
1508 /*
1509 * @param info Response info struct containing response type, serial no. & error
1510 * @param smsc Short Message Service Center address on the device
1511 *
1512 * Valid errors returned:
1513 * RadioError:NONE
1514 * RadioError:RADIO_NOT_AVAILABLE
1515 * RadioError:INVALID_ARGUMENTS
1516 * RadioError:INTERNAL_ERR
1517 * RadioError:NO_MEMORY
1518 * RadioError:SYSTEM_ERR
1519 * RadioError:REQUEST_RATE_LIMITED
1520 * RadioError:MODEM_ERR
1521 * RadioError:INVALID_MODEM_STATE
1522 * RadioError:NOT_PROVISIONED
1523 * RadioError:GENERIC_FAILURE
1524 */
1525 oneway getSmscAddressResponse(RadioResponseInfo info, string smsc);
1526
1527 /*
1528 * @param info Response info struct containing response type, serial no. & error
1529 *
1530 * Valid errors returned:
1531 * RadioError:NONE
1532 * RadioError:RADIO_NOT_AVAILABLE
1533 * RadioError:INVALID_ARGUMENTS
1534 * RadioError:INVALID_SMS_FORMAT
1535 * RadioError:NO_MEMORY
1536 * RadioError:SYSTEM_ERR
1537 * RadioError:REQUEST_RATE_LIMITED
1538 * RadioError:MODEM_ERR
1539 * RadioError:NO_RESOURCES
1540 * RadioError:GENERIC_FAILURE
1541 */
1542 oneway setSmscAddressResponse(RadioResponseInfo info);
1543
1544 /*
1545 * @param info Response info struct containing response type, serial no. & error
1546 *
1547 * Valid errors returned:
1548 * RadioError:NONE
1549 * RadioError:RADIO_NOT_AVAILABLE
1550 * RadioError:INVALID_ARGUMENTS
1551 * RadioError:NO_MEMORY
1552 * RadioError:SYSTEM_ERR
1553 * RadioError:REQUEST_RATE_LIMITED
1554 * RadioError:MODEM_ERR
1555 * RadioError:INVALID_STATE
1556 * RadioError:GENERIC_FAILURE
1557 */
1558 oneway reportSmsMemoryStatusResponse(RadioResponseInfo info);
1559
1560 /*
1561 * @param info Response info struct containing response type, serial no. & error
1562 * @param source CDMA subscription source
1563 *
1564 * Valid errors returned:
1565 * RadioError:NONE
1566 * RadioError:RADIO_NOT_AVAILABLE
1567 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1568 * RadioError:GENERIC_FAILURE
1569 */
1570 oneway getCdmaSubscriptionSourceResponse(RadioResponseInfo info, CdmaSubscriptionSource source);
1571
1572 /*
1573 * @param info Response info struct containing response type, serial no. & error
1574 * @param response response string of the challenge/response algo for ISIM auth in base64 format
1575 *
1576 * Valid errors returned:
1577 * RadioError:NONE
1578 * RadioError:RADIO_NOT_AVAILABLE
1579 * RadioError:GENERIC_FAILURE
1580 */
1581 oneway requestIsimAuthenticationResponse(RadioResponseInfo info, string response);
1582
1583 /*
1584 * @param info Response info struct containing response type, serial no. & error
1585 *
1586 * Valid errors returned:
1587 * RadioError:NONE
1588 * RadioError:RADIO_NOT_AVAILABLE
1589 * RadioError:GENERIC_FAILURE
1590 */
1591 oneway acknowledgeIncomingGsmSmsWithPduResponse(RadioResponseInfo info);
1592
1593 /*
1594 * @param info Response info struct containing response type, serial no. & error
1595 * @param iccIo IccIoResult as defined in types.hal corresponding to ICC IO response
1596 *
1597 * Valid errors returned:
1598 * RadioError:NONE
1599 * RadioError:RADIO_NOT_AVAILABLE
1600 * RadioError:SIM_BUSY
1601 * RadioError:OPERATION_NOT_ALLOWED
1602 * RadioError:GENERIC_FAILURE
1603 */
1604 oneway sendEnvelopeWithStatusResponse(RadioResponseInfo info, IccIoResult iccIo);
1605
1606 /*
1607 * @param info Response info struct containing response type, serial no. & error
1608 * @param rat Current voice RAT
1609 *
1610 * Valid errors returned:
1611 * RadioError:NONE
1612 * RadioError:RADIO_NOT_AVAILABLE
1613 * RadioError:GENERIC_FAILURE
1614 */
1615 oneway getVoiceRadioTechnologyResponse(RadioResponseInfo info, RadioTechnology rat);
1616
1617 /*
1618 * @param info Response info struct containing response type, serial no. & error
1619 * @param cellInfo List of current cell information known to radio
1620 *
1621 * Valid errors returned:
1622 * RadioError:NONE
1623 * RadioError:RADIO_NOT_AVAILABLE
1624 * RadioError:GENERIC_FAILURE
1625 */
1626 oneway getCellInfoListResponse(RadioResponseInfo info, vec<CellInfo> cellInfo);
1627
1628 /*
1629 * @param info Response info struct containing response type, serial no. & error
1630 *
1631 * Valid errors returned:
1632 * RadioError:NONE
1633 * RadioError:RADIO_NOT_AVAILABLE
1634 * RadioError:GENERIC_FAILURE
1635 */
1636 oneway setCellInfoListRateResponse(RadioResponseInfo info);
1637
1638 /*
1639 * @param info Response info struct containing response type, serial no. & error
1640 *
1641 * Valid errors returned:
1642 * RadioError:NONE
1643 * RadioError:RADIO_NOT_AVAILABLE
1644 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1645 * RadioError:GENERIC_FAILURE
1646 */
1647 oneway setInitialAttachApnResponse(RadioResponseInfo info);
1648
1649 /*
1650 * @param info Response info struct containing response type, serial no. & error
1651 * @param isRegistered false = not registered, true = registered
1652 * @param ratFamily RadioTechnologyFamily as defined in types.hal. This value is valid only if
1653 * isRegistered is true.
1654 *
1655 * Valid errors returned:
1656 * RadioError:NONE
1657 * RadioError:RADIO_NOT_AVAILABLE
1658 * RadioError:GENERIC_FAILURE
1659 */
1660 oneway getImsRegistrationStateResponse(RadioResponseInfo info, bool isRegistered,
1661 RadioTechnologyFamily ratFamily);
1662
1663 /*
1664 * @param info Response info struct containing response type, serial no. & error
1665 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
1666 *
1667 * Valid errors returned:
1668 * RadioError:NONE
1669 * RadioError:RADIO_NOT_AVAILABLE
1670 * RadioError:SMS_SEND_FAIL_RETRY
1671 * RadioError:FDN_CHECK_FAILURE
1672 * RadioError:NETWORK_REJECT
1673 * RadioError:INVALID_ARGUMENTS
1674 * RadioError:INVALID_STATE
1675 * RadioError:NO_MEMORY
1676 * RadioError:INVALID_SMS_FORMAT
1677 * RadioError:SYSTEM_ERR
1678 * RadioError:REQUEST_RATE_LIMITED
1679 * RadioError:MODEM_ERR
1680 * RadioError:NETWORK_ERR
1681 * RadioError:ENCODING_ERR
1682 * RadioError:MODE_NOT_SUPPORTED
1683 * RadioError:GENERIC_FAILURE
1684 */
1685 oneway sendImsSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1686
1687 /*
1688 * @param info Response info struct containing response type, serial no. & error
1689 * @param result IccIoResult as defined in types.hal
1690 *
1691 * Valid errors returned:
1692 * RadioError:NONE
1693 * RadioError:RADIO_NOT_AVAILABLE
1694 * RadioError:GENERIC_FAILURE
1695 */
1696 oneway iccTransmitApduBasicChannelResponse(RadioResponseInfo info, IccIoResult result);
1697
1698 /*
1699 * @param info Response info struct containing response type, serial no. & error
1700 * @param channelId session id of the logical channel.
1701 * @param selectResponse Contains the select response for the open channel command with one
1702 * byte per integer
1703 *
1704 * Valid errors returned:
1705 * RadioError:NONE
1706 * RadioError:RADIO_NOT_AVAILABLE
1707 * RadioError:GENERIC_FAILURE
1708 * RadioError:MISSING_RESOURCE
1709 * RadioError:NO_SUCH_ELEMENT
1710 */
1711 oneway iccOpenLogicalChannelResponse(RadioResponseInfo info, int32_t channelId,
1712 vec<int8_t> selectResponse);
1713
1714 /*
1715 * @param info Response info struct containing response type, serial no. & error
1716 *
1717 * Valid errors returned:
1718 * RadioError:NONE
1719 * RadioError:RADIO_NOT_AVAILABLE
1720 * RadioError:GENERIC_FAILURE
1721 */
1722 oneway iccCloseLogicalChannelResponse(RadioResponseInfo info);
1723
1724 /*
1725 * @param info Response info struct containing response type, serial no. & error
1726 * @param result IccIoResult as defined in types.hal
1727 *
1728 * Valid errors returned:
1729 * RadioError:NONE
1730 * RadioError:RADIO_NOT_AVAILABLE
1731 * RadioError:GENERIC_FAILURE
1732 */
1733 oneway iccTransmitApduLogicalChannelResponse(RadioResponseInfo info, IccIoResult result);
1734
1735 /*
1736 * @param info Response info struct containing response type, serial no. & error
1737 * @param result string containing the contents of the NV item
1738 *
1739 * Valid errors returned:
1740 * RadioError:NONE
1741 * RadioError:RADIO_NOT_AVAILABLE
1742 * RadioError:GENERIC_FAILURE
1743 */
1744 oneway nvReadItemResponse(RadioResponseInfo info, string result);
1745
1746 /*
1747 * @param info Response info struct containing response type, serial no. & error
1748 *
1749 * Valid errors returned:
1750 * RadioError:NONE
1751 * RadioError:RADIO_NOT_AVAILABLE
1752 * RadioError:GENERIC_FAILURE
1753 */
1754 oneway nvWriteItemResponse(RadioResponseInfo info);
1755
1756 /*
1757 * @param info Response info struct containing response type, serial no. & error
1758 *
1759 * Valid errors returned:
1760 * RadioError:NONE
1761 * RadioError:RADIO_NOT_AVAILABLE
1762 * RadioError:GENERIC_FAILURE
1763 */
1764 oneway nvWriteCdmaPrlResponse(RadioResponseInfo info);
1765
1766 /*
1767 * @param info Response info struct containing response type, serial no. & error
1768 *
1769 * Valid errors returned:
1770 * RadioError:NONE
1771 * RadioError:RADIO_NOT_AVAILABLE
1772 * RadioError:GENERIC_FAILURE
1773 */
1774 oneway nvResetConfigResponse(RadioResponseInfo info);
1775
1776 /*
1777 * @param info Response info struct containing response type, serial no. & error
1778 *
1779 * Valid errors returned:
1780 * RadioError:NONE
1781 * RadioError:RADIO_NOT_AVAILABLE
1782 * RadioError:SUBSCRIPTION_NOT_SUPPORTED
1783 * RadioError:GENERIC_FAILURE
1784 */
1785 oneway setUiccSubscriptionResponse(RadioResponseInfo info);
1786
1787 /*
1788 * @param info Response info struct containing response type, serial no. & error
1789 *
1790 * Valid errors returned:
1791 * RadioError:NONE
1792 * RadioError:RADIO_NOT_AVAILABLE
1793 * RadioError:GENERIC_FAILURE
1794 */
1795 oneway setDataAllowedResponse(RadioResponseInfo info);
1796
1797 /*
1798 * @param info Response info struct containing response type, serial no. & error
1799 * @param config Array of HardwareConfig of the radio.
1800 *
1801 * Valid errors returned:
1802 * RadioError:NONE
1803 * RadioError:RADIO_NOT_AVAILABLE
1804 */
1805 oneway getHardwareConfigResponse(RadioResponseInfo info, vec<HardwareConfig> config);
1806
1807 /*
1808 * @param info Response info struct containing response type, serial no. & error
1809 * @param result IccIoResult as defined in types.hal
1810 *
1811 * Valid errors returned:
1812 * RadioError:NONE
1813 * RadioError:RADIO_NOT_AVAILABLE
1814 */
1815 oneway requestIccSimAuthenticationResponse(RadioResponseInfo info, IccIoResult result);
1816
1817 /*
1818 * @param info Response info struct containing response type, serial no. & error
1819 *
1820 * Valid errors returned:
1821 * RadioError:NONE
1822 * RadioError:RADIO_NOT_AVAILABLE
1823 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1824 */
1825 oneway setDataProfileResponse(RadioResponseInfo info);
1826
1827 /*
1828 * @param info Response info struct containing response type, serial no. & error
1829 *
1830 * Valid errors returned:
1831 * RadioError:NONE
1832 * RadioError:RADIO_NOT_AVAILABLE
1833 * RadioError:OPERATION_NOT_ALLOWED
1834 * RadioError:GENERIC_FAILURE
1835 */
1836 oneway requestShutdownResponse(RadioResponseInfo info);
1837
1838 /*
1839 * @param info Response info struct containing response type, serial no. & error
1840 * @param rc Radio capability as defined by RadioCapability in types.hal
1841 *
1842 * Valid errors returned:
1843 * RadioError:NONE
1844 * RadioError:RADIO_NOT_AVAILABLE
1845 * RadioError:OPERATION_NOT_ALLOWED
1846 * RadioError:GENERIC_FAILURE
1847 */
1848 oneway getRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1849
1850 /*
1851 * @param info Response info struct containing response type, serial no. & error
1852 * @param rc Radio capability as defined by RadioCapability in types.hal used to
1853 * feedback return status
1854 *
1855 * Valid errors returned:
1856 * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds.
1857 * RadioError:RADIO_NOT_AVAILABLE
1858 * RadioError:OPERATION_NOT_ALLOWED
1859 * RadioError:GENERIC_FAILURE
1860 */
1861 oneway setRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1862
1863 /*
1864 * @param info Response info struct containing response type, serial no. & error
1865 * @param statusInfo LceStatusInfo indicating LCE status
1866 *
1867 * Valid errors returned:
1868 * RadioError:NONE
1869 * RadioError:RADIO_NOT_AVAILABLE
1870 * RadioError:LCE_NOT_SUPPORTED
1871 */
1872 oneway startLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1873
1874 /*
1875 * @param info Response info struct containing response type, serial no. & error
1876 * @param statusInfo LceStatusInfo indicating LCE status
1877 *
1878 * Valid errors returned:
1879 * RadioError:NONE
1880 * RadioError:RADIO_NOT_AVAILABLE
1881 * RadioError:LCE_NOT_SUPPORTED
1882 */
1883 oneway stopLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1884
1885 /*
1886 * @param info Response info struct containing response type, serial no. & error
1887 * @param lceInfo LceDataInfo indicating LCE data as defined in types.hal
1888 *
1889 * Valid errors returned:
1890 * RadioError:NONE
1891 * RadioError:RADIO_NOT_AVAILABLE
1892 * RadioError:LCE_NOT_SUPPORTED
1893 */
1894 oneway pullLceDataResponse(RadioResponseInfo info, LceDataInfo lceInfo);
1895
1896 /*
1897 * @param info Response info struct containing response type, serial no. & error
1898 * @param activityInfo modem activity information
1899 *
1900 * Valid errors returned:
1901 * RadioError:NONE
1902 * RadioError:RADIO_NOT_AVAILABLE
1903 * RadioError:GENERIC_FAILURE
1904 */
1905 oneway getModemActivityInfoResponse(RadioResponseInfo info, ActivityStatsInfo activityInfo);
1906
1907 /*
1908 * @param info Response info struct containing response type, serial no. & error
1909 * @param numAllowed number of allowed carriers which have been set correctly.
1910 * On success, it must match the length of list Carriers->allowedCarriers.
1911 * if Length of allowed carriers list is 0, numAllowed = 0.
1912 *
1913 * Valid errors returned:
1914 * RadioError:NONE
1915 * RadioError:RADIO_NOT_AVAILABLE
1916 * RadioError:INVALID_ARGUMENTS
1917 * RadioError:REQUEST_NOT_SUPPORTED
1918 */
1919 oneway setAllowedCarriersResponse(RadioResponseInfo info, int32_t numAllowed);
1920
1921 /*
1922 * Expected modem behavior:
1923 * Return list of allowed carriers, and if all carriers are allowed.
1924 *
1925 * @param info Response info struct containing response type, serial no. & error
1926 * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct.
1927 * If false, consider "carriers" struct
1928 * @param carriers Carrier restriction information.
1929 *
1930 * Valid errors returned:
1931 * RadioError:NONE
1932 * RadioError:RADIO_NOT_AVAILABLE
1933 * RadioError:REQUEST_NOT_SUPPORTED
1934 */
1935 oneway getAllowedCarriersResponse(RadioResponseInfo info, bool allAllowed,
1936 CarrierRestrictions carriers);
Sanket Padawe76372492016-10-27 13:20:49 -07001937};