blob: 23c4d41f0be9339bb1acf90ffdad3061ac94ebfb [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 Huber3e4acb82017-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 Huber3e4acb82017-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
Sanket Padawe76372492016-10-27 13:20:49 -070031 */
Sanket Padawe865834e2016-12-28 16:04:10 -080032 oneway getIccCardStatusResponse(RadioResponseInfo info, CardStatus cardStatus);
Sanket Padawe76372492016-10-27 13:20:49 -070033
Andreas Huber3e4acb82017-03-28 14:40:58 -070034 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080035 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070036 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
37 *
38 * Valid errors returned:
39 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070040 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070041 * RadioError:PASSWORD_INCORRECT
42 */
43 oneway supplyIccPinForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
44
Andreas Huber3e4acb82017-03-28 14:40:58 -070045 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080046 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070047 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
48 *
49 * Valid errors returned:
50 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070051 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070052 * RadioError:PASSWORD_INCORRECT (PUK is invalid)
53 */
54 oneway supplyIccPukForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
55
Andreas Huber3e4acb82017-03-28 14:40:58 -070056 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080057 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070058 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
59 *
60 * Valid errors returned:
61 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070062 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070063 * RadioError:PASSWORD_INCORRECT
64 */
65 oneway supplyIccPin2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
66
Andreas Huber3e4acb82017-03-28 14:40:58 -070067 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080068 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070069 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
70 * Valid errors returned:
71 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070072 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070073 * RadioError:PASSWORD_INCORRECT (PUK is invalid)
74 */
75 oneway supplyIccPuk2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
76
Andreas Huber3e4acb82017-03-28 14:40:58 -070077 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080078 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070079 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
80 *
81 * Valid errors returned:
82 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070083 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070084 * RadioError:PASSWORD_INCORRECT
85 */
86 oneway changeIccPinForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
87
Andreas Huber3e4acb82017-03-28 14:40:58 -070088 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080089 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070090 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
91 *
92 * Valid errors returned:
93 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -070094 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -070095 * RadioError:PASSWORD_INCORRECT (old PIN2 is invalid)
96 */
97 oneway changeIccPin2ForAppResponse(RadioResponseInfo info, int32_t remainingRetries);
98
Andreas Huber3e4acb82017-03-28 14:40:58 -070099 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800100 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700101 * @param remainingRetries Number of retries remaining, must be equal to -1 if unknown.
102 *
103 * Valid errors returned:
104 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700105 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700106 * RadioError:PASSWORD_INCORRECT (code is invalid)
107 */
108 oneway supplyNetworkDepersonalizationResponse(RadioResponseInfo info, int32_t remainingRetries);
109
Andreas Huber3e4acb82017-03-28 14:40:58 -0700110 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800111 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700112 * @param calls Current call list
113 *
114 * Valid errors returned:
115 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700116 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700117 * RadioError:NO_MEMORY
sqian0c6a13a2017-04-27 15:00:36 -0700118 * RadioError:INTERNAL_ERR
119 * RadioError:SYSTEM_ERR
120 * RadioError:INVALID_ARGUMENTS
121 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700122 */
123 oneway getCurrentCallsResponse(RadioResponseInfo info, vec<Call> calls);
124
Andreas Huber3e4acb82017-03-28 14:40:58 -0700125 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800126 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700127 *
128 * Valid errors returned:
129 * RadioError:NONE
130 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700131 * RadioError:DIAL_MODIFIED_TO_USSD
132 * RadioError:DIAL_MODIFIED_TO_SS
133 * RadioError:DIAL_MODIFIED_TO_DIAL
134 * RadioError:INVALID_ARGUMENTS
135 * RadioError:NO_MEMORY
136 * RadioError:INVALID_STATE
137 * RadioError:NO_RESOURCES
138 * RadioError:INTERNAL_ERR
139 * RadioError:FDN_CHECK_FAILURE
140 * RadioError:MODEM_ERR
141 * RadioError:NO_SUBSCRIPTION
142 * RadioError:NO_NETWORK_FOUND
143 * RadioError:INVALID_CALL_ID
144 * RadioError:DEVICE_IN_USE
145 * RadioError:MODE_NOT_SUPPORTED
146 * RadioError:ABORTED
sqian0c6a13a2017-04-27 15:00:36 -0700147 * RadioError:SYSTEM_ERR
148 * RadioError:REQUEST_NOT_SUPPORTED
149 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700150 */
151 oneway dialResponse(RadioResponseInfo info);
152
Andreas Huber3e4acb82017-03-28 14:40:58 -0700153 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800154 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700155 * @param imsi String containing the IMSI
156 *
157 * Valid errors returned:
158 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700159 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700160 */
161 oneway getIMSIForAppResponse(RadioResponseInfo info, string imsi);
162
Andreas Huber3e4acb82017-03-28 14:40:58 -0700163 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800164 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700165 *
166 * Valid errors returned:
167 * RadioError:NONE
168 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
169 * RadioError:INVALID_ARGUMENTS
170 * RadioError:NO_MEMORY
171 * RadioError:INVALID_STATE
172 * RadioError:MODEM_ERR
173 * RadioError:INTERNAL_ERR
174 * RadioError:INVALID_CALL_ID
Sanket Padawe76372492016-10-27 13:20:49 -0700175 */
176 oneway hangupConnectionResponse(RadioResponseInfo info);
177
Andreas Huber3e4acb82017-03-28 14:40:58 -0700178 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800179 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700180 *
181 * Valid errors returned:
182 * RadioError:NONE
183 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
184 * RadioError:INVALID_STATE
185 * RadioError:NO_MEMORY
186 * RadioError:MODEM_ERR
187 * RadioError:INTERNAL_ERR
188 * RadioError:INVALID_CALL_ID
189 * RadioError:NO_RESOURCES
190 * RadioError:OPERATION_NOT_ALLOWED
191 * RadioError:INVALID_ARGUMENTS
sqian0c6a13a2017-04-27 15:00:36 -0700192 * RadioError:SYSTEM_ERR
193 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700194 */
195 oneway hangupWaitingOrBackgroundResponse(RadioResponseInfo info);
196
Andreas Huber3e4acb82017-03-28 14:40:58 -0700197 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800198 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700199 *
200 * Valid errors returned:
201 * RadioError:NONE
202 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
203 * RadioError:INVALID_STATE
204 * RadioError:NO_MEMORY
205 * RadioError:MODEM_ERR
206 * RadioError:INTERNAL_ERR
207 * RadioError:INVALID_CALL_ID
208 * RadioError:NO_RESOURCES
209 * RadioError:OPERATION_NOT_ALLOWED
210 * RadioError:INVALID_ARGUMENTS
sqian0c6a13a2017-04-27 15:00:36 -0700211 * RadioError:SYSTEM_ERR
212 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700213 */
214 oneway hangupForegroundResumeBackgroundResponse(RadioResponseInfo info);
215
Andreas Huber3e4acb82017-03-28 14:40:58 -0700216 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800217 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700218 *
219 * Valid errors returned:
220 * RadioError:NONE
221 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
222 * RadioError:INVALID_STATE
223 * RadioError:NO_MEMORY
224 * RadioError:MODEM_ERR
225 * RadioError:INTERNAL_ERR
226 * RadioError:INVALID_STATE
227 * RadioError:INVALID_CALL_ID
228 * RadioError:OPERATION_NOT_ALLOWED
229 * RadioError:INVALID_ARGUMENTS
sqian0c6a13a2017-04-27 15:00:36 -0700230 * RadioError:SYSTEM_ERR
231 * RadioError:REQUEST_NOT_SUPPORTED
232 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700233 */
234 oneway switchWaitingOrHoldingAndActiveResponse(RadioResponseInfo info);
235
Andreas Huber3e4acb82017-03-28 14:40:58 -0700236 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800237 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700238 *
239 * Valid errors returned:
240 * RadioError:NONE
241 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
242 * RadioError:NO_MEMORY
243 * RadioError:MODEM_ERR
244 * RadioError:INTERNAL_ERR
245 * RadioError:INVALID_STATE
246 * RadioError:INVALID_CALL_ID
247 * RadioError:OPERATION_NOT_ALLOWED
248 * RadioError:INVALID_ARGUMENTS
sqian0c6a13a2017-04-27 15:00:36 -0700249 * RadioError:SYSTEM_ERR
250 * RadioError:REQUEST_NOT_SUPPORTED
251 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700252 */
253 oneway conferenceResponse(RadioResponseInfo info);
254
Andreas Huber3e4acb82017-03-28 14:40:58 -0700255 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800256 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700257 *
258 * Valid errors returned:
259 * RadioError:NONE
260 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
261 * RadioError:INVALID_STATE
262 * RadioError:NO_RESOURCES
263 * RadioError:NO_MEMORY
264 * RadioError:MODEM_ERR
265 * RadioError:INTERNAL_ERR
266 * RadioError:INVALID_CALL_ID
267 * RadioError:OPERATION_NOT_ALLOWED
268 * RadioError:INVALID_ARGUMENTS
sqian0c6a13a2017-04-27 15:00:36 -0700269 * RadioError:SYSTEM_ERR
270 * RadioError:REQUEST_NOT_SUPPORTED
271 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700272 */
273 oneway rejectCallResponse(RadioResponseInfo info);
274
Andreas Huber3e4acb82017-03-28 14:40:58 -0700275 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800276 * @param info Response info struct containing response type, serial no. and error
Jayachandran Ca03c0c62017-03-13 17:00:33 -0700277 * @param failCauseInfo Contains LastCallFailCause and vendor cause code.
Sanket Padawe76372492016-10-27 13:20:49 -0700278 *
Jayachandran Ca03c0c62017-03-13 17:00:33 -0700279 * The vendor cause code must be used for debugging purpose only.
280 * The implementation must return one of the values of LastCallFailCause
281 * as mentioned below
282 *
283 * GSM failure reasons codes for the cause codes defined in TS 24.008 Annex H
284 * where possible.
285 * CDMA failure reasons codes for the possible call failure scenarios
286 * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard.
287 * Any of the following reason codes if the call is failed or dropped due to reason
288 * mentioned with in the braces.
289 * LastCallFailCause:RADIO_OFF (Radio is OFF)
290 * LastCallFailCause:OUT_OF_SERVICE (No cell coverage)
291 * LastCallFailCause:NO_VALID_SIM (No valid SIM)
292 * LastCallFailCause:RADIO_INTERNAL_ERROR (Modem hit unexpected error scenario)
293 * LastCallFailCause:NETWORK_RESP_TIMEOUT (No response from network)
294 * LastCallFailCause:NETWORK_REJECT (Explicit network reject)
295 * LastCallFailCause:RADIO_ACCESS_FAILURE (RRC connection failure. Eg.RACH)
296 * LastCallFailCause:RADIO_LINK_FAILURE (Radio Link Failure)
297 * LastCallFailCause:RADIO_LINK_LOST (Radio link lost due to poor coverage)
298 * LastCallFailCause:RADIO_UPLINK_FAILURE (Radio uplink failure)
299 * LastCallFailCause:RADIO_SETUP_FAILURE (RRC connection setup failure)
300 * LastCallFailCause:RADIO_RELEASE_NORMAL (RRC connection release, normal)
301 * LastCallFailCause:RADIO_RELEASE_ABNORMAL (RRC connection release, abnormal)
302 * LastCallFailCause:ACCESS_CLASS_BLOCKED (Access class barring)
303 * LastCallFailCause:NETWORK_DETACH (Explicit network detach)
304 * OEM causes (LastCallFailCause:OEM_CAUSE_XX) must be used for debug purpose only
Sanket Padawe76372492016-10-27 13:20:49 -0700305 *
306 * If the implementation does not have access to the exact cause codes,
307 * then it must return one of the values listed in LastCallFailCause,
308 * as the UI layer needs to distinguish these cases for tone generation or
309 * error notification.
310 *
311 * Valid errors returned:
312 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700313 * RadioError:NO_MEMORY
sqian0c6a13a2017-04-27 15:00:36 -0700314 * RadioError:RADIO_NOT_AVAILABLE
315 * RadioError:SYSTEM_ERR
316 * RadioError:INVALID_ARGUMENTS
317 * RadioError:INTERNAL_ERR
318 * RadioError:MODEM_ERR
319 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700320 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800321 oneway getLastCallFailCauseResponse(RadioResponseInfo info,
322 LastCallFailCauseInfo failCauseinfo);
Sanket Padawe76372492016-10-27 13:20:49 -0700323
Andreas Huber3e4acb82017-03-28 14:40:58 -0700324 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800325 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700326 * @param sigStrength Current signal strength
327 *
328 * Valid errors returned:
329 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700330 * RadioError:RADIO_NOT_AVAILABLE
331 */
332 oneway getSignalStrengthResponse(RadioResponseInfo info, SignalStrength sigStrength);
333
Andreas Huber3e4acb82017-03-28 14:40:58 -0700334 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800335 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700336 * @param voiceRegResponse Current Voice registration response as defined by VoiceRegStateResult
337 * in types.hal
338 *
339 * Valid errors returned:
340 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700341 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700342 */
343 oneway getVoiceRegistrationStateResponse(RadioResponseInfo info,
344 VoiceRegStateResult voiceRegResponse);
345
Andreas Huber3e4acb82017-03-28 14:40:58 -0700346 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800347 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700348 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
349 * types.hal
350 *
351 * Valid errors returned:
352 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700353 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700354 */
355 oneway getDataRegistrationStateResponse(RadioResponseInfo info,
356 DataRegStateResult dataRegResponse);
357
Andreas Huber3e4acb82017-03-28 14:40:58 -0700358 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800359 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700360 * @param longName is long alpha ONS or EONS or empty string if unregistered
361 * @param shortName is short alpha ONS or EONS or empty string if unregistered
362 * @param numeric is 5 or 6 digit numeric code (MCC + MNC) or empty string if unregistered
363 *
364 * Valid errors returned:
365 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700366 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700367 */
368 oneway getOperatorResponse(RadioResponseInfo info, string longName, string shortName,
369 string numeric);
370
Andreas Huber3e4acb82017-03-28 14:40:58 -0700371 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800372 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700373 *
374 * Valid errors returned:
375 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700376 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700377 * RadioError:OPERATION_NOT_ALLOWED
378 */
379 oneway setRadioPowerResponse(RadioResponseInfo info);
380
Andreas Huber3e4acb82017-03-28 14:40:58 -0700381 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800382 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700383 *
384 * Valid errors returned:
385 * RadioError:NONE
386 * RadioError:RADIO_NOT_AVAILABLE
387 * RadioError:INVALID_ARGUMENTS
388 * RadioError:NO_RESOURCES
389 * RadioError:NO_MEMORY
390 * RadioError:MODEM_ERR
391 * RadioError:INVALID_CALL_ID
sqian0c6a13a2017-04-27 15:00:36 -0700392 * RadioError:INTERNAL_ERR
393 * RadioError:SYSTEM_ERR
394 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700395 */
396 oneway sendDtmfResponse(RadioResponseInfo info);
397
Andreas Huber3e4acb82017-03-28 14:40:58 -0700398 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800399 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700400 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
401 *
402 * Valid errors returned:
403 * RadioError:NONE
404 * RadioError:RADIO_NOT_AVAILABLE
405 * RadioError:SMS_SEND_FAIL_RETRY
406 * RadioError:NETWORK_REJECT
407 * RadioError:INVALID_STATE
408 * RadioError:INVALID_ARGUMENTS
409 * RadioError:NO_MEMORY
410 * RadioError:REQUEST_RATE_LIMITED
411 * RadioError:INVALID_SMS_FORMAT
412 * RadioError:SYSTEM_ERR
413 * RadioError:ENCODING_ERR
414 * RadioError:INVALID_SMSC_ADDRESS
415 * RadioError:MODEM_ERR
416 * RadioError:NETWORK_ERR
417 * RadioError:MODE_NOT_SUPPORTED
sqian0c6a13a2017-04-27 15:00:36 -0700418 * RadioError:INTERNAL_ERR
419 * RadioError:REQUEST_NOT_SUPPORTED
420 * RadioError:INVALID_MODEM_STATE
421 * RadioError:NETWORK_NOT_READY
422 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700423 */
424 oneway sendSmsResponse(RadioResponseInfo info, SendSmsResult sms);
425
Andreas Huber3e4acb82017-03-28 14:40:58 -0700426 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800427 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700428 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
429 *
430 * Valid errors returned:
431 * RadioError:NONE
432 * RadioError:RADIO_NOT_AVAILABLE
433 * RadioError:SMS_SEND_FAIL_RETRY
434 * RadioError:NETWORK_REJECT
435 * RadioError:INVALID_STATE
436 * RadioError:INVALID_ARGUMENTS
437 * RadioError:NO_MEMORY
438 * RadioError:REQUEST_RATE_LIMITED
439 * RadioError:INVALID_SMS_FORMAT
440 * RadioError:SYSTEM_ERR
441 * RadioError:FDN_CHECK_FAILURE
442 * RadioError:ENCODING_ERR
443 * RadioError:INVALID_SMSC_ADDRESS
444 * RadioError:MODEM_ERR
445 * RadioError:NETWORK_ERR
446 * RadioError:MODE_NOT_SUPPORTED
sqian0c6a13a2017-04-27 15:00:36 -0700447 * RadioError:INTERNAL_ERR
448 * RadioError:REQUEST_NOT_SUPPORTED
449 * RadioError:INVALID_MODEM_STATE
450 * RadioError:NETWORK_NOT_READY
451 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700452 */
453 oneway sendSMSExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
454
Andreas Huber3e4acb82017-03-28 14:40:58 -0700455 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800456 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700457 * @param dcResponse SetupDataCallResult defined in types.hal
458 *
459 * Valid errors returned:
460 * RadioError:NONE must be returned on both success and failure of setup with the
461 * DataCallResponse.status containing the actual status
462 * For all other errors the DataCallResponse is ignored.
Sanket Padawe76372492016-10-27 13:20:49 -0700463 * RadioError:RADIO_NOT_AVAILABLE
464 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
465 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
466 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700467 */
468 oneway setupDataCallResponse(RadioResponseInfo info, SetupDataCallResult dcResponse);
469
Andreas Huber3e4acb82017-03-28 14:40:58 -0700470 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800471 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700472 * @param iccIo ICC io operation response as defined by IccIoResult in types.hal
Sanket Padawe76372492016-10-27 13:20:49 -0700473 *
474 * Valid errors returned:
475 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700476 * RadioError:RADIO_NOT_AVAILABLE
477 * RadioError:SIM_PIN2
478 * RadioError:SIM_PUK2
Sanket Padawe76372492016-10-27 13:20:49 -0700479 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800480 oneway iccIOForAppResponse(RadioResponseInfo info, IccIoResult iccIo);
Sanket Padawe76372492016-10-27 13:20:49 -0700481
Andreas Huber3e4acb82017-03-28 14:40:58 -0700482 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800483 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700484 *
485 * Valid errors returned:
486 * RadioError:NONE
487 * RadioError:RADIO_NOT_AVAILABLE
488 * RadioError:FDN_CHECK_FAILURE
489 * RadioError:USSD_MODIFIED_TO_DIAL
490 * RadioError:USSD_MODIFIED_TO_SS
491 * RadioError:USSD_MODIFIED_TO_USSD
492 * RadioError:SIM_BUSY
493 * RadioError:OPERATION_NOT_ALLOWED
494 * RadioError:INVALID_ARGUMENTS
495 * RadioError:NO_MEMORY
496 * RadioError:MODEM_ERR
497 * RadioError:INTERNAL_ERR
498 * RadioError:ABORTED
499 * RadioError:SYSTEM_ERR
500 * RadioError:INVALID_STATE
sqian0c6a13a2017-04-27 15:00:36 -0700501 * RadioError:REQUEST_NOT_SUPPORTED
502 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700503 */
504 oneway sendUssdResponse(RadioResponseInfo info);
505
Andreas Huber3e4acb82017-03-28 14:40:58 -0700506 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800507 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700508 *
509 * Valid errors returned:
510 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700511 * RadioError:RADIO_NOT_AVAILABLE
512 * RadioError:SIM_BUSY
513 * RadioError:OPERATION_NOT_ALLOWED
514 * RadioError:MODEM_ERR
515 * RadioError:INTERNAL_ERR
516 * RadioError:NO_MEMORY
517 * RadioError:INVALID_STATE
sqian0c6a13a2017-04-27 15:00:36 -0700518 * RadioError:INVALID_ARGUMENTS
519 * RadioError:SYSTEM_ERR
520 * RadioError:REQUEST_NOT_SUPPORTED
521 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700522 */
523 oneway cancelPendingUssdResponse(RadioResponseInfo info);
524
Andreas Huber3e4acb82017-03-28 14:40:58 -0700525 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800526 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700527 * @param n is "n" parameter from TS 27.007 7.7
528 * @param m is "m" parameter from TS 27.007 7.7
529 *
530 * Valid errors returned:
531 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700532 * RadioError:RADIO_NOT_AVAILABLE
533 * RadioError:SS_MODIFIED_TO_DIAL
534 * RadioError:SS_MODIFIED_TO_USSD
535 * RadioError:SS_MODIFIED_TO_SS
536 * RadioError:NO_MEMORY
537 * RadioError:MODEM_ERR
538 * RadioError:INTERNAL_ERR
539 * RadioError:FDN_CHECK_FAILURE
540 * RadioError:SYSTEM_ERR
sqian0c6a13a2017-04-27 15:00:36 -0700541 * RadioError:REQUEST_NOT_SUPPORTED
542 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700543 */
544 oneway getClirResponse(RadioResponseInfo info, int32_t n, int32_t m);
545
Andreas Huber3e4acb82017-03-28 14:40:58 -0700546 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800547 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700548 *
549 * Valid errors returned:
550 * RadioError:NONE
551 * RadioError:INVALID_ARGUMENTS
552 * RadioError:RADIO_NOT_AVAILABLE
553 * RadioError:SS_MODIFIED_TO_DIAL
554 * RadioError:SS_MODIFIED_TO_USSD
555 * RadioError:SS_MODIFIED_TO_SS
sqian0c6a13a2017-04-27 15:00:36 -0700556 * RadioError:NO_MEMORY
557 * RadioError:INTERNAL_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700558 * RadioError:SYSTEM_ERR
sqian0c6a13a2017-04-27 15:00:36 -0700559 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700560 */
561 oneway setClirResponse(RadioResponseInfo info);
562
Andreas Huber3e4acb82017-03-28 14:40:58 -0700563 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800564 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700565 * @param callForwardInfos points to a vector of CallForwardInfo, one for
566 * each distinct registered phone number.
567 *
568 * For example, if data is forwarded to +18005551212 and voice is forwarded
569 * to +18005559999, then two separate CallForwardInfo's must be returned
570 *
571 * If, however, both data and voice are forwarded to +18005551212, then
572 * a single CallForwardInfo must be returned with the service class
573 * set to "data + voice = 3")
574 *
575 * Valid errors returned:
576 * RadioError:NONE
577 * RadioError:RADIO_NOT_AVAILABLE
578 * RadioError:SS_MODIFIED_TO_DIAL
579 * RadioError:SS_MODIFIED_TO_USSD
580 * RadioError:SS_MODIFIED_TO_SS
581 * RadioError:INVALID_ARGUMENTS
582 * RadioError:NO_MEMORY
583 * RadioError:SYSTEM_ERR
584 * RadioError:MODEM_ERR
585 * RadioError:INTERNAL_ERR
586 * RadioError:FDN_CHECK_FAILURE
sqian0c6a13a2017-04-27 15:00:36 -0700587 * RadioError:REQUEST_NOT_SUPPORTED
588 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700589 */
590 oneway getCallForwardStatusResponse(RadioResponseInfo info,
591 vec<CallForwardInfo> callForwardInfos);
592
Andreas Huber3e4acb82017-03-28 14:40:58 -0700593 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800594 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700595 *
596 * Valid errors returned:
597 * RadioError:NONE
598 * RadioError:RADIO_NOT_AVAILABLE
599 * RadioError:SS_MODIFIED_TO_DIAL
600 * RadioError:SS_MODIFIED_TO_USSD
601 * RadioError:SS_MODIFIED_TO_SS
602 * RadioError:INVALID_ARGUMENTS
603 * RadioError:NO_MEMORY
604 * RadioError:SYSTEM_ERR
605 * RadioError:MODEM_ERR
606 * RadioError:INTERNAL_ERR
607 * RadioError:INVALID_STATE
608 * RadioError:FDN_CHECK_FAILURE
sqian0c6a13a2017-04-27 15:00:36 -0700609 * RadioError:REQUEST_NOT_SUPPORTED
610 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700611 */
612 oneway setCallForwardResponse(RadioResponseInfo info);
613
Andreas Huber3e4acb82017-03-28 14:40:58 -0700614 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800615 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700616 * @param enable If current call waiting state is disabled, enable = false else true
617 * @param serviceClass If enable, then callWaitingResp[1]
618 * must follow, with the TS 27.007 service class bit vector of services
619 * for which call waiting is enabled.
620 * For example, if callWaitingResp[0] is 1 and
621 * callWaitingResp[1] is 3, then call waiting is enabled for data
622 * and voice and disabled for everything else.
623 *
624 * Valid errors returned:
625 * RadioError:NONE
626 * RadioError:RADIO_NOT_AVAILABLE
627 * RadioError:SS_MODIFIED_TO_DIAL
628 * RadioError:SS_MODIFIED_TO_USSD
629 * RadioError:SS_MODIFIED_TO_SS
630 * RadioError:INVALID_ARGUMENTS
631 * RadioError:NO_MEMORY
632 * RadioError:MODEM_ERR
633 * RadioError:INTERNAL_ERR
634 * RadioError:FDN_CHECK_FAILURE
sqian0c6a13a2017-04-27 15:00:36 -0700635 * RadioError:INTERNAL_ERR
636 * RadioError:SYSTEM_ERR
637 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700638 */
639 oneway getCallWaitingResponse(RadioResponseInfo info, bool enable, int32_t serviceClass);
640
Andreas Huber3e4acb82017-03-28 14:40:58 -0700641 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800642 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700643 *
644 * Valid errors returned:
645 * RadioError:NONE
646 * RadioError:RADIO_NOT_AVAILABLE
647 * RadioError:SS_MODIFIED_TO_DIAL
648 * RadioError:SS_MODIFIED_TO_USSD
649 * RadioError:SS_MODIFIED_TO_SS
650 * RadioError:INVALID_ARGUMENTS
651 * RadioError:NO_MEMORY
652 * RadioError:MODEM_ERR
653 * RadioError:INTERNAL_ERR
654 * RadioError:INVALID_STATE
655 * RadioError:FDN_CHECK_FAILURE
sqian0c6a13a2017-04-27 15:00:36 -0700656 * RadioError:SYSTEM_ERR
657 * RadioError:REQUEST_NOT_SUPPORTED
658 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700659 */
660 oneway setCallWaitingResponse(RadioResponseInfo info);
661
Andreas Huber3e4acb82017-03-28 14:40:58 -0700662 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800663 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700664 *
665 * Valid errors returned:
666 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700667 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700668 */
669 oneway acknowledgeLastIncomingGsmSmsResponse(RadioResponseInfo info);
670
Andreas Huber3e4acb82017-03-28 14:40:58 -0700671 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800672 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700673 *
674 * Valid errors returned:
675 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700676 * RadioError:RADIO_NOT_AVAILABLE
677 * RadioError:INVALID_STATE
678 * RadioError:NO_MEMORY
679 * RadioError:SYSTEM_ERR
680 * RadioError:MODEM_ERR
681 * RadioError:INTERNAL_ERR
682 * RadioError:INVALID_CALL_ID
sqian0c6a13a2017-04-27 15:00:36 -0700683 * RadioError:INVALID_ARGUMENTS
684 * RadioError:SYSTEM_ERR
685 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700686 */
687 oneway acceptCallResponse(RadioResponseInfo info);
688
Andreas Huber3e4acb82017-03-28 14:40:58 -0700689 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800690 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700691 *
692 * Valid errors returned:
693 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700694 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700695 */
696 oneway deactivateDataCallResponse(RadioResponseInfo info);
697
Andreas Huber3e4acb82017-03-28 14:40:58 -0700698 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800699 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700700 * @param response 0 is the TS 27.007 service class bit vector of
701 * services for which the specified barring facility
702 * is active. "0" means "disabled for all"
703 *
704 * Valid errors returned:
705 * RadioError:NONE
706 * RadioError:RADIO_NOT_AVAILABLE
707 * RadioError:SS_MODIFIED_TO_DIAL
708 * RadioError:SS_MODIFIED_TO_USSD
709 * RadioError:SS_MODIFIED_TO_SS
710 * RadioError:INVALID_ARGUMENTS
711 * RadioError:NO_MEMORY
712 * RadioError:MODEM_ERR
713 * RadioError:INTERNAL_ERR
714 * RadioError:SYSTEM_ERR
715 * RadioError:FDN_CHECK_FAILURE
sqian0c6a13a2017-04-27 15:00:36 -0700716 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700717 */
718 oneway getFacilityLockForAppResponse(RadioResponseInfo info, int32_t response);
719
Andreas Huber3e4acb82017-03-28 14:40:58 -0700720 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800721 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700722 * @param retry 0 is the number of retries remaining, or -1 if unknown
723 *
724 * Valid errors returned:
725 * RadioError:NONE
726 * RadioError:RADIO_NOT_AVAILABLE
727 * RadioError:SS_MODIFIED_TO_DIAL
728 * RadioError:SS_MODIFIED_TO_USSD
729 * RadioError:SS_MODIFIED_TO_SS
730 * RadioError:INVALID_ARGUMENTS
731 * RadioError:NO_MEMORY
732 * RadioError:MODEM_ERR
733 * RadioError:INTERNAL_ERR
sqian0c6a13a2017-04-27 15:00:36 -0700734 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700735 * RadioError:INVALID_STATE
736 * RadioError:FDN_CHECK_FAILURE
sqian0c6a13a2017-04-27 15:00:36 -0700737 * RadioError:REQUEST_NOT_SUPPORTED
738 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700739 */
740 oneway setFacilityLockForAppResponse(RadioResponseInfo info, int32_t retry);
741
Andreas Huber3e4acb82017-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:MODEM_ERR
754 * RadioError:INTERNAL_ERR
755 * RadioError:SYSTEM_ERR
756 * RadioError:FDN_CHECK_FAILURE
sqian0c6a13a2017-04-27 15:00:36 -0700757 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700758 */
759 oneway setBarringPasswordResponse(RadioResponseInfo info);
760
Andreas Huber3e4acb82017-03-28 14:40:58 -0700761 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800762 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700763 * @param selection false for automatic selection, true for manual selection
764 *
765 * Valid errors returned:
766 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700767 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700768 */
769 oneway getNetworkSelectionModeResponse(RadioResponseInfo info, bool manual);
770
Andreas Huber3e4acb82017-03-28 14:40:58 -0700771 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800772 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700773 *
774 * Valid errors returned:
775 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700776 * RadioError:RADIO_NOT_AVAILABLE
777 * RadioError:ILLEGAL_SIM_OR_ME
778 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700779 *
780 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
781 * no retries needed, such as illegal SIM or ME.
Sanket Padawe76372492016-10-27 13:20:49 -0700782 */
783 oneway setNetworkSelectionModeAutomaticResponse(RadioResponseInfo info);
784
Andreas Huber3e4acb82017-03-28 14:40:58 -0700785 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800786 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700787 *
788 * Valid errors returned:
789 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700790 * RadioError:RADIO_NOT_AVAILABLE
791 * RadioError:ILLEGAL_SIM_OR_ME
792 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700793 *
794 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
795 * no retries needed, such as illegal SIM or ME.
Sanket Padawe76372492016-10-27 13:20:49 -0700796 */
797 oneway setNetworkSelectionModeManualResponse(RadioResponseInfo info);
798
Andreas Huber3e4acb82017-03-28 14:40:58 -0700799 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800800 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700801 * @param networkInfos List of network operator information as OperatorInfos defined in
802 * types.hal
803 *
804 * Valid errors returned:
805 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700806 * RadioError:RADIO_NOT_AVAILABLE
807 * RadioError:OPERATION_NOT_ALLOWED
Jayachandran Cfbb1ea52017-03-13 19:23:52 -0700808 * RadioError:ABORTED
809 * RadioError:DEVICE_IN_USE
810 * RadioError:INTERNAL_ERR
811 * RadioError:NO_MEMORY
812 * RadioError:MODEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700813 */
814 oneway getAvailableNetworksResponse(RadioResponseInfo info,
815 vec<OperatorInfo> networkInfos);
816
Andreas Huber3e4acb82017-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
822 * RadioError:RADIO_NOT_AVAILABLE
823 * RadioError:INVALID_ARGUMENTS
824 * RadioError:NO_RESOURCES
825 * RadioError:NO_MEMORY
826 * RadioError:SYSTEM_ERR
827 * RadioError:MODEM_ERR
828 * RadioError:INTERNAL_ERR
829 * RadioError:INVALID_CALL_ID
sqian0c6a13a2017-04-27 15:00:36 -0700830 * RadioError:SYSTEM_ERR
831 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700832 */
833 oneway startDtmfResponse(RadioResponseInfo info);
834
Andreas Huber3e4acb82017-03-28 14:40:58 -0700835 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800836 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700837 *
838 * Valid errors returned:
839 * RadioError:NONE
840 * RadioError:RADIO_NOT_AVAILABLE
841 * RadioError:INVALID_ARGUMENTS
842 * RadioError:NO_RESOURCES
843 * RadioError:NO_MEMORY
844 * RadioError:INVALID_ARGUMENTS
845 * RadioError:SYSTEM_ERR
846 * RadioError:MODEM_ERR
847 * RadioError:INTERNAL_ERR
848 * RadioError:INVALID_CALL_ID
sqian0c6a13a2017-04-27 15:00:36 -0700849 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700850 */
851 oneway stopDtmfResponse(RadioResponseInfo info);
852
Andreas Huber3e4acb82017-03-28 14:40:58 -0700853 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800854 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700855 * @param version string containing version string for log reporting
856 *
857 * Valid errors returned:
858 * RadioError:NONE
859 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700860 * RadioError:EMPTY_RECORD
Sanket Padawe76372492016-10-27 13:20:49 -0700861 */
862 oneway getBasebandVersionResponse(RadioResponseInfo info, string version);
863
Andreas Huber3e4acb82017-03-28 14:40:58 -0700864 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800865 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700866 *
867 * Valid errors returned:
868 * RadioError:NONE
869 * RadioError:RADIO_NOT_AVAILABLE
870 * RadioError:INVALID_ARGUMENTS
871 * RadioError:INVALID_STATE
872 * RadioError:NO_RESOURCES
873 * RadioError:NO_MEMORY
874 * RadioError:MODEM_ERR
875 * RadioError:SYSTEM_ERR
876 * RadioError:INTERNAL_ERR
877 * RadioError:INVALID_CALL_ID
878 * RadioError:OPERATION_NOT_ALLOWED
sqian0c6a13a2017-04-27 15:00:36 -0700879 * RadioError:REQUEST_NOT_SUPPORTED
880 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700881 */
882 oneway separateConnectionResponse(RadioResponseInfo info);
883
Andreas Huber3e4acb82017-03-28 14:40:58 -0700884 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800885 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700886 *
887 * Valid errors returned:
888 * RadioError:NONE
889 * RadioError:RADIO_NOT_AVAILABLE
890 * RadioError:INVALID_ARGUMENTS
891 * RadioError:NO_MEMORY
892 * RadioError:REQUEST_RATE_LIMITED
sqian0c6a13a2017-04-27 15:00:36 -0700893 * RadioError:INTERNAL_ERR
894 * RadioError:SYSTEM_ERR
895 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700896 */
897 oneway setMuteResponse(RadioResponseInfo info);
898
Andreas Huber3e4acb82017-03-28 14:40:58 -0700899 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800900 * @param info Response info struct containing response type, serial no. and error
901 * @param enable true for "mute enabled" and false for "mute disabled"
Sanket Padawe76372492016-10-27 13:20:49 -0700902 *
903 * Valid errors returned:
904 * RadioError:NONE
905 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700906 * RadioError:SS_MODIFIED_TO_DIAL
907 * RadioError:SS_MODIFIED_TO_USSD
908 * RadioError:SS_MODIFIED_TO_SS
909 * RadioError:NO_MEMORY
910 * RadioError:REQUEST_RATE_LIMITED
sqian0c6a13a2017-04-27 15:00:36 -0700911 * RadioError:INVALID_ARGUMENTS
912 * RadioError:INTERNAL_ERR
913 * RadioError:SYSTEM_ERR
914 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700915 */
916 oneway getMuteResponse(RadioResponseInfo info, bool enable);
917
Andreas Huber3e4acb82017-03-28 14:40:58 -0700918 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800919 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700920 * @param status indicates CLIP status
921 *
922 * Valid errors returned:
923 * RadioError:NONE
924 * RadioError:RADIO_NOT_AVAILABLE
925 * RadioError:INVALID_ARGUMENTS
926 * RadioError:NO_MEMORY
927 * RadioError:SYSTEM_ERR
928 * RadioError:MODEM_ERR
929 * RadioError:INTERNAL_ERR
930 * RadioError:FDN_CHECK_FAILURE
sqian0c6a13a2017-04-27 15:00:36 -0700931 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700932 */
933 oneway getClipResponse(RadioResponseInfo info, ClipStatus status);
934
Andreas Huber3e4acb82017-03-28 14:40:58 -0700935 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800936 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700937 * @param dcResponse List of DataCallResult as defined in types.hal
938 *
939 * Valid errors returned:
940 * RadioError:NONE
941 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700942 */
943 oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
944
Andreas Huber3e4acb82017-03-28 14:40:58 -0700945 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800946 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700947 *
948 * Valid errors returned:
949 * RadioError:NONE
950 * RadioError:RADIO_NOT_AVAILABLE
951 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700952 * RadioError:SIM_BUSY
953 * RadioError:NO_MEMORY
954 * RadioError:SYSTEM_ERR
955 * RadioError:MODEM_ERR
956 * RadioError:INTERNAL_ERR
sqian0c6a13a2017-04-27 15:00:36 -0700957 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700958 */
959 oneway setSuppServiceNotificationsResponse(RadioResponseInfo info);
960
Andreas Huber3e4acb82017-03-28 14:40:58 -0700961 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800962 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700963 * @param index record index where the message is stored
964 *
965 * Valid errors returned:
966 * RadioError:NONE
967 * RadioError:SIM_FULL
968 * RadioError:INVALID_ARGUMENTS
969 * RadioError:INVALID_SMS_FORMAT
970 * RadioError:INTERNAL_ERR
971 * RadioError:MODEM_ERR
972 * RadioError:ENCODING_ERR
973 * RadioError:NO_MEMORY
974 * RadioError:NO_RESOURCES
975 * RadioError:INVALID_MODEM_STATE
976 * RadioError:MODE_NOT_SUPPORTED
977 * RadioError:INVALID_SMSC_ADDRESS
sqian0c6a13a2017-04-27 15:00:36 -0700978 * RadioError:RADIO_NOT_AVAILABLE
979 * RadioError:SYSTEM_ERR
980 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700981 */
982 oneway writeSmsToSimResponse(RadioResponseInfo info, int32_t index);
983
Andreas Huber3e4acb82017-03-28 14:40:58 -0700984 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800985 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700986 *
987 * Valid errors returned:
988 * RadioError:NONE
989 * RadioError:SIM_FULL
990 * RadioError:INVALID_ARGUMENTS
991 * RadioError:NO_MEMORY
992 * RadioError:REQUEST_RATE_LIMITED
993 * RadioError:SYSTEM_ERR
994 * RadioError:MODEM_ERR
995 * RadioError:NO_SUCH_ENTRY
sqian0c6a13a2017-04-27 15:00:36 -0700996 * RadioError:INTERNAL_ERR
997 * RadioError:RADIO_NOT_AVAILABLE
998 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700999 */
1000 oneway deleteSmsOnSimResponse(RadioResponseInfo info);
1001
Andreas Huber3e4acb82017-03-28 14:40:58 -07001002 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001003 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001004 *
1005 * Valid errors returned:
1006 * RadioError:NONE
1007 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001008 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -07001009 */
1010 oneway setBandModeResponse(RadioResponseInfo info);
1011
Andreas Huber3e4acb82017-03-28 14:40:58 -07001012 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001013 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001014 * @param bandModes List of RadioBandMode listing supported modes
1015 *
1016 * Valid errors returned:
1017 * RadioError:NONE
1018 * RadioError:RADIO_NOT_AVAILABLE
1019 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -07001020 */
1021 oneway getAvailableBandModesResponse(RadioResponseInfo info, vec<RadioBandMode> bandModes);
1022
Andreas Huber3e4acb82017-03-28 14:40:58 -07001023 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001024 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001025 * @param commandResponse SAT/USAT response in hexadecimal format
1026 * string starting with first byte of response
1027 *
1028 * Valid errors returned:
1029 * RadioError:NONE
1030 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001031 * RadioError:SIM_BUSY
1032 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -07001033 */
1034 oneway sendEnvelopeResponse(RadioResponseInfo info, string commandResponse);
1035
Andreas Huber3e4acb82017-03-28 14:40:58 -07001036 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001037 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001038 *
1039 * Valid errors returned:
1040 * RadioError:NONE
1041 * RadioError:RADIO_NOT_AVAILABLE
1042 * RadioError:INVALID_ARGUMENTS
1043 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -07001044 */
1045 oneway sendTerminalResponseToSimResponse(RadioResponseInfo info);
Sanket Padawed52335c2016-11-03 16:46:32 -07001046
Andreas Huber3e4acb82017-03-28 14:40:58 -07001047 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001048 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001049 *
1050 * Valid errors returned:
1051 * RadioError:NONE
1052 * RadioError:RADIO_NOT_AVAILABLE
1053 * RadioError:INVALID_ARGUMENTS
1054 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001055 */
1056 oneway handleStkCallSetupRequestFromSimResponse(RadioResponseInfo info);
1057
Andreas Huber3e4acb82017-03-28 14:40:58 -07001058 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001059 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001060 *
1061 * Valid errors returned:
1062 * RadioError:NONE
1063 * RadioError:RADIO_NOT_AVAILABLE
1064 * RadioError:INVALID_ARGUMENTS
1065 * RadioError:INVALID_STATE
1066 * RadioError:NO_RESOURCES
1067 * RadioError:NO_MEMORY
1068 * RadioError:SYSTEM_ERR
1069 * RadioError:MODEM_ERR
1070 * RadioError:INTERNAL_ERR
1071 * RadioError:INVALID_CALL_ID
1072 * RadioError:OPERATION_NOT_ALLOWED
sqian0c6a13a2017-04-27 15:00:36 -07001073 * RadioError:REQUEST_NOT_SUPPORTED
1074 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001075 */
1076 oneway explicitCallTransferResponse(RadioResponseInfo info);
1077
Andreas Huber3e4acb82017-03-28 14:40:58 -07001078 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001079 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001080 *
1081 * Valid errors returned:
1082 * RadioError:NONE
1083 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001084 * RadioError:OPERATION_NOT_ALLOWED
1085 * RadioError:MODE_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001086 */
1087 oneway setPreferredNetworkTypeResponse(RadioResponseInfo info);
1088
Andreas Huber3e4acb82017-03-28 14:40:58 -07001089 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001090 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001091 * @param nwType RadioPreferredNetworkType defined in types.hal
1092 *
1093 * Valid errors returned:
1094 * RadioError:NONE
1095 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001096 */
1097 oneway getPreferredNetworkTypeResponse(RadioResponseInfo info,
1098 PreferredNetworkType nwType);
1099
Andreas Huber3e4acb82017-03-28 14:40:58 -07001100 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001101 * @param info Response info struct containing response type, serial no. and error
1102 * @param cells Vector of neighboring radio cell
Sanket Padawed52335c2016-11-03 16:46:32 -07001103 *
1104 * Valid errors returned:
1105 * RadioError:NONE
1106 * RadioError:RADIO_NOT_AVAILABLE
1107 * RadioError:INVALID_ARGUMENTS
Sanket Padawed52335c2016-11-03 16:46:32 -07001108 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001109 oneway getNeighboringCidsResponse(RadioResponseInfo info, vec<NeighboringCell> cells);
Sanket Padawed52335c2016-11-03 16:46:32 -07001110
Andreas Huber3e4acb82017-03-28 14:40:58 -07001111 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001112 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001113 *
1114 * Valid errors returned:
1115 * RadioError:NONE
1116 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001117 */
1118 oneway setLocationUpdatesResponse(RadioResponseInfo info);
1119
Andreas Huber3e4acb82017-03-28 14:40:58 -07001120 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001121 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001122 *
1123 * Valid errors returned:
1124 * RadioError:NONE
1125 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001126 * RadioError:SIM_ABSENT
1127 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001128 */
1129 oneway setCdmaSubscriptionSourceResponse(RadioResponseInfo info);
1130
Andreas Huber3e4acb82017-03-28 14:40:58 -07001131 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001132 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001133 *
1134 * Valid errors returned:
1135 * RadioError:NONE
1136 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001137 */
1138 oneway setCdmaRoamingPreferenceResponse(RadioResponseInfo info);
1139
Andreas Huber3e4acb82017-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 Padawed52335c2016-11-03 16:46:32 -07001142 * @param type CdmaRoamingType defined in types.hal
1143 *
1144 * Valid errors returned:
1145 * RadioError:NONE
1146 * RadioError:RADIO_NOT_AVAILABLE
1147 * RadioError:INVALID_ARGUMENTS
Sanket Padawed52335c2016-11-03 16:46:32 -07001148 */
1149 oneway getCdmaRoamingPreferenceResponse(RadioResponseInfo info, CdmaRoamingType type);
1150
Andreas Huber3e4acb82017-03-28 14:40:58 -07001151 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001152 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001153 *
1154 * Valid errors returned:
1155 * RadioError:NONE
1156 * RadioError:RADIO_NOT_AVAILABLE
1157 * RadioError:INVALID_ARGUMENTS
1158 * RadioError:MODEM_ERR
1159 * RadioError:INTERNAL_ERR
1160 * RadioError:NO_MEMORY
sqian0c6a13a2017-04-27 15:00:36 -07001161 * RadioError:SYSTEM_ERR
1162 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001163 */
1164 oneway setTTYModeResponse(RadioResponseInfo info);
1165
Andreas Huber3e4acb82017-03-28 14:40:58 -07001166 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001167 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001168 * @param mode TtyMode
1169 *
1170 * Valid errors returned:
1171 * RadioError:NONE
1172 * RadioError:RADIO_NOT_AVAILABLE
1173 * RadioError:INVALID_ARGUMENTS
1174 * RadioError:MODEM_ERR
1175 * RadioError:INTERNAL_ERR
1176 * RadioError:NO_MEMORY
sqian0c6a13a2017-04-27 15:00:36 -07001177 * RadioError:SYSTEM_ERR
1178 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001179 */
1180 oneway getTTYModeResponse(RadioResponseInfo info, TtyMode mode);
1181
Andreas Huber3e4acb82017-03-28 14:40:58 -07001182 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001183 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001184 *
1185 * Valid errors returned:
1186 * RadioError:NONE
1187 * RadioError:RADIO_NOT_AVAILABLE
1188 * RadioError:INVALID_ARGUMENTS
1189 * RadioError:MODEM_ERR
1190 * RadioError:INTERNAL_ERR
1191 * RadioError:NO_MEMORY
sqian0c6a13a2017-04-27 15:00:36 -07001192 * RadioError:SYSTEM_ERR
1193 * RadioError:REQUEST_NOT_SUPPORTED
1194 * RadioError:INVALID_CALL_ID
Sanket Padawed52335c2016-11-03 16:46:32 -07001195 */
1196 oneway setPreferredVoicePrivacyResponse(RadioResponseInfo info);
1197
Andreas Huber3e4acb82017-03-28 14:40:58 -07001198 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001199 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001200 * @param enable false for Standard Privacy Mode (Public Long Code Mask)
1201 * true for Enhanced Privacy Mode (Private Long Code Mask)
1202 *
1203 * Valid errors:
1204 * RadioError:NONE
1205 * RadioError:RADIO_NOT_AVAILABLE
1206 * RadioError:INVALID_ARGUMENTS
1207 * RadioError:MODEM_ERR
1208 * RadioError:INTERNAL_ERR
1209 * RadioError:NO_MEMORY
sqian0c6a13a2017-04-27 15:00:36 -07001210 * RadioError:SYSTEM_ERR
1211 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001212 */
1213 oneway getPreferredVoicePrivacyResponse(RadioResponseInfo info, bool enable);
1214
Andreas Huber3e4acb82017-03-28 14:40:58 -07001215 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07001216 * Response callback for IRadio.sendCDMAFeatureCode()
1217 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001218 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001219 *
1220 * Valid errors returned:
1221 * RadioError:NONE
1222 * RadioError:RADIO_NOT_AVAILABLE
1223 * RadioError:INVALID_ARGUMENTS
1224 * RadioError:NO_MEMORY
1225 * RadioError:INTERNAL_ERR
1226 * RadioError:SYSTEM_ERR
1227 * RadioError:MODEM_ERR
1228 * RadioError:INVALID_CALL_ID
1229 * RadioError:INVALID_STATE
sqian0c6a13a2017-04-27 15:00:36 -07001230 * RadioError:REQUEST_NOT_SUPPORTED
1231 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001232 */
1233 oneway sendCDMAFeatureCodeResponse(RadioResponseInfo info);
1234
Andreas Huber3e4acb82017-03-28 14:40:58 -07001235 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001236 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001237 *
1238 * Valid errors returned:
1239 * RadioError:NONE
1240 * RadioError:RADIO_NOT_AVAILABLE
1241 * RadioError:INVALID_ARGUMENTS
1242 * RadioError:NO_MEMORY
1243 * RadioError:INTERNAL_ERR
1244 * RadioError:SYSTEM_ERR
1245 * RadioError:MODEM_ERR
1246 * RadioError:INVALID_CALL_ID
1247 * RadioError:INVALID_STATE
sqian0c6a13a2017-04-27 15:00:36 -07001248 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001249 */
1250 oneway sendBurstDtmfResponse(RadioResponseInfo info);
1251
Andreas Huber3e4acb82017-03-28 14:40:58 -07001252 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001253 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001254 * @param sms Sms result struct as defined by SendSmsResult in types.hal
1255 *
1256 * Valid errors returned:
1257 * RadioError:NONE
1258 * RadioError:RADIO_NOT_AVAILABLE
1259 * RadioError:INVALID_ARGUMENTS
1260 * RadioError:SMS_SEND_FAIL_RETRY
1261 * RadioError:NETWORK_REJECT
1262 * RadioError:INVALID_STATE
1263 * RadioError:NO_MEMORY
1264 * RadioError:REQUEST_RATE_LIMITED
1265 * RadioError:INVALID_SMS_FORMAT
1266 * RadioError:SYSTEM_ERR
1267 * RadioError:FDN_CHECK_FAILURE
1268 * RadioError:MODEM_ERR
1269 * RadioError:NETWORK_ERR
1270 * RadioError:ENCODING_ERR
1271 * RadioError:INVALID_SMSC_ADDRESS
1272 * RadioError:MODE_NOT_SUPPORTED
sqian0c6a13a2017-04-27 15:00:36 -07001273 * RadioError:INTERNAL_ERR
1274 * RadioError:SYSTEM_ERR
1275 * RadioError:REQUEST_NOT_SUPPORTED
1276 * RadioError:OPERATION_NOT_ALLOWED
1277 * RadioError:ENCODING_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001278 */
1279 oneway sendCdmaSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1280
Andreas Huber3e4acb82017-03-28 14:40:58 -07001281 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001282 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001283 *
1284 * Valid errors returned:
1285 * RadioError:NONE
1286 * RadioError:RADIO_NOT_AVAILABLE
1287 * RadioError:INVALID_ARGUMENTS
1288 * RadioError:NO_SMS_TO_ACK
1289 * RadioError:INVALID_STATE
1290 * RadioError:NO_MEMORY
1291 * RadioError:REQUEST_RATE_LIMITED
1292 * RadioError:SYSTEM_ERR
1293 * RadioError:MODEM_ERR
1294 * RadioError:MODE_NOT_SUPPORTED
1295 * RadioError:NETWORK_NOT_READY
1296 * RadioError:INVALID_MODEM_STATE
sqian0c6a13a2017-04-27 15:00:36 -07001297 * RadioError:INTERNAL_ERR
1298 * RadioError:REQUEST_NOT_SUPPORTED
1299 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001300 */
1301 oneway acknowledgeLastIncomingCdmaSmsResponse(RadioResponseInfo info);
1302
Andreas Huber3e4acb82017-03-28 14:40:58 -07001303 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001304 * @param info Response info struct containing response type, serial no. and error
1305 * @param configs Vector of GSM/WCDMA Cell broadcast configs
Sanket Padawed52335c2016-11-03 16:46:32 -07001306 *
1307 * Valid errors returned:
1308 * RadioError:NONE
1309 * RadioError:RADIO_NOT_AVAILABLE
1310 * RadioError:INVALID_ARGUMENTS
1311 * RadioError:INVALID_STATE
1312 * RadioError:NO_MEMORY
1313 * RadioError:REQUEST_RATE_LIMITED
1314 * RadioError:SYSTEM_ERR
1315 * RadioError:MODEM_ERR
1316 * RadioError:NO_RESOURCES
sqian0c6a13a2017-04-27 15:00:36 -07001317 * RadioError:INTERNAL_ERR
1318 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001319 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001320 oneway getGsmBroadcastConfigResponse(RadioResponseInfo info,
1321 vec<GsmBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001322
Andreas Huber3e4acb82017-03-28 14:40:58 -07001323 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001324 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001325 *
1326 * Valid errors returned:
1327 * RadioError:NONE
1328 * RadioError:RADIO_NOT_AVAILABLE
1329 * RadioError:INVALID_ARGUMENTS
1330 * RadioError:INVALID_STATE
1331 * RadioError:NO_MEMORY
1332 * RadioError:REQUEST_RATE_LIMITED
1333 * RadioError:SYSTEM_ERR
1334 * RadioError:MODEM_ERR
sqian0c6a13a2017-04-27 15:00:36 -07001335 * RadioError:INTERNAL_ERR
1336 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001337 */
1338 oneway setGsmBroadcastConfigResponse(RadioResponseInfo info);
1339
Andreas Huber3e4acb82017-03-28 14:40:58 -07001340 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001341 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001342 *
1343 * Valid errors returned:
1344 * RadioError:NONE
1345 * RadioError:RADIO_NOT_AVAILABLE
1346 * RadioError:INVALID_ARGUMENTS
1347 * RadioError:INVALID_STATE
1348 * RadioError:NO_MEMORY
1349 * RadioError:REQUEST_RATE_LIMITED
1350 * RadioError:SYSTEM_ERR
1351 * RadioError:MODEM_ERR
sqian0c6a13a2017-04-27 15:00:36 -07001352 * RadioError:INTERNAL_ERR
1353 * RadioError:REQUEST_NOT_SUPPORTED
1354 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001355 */
1356 oneway setGsmBroadcastActivationResponse(RadioResponseInfo info);
1357
Andreas Huber3e4acb82017-03-28 14:40:58 -07001358 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001359 * @param info Response info struct containing response type, serial no. and error
1360 * @param configs Vector of CDMA Broadcast SMS configs.
Sanket Padawed52335c2016-11-03 16:46:32 -07001361 *
1362 * Valid errors returned:
1363 * RadioError:NONE
1364 * RadioError:RADIO_NOT_AVAILABLE
1365 * RadioError:INVALID_ARGUMENTS
1366 * RadioError:INVALID_STATE
1367 * RadioError:NO_MEMORY
1368 * RadioError:REQUEST_RATE_LIMITED
1369 * RadioError:SYSTEM_ERR
1370 * RadioError:MODEM_ERR
1371 * RadioError:NO_RESOURCES
sqian0c6a13a2017-04-27 15:00:36 -07001372 * RadioError:INTERNAL_ERR
1373 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001374 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001375 oneway getCdmaBroadcastConfigResponse(RadioResponseInfo info,
1376 vec<CdmaBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001377
Andreas Huber3e4acb82017-03-28 14:40:58 -07001378 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001379 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001380 *
1381 * Valid errors returned:
1382 * RadioError:NONE
1383 * RadioError:RADIO_NOT_AVAILABLE
1384 * RadioError:INVALID_ARGUMENTS
1385 * RadioError:INVALID_STATE
1386 * RadioError:NO_MEMORY
1387 * RadioError:REQUEST_RATE_LIMITED
1388 * RadioError:SYSTEM_ERR
1389 * RadioError:MODEM_ERR
sqian0c6a13a2017-04-27 15:00:36 -07001390 * RadioError:INTERNAL_ERR
1391 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001392 */
1393 oneway setCdmaBroadcastConfigResponse(RadioResponseInfo info);
1394
Andreas Huber3e4acb82017-03-28 14:40:58 -07001395 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001396 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001397 *
1398 * Valid errors returned:
1399 * RadioError:NONE
1400 * RadioError:RADIO_NOT_AVAILABLE
1401 * RadioError:INVALID_ARGUMENTS
1402 * RadioError:INVALID_STATE
1403 * RadioError:NO_MEMORY
1404 * RadioError:REQUEST_RATE_LIMITED
1405 * RadioError:SYSTEM_ERR
1406 * RadioError:MODEM_ERR
sqian0c6a13a2017-04-27 15:00:36 -07001407 * RadioError:INTERNAL_ERR
1408 * RadioError:REQUEST_NOT_SUPPORTED
1409 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001410 */
1411 oneway setCdmaBroadcastActivationResponse(RadioResponseInfo info);
1412
Andreas Huber3e4acb82017-03-28 14:40:58 -07001413 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001414 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001415 * @param mdn MDN if CDMA subscription is available
1416 * @param hSid is a comma separated list of H_SID (Home SID) if
1417 * CDMA subscription is available, in decimal format
1418 * @param hNid is a comma separated list of H_NID (Home NID) if
1419 * CDMA subscription is available, in decimal format
1420 * @param min MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
1421 * @param prl PRL version if CDMA subscription is available
1422 *
1423 * Valid errors returned:
1424 * RadioError:NONE
1425 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001426 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001427 */
1428 oneway getCDMASubscriptionResponse(RadioResponseInfo info, string mdn, string hSid,
1429 string hNid, string min, string prl);
1430
Andreas Huber3e4acb82017-03-28 14:40:58 -07001431 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001432 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001433 * @param index record index where the cmda sms message is stored
1434 *
1435 * Valid errors returned:
1436 * RadioError:NONE
1437 * RadioError:RADIO_NOT_AVAILABLE
1438 * RadioError:INVALID_ARGUMENTS
1439 * RadioError:INVALID_SMS_FORMAT
1440 * RadioError:SIM_FULL
1441 * RadioError:INTERNAL_ERR
1442 * RadioError:MODEM_ERR
1443 * RadioError:ENCODING_ERR
1444 * RadioError:NO_MEMORY
1445 * RadioError:NO_RESOURCES
1446 * RadioError:INVALID_MODEM_STATE
1447 * RadioError:MODE_NOT_SUPPORTED
1448 * RadioError:INVALID_SMSC_ADDRESS
sqian0c6a13a2017-04-27 15:00:36 -07001449 * RadioError:SYSTEM_ERR
1450 * RadioError:REQUEST_NOT_SUPPORTED
1451 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001452 */
1453 oneway writeSmsToRuimResponse(RadioResponseInfo info, uint32_t index);
1454
Andreas Huber3e4acb82017-03-28 14:40:58 -07001455 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001456 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001457 *
1458 * Valid errors returned:
1459 * RadioError:NONE
1460 * RadioError:RADIO_NOT_AVAILABLE
1461 * RadioError:INVALID_ARGUMENTS
1462 * RadioError:NO_MEMORY
1463 * RadioError:REQUEST_RATE_LIMITED
1464 * RadioError:SYSTEM_ERR
1465 * RadioError:MODEM_ERR
1466 * RadioError:NO_SUCH_ENTRY
sqian0c6a13a2017-04-27 15:00:36 -07001467 * RadioError:INTERNAL_ERR
1468 * RadioError:REQUEST_NOT_SUPPORTED
1469 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001470 */
1471 oneway deleteSmsOnRuimResponse(RadioResponseInfo info);
1472
Andreas Huber3e4acb82017-03-28 14:40:58 -07001473 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001474 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001475 * @param imei IMEI if GSM subscription is available
1476 * @param imeisv IMEISV if GSM subscription is available
1477 * @param esn ESN if CDMA subscription is available
1478 * @param meid MEID if CDMA subscription is available
1479 *
1480 * Valid errors returned:
1481 * RadioError:NONE
1482 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001483 *
1484 * If a empty string value is returned for any of the device id, it means that there was error
1485 * accessing the device.
1486 *
1487 */
1488 oneway getDeviceIdentityResponse(RadioResponseInfo info, string imei, string imeisv,
1489 string esn, string meid);
1490
Andreas Huber3e4acb82017-03-28 14:40:58 -07001491 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001492 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001493 *
1494 * Valid errors returned:
1495 * RadioError:NONE
1496 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001497 * RadioError:OPERATION_NO_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001498 */
1499 oneway exitEmergencyCallbackModeResponse(RadioResponseInfo info);
1500
Andreas Huber3e4acb82017-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 smsc Short Message Service Center address on the device
1504 *
1505 * Valid errors returned:
1506 * RadioError:NONE
1507 * RadioError:RADIO_NOT_AVAILABLE
1508 * RadioError:INVALID_ARGUMENTS
1509 * RadioError:INTERNAL_ERR
1510 * RadioError:NO_MEMORY
1511 * RadioError:SYSTEM_ERR
1512 * RadioError:REQUEST_RATE_LIMITED
1513 * RadioError:MODEM_ERR
1514 * RadioError:INVALID_MODEM_STATE
1515 * RadioError:NOT_PROVISIONED
sqian0c6a13a2017-04-27 15:00:36 -07001516 * RadioError:REQUEST_NOT_SUPPORTED
1517 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001518 */
1519 oneway getSmscAddressResponse(RadioResponseInfo info, string smsc);
1520
Andreas Huber3e4acb82017-03-28 14:40:58 -07001521 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001522 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001523 *
1524 * Valid errors returned:
1525 * RadioError:NONE
1526 * RadioError:RADIO_NOT_AVAILABLE
1527 * RadioError:INVALID_ARGUMENTS
1528 * RadioError:INVALID_SMS_FORMAT
1529 * RadioError:NO_MEMORY
1530 * RadioError:SYSTEM_ERR
1531 * RadioError:REQUEST_RATE_LIMITED
1532 * RadioError:MODEM_ERR
1533 * RadioError:NO_RESOURCES
sqian0c6a13a2017-04-27 15:00:36 -07001534 * RadioError:INTERNAL_ERR
1535 * RadioError:REQUEST_NOT_SUPPORTED
1536 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001537 */
1538 oneway setSmscAddressResponse(RadioResponseInfo info);
1539
Andreas Huber3e4acb82017-03-28 14:40:58 -07001540 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001541 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001542 *
1543 * Valid errors returned:
1544 * RadioError:NONE
1545 * RadioError:RADIO_NOT_AVAILABLE
1546 * RadioError:INVALID_ARGUMENTS
1547 * RadioError:NO_MEMORY
1548 * RadioError:SYSTEM_ERR
1549 * RadioError:REQUEST_RATE_LIMITED
1550 * RadioError:MODEM_ERR
1551 * RadioError:INVALID_STATE
sqian0c6a13a2017-04-27 15:00:36 -07001552 * RadioError:INTERNAL_ERR
1553 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001554 */
1555 oneway reportSmsMemoryStatusResponse(RadioResponseInfo info);
1556
Andreas Huber3e4acb82017-03-28 14:40:58 -07001557 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001558 * @param info Response info struct containing response type, serial no. and error
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001559 *
1560 * Valid errors returned:
1561 * RadioError:NONE
1562 * RadioError:RADIO_NOT_AVAILABLE
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001563 */
1564 oneway reportStkServiceIsRunningResponse(RadioResponseInfo info);
1565
Andreas Huber3e4acb82017-03-28 14:40:58 -07001566 /**
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001567 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001568 * @param source CDMA subscription source
1569 *
1570 * Valid errors returned:
1571 * RadioError:NONE
1572 * RadioError:RADIO_NOT_AVAILABLE
1573 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001574 */
1575 oneway getCdmaSubscriptionSourceResponse(RadioResponseInfo info, CdmaSubscriptionSource source);
1576
Andreas Huber3e4acb82017-03-28 14:40:58 -07001577 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001578 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001579 * @param response response string of the challenge/response algo for ISIM auth in base64 format
1580 *
1581 * Valid errors returned:
1582 * RadioError:NONE
1583 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001584 */
1585 oneway requestIsimAuthenticationResponse(RadioResponseInfo info, string response);
1586
Andreas Huber3e4acb82017-03-28 14:40:58 -07001587 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001588 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001589 *
1590 * Valid errors returned:
1591 * RadioError:NONE
1592 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001593 */
1594 oneway acknowledgeIncomingGsmSmsWithPduResponse(RadioResponseInfo info);
1595
Andreas Huber3e4acb82017-03-28 14:40:58 -07001596 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001597 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001598 * @param iccIo IccIoResult as defined in types.hal corresponding to ICC IO response
1599 *
1600 * Valid errors returned:
1601 * RadioError:NONE
1602 * RadioError:RADIO_NOT_AVAILABLE
1603 * RadioError:SIM_BUSY
1604 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001605 */
1606 oneway sendEnvelopeWithStatusResponse(RadioResponseInfo info, IccIoResult iccIo);
1607
Andreas Huber3e4acb82017-03-28 14:40:58 -07001608 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001609 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001610 * @param rat Current voice RAT
1611 *
1612 * Valid errors returned:
1613 * RadioError:NONE
1614 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001615 */
1616 oneway getVoiceRadioTechnologyResponse(RadioResponseInfo info, RadioTechnology rat);
1617
Andreas Huber3e4acb82017-03-28 14:40:58 -07001618 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001619 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001620 * @param cellInfo List of current cell information known to radio
1621 *
1622 * Valid errors returned:
1623 * RadioError:NONE
1624 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001625 */
1626 oneway getCellInfoListResponse(RadioResponseInfo info, vec<CellInfo> cellInfo);
1627
Andreas Huber3e4acb82017-03-28 14:40:58 -07001628 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001629 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001630 *
1631 * Valid errors returned:
1632 * RadioError:NONE
1633 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001634 */
1635 oneway setCellInfoListRateResponse(RadioResponseInfo info);
1636
Andreas Huber3e4acb82017-03-28 14:40:58 -07001637 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001638 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001639 *
1640 * Valid errors returned:
1641 * RadioError:NONE
1642 * RadioError:RADIO_NOT_AVAILABLE
1643 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001644 */
1645 oneway setInitialAttachApnResponse(RadioResponseInfo info);
1646
Andreas Huber3e4acb82017-03-28 14:40:58 -07001647 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001648 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001649 * @param isRegistered false = not registered, true = registered
1650 * @param ratFamily RadioTechnologyFamily as defined in types.hal. This value is valid only if
1651 * isRegistered is true.
1652 *
1653 * Valid errors returned:
1654 * RadioError:NONE
1655 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001656 */
1657 oneway getImsRegistrationStateResponse(RadioResponseInfo info, bool isRegistered,
1658 RadioTechnologyFamily ratFamily);
1659
Andreas Huber3e4acb82017-03-28 14:40:58 -07001660 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001661 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001662 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
1663 *
1664 * Valid errors returned:
1665 * RadioError:NONE
1666 * RadioError:RADIO_NOT_AVAILABLE
1667 * RadioError:SMS_SEND_FAIL_RETRY
1668 * RadioError:FDN_CHECK_FAILURE
1669 * RadioError:NETWORK_REJECT
1670 * RadioError:INVALID_ARGUMENTS
1671 * RadioError:INVALID_STATE
1672 * RadioError:NO_MEMORY
1673 * RadioError:INVALID_SMS_FORMAT
1674 * RadioError:SYSTEM_ERR
1675 * RadioError:REQUEST_RATE_LIMITED
1676 * RadioError:MODEM_ERR
1677 * RadioError:NETWORK_ERR
1678 * RadioError:ENCODING_ERR
1679 * RadioError:MODE_NOT_SUPPORTED
sqian0c6a13a2017-04-27 15:00:36 -07001680 * RadioError:INTERNAL_ERR
1681 * RadioError:REQUEST_NOT_SUPPORTED
1682 * RadioError:NETWORK_NOT_READY
Sanket Padawed52335c2016-11-03 16:46:32 -07001683 */
1684 oneway sendImsSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1685
Andreas Huber3e4acb82017-03-28 14:40:58 -07001686 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001687 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001688 * @param result IccIoResult as defined in types.hal
1689 *
1690 * Valid errors returned:
1691 * RadioError:NONE
1692 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001693 */
1694 oneway iccTransmitApduBasicChannelResponse(RadioResponseInfo info, IccIoResult result);
1695
Andreas Huber3e4acb82017-03-28 14:40:58 -07001696 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001697 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001698 * @param channelId session id of the logical channel.
1699 * @param selectResponse Contains the select response for the open channel command with one
1700 * byte per integer
1701 *
1702 * Valid errors returned:
1703 * RadioError:NONE
1704 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001705 * RadioError:MISSING_RESOURCE
1706 * RadioError:NO_SUCH_ELEMENT
1707 */
1708 oneway iccOpenLogicalChannelResponse(RadioResponseInfo info, int32_t channelId,
1709 vec<int8_t> selectResponse);
1710
Andreas Huber3e4acb82017-03-28 14:40:58 -07001711 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001712 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001713 *
1714 * Valid errors returned:
1715 * RadioError:NONE
1716 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001717 */
1718 oneway iccCloseLogicalChannelResponse(RadioResponseInfo info);
1719
Andreas Huber3e4acb82017-03-28 14:40:58 -07001720 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001721 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001722 * @param result IccIoResult as defined in types.hal
1723 *
1724 * Valid errors returned:
1725 * RadioError:NONE
1726 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001727 */
1728 oneway iccTransmitApduLogicalChannelResponse(RadioResponseInfo info, IccIoResult result);
1729
Andreas Huber3e4acb82017-03-28 14:40:58 -07001730 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001731 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001732 * @param result string containing the contents of the NV item
1733 *
1734 * Valid errors returned:
1735 * RadioError:NONE
1736 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001737 */
1738 oneway nvReadItemResponse(RadioResponseInfo info, string result);
1739
Andreas Huber3e4acb82017-03-28 14:40:58 -07001740 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001741 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001742 *
1743 * Valid errors returned:
1744 * RadioError:NONE
1745 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001746 */
1747 oneway nvWriteItemResponse(RadioResponseInfo info);
1748
Andreas Huber3e4acb82017-03-28 14:40:58 -07001749 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001750 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001751 *
1752 * Valid errors returned:
1753 * RadioError:NONE
1754 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001755 */
1756 oneway nvWriteCdmaPrlResponse(RadioResponseInfo info);
1757
Andreas Huber3e4acb82017-03-28 14:40:58 -07001758 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001759 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001760 *
1761 * Valid errors returned:
1762 * RadioError:NONE
1763 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001764 */
1765 oneway nvResetConfigResponse(RadioResponseInfo info);
1766
Andreas Huber3e4acb82017-03-28 14:40:58 -07001767 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001768 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001769 *
1770 * Valid errors returned:
1771 * RadioError:NONE
1772 * RadioError:RADIO_NOT_AVAILABLE
1773 * RadioError:SUBSCRIPTION_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001774 */
1775 oneway setUiccSubscriptionResponse(RadioResponseInfo info);
1776
Andreas Huber3e4acb82017-03-28 14:40:58 -07001777 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001778 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001779 *
1780 * Valid errors returned:
1781 * RadioError:NONE
1782 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001783 */
1784 oneway setDataAllowedResponse(RadioResponseInfo info);
1785
Andreas Huber3e4acb82017-03-28 14:40:58 -07001786 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001787 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001788 * @param config Array of HardwareConfig of the radio.
1789 *
1790 * Valid errors returned:
1791 * RadioError:NONE
1792 * RadioError:RADIO_NOT_AVAILABLE
1793 */
1794 oneway getHardwareConfigResponse(RadioResponseInfo info, vec<HardwareConfig> config);
1795
Andreas Huber3e4acb82017-03-28 14:40:58 -07001796 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001797 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001798 * @param result IccIoResult as defined in types.hal
1799 *
1800 * Valid errors returned:
1801 * RadioError:NONE
1802 * RadioError:RADIO_NOT_AVAILABLE
1803 */
1804 oneway requestIccSimAuthenticationResponse(RadioResponseInfo info, IccIoResult result);
1805
Andreas Huber3e4acb82017-03-28 14:40:58 -07001806 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001807 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001808 *
1809 * Valid errors returned:
1810 * RadioError:NONE
1811 * RadioError:RADIO_NOT_AVAILABLE
1812 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1813 */
1814 oneway setDataProfileResponse(RadioResponseInfo info);
1815
Andreas Huber3e4acb82017-03-28 14:40:58 -07001816 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001817 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001818 *
1819 * Valid errors returned:
1820 * RadioError:NONE
1821 * RadioError:RADIO_NOT_AVAILABLE
1822 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001823 */
1824 oneway requestShutdownResponse(RadioResponseInfo info);
1825
Andreas Huber3e4acb82017-03-28 14:40:58 -07001826 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001827 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001828 * @param rc Radio capability as defined by RadioCapability in types.hal
1829 *
1830 * Valid errors returned:
1831 * RadioError:NONE
1832 * RadioError:RADIO_NOT_AVAILABLE
1833 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001834 */
1835 oneway getRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1836
Andreas Huber3e4acb82017-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 * @param rc Radio capability as defined by RadioCapability in types.hal used to
1840 * feedback return status
1841 *
1842 * Valid errors returned:
1843 * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds.
1844 * RadioError:RADIO_NOT_AVAILABLE
1845 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001846 */
1847 oneway setRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1848
Andreas Huber3e4acb82017-03-28 14:40:58 -07001849 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001850 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001851 * @param statusInfo LceStatusInfo indicating LCE status
1852 *
1853 * Valid errors returned:
1854 * RadioError:NONE
1855 * RadioError:RADIO_NOT_AVAILABLE
1856 * RadioError:LCE_NOT_SUPPORTED
1857 */
1858 oneway startLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1859
Andreas Huber3e4acb82017-03-28 14:40:58 -07001860 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001861 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001862 * @param statusInfo LceStatusInfo indicating LCE status
1863 *
1864 * Valid errors returned:
1865 * RadioError:NONE
1866 * RadioError:RADIO_NOT_AVAILABLE
1867 * RadioError:LCE_NOT_SUPPORTED
1868 */
1869 oneway stopLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1870
Andreas Huber3e4acb82017-03-28 14:40:58 -07001871 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001872 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001873 * @param lceInfo LceDataInfo indicating LCE data as defined in types.hal
1874 *
1875 * Valid errors returned:
1876 * RadioError:NONE
1877 * RadioError:RADIO_NOT_AVAILABLE
1878 * RadioError:LCE_NOT_SUPPORTED
1879 */
1880 oneway pullLceDataResponse(RadioResponseInfo info, LceDataInfo lceInfo);
1881
Andreas Huber3e4acb82017-03-28 14:40:58 -07001882 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001883 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001884 * @param activityInfo modem activity information
1885 *
1886 * Valid errors returned:
1887 * RadioError:NONE
1888 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001889 */
1890 oneway getModemActivityInfoResponse(RadioResponseInfo info, ActivityStatsInfo activityInfo);
1891
Andreas Huber3e4acb82017-03-28 14:40:58 -07001892 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001893 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001894 * @param numAllowed number of allowed carriers which have been set correctly.
1895 * On success, it must match the length of list Carriers->allowedCarriers.
1896 * if Length of allowed carriers list is 0, numAllowed = 0.
1897 *
1898 * Valid errors returned:
1899 * RadioError:NONE
1900 * RadioError:RADIO_NOT_AVAILABLE
1901 * RadioError:INVALID_ARGUMENTS
1902 * RadioError:REQUEST_NOT_SUPPORTED
1903 */
1904 oneway setAllowedCarriersResponse(RadioResponseInfo info, int32_t numAllowed);
1905
Andreas Huber3e4acb82017-03-28 14:40:58 -07001906 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07001907 * Expected modem behavior:
1908 * Return list of allowed carriers, and if all carriers are allowed.
1909 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001910 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001911 * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct.
1912 * If false, consider "carriers" struct
1913 * @param carriers Carrier restriction information.
1914 *
1915 * Valid errors returned:
1916 * RadioError:NONE
1917 * RadioError:RADIO_NOT_AVAILABLE
1918 * RadioError:REQUEST_NOT_SUPPORTED
1919 */
1920 oneway getAllowedCarriersResponse(RadioResponseInfo info, bool allAllowed,
1921 CarrierRestrictions carriers);
Sanket Padawe1a7eae72016-12-07 14:40:03 -08001922
Andreas Huber3e4acb82017-03-28 14:40:58 -07001923 /**
Jack Yued7ef812017-01-24 11:56:52 -08001924 * @param info Response info struct containing response type, serial no. and error
1925 *
1926 * Valid errors returned:
1927 * RadioError:NONE
1928 * RadioError:RADIO_NOT_AVAILABLE
1929 */
1930 oneway sendDeviceStateResponse(RadioResponseInfo info);
1931
Andreas Huber3e4acb82017-03-28 14:40:58 -07001932 /**
Jack Yued7ef812017-01-24 11:56:52 -08001933 * @param info Response info struct containing response type, serial no. and error
1934 *
1935 * Valid errors returned:
1936 * RadioError:NONE
1937 * RadioError:INVALID_ARGUMENTS
1938 * RadioError:RADIO_NOT_AVAILABLE
1939 */
1940 oneway setIndicationFilterResponse(RadioResponseInfo info);
1941
Andreas Huber3e4acb82017-03-28 14:40:58 -07001942 /**
Jack Yua2118692017-02-15 15:31:34 -08001943 * @param info Response info struct containing response type, serial no. and error
1944 *
1945 * Valid errors returned:
1946 * RadioError:NONE
1947 * RadioError:RADIO_NOT_AVAILABLE
1948 * RadioError:REQUEST_NOT_SUPPORTED
Jack Yua2118692017-02-15 15:31:34 -08001949 * RadioError:INVALID_ARGUMENTS
1950 */
1951 oneway setSimCardPowerResponse(RadioResponseInfo info);
1952
Andreas Huber3e4acb82017-03-28 14:40:58 -07001953 /**
Jack Yued7ef812017-01-24 11:56:52 -08001954 * Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
Sanket Padawe1a7eae72016-12-07 14:40:03 -08001955 * radio request which take long time to respond.
1956 * For more details, refer https://source.android.com/devices/tech/connect/ril.html
1957 *
1958 * @param serial Serial no. of the request whose acknowledgement is sent.
1959 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001960 oneway acknowledgeRequest(int32_t serial);
Sanket Padawe76372492016-10-27 13:20:49 -07001961};