OSDN Git Service

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