OSDN Git Service

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