blob: cd0899abfbca40abe600b2a705cfe9dfa1400019 [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
790 * RadioError:INVALID_ARGUMENTS
791 * RadioError:RADIO_NOT_AVAILABLE
792 * RadioError:OPERATION_NOT_ALLOWED
793 * RadioError:GENERIC_FAILURE
794 */
795 oneway getAvailableNetworksResponse(RadioResponseInfo info,
796 vec<OperatorInfo> networkInfos);
797
798 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800799 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700800 *
801 * Valid errors returned:
802 * RadioError:NONE
803 * RadioError:RADIO_NOT_AVAILABLE
804 * RadioError:INVALID_ARGUMENTS
805 * RadioError:NO_RESOURCES
806 * RadioError:NO_MEMORY
807 * RadioError:SYSTEM_ERR
808 * RadioError:MODEM_ERR
809 * RadioError:INTERNAL_ERR
810 * RadioError:INVALID_CALL_ID
811 * RadioError:GENERIC_FAILURE
812 */
813 oneway startDtmfResponse(RadioResponseInfo info);
814
815 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800816 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700817 *
818 * Valid errors returned:
819 * RadioError:NONE
820 * RadioError:RADIO_NOT_AVAILABLE
821 * RadioError:INVALID_ARGUMENTS
822 * RadioError:NO_RESOURCES
823 * RadioError:NO_MEMORY
824 * RadioError:INVALID_ARGUMENTS
825 * RadioError:SYSTEM_ERR
826 * RadioError:MODEM_ERR
827 * RadioError:INTERNAL_ERR
828 * RadioError:INVALID_CALL_ID
829 * RadioError:GENERIC_FAILURE
830 */
831 oneway stopDtmfResponse(RadioResponseInfo info);
832
833 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800834 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700835 * @param version string containing version string for log reporting
836 *
837 * Valid errors returned:
838 * RadioError:NONE
839 * RadioError:RADIO_NOT_AVAILABLE
840 * RadioError:INVALID_ARGUMENTS
841 * RadioError:EMPTY_RECORD
842 * RadioError:GENERIC_FAILURE
843 */
844 oneway getBasebandVersionResponse(RadioResponseInfo info, string version);
845
846 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800847 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700848 *
849 * Valid errors returned:
850 * RadioError:NONE
851 * RadioError:RADIO_NOT_AVAILABLE
852 * RadioError:INVALID_ARGUMENTS
853 * RadioError:INVALID_STATE
854 * RadioError:NO_RESOURCES
855 * RadioError:NO_MEMORY
856 * RadioError:MODEM_ERR
857 * RadioError:SYSTEM_ERR
858 * RadioError:INTERNAL_ERR
859 * RadioError:INVALID_CALL_ID
860 * RadioError:OPERATION_NOT_ALLOWED
861 * RadioError:GENERIC_FAILURE
862 */
863 oneway separateConnectionResponse(RadioResponseInfo info);
864
865 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800866 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700867 *
868 * Valid errors returned:
869 * RadioError:NONE
870 * RadioError:RADIO_NOT_AVAILABLE
871 * RadioError:INVALID_ARGUMENTS
872 * RadioError:NO_MEMORY
873 * RadioError:REQUEST_RATE_LIMITED
874 * RadioError:GENERIC_FAILURE
875 */
876 oneway setMuteResponse(RadioResponseInfo info);
877
878 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800879 * @param info Response info struct containing response type, serial no. and error
880 * @param enable true for "mute enabled" and false for "mute disabled"
Sanket Padawe76372492016-10-27 13:20:49 -0700881 *
882 * Valid errors returned:
883 * RadioError:NONE
884 * RadioError:RADIO_NOT_AVAILABLE
885 * RadioError:INVALID_ARGUMENTS
886 * RadioError:SS_MODIFIED_TO_DIAL
887 * RadioError:SS_MODIFIED_TO_USSD
888 * RadioError:SS_MODIFIED_TO_SS
889 * RadioError:NO_MEMORY
890 * RadioError:REQUEST_RATE_LIMITED
891 * RadioError:GENERIC_FAILURE
892 */
893 oneway getMuteResponse(RadioResponseInfo info, bool enable);
894
895 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800896 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700897 * @param status indicates CLIP status
898 *
899 * Valid errors returned:
900 * RadioError:NONE
901 * RadioError:RADIO_NOT_AVAILABLE
902 * RadioError:INVALID_ARGUMENTS
903 * RadioError:NO_MEMORY
904 * RadioError:SYSTEM_ERR
905 * RadioError:MODEM_ERR
906 * RadioError:INTERNAL_ERR
907 * RadioError:FDN_CHECK_FAILURE
908 * RadioError:GENERIC_FAILURE
909 */
910 oneway getClipResponse(RadioResponseInfo info, ClipStatus status);
911
912 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800913 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700914 * @param dcResponse List of DataCallResult as defined in types.hal
915 *
916 * Valid errors returned:
917 * RadioError:NONE
918 * RadioError:RADIO_NOT_AVAILABLE
919 * RadioError:INVALID_ARGUMENTS
920 * RadioError:GENERIC_FAILURE
921 */
922 oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
923
924 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800925 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700926 *
927 * Valid errors returned:
928 * RadioError:NONE
929 * RadioError:RADIO_NOT_AVAILABLE
930 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700931 * RadioError:SIM_BUSY
932 * RadioError:NO_MEMORY
933 * RadioError:SYSTEM_ERR
934 * RadioError:MODEM_ERR
935 * RadioError:INTERNAL_ERR
936 * RadioError:GENERIC_FAILURE
937 */
938 oneway setSuppServiceNotificationsResponse(RadioResponseInfo info);
939
940 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800941 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700942 * @param index record index where the message is stored
943 *
944 * Valid errors returned:
945 * RadioError:NONE
946 * RadioError:SIM_FULL
947 * RadioError:INVALID_ARGUMENTS
948 * RadioError:INVALID_SMS_FORMAT
949 * RadioError:INTERNAL_ERR
950 * RadioError:MODEM_ERR
951 * RadioError:ENCODING_ERR
952 * RadioError:NO_MEMORY
953 * RadioError:NO_RESOURCES
954 * RadioError:INVALID_MODEM_STATE
955 * RadioError:MODE_NOT_SUPPORTED
956 * RadioError:INVALID_SMSC_ADDRESS
957 * RadioError:GENERIC_FAILURE
958 */
959 oneway writeSmsToSimResponse(RadioResponseInfo info, int32_t index);
960
961 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800962 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700963 *
964 * Valid errors returned:
965 * RadioError:NONE
966 * RadioError:SIM_FULL
967 * RadioError:INVALID_ARGUMENTS
968 * RadioError:NO_MEMORY
969 * RadioError:REQUEST_RATE_LIMITED
970 * RadioError:SYSTEM_ERR
971 * RadioError:MODEM_ERR
972 * RadioError:NO_SUCH_ENTRY
973 * RadioError:GENERIC_FAILURE
974 */
975 oneway deleteSmsOnSimResponse(RadioResponseInfo info);
976
977 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800978 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700979 *
980 * Valid errors returned:
981 * RadioError:NONE
982 * RadioError:RADIO_NOT_AVAILABLE
983 * RadioError:INVALID_ARGUMENTS
984 * RadioError:OPERATION_NOT_ALLOWED
985 * RadioError:GENERIC_FAILURE
986 */
987 oneway setBandModeResponse(RadioResponseInfo info);
988
989 /*
Sanket Padawe865834e2016-12-28 16:04:10 -0800990 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700991 * @param bandModes List of RadioBandMode listing supported modes
992 *
993 * Valid errors returned:
994 * RadioError:NONE
995 * RadioError:RADIO_NOT_AVAILABLE
996 * RadioError:INVALID_ARGUMENTS
997 * RadioError:GENERIC_FAILURE
998 */
999 oneway getAvailableBandModesResponse(RadioResponseInfo info, vec<RadioBandMode> bandModes);
1000
1001 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001002 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001003 * @param commandResponse SAT/USAT response in hexadecimal format
1004 * string starting with first byte of response
1005 *
1006 * Valid errors returned:
1007 * RadioError:NONE
1008 * RadioError:RADIO_NOT_AVAILABLE
1009 * RadioError:INVALID_ARGUMENTS
1010 * RadioError:SIM_BUSY
1011 * RadioError:OPERATION_NOT_ALLOWED
1012 * RadioError:GENERIC_FAILURE
1013 */
1014 oneway sendEnvelopeResponse(RadioResponseInfo info, string commandResponse);
1015
1016 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001017 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001018 *
1019 * Valid errors returned:
1020 * RadioError:NONE
1021 * RadioError:RADIO_NOT_AVAILABLE
1022 * RadioError:INVALID_ARGUMENTS
1023 * RadioError:OPERATION_NOT_ALLOWED
1024 * RadioError:GENERIC_FAILURE
1025 */
1026 oneway sendTerminalResponseToSimResponse(RadioResponseInfo info);
Sanket Padawed52335c2016-11-03 16:46:32 -07001027
1028 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001029 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001030 *
1031 * Valid errors returned:
1032 * RadioError:NONE
1033 * RadioError:RADIO_NOT_AVAILABLE
1034 * RadioError:INVALID_ARGUMENTS
1035 * RadioError:OPERATION_NOT_ALLOWED
1036 * RadioError:GENERIC_FAILURE
1037 */
1038 oneway handleStkCallSetupRequestFromSimResponse(RadioResponseInfo info);
1039
1040 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001041 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001042 *
1043 * Valid errors returned:
1044 * RadioError:NONE
1045 * RadioError:RADIO_NOT_AVAILABLE
1046 * RadioError:INVALID_ARGUMENTS
1047 * RadioError:INVALID_STATE
1048 * RadioError:NO_RESOURCES
1049 * RadioError:NO_MEMORY
1050 * RadioError:SYSTEM_ERR
1051 * RadioError:MODEM_ERR
1052 * RadioError:INTERNAL_ERR
1053 * RadioError:INVALID_CALL_ID
1054 * RadioError:OPERATION_NOT_ALLOWED
1055 * RadioError:GENERIC_FAILURE
1056 */
1057 oneway explicitCallTransferResponse(RadioResponseInfo info);
1058
1059 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001060 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001061 *
1062 * Valid errors returned:
1063 * RadioError:NONE
1064 * RadioError:RADIO_NOT_AVAILABLE
1065 * RadioError:INVALID_ARGUMENTS
1066 * RadioError:OPERATION_NOT_ALLOWED
1067 * RadioError:MODE_NOT_SUPPORTED
1068 * RadioError:GENERIC_FAILURE
1069 */
1070 oneway setPreferredNetworkTypeResponse(RadioResponseInfo info);
1071
1072 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001073 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001074 * @param nwType RadioPreferredNetworkType defined in types.hal
1075 *
1076 * Valid errors returned:
1077 * RadioError:NONE
1078 * RadioError:RADIO_NOT_AVAILABLE
1079 * RadioError:INVALID_ARGUMENTS
1080 * RadioError:GENERIC_FAILURE
1081 */
1082 oneway getPreferredNetworkTypeResponse(RadioResponseInfo info,
1083 PreferredNetworkType nwType);
1084
1085 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001086 * @param info Response info struct containing response type, serial no. and error
1087 * @param cells Vector of neighboring radio cell
Sanket Padawed52335c2016-11-03 16:46:32 -07001088 *
1089 * Valid errors returned:
1090 * RadioError:NONE
1091 * RadioError:RADIO_NOT_AVAILABLE
1092 * RadioError:INVALID_ARGUMENTS
1093 * RadioError:GENERIC_FAILURE
1094 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001095 oneway getNeighboringCidsResponse(RadioResponseInfo info, vec<NeighboringCell> cells);
Sanket Padawed52335c2016-11-03 16:46:32 -07001096
1097 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001098 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001099 *
1100 * Valid errors returned:
1101 * RadioError:NONE
1102 * RadioError:RADIO_NOT_AVAILABLE
1103 * RadioError:INVALID_ARGUMENTS
1104 * RadioError:GENERIC_FAILURE
1105 */
1106 oneway setLocationUpdatesResponse(RadioResponseInfo info);
1107
1108 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001109 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001110 *
1111 * Valid errors returned:
1112 * RadioError:NONE
1113 * RadioError:RADIO_NOT_AVAILABLE
1114 * RadioError:INVALID_ARGUMENTS
1115 * RadioError:SIM_ABSENT
1116 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1117 * RadioError:GENERIC_FAILURE
1118 */
1119 oneway setCdmaSubscriptionSourceResponse(RadioResponseInfo info);
1120
1121 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001122 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001123 *
1124 * Valid errors returned:
1125 * RadioError:NONE
1126 * RadioError:RADIO_NOT_AVAILABLE
1127 * RadioError:INVALID_ARGUMENTS
1128 * RadioError:GENERIC_FAILURE
1129 */
1130 oneway setCdmaRoamingPreferenceResponse(RadioResponseInfo info);
1131
1132 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001133 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001134 * @param type CdmaRoamingType defined in types.hal
1135 *
1136 * Valid errors returned:
1137 * RadioError:NONE
1138 * RadioError:RADIO_NOT_AVAILABLE
1139 * RadioError:INVALID_ARGUMENTS
1140 * RadioError:GENERIC_FAILURE
1141 */
1142 oneway getCdmaRoamingPreferenceResponse(RadioResponseInfo info, CdmaRoamingType type);
1143
1144 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001145 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001146 *
1147 * Valid errors returned:
1148 * RadioError:NONE
1149 * RadioError:RADIO_NOT_AVAILABLE
1150 * RadioError:INVALID_ARGUMENTS
1151 * RadioError:MODEM_ERR
1152 * RadioError:INTERNAL_ERR
1153 * RadioError:NO_MEMORY
1154 * RadioError:GENERIC_FAILURE
1155 */
1156 oneway setTTYModeResponse(RadioResponseInfo info);
1157
1158 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001159 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001160 * @param mode TtyMode
1161 *
1162 * Valid errors returned:
1163 * RadioError:NONE
1164 * RadioError:RADIO_NOT_AVAILABLE
1165 * RadioError:INVALID_ARGUMENTS
1166 * RadioError:MODEM_ERR
1167 * RadioError:INTERNAL_ERR
1168 * RadioError:NO_MEMORY
1169 * RadioError:GENERIC_FAILURE
1170 */
1171 oneway getTTYModeResponse(RadioResponseInfo info, TtyMode mode);
1172
1173 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001174 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001175 *
1176 * Valid errors returned:
1177 * RadioError:NONE
1178 * RadioError:RADIO_NOT_AVAILABLE
1179 * RadioError:INVALID_ARGUMENTS
1180 * RadioError:MODEM_ERR
1181 * RadioError:INTERNAL_ERR
1182 * RadioError:NO_MEMORY
1183 * RadioError:GENERIC_FAILURE
1184 */
1185 oneway setPreferredVoicePrivacyResponse(RadioResponseInfo info);
1186
1187 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001188 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001189 * @param enable false for Standard Privacy Mode (Public Long Code Mask)
1190 * true for Enhanced Privacy Mode (Private Long Code Mask)
1191 *
1192 * Valid errors:
1193 * RadioError:NONE
1194 * RadioError:RADIO_NOT_AVAILABLE
1195 * RadioError:INVALID_ARGUMENTS
1196 * RadioError:MODEM_ERR
1197 * RadioError:INTERNAL_ERR
1198 * RadioError:NO_MEMORY
1199 * RadioError:GENERIC_FAILURE
1200 */
1201 oneway getPreferredVoicePrivacyResponse(RadioResponseInfo info, bool enable);
1202
1203 /*
1204 * Response callback for IRadio.sendCDMAFeatureCode()
1205 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001206 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001207 *
1208 * Valid errors returned:
1209 * RadioError:NONE
1210 * RadioError:RADIO_NOT_AVAILABLE
1211 * RadioError:INVALID_ARGUMENTS
1212 * RadioError:NO_MEMORY
1213 * RadioError:INTERNAL_ERR
1214 * RadioError:SYSTEM_ERR
1215 * RadioError:MODEM_ERR
1216 * RadioError:INVALID_CALL_ID
1217 * RadioError:INVALID_STATE
1218 * RadioError:GENERIC_FAILURE
1219 */
1220 oneway sendCDMAFeatureCodeResponse(RadioResponseInfo info);
1221
1222 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001223 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001224 *
1225 * Valid errors returned:
1226 * RadioError:NONE
1227 * RadioError:RADIO_NOT_AVAILABLE
1228 * RadioError:INVALID_ARGUMENTS
1229 * RadioError:NO_MEMORY
1230 * RadioError:INTERNAL_ERR
1231 * RadioError:SYSTEM_ERR
1232 * RadioError:MODEM_ERR
1233 * RadioError:INVALID_CALL_ID
1234 * RadioError:INVALID_STATE
1235 * RadioError:GENERIC_FAILURE
1236 */
1237 oneway sendBurstDtmfResponse(RadioResponseInfo info);
1238
1239 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001240 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001241 * @param sms Sms result struct as defined by SendSmsResult in types.hal
1242 *
1243 * Valid errors returned:
1244 * RadioError:NONE
1245 * RadioError:RADIO_NOT_AVAILABLE
1246 * RadioError:INVALID_ARGUMENTS
1247 * RadioError:SMS_SEND_FAIL_RETRY
1248 * RadioError:NETWORK_REJECT
1249 * RadioError:INVALID_STATE
1250 * RadioError:NO_MEMORY
1251 * RadioError:REQUEST_RATE_LIMITED
1252 * RadioError:INVALID_SMS_FORMAT
1253 * RadioError:SYSTEM_ERR
1254 * RadioError:FDN_CHECK_FAILURE
1255 * RadioError:MODEM_ERR
1256 * RadioError:NETWORK_ERR
1257 * RadioError:ENCODING_ERR
1258 * RadioError:INVALID_SMSC_ADDRESS
1259 * RadioError:MODE_NOT_SUPPORTED
1260 * RadioError:GENERIC_FAILURE
1261 */
1262 oneway sendCdmaSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1263
1264 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001265 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001266 *
1267 * Valid errors returned:
1268 * RadioError:NONE
1269 * RadioError:RADIO_NOT_AVAILABLE
1270 * RadioError:INVALID_ARGUMENTS
1271 * RadioError:NO_SMS_TO_ACK
1272 * RadioError:INVALID_STATE
1273 * RadioError:NO_MEMORY
1274 * RadioError:REQUEST_RATE_LIMITED
1275 * RadioError:SYSTEM_ERR
1276 * RadioError:MODEM_ERR
1277 * RadioError:MODE_NOT_SUPPORTED
1278 * RadioError:NETWORK_NOT_READY
1279 * RadioError:INVALID_MODEM_STATE
1280 * RadioError:GENERIC_FAILURE
1281 */
1282 oneway acknowledgeLastIncomingCdmaSmsResponse(RadioResponseInfo info);
1283
1284 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001285 * @param info Response info struct containing response type, serial no. and error
1286 * @param configs Vector of GSM/WCDMA Cell broadcast configs
Sanket Padawed52335c2016-11-03 16:46:32 -07001287 *
1288 * Valid errors returned:
1289 * RadioError:NONE
1290 * RadioError:RADIO_NOT_AVAILABLE
1291 * RadioError:INVALID_ARGUMENTS
1292 * RadioError:INVALID_STATE
1293 * RadioError:NO_MEMORY
1294 * RadioError:REQUEST_RATE_LIMITED
1295 * RadioError:SYSTEM_ERR
1296 * RadioError:MODEM_ERR
1297 * RadioError:NO_RESOURCES
1298 * RadioError:GENERIC_FAILURE
1299 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001300 oneway getGsmBroadcastConfigResponse(RadioResponseInfo info,
1301 vec<GsmBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001302
1303 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001304 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001305 *
1306 * Valid errors returned:
1307 * RadioError:NONE
1308 * RadioError:RADIO_NOT_AVAILABLE
1309 * RadioError:INVALID_ARGUMENTS
1310 * RadioError:INVALID_STATE
1311 * RadioError:NO_MEMORY
1312 * RadioError:REQUEST_RATE_LIMITED
1313 * RadioError:SYSTEM_ERR
1314 * RadioError:MODEM_ERR
1315 * RadioError:GENERIC_FAILURE
1316 */
1317 oneway setGsmBroadcastConfigResponse(RadioResponseInfo info);
1318
1319 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001320 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001321 *
1322 * Valid errors returned:
1323 * RadioError:NONE
1324 * RadioError:RADIO_NOT_AVAILABLE
1325 * RadioError:INVALID_ARGUMENTS
1326 * RadioError:INVALID_STATE
1327 * RadioError:NO_MEMORY
1328 * RadioError:REQUEST_RATE_LIMITED
1329 * RadioError:SYSTEM_ERR
1330 * RadioError:MODEM_ERR
1331 * RadioError:GENERIC_FAILURE
1332 */
1333 oneway setGsmBroadcastActivationResponse(RadioResponseInfo info);
1334
1335 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001336 * @param info Response info struct containing response type, serial no. and error
1337 * @param configs Vector of CDMA Broadcast SMS configs.
Sanket Padawed52335c2016-11-03 16:46:32 -07001338 *
1339 * Valid errors returned:
1340 * RadioError:NONE
1341 * RadioError:RADIO_NOT_AVAILABLE
1342 * RadioError:INVALID_ARGUMENTS
1343 * RadioError:INVALID_STATE
1344 * RadioError:NO_MEMORY
1345 * RadioError:REQUEST_RATE_LIMITED
1346 * RadioError:SYSTEM_ERR
1347 * RadioError:MODEM_ERR
1348 * RadioError:NO_RESOURCES
1349 * RadioError:GENERIC_FAILURE
1350 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001351 oneway getCdmaBroadcastConfigResponse(RadioResponseInfo info,
1352 vec<CdmaBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001353
1354 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001355 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001356 *
1357 * Valid errors returned:
1358 * RadioError:NONE
1359 * RadioError:RADIO_NOT_AVAILABLE
1360 * RadioError:INVALID_ARGUMENTS
1361 * RadioError:INVALID_STATE
1362 * RadioError:NO_MEMORY
1363 * RadioError:REQUEST_RATE_LIMITED
1364 * RadioError:SYSTEM_ERR
1365 * RadioError:MODEM_ERR
1366 * RadioError:GENERIC_FAILURE
1367 */
1368 oneway setCdmaBroadcastConfigResponse(RadioResponseInfo info);
1369
1370 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001371 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001372 *
1373 * Valid errors returned:
1374 * RadioError:NONE
1375 * RadioError:RADIO_NOT_AVAILABLE
1376 * RadioError:INVALID_ARGUMENTS
1377 * RadioError:INVALID_STATE
1378 * RadioError:NO_MEMORY
1379 * RadioError:REQUEST_RATE_LIMITED
1380 * RadioError:SYSTEM_ERR
1381 * RadioError:MODEM_ERR
1382 * RadioError:GENERIC_FAILURE
1383 */
1384 oneway setCdmaBroadcastActivationResponse(RadioResponseInfo info);
1385
1386 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001387 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001388 * @param mdn MDN if CDMA subscription is available
1389 * @param hSid is a comma separated list of H_SID (Home SID) if
1390 * CDMA subscription is available, in decimal format
1391 * @param hNid is a comma separated list of H_NID (Home NID) if
1392 * CDMA subscription is available, in decimal format
1393 * @param min MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
1394 * @param prl PRL version if CDMA subscription is available
1395 *
1396 * Valid errors returned:
1397 * RadioError:NONE
1398 * RadioError:RADIO_NOT_AVAILABLE
1399 * RadioError:INVALID_ARGUMENTS
1400 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1401 * RadioError:GENERIC_FAILURE
1402 */
1403 oneway getCDMASubscriptionResponse(RadioResponseInfo info, string mdn, string hSid,
1404 string hNid, string min, string prl);
1405
1406 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001407 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001408 * @param index record index where the cmda sms message is stored
1409 *
1410 * Valid errors returned:
1411 * RadioError:NONE
1412 * RadioError:RADIO_NOT_AVAILABLE
1413 * RadioError:INVALID_ARGUMENTS
1414 * RadioError:INVALID_SMS_FORMAT
1415 * RadioError:SIM_FULL
1416 * RadioError:INTERNAL_ERR
1417 * RadioError:MODEM_ERR
1418 * RadioError:ENCODING_ERR
1419 * RadioError:NO_MEMORY
1420 * RadioError:NO_RESOURCES
1421 * RadioError:INVALID_MODEM_STATE
1422 * RadioError:MODE_NOT_SUPPORTED
1423 * RadioError:INVALID_SMSC_ADDRESS
1424 * RadioError:GENERIC_FAILURE
1425 */
1426 oneway writeSmsToRuimResponse(RadioResponseInfo info, uint32_t index);
1427
1428 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001429 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001430 *
1431 * Valid errors returned:
1432 * RadioError:NONE
1433 * RadioError:RADIO_NOT_AVAILABLE
1434 * RadioError:INVALID_ARGUMENTS
1435 * RadioError:NO_MEMORY
1436 * RadioError:REQUEST_RATE_LIMITED
1437 * RadioError:SYSTEM_ERR
1438 * RadioError:MODEM_ERR
1439 * RadioError:NO_SUCH_ENTRY
1440 * RadioError:GENERIC_FAILURE
1441 */
1442 oneway deleteSmsOnRuimResponse(RadioResponseInfo info);
1443
1444 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001445 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001446 * @param imei IMEI if GSM subscription is available
1447 * @param imeisv IMEISV if GSM subscription is available
1448 * @param esn ESN if CDMA subscription is available
1449 * @param meid MEID if CDMA subscription is available
1450 *
1451 * Valid errors returned:
1452 * RadioError:NONE
1453 * RadioError:RADIO_NOT_AVAILABLE
1454 * RadioError:INVALID_ARGUMENTS
1455 * RadioError:GENERIC_FAILURE
1456 *
1457 * If a empty string value is returned for any of the device id, it means that there was error
1458 * accessing the device.
1459 *
1460 */
1461 oneway getDeviceIdentityResponse(RadioResponseInfo info, string imei, string imeisv,
1462 string esn, string meid);
1463
1464 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001465 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001466 *
1467 * Valid errors returned:
1468 * RadioError:NONE
1469 * RadioError:RADIO_NOT_AVAILABLE
1470 * RadioError:INVALID_ARGUMENTS
1471 * RadioError:OPERATION_NO_ALLOWED
1472 * RadioError:GENERIC_FAILURE
1473 */
1474 oneway exitEmergencyCallbackModeResponse(RadioResponseInfo info);
1475
1476 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001477 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001478 * @param smsc Short Message Service Center address on the device
1479 *
1480 * Valid errors returned:
1481 * RadioError:NONE
1482 * RadioError:RADIO_NOT_AVAILABLE
1483 * RadioError:INVALID_ARGUMENTS
1484 * RadioError:INTERNAL_ERR
1485 * RadioError:NO_MEMORY
1486 * RadioError:SYSTEM_ERR
1487 * RadioError:REQUEST_RATE_LIMITED
1488 * RadioError:MODEM_ERR
1489 * RadioError:INVALID_MODEM_STATE
1490 * RadioError:NOT_PROVISIONED
1491 * RadioError:GENERIC_FAILURE
1492 */
1493 oneway getSmscAddressResponse(RadioResponseInfo info, string smsc);
1494
1495 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001496 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001497 *
1498 * Valid errors returned:
1499 * RadioError:NONE
1500 * RadioError:RADIO_NOT_AVAILABLE
1501 * RadioError:INVALID_ARGUMENTS
1502 * RadioError:INVALID_SMS_FORMAT
1503 * RadioError:NO_MEMORY
1504 * RadioError:SYSTEM_ERR
1505 * RadioError:REQUEST_RATE_LIMITED
1506 * RadioError:MODEM_ERR
1507 * RadioError:NO_RESOURCES
1508 * RadioError:GENERIC_FAILURE
1509 */
1510 oneway setSmscAddressResponse(RadioResponseInfo info);
1511
1512 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001513 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001514 *
1515 * Valid errors returned:
1516 * RadioError:NONE
1517 * RadioError:RADIO_NOT_AVAILABLE
1518 * RadioError:INVALID_ARGUMENTS
1519 * RadioError:NO_MEMORY
1520 * RadioError:SYSTEM_ERR
1521 * RadioError:REQUEST_RATE_LIMITED
1522 * RadioError:MODEM_ERR
1523 * RadioError:INVALID_STATE
1524 * RadioError:GENERIC_FAILURE
1525 */
1526 oneway reportSmsMemoryStatusResponse(RadioResponseInfo info);
1527
1528 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001529 * @param info Response info struct containing response type, serial no. and error
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001530 *
1531 * Valid errors returned:
1532 * RadioError:NONE
1533 * RadioError:RADIO_NOT_AVAILABLE
1534 * RadioError:GENERIC_FAILURE
1535 */
1536 oneway reportStkServiceIsRunningResponse(RadioResponseInfo info);
1537
1538 /*
1539 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001540 * @param source CDMA subscription source
1541 *
1542 * Valid errors returned:
1543 * RadioError:NONE
1544 * RadioError:RADIO_NOT_AVAILABLE
1545 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1546 * RadioError:GENERIC_FAILURE
1547 */
1548 oneway getCdmaSubscriptionSourceResponse(RadioResponseInfo info, CdmaSubscriptionSource source);
1549
1550 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001551 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001552 * @param response response string of the challenge/response algo for ISIM auth in base64 format
1553 *
1554 * Valid errors returned:
1555 * RadioError:NONE
1556 * RadioError:RADIO_NOT_AVAILABLE
1557 * RadioError:GENERIC_FAILURE
1558 */
1559 oneway requestIsimAuthenticationResponse(RadioResponseInfo info, string response);
1560
1561 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001562 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001563 *
1564 * Valid errors returned:
1565 * RadioError:NONE
1566 * RadioError:RADIO_NOT_AVAILABLE
1567 * RadioError:GENERIC_FAILURE
1568 */
1569 oneway acknowledgeIncomingGsmSmsWithPduResponse(RadioResponseInfo info);
1570
1571 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001572 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001573 * @param iccIo IccIoResult as defined in types.hal corresponding to ICC IO response
1574 *
1575 * Valid errors returned:
1576 * RadioError:NONE
1577 * RadioError:RADIO_NOT_AVAILABLE
1578 * RadioError:SIM_BUSY
1579 * RadioError:OPERATION_NOT_ALLOWED
1580 * RadioError:GENERIC_FAILURE
1581 */
1582 oneway sendEnvelopeWithStatusResponse(RadioResponseInfo info, IccIoResult iccIo);
1583
1584 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001585 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001586 * @param rat Current voice RAT
1587 *
1588 * Valid errors returned:
1589 * RadioError:NONE
1590 * RadioError:RADIO_NOT_AVAILABLE
1591 * RadioError:GENERIC_FAILURE
1592 */
1593 oneway getVoiceRadioTechnologyResponse(RadioResponseInfo info, RadioTechnology rat);
1594
1595 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001596 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001597 * @param cellInfo List of current cell information known to radio
1598 *
1599 * Valid errors returned:
1600 * RadioError:NONE
1601 * RadioError:RADIO_NOT_AVAILABLE
1602 * RadioError:GENERIC_FAILURE
1603 */
1604 oneway getCellInfoListResponse(RadioResponseInfo info, vec<CellInfo> cellInfo);
1605
1606 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001607 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001608 *
1609 * Valid errors returned:
1610 * RadioError:NONE
1611 * RadioError:RADIO_NOT_AVAILABLE
1612 * RadioError:GENERIC_FAILURE
1613 */
1614 oneway setCellInfoListRateResponse(RadioResponseInfo info);
1615
1616 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001617 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001618 *
1619 * Valid errors returned:
1620 * RadioError:NONE
1621 * RadioError:RADIO_NOT_AVAILABLE
1622 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1623 * RadioError:GENERIC_FAILURE
1624 */
1625 oneway setInitialAttachApnResponse(RadioResponseInfo info);
1626
1627 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001628 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001629 * @param isRegistered false = not registered, true = registered
1630 * @param ratFamily RadioTechnologyFamily as defined in types.hal. This value is valid only if
1631 * isRegistered is true.
1632 *
1633 * Valid errors returned:
1634 * RadioError:NONE
1635 * RadioError:RADIO_NOT_AVAILABLE
1636 * RadioError:GENERIC_FAILURE
1637 */
1638 oneway getImsRegistrationStateResponse(RadioResponseInfo info, bool isRegistered,
1639 RadioTechnologyFamily ratFamily);
1640
1641 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001642 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001643 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
1644 *
1645 * Valid errors returned:
1646 * RadioError:NONE
1647 * RadioError:RADIO_NOT_AVAILABLE
1648 * RadioError:SMS_SEND_FAIL_RETRY
1649 * RadioError:FDN_CHECK_FAILURE
1650 * RadioError:NETWORK_REJECT
1651 * RadioError:INVALID_ARGUMENTS
1652 * RadioError:INVALID_STATE
1653 * RadioError:NO_MEMORY
1654 * RadioError:INVALID_SMS_FORMAT
1655 * RadioError:SYSTEM_ERR
1656 * RadioError:REQUEST_RATE_LIMITED
1657 * RadioError:MODEM_ERR
1658 * RadioError:NETWORK_ERR
1659 * RadioError:ENCODING_ERR
1660 * RadioError:MODE_NOT_SUPPORTED
1661 * RadioError:GENERIC_FAILURE
1662 */
1663 oneway sendImsSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1664
1665 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001666 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001667 * @param result IccIoResult as defined in types.hal
1668 *
1669 * Valid errors returned:
1670 * RadioError:NONE
1671 * RadioError:RADIO_NOT_AVAILABLE
1672 * RadioError:GENERIC_FAILURE
1673 */
1674 oneway iccTransmitApduBasicChannelResponse(RadioResponseInfo info, IccIoResult result);
1675
1676 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001677 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001678 * @param channelId session id of the logical channel.
1679 * @param selectResponse Contains the select response for the open channel command with one
1680 * byte per integer
1681 *
1682 * Valid errors returned:
1683 * RadioError:NONE
1684 * RadioError:RADIO_NOT_AVAILABLE
1685 * RadioError:GENERIC_FAILURE
1686 * RadioError:MISSING_RESOURCE
1687 * RadioError:NO_SUCH_ELEMENT
1688 */
1689 oneway iccOpenLogicalChannelResponse(RadioResponseInfo info, int32_t channelId,
1690 vec<int8_t> selectResponse);
1691
1692 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001693 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001694 *
1695 * Valid errors returned:
1696 * RadioError:NONE
1697 * RadioError:RADIO_NOT_AVAILABLE
1698 * RadioError:GENERIC_FAILURE
1699 */
1700 oneway iccCloseLogicalChannelResponse(RadioResponseInfo info);
1701
1702 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001703 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001704 * @param result IccIoResult as defined in types.hal
1705 *
1706 * Valid errors returned:
1707 * RadioError:NONE
1708 * RadioError:RADIO_NOT_AVAILABLE
1709 * RadioError:GENERIC_FAILURE
1710 */
1711 oneway iccTransmitApduLogicalChannelResponse(RadioResponseInfo info, IccIoResult result);
1712
1713 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001714 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001715 * @param result string containing the contents of the NV item
1716 *
1717 * Valid errors returned:
1718 * RadioError:NONE
1719 * RadioError:RADIO_NOT_AVAILABLE
1720 * RadioError:GENERIC_FAILURE
1721 */
1722 oneway nvReadItemResponse(RadioResponseInfo info, string result);
1723
1724 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001725 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001726 *
1727 * Valid errors returned:
1728 * RadioError:NONE
1729 * RadioError:RADIO_NOT_AVAILABLE
1730 * RadioError:GENERIC_FAILURE
1731 */
1732 oneway nvWriteItemResponse(RadioResponseInfo info);
1733
1734 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001735 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001736 *
1737 * Valid errors returned:
1738 * RadioError:NONE
1739 * RadioError:RADIO_NOT_AVAILABLE
1740 * RadioError:GENERIC_FAILURE
1741 */
1742 oneway nvWriteCdmaPrlResponse(RadioResponseInfo info);
1743
1744 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001745 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001746 *
1747 * Valid errors returned:
1748 * RadioError:NONE
1749 * RadioError:RADIO_NOT_AVAILABLE
1750 * RadioError:GENERIC_FAILURE
1751 */
1752 oneway nvResetConfigResponse(RadioResponseInfo info);
1753
1754 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001755 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001756 *
1757 * Valid errors returned:
1758 * RadioError:NONE
1759 * RadioError:RADIO_NOT_AVAILABLE
1760 * RadioError:SUBSCRIPTION_NOT_SUPPORTED
1761 * RadioError:GENERIC_FAILURE
1762 */
1763 oneway setUiccSubscriptionResponse(RadioResponseInfo info);
1764
1765 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001766 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001767 *
1768 * Valid errors returned:
1769 * RadioError:NONE
1770 * RadioError:RADIO_NOT_AVAILABLE
1771 * RadioError:GENERIC_FAILURE
1772 */
1773 oneway setDataAllowedResponse(RadioResponseInfo info);
1774
1775 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001776 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001777 * @param config Array of HardwareConfig of the radio.
1778 *
1779 * Valid errors returned:
1780 * RadioError:NONE
1781 * RadioError:RADIO_NOT_AVAILABLE
1782 */
1783 oneway getHardwareConfigResponse(RadioResponseInfo info, vec<HardwareConfig> config);
1784
1785 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001786 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001787 * @param result IccIoResult as defined in types.hal
1788 *
1789 * Valid errors returned:
1790 * RadioError:NONE
1791 * RadioError:RADIO_NOT_AVAILABLE
1792 */
1793 oneway requestIccSimAuthenticationResponse(RadioResponseInfo info, IccIoResult result);
1794
1795 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001796 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001797 *
1798 * Valid errors returned:
1799 * RadioError:NONE
1800 * RadioError:RADIO_NOT_AVAILABLE
1801 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1802 */
1803 oneway setDataProfileResponse(RadioResponseInfo info);
1804
1805 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001806 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001807 *
1808 * Valid errors returned:
1809 * RadioError:NONE
1810 * RadioError:RADIO_NOT_AVAILABLE
1811 * RadioError:OPERATION_NOT_ALLOWED
1812 * RadioError:GENERIC_FAILURE
1813 */
1814 oneway requestShutdownResponse(RadioResponseInfo info);
1815
1816 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001817 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001818 * @param rc Radio capability as defined by RadioCapability in types.hal
1819 *
1820 * Valid errors returned:
1821 * RadioError:NONE
1822 * RadioError:RADIO_NOT_AVAILABLE
1823 * RadioError:OPERATION_NOT_ALLOWED
1824 * RadioError:GENERIC_FAILURE
1825 */
1826 oneway getRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1827
1828 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001829 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001830 * @param rc Radio capability as defined by RadioCapability in types.hal used to
1831 * feedback return status
1832 *
1833 * Valid errors returned:
1834 * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds.
1835 * RadioError:RADIO_NOT_AVAILABLE
1836 * RadioError:OPERATION_NOT_ALLOWED
1837 * RadioError:GENERIC_FAILURE
1838 */
1839 oneway setRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1840
1841 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001842 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001843 * @param statusInfo LceStatusInfo indicating LCE status
1844 *
1845 * Valid errors returned:
1846 * RadioError:NONE
1847 * RadioError:RADIO_NOT_AVAILABLE
1848 * RadioError:LCE_NOT_SUPPORTED
1849 */
1850 oneway startLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1851
1852 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001853 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001854 * @param statusInfo LceStatusInfo indicating LCE status
1855 *
1856 * Valid errors returned:
1857 * RadioError:NONE
1858 * RadioError:RADIO_NOT_AVAILABLE
1859 * RadioError:LCE_NOT_SUPPORTED
1860 */
1861 oneway stopLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1862
1863 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001864 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001865 * @param lceInfo LceDataInfo indicating LCE data as defined in types.hal
1866 *
1867 * Valid errors returned:
1868 * RadioError:NONE
1869 * RadioError:RADIO_NOT_AVAILABLE
1870 * RadioError:LCE_NOT_SUPPORTED
1871 */
1872 oneway pullLceDataResponse(RadioResponseInfo info, LceDataInfo lceInfo);
1873
1874 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001875 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001876 * @param activityInfo modem activity information
1877 *
1878 * Valid errors returned:
1879 * RadioError:NONE
1880 * RadioError:RADIO_NOT_AVAILABLE
1881 * RadioError:GENERIC_FAILURE
1882 */
1883 oneway getModemActivityInfoResponse(RadioResponseInfo info, ActivityStatsInfo activityInfo);
1884
1885 /*
Sanket Padawe865834e2016-12-28 16:04:10 -08001886 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001887 * @param numAllowed number of allowed carriers which have been set correctly.
1888 * On success, it must match the length of list Carriers->allowedCarriers.
1889 * if Length of allowed carriers list is 0, numAllowed = 0.
1890 *
1891 * Valid errors returned:
1892 * RadioError:NONE
1893 * RadioError:RADIO_NOT_AVAILABLE
1894 * RadioError:INVALID_ARGUMENTS
1895 * RadioError:REQUEST_NOT_SUPPORTED
1896 */
1897 oneway setAllowedCarriersResponse(RadioResponseInfo info, int32_t numAllowed);
1898
1899 /*
1900 * Expected modem behavior:
1901 * Return list of allowed carriers, and if all carriers are allowed.
1902 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001903 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001904 * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct.
1905 * If false, consider "carriers" struct
1906 * @param carriers Carrier restriction information.
1907 *
1908 * Valid errors returned:
1909 * RadioError:NONE
1910 * RadioError:RADIO_NOT_AVAILABLE
1911 * RadioError:REQUEST_NOT_SUPPORTED
1912 */
1913 oneway getAllowedCarriersResponse(RadioResponseInfo info, bool allAllowed,
1914 CarrierRestrictions carriers);
Sanket Padawe1a7eae72016-12-07 14:40:03 -08001915
1916 /*
Jack Yued7ef812017-01-24 11:56:52 -08001917 * @param info Response info struct containing response type, serial no. and error
1918 *
1919 * Valid errors returned:
1920 * RadioError:NONE
1921 * RadioError:RADIO_NOT_AVAILABLE
1922 */
1923 oneway sendDeviceStateResponse(RadioResponseInfo info);
1924
1925 /*
1926 * @param info Response info struct containing response type, serial no. and error
1927 *
1928 * Valid errors returned:
1929 * RadioError:NONE
1930 * RadioError:INVALID_ARGUMENTS
1931 * RadioError:RADIO_NOT_AVAILABLE
1932 */
1933 oneway setIndicationFilterResponse(RadioResponseInfo info);
1934
1935 /*
Jack Yua2118692017-02-15 15:31:34 -08001936 * @param info Response info struct containing response type, serial no. and error
1937 *
1938 * Valid errors returned:
1939 * RadioError:NONE
1940 * RadioError:RADIO_NOT_AVAILABLE
1941 * RadioError:REQUEST_NOT_SUPPORTED
1942 * RadioError:SIM_ABSENT
1943 * RadioError:INVALID_ARGUMENTS
1944 */
1945 oneway setSimCardPowerResponse(RadioResponseInfo info);
1946
1947 /*
Jack Yued7ef812017-01-24 11:56:52 -08001948 * Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
Sanket Padawe1a7eae72016-12-07 14:40:03 -08001949 * radio request which take long time to respond.
1950 * For more details, refer https://source.android.com/devices/tech/connect/ril.html
1951 *
1952 * @param serial Serial no. of the request whose acknowledgement is sent.
1953 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001954 oneway acknowledgeRequest(int32_t serial);
Sanket Padawe76372492016-10-27 13:20:49 -07001955};