blob: 45cdd1c755f4c5ef91b514cbc557bcfe3a97ffe6 [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
Andreas Huber675ae492017-03-28 14:40:58 -070019/**
Sanket Padawe76372492016-10-27 13:20:49 -070020 * 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 {
Andreas Huber675ae492017-03-28 14:40:58 -070025 /**
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
sqian01d37ff2017-06-21 14:51:25 -070031 * RadioError:RADIO_NOT_AVAILABLE
32 * RadioError:INTERNAL_ERR
33 * RadioError:NO_MEMORY
34 * RadioError:NO_RESOURCES
35 * RadioError:CANCELLED
36 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -070037 */
Sanket Padawe865834e2016-12-28 16:04:10 -080038 oneway getIccCardStatusResponse(RadioResponseInfo info, CardStatus cardStatus);
Sanket Padawe76372492016-10-27 13:20:49 -070039
Andreas Huber675ae492017-03-28 14:40:58 -070040 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080041 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070042 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
43 *
44 * Valid errors returned:
45 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070046 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070047 * RadioError:PASSWORD_INCORRECT
sqian01d37ff2017-06-21 14:51:25 -070048 * RadioError:INTERNAL_ERR
49 * RadioError:NO_MEMORY
50 * RadioError:NO_RESOURCES
51 * RadioError:CANCELLED
52 * RadioError:INVALID_ARGUMENTS
53 * RadioError:INVALID_SIM_STATE
54 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -070055 */
56 oneway supplyIccPinForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
57
Andreas Huber675ae492017-03-28 14:40:58 -070058 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080059 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070060 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
61 *
62 * Valid errors returned:
63 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070064 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070065 * RadioError:PASSWORD_INCORRECT (PUK is invalid)
sqian01d37ff2017-06-21 14:51:25 -070066 * RadioError:INTERNAL_ERR
67 * RadioError:NO_MEMORY
68 * RadioError:NO_RESOURCES
69 * RadioError:CANCELLED
70 * RadioError:INVALID_ARGUMENTS
71 * RadioError:INVALID_SIM_STATE
72 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -070073 */
74 oneway supplyIccPukForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
75
Andreas Huber675ae492017-03-28 14:40:58 -070076 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080077 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070078 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
79 *
80 * Valid errors returned:
81 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070082 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070083 * RadioError:PASSWORD_INCORRECT
sqian01d37ff2017-06-21 14:51:25 -070084 * RadioError:INTERNAL_ERR
85 * RadioError:NO_MEMORY
86 * RadioError:NO_RESOURCES
87 * RadioError:CANCELLED
88 * RadioError:INVALID_ARGUMENTS
89 * RadioError:INVALID_SIM_STATE
90 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -070091 */
92 oneway supplyIccPin2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
93
Andreas Huber675ae492017-03-28 14:40:58 -070094 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080095 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070096 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
97 * Valid errors returned:
98 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070099 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700100 * RadioError:PASSWORD_INCORRECT (PUK is invalid)
sqian01d37ff2017-06-21 14:51:25 -0700101 * RadioError:INTERNAL_ERR
102 * RadioError:NO_MEMORY
103 * RadioError:NO_RESOURCES
104 * RadioError:CANCELLED
105 * RadioError:INVALID_ARGUMENTS
106 * RadioError:INVALID_SIM_STATE
107 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700108 */
109 oneway supplyIccPuk2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
110
Andreas Huber675ae492017-03-28 14:40:58 -0700111 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800112 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700113 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
114 *
115 * Valid errors returned:
116 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700117 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700118 * RadioError:PASSWORD_INCORRECT
sqian01d37ff2017-06-21 14:51:25 -0700119 * RadioError:INTERNAL_ERR
120 * RadioError:NO_MEMORY
121 * RadioError:NO_RESOURCES
122 * RadioError:CANCELLED
123 * RadioError:INVALID_ARGUMENTS
124 * RadioError:INVALID_SIM_STATE
125 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700126 */
127 oneway changeIccPinForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
128
Andreas Huber675ae492017-03-28 14:40:58 -0700129 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800130 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700131 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
132 *
133 * Valid errors returned:
134 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700135 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700136 * RadioError:PASSWORD_INCORRECT (old PIN2 is invalid)
sqian01d37ff2017-06-21 14:51:25 -0700137 * RadioError:INTERNAL_ERR
138 * RadioError:NO_MEMORY
139 * RadioError:NO_RESOURCES
140 * RadioError:CANCELLED
141 * RadioError:INVALID_ARGUMENTS
142 * RadioError:INVALID_SIM_STATE
143 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700144 */
145 oneway changeIccPin2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
146
Andreas Huber675ae492017-03-28 14:40:58 -0700147 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800148 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700149 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
150 *
151 * Valid errors returned:
152 * RadioError:NONE
sqian01d37ff2017-06-21 14:51:25 -0700153 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700154 * RadioError:PASSWORD_INCORRECT (code is invalid)
sqian284c53c2017-05-16 20:29:19 -0700155 * RadioError:NO_MEMORY
156 * RadioError:INVALID_SIM_STATE
157 * RadioError:INTERNAL_ERR
158 * RadioError:SYSTEM_ERR
159 * RadioError:MODEM_ERR
160 * RadioError:INVALID_ARGUMENTS
sqian01d37ff2017-06-21 14:51:25 -0700161 * RadioError:NO_RESOURCES
162 * RadioError:CANCELLED
163 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700164 */
165 oneway supplyNetworkDepersonalizationResponse(RadioResponseInfo info, int32_t remainingRetries);
166
Andreas Huber675ae492017-03-28 14:40:58 -0700167 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800168 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700169 * @param calls Current call list
170 *
171 * Valid errors returned:
172 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700173 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700174 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -0700175 * RadioError:INTERNAL_ERR
176 * RadioError:SYSTEM_ERR
177 * RadioError:INVALID_ARGUMENTS
178 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700179 * RadioError:NO_RESOURCES
180 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700181 */
182 oneway getCurrentCallsResponse(RadioResponseInfo info, vec<Call> calls);
183
Andreas Huber675ae492017-03-28 14:40:58 -0700184 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800185 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700186 *
187 * Valid errors returned:
188 * RadioError:NONE
189 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700190 * RadioError:DIAL_MODIFIED_TO_USSD
191 * RadioError:DIAL_MODIFIED_TO_SS
192 * RadioError:DIAL_MODIFIED_TO_DIAL
193 * RadioError:INVALID_ARGUMENTS
194 * RadioError:NO_MEMORY
195 * RadioError:INVALID_STATE
196 * RadioError:NO_RESOURCES
197 * RadioError:INTERNAL_ERR
198 * RadioError:FDN_CHECK_FAILURE
199 * RadioError:MODEM_ERR
200 * RadioError:NO_SUBSCRIPTION
201 * RadioError:NO_NETWORK_FOUND
202 * RadioError:INVALID_CALL_ID
203 * RadioError:DEVICE_IN_USE
204 * RadioError:MODE_NOT_SUPPORTED
205 * RadioError:ABORTED
sqian159ec7f2017-04-25 18:00:34 -0700206 * RadioError:SYSTEM_ERR
207 * RadioError:REQUEST_NOT_SUPPORTED
208 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700209 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700210 */
211 oneway dialResponse(RadioResponseInfo info);
212
Andreas Huber675ae492017-03-28 14:40:58 -0700213 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800214 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700215 * @param imsi String containing the IMSI
216 *
217 * Valid errors returned:
218 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700219 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
sqian01d37ff2017-06-21 14:51:25 -0700220 * RadioError:INTERNAL_ERR
221 * RadioError:NO_MEMORY
222 * RadioError:NO_RESOURCES
223 * RadioError:CANCELLED
224 * RadioError:INVALID_SIM_STATE
225 * RadioError:SIM_ERR
226 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700227 */
228 oneway getIMSIForAppResponse(RadioResponseInfo info, string imsi);
229
Andreas Huber675ae492017-03-28 14:40:58 -0700230 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800231 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700232 *
233 * Valid errors returned:
234 * RadioError:NONE
235 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
236 * RadioError:INVALID_ARGUMENTS
237 * RadioError:NO_MEMORY
238 * RadioError:INVALID_STATE
239 * RadioError:MODEM_ERR
240 * RadioError:INTERNAL_ERR
241 * RadioError:INVALID_CALL_ID
sqian01d37ff2017-06-21 14:51:25 -0700242 * RadioError:NO_RESOURCES
243 * RadioError:CANCELLED
244 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700245 */
246 oneway hangupConnectionResponse(RadioResponseInfo info);
247
Andreas Huber675ae492017-03-28 14:40:58 -0700248 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800249 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700250 *
251 * Valid errors returned:
252 * RadioError:NONE
253 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
254 * RadioError:INVALID_STATE
255 * RadioError:NO_MEMORY
256 * RadioError:MODEM_ERR
257 * RadioError:INTERNAL_ERR
258 * RadioError:INVALID_CALL_ID
259 * RadioError:NO_RESOURCES
260 * RadioError:OPERATION_NOT_ALLOWED
261 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700262 * RadioError:SYSTEM_ERR
263 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700264 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700265 */
266 oneway hangupWaitingOrBackgroundResponse(RadioResponseInfo info);
267
Andreas Huber675ae492017-03-28 14:40:58 -0700268 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800269 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700270 *
271 * Valid errors returned:
272 * RadioError:NONE
273 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
274 * RadioError:INVALID_STATE
275 * RadioError:NO_MEMORY
276 * RadioError:MODEM_ERR
277 * RadioError:INTERNAL_ERR
278 * RadioError:INVALID_CALL_ID
279 * RadioError:NO_RESOURCES
280 * RadioError:OPERATION_NOT_ALLOWED
281 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700282 * RadioError:SYSTEM_ERR
283 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700284 * RadioError:NO_RESOURCES
285 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700286 */
287 oneway hangupForegroundResumeBackgroundResponse(RadioResponseInfo info);
288
Andreas Huber675ae492017-03-28 14:40:58 -0700289 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800290 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700291 *
292 * Valid errors returned:
293 * RadioError:NONE
294 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
295 * RadioError:INVALID_STATE
296 * RadioError:NO_MEMORY
297 * RadioError:MODEM_ERR
298 * RadioError:INTERNAL_ERR
299 * RadioError:INVALID_STATE
300 * RadioError:INVALID_CALL_ID
301 * RadioError:OPERATION_NOT_ALLOWED
302 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700303 * RadioError:SYSTEM_ERR
304 * RadioError:REQUEST_NOT_SUPPORTED
305 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700306 * RadioError:NO_RESOURCES
307 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700308 */
309 oneway switchWaitingOrHoldingAndActiveResponse(RadioResponseInfo info);
310
Andreas Huber675ae492017-03-28 14:40:58 -0700311 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800312 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700313 *
314 * Valid errors returned:
315 * RadioError:NONE
316 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
317 * RadioError:NO_MEMORY
318 * RadioError:MODEM_ERR
319 * RadioError:INTERNAL_ERR
320 * RadioError:INVALID_STATE
321 * RadioError:INVALID_CALL_ID
322 * RadioError:OPERATION_NOT_ALLOWED
323 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700324 * RadioError:SYSTEM_ERR
325 * RadioError:REQUEST_NOT_SUPPORTED
326 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700327 * RadioError:NO_RESOURCES
328 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700329 */
330 oneway conferenceResponse(RadioResponseInfo info);
331
Andreas Huber675ae492017-03-28 14:40:58 -0700332 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800333 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700334 *
335 * Valid errors returned:
336 * RadioError:NONE
337 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
338 * RadioError:INVALID_STATE
339 * RadioError:NO_RESOURCES
340 * RadioError:NO_MEMORY
341 * RadioError:MODEM_ERR
342 * RadioError:INTERNAL_ERR
343 * RadioError:INVALID_CALL_ID
344 * RadioError:OPERATION_NOT_ALLOWED
345 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700346 * RadioError:SYSTEM_ERR
347 * RadioError:REQUEST_NOT_SUPPORTED
348 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700349 * RadioError:NO_RESOURCES
350 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700351 */
352 oneway rejectCallResponse(RadioResponseInfo info);
353
Andreas Huber675ae492017-03-28 14:40:58 -0700354 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800355 * @param info Response info struct containing response type, serial no. and error
Jayachandran Ca03c0c62017-03-13 17:00:33 -0700356 * @param failCauseInfo Contains LastCallFailCause and vendor cause code.
Sanket Padawe76372492016-10-27 13:20:49 -0700357 *
Jayachandran Ca03c0c62017-03-13 17:00:33 -0700358 * The vendor cause code must be used for debugging purpose only.
359 * The implementation must return one of the values of LastCallFailCause
360 * as mentioned below
361 *
362 * GSM failure reasons codes for the cause codes defined in TS 24.008 Annex H
363 * where possible.
364 * CDMA failure reasons codes for the possible call failure scenarios
365 * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard.
366 * Any of the following reason codes if the call is failed or dropped due to reason
367 * mentioned with in the braces.
368 * LastCallFailCause:RADIO_OFF (Radio is OFF)
369 * LastCallFailCause:OUT_OF_SERVICE (No cell coverage)
370 * LastCallFailCause:NO_VALID_SIM (No valid SIM)
371 * LastCallFailCause:RADIO_INTERNAL_ERROR (Modem hit unexpected error scenario)
372 * LastCallFailCause:NETWORK_RESP_TIMEOUT (No response from network)
373 * LastCallFailCause:NETWORK_REJECT (Explicit network reject)
374 * LastCallFailCause:RADIO_ACCESS_FAILURE (RRC connection failure. Eg.RACH)
375 * LastCallFailCause:RADIO_LINK_FAILURE (Radio Link Failure)
376 * LastCallFailCause:RADIO_LINK_LOST (Radio link lost due to poor coverage)
377 * LastCallFailCause:RADIO_UPLINK_FAILURE (Radio uplink failure)
378 * LastCallFailCause:RADIO_SETUP_FAILURE (RRC connection setup failure)
379 * LastCallFailCause:RADIO_RELEASE_NORMAL (RRC connection release, normal)
380 * LastCallFailCause:RADIO_RELEASE_ABNORMAL (RRC connection release, abnormal)
381 * LastCallFailCause:ACCESS_CLASS_BLOCKED (Access class barring)
382 * LastCallFailCause:NETWORK_DETACH (Explicit network detach)
383 * OEM causes (LastCallFailCause:OEM_CAUSE_XX) must be used for debug purpose only
Sanket Padawe76372492016-10-27 13:20:49 -0700384 *
385 * If the implementation does not have access to the exact cause codes,
386 * then it must return one of the values listed in LastCallFailCause,
387 * as the UI layer needs to distinguish these cases for tone generation or
388 * error notification.
389 *
390 * Valid errors returned:
391 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700392 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -0700393 * RadioError:RADIO_NOT_AVAILABLE
394 * RadioError:SYSTEM_ERR
395 * RadioError:INVALID_ARGUMENTS
396 * RadioError:INTERNAL_ERR
397 * RadioError:MODEM_ERR
398 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700399 * RadioError:NO_MEMORY
400 * RadioError:NO_RESOURCES
401 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700402 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800403 oneway getLastCallFailCauseResponse(RadioResponseInfo info,
404 LastCallFailCauseInfo failCauseinfo);
Sanket Padawe76372492016-10-27 13:20:49 -0700405
Andreas Huber675ae492017-03-28 14:40:58 -0700406 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800407 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700408 * @param sigStrength Current signal strength
409 *
410 * Valid errors returned:
411 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700412 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700413 * RadioError:NO_MEMORY
414 * RadioError:INTERNAL_ERR
415 * RadioError:SYSTEM_ERR
416 * RadioError:MODEM_ERR
417 * RadioError:NOT_PROVISIONED
418 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700419 * RadioError:NO_RESOURCES
420 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700421 */
422 oneway getSignalStrengthResponse(RadioResponseInfo info, SignalStrength sigStrength);
423
Andreas Huber675ae492017-03-28 14:40:58 -0700424 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800425 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700426 * @param voiceRegResponse Current Voice registration response as defined by VoiceRegStateResult
427 * in types.hal
428 *
429 * Valid errors returned:
430 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700431 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -0700432 * RadioError:INTERNAL_ERR
433 * RadioError:NO_MEMORY
434 * RadioError:NO_RESOURCES
435 * RadioError:CANCELLED
436 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700437 */
438 oneway getVoiceRegistrationStateResponse(RadioResponseInfo info,
439 VoiceRegStateResult voiceRegResponse);
440
Andreas Huber675ae492017-03-28 14:40:58 -0700441 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800442 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700443 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
444 * types.hal
445 *
446 * Valid errors returned:
447 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700448 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700449 * RadioError:NO_MEMORY
450 * RadioError:INTERNAL_ERR
451 * RadioError:SYSTEM_ERR
452 * RadioError:MODEM_ERR
453 * RadioError:NOT_PROVISIONED
454 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700455 * RadioError:NO_RESOURCES
456 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700457 */
458 oneway getDataRegistrationStateResponse(RadioResponseInfo info,
459 DataRegStateResult dataRegResponse);
460
Andreas Huber675ae492017-03-28 14:40:58 -0700461 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800462 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700463 * @param longName is long alpha ONS or EONS or empty string if unregistered
464 * @param shortName is short alpha ONS or EONS or empty string if unregistered
465 * @param numeric is 5 or 6 digit numeric code (MCC + MNC) or empty string if unregistered
466 *
467 * Valid errors returned:
468 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700469 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700470 * RadioError:NO_MEMORY
471 * RadioError:INTERNAL_ERR
472 * RadioError:SYSTEM_ERR
473 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700474 * RadioError:NO_RESOURCES
475 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700476 */
477 oneway getOperatorResponse(RadioResponseInfo info, string longName, string shortName,
478 string numeric);
479
Andreas Huber675ae492017-03-28 14:40:58 -0700480 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800481 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700482 *
483 * Valid errors returned:
484 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700485 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700486 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700487 * RadioError:INVALID_STATE
488 * RadioError:NO_MEMORY
489 * RadioError:INTERNAL_ERR
490 * RadioError:SYSTEM_ERR
491 * RadioError:INVALID_ARGUMENTS
492 * RadioError:MODEM_ERR
493 * RadioError:DEVICE_IN_USE
494 * RadioError:OPERATION_NOT_ALLOWED
495 * RadioError:INVALID_MODEM_STATE
496 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700497 * RadioError:NO_RESOURCES
498 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700499 */
500 oneway setRadioPowerResponse(RadioResponseInfo info);
501
Andreas Huber675ae492017-03-28 14:40:58 -0700502 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800503 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700504 *
505 * Valid errors returned:
506 * RadioError:NONE
507 * RadioError:RADIO_NOT_AVAILABLE
508 * RadioError:INVALID_ARGUMENTS
509 * RadioError:NO_RESOURCES
510 * RadioError:NO_MEMORY
511 * RadioError:MODEM_ERR
512 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700513 * RadioError:INTERNAL_ERR
514 * RadioError:SYSTEM_ERR
515 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700516 * RadioError:CANCELLED
sqian08e90552017-06-01 12:39:22 -0700517 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700518 */
519 oneway sendDtmfResponse(RadioResponseInfo info);
520
Andreas Huber675ae492017-03-28 14:40:58 -0700521 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800522 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700523 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
524 *
525 * Valid errors returned:
526 * RadioError:NONE
527 * RadioError:RADIO_NOT_AVAILABLE
528 * RadioError:SMS_SEND_FAIL_RETRY
529 * RadioError:NETWORK_REJECT
530 * RadioError:INVALID_STATE
531 * RadioError:INVALID_ARGUMENTS
532 * RadioError:NO_MEMORY
533 * RadioError:REQUEST_RATE_LIMITED
534 * RadioError:INVALID_SMS_FORMAT
535 * RadioError:SYSTEM_ERR
536 * RadioError:ENCODING_ERR
537 * RadioError:INVALID_SMSC_ADDRESS
538 * RadioError:MODEM_ERR
539 * RadioError:NETWORK_ERR
540 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -0700541 * RadioError:INTERNAL_ERR
542 * RadioError:REQUEST_NOT_SUPPORTED
543 * RadioError:INVALID_MODEM_STATE
544 * RadioError:NETWORK_NOT_READY
545 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -0700546 * RadioError:NO_RESOURCES
547 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700548 */
549 oneway sendSmsResponse(RadioResponseInfo info, SendSmsResult sms);
550
Andreas Huber675ae492017-03-28 14:40:58 -0700551 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800552 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700553 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
554 *
555 * Valid errors returned:
556 * RadioError:NONE
557 * RadioError:RADIO_NOT_AVAILABLE
558 * RadioError:SMS_SEND_FAIL_RETRY
559 * RadioError:NETWORK_REJECT
560 * RadioError:INVALID_STATE
561 * RadioError:INVALID_ARGUMENTS
562 * RadioError:NO_MEMORY
563 * RadioError:REQUEST_RATE_LIMITED
564 * RadioError:INVALID_SMS_FORMAT
565 * RadioError:SYSTEM_ERR
566 * RadioError:FDN_CHECK_FAILURE
567 * RadioError:ENCODING_ERR
568 * RadioError:INVALID_SMSC_ADDRESS
569 * RadioError:MODEM_ERR
570 * RadioError:NETWORK_ERR
571 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -0700572 * RadioError:INTERNAL_ERR
573 * RadioError:REQUEST_NOT_SUPPORTED
574 * RadioError:INVALID_MODEM_STATE
575 * RadioError:NETWORK_NOT_READY
576 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -0700577 * RadioError:NO_RESOURCES
578 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700579 */
580 oneway sendSMSExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
581
Andreas Huber675ae492017-03-28 14:40:58 -0700582 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800583 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700584 * @param dcResponse SetupDataCallResult defined in types.hal
585 *
586 * Valid errors returned:
587 * RadioError:NONE must be returned on both success and failure of setup with the
588 * DataCallResponse.status containing the actual status
589 * For all other errors the DataCallResponse is ignored.
Sanket Padawe76372492016-10-27 13:20:49 -0700590 * RadioError:RADIO_NOT_AVAILABLE
591 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
592 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
593 * RadioError:REQUEST_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700594 * RadioError:INVALID_ARGUMENTS
sqian01d37ff2017-06-21 14:51:25 -0700595 * RadioError:INTERNAL_ERR
596 * RadioError:NO_MEMORY
597 * RadioError:NO_RESOURCES
598 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700599 */
600 oneway setupDataCallResponse(RadioResponseInfo info, SetupDataCallResult dcResponse);
601
Andreas Huber675ae492017-03-28 14:40:58 -0700602 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800603 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700604 * @param iccIo ICC io operation response as defined by IccIoResult in types.hal
Sanket Padawe76372492016-10-27 13:20:49 -0700605 *
606 * Valid errors returned:
607 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700608 * RadioError:RADIO_NOT_AVAILABLE
609 * RadioError:SIM_PIN2
610 * RadioError:SIM_PUK2
sqian01d37ff2017-06-21 14:51:25 -0700611 * RadioError:INTERNAL_ERR
612 * RadioError:NO_MEMORY
613 * RadioError:NO_RESOURCES
614 * RadioError:CANCELLED
615 * RadioError:INVALID_SIM_STATE
616 * RadioError:SIM_ERR
617 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700618 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800619 oneway iccIOForAppResponse(RadioResponseInfo info, IccIoResult iccIo);
Sanket Padawe76372492016-10-27 13:20:49 -0700620
Andreas Huber675ae492017-03-28 14:40:58 -0700621 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800622 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700623 *
624 * Valid errors returned:
625 * RadioError:NONE
626 * RadioError:RADIO_NOT_AVAILABLE
627 * RadioError:FDN_CHECK_FAILURE
628 * RadioError:USSD_MODIFIED_TO_DIAL
629 * RadioError:USSD_MODIFIED_TO_SS
630 * RadioError:USSD_MODIFIED_TO_USSD
631 * RadioError:SIM_BUSY
632 * RadioError:OPERATION_NOT_ALLOWED
633 * RadioError:INVALID_ARGUMENTS
634 * RadioError:NO_MEMORY
635 * RadioError:MODEM_ERR
636 * RadioError:INTERNAL_ERR
637 * RadioError:ABORTED
638 * RadioError:SYSTEM_ERR
639 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -0700640 * RadioError:REQUEST_NOT_SUPPORTED
641 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700642 * RadioError:NO_RESOURCES
643 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700644 */
645 oneway sendUssdResponse(RadioResponseInfo info);
646
Andreas Huber675ae492017-03-28 14:40:58 -0700647 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800648 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700649 *
650 * Valid errors returned:
651 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700652 * RadioError:RADIO_NOT_AVAILABLE
653 * RadioError:SIM_BUSY
654 * RadioError:OPERATION_NOT_ALLOWED
655 * RadioError:MODEM_ERR
656 * RadioError:INTERNAL_ERR
657 * RadioError:NO_MEMORY
658 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -0700659 * RadioError:INVALID_ARGUMENTS
660 * RadioError:SYSTEM_ERR
661 * RadioError:REQUEST_NOT_SUPPORTED
662 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700663 * RadioError:NO_RESOURCES
664 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700665 */
666 oneway cancelPendingUssdResponse(RadioResponseInfo info);
667
Andreas Huber675ae492017-03-28 14:40:58 -0700668 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800669 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700670 * @param n is "n" parameter from TS 27.007 7.7
671 * @param m is "m" parameter from TS 27.007 7.7
672 *
673 * Valid errors returned:
674 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700675 * RadioError:RADIO_NOT_AVAILABLE
676 * RadioError:SS_MODIFIED_TO_DIAL
677 * RadioError:SS_MODIFIED_TO_USSD
678 * RadioError:SS_MODIFIED_TO_SS
679 * RadioError:NO_MEMORY
680 * RadioError:MODEM_ERR
681 * RadioError:INTERNAL_ERR
682 * RadioError:FDN_CHECK_FAILURE
683 * RadioError:SYSTEM_ERR
sqian159ec7f2017-04-25 18:00:34 -0700684 * RadioError:REQUEST_NOT_SUPPORTED
685 * RadioError:INVALID_ARGUMENTS
sqian01d37ff2017-06-21 14:51:25 -0700686 * RadioError:NO_RESOURCES
687 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700688 */
689 oneway getClirResponse(RadioResponseInfo info, int32_t n, int32_t m);
690
Andreas Huber675ae492017-03-28 14:40:58 -0700691 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800692 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700693 *
694 * Valid errors returned:
695 * RadioError:NONE
696 * RadioError:INVALID_ARGUMENTS
697 * RadioError:RADIO_NOT_AVAILABLE
698 * RadioError:SS_MODIFIED_TO_DIAL
699 * RadioError:SS_MODIFIED_TO_USSD
700 * RadioError:SS_MODIFIED_TO_SS
sqian159ec7f2017-04-25 18:00:34 -0700701 * RadioError:NO_MEMORY
702 * RadioError:INTERNAL_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700703 * RadioError:SYSTEM_ERR
sqian159ec7f2017-04-25 18:00:34 -0700704 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700705 * RadioError:NO_RESOURCES
706 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700707 */
708 oneway setClirResponse(RadioResponseInfo info);
709
Andreas Huber675ae492017-03-28 14:40:58 -0700710 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800711 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700712 * @param callForwardInfos points to a vector of CallForwardInfo, one for
713 * each distinct registered phone number.
714 *
715 * For example, if data is forwarded to +18005551212 and voice is forwarded
716 * to +18005559999, then two separate CallForwardInfo's must be returned
717 *
718 * If, however, both data and voice are forwarded to +18005551212, then
719 * a single CallForwardInfo must be returned with the service class
720 * set to "data + voice = 3")
721 *
722 * Valid errors returned:
723 * RadioError:NONE
724 * RadioError:RADIO_NOT_AVAILABLE
725 * RadioError:SS_MODIFIED_TO_DIAL
726 * RadioError:SS_MODIFIED_TO_USSD
727 * RadioError:SS_MODIFIED_TO_SS
728 * RadioError:INVALID_ARGUMENTS
729 * RadioError:NO_MEMORY
730 * RadioError:SYSTEM_ERR
731 * RadioError:MODEM_ERR
732 * RadioError:INTERNAL_ERR
733 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700734 * RadioError:REQUEST_NOT_SUPPORTED
735 * RadioError:SYSTEM_ERR
sqian01d37ff2017-06-21 14:51:25 -0700736 * RadioError:NO_RESOURCES
737 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700738 */
739 oneway getCallForwardStatusResponse(RadioResponseInfo info,
740 vec<CallForwardInfo> callForwardInfos);
741
Andreas Huber675ae492017-03-28 14:40:58 -0700742 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800743 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700744 *
745 * Valid errors returned:
746 * RadioError:NONE
747 * RadioError:RADIO_NOT_AVAILABLE
748 * RadioError:SS_MODIFIED_TO_DIAL
749 * RadioError:SS_MODIFIED_TO_USSD
750 * RadioError:SS_MODIFIED_TO_SS
751 * RadioError:INVALID_ARGUMENTS
752 * RadioError:NO_MEMORY
753 * RadioError:SYSTEM_ERR
754 * RadioError:MODEM_ERR
755 * RadioError:INTERNAL_ERR
756 * RadioError:INVALID_STATE
757 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700758 * RadioError:REQUEST_NOT_SUPPORTED
759 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700760 * RadioError:NO_RESOURCES
761 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700762 */
763 oneway setCallForwardResponse(RadioResponseInfo info);
764
Andreas Huber675ae492017-03-28 14:40:58 -0700765 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800766 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700767 * @param enable If current call waiting state is disabled, enable = false else true
768 * @param serviceClass If enable, then callWaitingResp[1]
769 * must follow, with the TS 27.007 service class bit vector of services
770 * for which call waiting is enabled.
771 * For example, if callWaitingResp[0] is 1 and
772 * callWaitingResp[1] is 3, then call waiting is enabled for data
773 * and voice and disabled for everything else.
774 *
775 * Valid errors returned:
776 * RadioError:NONE
777 * RadioError:RADIO_NOT_AVAILABLE
778 * RadioError:SS_MODIFIED_TO_DIAL
779 * RadioError:SS_MODIFIED_TO_USSD
780 * RadioError:SS_MODIFIED_TO_SS
781 * RadioError:INVALID_ARGUMENTS
782 * RadioError:NO_MEMORY
783 * RadioError:MODEM_ERR
784 * RadioError:INTERNAL_ERR
785 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700786 * RadioError:INTERNAL_ERR
787 * RadioError:SYSTEM_ERR
788 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700789 * RadioError:NO_RESOURCES
790 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700791 */
792 oneway getCallWaitingResponse(RadioResponseInfo info, bool enable, int32_t serviceClass);
793
Andreas Huber675ae492017-03-28 14:40:58 -0700794 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800795 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700796 *
797 * Valid errors returned:
798 * RadioError:NONE
799 * RadioError:RADIO_NOT_AVAILABLE
800 * RadioError:SS_MODIFIED_TO_DIAL
801 * RadioError:SS_MODIFIED_TO_USSD
802 * RadioError:SS_MODIFIED_TO_SS
803 * RadioError:INVALID_ARGUMENTS
804 * RadioError:NO_MEMORY
805 * RadioError:MODEM_ERR
806 * RadioError:INTERNAL_ERR
807 * RadioError:INVALID_STATE
808 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700809 * RadioError:SYSTEM_ERR
810 * RadioError:REQUEST_NOT_SUPPORTED
811 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700812 * RadioError:NO_RESOURCES
813 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700814 */
815 oneway setCallWaitingResponse(RadioResponseInfo info);
816
Andreas Huber675ae492017-03-28 14:40:58 -0700817 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800818 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700819 *
820 * Valid errors returned:
821 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700822 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -0700823 * RadioError:INTERNAL_ERR
824 * RadioError:NO_MEMORY
825 * RadioError:NO_RESOURCES
826 * RadioError:CANCELLED
827 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700828 */
829 oneway acknowledgeLastIncomingGsmSmsResponse(RadioResponseInfo info);
830
Andreas Huber675ae492017-03-28 14:40:58 -0700831 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800832 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700833 *
834 * Valid errors returned:
835 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700836 * RadioError:RADIO_NOT_AVAILABLE
837 * RadioError:INVALID_STATE
838 * RadioError:NO_MEMORY
839 * RadioError:SYSTEM_ERR
840 * RadioError:MODEM_ERR
841 * RadioError:INTERNAL_ERR
842 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700843 * RadioError:INVALID_ARGUMENTS
844 * RadioError:SYSTEM_ERR
845 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700846 * RadioError:NO_RESOURCES
847 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700848 */
849 oneway acceptCallResponse(RadioResponseInfo info);
850
Andreas Huber675ae492017-03-28 14:40:58 -0700851 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800852 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700853 *
854 * Valid errors returned:
855 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700856 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700857 * RadioError:INVALID_CALL_ID
858 * RadioError:INVALID_STATE
859 * RadioError:INVALID_ARGUMENTS
860 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700861 * RadioError:INTERNAL_ERR
862 * RadioError:NO_MEMORY
863 * RadioError:NO_RESOURCES
864 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700865 */
866 oneway deactivateDataCallResponse(RadioResponseInfo info);
867
Andreas Huber675ae492017-03-28 14:40:58 -0700868 /**
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 * @param response 0 is the TS 27.007 service class bit vector of
871 * services for which the specified barring facility
872 * is active. "0" means "disabled for all"
873 *
874 * Valid errors returned:
875 * RadioError:NONE
876 * RadioError:RADIO_NOT_AVAILABLE
877 * RadioError:SS_MODIFIED_TO_DIAL
878 * RadioError:SS_MODIFIED_TO_USSD
879 * RadioError:SS_MODIFIED_TO_SS
880 * RadioError:INVALID_ARGUMENTS
881 * RadioError:NO_MEMORY
882 * RadioError:MODEM_ERR
883 * RadioError:INTERNAL_ERR
884 * RadioError:SYSTEM_ERR
885 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700886 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700887 * RadioError:NO_RESOURCES
888 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700889 */
890 oneway getFacilityLockForAppResponse(RadioResponseInfo info, int32_t response);
891
Andreas Huber675ae492017-03-28 14:40:58 -0700892 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800893 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700894 * @param retry 0 is the number of retries remaining, or -1 if unknown
895 *
896 * Valid errors returned:
897 * RadioError:NONE
898 * RadioError:RADIO_NOT_AVAILABLE
899 * RadioError:SS_MODIFIED_TO_DIAL
900 * RadioError:SS_MODIFIED_TO_USSD
901 * RadioError:SS_MODIFIED_TO_SS
902 * RadioError:INVALID_ARGUMENTS
903 * RadioError:NO_MEMORY
904 * RadioError:MODEM_ERR
905 * RadioError:INTERNAL_ERR
sqian159ec7f2017-04-25 18:00:34 -0700906 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700907 * RadioError:INVALID_STATE
908 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700909 * RadioError:REQUEST_NOT_SUPPORTED
910 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -0700911 * RadioError:NO_RESOURCES
912 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700913 */
914 oneway setFacilityLockForAppResponse(RadioResponseInfo info, int32_t retry);
915
Andreas Huber675ae492017-03-28 14:40:58 -0700916 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800917 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700918 *
919 * Valid errors returned:
920 * RadioError:NONE
921 * RadioError:RADIO_NOT_AVAILABLE
922 * RadioError:SS_MODIFIED_TO_DIAL
923 * RadioError:SS_MODIFIED_TO_USSD
924 * RadioError:SS_MODIFIED_TO_SS
925 * RadioError:INVALID_ARGUMENTS
926 * RadioError:NO_MEMORY
927 * RadioError:MODEM_ERR
928 * RadioError:INTERNAL_ERR
929 * RadioError:SYSTEM_ERR
930 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700931 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700932 * RadioError:NO_RESOURCES
933 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700934 */
935 oneway setBarringPasswordResponse(RadioResponseInfo info);
936
Andreas Huber675ae492017-03-28 14:40:58 -0700937 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800938 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700939 * @param selection false for automatic selection, true for manual selection
940 *
941 * Valid errors returned:
942 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700943 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700944 * RadioError:NO_MEMORY
945 * RadioError:INTERNAL_ERR
946 * RadioError:SYSTEM_ERR
947 * RadioError:INVALID_ARGUMENTS
948 * RadioError:MODEM_ERR
949 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700950 * RadioError:NO_RESOURCES
951 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700952 */
953 oneway getNetworkSelectionModeResponse(RadioResponseInfo info, bool manual);
954
Andreas Huber675ae492017-03-28 14:40:58 -0700955 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800956 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700957 *
958 * Valid errors returned:
959 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700960 * RadioError:RADIO_NOT_AVAILABLE
961 * RadioError:ILLEGAL_SIM_OR_ME
962 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700963 * RadioError:NO_MEMORY
964 * RadioError:INTERNAL_ERR
965 * RadioError:SYSTEM_ERR
966 * RadioError:INVALID_ARGUMENTS
967 * RadioError:MODEM_ERR
968 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700969 * RadioError:NO_RESOURCES
970 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700971 *
972 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
973 * no retries needed, such as illegal SIM or ME.
Sanket Padawe76372492016-10-27 13:20:49 -0700974 */
975 oneway setNetworkSelectionModeAutomaticResponse(RadioResponseInfo info);
976
Andreas Huber675ae492017-03-28 14:40:58 -0700977 /**
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
Sanket Padawe76372492016-10-27 13:20:49 -0700982 * RadioError:RADIO_NOT_AVAILABLE
983 * RadioError:ILLEGAL_SIM_OR_ME
984 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700985 * RadioError:INVALID_STATE
986 * RadioError:NO_MEMORY
987 * RadioError:INTERNAL_ERR
988 * RadioError:SYSTEM_ERR
989 * RadioError:INVALID_ARGUMENTS
990 * RadioError:MODEM_ERR
991 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -0700992 * RadioError:NO_RESOURCES
993 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700994 *
995 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
996 * no retries needed, such as illegal SIM or ME.
Sanket Padawe76372492016-10-27 13:20:49 -0700997 */
998 oneway setNetworkSelectionModeManualResponse(RadioResponseInfo info);
999
Andreas Huber675ae492017-03-28 14:40:58 -07001000 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001001 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001002 * @param networkInfos List of network operator information as OperatorInfos defined in
1003 * types.hal
1004 *
1005 * Valid errors returned:
1006 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -07001007 * RadioError:RADIO_NOT_AVAILABLE
1008 * RadioError:OPERATION_NOT_ALLOWED
Jayachandran Cfbb1ea52017-03-13 19:23:52 -07001009 * RadioError:ABORTED
1010 * RadioError:DEVICE_IN_USE
1011 * RadioError:INTERNAL_ERR
1012 * RadioError:NO_MEMORY
1013 * RadioError:MODEM_ERR
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001014 * RadioError:REQUEST_NOT_SUPPORTED
1015 * RadioError:CANCELLED
sqian01d37ff2017-06-21 14:51:25 -07001016 * RadioError:NO_RESOURCES
1017 * RadioError:INTERNAL_ERR
Sanket Padawe76372492016-10-27 13:20:49 -07001018 */
1019 oneway getAvailableNetworksResponse(RadioResponseInfo info,
1020 vec<OperatorInfo> networkInfos);
1021
Andreas Huber675ae492017-03-28 14:40:58 -07001022 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001023 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001024 *
1025 * Valid errors returned:
1026 * RadioError:NONE
1027 * RadioError:RADIO_NOT_AVAILABLE
1028 * RadioError:INVALID_ARGUMENTS
1029 * RadioError:NO_RESOURCES
1030 * RadioError:NO_MEMORY
1031 * RadioError:SYSTEM_ERR
1032 * RadioError:MODEM_ERR
1033 * RadioError:INTERNAL_ERR
1034 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -07001035 * RadioError:SYSTEM_ERR
1036 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001037 * RadioError:CANCELLED
sqian08e90552017-06-01 12:39:22 -07001038 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -07001039 */
1040 oneway startDtmfResponse(RadioResponseInfo info);
1041
Andreas Huber675ae492017-03-28 14:40:58 -07001042 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001043 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001044 *
1045 * Valid errors returned:
1046 * RadioError:NONE
1047 * RadioError:RADIO_NOT_AVAILABLE
1048 * RadioError:INVALID_ARGUMENTS
1049 * RadioError:NO_RESOURCES
1050 * RadioError:NO_MEMORY
1051 * RadioError:INVALID_ARGUMENTS
1052 * RadioError:SYSTEM_ERR
1053 * RadioError:MODEM_ERR
1054 * RadioError:INTERNAL_ERR
1055 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -07001056 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001057 * RadioError:CANCELLED
sqian08e90552017-06-01 12:39:22 -07001058 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -07001059 */
1060 oneway stopDtmfResponse(RadioResponseInfo info);
1061
Andreas Huber675ae492017-03-28 14:40:58 -07001062 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001063 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001064 * @param version string containing version string for log reporting
1065 *
1066 * Valid errors returned:
1067 * RadioError:NONE
1068 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001069 * RadioError:EMPTY_RECORD
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001070 * RadioError:NO_MEMORY
1071 * RadioError:INTERNAL_ERR
1072 * RadioError:SYSTEM_ERR
1073 * RadioError:MODEM_ERR
1074 * RadioError:NOT_PROVISIONED
1075 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001076 * RadioError:NO_RESOURCES
1077 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -07001078 */
1079 oneway getBasebandVersionResponse(RadioResponseInfo info, string version);
1080
Andreas Huber675ae492017-03-28 14:40:58 -07001081 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001082 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001083 *
1084 * Valid errors returned:
1085 * RadioError:NONE
1086 * RadioError:RADIO_NOT_AVAILABLE
1087 * RadioError:INVALID_ARGUMENTS
1088 * RadioError:INVALID_STATE
1089 * RadioError:NO_RESOURCES
1090 * RadioError:NO_MEMORY
1091 * RadioError:MODEM_ERR
1092 * RadioError:SYSTEM_ERR
1093 * RadioError:INTERNAL_ERR
1094 * RadioError:INVALID_CALL_ID
1095 * RadioError:OPERATION_NOT_ALLOWED
sqian159ec7f2017-04-25 18:00:34 -07001096 * RadioError:REQUEST_NOT_SUPPORTED
1097 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -07001098 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -07001099 */
1100 oneway separateConnectionResponse(RadioResponseInfo info);
1101
Andreas Huber675ae492017-03-28 14:40:58 -07001102 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001103 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001104 *
1105 * Valid errors returned:
1106 * RadioError:NONE
1107 * RadioError:RADIO_NOT_AVAILABLE
1108 * RadioError:INVALID_ARGUMENTS
1109 * RadioError:NO_MEMORY
1110 * RadioError:REQUEST_RATE_LIMITED
sqian159ec7f2017-04-25 18:00:34 -07001111 * RadioError:INTERNAL_ERR
1112 * RadioError:SYSTEM_ERR
1113 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001114 * RadioError:NO_RESOURCES
1115 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -07001116 */
1117 oneway setMuteResponse(RadioResponseInfo info);
1118
Andreas Huber675ae492017-03-28 14:40:58 -07001119 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001120 * @param info Response info struct containing response type, serial no. and error
1121 * @param enable true for "mute enabled" and false for "mute disabled"
Sanket Padawe76372492016-10-27 13:20:49 -07001122 *
1123 * Valid errors returned:
1124 * RadioError:NONE
1125 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001126 * RadioError:SS_MODIFIED_TO_DIAL
1127 * RadioError:SS_MODIFIED_TO_USSD
1128 * RadioError:SS_MODIFIED_TO_SS
1129 * RadioError:NO_MEMORY
1130 * RadioError:REQUEST_RATE_LIMITED
sqian159ec7f2017-04-25 18:00:34 -07001131 * RadioError:INVALID_ARGUMENTS
1132 * RadioError:INTERNAL_ERR
1133 * RadioError:SYSTEM_ERR
1134 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001135 * RadioError:NO_RESOURCES
1136 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -07001137 */
1138 oneway getMuteResponse(RadioResponseInfo info, bool enable);
1139
Andreas Huber675ae492017-03-28 14:40:58 -07001140 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001141 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001142 * @param status indicates CLIP status
1143 *
1144 * Valid errors returned:
1145 * RadioError:NONE
1146 * RadioError:RADIO_NOT_AVAILABLE
1147 * RadioError:INVALID_ARGUMENTS
1148 * RadioError:NO_MEMORY
1149 * RadioError:SYSTEM_ERR
1150 * RadioError:MODEM_ERR
1151 * RadioError:INTERNAL_ERR
1152 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -07001153 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001154 * RadioError:NO_RESOURCES
1155 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -07001156 */
1157 oneway getClipResponse(RadioResponseInfo info, ClipStatus status);
1158
Andreas Huber675ae492017-03-28 14:40:58 -07001159 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001160 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001161 * @param dcResponse List of DataCallResult as defined in types.hal
1162 *
1163 * Valid errors returned:
1164 * RadioError:NONE
1165 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07001166 * RadioError:INTERNAL_ERR
1167 * RadioError:NO_MEMORY
1168 * RadioError:NO_RESOURCES
1169 * RadioError:CANCELLED
1170 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001171 */
1172 oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
1173
Andreas Huber675ae492017-03-28 14:40:58 -07001174 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001175 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001176 *
1177 * Valid errors returned:
1178 * RadioError:NONE
1179 * RadioError:RADIO_NOT_AVAILABLE
1180 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -07001181 * RadioError:SIM_BUSY
1182 * RadioError:NO_MEMORY
1183 * RadioError:SYSTEM_ERR
1184 * RadioError:MODEM_ERR
1185 * RadioError:INTERNAL_ERR
sqian159ec7f2017-04-25 18:00:34 -07001186 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001187 * RadioError:NO_RESOURCES
1188 * RadioError:CANCELLED
sqian1d93dbf2017-10-18 15:08:29 -07001189 * RadioError:SIM_ABSENT
Sanket Padawe76372492016-10-27 13:20:49 -07001190 */
1191 oneway setSuppServiceNotificationsResponse(RadioResponseInfo info);
1192
Andreas Huber675ae492017-03-28 14:40:58 -07001193 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001194 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001195 * @param index record index where the message is stored
1196 *
1197 * Valid errors returned:
1198 * RadioError:NONE
sqian01d37ff2017-06-21 14:51:25 -07001199 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001200 * RadioError:SIM_FULL
1201 * RadioError:INVALID_ARGUMENTS
1202 * RadioError:INVALID_SMS_FORMAT
1203 * RadioError:INTERNAL_ERR
1204 * RadioError:MODEM_ERR
1205 * RadioError:ENCODING_ERR
1206 * RadioError:NO_MEMORY
1207 * RadioError:NO_RESOURCES
1208 * RadioError:INVALID_MODEM_STATE
1209 * RadioError:MODE_NOT_SUPPORTED
1210 * RadioError:INVALID_SMSC_ADDRESS
sqian159ec7f2017-04-25 18:00:34 -07001211 * RadioError:RADIO_NOT_AVAILABLE
1212 * RadioError:SYSTEM_ERR
1213 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001214 * RadioError:CANCELLED
1215 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -07001216 */
1217 oneway writeSmsToSimResponse(RadioResponseInfo info, int32_t index);
1218
Andreas Huber675ae492017-03-28 14:40:58 -07001219 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001220 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001221 *
1222 * Valid errors returned:
1223 * RadioError:NONE
sqian01d37ff2017-06-21 14:51:25 -07001224 * RadioError:RADIO_NOT_AVAILABLE
1225 * RadioError:SIM_FULL
Sanket Padawe76372492016-10-27 13:20:49 -07001226 * RadioError:INVALID_ARGUMENTS
1227 * RadioError:NO_MEMORY
Sanket Padawe76372492016-10-27 13:20:49 -07001228 * RadioError:SYSTEM_ERR
1229 * RadioError:MODEM_ERR
1230 * RadioError:NO_SUCH_ENTRY
sqian159ec7f2017-04-25 18:00:34 -07001231 * RadioError:INTERNAL_ERR
1232 * RadioError:RADIO_NOT_AVAILABLE
1233 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001234 * RadioError:NO_RESOURCES
1235 * RadioError:CANCELLED
sqian08e90552017-06-01 12:39:22 -07001236 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -07001237 */
1238 oneway deleteSmsOnSimResponse(RadioResponseInfo info);
1239
Andreas Huber675ae492017-03-28 14:40:58 -07001240 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001241 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001242 *
1243 * Valid errors returned:
1244 * RadioError:NONE
1245 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001246 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001247 * RadioError:NO_MEMORY
1248 * RadioError:INTERNAL_ERR
1249 * RadioError:SYSTEM_ERR
1250 * RadioError:INVALID_ARGUMENTS
1251 * RadioError:MODEM_ERR
1252 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001253 * RadioError:NO_RESOURCES
1254 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -07001255 */
1256 oneway setBandModeResponse(RadioResponseInfo info);
1257
Andreas Huber675ae492017-03-28 14:40:58 -07001258 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001259 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001260 * @param bandModes List of RadioBandMode listing supported modes
1261 *
1262 * Valid errors returned:
1263 * RadioError:NONE
1264 * RadioError:RADIO_NOT_AVAILABLE
1265 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001266 * RadioError:NO_MEMORY
1267 * RadioError:INTERNAL_ERR
1268 * RadioError:SYSTEM_ERR
1269 * RadioError:MODEM_ERR
1270 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001271 * RadioError:NO_RESOURCES
1272 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -07001273 */
1274 oneway getAvailableBandModesResponse(RadioResponseInfo info, vec<RadioBandMode> bandModes);
1275
Andreas Huber675ae492017-03-28 14:40:58 -07001276 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001277 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001278 * @param commandResponse SAT/USAT response in hexadecimal format
1279 * string starting with first byte of response
1280 *
1281 * Valid errors returned:
1282 * RadioError:NONE
1283 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001284 * RadioError:SIM_BUSY
1285 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001286 * RadioError:INTERNAL_ERR
1287 * RadioError:NO_MEMORY
1288 * RadioError:NO_RESOURCES
1289 * RadioError:CANCELLED
1290 * RadioError:INVALID_ARGUMENTS
1291 * RadioError:MODEM_ERR
1292 * RadioError:REQUEST_NOT_SUPPORTED
sqian1d93dbf2017-10-18 15:08:29 -07001293 * RadioError:SIM_ABSENT
Sanket Padawe76372492016-10-27 13:20:49 -07001294 */
1295 oneway sendEnvelopeResponse(RadioResponseInfo info, string commandResponse);
1296
Andreas Huber675ae492017-03-28 14:40:58 -07001297 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001298 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001299 *
1300 * Valid errors returned:
1301 * RadioError:NONE
1302 * RadioError:RADIO_NOT_AVAILABLE
1303 * RadioError:INVALID_ARGUMENTS
1304 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001305 * RadioError:INTERNAL_ERR
1306 * RadioError:NO_MEMORY
1307 * RadioError:NO_RESOURCES
1308 * RadioError:CANCELLED
1309 * RadioError:INVALID_MODEM_STATE
1310 * RadioError:REQUEST_NOT_SUPPORTED
sqian1d93dbf2017-10-18 15:08:29 -07001311 * RadioError:SIM_ABSENT
Sanket Padawe76372492016-10-27 13:20:49 -07001312 */
1313 oneway sendTerminalResponseToSimResponse(RadioResponseInfo info);
Sanket Padawed52335c2016-11-03 16:46:32 -07001314
Andreas Huber675ae492017-03-28 14:40:58 -07001315 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001316 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001317 *
1318 * Valid errors returned:
1319 * RadioError:NONE
sqian01d37ff2017-06-21 14:51:25 -07001320 * RadioError:RADIO_NOT_AVAILABLE
sqian284c53c2017-05-16 20:29:19 -07001321 * RadioError:NO_MEMORY
1322 * RadioError:INTERNAL_ERR
1323 * RadioError:SYSTEM_ERR
1324 * RadioError:MODEM_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001325 * RadioError:INVALID_ARGUMENTS
sqian01d37ff2017-06-21 14:51:25 -07001326 * RadioError:NO_RESOURCES
1327 * RadioError:CANCELLED
1328 * RadioError:REQUEST_NOT_SUPPORTED
sqian1d93dbf2017-10-18 15:08:29 -07001329 * RadioError:SIM_ABSENT
Sanket Padawed52335c2016-11-03 16:46:32 -07001330 */
1331 oneway handleStkCallSetupRequestFromSimResponse(RadioResponseInfo info);
1332
Andreas Huber675ae492017-03-28 14:40:58 -07001333 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001334 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001335 *
1336 * Valid errors returned:
1337 * RadioError:NONE
1338 * RadioError:RADIO_NOT_AVAILABLE
1339 * RadioError:INVALID_ARGUMENTS
1340 * RadioError:INVALID_STATE
1341 * RadioError:NO_RESOURCES
1342 * RadioError:NO_MEMORY
1343 * RadioError:SYSTEM_ERR
1344 * RadioError:MODEM_ERR
1345 * RadioError:INTERNAL_ERR
1346 * RadioError:INVALID_CALL_ID
1347 * RadioError:OPERATION_NOT_ALLOWED
sqian159ec7f2017-04-25 18:00:34 -07001348 * RadioError:REQUEST_NOT_SUPPORTED
1349 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -07001350 * RadioError:NO_RESOURCES
1351 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001352 */
1353 oneway explicitCallTransferResponse(RadioResponseInfo info);
1354
Andreas Huber675ae492017-03-28 14:40:58 -07001355 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001356 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001357 *
1358 * Valid errors returned:
1359 * RadioError:NONE
1360 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001361 * RadioError:OPERATION_NOT_ALLOWED
1362 * RadioError:MODE_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001363 * RadioError:NO_MEMORY
1364 * RadioError:INTERNAL_ERR
1365 * RadioError:SYSTEM_ERR
1366 * RadioError:INVALID_ARGUMENTS
1367 * RadioError:MODEM_ERR
1368 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001369 * RadioError:NO_RESOURCES
1370 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001371 */
1372 oneway setPreferredNetworkTypeResponse(RadioResponseInfo info);
1373
Andreas Huber675ae492017-03-28 14:40:58 -07001374 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001375 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001376 * @param nwType RadioPreferredNetworkType defined in types.hal
1377 *
1378 * Valid errors returned:
1379 * RadioError:NONE
1380 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001381 * RadioError:NO_MEMORY
1382 * RadioError:INTERNAL_ERR
1383 * RadioError:SYSTEM_ERR
1384 * RadioError:INVALID_ARGUMENTS
1385 * RadioError:MODEM_ERR
1386 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001387 * RadioError:NO_RESOURCES
1388 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001389 */
1390 oneway getPreferredNetworkTypeResponse(RadioResponseInfo info,
1391 PreferredNetworkType nwType);
1392
Andreas Huber675ae492017-03-28 14:40:58 -07001393 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001394 * @param info Response info struct containing response type, serial no. and error
1395 * @param cells Vector of neighboring radio cell
Sanket Padawed52335c2016-11-03 16:46:32 -07001396 *
1397 * Valid errors returned:
1398 * RadioError:NONE
1399 * RadioError:RADIO_NOT_AVAILABLE
1400 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001401 * RadioError:NO_MEMORY
1402 * RadioError:INTERNAL_ERR
1403 * RadioError:SYSTEM_ERR
1404 * RadioError:MODEM_ERR
1405 * RadioError:NO_NETWORK_FOUND
1406 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001407 * RadioError:NO_RESOURCES
1408 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001409 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001410 oneway getNeighboringCidsResponse(RadioResponseInfo info, vec<NeighboringCell> cells);
Sanket Padawed52335c2016-11-03 16:46:32 -07001411
Andreas Huber675ae492017-03-28 14:40:58 -07001412 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001413 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001414 *
1415 * Valid errors returned:
1416 * RadioError:NONE
1417 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001418 * RadioError:NO_MEMORY
1419 * RadioError:INTERNAL_ERR
1420 * RadioError:SYSTEM_ERR
1421 * RadioError:INVALID_ARGUMENTS
1422 * RadioError:MODEM_ERR
1423 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001424 * RadioError:NO_RESOURCES
1425 * RadioError:CANCELLED
sqian1d93dbf2017-10-18 15:08:29 -07001426 * RadioError:SIM_ABSENT
Sanket Padawed52335c2016-11-03 16:46:32 -07001427 */
1428 oneway setLocationUpdatesResponse(RadioResponseInfo info);
1429
Andreas Huber675ae492017-03-28 14:40:58 -07001430 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001431 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001432 *
1433 * Valid errors returned:
1434 * RadioError:NONE
1435 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001436 * RadioError:SIM_ABSENT
1437 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07001438 * RadioError:INTERNAL_ERR
1439 * RadioError:NO_MEMORY
1440 * RadioError:NO_RESOURCES
1441 * RadioError:CANCELLED
1442 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001443 */
1444 oneway setCdmaSubscriptionSourceResponse(RadioResponseInfo info);
1445
Andreas Huber675ae492017-03-28 14:40:58 -07001446 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001447 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001448 *
1449 * Valid errors returned:
1450 * RadioError:NONE
1451 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001452 * RadioError:NO_MEMORY
1453 * RadioError:INTERNAL_ERR
1454 * RadioError:SYSTEM_ERR
1455 * RadioError:INVALID_ARGUMENTS
1456 * RadioError:MODEM_ERR
1457 * RadioError:REQUEST_NOT_SUPPORTED
1458 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001459 * RadioError:NO_RESOURCES
1460 * RadioError:CANCELLED
sqian1d93dbf2017-10-18 15:08:29 -07001461 * RadioError:SIM_ABSENT
Sanket Padawed52335c2016-11-03 16:46:32 -07001462 */
1463 oneway setCdmaRoamingPreferenceResponse(RadioResponseInfo info);
1464
Andreas Huber675ae492017-03-28 14:40:58 -07001465 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001466 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001467 * @param type CdmaRoamingType defined in types.hal
1468 *
1469 * Valid errors returned:
1470 * RadioError:NONE
1471 * RadioError:RADIO_NOT_AVAILABLE
1472 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001473 * RadioError:NO_MEMORY
1474 * RadioError:INTERNAL_ERR
1475 * RadioError:SYSTEM_ERR
1476 * RadioError:MODEM_ERR
1477 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001478 * RadioError:NO_RESOURCES
1479 * RadioError:CANCELLED
sqian1d93dbf2017-10-18 15:08:29 -07001480 * RadioError:SIM_ABSENT
Sanket Padawed52335c2016-11-03 16:46:32 -07001481 */
1482 oneway getCdmaRoamingPreferenceResponse(RadioResponseInfo info, CdmaRoamingType type);
1483
Andreas Huber675ae492017-03-28 14:40:58 -07001484 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001485 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001486 *
1487 * Valid errors returned:
1488 * RadioError:NONE
1489 * RadioError:RADIO_NOT_AVAILABLE
1490 * RadioError:INVALID_ARGUMENTS
1491 * RadioError:MODEM_ERR
1492 * RadioError:INTERNAL_ERR
1493 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001494 * RadioError:SYSTEM_ERR
1495 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001496 * RadioError:NO_RESOURCES
1497 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001498 */
1499 oneway setTTYModeResponse(RadioResponseInfo info);
1500
Andreas Huber675ae492017-03-28 14:40:58 -07001501 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001502 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001503 * @param mode TtyMode
1504 *
1505 * Valid errors returned:
1506 * RadioError:NONE
1507 * RadioError:RADIO_NOT_AVAILABLE
1508 * RadioError:INVALID_ARGUMENTS
1509 * RadioError:MODEM_ERR
1510 * RadioError:INTERNAL_ERR
1511 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001512 * RadioError:SYSTEM_ERR
1513 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001514 * RadioError:NO_RESOURCES
1515 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001516 */
1517 oneway getTTYModeResponse(RadioResponseInfo info, TtyMode mode);
1518
Andreas Huber675ae492017-03-28 14:40:58 -07001519 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001520 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001521 *
1522 * Valid errors returned:
1523 * RadioError:NONE
1524 * RadioError:RADIO_NOT_AVAILABLE
1525 * RadioError:INVALID_ARGUMENTS
1526 * RadioError:MODEM_ERR
1527 * RadioError:INTERNAL_ERR
1528 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001529 * RadioError:SYSTEM_ERR
1530 * RadioError:REQUEST_NOT_SUPPORTED
1531 * RadioError:INVALID_CALL_ID
sqian01d37ff2017-06-21 14:51:25 -07001532 * RadioError:NO_RESOURCES
1533 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001534 */
1535 oneway setPreferredVoicePrivacyResponse(RadioResponseInfo info);
1536
Andreas Huber675ae492017-03-28 14:40:58 -07001537 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001538 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001539 * @param enable false for Standard Privacy Mode (Public Long Code Mask)
1540 * true for Enhanced Privacy Mode (Private Long Code Mask)
1541 *
1542 * Valid errors:
1543 * RadioError:NONE
1544 * RadioError:RADIO_NOT_AVAILABLE
1545 * RadioError:INVALID_ARGUMENTS
1546 * RadioError:MODEM_ERR
1547 * RadioError:INTERNAL_ERR
1548 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001549 * RadioError:SYSTEM_ERR
1550 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001551 * RadioError:NO_RESOURCES
1552 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001553 */
1554 oneway getPreferredVoicePrivacyResponse(RadioResponseInfo info, bool enable);
1555
Andreas Huber675ae492017-03-28 14:40:58 -07001556 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07001557 * Response callback for IRadio.sendCDMAFeatureCode()
1558 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001559 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001560 *
1561 * Valid errors returned:
1562 * RadioError:NONE
1563 * RadioError:RADIO_NOT_AVAILABLE
1564 * RadioError:INVALID_ARGUMENTS
1565 * RadioError:NO_MEMORY
1566 * RadioError:INTERNAL_ERR
1567 * RadioError:SYSTEM_ERR
1568 * RadioError:MODEM_ERR
1569 * RadioError:INVALID_CALL_ID
1570 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001571 * RadioError:REQUEST_NOT_SUPPORTED
1572 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -07001573 * RadioError:NO_RESOURCES
1574 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001575 */
1576 oneway sendCDMAFeatureCodeResponse(RadioResponseInfo info);
1577
Andreas Huber675ae492017-03-28 14:40:58 -07001578 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001579 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001580 *
1581 * Valid errors returned:
1582 * RadioError:NONE
1583 * RadioError:RADIO_NOT_AVAILABLE
1584 * RadioError:INVALID_ARGUMENTS
1585 * RadioError:NO_MEMORY
1586 * RadioError:INTERNAL_ERR
1587 * RadioError:SYSTEM_ERR
1588 * RadioError:MODEM_ERR
1589 * RadioError:INVALID_CALL_ID
1590 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001591 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001592 * RadioError:NO_RESOURCES
1593 * RadioError:CANCELLED
1594 * RadioError:INVALID_MODEM_STATE
sqian08e90552017-06-01 12:39:22 -07001595 * RadioError:MODE_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001596 */
1597 oneway sendBurstDtmfResponse(RadioResponseInfo info);
1598
Andreas Huber675ae492017-03-28 14:40:58 -07001599 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001600 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001601 * @param sms Sms result struct as defined by SendSmsResult in types.hal
1602 *
1603 * Valid errors returned:
1604 * RadioError:NONE
1605 * RadioError:RADIO_NOT_AVAILABLE
1606 * RadioError:INVALID_ARGUMENTS
1607 * RadioError:SMS_SEND_FAIL_RETRY
1608 * RadioError:NETWORK_REJECT
1609 * RadioError:INVALID_STATE
1610 * RadioError:NO_MEMORY
1611 * RadioError:REQUEST_RATE_LIMITED
1612 * RadioError:INVALID_SMS_FORMAT
1613 * RadioError:SYSTEM_ERR
1614 * RadioError:FDN_CHECK_FAILURE
1615 * RadioError:MODEM_ERR
1616 * RadioError:NETWORK_ERR
1617 * RadioError:ENCODING_ERR
1618 * RadioError:INVALID_SMSC_ADDRESS
1619 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -07001620 * RadioError:INTERNAL_ERR
1621 * RadioError:SYSTEM_ERR
1622 * RadioError:REQUEST_NOT_SUPPORTED
1623 * RadioError:OPERATION_NOT_ALLOWED
1624 * RadioError:ENCODING_ERR
sqian01d37ff2017-06-21 14:51:25 -07001625 * RadioError:NO_RESOURCES
1626 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001627 */
1628 oneway sendCdmaSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1629
Andreas Huber675ae492017-03-28 14:40:58 -07001630 /**
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 *
1633 * Valid errors returned:
1634 * RadioError:NONE
1635 * RadioError:RADIO_NOT_AVAILABLE
1636 * RadioError:INVALID_ARGUMENTS
1637 * RadioError:NO_SMS_TO_ACK
1638 * RadioError:INVALID_STATE
1639 * RadioError:NO_MEMORY
1640 * RadioError:REQUEST_RATE_LIMITED
1641 * RadioError:SYSTEM_ERR
1642 * RadioError:MODEM_ERR
1643 * RadioError:MODE_NOT_SUPPORTED
1644 * RadioError:NETWORK_NOT_READY
1645 * RadioError:INVALID_MODEM_STATE
sqian159ec7f2017-04-25 18:00:34 -07001646 * RadioError:INTERNAL_ERR
1647 * RadioError:REQUEST_NOT_SUPPORTED
1648 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001649 * RadioError:NO_RESOURCES
1650 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001651 */
1652 oneway acknowledgeLastIncomingCdmaSmsResponse(RadioResponseInfo info);
1653
Andreas Huber675ae492017-03-28 14:40:58 -07001654 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001655 * @param info Response info struct containing response type, serial no. and error
1656 * @param configs Vector of GSM/WCDMA Cell broadcast configs
Sanket Padawed52335c2016-11-03 16:46:32 -07001657 *
1658 * Valid errors returned:
1659 * RadioError:NONE
1660 * RadioError:RADIO_NOT_AVAILABLE
1661 * RadioError:INVALID_ARGUMENTS
1662 * RadioError:INVALID_STATE
1663 * RadioError:NO_MEMORY
1664 * RadioError:REQUEST_RATE_LIMITED
1665 * RadioError:SYSTEM_ERR
1666 * RadioError:MODEM_ERR
1667 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001668 * RadioError:INTERNAL_ERR
1669 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001670 * RadioError:NO_RESOURCES
1671 * RadioError:CANCELLED
1672 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001673 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001674 oneway getGsmBroadcastConfigResponse(RadioResponseInfo info,
1675 vec<GsmBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001676
Andreas Huber675ae492017-03-28 14:40:58 -07001677 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001678 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001679 *
1680 * Valid errors returned:
1681 * RadioError:NONE
1682 * RadioError:RADIO_NOT_AVAILABLE
1683 * RadioError:INVALID_ARGUMENTS
1684 * RadioError:INVALID_STATE
1685 * RadioError:NO_MEMORY
1686 * RadioError:REQUEST_RATE_LIMITED
1687 * RadioError:SYSTEM_ERR
1688 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001689 * RadioError:INTERNAL_ERR
1690 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001691 * RadioError:NO_RESOURCES
1692 * RadioError:CANCELLED
1693 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001694 */
1695 oneway setGsmBroadcastConfigResponse(RadioResponseInfo info);
1696
Andreas Huber675ae492017-03-28 14:40:58 -07001697 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001698 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001699 *
1700 * Valid errors returned:
1701 * RadioError:NONE
1702 * RadioError:RADIO_NOT_AVAILABLE
1703 * RadioError:INVALID_ARGUMENTS
1704 * RadioError:INVALID_STATE
1705 * RadioError:NO_MEMORY
1706 * RadioError:REQUEST_RATE_LIMITED
1707 * RadioError:SYSTEM_ERR
1708 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001709 * RadioError:INTERNAL_ERR
1710 * RadioError:REQUEST_NOT_SUPPORTED
1711 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001712 * RadioError:NO_RESOURCES
1713 * RadioError:CANCELLED
1714 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001715 */
1716 oneway setGsmBroadcastActivationResponse(RadioResponseInfo info);
1717
Andreas Huber675ae492017-03-28 14:40:58 -07001718 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001719 * @param info Response info struct containing response type, serial no. and error
1720 * @param configs Vector of CDMA Broadcast SMS configs.
Sanket Padawed52335c2016-11-03 16:46:32 -07001721 *
1722 * Valid errors returned:
1723 * RadioError:NONE
1724 * RadioError:RADIO_NOT_AVAILABLE
1725 * RadioError:INVALID_ARGUMENTS
1726 * RadioError:INVALID_STATE
1727 * RadioError:NO_MEMORY
1728 * RadioError:REQUEST_RATE_LIMITED
1729 * RadioError:SYSTEM_ERR
1730 * RadioError:MODEM_ERR
1731 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001732 * RadioError:INTERNAL_ERR
1733 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001734 * RadioError:NO_RESOURCES
1735 * RadioError:CANCELLED
1736 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001737 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001738 oneway getCdmaBroadcastConfigResponse(RadioResponseInfo info,
1739 vec<CdmaBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001740
Andreas Huber675ae492017-03-28 14:40:58 -07001741 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001742 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001743 *
1744 * Valid errors returned:
1745 * RadioError:NONE
1746 * RadioError:RADIO_NOT_AVAILABLE
1747 * RadioError:INVALID_ARGUMENTS
1748 * RadioError:INVALID_STATE
1749 * RadioError:NO_MEMORY
1750 * RadioError:REQUEST_RATE_LIMITED
1751 * RadioError:SYSTEM_ERR
1752 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001753 * RadioError:INTERNAL_ERR
1754 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001755 * RadioError:NO_RESOURCES
1756 * RadioError:CANCELLED
1757 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001758 */
1759 oneway setCdmaBroadcastConfigResponse(RadioResponseInfo info);
1760
Andreas Huber675ae492017-03-28 14:40:58 -07001761 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001762 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001763 *
1764 * Valid errors returned:
1765 * RadioError:NONE
1766 * RadioError:RADIO_NOT_AVAILABLE
1767 * RadioError:INVALID_ARGUMENTS
1768 * RadioError:INVALID_STATE
1769 * RadioError:NO_MEMORY
1770 * RadioError:REQUEST_RATE_LIMITED
1771 * RadioError:SYSTEM_ERR
1772 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001773 * RadioError:INTERNAL_ERR
1774 * RadioError:REQUEST_NOT_SUPPORTED
1775 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001776 * RadioError:NO_RESOURCES
1777 * RadioError:CANCELLED
1778 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001779 */
1780 oneway setCdmaBroadcastActivationResponse(RadioResponseInfo info);
1781
Andreas Huber675ae492017-03-28 14:40:58 -07001782 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001783 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001784 * @param mdn MDN if CDMA subscription is available
1785 * @param hSid is a comma separated list of H_SID (Home SID) if
1786 * CDMA subscription is available, in decimal format
1787 * @param hNid is a comma separated list of H_NID (Home NID) if
1788 * CDMA subscription is available, in decimal format
1789 * @param min MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
1790 * @param prl PRL version if CDMA subscription is available
1791 *
1792 * Valid errors returned:
1793 * RadioError:NONE
1794 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001795 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001796 * RadioError:NO_MEMORY
1797 * RadioError:INTERNAL_ERR
1798 * RadioError:SYSTEM_ERR
1799 * RadioError:INVALID_ARGUMENTS
1800 * RadioError:MODEM_ERR
1801 * RadioError:NOT_PROVISIONED
1802 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001803 * RadioError:NO_RESOURCES
1804 * RadioError:CANCELLED
sqian1d93dbf2017-10-18 15:08:29 -07001805 * RadioError:SIM_ABSENT
Sanket Padawed52335c2016-11-03 16:46:32 -07001806 */
1807 oneway getCDMASubscriptionResponse(RadioResponseInfo info, string mdn, string hSid,
1808 string hNid, string min, string prl);
1809
Andreas Huber675ae492017-03-28 14:40:58 -07001810 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001811 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001812 * @param index record index where the cmda sms message is stored
1813 *
1814 * Valid errors returned:
1815 * RadioError:NONE
1816 * RadioError:RADIO_NOT_AVAILABLE
1817 * RadioError:INVALID_ARGUMENTS
1818 * RadioError:INVALID_SMS_FORMAT
1819 * RadioError:SIM_FULL
1820 * RadioError:INTERNAL_ERR
1821 * RadioError:MODEM_ERR
1822 * RadioError:ENCODING_ERR
1823 * RadioError:NO_MEMORY
1824 * RadioError:NO_RESOURCES
1825 * RadioError:INVALID_MODEM_STATE
1826 * RadioError:MODE_NOT_SUPPORTED
1827 * RadioError:INVALID_SMSC_ADDRESS
sqian159ec7f2017-04-25 18:00:34 -07001828 * RadioError:SYSTEM_ERR
1829 * RadioError:REQUEST_NOT_SUPPORTED
1830 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001831 * RadioError:NO_RESOURCES
1832 * RadioError:CANCELLED
1833 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001834 */
1835 oneway writeSmsToRuimResponse(RadioResponseInfo info, uint32_t index);
1836
Andreas Huber675ae492017-03-28 14:40:58 -07001837 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001838 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001839 *
1840 * Valid errors returned:
1841 * RadioError:NONE
1842 * RadioError:RADIO_NOT_AVAILABLE
1843 * RadioError:INVALID_ARGUMENTS
1844 * RadioError:NO_MEMORY
Sanket Padawed52335c2016-11-03 16:46:32 -07001845 * RadioError:SYSTEM_ERR
1846 * RadioError:MODEM_ERR
1847 * RadioError:NO_SUCH_ENTRY
sqian159ec7f2017-04-25 18:00:34 -07001848 * RadioError:INTERNAL_ERR
1849 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001850 * RadioError:OPERATION_NOT_ALLOWED
1851 * RadioError:NO_RESOURCES
1852 * RadioError:CANCELLED
sqian08e90552017-06-01 12:39:22 -07001853 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001854 */
1855 oneway deleteSmsOnRuimResponse(RadioResponseInfo info);
1856
Andreas Huber675ae492017-03-28 14:40:58 -07001857 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001858 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001859 * @param imei IMEI if GSM subscription is available
1860 * @param imeisv IMEISV if GSM subscription is available
1861 * @param esn ESN if CDMA subscription is available
1862 * @param meid MEID if CDMA subscription is available
1863 *
1864 * Valid errors returned:
1865 * RadioError:NONE
1866 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001867 * RadioError:NO_MEMORY
1868 * RadioError:INTERNAL_ERR
1869 * RadioError:SYSTEM_ERR
1870 * RadioError:INVALID_ARGUMENTS
1871 * RadioError:MODEM_ERR
1872 * RadioError:NOT_PROVISIONED
sqian01d37ff2017-06-21 14:51:25 -07001873 * RadioError:NO_RESOURCES
1874 * RadioError:CANCELLED
1875 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001876 *
1877 * If a empty string value is returned for any of the device id, it means that there was error
1878 * accessing the device.
1879 *
1880 */
1881 oneway getDeviceIdentityResponse(RadioResponseInfo info, string imei, string imeisv,
1882 string esn, string meid);
1883
Andreas Huber675ae492017-03-28 14:40:58 -07001884 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001885 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001886 *
1887 * Valid errors returned:
1888 * RadioError:NONE
1889 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001890 * RadioError:OPERATION_NO_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001891 * RadioError:INTERNAL_ERR
1892 * RadioError:NO_MEMORY
1893 * RadioError:SYSTEM_ERR
1894 * RadioError:INVALID_ARGUMENTS
1895 * RadioError:MODEM_ERR
1896 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001897 * RadioError:NO_RESOURCES
1898 * RadioError:CANCELLED
sqian1d93dbf2017-10-18 15:08:29 -07001899 * RadioError:SIM_ABSENT
Sanket Padawed52335c2016-11-03 16:46:32 -07001900 */
1901 oneway exitEmergencyCallbackModeResponse(RadioResponseInfo info);
1902
Andreas Huber675ae492017-03-28 14:40:58 -07001903 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001904 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001905 * @param smsc Short Message Service Center address on the device
1906 *
1907 * Valid errors returned:
1908 * RadioError:NONE
1909 * RadioError:RADIO_NOT_AVAILABLE
1910 * RadioError:INVALID_ARGUMENTS
1911 * RadioError:INTERNAL_ERR
1912 * RadioError:NO_MEMORY
1913 * RadioError:SYSTEM_ERR
1914 * RadioError:REQUEST_RATE_LIMITED
1915 * RadioError:MODEM_ERR
1916 * RadioError:INVALID_MODEM_STATE
1917 * RadioError:NOT_PROVISIONED
sqian159ec7f2017-04-25 18:00:34 -07001918 * RadioError:REQUEST_NOT_SUPPORTED
1919 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001920 * RadioError:NO_RESOURCES
1921 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001922 */
1923 oneway getSmscAddressResponse(RadioResponseInfo info, string smsc);
1924
Andreas Huber675ae492017-03-28 14:40:58 -07001925 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001926 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001927 *
1928 * Valid errors returned:
1929 * RadioError:NONE
1930 * RadioError:RADIO_NOT_AVAILABLE
1931 * RadioError:INVALID_ARGUMENTS
1932 * RadioError:INVALID_SMS_FORMAT
1933 * RadioError:NO_MEMORY
1934 * RadioError:SYSTEM_ERR
1935 * RadioError:REQUEST_RATE_LIMITED
1936 * RadioError:MODEM_ERR
1937 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001938 * RadioError:INTERNAL_ERR
1939 * RadioError:REQUEST_NOT_SUPPORTED
1940 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07001941 * RadioError:NO_RESOURCES
1942 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001943 */
1944 oneway setSmscAddressResponse(RadioResponseInfo info);
1945
Andreas Huber675ae492017-03-28 14:40:58 -07001946 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001947 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001948 *
1949 * Valid errors returned:
1950 * RadioError:NONE
1951 * RadioError:RADIO_NOT_AVAILABLE
1952 * RadioError:INVALID_ARGUMENTS
1953 * RadioError:NO_MEMORY
1954 * RadioError:SYSTEM_ERR
1955 * RadioError:REQUEST_RATE_LIMITED
1956 * RadioError:MODEM_ERR
1957 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001958 * RadioError:INTERNAL_ERR
1959 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07001960 * RadioError:NO_RESOURCES
1961 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07001962 */
1963 oneway reportSmsMemoryStatusResponse(RadioResponseInfo info);
1964
Andreas Huber675ae492017-03-28 14:40:58 -07001965 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001966 * @param info Response info struct containing response type, serial no. and error
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001967 *
1968 * Valid errors returned:
1969 * RadioError:NONE
1970 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07001971 * RadioError:INTERNAL_ERR
1972 * RadioError:NO_MEMORY
1973 * RadioError:NO_RESOURCES
1974 * RadioError:CANCELLED
1975 * RadioError:REQUEST_NOT_SUPPORTED
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001976 */
1977 oneway reportStkServiceIsRunningResponse(RadioResponseInfo info);
1978
Andreas Huber675ae492017-03-28 14:40:58 -07001979 /**
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001980 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001981 * @param source CDMA subscription source
1982 *
1983 * Valid errors returned:
1984 * RadioError:NONE
1985 * RadioError:RADIO_NOT_AVAILABLE
1986 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07001987 * RadioError:INTERNAL_ERR
1988 * RadioError:NO_MEMORY
1989 * RadioError:NO_RESOURCES
1990 * RadioError:CANCELLED
1991 * RadioError:REQUEST_NOT_SUPPORTED
sqian1d93dbf2017-10-18 15:08:29 -07001992 * RadioError:SIM_ABSENT
Sanket Padawed52335c2016-11-03 16:46:32 -07001993 */
1994 oneway getCdmaSubscriptionSourceResponse(RadioResponseInfo info, CdmaSubscriptionSource source);
1995
Andreas Huber675ae492017-03-28 14:40:58 -07001996 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001997 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001998 * @param response response string of the challenge/response algo for ISIM auth in base64 format
1999 *
2000 * Valid errors returned:
2001 * RadioError:NONE
2002 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002003 * RadioError:INTERNAL_ERR
2004 * RadioError:NO_MEMORY
2005 * RadioError:NO_RESOURCES
2006 * RadioError:CANCELLED
2007 * RadioError:INVALID_MODEM_STATE
2008 * RadioError:INVALID_ARGUMENTS
2009 * RadioError:REQUEST_NOT_SUPPORTED
sqian1d93dbf2017-10-18 15:08:29 -07002010 * RadioError:SIM_ABSENT
Sanket Padawed52335c2016-11-03 16:46:32 -07002011 */
2012 oneway requestIsimAuthenticationResponse(RadioResponseInfo info, string response);
2013
Andreas Huber675ae492017-03-28 14:40:58 -07002014 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002015 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002016 *
2017 * Valid errors returned:
2018 * RadioError:NONE
2019 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002020 * RadioError:INTERNAL_ERR
2021 * RadioError:NO_MEMORY
2022 * RadioError:NO_RESOURCES
2023 * RadioError:CANCELLED
2024 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002025 */
2026 oneway acknowledgeIncomingGsmSmsWithPduResponse(RadioResponseInfo info);
2027
Andreas Huber675ae492017-03-28 14:40:58 -07002028 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002029 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002030 * @param iccIo IccIoResult as defined in types.hal corresponding to ICC IO response
2031 *
2032 * Valid errors returned:
2033 * RadioError:NONE
2034 * RadioError:RADIO_NOT_AVAILABLE
2035 * RadioError:SIM_BUSY
2036 * RadioError:OPERATION_NOT_ALLOWED
sqian01d37ff2017-06-21 14:51:25 -07002037 * RadioError:INTERNAL_ERR
2038 * RadioError:NO_MEMORY
2039 * RadioError:NO_RESOURCES
2040 * RadioError:CANCELLED
2041 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002042 */
2043 oneway sendEnvelopeWithStatusResponse(RadioResponseInfo info, IccIoResult iccIo);
2044
Andreas Huber675ae492017-03-28 14:40:58 -07002045 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002046 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002047 * @param rat Current voice RAT
2048 *
2049 * Valid errors returned:
2050 * RadioError:NONE
2051 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002052 * RadioError:INTERNAL_ERR
2053 * RadioError:NO_MEMORY
2054 * RadioError:NO_RESOURCES
2055 * RadioError:CANCELLED
2056 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002057 */
2058 oneway getVoiceRadioTechnologyResponse(RadioResponseInfo info, RadioTechnology rat);
2059
Andreas Huber675ae492017-03-28 14:40:58 -07002060 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002061 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002062 * @param cellInfo List of current cell information known to radio
2063 *
2064 * Valid errors returned:
2065 * RadioError:NONE
2066 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002067 * RadioError:NO_MEMORY
2068 * RadioError:INTERNAL_ERR
2069 * RadioError:SYSTEM_ERR
2070 * RadioError:MODEM_ERR
2071 * RadioError:NO_NETWORK_FOUND
2072 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002073 * RadioError:NO_RESOURCES
2074 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07002075 */
2076 oneway getCellInfoListResponse(RadioResponseInfo info, vec<CellInfo> cellInfo);
2077
Andreas Huber675ae492017-03-28 14:40:58 -07002078 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002079 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002080 *
2081 * Valid errors returned:
2082 * RadioError:NONE
2083 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002084 * RadioError:NO_MEMORY
2085 * RadioError:INTERNAL_ERR
2086 * RadioError:SYSTEM_ERR
2087 * RadioError:INVALID_ARGUMENTS
sqian01d37ff2017-06-21 14:51:25 -07002088 * RadioError:NO_RESOURCES
2089 * RadioError:CANCELLED
2090 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002091 */
2092 oneway setCellInfoListRateResponse(RadioResponseInfo info);
2093
Andreas Huber675ae492017-03-28 14:40:58 -07002094 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002095 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002096 *
2097 * Valid errors returned:
2098 * RadioError:NONE
2099 * RadioError:RADIO_NOT_AVAILABLE
2100 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002101 * RadioError:NO_MEMORY
2102 * RadioError:INTERNAL_ERR
2103 * RadioError:SYSTEM_ERR
2104 * RadioError:MODEM_ERR
2105 * RadioError:INVALID_ARGUMENTS
2106 * RadioError:NOT_PROVISIONED
2107 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002108 * RadioError:NO_RESOURCES
2109 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07002110 */
2111 oneway setInitialAttachApnResponse(RadioResponseInfo info);
2112
Andreas Huber675ae492017-03-28 14:40:58 -07002113 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002114 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002115 * @param isRegistered false = not registered, true = registered
2116 * @param ratFamily RadioTechnologyFamily as defined in types.hal. This value is valid only if
2117 * isRegistered is true.
2118 *
2119 * Valid errors returned:
2120 * RadioError:NONE
2121 * RadioError:RADIO_NOT_AVAILABLE
sqian08e90552017-06-01 12:39:22 -07002122 * RadioError:INTERNAL_ERR
sqian01d37ff2017-06-21 14:51:25 -07002123 * RadioError:NO_MEMORY
2124 * RadioError:NO_RESOURCES
2125 * RadioError:CANCELLED
sqian08e90552017-06-01 12:39:22 -07002126 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -07002127 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002128 */
2129 oneway getImsRegistrationStateResponse(RadioResponseInfo info, bool isRegistered,
2130 RadioTechnologyFamily ratFamily);
2131
Andreas Huber675ae492017-03-28 14:40:58 -07002132 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002133 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002134 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
2135 *
2136 * Valid errors returned:
2137 * RadioError:NONE
2138 * RadioError:RADIO_NOT_AVAILABLE
2139 * RadioError:SMS_SEND_FAIL_RETRY
2140 * RadioError:FDN_CHECK_FAILURE
2141 * RadioError:NETWORK_REJECT
2142 * RadioError:INVALID_ARGUMENTS
2143 * RadioError:INVALID_STATE
2144 * RadioError:NO_MEMORY
2145 * RadioError:INVALID_SMS_FORMAT
2146 * RadioError:SYSTEM_ERR
2147 * RadioError:REQUEST_RATE_LIMITED
2148 * RadioError:MODEM_ERR
2149 * RadioError:NETWORK_ERR
2150 * RadioError:ENCODING_ERR
2151 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -07002152 * RadioError:INTERNAL_ERR
2153 * RadioError:REQUEST_NOT_SUPPORTED
2154 * RadioError:NETWORK_NOT_READY
sqian01d37ff2017-06-21 14:51:25 -07002155 * RadioError:NO_RESOURCES
2156 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07002157 */
2158 oneway sendImsSmsResponse(RadioResponseInfo info, SendSmsResult sms);
2159
Andreas Huber675ae492017-03-28 14:40:58 -07002160 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002161 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002162 * @param result IccIoResult as defined in types.hal
2163 *
2164 * Valid errors returned:
2165 * RadioError:NONE
2166 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002167 * RadioError:INTERNAL_ERR
2168 * RadioError:NO_MEMORY
2169 * RadioError:NO_RESOURCES
2170 * RadioError:CANCELLED
2171 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002172 */
2173 oneway iccTransmitApduBasicChannelResponse(RadioResponseInfo info, IccIoResult result);
2174
Andreas Huber675ae492017-03-28 14:40:58 -07002175 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002176 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002177 * @param channelId session id of the logical channel.
2178 * @param selectResponse Contains the select response for the open channel command with one
2179 * byte per integer
2180 *
2181 * Valid errors returned:
2182 * RadioError:NONE
2183 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07002184 * RadioError:MISSING_RESOURCE
2185 * RadioError:NO_SUCH_ELEMENT
sqian01d37ff2017-06-21 14:51:25 -07002186 * RadioError:INTERNAL_ERR
2187 * RadioError:NO_MEMORY
2188 * RadioError:NO_RESOURCES
2189 * RadioError:CANCELLED
2190 * RadioError:SIM_ERR
2191 * RadioError:INVALID_SIM_STATE
2192 * RadioError:MISSING_RESOURCE
2193 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002194 */
2195 oneway iccOpenLogicalChannelResponse(RadioResponseInfo info, int32_t channelId,
2196 vec<int8_t> selectResponse);
2197
Andreas Huber675ae492017-03-28 14:40:58 -07002198 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002199 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002200 *
2201 * Valid errors returned:
2202 * RadioError:NONE
2203 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002204 * RadioError:INTERNAL_ERR
2205 * RadioError:NO_MEMORY
2206 * RadioError:NO_RESOURCES
2207 * RadioError:CANCELLED
2208 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002209 */
2210 oneway iccCloseLogicalChannelResponse(RadioResponseInfo info);
2211
Andreas Huber675ae492017-03-28 14:40:58 -07002212 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002213 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002214 * @param result IccIoResult as defined in types.hal
2215 *
2216 * Valid errors returned:
2217 * RadioError:NONE
2218 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002219 * RadioError:INTERNAL_ERR
2220 * RadioError:NO_MEMORY
2221 * RadioError:NO_RESOURCES
2222 * RadioError:CANCELLED
2223 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002224 */
2225 oneway iccTransmitApduLogicalChannelResponse(RadioResponseInfo info, IccIoResult result);
2226
Andreas Huber675ae492017-03-28 14:40:58 -07002227 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002228 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002229 * @param result string containing the contents of the NV item
2230 *
2231 * Valid errors returned:
2232 * RadioError:NONE
2233 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002234 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002235 */
2236 oneway nvReadItemResponse(RadioResponseInfo info, string result);
2237
Andreas Huber675ae492017-03-28 14:40:58 -07002238 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002239 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002240 *
2241 * Valid errors returned:
2242 * RadioError:NONE
2243 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002244 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002245 */
2246 oneway nvWriteItemResponse(RadioResponseInfo info);
2247
Andreas Huber675ae492017-03-28 14:40:58 -07002248 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002249 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002250 *
2251 * Valid errors returned:
2252 * RadioError:NONE
2253 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002254 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002255 */
2256 oneway nvWriteCdmaPrlResponse(RadioResponseInfo info);
2257
Andreas Huber675ae492017-03-28 14:40:58 -07002258 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002259 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002260 *
2261 * Valid errors returned:
2262 * RadioError:NONE
2263 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002264 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002265 */
2266 oneway nvResetConfigResponse(RadioResponseInfo info);
2267
Andreas Huber675ae492017-03-28 14:40:58 -07002268 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002269 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002270 *
2271 * Valid errors returned:
2272 * RadioError:NONE
2273 * RadioError:RADIO_NOT_AVAILABLE
2274 * RadioError:SUBSCRIPTION_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002275 * RadioError:NO_MEMORY
2276 * RadioError:INTERNAL_ERR
2277 * RadioError:SYSTEM_ERR
2278 * RadioError:MODEM_ERR
2279 * RadioError:INVALID_ARGUMENTS
2280 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002281 * RadioError:NO_RESOURCES
2282 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07002283 */
2284 oneway setUiccSubscriptionResponse(RadioResponseInfo info);
2285
Andreas Huber675ae492017-03-28 14:40:58 -07002286 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002287 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002288 *
2289 * Valid errors returned:
2290 * RadioError:NONE
2291 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002292 * RadioError:NO_MEMORY
2293 * RadioError:INTERNAL_ERR
2294 * RadioError:SYSTEM_ERR
2295 * RadioError:MODEM_ERR
2296 * RadioError:INVALID_ARGUMENTS
2297 * RadioError:DEVICE_IN_USE
2298 * RadioError:INVALID_MODEM_STATE
sqian01d37ff2017-06-21 14:51:25 -07002299 * RadioError:NO_RESOURCES
2300 * RadioError:CANCELLED
2301 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002302 */
2303 oneway setDataAllowedResponse(RadioResponseInfo info);
2304
Andreas Huber675ae492017-03-28 14:40:58 -07002305 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002306 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002307 * @param config Array of HardwareConfig of the radio.
2308 *
2309 * Valid errors returned:
2310 * RadioError:NONE
2311 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002312 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002313 */
2314 oneway getHardwareConfigResponse(RadioResponseInfo info, vec<HardwareConfig> config);
2315
Andreas Huber675ae492017-03-28 14:40:58 -07002316 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002317 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002318 * @param result IccIoResult as defined in types.hal
2319 *
2320 * Valid errors returned:
2321 * RadioError:NONE
2322 * RadioError:RADIO_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002323 * RadioError:INTERNAL_ERR
2324 * RadioError:NO_MEMORY
2325 * RadioError:NO_RESOURCES
2326 * RadioError:CANCELLED
2327 * RadioError:INVALID_MODEM_STATE
2328 * RadioError:SIM_ERR
2329 * RadioError:INVALID_ARGUMENTS
2330 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002331 */
2332 oneway requestIccSimAuthenticationResponse(RadioResponseInfo info, IccIoResult result);
2333
Andreas Huber675ae492017-03-28 14:40:58 -07002334 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002335 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002336 *
2337 * Valid errors returned:
2338 * RadioError:NONE
2339 * RadioError:RADIO_NOT_AVAILABLE
2340 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
sqian01d37ff2017-06-21 14:51:25 -07002341 * RadioError:INTERNAL_ERR
2342 * RadioError:NO_MEMORY
2343 * RadioError:NO_RESOURCES
2344 * RadioError:CANCELLED
2345 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002346 */
2347 oneway setDataProfileResponse(RadioResponseInfo info);
2348
Andreas Huber675ae492017-03-28 14:40:58 -07002349 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002350 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002351 *
2352 * Valid errors returned:
2353 * RadioError:NONE
2354 * RadioError:RADIO_NOT_AVAILABLE
2355 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002356 * RadioError:NO_MEMORY
2357 * RadioError:INTERNAL_ERR
2358 * RadioError:SYSTEM_ERR
2359 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002360 * RadioError:NO_RESOURCES
2361 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07002362 */
2363 oneway requestShutdownResponse(RadioResponseInfo info);
2364
Andreas Huber675ae492017-03-28 14:40:58 -07002365 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002366 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002367 * @param rc Radio capability as defined by RadioCapability in types.hal
2368 *
2369 * Valid errors returned:
2370 * RadioError:NONE
2371 * RadioError:RADIO_NOT_AVAILABLE
2372 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002373 * RadioError:INVALID_STATE
2374 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002375 * RadioError:INTERNAL_ERR
2376 * RadioError:NO_MEMORY
2377 * RadioError:NO_RESOURCES
2378 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07002379 */
2380 oneway getRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
2381
Andreas Huber675ae492017-03-28 14:40:58 -07002382 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002383 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002384 * @param rc Radio capability as defined by RadioCapability in types.hal used to
2385 * feedback return status
2386 *
2387 * Valid errors returned:
2388 * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds.
2389 * RadioError:RADIO_NOT_AVAILABLE
2390 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002391 * RadioError:NO_MEMORY
2392 * RadioError:INTERNAL_ERR
2393 * RadioError:SYSTEM_ERR
2394 * RadioError:INVALID_ARGUMENTS
2395 * RadioError:MODEM_ERR
2396 * RadioError:INVALID_STATE
2397 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002398 * RadioError:NO_RESOURCES
2399 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07002400 */
2401 oneway setRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
2402
Andreas Huber675ae492017-03-28 14:40:58 -07002403 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002404 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002405 * @param statusInfo LceStatusInfo indicating LCE status
2406 *
2407 * Valid errors returned:
2408 * RadioError:NONE
2409 * RadioError:RADIO_NOT_AVAILABLE
2410 * RadioError:LCE_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002411 * RadioError:INTERNAL_ERR
2412 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002413 * RadioError:NO_MEMORY
2414 * RadioError:NO_RESOURCES
2415 * RadioError:CANCELLED
Sanket Padawed52335c2016-11-03 16:46:32 -07002416 */
2417 oneway startLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
2418
Andreas Huber675ae492017-03-28 14:40:58 -07002419 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002420 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002421 * @param statusInfo LceStatusInfo indicating LCE status
2422 *
2423 * Valid errors returned:
2424 * RadioError:NONE
2425 * RadioError:RADIO_NOT_AVAILABLE
2426 * RadioError:LCE_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002427 * RadioError:INTERNAL_ERR
2428 * RadioError:NO_MEMORY
2429 * RadioError:NO_RESOURCES
2430 * RadioError:CANCELLED
2431 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002432 */
2433 oneway stopLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
2434
Andreas Huber675ae492017-03-28 14:40:58 -07002435 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002436 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002437 * @param lceInfo LceDataInfo indicating LCE data as defined in types.hal
2438 *
2439 * Valid errors returned:
2440 * RadioError:NONE
2441 * RadioError:RADIO_NOT_AVAILABLE
2442 * RadioError:LCE_NOT_SUPPORTED
sqian08e90552017-06-01 12:39:22 -07002443 * RadioError:INTERNAL_ERR
sqian01d37ff2017-06-21 14:51:25 -07002444 * RadioError:NO_MEMORY
2445 * RadioError:NO_RESOURCES
2446 * RadioError:CANCELLED
2447 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002448 */
2449 oneway pullLceDataResponse(RadioResponseInfo info, LceDataInfo lceInfo);
2450
Andreas Huber675ae492017-03-28 14:40:58 -07002451 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002452 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002453 * @param activityInfo modem activity information
2454 *
2455 * Valid errors returned:
2456 * RadioError:NONE
2457 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002458 * RadioError:NO_MEMORY
2459 * RadioError:INTERNAL_ERR
2460 * RadioError:SYSTEM_ERR
2461 * RadioError:MODEM_ERR
2462 * RadioError:NOT_PROVISIONED
sqian01d37ff2017-06-21 14:51:25 -07002463 * RadioError:NO_RESOURCES
2464 * RadioError:CANCELLED
2465 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002466 */
2467 oneway getModemActivityInfoResponse(RadioResponseInfo info, ActivityStatsInfo activityInfo);
2468
Andreas Huber675ae492017-03-28 14:40:58 -07002469 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002470 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002471 * @param numAllowed number of allowed carriers which have been set correctly.
2472 * On success, it must match the length of list Carriers->allowedCarriers.
2473 * if Length of allowed carriers list is 0, numAllowed = 0.
2474 *
2475 * Valid errors returned:
2476 * RadioError:NONE
2477 * RadioError:RADIO_NOT_AVAILABLE
2478 * RadioError:INVALID_ARGUMENTS
2479 * RadioError:REQUEST_NOT_SUPPORTED
2480 */
2481 oneway setAllowedCarriersResponse(RadioResponseInfo info, int32_t numAllowed);
2482
Andreas Huber675ae492017-03-28 14:40:58 -07002483 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07002484 * Expected modem behavior:
2485 * Return list of allowed carriers, and if all carriers are allowed.
2486 *
Sanket Padawe865834e2016-12-28 16:04:10 -08002487 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002488 * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct.
2489 * If false, consider "carriers" struct
2490 * @param carriers Carrier restriction information.
2491 *
2492 * Valid errors returned:
2493 * RadioError:NONE
2494 * RadioError:RADIO_NOT_AVAILABLE
2495 * RadioError:REQUEST_NOT_SUPPORTED
2496 */
2497 oneway getAllowedCarriersResponse(RadioResponseInfo info, bool allAllowed,
2498 CarrierRestrictions carriers);
Sanket Padawe1a7eae72016-12-07 14:40:03 -08002499
Andreas Huber675ae492017-03-28 14:40:58 -07002500 /**
Jack Yued7ef812017-01-24 11:56:52 -08002501 * @param info Response info struct containing response type, serial no. and error
2502 *
2503 * Valid errors returned:
2504 * RadioError:NONE
2505 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002506 * RadioError:NO_MEMORY
2507 * RadioError:INTERNAL_ERR
2508 * RadioError:SYSTEM_ERR
2509 * RadioError:INVALID_ARGUMENTS
2510 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002511 * RadioError:NO_RESOURCES
2512 * RadioError:CANCELLED
Jack Yued7ef812017-01-24 11:56:52 -08002513 */
2514 oneway sendDeviceStateResponse(RadioResponseInfo info);
2515
Andreas Huber675ae492017-03-28 14:40:58 -07002516 /**
Jack Yued7ef812017-01-24 11:56:52 -08002517 * @param info Response info struct containing response type, serial no. and error
2518 *
2519 * Valid errors returned:
2520 * RadioError:NONE
2521 * RadioError:INVALID_ARGUMENTS
2522 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002523 * RadioError:NO_MEMORY
2524 * RadioError:INTERNAL_ERR
2525 * RadioError:SYSTEM_ERR
2526 * RadioError:REQUEST_NOT_SUPPORTED
sqian01d37ff2017-06-21 14:51:25 -07002527 * RadioError:NO_RESOURCES
2528 * RadioError:CANCELLED
Jack Yued7ef812017-01-24 11:56:52 -08002529 */
2530 oneway setIndicationFilterResponse(RadioResponseInfo info);
2531
Andreas Huber675ae492017-03-28 14:40:58 -07002532 /**
Jack Yua2118692017-02-15 15:31:34 -08002533 * @param info Response info struct containing response type, serial no. and error
2534 *
2535 * Valid errors returned:
2536 * RadioError:NONE
2537 * RadioError:RADIO_NOT_AVAILABLE
2538 * RadioError:REQUEST_NOT_SUPPORTED
Jack Yua2118692017-02-15 15:31:34 -08002539 * RadioError:INVALID_ARGUMENTS
sqian01d37ff2017-06-21 14:51:25 -07002540 * RadioError:INTERNAL_ERR
2541 * RadioError:NO_MEMORY
2542 * RadioError:NO_RESOURCES
2543 * RadioError:CANCELLED
Jack Yua2118692017-02-15 15:31:34 -08002544 */
2545 oneway setSimCardPowerResponse(RadioResponseInfo info);
2546
Andreas Huber675ae492017-03-28 14:40:58 -07002547 /**
Jack Yued7ef812017-01-24 11:56:52 -08002548 * Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
Sanket Padawe1a7eae72016-12-07 14:40:03 -08002549 * radio request which take long time to respond.
2550 * For more details, refer https://source.android.com/devices/tech/connect/ril.html
2551 *
2552 * @param serial Serial no. of the request whose acknowledgement is sent.
2553 */
Sanket Padawe865834e2016-12-28 16:04:10 -08002554 oneway acknowledgeRequest(int32_t serial);
Sanket Padawe76372492016-10-27 13:20:49 -07002555};