blob: bf5079272962fba541d437a877cc1d64bfa9f867 [file] [log] [blame]
Sanket Padawe76372492016-10-27 13:20:49 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.radio@1.0;
18
19/*
20 * Interface declaring response functions to solicited radio requests.
21 * Response functions defined in this interface are as per following convention:
22 * <xyz>Response is response to IRadio.<xyz>
23 */
24interface IRadioResponse {
25 /*
Sanket Padawe865834e2016-12-28 16:04:10 -080026 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070027 * @param cardStatus ICC card status as defined by CardStatus in types.hal
28 *
29 * Valid errors returned:
30 * RadioError:NONE
31 * RadioError:INVALID_ARGUMENTS
32 */
Sanket Padawe865834e2016-12-28 16:04:10 -080033 oneway getIccCardStatusResponse(RadioResponseInfo info, CardStatus cardStatus);
Sanket Padawe76372492016-10-27 13:20:49 -070034
35 /*
Sanket Padawe865834e2016-12-28 16:04:10 -080036 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070037 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
38 *
39 * Valid errors returned:
40 * RadioError:NONE
41 * RadioError:INVALID_ARGUMENTS
42 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
43 * RadioError:GENERIC_FAILURE
44 * RadioError:PASSWORD_INCORRECT
45 */
46 oneway supplyIccPinForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
47
48 /*
Sanket Padawe865834e2016-12-28 16:04:10 -080049 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070050 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
51 *
52 * Valid errors returned:
53 * RadioError:NONE
54 * RadioError:INVALID_ARGUMENTS
55 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
56 * RadioError:GENERIC_FAILURE
57 * RadioError:PASSWORD_INCORRECT (PUK is invalid)
58 */
59 oneway supplyIccPukForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
60
61 /*
Sanket Padawe865834e2016-12-28 16:04:10 -080062 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070063 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
64 *
65 * Valid errors returned:
66 * RadioError:NONE
67 * RadioError:INVALID_ARGUMENTS
68 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
69 * RadioError:GENERIC_FAILURE
70 * RadioError:PASSWORD_INCORRECT
71 */
72 oneway supplyIccPin2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
73
74 /*
Sanket Padawe865834e2016-12-28 16:04:10 -080075 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070076 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
77 * Valid errors returned:
78 * RadioError:NONE
79 * RadioError:INVALID_ARGUMENTS
80 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
81 * RadioError:GENERIC_FAILURE
82 * RadioError:PASSWORD_INCORRECT (PUK is invalid)
83 */
84 oneway supplyIccPuk2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
85
86 /*
Sanket Padawe865834e2016-12-28 16:04:10 -080087 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070088 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
89 *
90 * Valid errors returned:
91 * RadioError:NONE
92 * RadioError:INVALID_ARGUMENTS
93 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
94 * RadioError:GENERIC_FAILURE
95 * RadioError:PASSWORD_INCORRECT
96 */
97 oneway changeIccPinForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
98
99 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800100 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700101 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
102 *
103 * Valid errors returned:
104 * RadioError:NONE
105 * RadioError:INVALID_ARGUMENTS
106 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
107 * RadioError:GENERIC_FAILURE
108 * RadioError:PASSWORD_INCORRECT (old PIN2 is invalid)
109 */
110 oneway changeIccPin2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
111
112 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800113 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700114 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
115 *
116 * Valid errors returned:
117 * RadioError:NONE
118 * RadioError:INVALID_ARGUMENTS
119 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
120 * RadioError:GENERIC_FAILURE
121 * RadioError:PASSWORD_INCORRECT (code is invalid)
122 */
123 oneway supplyNetworkDepersonalizationResponse(RadioResponseInfo info, int32_t remainingRetries);
124
125 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800126 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700127 * @param calls Current call list
128 *
129 * Valid errors returned:
130 * RadioError:NONE
131 * RadioError:INVALID_ARGUMENTS
132 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
133 * RadioError:GENERIC_FAILURE (request will be made again in a few hundred msec)
134 * RadioError:NO_MEMORY
135 */
136 oneway getCurrentCallsResponse(RadioResponseInfo info, vec<Call> calls);
137
138 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800139 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700140 *
141 * Valid errors returned:
142 * RadioError:NONE
143 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
144 * RadioError:GENERIC_FAILURE
145 * RadioError:DIAL_MODIFIED_TO_USSD
146 * RadioError:DIAL_MODIFIED_TO_SS
147 * RadioError:DIAL_MODIFIED_TO_DIAL
148 * RadioError:INVALID_ARGUMENTS
149 * RadioError:NO_MEMORY
150 * RadioError:INVALID_STATE
151 * RadioError:NO_RESOURCES
152 * RadioError:INTERNAL_ERR
153 * RadioError:FDN_CHECK_FAILURE
154 * RadioError:MODEM_ERR
155 * RadioError:NO_SUBSCRIPTION
156 * RadioError:NO_NETWORK_FOUND
157 * RadioError:INVALID_CALL_ID
158 * RadioError:DEVICE_IN_USE
159 * RadioError:MODE_NOT_SUPPORTED
160 * RadioError:ABORTED
161 */
162 oneway dialResponse(RadioResponseInfo info);
163
164 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800165 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700166 * @param imsi String containing the IMSI
167 *
168 * Valid errors returned:
169 * RadioError:NONE
170 * RadioError:INVALID_ARGUMENTS
171 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
172 * RadioError:GENERIC_FAILURE
173 */
174 oneway getIMSIForAppResponse(RadioResponseInfo info, string imsi);
175
176 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800177 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700178 *
179 * Valid errors returned:
180 * RadioError:NONE
181 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
182 * RadioError:INVALID_ARGUMENTS
183 * RadioError:NO_MEMORY
184 * RadioError:INVALID_STATE
185 * RadioError:MODEM_ERR
186 * RadioError:INTERNAL_ERR
187 * RadioError:INVALID_CALL_ID
188 * RadioError:GENERIC_FAILURE
189 */
190 oneway hangupConnectionResponse(RadioResponseInfo info);
191
192 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800193 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700194 *
195 * Valid errors returned:
196 * RadioError:NONE
197 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
198 * RadioError:INVALID_STATE
199 * RadioError:NO_MEMORY
200 * RadioError:MODEM_ERR
201 * RadioError:INTERNAL_ERR
202 * RadioError:INVALID_CALL_ID
203 * RadioError:NO_RESOURCES
204 * RadioError:OPERATION_NOT_ALLOWED
205 * RadioError:INVALID_ARGUMENTS
206 * RadioError:GENERIC_FAILURE
207 */
208 oneway hangupWaitingOrBackgroundResponse(RadioResponseInfo info);
209
210 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800211 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700212 *
213 * Valid errors returned:
214 * RadioError:NONE
215 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
216 * RadioError:INVALID_STATE
217 * RadioError:NO_MEMORY
218 * RadioError:MODEM_ERR
219 * RadioError:INTERNAL_ERR
220 * RadioError:INVALID_CALL_ID
221 * RadioError:NO_RESOURCES
222 * RadioError:OPERATION_NOT_ALLOWED
223 * RadioError:INVALID_ARGUMENTS
224 * RadioError:GENERIC_FAILURE
225 */
226 oneway hangupForegroundResumeBackgroundResponse(RadioResponseInfo info);
227
228 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800229 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700230 *
231 * Valid errors returned:
232 * RadioError:NONE
233 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
234 * RadioError:INVALID_STATE
235 * RadioError:NO_MEMORY
236 * RadioError:MODEM_ERR
237 * RadioError:INTERNAL_ERR
238 * RadioError:INVALID_STATE
239 * RadioError:INVALID_CALL_ID
240 * RadioError:OPERATION_NOT_ALLOWED
241 * RadioError:INVALID_ARGUMENTS
242 * RadioError:GENERIC_FAILURE
243 */
244 oneway switchWaitingOrHoldingAndActiveResponse(RadioResponseInfo info);
245
246 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800247 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700248 *
249 * Valid errors returned:
250 * RadioError:NONE
251 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
252 * RadioError:NO_MEMORY
253 * RadioError:MODEM_ERR
254 * RadioError:INTERNAL_ERR
255 * RadioError:INVALID_STATE
256 * RadioError:INVALID_CALL_ID
257 * RadioError:OPERATION_NOT_ALLOWED
258 * RadioError:INVALID_ARGUMENTS
259 * RadioError:GENERIC_FAILURE
260 */
261 oneway conferenceResponse(RadioResponseInfo info);
262
263 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800264 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700265 *
266 * Valid errors returned:
267 * RadioError:NONE
268 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
269 * RadioError:INVALID_STATE
270 * RadioError:NO_RESOURCES
271 * RadioError:NO_MEMORY
272 * RadioError:MODEM_ERR
273 * RadioError:INTERNAL_ERR
274 * RadioError:INVALID_CALL_ID
275 * RadioError:OPERATION_NOT_ALLOWED
276 * RadioError:INVALID_ARGUMENTS
277 * RadioError:GENERIC_FAILURE
278 */
279 oneway rejectCallResponse(RadioResponseInfo info);
280
281 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800282 * @param info Response info struct containing response type, serial no. and error
283 * @param failCauseInfo Contains LastCallFailCause and vendor cause code. GSM failure reasons
284 * are mapped to cause codes defined in TS 24.008 Annex H where possible. CDMA
Sanket Padawe76372492016-10-27 13:20:49 -0700285 * failure reasons are derived from the possible call failure scenarios
286 * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard.
287 *
288 * The implementation must return LastCallFailCause:ERROR_UNSPECIFIED for blocked
289 * MO calls by restricted state (See unsolRestrictedStateChanged)
290 *
291 * If the implementation does not have access to the exact cause codes,
292 * then it must return one of the values listed in LastCallFailCause,
293 * as the UI layer needs to distinguish these cases for tone generation or
294 * error notification.
295 *
296 * Valid errors returned:
297 * RadioError:NONE
298 * RadioError:INVALID_ARGUMENTS
299 * RadioError:RADIO_NOT_AVAILABLE
300 * RadioError:NO_MEMORY
301 * RadioError:GENERIC_FAILURE
302 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800303 oneway getLastCallFailCauseResponse(RadioResponseInfo info,
304 LastCallFailCauseInfo failCauseinfo);
Sanket Padawe76372492016-10-27 13:20:49 -0700305
306 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800307 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700308 * @param sigStrength Current signal strength
309 *
310 * Valid errors returned:
311 * RadioError:NONE
312 * RadioError:INVALID_ARGUMENTS
313 * RadioError:RADIO_NOT_AVAILABLE
314 */
315 oneway getSignalStrengthResponse(RadioResponseInfo info, SignalStrength sigStrength);
316
317 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800318 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700319 * @param voiceRegResponse Current Voice registration response as defined by VoiceRegStateResult
320 * in types.hal
321 *
322 * Valid errors returned:
323 * RadioError:NONE
324 * RadioError:INVALID_ARGUMENTS
325 * RadioError:RADIO_NOT_AVAILABLE
326 * RadioError:GENERIC_FAILURE
327 */
328 oneway getVoiceRegistrationStateResponse(RadioResponseInfo info,
329 VoiceRegStateResult voiceRegResponse);
330
331 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800332 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700333 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
334 * types.hal
335 *
336 * Valid errors returned:
337 * RadioError:NONE
338 * RadioError:INVALID_ARGUMENTS
339 * RadioError:RADIO_NOT_AVAILABLE
340 * RadioError:GENERIC_FAILURE
341 */
342 oneway getDataRegistrationStateResponse(RadioResponseInfo info,
343 DataRegStateResult dataRegResponse);
344
345 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800346 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700347 * @param longName is long alpha ONS or EONS or empty string if unregistered
348 * @param shortName is short alpha ONS or EONS or empty string if unregistered
349 * @param numeric is 5 or 6 digit numeric code (MCC + MNC) or empty string if unregistered
350 *
351 * Valid errors returned:
352 * RadioError:NONE
353 * RadioError:INVALID_ARGUMENTS
354 * RadioError:RADIO_NOT_AVAILABLE
355 * RadioError:GENERIC_FAILURE
356 */
357 oneway getOperatorResponse(RadioResponseInfo info, string longName, string shortName,
358 string numeric);
359
360 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800361 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700362 *
363 * Valid errors returned:
364 * RadioError:NONE
365 * RadioError:INVALID_ARGUMENTS
366 * RadioError:RADIO_NOT_AVAILABLE
367 * RadioError:GENERIC_FAILURE
368 * RadioError:OPERATION_NOT_ALLOWED
369 */
370 oneway setRadioPowerResponse(RadioResponseInfo info);
371
372 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800373 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700374 *
375 * Valid errors returned:
376 * RadioError:NONE
377 * RadioError:RADIO_NOT_AVAILABLE
378 * RadioError:INVALID_ARGUMENTS
379 * RadioError:NO_RESOURCES
380 * RadioError:NO_MEMORY
381 * RadioError:MODEM_ERR
382 * RadioError:INVALID_CALL_ID
383 * RadioError:GENERIC_FAILURE
384 */
385 oneway sendDtmfResponse(RadioResponseInfo info);
386
387 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800388 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700389 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
390 *
391 * Valid errors returned:
392 * RadioError:NONE
393 * RadioError:RADIO_NOT_AVAILABLE
394 * RadioError:SMS_SEND_FAIL_RETRY
395 * RadioError:NETWORK_REJECT
396 * RadioError:INVALID_STATE
397 * RadioError:INVALID_ARGUMENTS
398 * RadioError:NO_MEMORY
399 * RadioError:REQUEST_RATE_LIMITED
400 * RadioError:INVALID_SMS_FORMAT
401 * RadioError:SYSTEM_ERR
402 * RadioError:ENCODING_ERR
403 * RadioError:INVALID_SMSC_ADDRESS
404 * RadioError:MODEM_ERR
405 * RadioError:NETWORK_ERR
406 * RadioError:MODE_NOT_SUPPORTED
407 * RadioError:GENERIC_FAILURE
408 */
409 oneway sendSmsResponse(RadioResponseInfo info, SendSmsResult sms);
410
411 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800412 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700413 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
414 *
415 * Valid errors returned:
416 * RadioError:NONE
417 * RadioError:RADIO_NOT_AVAILABLE
418 * RadioError:SMS_SEND_FAIL_RETRY
419 * RadioError:NETWORK_REJECT
420 * RadioError:INVALID_STATE
421 * RadioError:INVALID_ARGUMENTS
422 * RadioError:NO_MEMORY
423 * RadioError:REQUEST_RATE_LIMITED
424 * RadioError:INVALID_SMS_FORMAT
425 * RadioError:SYSTEM_ERR
426 * RadioError:FDN_CHECK_FAILURE
427 * RadioError:ENCODING_ERR
428 * RadioError:INVALID_SMSC_ADDRESS
429 * RadioError:MODEM_ERR
430 * RadioError:NETWORK_ERR
431 * RadioError:MODE_NOT_SUPPORTED
432 * RadioError:GENERIC_FAILURE
433 */
434 oneway sendSMSExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
435
436 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800437 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700438 * @param dcResponse SetupDataCallResult defined in types.hal
439 *
440 * Valid errors returned:
441 * RadioError:NONE must be returned on both success and failure of setup with the
442 * DataCallResponse.status containing the actual status
443 * For all other errors the DataCallResponse is ignored.
444 * RadioError:INVALID_ARGUMENTS
445 * RadioError:RADIO_NOT_AVAILABLE
446 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
447 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
448 * RadioError:REQUEST_NOT_SUPPORTED
449 * RadioError:GENERIC_FAILURE
450 */
451 oneway setupDataCallResponse(RadioResponseInfo info, SetupDataCallResult dcResponse);
452
453 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800454 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700455 * @param iccIo ICC io operation response as defined by IccIoResult in types.hal
Sanket Padawe76372492016-10-27 13:20:49 -0700456 *
457 * Valid errors returned:
458 * RadioError:NONE
459 * RadioError:INVALID_ARGUMENTS
460 * RadioError:RADIO_NOT_AVAILABLE
461 * RadioError:SIM_PIN2
462 * RadioError:SIM_PUK2
463 * RadioError:GENERIC_FAILURE
464 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800465 oneway iccIOForAppResponse(RadioResponseInfo info, IccIoResult iccIo);
Sanket Padawe76372492016-10-27 13:20:49 -0700466
467 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800468 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700469 *
470 * Valid errors returned:
471 * RadioError:NONE
472 * RadioError:RADIO_NOT_AVAILABLE
473 * RadioError:FDN_CHECK_FAILURE
474 * RadioError:USSD_MODIFIED_TO_DIAL
475 * RadioError:USSD_MODIFIED_TO_SS
476 * RadioError:USSD_MODIFIED_TO_USSD
477 * RadioError:SIM_BUSY
478 * RadioError:OPERATION_NOT_ALLOWED
479 * RadioError:INVALID_ARGUMENTS
480 * RadioError:NO_MEMORY
481 * RadioError:MODEM_ERR
482 * RadioError:INTERNAL_ERR
483 * RadioError:ABORTED
484 * RadioError:SYSTEM_ERR
485 * RadioError:INVALID_STATE
486 * RadioError:GENERIC_FAILURE
487 */
488 oneway sendUssdResponse(RadioResponseInfo info);
489
490 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800491 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700492 *
493 * Valid errors returned:
494 * RadioError:NONE
495 * RadioError:INVALID_ARGUMENTS
496 * RadioError:RADIO_NOT_AVAILABLE
497 * RadioError:SIM_BUSY
498 * RadioError:OPERATION_NOT_ALLOWED
499 * RadioError:MODEM_ERR
500 * RadioError:INTERNAL_ERR
501 * RadioError:NO_MEMORY
502 * RadioError:INVALID_STATE
503 * RadioError:GENERIC_FAILURE
504 */
505 oneway cancelPendingUssdResponse(RadioResponseInfo info);
506
507 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800508 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700509 * @param n is "n" parameter from TS 27.007 7.7
510 * @param m is "m" parameter from TS 27.007 7.7
511 *
512 * Valid errors returned:
513 * RadioError:NONE
514 * RadioError:INVALID_ARGUMENTS
515 * RadioError:RADIO_NOT_AVAILABLE
516 * RadioError:SS_MODIFIED_TO_DIAL
517 * RadioError:SS_MODIFIED_TO_USSD
518 * RadioError:SS_MODIFIED_TO_SS
519 * RadioError:NO_MEMORY
520 * RadioError:MODEM_ERR
521 * RadioError:INTERNAL_ERR
522 * RadioError:FDN_CHECK_FAILURE
523 * RadioError:SYSTEM_ERR
524 * RadioError:GENERIC_FAILURE
525 */
526 oneway getClirResponse(RadioResponseInfo info, int32_t n, int32_t m);
527
528 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800529 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700530 *
531 * Valid errors returned:
532 * RadioError:NONE
533 * RadioError:INVALID_ARGUMENTS
534 * RadioError:RADIO_NOT_AVAILABLE
535 * RadioError:SS_MODIFIED_TO_DIAL
536 * RadioError:SS_MODIFIED_TO_USSD
537 * RadioError:SS_MODIFIED_TO_SS
538 * RadioError:INVALID_ARGUMENTS
539 * RadioError:SYSTEM_ERR
540 * RadioError:GENERIC_FAILURE
541 */
542 oneway setClirResponse(RadioResponseInfo info);
543
544 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800545 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700546 * @param callForwardInfos points to a vector of CallForwardInfo, one for
547 * each distinct registered phone number.
548 *
549 * For example, if data is forwarded to +18005551212 and voice is forwarded
550 * to +18005559999, then two separate CallForwardInfo's must be returned
551 *
552 * If, however, both data and voice are forwarded to +18005551212, then
553 * a single CallForwardInfo must be returned with the service class
554 * set to "data + voice = 3")
555 *
556 * Valid errors returned:
557 * RadioError:NONE
558 * RadioError:RADIO_NOT_AVAILABLE
559 * RadioError:SS_MODIFIED_TO_DIAL
560 * RadioError:SS_MODIFIED_TO_USSD
561 * RadioError:SS_MODIFIED_TO_SS
562 * RadioError:INVALID_ARGUMENTS
563 * RadioError:NO_MEMORY
564 * RadioError:SYSTEM_ERR
565 * RadioError:MODEM_ERR
566 * RadioError:INTERNAL_ERR
567 * RadioError:FDN_CHECK_FAILURE
568 * RadioError:GENERIC_FAILURE
569 */
570 oneway getCallForwardStatusResponse(RadioResponseInfo info,
571 vec<CallForwardInfo> callForwardInfos);
572
573 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800574 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700575 *
576 * Valid errors returned:
577 * RadioError:NONE
578 * RadioError:RADIO_NOT_AVAILABLE
579 * RadioError:SS_MODIFIED_TO_DIAL
580 * RadioError:SS_MODIFIED_TO_USSD
581 * RadioError:SS_MODIFIED_TO_SS
582 * RadioError:INVALID_ARGUMENTS
583 * RadioError:NO_MEMORY
584 * RadioError:SYSTEM_ERR
585 * RadioError:MODEM_ERR
586 * RadioError:INTERNAL_ERR
587 * RadioError:INVALID_STATE
588 * RadioError:FDN_CHECK_FAILURE
589 * RadioError:GENERIC_FAILURE
590 */
591 oneway setCallForwardResponse(RadioResponseInfo info);
592
593 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800594 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700595 * @param enable If current call waiting state is disabled, enable = false else true
596 * @param serviceClass If enable, then callWaitingResp[1]
597 * must follow, with the TS 27.007 service class bit vector of services
598 * for which call waiting is enabled.
599 * For example, if callWaitingResp[0] is 1 and
600 * callWaitingResp[1] is 3, then call waiting is enabled for data
601 * and voice and disabled for everything else.
602 *
603 * Valid errors returned:
604 * RadioError:NONE
605 * RadioError:RADIO_NOT_AVAILABLE
606 * RadioError:SS_MODIFIED_TO_DIAL
607 * RadioError:SS_MODIFIED_TO_USSD
608 * RadioError:SS_MODIFIED_TO_SS
609 * RadioError:INVALID_ARGUMENTS
610 * RadioError:NO_MEMORY
611 * RadioError:MODEM_ERR
612 * RadioError:INTERNAL_ERR
613 * RadioError:FDN_CHECK_FAILURE
614 * RadioError:GENERIC_FAILURE
615 */
616 oneway getCallWaitingResponse(RadioResponseInfo info, bool enable, int32_t serviceClass);
617
618 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800619 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700620 *
621 * Valid errors returned:
622 * RadioError:NONE
623 * RadioError:RADIO_NOT_AVAILABLE
624 * RadioError:SS_MODIFIED_TO_DIAL
625 * RadioError:SS_MODIFIED_TO_USSD
626 * RadioError:SS_MODIFIED_TO_SS
627 * RadioError:INVALID_ARGUMENTS
628 * RadioError:NO_MEMORY
629 * RadioError:MODEM_ERR
630 * RadioError:INTERNAL_ERR
631 * RadioError:INVALID_STATE
632 * RadioError:FDN_CHECK_FAILURE
633 * RadioError:GENERIC_FAILURE
634 */
635 oneway setCallWaitingResponse(RadioResponseInfo info);
636
637 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800638 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700639 *
640 * Valid errors returned:
641 * RadioError:NONE
642 * RadioError:INVALID_ARGUMENTS
643 * RadioError:RADIO_NOT_AVAILABLE
644 * RadioError:GENERIC_FAILURE
645 */
646 oneway acknowledgeLastIncomingGsmSmsResponse(RadioResponseInfo info);
647
648 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800649 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700650 *
651 * Valid errors returned:
652 * RadioError:NONE
653 * RadioError:INVALID_ARGUMENTS
654 * RadioError:RADIO_NOT_AVAILABLE
655 * RadioError:INVALID_STATE
656 * RadioError:NO_MEMORY
657 * RadioError:SYSTEM_ERR
658 * RadioError:MODEM_ERR
659 * RadioError:INTERNAL_ERR
660 * RadioError:INVALID_CALL_ID
661 * RadioError:GENERIC_FAILURE
662 */
663 oneway acceptCallResponse(RadioResponseInfo info);
664
665 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800666 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700667 *
668 * Valid errors returned:
669 * RadioError:NONE
670 * RadioError:INVALID_ARGUMENTS
671 * RadioError:RADIO_NOT_AVAILABLE
672 * RadioError:GENERIC_FAILURE
673 */
674 oneway deactivateDataCallResponse(RadioResponseInfo info);
675
676 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800677 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700678 * @param response 0 is the TS 27.007 service class bit vector of
679 * services for which the specified barring facility
680 * is active. "0" means "disabled for all"
681 *
682 * Valid errors returned:
683 * RadioError:NONE
684 * RadioError:RADIO_NOT_AVAILABLE
685 * RadioError:SS_MODIFIED_TO_DIAL
686 * RadioError:SS_MODIFIED_TO_USSD
687 * RadioError:SS_MODIFIED_TO_SS
688 * RadioError:INVALID_ARGUMENTS
689 * RadioError:NO_MEMORY
690 * RadioError:MODEM_ERR
691 * RadioError:INTERNAL_ERR
692 * RadioError:SYSTEM_ERR
693 * RadioError:FDN_CHECK_FAILURE
694 * RadioError:GENERIC_FAILURE
695 */
696 oneway getFacilityLockForAppResponse(RadioResponseInfo info, int32_t response);
697
698 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800699 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700700 * @param retry 0 is the number of retries remaining, or -1 if unknown
701 *
702 * Valid errors returned:
703 * RadioError:NONE
704 * RadioError:RADIO_NOT_AVAILABLE
705 * RadioError:SS_MODIFIED_TO_DIAL
706 * RadioError:SS_MODIFIED_TO_USSD
707 * RadioError:SS_MODIFIED_TO_SS
708 * RadioError:INVALID_ARGUMENTS
709 * RadioError:NO_MEMORY
710 * RadioError:MODEM_ERR
711 * RadioError:INTERNAL_ERR
712 * RadioError:INVALID_STATE
713 * RadioError:FDN_CHECK_FAILURE
714 * RadioError:GENERIC_FAILURE
715 */
716 oneway setFacilityLockForAppResponse(RadioResponseInfo info, int32_t retry);
717
718 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800719 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700720 *
721 * Valid errors returned:
722 * RadioError:NONE
723 * RadioError:RADIO_NOT_AVAILABLE
724 * RadioError:SS_MODIFIED_TO_DIAL
725 * RadioError:SS_MODIFIED_TO_USSD
726 * RadioError:SS_MODIFIED_TO_SS
727 * RadioError:INVALID_ARGUMENTS
728 * RadioError:NO_MEMORY
729 * RadioError:MODEM_ERR
730 * RadioError:INTERNAL_ERR
731 * RadioError:SYSTEM_ERR
732 * RadioError:FDN_CHECK_FAILURE
733 * RadioError:GENERIC_FAILURE
734 */
735 oneway setBarringPasswordResponse(RadioResponseInfo info);
736
737 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800738 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700739 * @param selection false for automatic selection, true for manual selection
740 *
741 * Valid errors returned:
742 * RadioError:NONE
743 * RadioError:INVALID_ARGUMENTS
744 * RadioError:RADIO_NOT_AVAILABLE
745 * RadioError:GENERIC_FAILURE
746 */
747 oneway getNetworkSelectionModeResponse(RadioResponseInfo info, bool manual);
748
749 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800750 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700751 *
752 * Valid errors returned:
753 * RadioError:NONE
754 * RadioError:INVALID_ARGUMENTS
755 * RadioError:RADIO_NOT_AVAILABLE
756 * RadioError:ILLEGAL_SIM_OR_ME
757 * RadioError:OPERATION_NOT_ALLOWED
758 * RadioError:GENERIC_FAILURE
759 *
760 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
761 * no retries needed, such as illegal SIM or ME.
762 * Returns RadioError:GENERIC_FAILURE for all other causes that might be fixed by retries.
763 */
764 oneway setNetworkSelectionModeAutomaticResponse(RadioResponseInfo info);
765
766 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800767 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700768 *
769 * Valid errors returned:
770 * RadioError:NONE
771 * RadioError:INVALID_ARGUMENTS
772 * RadioError:RADIO_NOT_AVAILABLE
773 * RadioError:ILLEGAL_SIM_OR_ME
774 * RadioError:OPERATION_NOT_ALLOWED
775 * RadioError:GENERIC_FAILURE
776 *
777 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
778 * no retries needed, such as illegal SIM or ME.
779 * Returns RadioError:GENERIC_FAILURE for all other causes that might be fixed by retries.
780 */
781 oneway setNetworkSelectionModeManualResponse(RadioResponseInfo info);
782
783 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800784 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700785 * @param networkInfos List of network operator information as OperatorInfos defined in
786 * types.hal
787 *
788 * Valid errors returned:
789 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700790 * RadioError:RADIO_NOT_AVAILABLE
791 * RadioError:OPERATION_NOT_ALLOWED
Jayachandran Cfbb1ea52017-03-13 19:23:52 -0700792 * RadioError:ABORTED
793 * RadioError:DEVICE_IN_USE
794 * RadioError:INTERNAL_ERR
795 * RadioError:NO_MEMORY
796 * RadioError:MODEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700797 */
798 oneway getAvailableNetworksResponse(RadioResponseInfo info,
799 vec<OperatorInfo> networkInfos);
800
801 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800802 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700803 *
804 * Valid errors returned:
805 * RadioError:NONE
806 * RadioError:RADIO_NOT_AVAILABLE
807 * RadioError:INVALID_ARGUMENTS
808 * RadioError:NO_RESOURCES
809 * RadioError:NO_MEMORY
810 * RadioError:SYSTEM_ERR
811 * RadioError:MODEM_ERR
812 * RadioError:INTERNAL_ERR
813 * RadioError:INVALID_CALL_ID
814 * RadioError:GENERIC_FAILURE
815 */
816 oneway startDtmfResponse(RadioResponseInfo info);
817
818 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800819 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700820 *
821 * Valid errors returned:
822 * RadioError:NONE
823 * RadioError:RADIO_NOT_AVAILABLE
824 * RadioError:INVALID_ARGUMENTS
825 * RadioError:NO_RESOURCES
826 * RadioError:NO_MEMORY
827 * RadioError:INVALID_ARGUMENTS
828 * RadioError:SYSTEM_ERR
829 * RadioError:MODEM_ERR
830 * RadioError:INTERNAL_ERR
831 * RadioError:INVALID_CALL_ID
832 * RadioError:GENERIC_FAILURE
833 */
834 oneway stopDtmfResponse(RadioResponseInfo info);
835
836 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800837 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700838 * @param version string containing version string for log reporting
839 *
840 * Valid errors returned:
841 * RadioError:NONE
842 * RadioError:RADIO_NOT_AVAILABLE
843 * RadioError:INVALID_ARGUMENTS
844 * RadioError:EMPTY_RECORD
845 * RadioError:GENERIC_FAILURE
846 */
847 oneway getBasebandVersionResponse(RadioResponseInfo info, string version);
848
849 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800850 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700851 *
852 * Valid errors returned:
853 * RadioError:NONE
854 * RadioError:RADIO_NOT_AVAILABLE
855 * RadioError:INVALID_ARGUMENTS
856 * RadioError:INVALID_STATE
857 * RadioError:NO_RESOURCES
858 * RadioError:NO_MEMORY
859 * RadioError:MODEM_ERR
860 * RadioError:SYSTEM_ERR
861 * RadioError:INTERNAL_ERR
862 * RadioError:INVALID_CALL_ID
863 * RadioError:OPERATION_NOT_ALLOWED
864 * RadioError:GENERIC_FAILURE
865 */
866 oneway separateConnectionResponse(RadioResponseInfo info);
867
868 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800869 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700870 *
871 * Valid errors returned:
872 * RadioError:NONE
873 * RadioError:RADIO_NOT_AVAILABLE
874 * RadioError:INVALID_ARGUMENTS
875 * RadioError:NO_MEMORY
876 * RadioError:REQUEST_RATE_LIMITED
877 * RadioError:GENERIC_FAILURE
878 */
879 oneway setMuteResponse(RadioResponseInfo info);
880
881 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800882 * @param info Response info struct containing response type, serial no. and error
883 * @param enable true for "mute enabled" and false for "mute disabled"
Sanket Padawe76372492016-10-27 13:20:49 -0700884 *
885 * Valid errors returned:
886 * RadioError:NONE
887 * RadioError:RADIO_NOT_AVAILABLE
888 * RadioError:INVALID_ARGUMENTS
889 * RadioError:SS_MODIFIED_TO_DIAL
890 * RadioError:SS_MODIFIED_TO_USSD
891 * RadioError:SS_MODIFIED_TO_SS
892 * RadioError:NO_MEMORY
893 * RadioError:REQUEST_RATE_LIMITED
894 * RadioError:GENERIC_FAILURE
895 */
896 oneway getMuteResponse(RadioResponseInfo info, bool enable);
897
898 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800899 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700900 * @param status indicates CLIP status
901 *
902 * Valid errors returned:
903 * RadioError:NONE
904 * RadioError:RADIO_NOT_AVAILABLE
905 * RadioError:INVALID_ARGUMENTS
906 * RadioError:NO_MEMORY
907 * RadioError:SYSTEM_ERR
908 * RadioError:MODEM_ERR
909 * RadioError:INTERNAL_ERR
910 * RadioError:FDN_CHECK_FAILURE
911 * RadioError:GENERIC_FAILURE
912 */
913 oneway getClipResponse(RadioResponseInfo info, ClipStatus status);
914
915 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800916 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700917 * @param dcResponse List of DataCallResult as defined in types.hal
918 *
919 * Valid errors returned:
920 * RadioError:NONE
921 * RadioError:RADIO_NOT_AVAILABLE
922 * RadioError:INVALID_ARGUMENTS
923 * RadioError:GENERIC_FAILURE
924 */
925 oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
926
927 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800928 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700929 *
930 * Valid errors returned:
931 * RadioError:NONE
932 * RadioError:RADIO_NOT_AVAILABLE
933 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700934 * RadioError:SIM_BUSY
935 * RadioError:NO_MEMORY
936 * RadioError:SYSTEM_ERR
937 * RadioError:MODEM_ERR
938 * RadioError:INTERNAL_ERR
939 * RadioError:GENERIC_FAILURE
940 */
941 oneway setSuppServiceNotificationsResponse(RadioResponseInfo info);
942
943 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800944 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700945 * @param index record index where the message is stored
946 *
947 * Valid errors returned:
948 * RadioError:NONE
949 * RadioError:SIM_FULL
950 * RadioError:INVALID_ARGUMENTS
951 * RadioError:INVALID_SMS_FORMAT
952 * RadioError:INTERNAL_ERR
953 * RadioError:MODEM_ERR
954 * RadioError:ENCODING_ERR
955 * RadioError:NO_MEMORY
956 * RadioError:NO_RESOURCES
957 * RadioError:INVALID_MODEM_STATE
958 * RadioError:MODE_NOT_SUPPORTED
959 * RadioError:INVALID_SMSC_ADDRESS
960 * RadioError:GENERIC_FAILURE
961 */
962 oneway writeSmsToSimResponse(RadioResponseInfo info, int32_t index);
963
964 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800965 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700966 *
967 * Valid errors returned:
968 * RadioError:NONE
969 * RadioError:SIM_FULL
970 * RadioError:INVALID_ARGUMENTS
971 * RadioError:NO_MEMORY
972 * RadioError:REQUEST_RATE_LIMITED
973 * RadioError:SYSTEM_ERR
974 * RadioError:MODEM_ERR
975 * RadioError:NO_SUCH_ENTRY
976 * RadioError:GENERIC_FAILURE
977 */
978 oneway deleteSmsOnSimResponse(RadioResponseInfo info);
979
980 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800981 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700982 *
983 * Valid errors returned:
984 * RadioError:NONE
985 * RadioError:RADIO_NOT_AVAILABLE
986 * RadioError:INVALID_ARGUMENTS
987 * RadioError:OPERATION_NOT_ALLOWED
988 * RadioError:GENERIC_FAILURE
989 */
990 oneway setBandModeResponse(RadioResponseInfo info);
991
992 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800993 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700994 * @param bandModes List of RadioBandMode listing supported modes
995 *
996 * Valid errors returned:
997 * RadioError:NONE
998 * RadioError:RADIO_NOT_AVAILABLE
999 * RadioError:INVALID_ARGUMENTS
1000 * RadioError:GENERIC_FAILURE
1001 */
1002 oneway getAvailableBandModesResponse(RadioResponseInfo info, vec<RadioBandMode> bandModes);
1003
1004 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001005 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001006 * @param commandResponse SAT/USAT response in hexadecimal format
1007 * string starting with first byte of response
1008 *
1009 * Valid errors returned:
1010 * RadioError:NONE
1011 * RadioError:RADIO_NOT_AVAILABLE
1012 * RadioError:INVALID_ARGUMENTS
1013 * RadioError:SIM_BUSY
1014 * RadioError:OPERATION_NOT_ALLOWED
1015 * RadioError:GENERIC_FAILURE
1016 */
1017 oneway sendEnvelopeResponse(RadioResponseInfo info, string commandResponse);
1018
1019 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001020 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001021 *
1022 * Valid errors returned:
1023 * RadioError:NONE
1024 * RadioError:RADIO_NOT_AVAILABLE
1025 * RadioError:INVALID_ARGUMENTS
1026 * RadioError:OPERATION_NOT_ALLOWED
1027 * RadioError:GENERIC_FAILURE
1028 */
1029 oneway sendTerminalResponseToSimResponse(RadioResponseInfo info);
Sanket Padawed52335c2016-11-03 16:46:32 -07001030
1031 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001032 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001033 *
1034 * Valid errors returned:
1035 * RadioError:NONE
1036 * RadioError:RADIO_NOT_AVAILABLE
1037 * RadioError:INVALID_ARGUMENTS
1038 * RadioError:OPERATION_NOT_ALLOWED
1039 * RadioError:GENERIC_FAILURE
1040 */
1041 oneway handleStkCallSetupRequestFromSimResponse(RadioResponseInfo info);
1042
1043 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001044 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001045 *
1046 * Valid errors returned:
1047 * RadioError:NONE
1048 * RadioError:RADIO_NOT_AVAILABLE
1049 * RadioError:INVALID_ARGUMENTS
1050 * RadioError:INVALID_STATE
1051 * RadioError:NO_RESOURCES
1052 * RadioError:NO_MEMORY
1053 * RadioError:SYSTEM_ERR
1054 * RadioError:MODEM_ERR
1055 * RadioError:INTERNAL_ERR
1056 * RadioError:INVALID_CALL_ID
1057 * RadioError:OPERATION_NOT_ALLOWED
1058 * RadioError:GENERIC_FAILURE
1059 */
1060 oneway explicitCallTransferResponse(RadioResponseInfo info);
1061
1062 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001063 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001064 *
1065 * Valid errors returned:
1066 * RadioError:NONE
1067 * RadioError:RADIO_NOT_AVAILABLE
1068 * RadioError:INVALID_ARGUMENTS
1069 * RadioError:OPERATION_NOT_ALLOWED
1070 * RadioError:MODE_NOT_SUPPORTED
1071 * RadioError:GENERIC_FAILURE
1072 */
1073 oneway setPreferredNetworkTypeResponse(RadioResponseInfo info);
1074
1075 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001076 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001077 * @param nwType RadioPreferredNetworkType defined in types.hal
1078 *
1079 * Valid errors returned:
1080 * RadioError:NONE
1081 * RadioError:RADIO_NOT_AVAILABLE
1082 * RadioError:INVALID_ARGUMENTS
1083 * RadioError:GENERIC_FAILURE
1084 */
1085 oneway getPreferredNetworkTypeResponse(RadioResponseInfo info,
1086 PreferredNetworkType nwType);
1087
1088 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001089 * @param info Response info struct containing response type, serial no. and error
1090 * @param cells Vector of neighboring radio cell
Sanket Padawed52335c2016-11-03 16:46:32 -07001091 *
1092 * Valid errors returned:
1093 * RadioError:NONE
1094 * RadioError:RADIO_NOT_AVAILABLE
1095 * RadioError:INVALID_ARGUMENTS
1096 * RadioError:GENERIC_FAILURE
1097 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001098 oneway getNeighboringCidsResponse(RadioResponseInfo info, vec<NeighboringCell> cells);
Sanket Padawed52335c2016-11-03 16:46:32 -07001099
1100 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001101 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001102 *
1103 * Valid errors returned:
1104 * RadioError:NONE
1105 * RadioError:RADIO_NOT_AVAILABLE
1106 * RadioError:INVALID_ARGUMENTS
1107 * RadioError:GENERIC_FAILURE
1108 */
1109 oneway setLocationUpdatesResponse(RadioResponseInfo info);
1110
1111 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001112 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001113 *
1114 * Valid errors returned:
1115 * RadioError:NONE
1116 * RadioError:RADIO_NOT_AVAILABLE
1117 * RadioError:INVALID_ARGUMENTS
1118 * RadioError:SIM_ABSENT
1119 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1120 * RadioError:GENERIC_FAILURE
1121 */
1122 oneway setCdmaSubscriptionSourceResponse(RadioResponseInfo info);
1123
1124 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001125 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001126 *
1127 * Valid errors returned:
1128 * RadioError:NONE
1129 * RadioError:RADIO_NOT_AVAILABLE
1130 * RadioError:INVALID_ARGUMENTS
1131 * RadioError:GENERIC_FAILURE
1132 */
1133 oneway setCdmaRoamingPreferenceResponse(RadioResponseInfo info);
1134
1135 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001136 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001137 * @param type CdmaRoamingType defined in types.hal
1138 *
1139 * Valid errors returned:
1140 * RadioError:NONE
1141 * RadioError:RADIO_NOT_AVAILABLE
1142 * RadioError:INVALID_ARGUMENTS
1143 * RadioError:GENERIC_FAILURE
1144 */
1145 oneway getCdmaRoamingPreferenceResponse(RadioResponseInfo info, CdmaRoamingType type);
1146
1147 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001148 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001149 *
1150 * Valid errors returned:
1151 * RadioError:NONE
1152 * RadioError:RADIO_NOT_AVAILABLE
1153 * RadioError:INVALID_ARGUMENTS
1154 * RadioError:MODEM_ERR
1155 * RadioError:INTERNAL_ERR
1156 * RadioError:NO_MEMORY
1157 * RadioError:GENERIC_FAILURE
1158 */
1159 oneway setTTYModeResponse(RadioResponseInfo info);
1160
1161 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001162 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001163 * @param mode TtyMode
1164 *
1165 * Valid errors returned:
1166 * RadioError:NONE
1167 * RadioError:RADIO_NOT_AVAILABLE
1168 * RadioError:INVALID_ARGUMENTS
1169 * RadioError:MODEM_ERR
1170 * RadioError:INTERNAL_ERR
1171 * RadioError:NO_MEMORY
1172 * RadioError:GENERIC_FAILURE
1173 */
1174 oneway getTTYModeResponse(RadioResponseInfo info, TtyMode mode);
1175
1176 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001177 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001178 *
1179 * Valid errors returned:
1180 * RadioError:NONE
1181 * RadioError:RADIO_NOT_AVAILABLE
1182 * RadioError:INVALID_ARGUMENTS
1183 * RadioError:MODEM_ERR
1184 * RadioError:INTERNAL_ERR
1185 * RadioError:NO_MEMORY
1186 * RadioError:GENERIC_FAILURE
1187 */
1188 oneway setPreferredVoicePrivacyResponse(RadioResponseInfo info);
1189
1190 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001191 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001192 * @param enable false for Standard Privacy Mode (Public Long Code Mask)
1193 * true for Enhanced Privacy Mode (Private Long Code Mask)
1194 *
1195 * Valid errors:
1196 * RadioError:NONE
1197 * RadioError:RADIO_NOT_AVAILABLE
1198 * RadioError:INVALID_ARGUMENTS
1199 * RadioError:MODEM_ERR
1200 * RadioError:INTERNAL_ERR
1201 * RadioError:NO_MEMORY
1202 * RadioError:GENERIC_FAILURE
1203 */
1204 oneway getPreferredVoicePrivacyResponse(RadioResponseInfo info, bool enable);
1205
1206 /*
1207 * Response callback for IRadio.sendCDMAFeatureCode()
1208 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001209 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001210 *
1211 * Valid errors returned:
1212 * RadioError:NONE
1213 * RadioError:RADIO_NOT_AVAILABLE
1214 * RadioError:INVALID_ARGUMENTS
1215 * RadioError:NO_MEMORY
1216 * RadioError:INTERNAL_ERR
1217 * RadioError:SYSTEM_ERR
1218 * RadioError:MODEM_ERR
1219 * RadioError:INVALID_CALL_ID
1220 * RadioError:INVALID_STATE
1221 * RadioError:GENERIC_FAILURE
1222 */
1223 oneway sendCDMAFeatureCodeResponse(RadioResponseInfo info);
1224
1225 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001226 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001227 *
1228 * Valid errors returned:
1229 * RadioError:NONE
1230 * RadioError:RADIO_NOT_AVAILABLE
1231 * RadioError:INVALID_ARGUMENTS
1232 * RadioError:NO_MEMORY
1233 * RadioError:INTERNAL_ERR
1234 * RadioError:SYSTEM_ERR
1235 * RadioError:MODEM_ERR
1236 * RadioError:INVALID_CALL_ID
1237 * RadioError:INVALID_STATE
1238 * RadioError:GENERIC_FAILURE
1239 */
1240 oneway sendBurstDtmfResponse(RadioResponseInfo info);
1241
1242 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001243 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001244 * @param sms Sms result struct as defined by SendSmsResult in types.hal
1245 *
1246 * Valid errors returned:
1247 * RadioError:NONE
1248 * RadioError:RADIO_NOT_AVAILABLE
1249 * RadioError:INVALID_ARGUMENTS
1250 * RadioError:SMS_SEND_FAIL_RETRY
1251 * RadioError:NETWORK_REJECT
1252 * RadioError:INVALID_STATE
1253 * RadioError:NO_MEMORY
1254 * RadioError:REQUEST_RATE_LIMITED
1255 * RadioError:INVALID_SMS_FORMAT
1256 * RadioError:SYSTEM_ERR
1257 * RadioError:FDN_CHECK_FAILURE
1258 * RadioError:MODEM_ERR
1259 * RadioError:NETWORK_ERR
1260 * RadioError:ENCODING_ERR
1261 * RadioError:INVALID_SMSC_ADDRESS
1262 * RadioError:MODE_NOT_SUPPORTED
1263 * RadioError:GENERIC_FAILURE
1264 */
1265 oneway sendCdmaSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1266
1267 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001268 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001269 *
1270 * Valid errors returned:
1271 * RadioError:NONE
1272 * RadioError:RADIO_NOT_AVAILABLE
1273 * RadioError:INVALID_ARGUMENTS
1274 * RadioError:NO_SMS_TO_ACK
1275 * RadioError:INVALID_STATE
1276 * RadioError:NO_MEMORY
1277 * RadioError:REQUEST_RATE_LIMITED
1278 * RadioError:SYSTEM_ERR
1279 * RadioError:MODEM_ERR
1280 * RadioError:MODE_NOT_SUPPORTED
1281 * RadioError:NETWORK_NOT_READY
1282 * RadioError:INVALID_MODEM_STATE
1283 * RadioError:GENERIC_FAILURE
1284 */
1285 oneway acknowledgeLastIncomingCdmaSmsResponse(RadioResponseInfo info);
1286
1287 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001288 * @param info Response info struct containing response type, serial no. and error
1289 * @param configs Vector of GSM/WCDMA Cell broadcast configs
Sanket Padawed52335c2016-11-03 16:46:32 -07001290 *
1291 * Valid errors returned:
1292 * RadioError:NONE
1293 * RadioError:RADIO_NOT_AVAILABLE
1294 * RadioError:INVALID_ARGUMENTS
1295 * RadioError:INVALID_STATE
1296 * RadioError:NO_MEMORY
1297 * RadioError:REQUEST_RATE_LIMITED
1298 * RadioError:SYSTEM_ERR
1299 * RadioError:MODEM_ERR
1300 * RadioError:NO_RESOURCES
1301 * RadioError:GENERIC_FAILURE
1302 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001303 oneway getGsmBroadcastConfigResponse(RadioResponseInfo info,
1304 vec<GsmBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001305
1306 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001307 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001308 *
1309 * Valid errors returned:
1310 * RadioError:NONE
1311 * RadioError:RADIO_NOT_AVAILABLE
1312 * RadioError:INVALID_ARGUMENTS
1313 * RadioError:INVALID_STATE
1314 * RadioError:NO_MEMORY
1315 * RadioError:REQUEST_RATE_LIMITED
1316 * RadioError:SYSTEM_ERR
1317 * RadioError:MODEM_ERR
1318 * RadioError:GENERIC_FAILURE
1319 */
1320 oneway setGsmBroadcastConfigResponse(RadioResponseInfo info);
1321
1322 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001323 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001324 *
1325 * Valid errors returned:
1326 * RadioError:NONE
1327 * RadioError:RADIO_NOT_AVAILABLE
1328 * RadioError:INVALID_ARGUMENTS
1329 * RadioError:INVALID_STATE
1330 * RadioError:NO_MEMORY
1331 * RadioError:REQUEST_RATE_LIMITED
1332 * RadioError:SYSTEM_ERR
1333 * RadioError:MODEM_ERR
1334 * RadioError:GENERIC_FAILURE
1335 */
1336 oneway setGsmBroadcastActivationResponse(RadioResponseInfo info);
1337
1338 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001339 * @param info Response info struct containing response type, serial no. and error
1340 * @param configs Vector of CDMA Broadcast SMS configs.
Sanket Padawed52335c2016-11-03 16:46:32 -07001341 *
1342 * Valid errors returned:
1343 * RadioError:NONE
1344 * RadioError:RADIO_NOT_AVAILABLE
1345 * RadioError:INVALID_ARGUMENTS
1346 * RadioError:INVALID_STATE
1347 * RadioError:NO_MEMORY
1348 * RadioError:REQUEST_RATE_LIMITED
1349 * RadioError:SYSTEM_ERR
1350 * RadioError:MODEM_ERR
1351 * RadioError:NO_RESOURCES
1352 * RadioError:GENERIC_FAILURE
1353 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001354 oneway getCdmaBroadcastConfigResponse(RadioResponseInfo info,
1355 vec<CdmaBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001356
1357 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001358 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001359 *
1360 * Valid errors returned:
1361 * RadioError:NONE
1362 * RadioError:RADIO_NOT_AVAILABLE
1363 * RadioError:INVALID_ARGUMENTS
1364 * RadioError:INVALID_STATE
1365 * RadioError:NO_MEMORY
1366 * RadioError:REQUEST_RATE_LIMITED
1367 * RadioError:SYSTEM_ERR
1368 * RadioError:MODEM_ERR
1369 * RadioError:GENERIC_FAILURE
1370 */
1371 oneway setCdmaBroadcastConfigResponse(RadioResponseInfo info);
1372
1373 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001374 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001375 *
1376 * Valid errors returned:
1377 * RadioError:NONE
1378 * RadioError:RADIO_NOT_AVAILABLE
1379 * RadioError:INVALID_ARGUMENTS
1380 * RadioError:INVALID_STATE
1381 * RadioError:NO_MEMORY
1382 * RadioError:REQUEST_RATE_LIMITED
1383 * RadioError:SYSTEM_ERR
1384 * RadioError:MODEM_ERR
1385 * RadioError:GENERIC_FAILURE
1386 */
1387 oneway setCdmaBroadcastActivationResponse(RadioResponseInfo info);
1388
1389 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001390 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001391 * @param mdn MDN if CDMA subscription is available
1392 * @param hSid is a comma separated list of H_SID (Home SID) if
1393 * CDMA subscription is available, in decimal format
1394 * @param hNid is a comma separated list of H_NID (Home NID) if
1395 * CDMA subscription is available, in decimal format
1396 * @param min MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
1397 * @param prl PRL version if CDMA subscription is available
1398 *
1399 * Valid errors returned:
1400 * RadioError:NONE
1401 * RadioError:RADIO_NOT_AVAILABLE
1402 * RadioError:INVALID_ARGUMENTS
1403 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1404 * RadioError:GENERIC_FAILURE
1405 */
1406 oneway getCDMASubscriptionResponse(RadioResponseInfo info, string mdn, string hSid,
1407 string hNid, string min, string prl);
1408
1409 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001410 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001411 * @param index record index where the cmda sms message is stored
1412 *
1413 * Valid errors returned:
1414 * RadioError:NONE
1415 * RadioError:RADIO_NOT_AVAILABLE
1416 * RadioError:INVALID_ARGUMENTS
1417 * RadioError:INVALID_SMS_FORMAT
1418 * RadioError:SIM_FULL
1419 * RadioError:INTERNAL_ERR
1420 * RadioError:MODEM_ERR
1421 * RadioError:ENCODING_ERR
1422 * RadioError:NO_MEMORY
1423 * RadioError:NO_RESOURCES
1424 * RadioError:INVALID_MODEM_STATE
1425 * RadioError:MODE_NOT_SUPPORTED
1426 * RadioError:INVALID_SMSC_ADDRESS
1427 * RadioError:GENERIC_FAILURE
1428 */
1429 oneway writeSmsToRuimResponse(RadioResponseInfo info, uint32_t index);
1430
1431 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001432 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001433 *
1434 * Valid errors returned:
1435 * RadioError:NONE
1436 * RadioError:RADIO_NOT_AVAILABLE
1437 * RadioError:INVALID_ARGUMENTS
1438 * RadioError:NO_MEMORY
1439 * RadioError:REQUEST_RATE_LIMITED
1440 * RadioError:SYSTEM_ERR
1441 * RadioError:MODEM_ERR
1442 * RadioError:NO_SUCH_ENTRY
1443 * RadioError:GENERIC_FAILURE
1444 */
1445 oneway deleteSmsOnRuimResponse(RadioResponseInfo info);
1446
1447 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001448 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001449 * @param imei IMEI if GSM subscription is available
1450 * @param imeisv IMEISV if GSM subscription is available
1451 * @param esn ESN if CDMA subscription is available
1452 * @param meid MEID if CDMA subscription is available
1453 *
1454 * Valid errors returned:
1455 * RadioError:NONE
1456 * RadioError:RADIO_NOT_AVAILABLE
1457 * RadioError:INVALID_ARGUMENTS
1458 * RadioError:GENERIC_FAILURE
1459 *
1460 * If a empty string value is returned for any of the device id, it means that there was error
1461 * accessing the device.
1462 *
1463 */
1464 oneway getDeviceIdentityResponse(RadioResponseInfo info, string imei, string imeisv,
1465 string esn, string meid);
1466
1467 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001468 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001469 *
1470 * Valid errors returned:
1471 * RadioError:NONE
1472 * RadioError:RADIO_NOT_AVAILABLE
1473 * RadioError:INVALID_ARGUMENTS
1474 * RadioError:OPERATION_NO_ALLOWED
1475 * RadioError:GENERIC_FAILURE
1476 */
1477 oneway exitEmergencyCallbackModeResponse(RadioResponseInfo info);
1478
1479 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001480 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001481 * @param smsc Short Message Service Center address on the device
1482 *
1483 * Valid errors returned:
1484 * RadioError:NONE
1485 * RadioError:RADIO_NOT_AVAILABLE
1486 * RadioError:INVALID_ARGUMENTS
1487 * RadioError:INTERNAL_ERR
1488 * RadioError:NO_MEMORY
1489 * RadioError:SYSTEM_ERR
1490 * RadioError:REQUEST_RATE_LIMITED
1491 * RadioError:MODEM_ERR
1492 * RadioError:INVALID_MODEM_STATE
1493 * RadioError:NOT_PROVISIONED
1494 * RadioError:GENERIC_FAILURE
1495 */
1496 oneway getSmscAddressResponse(RadioResponseInfo info, string smsc);
1497
1498 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001499 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001500 *
1501 * Valid errors returned:
1502 * RadioError:NONE
1503 * RadioError:RADIO_NOT_AVAILABLE
1504 * RadioError:INVALID_ARGUMENTS
1505 * RadioError:INVALID_SMS_FORMAT
1506 * RadioError:NO_MEMORY
1507 * RadioError:SYSTEM_ERR
1508 * RadioError:REQUEST_RATE_LIMITED
1509 * RadioError:MODEM_ERR
1510 * RadioError:NO_RESOURCES
1511 * RadioError:GENERIC_FAILURE
1512 */
1513 oneway setSmscAddressResponse(RadioResponseInfo info);
1514
1515 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001516 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001517 *
1518 * Valid errors returned:
1519 * RadioError:NONE
1520 * RadioError:RADIO_NOT_AVAILABLE
1521 * RadioError:INVALID_ARGUMENTS
1522 * RadioError:NO_MEMORY
1523 * RadioError:SYSTEM_ERR
1524 * RadioError:REQUEST_RATE_LIMITED
1525 * RadioError:MODEM_ERR
1526 * RadioError:INVALID_STATE
1527 * RadioError:GENERIC_FAILURE
1528 */
1529 oneway reportSmsMemoryStatusResponse(RadioResponseInfo info);
1530
1531 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001532 * @param info Response info struct containing response type, serial no. and error
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001533 *
1534 * Valid errors returned:
1535 * RadioError:NONE
1536 * RadioError:RADIO_NOT_AVAILABLE
1537 * RadioError:GENERIC_FAILURE
1538 */
1539 oneway reportStkServiceIsRunningResponse(RadioResponseInfo info);
1540
1541 /*
1542 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001543 * @param source CDMA subscription source
1544 *
1545 * Valid errors returned:
1546 * RadioError:NONE
1547 * RadioError:RADIO_NOT_AVAILABLE
1548 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1549 * RadioError:GENERIC_FAILURE
1550 */
1551 oneway getCdmaSubscriptionSourceResponse(RadioResponseInfo info, CdmaSubscriptionSource source);
1552
1553 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001554 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001555 * @param response response string of the challenge/response algo for ISIM auth in base64 format
1556 *
1557 * Valid errors returned:
1558 * RadioError:NONE
1559 * RadioError:RADIO_NOT_AVAILABLE
1560 * RadioError:GENERIC_FAILURE
1561 */
1562 oneway requestIsimAuthenticationResponse(RadioResponseInfo info, string response);
1563
1564 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001565 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001566 *
1567 * Valid errors returned:
1568 * RadioError:NONE
1569 * RadioError:RADIO_NOT_AVAILABLE
1570 * RadioError:GENERIC_FAILURE
1571 */
1572 oneway acknowledgeIncomingGsmSmsWithPduResponse(RadioResponseInfo info);
1573
1574 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001575 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001576 * @param iccIo IccIoResult as defined in types.hal corresponding to ICC IO response
1577 *
1578 * Valid errors returned:
1579 * RadioError:NONE
1580 * RadioError:RADIO_NOT_AVAILABLE
1581 * RadioError:SIM_BUSY
1582 * RadioError:OPERATION_NOT_ALLOWED
1583 * RadioError:GENERIC_FAILURE
1584 */
1585 oneway sendEnvelopeWithStatusResponse(RadioResponseInfo info, IccIoResult iccIo);
1586
1587 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001588 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001589 * @param rat Current voice RAT
1590 *
1591 * Valid errors returned:
1592 * RadioError:NONE
1593 * RadioError:RADIO_NOT_AVAILABLE
1594 * RadioError:GENERIC_FAILURE
1595 */
1596 oneway getVoiceRadioTechnologyResponse(RadioResponseInfo info, RadioTechnology rat);
1597
1598 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001599 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001600 * @param cellInfo List of current cell information known to radio
1601 *
1602 * Valid errors returned:
1603 * RadioError:NONE
1604 * RadioError:RADIO_NOT_AVAILABLE
1605 * RadioError:GENERIC_FAILURE
1606 */
1607 oneway getCellInfoListResponse(RadioResponseInfo info, vec<CellInfo> cellInfo);
1608
1609 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001610 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001611 *
1612 * Valid errors returned:
1613 * RadioError:NONE
1614 * RadioError:RADIO_NOT_AVAILABLE
1615 * RadioError:GENERIC_FAILURE
1616 */
1617 oneway setCellInfoListRateResponse(RadioResponseInfo info);
1618
1619 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001620 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001621 *
1622 * Valid errors returned:
1623 * RadioError:NONE
1624 * RadioError:RADIO_NOT_AVAILABLE
1625 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1626 * RadioError:GENERIC_FAILURE
1627 */
1628 oneway setInitialAttachApnResponse(RadioResponseInfo info);
1629
1630 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001631 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001632 * @param isRegistered false = not registered, true = registered
1633 * @param ratFamily RadioTechnologyFamily as defined in types.hal. This value is valid only if
1634 * isRegistered is true.
1635 *
1636 * Valid errors returned:
1637 * RadioError:NONE
1638 * RadioError:RADIO_NOT_AVAILABLE
1639 * RadioError:GENERIC_FAILURE
1640 */
1641 oneway getImsRegistrationStateResponse(RadioResponseInfo info, bool isRegistered,
1642 RadioTechnologyFamily ratFamily);
1643
1644 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001645 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001646 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
1647 *
1648 * Valid errors returned:
1649 * RadioError:NONE
1650 * RadioError:RADIO_NOT_AVAILABLE
1651 * RadioError:SMS_SEND_FAIL_RETRY
1652 * RadioError:FDN_CHECK_FAILURE
1653 * RadioError:NETWORK_REJECT
1654 * RadioError:INVALID_ARGUMENTS
1655 * RadioError:INVALID_STATE
1656 * RadioError:NO_MEMORY
1657 * RadioError:INVALID_SMS_FORMAT
1658 * RadioError:SYSTEM_ERR
1659 * RadioError:REQUEST_RATE_LIMITED
1660 * RadioError:MODEM_ERR
1661 * RadioError:NETWORK_ERR
1662 * RadioError:ENCODING_ERR
1663 * RadioError:MODE_NOT_SUPPORTED
1664 * RadioError:GENERIC_FAILURE
1665 */
1666 oneway sendImsSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1667
1668 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001669 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001670 * @param result IccIoResult as defined in types.hal
1671 *
1672 * Valid errors returned:
1673 * RadioError:NONE
1674 * RadioError:RADIO_NOT_AVAILABLE
1675 * RadioError:GENERIC_FAILURE
1676 */
1677 oneway iccTransmitApduBasicChannelResponse(RadioResponseInfo info, IccIoResult result);
1678
1679 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001680 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001681 * @param channelId session id of the logical channel.
1682 * @param selectResponse Contains the select response for the open channel command with one
1683 * byte per integer
1684 *
1685 * Valid errors returned:
1686 * RadioError:NONE
1687 * RadioError:RADIO_NOT_AVAILABLE
1688 * RadioError:GENERIC_FAILURE
1689 * RadioError:MISSING_RESOURCE
1690 * RadioError:NO_SUCH_ELEMENT
1691 */
1692 oneway iccOpenLogicalChannelResponse(RadioResponseInfo info, int32_t channelId,
1693 vec<int8_t> selectResponse);
1694
1695 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001696 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001697 *
1698 * Valid errors returned:
1699 * RadioError:NONE
1700 * RadioError:RADIO_NOT_AVAILABLE
1701 * RadioError:GENERIC_FAILURE
1702 */
1703 oneway iccCloseLogicalChannelResponse(RadioResponseInfo info);
1704
1705 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001706 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001707 * @param result IccIoResult as defined in types.hal
1708 *
1709 * Valid errors returned:
1710 * RadioError:NONE
1711 * RadioError:RADIO_NOT_AVAILABLE
1712 * RadioError:GENERIC_FAILURE
1713 */
1714 oneway iccTransmitApduLogicalChannelResponse(RadioResponseInfo info, IccIoResult result);
1715
1716 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001717 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001718 * @param result string containing the contents of the NV item
1719 *
1720 * Valid errors returned:
1721 * RadioError:NONE
1722 * RadioError:RADIO_NOT_AVAILABLE
1723 * RadioError:GENERIC_FAILURE
1724 */
1725 oneway nvReadItemResponse(RadioResponseInfo info, string result);
1726
1727 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001728 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001729 *
1730 * Valid errors returned:
1731 * RadioError:NONE
1732 * RadioError:RADIO_NOT_AVAILABLE
1733 * RadioError:GENERIC_FAILURE
1734 */
1735 oneway nvWriteItemResponse(RadioResponseInfo info);
1736
1737 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001738 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001739 *
1740 * Valid errors returned:
1741 * RadioError:NONE
1742 * RadioError:RADIO_NOT_AVAILABLE
1743 * RadioError:GENERIC_FAILURE
1744 */
1745 oneway nvWriteCdmaPrlResponse(RadioResponseInfo info);
1746
1747 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001748 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001749 *
1750 * Valid errors returned:
1751 * RadioError:NONE
1752 * RadioError:RADIO_NOT_AVAILABLE
1753 * RadioError:GENERIC_FAILURE
1754 */
1755 oneway nvResetConfigResponse(RadioResponseInfo info);
1756
1757 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001758 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001759 *
1760 * Valid errors returned:
1761 * RadioError:NONE
1762 * RadioError:RADIO_NOT_AVAILABLE
1763 * RadioError:SUBSCRIPTION_NOT_SUPPORTED
1764 * RadioError:GENERIC_FAILURE
1765 */
1766 oneway setUiccSubscriptionResponse(RadioResponseInfo info);
1767
1768 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001769 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001770 *
1771 * Valid errors returned:
1772 * RadioError:NONE
1773 * RadioError:RADIO_NOT_AVAILABLE
1774 * RadioError:GENERIC_FAILURE
1775 */
1776 oneway setDataAllowedResponse(RadioResponseInfo info);
1777
1778 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001779 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001780 * @param config Array of HardwareConfig of the radio.
1781 *
1782 * Valid errors returned:
1783 * RadioError:NONE
1784 * RadioError:RADIO_NOT_AVAILABLE
1785 */
1786 oneway getHardwareConfigResponse(RadioResponseInfo info, vec<HardwareConfig> config);
1787
1788 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001789 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001790 * @param result IccIoResult as defined in types.hal
1791 *
1792 * Valid errors returned:
1793 * RadioError:NONE
1794 * RadioError:RADIO_NOT_AVAILABLE
1795 */
1796 oneway requestIccSimAuthenticationResponse(RadioResponseInfo info, IccIoResult result);
1797
1798 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001799 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001800 *
1801 * Valid errors returned:
1802 * RadioError:NONE
1803 * RadioError:RADIO_NOT_AVAILABLE
1804 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1805 */
1806 oneway setDataProfileResponse(RadioResponseInfo info);
1807
1808 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001809 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001810 *
1811 * Valid errors returned:
1812 * RadioError:NONE
1813 * RadioError:RADIO_NOT_AVAILABLE
1814 * RadioError:OPERATION_NOT_ALLOWED
1815 * RadioError:GENERIC_FAILURE
1816 */
1817 oneway requestShutdownResponse(RadioResponseInfo info);
1818
1819 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001820 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001821 * @param rc Radio capability as defined by RadioCapability in types.hal
1822 *
1823 * Valid errors returned:
1824 * RadioError:NONE
1825 * RadioError:RADIO_NOT_AVAILABLE
1826 * RadioError:OPERATION_NOT_ALLOWED
1827 * RadioError:GENERIC_FAILURE
1828 */
1829 oneway getRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1830
1831 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001832 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001833 * @param rc Radio capability as defined by RadioCapability in types.hal used to
1834 * feedback return status
1835 *
1836 * Valid errors returned:
1837 * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds.
1838 * RadioError:RADIO_NOT_AVAILABLE
1839 * RadioError:OPERATION_NOT_ALLOWED
1840 * RadioError:GENERIC_FAILURE
1841 */
1842 oneway setRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1843
1844 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001845 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001846 * @param statusInfo LceStatusInfo indicating LCE status
1847 *
1848 * Valid errors returned:
1849 * RadioError:NONE
1850 * RadioError:RADIO_NOT_AVAILABLE
1851 * RadioError:LCE_NOT_SUPPORTED
1852 */
1853 oneway startLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1854
1855 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001856 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001857 * @param statusInfo LceStatusInfo indicating LCE status
1858 *
1859 * Valid errors returned:
1860 * RadioError:NONE
1861 * RadioError:RADIO_NOT_AVAILABLE
1862 * RadioError:LCE_NOT_SUPPORTED
1863 */
1864 oneway stopLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1865
1866 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001867 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001868 * @param lceInfo LceDataInfo indicating LCE data as defined in types.hal
1869 *
1870 * Valid errors returned:
1871 * RadioError:NONE
1872 * RadioError:RADIO_NOT_AVAILABLE
1873 * RadioError:LCE_NOT_SUPPORTED
1874 */
1875 oneway pullLceDataResponse(RadioResponseInfo info, LceDataInfo lceInfo);
1876
1877 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001878 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001879 * @param activityInfo modem activity information
1880 *
1881 * Valid errors returned:
1882 * RadioError:NONE
1883 * RadioError:RADIO_NOT_AVAILABLE
1884 * RadioError:GENERIC_FAILURE
1885 */
1886 oneway getModemActivityInfoResponse(RadioResponseInfo info, ActivityStatsInfo activityInfo);
1887
1888 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001889 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001890 * @param numAllowed number of allowed carriers which have been set correctly.
1891 * On success, it must match the length of list Carriers->allowedCarriers.
1892 * if Length of allowed carriers list is 0, numAllowed = 0.
1893 *
1894 * Valid errors returned:
1895 * RadioError:NONE
1896 * RadioError:RADIO_NOT_AVAILABLE
1897 * RadioError:INVALID_ARGUMENTS
1898 * RadioError:REQUEST_NOT_SUPPORTED
1899 */
1900 oneway setAllowedCarriersResponse(RadioResponseInfo info, int32_t numAllowed);
1901
1902 /*
1903 * Expected modem behavior:
1904 * Return list of allowed carriers, and if all carriers are allowed.
1905 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001906 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001907 * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct.
1908 * If false, consider "carriers" struct
1909 * @param carriers Carrier restriction information.
1910 *
1911 * Valid errors returned:
1912 * RadioError:NONE
1913 * RadioError:RADIO_NOT_AVAILABLE
1914 * RadioError:REQUEST_NOT_SUPPORTED
1915 */
1916 oneway getAllowedCarriersResponse(RadioResponseInfo info, bool allAllowed,
1917 CarrierRestrictions carriers);
Sanket Padawe1a7eae72016-12-07 14:40:03 -08001918
1919 /*
Jack Yued7ef812017-01-24 11:56:52 -08001920 * @param info Response info struct containing response type, serial no. and error
1921 *
1922 * Valid errors returned:
1923 * RadioError:NONE
1924 * RadioError:RADIO_NOT_AVAILABLE
1925 */
1926 oneway sendDeviceStateResponse(RadioResponseInfo info);
1927
1928 /*
1929 * @param info Response info struct containing response type, serial no. and error
1930 *
1931 * Valid errors returned:
1932 * RadioError:NONE
1933 * RadioError:INVALID_ARGUMENTS
1934 * RadioError:RADIO_NOT_AVAILABLE
1935 */
1936 oneway setIndicationFilterResponse(RadioResponseInfo info);
1937
1938 /*
Jack Yua2118692017-02-15 15:31:34 -08001939 * @param info Response info struct containing response type, serial no. and error
1940 *
1941 * Valid errors returned:
1942 * RadioError:NONE
1943 * RadioError:RADIO_NOT_AVAILABLE
1944 * RadioError:REQUEST_NOT_SUPPORTED
1945 * RadioError:SIM_ABSENT
1946 * RadioError:INVALID_ARGUMENTS
1947 */
1948 oneway setSimCardPowerResponse(RadioResponseInfo info);
1949
1950 /*
Jack Yued7ef812017-01-24 11:56:52 -08001951 * Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
Sanket Padawe1a7eae72016-12-07 14:40:03 -08001952 * radio request which take long time to respond.
1953 * For more details, refer https://source.android.com/devices/tech/connect/ril.html
1954 *
1955 * @param serial Serial no. of the request whose acknowledgement is sent.
1956 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001957 oneway acknowledgeRequest(int32_t serial);
Sanket Padawe76372492016-10-27 13:20:49 -07001958};