OSDN Git Service

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