blob: 2ba210b55873949deb25d336a875c113e4e30bfe [file] [log] [blame]
Sanket Padawe76372492016-10-27 13:20:49 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.radio@1.0;
18
Andreas Huber675ae492017-03-28 14:40:58 -070019/**
Sanket Padawe76372492016-10-27 13:20:49 -070020 * Interface declaring response functions to solicited radio requests.
21 * Response functions defined in this interface are as per following convention:
22 * <xyz>Response is response to IRadio.<xyz>
23 */
24interface IRadioResponse {
Andreas Huber675ae492017-03-28 14:40:58 -070025 /**
Sanket Padawe865834e2016-12-28 16:04:10 -080026 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -070027 * @param cardStatus ICC card status as defined by CardStatus in types.hal
28 *
29 * Valid errors returned:
30 * RadioError:NONE
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 Huber675ae492017-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 Huber675ae492017-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 Huber675ae492017-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 Huber675ae492017-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 Huber675ae492017-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 Huber675ae492017-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 Huber675ae492017-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 Huber675ae492017-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)
117 * RadioError:GENERIC_FAILURE (request will be made again in a few hundred msec)
118 * RadioError:NO_MEMORY
119 */
120 oneway getCurrentCallsResponse(RadioResponseInfo info, vec<Call> calls);
121
Andreas Huber675ae492017-03-28 14:40:58 -0700122 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800123 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700124 *
125 * Valid errors returned:
126 * RadioError:NONE
127 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700128 * RadioError:DIAL_MODIFIED_TO_USSD
129 * RadioError:DIAL_MODIFIED_TO_SS
130 * RadioError:DIAL_MODIFIED_TO_DIAL
131 * RadioError:INVALID_ARGUMENTS
132 * RadioError:NO_MEMORY
133 * RadioError:INVALID_STATE
134 * RadioError:NO_RESOURCES
135 * RadioError:INTERNAL_ERR
136 * RadioError:FDN_CHECK_FAILURE
137 * RadioError:MODEM_ERR
138 * RadioError:NO_SUBSCRIPTION
139 * RadioError:NO_NETWORK_FOUND
140 * RadioError:INVALID_CALL_ID
141 * RadioError:DEVICE_IN_USE
142 * RadioError:MODE_NOT_SUPPORTED
143 * RadioError:ABORTED
144 */
145 oneway dialResponse(RadioResponseInfo info);
146
Andreas Huber675ae492017-03-28 14:40:58 -0700147 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800148 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700149 * @param imsi String containing the IMSI
150 *
151 * Valid errors returned:
152 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700153 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700154 */
155 oneway getIMSIForAppResponse(RadioResponseInfo info, string imsi);
156
Andreas Huber675ae492017-03-28 14:40:58 -0700157 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800158 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700159 *
160 * Valid errors returned:
161 * RadioError:NONE
162 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
163 * RadioError:INVALID_ARGUMENTS
164 * RadioError:NO_MEMORY
165 * RadioError:INVALID_STATE
166 * RadioError:MODEM_ERR
167 * RadioError:INTERNAL_ERR
168 * RadioError:INVALID_CALL_ID
Sanket Padawe76372492016-10-27 13:20:49 -0700169 */
170 oneway hangupConnectionResponse(RadioResponseInfo info);
171
Andreas Huber675ae492017-03-28 14:40:58 -0700172 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800173 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700174 *
175 * Valid errors returned:
176 * RadioError:NONE
177 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
178 * RadioError:INVALID_STATE
179 * RadioError:NO_MEMORY
180 * RadioError:MODEM_ERR
181 * RadioError:INTERNAL_ERR
182 * RadioError:INVALID_CALL_ID
183 * RadioError:NO_RESOURCES
184 * RadioError:OPERATION_NOT_ALLOWED
185 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700186 */
187 oneway hangupWaitingOrBackgroundResponse(RadioResponseInfo info);
188
Andreas Huber675ae492017-03-28 14:40:58 -0700189 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800190 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700191 *
192 * Valid errors returned:
193 * RadioError:NONE
194 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
195 * RadioError:INVALID_STATE
196 * RadioError:NO_MEMORY
197 * RadioError:MODEM_ERR
198 * RadioError:INTERNAL_ERR
199 * RadioError:INVALID_CALL_ID
200 * RadioError:NO_RESOURCES
201 * RadioError:OPERATION_NOT_ALLOWED
202 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700203 */
204 oneway hangupForegroundResumeBackgroundResponse(RadioResponseInfo info);
205
Andreas Huber675ae492017-03-28 14:40:58 -0700206 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800207 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700208 *
209 * Valid errors returned:
210 * RadioError:NONE
211 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
212 * RadioError:INVALID_STATE
213 * RadioError:NO_MEMORY
214 * RadioError:MODEM_ERR
215 * RadioError:INTERNAL_ERR
216 * RadioError:INVALID_STATE
217 * RadioError:INVALID_CALL_ID
218 * RadioError:OPERATION_NOT_ALLOWED
219 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700220 */
221 oneway switchWaitingOrHoldingAndActiveResponse(RadioResponseInfo info);
222
Andreas Huber675ae492017-03-28 14:40:58 -0700223 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800224 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700225 *
226 * Valid errors returned:
227 * RadioError:NONE
228 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
229 * RadioError:NO_MEMORY
230 * RadioError:MODEM_ERR
231 * RadioError:INTERNAL_ERR
232 * RadioError:INVALID_STATE
233 * RadioError:INVALID_CALL_ID
234 * RadioError:OPERATION_NOT_ALLOWED
235 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700236 */
237 oneway conferenceResponse(RadioResponseInfo info);
238
Andreas Huber675ae492017-03-28 14:40:58 -0700239 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800240 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700241 *
242 * Valid errors returned:
243 * RadioError:NONE
244 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
245 * RadioError:INVALID_STATE
246 * RadioError:NO_RESOURCES
247 * RadioError:NO_MEMORY
248 * RadioError:MODEM_ERR
249 * RadioError:INTERNAL_ERR
250 * RadioError:INVALID_CALL_ID
251 * RadioError:OPERATION_NOT_ALLOWED
252 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700253 */
254 oneway rejectCallResponse(RadioResponseInfo info);
255
Andreas Huber675ae492017-03-28 14:40:58 -0700256 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800257 * @param info Response info struct containing response type, serial no. and error
Jayachandran Ca03c0c62017-03-13 17:00:33 -0700258 * @param failCauseInfo Contains LastCallFailCause and vendor cause code.
Sanket Padawe76372492016-10-27 13:20:49 -0700259 *
Jayachandran Ca03c0c62017-03-13 17:00:33 -0700260 * The vendor cause code must be used for debugging purpose only.
261 * The implementation must return one of the values of LastCallFailCause
262 * as mentioned below
263 *
264 * GSM failure reasons codes for the cause codes defined in TS 24.008 Annex H
265 * where possible.
266 * CDMA failure reasons codes for the possible call failure scenarios
267 * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard.
268 * Any of the following reason codes if the call is failed or dropped due to reason
269 * mentioned with in the braces.
270 * LastCallFailCause:RADIO_OFF (Radio is OFF)
271 * LastCallFailCause:OUT_OF_SERVICE (No cell coverage)
272 * LastCallFailCause:NO_VALID_SIM (No valid SIM)
273 * LastCallFailCause:RADIO_INTERNAL_ERROR (Modem hit unexpected error scenario)
274 * LastCallFailCause:NETWORK_RESP_TIMEOUT (No response from network)
275 * LastCallFailCause:NETWORK_REJECT (Explicit network reject)
276 * LastCallFailCause:RADIO_ACCESS_FAILURE (RRC connection failure. Eg.RACH)
277 * LastCallFailCause:RADIO_LINK_FAILURE (Radio Link Failure)
278 * LastCallFailCause:RADIO_LINK_LOST (Radio link lost due to poor coverage)
279 * LastCallFailCause:RADIO_UPLINK_FAILURE (Radio uplink failure)
280 * LastCallFailCause:RADIO_SETUP_FAILURE (RRC connection setup failure)
281 * LastCallFailCause:RADIO_RELEASE_NORMAL (RRC connection release, normal)
282 * LastCallFailCause:RADIO_RELEASE_ABNORMAL (RRC connection release, abnormal)
283 * LastCallFailCause:ACCESS_CLASS_BLOCKED (Access class barring)
284 * LastCallFailCause:NETWORK_DETACH (Explicit network detach)
285 * OEM causes (LastCallFailCause:OEM_CAUSE_XX) must be used for debug purpose only
Sanket Padawe76372492016-10-27 13:20:49 -0700286 *
287 * If the implementation does not have access to the exact cause codes,
288 * then it must return one of the values listed in LastCallFailCause,
289 * as the UI layer needs to distinguish these cases for tone generation or
290 * error notification.
291 *
292 * Valid errors returned:
293 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700294 * RadioError:RADIO_NOT_AVAILABLE
295 * RadioError:NO_MEMORY
Sanket Padawe76372492016-10-27 13:20:49 -0700296 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800297 oneway getLastCallFailCauseResponse(RadioResponseInfo info,
298 LastCallFailCauseInfo failCauseinfo);
Sanket Padawe76372492016-10-27 13:20:49 -0700299
Andreas Huber675ae492017-03-28 14:40:58 -0700300 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800301 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700302 * @param sigStrength Current signal strength
303 *
304 * Valid errors returned:
305 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700306 * RadioError:RADIO_NOT_AVAILABLE
307 */
308 oneway getSignalStrengthResponse(RadioResponseInfo info, SignalStrength sigStrength);
309
Andreas Huber675ae492017-03-28 14:40:58 -0700310 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800311 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700312 * @param voiceRegResponse Current Voice registration response as defined by VoiceRegStateResult
313 * in types.hal
314 *
315 * Valid errors returned:
316 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700317 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700318 */
319 oneway getVoiceRegistrationStateResponse(RadioResponseInfo info,
320 VoiceRegStateResult voiceRegResponse);
321
Andreas Huber675ae492017-03-28 14:40:58 -0700322 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800323 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700324 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
325 * types.hal
326 *
327 * Valid errors returned:
328 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700329 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700330 */
331 oneway getDataRegistrationStateResponse(RadioResponseInfo info,
332 DataRegStateResult dataRegResponse);
333
Andreas Huber675ae492017-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 longName is long alpha ONS or EONS or empty string if unregistered
337 * @param shortName is short alpha ONS or EONS or empty string if unregistered
338 * @param numeric is 5 or 6 digit numeric code (MCC + MNC) or empty string if unregistered
339 *
340 * Valid errors returned:
341 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700342 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700343 */
344 oneway getOperatorResponse(RadioResponseInfo info, string longName, string shortName,
345 string numeric);
346
Andreas Huber675ae492017-03-28 14:40:58 -0700347 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800348 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700349 *
350 * Valid errors returned:
351 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700352 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700353 * RadioError:OPERATION_NOT_ALLOWED
354 */
355 oneway setRadioPowerResponse(RadioResponseInfo info);
356
Andreas Huber675ae492017-03-28 14:40:58 -0700357 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800358 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700359 *
360 * Valid errors returned:
361 * RadioError:NONE
362 * RadioError:RADIO_NOT_AVAILABLE
363 * RadioError:INVALID_ARGUMENTS
364 * RadioError:NO_RESOURCES
365 * RadioError:NO_MEMORY
366 * RadioError:MODEM_ERR
367 * RadioError:INVALID_CALL_ID
Sanket Padawe76372492016-10-27 13:20:49 -0700368 */
369 oneway sendDtmfResponse(RadioResponseInfo info);
370
Andreas Huber675ae492017-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 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
374 *
375 * Valid errors returned:
376 * RadioError:NONE
377 * RadioError:RADIO_NOT_AVAILABLE
378 * RadioError:SMS_SEND_FAIL_RETRY
379 * RadioError:NETWORK_REJECT
380 * RadioError:INVALID_STATE
381 * RadioError:INVALID_ARGUMENTS
382 * RadioError:NO_MEMORY
383 * RadioError:REQUEST_RATE_LIMITED
384 * RadioError:INVALID_SMS_FORMAT
385 * RadioError:SYSTEM_ERR
386 * RadioError:ENCODING_ERR
387 * RadioError:INVALID_SMSC_ADDRESS
388 * RadioError:MODEM_ERR
389 * RadioError:NETWORK_ERR
390 * RadioError:MODE_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700391 */
392 oneway sendSmsResponse(RadioResponseInfo info, SendSmsResult sms);
393
Andreas Huber675ae492017-03-28 14:40:58 -0700394 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800395 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700396 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
397 *
398 * Valid errors returned:
399 * RadioError:NONE
400 * RadioError:RADIO_NOT_AVAILABLE
401 * RadioError:SMS_SEND_FAIL_RETRY
402 * RadioError:NETWORK_REJECT
403 * RadioError:INVALID_STATE
404 * RadioError:INVALID_ARGUMENTS
405 * RadioError:NO_MEMORY
406 * RadioError:REQUEST_RATE_LIMITED
407 * RadioError:INVALID_SMS_FORMAT
408 * RadioError:SYSTEM_ERR
409 * RadioError:FDN_CHECK_FAILURE
410 * RadioError:ENCODING_ERR
411 * RadioError:INVALID_SMSC_ADDRESS
412 * RadioError:MODEM_ERR
413 * RadioError:NETWORK_ERR
414 * RadioError:MODE_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700415 */
416 oneway sendSMSExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
417
Andreas Huber675ae492017-03-28 14:40:58 -0700418 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800419 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700420 * @param dcResponse SetupDataCallResult defined in types.hal
421 *
422 * Valid errors returned:
423 * RadioError:NONE must be returned on both success and failure of setup with the
424 * DataCallResponse.status containing the actual status
425 * For all other errors the DataCallResponse is ignored.
Sanket Padawe76372492016-10-27 13:20:49 -0700426 * RadioError:RADIO_NOT_AVAILABLE
427 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
428 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
429 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700430 */
431 oneway setupDataCallResponse(RadioResponseInfo info, SetupDataCallResult dcResponse);
432
Andreas Huber675ae492017-03-28 14:40:58 -0700433 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800434 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700435 * @param iccIo ICC io operation response as defined by IccIoResult in types.hal
Sanket Padawe76372492016-10-27 13:20:49 -0700436 *
437 * Valid errors returned:
438 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700439 * RadioError:RADIO_NOT_AVAILABLE
440 * RadioError:SIM_PIN2
441 * RadioError:SIM_PUK2
Sanket Padawe76372492016-10-27 13:20:49 -0700442 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800443 oneway iccIOForAppResponse(RadioResponseInfo info, IccIoResult iccIo);
Sanket Padawe76372492016-10-27 13:20:49 -0700444
Andreas Huber675ae492017-03-28 14:40:58 -0700445 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800446 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700447 *
448 * Valid errors returned:
449 * RadioError:NONE
450 * RadioError:RADIO_NOT_AVAILABLE
451 * RadioError:FDN_CHECK_FAILURE
452 * RadioError:USSD_MODIFIED_TO_DIAL
453 * RadioError:USSD_MODIFIED_TO_SS
454 * RadioError:USSD_MODIFIED_TO_USSD
455 * RadioError:SIM_BUSY
456 * RadioError:OPERATION_NOT_ALLOWED
457 * RadioError:INVALID_ARGUMENTS
458 * RadioError:NO_MEMORY
459 * RadioError:MODEM_ERR
460 * RadioError:INTERNAL_ERR
461 * RadioError:ABORTED
462 * RadioError:SYSTEM_ERR
463 * RadioError:INVALID_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700464 */
465 oneway sendUssdResponse(RadioResponseInfo info);
466
Andreas Huber675ae492017-03-28 14:40:58 -0700467 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800468 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700469 *
470 * Valid errors returned:
471 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700472 * RadioError:RADIO_NOT_AVAILABLE
473 * RadioError:SIM_BUSY
474 * RadioError:OPERATION_NOT_ALLOWED
475 * RadioError:MODEM_ERR
476 * RadioError:INTERNAL_ERR
477 * RadioError:NO_MEMORY
478 * RadioError:INVALID_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700479 */
480 oneway cancelPendingUssdResponse(RadioResponseInfo info);
481
Andreas Huber675ae492017-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 * @param n is "n" parameter from TS 27.007 7.7
485 * @param m is "m" parameter from TS 27.007 7.7
486 *
487 * Valid errors returned:
488 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700489 * RadioError:RADIO_NOT_AVAILABLE
490 * RadioError:SS_MODIFIED_TO_DIAL
491 * RadioError:SS_MODIFIED_TO_USSD
492 * RadioError:SS_MODIFIED_TO_SS
493 * RadioError:NO_MEMORY
494 * RadioError:MODEM_ERR
495 * RadioError:INTERNAL_ERR
496 * RadioError:FDN_CHECK_FAILURE
497 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700498 */
499 oneway getClirResponse(RadioResponseInfo info, int32_t n, int32_t m);
500
Andreas Huber675ae492017-03-28 14:40:58 -0700501 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800502 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700503 *
504 * Valid errors returned:
505 * RadioError:NONE
506 * RadioError:INVALID_ARGUMENTS
507 * RadioError:RADIO_NOT_AVAILABLE
508 * RadioError:SS_MODIFIED_TO_DIAL
509 * RadioError:SS_MODIFIED_TO_USSD
510 * RadioError:SS_MODIFIED_TO_SS
511 * RadioError:INVALID_ARGUMENTS
512 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700513 */
514 oneway setClirResponse(RadioResponseInfo info);
515
Andreas Huber675ae492017-03-28 14:40:58 -0700516 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800517 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700518 * @param callForwardInfos points to a vector of CallForwardInfo, one for
519 * each distinct registered phone number.
520 *
521 * For example, if data is forwarded to +18005551212 and voice is forwarded
522 * to +18005559999, then two separate CallForwardInfo's must be returned
523 *
524 * If, however, both data and voice are forwarded to +18005551212, then
525 * a single CallForwardInfo must be returned with the service class
526 * set to "data + voice = 3")
527 *
528 * Valid errors returned:
529 * RadioError:NONE
530 * RadioError:RADIO_NOT_AVAILABLE
531 * RadioError:SS_MODIFIED_TO_DIAL
532 * RadioError:SS_MODIFIED_TO_USSD
533 * RadioError:SS_MODIFIED_TO_SS
534 * RadioError:INVALID_ARGUMENTS
535 * RadioError:NO_MEMORY
536 * RadioError:SYSTEM_ERR
537 * RadioError:MODEM_ERR
538 * RadioError:INTERNAL_ERR
539 * RadioError:FDN_CHECK_FAILURE
Sanket Padawe76372492016-10-27 13:20:49 -0700540 */
541 oneway getCallForwardStatusResponse(RadioResponseInfo info,
542 vec<CallForwardInfo> callForwardInfos);
543
Andreas Huber675ae492017-03-28 14:40:58 -0700544 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800545 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700546 *
547 * Valid errors returned:
548 * RadioError:NONE
549 * RadioError:RADIO_NOT_AVAILABLE
550 * RadioError:SS_MODIFIED_TO_DIAL
551 * RadioError:SS_MODIFIED_TO_USSD
552 * RadioError:SS_MODIFIED_TO_SS
553 * RadioError:INVALID_ARGUMENTS
554 * RadioError:NO_MEMORY
555 * RadioError:SYSTEM_ERR
556 * RadioError:MODEM_ERR
557 * RadioError:INTERNAL_ERR
558 * RadioError:INVALID_STATE
559 * RadioError:FDN_CHECK_FAILURE
Sanket Padawe76372492016-10-27 13:20:49 -0700560 */
561 oneway setCallForwardResponse(RadioResponseInfo info);
562
Andreas Huber675ae492017-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 enable If current call waiting state is disabled, enable = false else true
566 * @param serviceClass If enable, then callWaitingResp[1]
567 * must follow, with the TS 27.007 service class bit vector of services
568 * for which call waiting is enabled.
569 * For example, if callWaitingResp[0] is 1 and
570 * callWaitingResp[1] is 3, then call waiting is enabled for data
571 * and voice and disabled for everything else.
572 *
573 * Valid errors returned:
574 * RadioError:NONE
575 * RadioError:RADIO_NOT_AVAILABLE
576 * RadioError:SS_MODIFIED_TO_DIAL
577 * RadioError:SS_MODIFIED_TO_USSD
578 * RadioError:SS_MODIFIED_TO_SS
579 * RadioError:INVALID_ARGUMENTS
580 * RadioError:NO_MEMORY
581 * RadioError:MODEM_ERR
582 * RadioError:INTERNAL_ERR
583 * RadioError:FDN_CHECK_FAILURE
Sanket Padawe76372492016-10-27 13:20:49 -0700584 */
585 oneway getCallWaitingResponse(RadioResponseInfo info, bool enable, int32_t serviceClass);
586
Andreas Huber675ae492017-03-28 14:40:58 -0700587 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800588 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700589 *
590 * Valid errors returned:
591 * RadioError:NONE
592 * RadioError:RADIO_NOT_AVAILABLE
593 * RadioError:SS_MODIFIED_TO_DIAL
594 * RadioError:SS_MODIFIED_TO_USSD
595 * RadioError:SS_MODIFIED_TO_SS
596 * RadioError:INVALID_ARGUMENTS
597 * RadioError:NO_MEMORY
598 * RadioError:MODEM_ERR
599 * RadioError:INTERNAL_ERR
600 * RadioError:INVALID_STATE
601 * RadioError:FDN_CHECK_FAILURE
Sanket Padawe76372492016-10-27 13:20:49 -0700602 */
603 oneway setCallWaitingResponse(RadioResponseInfo info);
604
Andreas Huber675ae492017-03-28 14:40:58 -0700605 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800606 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700607 *
608 * Valid errors returned:
609 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700610 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700611 */
612 oneway acknowledgeLastIncomingGsmSmsResponse(RadioResponseInfo info);
613
Andreas Huber675ae492017-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 *
617 * Valid errors returned:
618 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700619 * RadioError:RADIO_NOT_AVAILABLE
620 * RadioError:INVALID_STATE
621 * RadioError:NO_MEMORY
622 * RadioError:SYSTEM_ERR
623 * RadioError:MODEM_ERR
624 * RadioError:INTERNAL_ERR
625 * RadioError:INVALID_CALL_ID
Sanket Padawe76372492016-10-27 13:20:49 -0700626 */
627 oneway acceptCallResponse(RadioResponseInfo info);
628
Andreas Huber675ae492017-03-28 14:40:58 -0700629 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800630 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700631 *
632 * Valid errors returned:
633 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700634 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700635 */
636 oneway deactivateDataCallResponse(RadioResponseInfo info);
637
Andreas Huber675ae492017-03-28 14:40:58 -0700638 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800639 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700640 * @param response 0 is the TS 27.007 service class bit vector of
641 * services for which the specified barring facility
642 * is active. "0" means "disabled for all"
643 *
644 * Valid errors returned:
645 * RadioError:NONE
646 * RadioError:RADIO_NOT_AVAILABLE
647 * RadioError:SS_MODIFIED_TO_DIAL
648 * RadioError:SS_MODIFIED_TO_USSD
649 * RadioError:SS_MODIFIED_TO_SS
650 * RadioError:INVALID_ARGUMENTS
651 * RadioError:NO_MEMORY
652 * RadioError:MODEM_ERR
653 * RadioError:INTERNAL_ERR
654 * RadioError:SYSTEM_ERR
655 * RadioError:FDN_CHECK_FAILURE
Sanket Padawe76372492016-10-27 13:20:49 -0700656 */
657 oneway getFacilityLockForAppResponse(RadioResponseInfo info, int32_t response);
658
Andreas Huber675ae492017-03-28 14:40:58 -0700659 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800660 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700661 * @param retry 0 is the number of retries remaining, or -1 if unknown
662 *
663 * Valid errors returned:
664 * RadioError:NONE
665 * RadioError:RADIO_NOT_AVAILABLE
666 * RadioError:SS_MODIFIED_TO_DIAL
667 * RadioError:SS_MODIFIED_TO_USSD
668 * RadioError:SS_MODIFIED_TO_SS
669 * RadioError:INVALID_ARGUMENTS
670 * RadioError:NO_MEMORY
671 * RadioError:MODEM_ERR
672 * RadioError:INTERNAL_ERR
673 * RadioError:INVALID_STATE
674 * RadioError:FDN_CHECK_FAILURE
Sanket Padawe76372492016-10-27 13:20:49 -0700675 */
676 oneway setFacilityLockForAppResponse(RadioResponseInfo info, int32_t retry);
677
Andreas Huber675ae492017-03-28 14:40:58 -0700678 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800679 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700680 *
681 * Valid errors returned:
682 * RadioError:NONE
683 * RadioError:RADIO_NOT_AVAILABLE
684 * RadioError:SS_MODIFIED_TO_DIAL
685 * RadioError:SS_MODIFIED_TO_USSD
686 * RadioError:SS_MODIFIED_TO_SS
687 * RadioError:INVALID_ARGUMENTS
688 * RadioError:NO_MEMORY
689 * RadioError:MODEM_ERR
690 * RadioError:INTERNAL_ERR
691 * RadioError:SYSTEM_ERR
692 * RadioError:FDN_CHECK_FAILURE
Sanket Padawe76372492016-10-27 13:20:49 -0700693 */
694 oneway setBarringPasswordResponse(RadioResponseInfo info);
695
Andreas Huber675ae492017-03-28 14:40:58 -0700696 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800697 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700698 * @param selection false for automatic selection, true for manual selection
699 *
700 * Valid errors returned:
701 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700702 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700703 */
704 oneway getNetworkSelectionModeResponse(RadioResponseInfo info, bool manual);
705
Andreas Huber675ae492017-03-28 14:40:58 -0700706 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800707 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700708 *
709 * Valid errors returned:
710 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700711 * RadioError:RADIO_NOT_AVAILABLE
712 * RadioError:ILLEGAL_SIM_OR_ME
713 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700714 *
715 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
716 * no retries needed, such as illegal SIM or ME.
717 * Returns RadioError:GENERIC_FAILURE for all other causes that might be fixed by retries.
718 */
719 oneway setNetworkSelectionModeAutomaticResponse(RadioResponseInfo info);
720
Andreas Huber675ae492017-03-28 14:40:58 -0700721 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800722 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700723 *
724 * Valid errors returned:
725 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700726 * RadioError:RADIO_NOT_AVAILABLE
727 * RadioError:ILLEGAL_SIM_OR_ME
728 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700729 *
730 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
731 * no retries needed, such as illegal SIM or ME.
732 * Returns RadioError:GENERIC_FAILURE for all other causes that might be fixed by retries.
733 */
734 oneway setNetworkSelectionModeManualResponse(RadioResponseInfo info);
735
Andreas Huber675ae492017-03-28 14:40:58 -0700736 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800737 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700738 * @param networkInfos List of network operator information as OperatorInfos defined in
739 * types.hal
740 *
741 * Valid errors returned:
742 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700743 * RadioError:RADIO_NOT_AVAILABLE
744 * RadioError:OPERATION_NOT_ALLOWED
Jayachandran Cfbb1ea52017-03-13 19:23:52 -0700745 * RadioError:ABORTED
746 * RadioError:DEVICE_IN_USE
747 * RadioError:INTERNAL_ERR
748 * RadioError:NO_MEMORY
749 * RadioError:MODEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700750 */
751 oneway getAvailableNetworksResponse(RadioResponseInfo info,
752 vec<OperatorInfo> networkInfos);
753
Andreas Huber675ae492017-03-28 14:40:58 -0700754 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800755 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700756 *
757 * Valid errors returned:
758 * RadioError:NONE
759 * RadioError:RADIO_NOT_AVAILABLE
760 * RadioError:INVALID_ARGUMENTS
761 * RadioError:NO_RESOURCES
762 * RadioError:NO_MEMORY
763 * RadioError:SYSTEM_ERR
764 * RadioError:MODEM_ERR
765 * RadioError:INTERNAL_ERR
766 * RadioError:INVALID_CALL_ID
Sanket Padawe76372492016-10-27 13:20:49 -0700767 */
768 oneway startDtmfResponse(RadioResponseInfo info);
769
Andreas Huber675ae492017-03-28 14:40:58 -0700770 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800771 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700772 *
773 * Valid errors returned:
774 * RadioError:NONE
775 * RadioError:RADIO_NOT_AVAILABLE
776 * RadioError:INVALID_ARGUMENTS
777 * RadioError:NO_RESOURCES
778 * RadioError:NO_MEMORY
779 * RadioError:INVALID_ARGUMENTS
780 * RadioError:SYSTEM_ERR
781 * RadioError:MODEM_ERR
782 * RadioError:INTERNAL_ERR
783 * RadioError:INVALID_CALL_ID
Sanket Padawe76372492016-10-27 13:20:49 -0700784 */
785 oneway stopDtmfResponse(RadioResponseInfo info);
786
Andreas Huber675ae492017-03-28 14:40:58 -0700787 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800788 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700789 * @param version string containing version string for log reporting
790 *
791 * Valid errors returned:
792 * RadioError:NONE
793 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700794 * RadioError:EMPTY_RECORD
Sanket Padawe76372492016-10-27 13:20:49 -0700795 */
796 oneway getBasebandVersionResponse(RadioResponseInfo info, string version);
797
Andreas Huber675ae492017-03-28 14:40:58 -0700798 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800799 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700800 *
801 * Valid errors returned:
802 * RadioError:NONE
803 * RadioError:RADIO_NOT_AVAILABLE
804 * RadioError:INVALID_ARGUMENTS
805 * RadioError:INVALID_STATE
806 * RadioError:NO_RESOURCES
807 * RadioError:NO_MEMORY
808 * RadioError:MODEM_ERR
809 * RadioError:SYSTEM_ERR
810 * RadioError:INTERNAL_ERR
811 * RadioError:INVALID_CALL_ID
812 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700813 */
814 oneway separateConnectionResponse(RadioResponseInfo info);
815
Andreas Huber675ae492017-03-28 14:40:58 -0700816 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800817 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700818 *
819 * Valid errors returned:
820 * RadioError:NONE
821 * RadioError:RADIO_NOT_AVAILABLE
822 * RadioError:INVALID_ARGUMENTS
823 * RadioError:NO_MEMORY
824 * RadioError:REQUEST_RATE_LIMITED
Sanket Padawe76372492016-10-27 13:20:49 -0700825 */
826 oneway setMuteResponse(RadioResponseInfo info);
827
Andreas Huber675ae492017-03-28 14:40:58 -0700828 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800829 * @param info Response info struct containing response type, serial no. and error
830 * @param enable true for "mute enabled" and false for "mute disabled"
Sanket Padawe76372492016-10-27 13:20:49 -0700831 *
832 * Valid errors returned:
833 * RadioError:NONE
834 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700835 * RadioError:SS_MODIFIED_TO_DIAL
836 * RadioError:SS_MODIFIED_TO_USSD
837 * RadioError:SS_MODIFIED_TO_SS
838 * RadioError:NO_MEMORY
839 * RadioError:REQUEST_RATE_LIMITED
Sanket Padawe76372492016-10-27 13:20:49 -0700840 */
841 oneway getMuteResponse(RadioResponseInfo info, bool enable);
842
Andreas Huber675ae492017-03-28 14:40:58 -0700843 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800844 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700845 * @param status indicates CLIP status
846 *
847 * Valid errors returned:
848 * RadioError:NONE
849 * RadioError:RADIO_NOT_AVAILABLE
850 * RadioError:INVALID_ARGUMENTS
851 * RadioError:NO_MEMORY
852 * RadioError:SYSTEM_ERR
853 * RadioError:MODEM_ERR
854 * RadioError:INTERNAL_ERR
855 * RadioError:FDN_CHECK_FAILURE
Sanket Padawe76372492016-10-27 13:20:49 -0700856 */
857 oneway getClipResponse(RadioResponseInfo info, ClipStatus status);
858
Andreas Huber675ae492017-03-28 14:40:58 -0700859 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800860 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700861 * @param dcResponse List of DataCallResult as defined in types.hal
862 *
863 * Valid errors returned:
864 * RadioError:NONE
865 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700866 */
867 oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
868
Andreas Huber675ae492017-03-28 14:40:58 -0700869 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800870 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700871 *
872 * Valid errors returned:
873 * RadioError:NONE
874 * RadioError:RADIO_NOT_AVAILABLE
875 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700876 * RadioError:SIM_BUSY
877 * RadioError:NO_MEMORY
878 * RadioError:SYSTEM_ERR
879 * RadioError:MODEM_ERR
880 * RadioError:INTERNAL_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700881 */
882 oneway setSuppServiceNotificationsResponse(RadioResponseInfo info);
883
Andreas Huber675ae492017-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 * @param index record index where the message is stored
887 *
888 * Valid errors returned:
889 * RadioError:NONE
890 * RadioError:SIM_FULL
891 * RadioError:INVALID_ARGUMENTS
892 * RadioError:INVALID_SMS_FORMAT
893 * RadioError:INTERNAL_ERR
894 * RadioError:MODEM_ERR
895 * RadioError:ENCODING_ERR
896 * RadioError:NO_MEMORY
897 * RadioError:NO_RESOURCES
898 * RadioError:INVALID_MODEM_STATE
899 * RadioError:MODE_NOT_SUPPORTED
900 * RadioError:INVALID_SMSC_ADDRESS
Sanket Padawe76372492016-10-27 13:20:49 -0700901 */
902 oneway writeSmsToSimResponse(RadioResponseInfo info, int32_t index);
903
Andreas Huber675ae492017-03-28 14:40:58 -0700904 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800905 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700906 *
907 * Valid errors returned:
908 * RadioError:NONE
909 * RadioError:SIM_FULL
910 * RadioError:INVALID_ARGUMENTS
911 * RadioError:NO_MEMORY
912 * RadioError:REQUEST_RATE_LIMITED
913 * RadioError:SYSTEM_ERR
914 * RadioError:MODEM_ERR
915 * RadioError:NO_SUCH_ENTRY
Sanket Padawe76372492016-10-27 13:20:49 -0700916 */
917 oneway deleteSmsOnSimResponse(RadioResponseInfo info);
918
Andreas Huber675ae492017-03-28 14:40:58 -0700919 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800920 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700921 *
922 * Valid errors returned:
923 * RadioError:NONE
924 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700925 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700926 */
927 oneway setBandModeResponse(RadioResponseInfo info);
928
Andreas Huber675ae492017-03-28 14:40:58 -0700929 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800930 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700931 * @param bandModes List of RadioBandMode listing supported modes
932 *
933 * Valid errors returned:
934 * RadioError:NONE
935 * RadioError:RADIO_NOT_AVAILABLE
936 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700937 */
938 oneway getAvailableBandModesResponse(RadioResponseInfo info, vec<RadioBandMode> bandModes);
939
Andreas Huber675ae492017-03-28 14:40:58 -0700940 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800941 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700942 * @param commandResponse SAT/USAT response in hexadecimal format
943 * string starting with first byte of response
944 *
945 * Valid errors returned:
946 * RadioError:NONE
947 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700948 * RadioError:SIM_BUSY
949 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700950 */
951 oneway sendEnvelopeResponse(RadioResponseInfo info, string commandResponse);
952
Andreas Huber675ae492017-03-28 14:40:58 -0700953 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800954 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700955 *
956 * Valid errors returned:
957 * RadioError:NONE
958 * RadioError:RADIO_NOT_AVAILABLE
959 * RadioError:INVALID_ARGUMENTS
960 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700961 */
962 oneway sendTerminalResponseToSimResponse(RadioResponseInfo info);
Sanket Padawed52335c2016-11-03 16:46:32 -0700963
Andreas Huber675ae492017-03-28 14:40:58 -0700964 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800965 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700966 *
967 * Valid errors returned:
968 * RadioError:NONE
969 * RadioError:RADIO_NOT_AVAILABLE
970 * RadioError:INVALID_ARGUMENTS
971 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -0700972 */
973 oneway handleStkCallSetupRequestFromSimResponse(RadioResponseInfo info);
974
Andreas Huber675ae492017-03-28 14:40:58 -0700975 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800976 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700977 *
978 * Valid errors returned:
979 * RadioError:NONE
980 * RadioError:RADIO_NOT_AVAILABLE
981 * RadioError:INVALID_ARGUMENTS
982 * RadioError:INVALID_STATE
983 * RadioError:NO_RESOURCES
984 * RadioError:NO_MEMORY
985 * RadioError:SYSTEM_ERR
986 * RadioError:MODEM_ERR
987 * RadioError:INTERNAL_ERR
988 * RadioError:INVALID_CALL_ID
989 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -0700990 */
991 oneway explicitCallTransferResponse(RadioResponseInfo info);
992
Andreas Huber675ae492017-03-28 14:40:58 -0700993 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800994 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700995 *
996 * Valid errors returned:
997 * RadioError:NONE
998 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -0700999 * RadioError:OPERATION_NOT_ALLOWED
1000 * RadioError:MODE_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001001 */
1002 oneway setPreferredNetworkTypeResponse(RadioResponseInfo info);
1003
Andreas Huber675ae492017-03-28 14:40:58 -07001004 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001005 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001006 * @param nwType RadioPreferredNetworkType defined in types.hal
1007 *
1008 * Valid errors returned:
1009 * RadioError:NONE
1010 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001011 */
1012 oneway getPreferredNetworkTypeResponse(RadioResponseInfo info,
1013 PreferredNetworkType nwType);
1014
Andreas Huber675ae492017-03-28 14:40:58 -07001015 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001016 * @param info Response info struct containing response type, serial no. and error
1017 * @param cells Vector of neighboring radio cell
Sanket Padawed52335c2016-11-03 16:46:32 -07001018 *
1019 * Valid errors returned:
1020 * RadioError:NONE
1021 * RadioError:RADIO_NOT_AVAILABLE
1022 * RadioError:INVALID_ARGUMENTS
Sanket Padawed52335c2016-11-03 16:46:32 -07001023 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001024 oneway getNeighboringCidsResponse(RadioResponseInfo info, vec<NeighboringCell> cells);
Sanket Padawed52335c2016-11-03 16:46:32 -07001025
Andreas Huber675ae492017-03-28 14:40:58 -07001026 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001027 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001028 *
1029 * Valid errors returned:
1030 * RadioError:NONE
1031 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001032 */
1033 oneway setLocationUpdatesResponse(RadioResponseInfo info);
1034
Andreas Huber675ae492017-03-28 14:40:58 -07001035 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001036 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001037 *
1038 * Valid errors returned:
1039 * RadioError:NONE
1040 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001041 * RadioError:SIM_ABSENT
1042 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001043 */
1044 oneway setCdmaSubscriptionSourceResponse(RadioResponseInfo info);
1045
Andreas Huber675ae492017-03-28 14:40:58 -07001046 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001047 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001048 *
1049 * Valid errors returned:
1050 * RadioError:NONE
1051 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001052 */
1053 oneway setCdmaRoamingPreferenceResponse(RadioResponseInfo info);
1054
Andreas Huber675ae492017-03-28 14:40:58 -07001055 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001056 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001057 * @param type CdmaRoamingType defined in types.hal
1058 *
1059 * Valid errors returned:
1060 * RadioError:NONE
1061 * RadioError:RADIO_NOT_AVAILABLE
1062 * RadioError:INVALID_ARGUMENTS
Sanket Padawed52335c2016-11-03 16:46:32 -07001063 */
1064 oneway getCdmaRoamingPreferenceResponse(RadioResponseInfo info, CdmaRoamingType type);
1065
Andreas Huber675ae492017-03-28 14:40:58 -07001066 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001067 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001068 *
1069 * Valid errors returned:
1070 * RadioError:NONE
1071 * RadioError:RADIO_NOT_AVAILABLE
1072 * RadioError:INVALID_ARGUMENTS
1073 * RadioError:MODEM_ERR
1074 * RadioError:INTERNAL_ERR
1075 * RadioError:NO_MEMORY
Sanket Padawed52335c2016-11-03 16:46:32 -07001076 */
1077 oneway setTTYModeResponse(RadioResponseInfo info);
1078
Andreas Huber675ae492017-03-28 14:40:58 -07001079 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001080 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001081 * @param mode TtyMode
1082 *
1083 * Valid errors returned:
1084 * RadioError:NONE
1085 * RadioError:RADIO_NOT_AVAILABLE
1086 * RadioError:INVALID_ARGUMENTS
1087 * RadioError:MODEM_ERR
1088 * RadioError:INTERNAL_ERR
1089 * RadioError:NO_MEMORY
Sanket Padawed52335c2016-11-03 16:46:32 -07001090 */
1091 oneway getTTYModeResponse(RadioResponseInfo info, TtyMode mode);
1092
Andreas Huber675ae492017-03-28 14:40:58 -07001093 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001094 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001095 *
1096 * Valid errors returned:
1097 * RadioError:NONE
1098 * RadioError:RADIO_NOT_AVAILABLE
1099 * RadioError:INVALID_ARGUMENTS
1100 * RadioError:MODEM_ERR
1101 * RadioError:INTERNAL_ERR
1102 * RadioError:NO_MEMORY
Sanket Padawed52335c2016-11-03 16:46:32 -07001103 */
1104 oneway setPreferredVoicePrivacyResponse(RadioResponseInfo info);
1105
Andreas Huber675ae492017-03-28 14:40:58 -07001106 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001107 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001108 * @param enable false for Standard Privacy Mode (Public Long Code Mask)
1109 * true for Enhanced Privacy Mode (Private Long Code Mask)
1110 *
1111 * Valid errors:
1112 * RadioError:NONE
1113 * RadioError:RADIO_NOT_AVAILABLE
1114 * RadioError:INVALID_ARGUMENTS
1115 * RadioError:MODEM_ERR
1116 * RadioError:INTERNAL_ERR
1117 * RadioError:NO_MEMORY
Sanket Padawed52335c2016-11-03 16:46:32 -07001118 */
1119 oneway getPreferredVoicePrivacyResponse(RadioResponseInfo info, bool enable);
1120
Andreas Huber675ae492017-03-28 14:40:58 -07001121 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07001122 * Response callback for IRadio.sendCDMAFeatureCode()
1123 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001124 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001125 *
1126 * Valid errors returned:
1127 * RadioError:NONE
1128 * RadioError:RADIO_NOT_AVAILABLE
1129 * RadioError:INVALID_ARGUMENTS
1130 * RadioError:NO_MEMORY
1131 * RadioError:INTERNAL_ERR
1132 * RadioError:SYSTEM_ERR
1133 * RadioError:MODEM_ERR
1134 * RadioError:INVALID_CALL_ID
1135 * RadioError:INVALID_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001136 */
1137 oneway sendCDMAFeatureCodeResponse(RadioResponseInfo info);
1138
Andreas Huber675ae492017-03-28 14:40:58 -07001139 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001140 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001141 *
1142 * Valid errors returned:
1143 * RadioError:NONE
1144 * RadioError:RADIO_NOT_AVAILABLE
1145 * RadioError:INVALID_ARGUMENTS
1146 * RadioError:NO_MEMORY
1147 * RadioError:INTERNAL_ERR
1148 * RadioError:SYSTEM_ERR
1149 * RadioError:MODEM_ERR
1150 * RadioError:INVALID_CALL_ID
1151 * RadioError:INVALID_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001152 */
1153 oneway sendBurstDtmfResponse(RadioResponseInfo info);
1154
Andreas Huber675ae492017-03-28 14:40:58 -07001155 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001156 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001157 * @param sms Sms result struct as defined by SendSmsResult in types.hal
1158 *
1159 * Valid errors returned:
1160 * RadioError:NONE
1161 * RadioError:RADIO_NOT_AVAILABLE
1162 * RadioError:INVALID_ARGUMENTS
1163 * RadioError:SMS_SEND_FAIL_RETRY
1164 * RadioError:NETWORK_REJECT
1165 * RadioError:INVALID_STATE
1166 * RadioError:NO_MEMORY
1167 * RadioError:REQUEST_RATE_LIMITED
1168 * RadioError:INVALID_SMS_FORMAT
1169 * RadioError:SYSTEM_ERR
1170 * RadioError:FDN_CHECK_FAILURE
1171 * RadioError:MODEM_ERR
1172 * RadioError:NETWORK_ERR
1173 * RadioError:ENCODING_ERR
1174 * RadioError:INVALID_SMSC_ADDRESS
1175 * RadioError:MODE_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001176 */
1177 oneway sendCdmaSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1178
Andreas Huber675ae492017-03-28 14:40:58 -07001179 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001180 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001181 *
1182 * Valid errors returned:
1183 * RadioError:NONE
1184 * RadioError:RADIO_NOT_AVAILABLE
1185 * RadioError:INVALID_ARGUMENTS
1186 * RadioError:NO_SMS_TO_ACK
1187 * RadioError:INVALID_STATE
1188 * RadioError:NO_MEMORY
1189 * RadioError:REQUEST_RATE_LIMITED
1190 * RadioError:SYSTEM_ERR
1191 * RadioError:MODEM_ERR
1192 * RadioError:MODE_NOT_SUPPORTED
1193 * RadioError:NETWORK_NOT_READY
1194 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001195 */
1196 oneway acknowledgeLastIncomingCdmaSmsResponse(RadioResponseInfo info);
1197
Andreas Huber675ae492017-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
1200 * @param configs Vector of GSM/WCDMA Cell broadcast configs
Sanket Padawed52335c2016-11-03 16:46:32 -07001201 *
1202 * Valid errors returned:
1203 * RadioError:NONE
1204 * RadioError:RADIO_NOT_AVAILABLE
1205 * RadioError:INVALID_ARGUMENTS
1206 * RadioError:INVALID_STATE
1207 * RadioError:NO_MEMORY
1208 * RadioError:REQUEST_RATE_LIMITED
1209 * RadioError:SYSTEM_ERR
1210 * RadioError:MODEM_ERR
1211 * RadioError:NO_RESOURCES
Sanket Padawed52335c2016-11-03 16:46:32 -07001212 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001213 oneway getGsmBroadcastConfigResponse(RadioResponseInfo info,
1214 vec<GsmBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001215
Andreas Huber675ae492017-03-28 14:40:58 -07001216 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001217 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001218 *
1219 * Valid errors returned:
1220 * RadioError:NONE
1221 * RadioError:RADIO_NOT_AVAILABLE
1222 * RadioError:INVALID_ARGUMENTS
1223 * RadioError:INVALID_STATE
1224 * RadioError:NO_MEMORY
1225 * RadioError:REQUEST_RATE_LIMITED
1226 * RadioError:SYSTEM_ERR
1227 * RadioError:MODEM_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001228 */
1229 oneway setGsmBroadcastConfigResponse(RadioResponseInfo info);
1230
Andreas Huber675ae492017-03-28 14:40:58 -07001231 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001232 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001233 *
1234 * Valid errors returned:
1235 * RadioError:NONE
1236 * RadioError:RADIO_NOT_AVAILABLE
1237 * RadioError:INVALID_ARGUMENTS
1238 * RadioError:INVALID_STATE
1239 * RadioError:NO_MEMORY
1240 * RadioError:REQUEST_RATE_LIMITED
1241 * RadioError:SYSTEM_ERR
1242 * RadioError:MODEM_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001243 */
1244 oneway setGsmBroadcastActivationResponse(RadioResponseInfo info);
1245
Andreas Huber675ae492017-03-28 14:40:58 -07001246 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001247 * @param info Response info struct containing response type, serial no. and error
1248 * @param configs Vector of CDMA Broadcast SMS configs.
Sanket Padawed52335c2016-11-03 16:46:32 -07001249 *
1250 * Valid errors returned:
1251 * RadioError:NONE
1252 * RadioError:RADIO_NOT_AVAILABLE
1253 * RadioError:INVALID_ARGUMENTS
1254 * RadioError:INVALID_STATE
1255 * RadioError:NO_MEMORY
1256 * RadioError:REQUEST_RATE_LIMITED
1257 * RadioError:SYSTEM_ERR
1258 * RadioError:MODEM_ERR
1259 * RadioError:NO_RESOURCES
Sanket Padawed52335c2016-11-03 16:46:32 -07001260 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001261 oneway getCdmaBroadcastConfigResponse(RadioResponseInfo info,
1262 vec<CdmaBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001263
Andreas Huber675ae492017-03-28 14:40:58 -07001264 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001265 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001266 *
1267 * Valid errors returned:
1268 * RadioError:NONE
1269 * RadioError:RADIO_NOT_AVAILABLE
1270 * RadioError:INVALID_ARGUMENTS
1271 * RadioError:INVALID_STATE
1272 * RadioError:NO_MEMORY
1273 * RadioError:REQUEST_RATE_LIMITED
1274 * RadioError:SYSTEM_ERR
1275 * RadioError:MODEM_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001276 */
1277 oneway setCdmaBroadcastConfigResponse(RadioResponseInfo info);
1278
Andreas Huber675ae492017-03-28 14:40:58 -07001279 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001280 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001281 *
1282 * Valid errors returned:
1283 * RadioError:NONE
1284 * RadioError:RADIO_NOT_AVAILABLE
1285 * RadioError:INVALID_ARGUMENTS
1286 * RadioError:INVALID_STATE
1287 * RadioError:NO_MEMORY
1288 * RadioError:REQUEST_RATE_LIMITED
1289 * RadioError:SYSTEM_ERR
1290 * RadioError:MODEM_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001291 */
1292 oneway setCdmaBroadcastActivationResponse(RadioResponseInfo info);
1293
Andreas Huber675ae492017-03-28 14:40:58 -07001294 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001295 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001296 * @param mdn MDN if CDMA subscription is available
1297 * @param hSid is a comma separated list of H_SID (Home SID) if
1298 * CDMA subscription is available, in decimal format
1299 * @param hNid is a comma separated list of H_NID (Home NID) if
1300 * CDMA subscription is available, in decimal format
1301 * @param min MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
1302 * @param prl PRL version if CDMA subscription is available
1303 *
1304 * Valid errors returned:
1305 * RadioError:NONE
1306 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001307 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001308 */
1309 oneway getCDMASubscriptionResponse(RadioResponseInfo info, string mdn, string hSid,
1310 string hNid, string min, string prl);
1311
Andreas Huber675ae492017-03-28 14:40:58 -07001312 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001313 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001314 * @param index record index where the cmda sms message is stored
1315 *
1316 * Valid errors returned:
1317 * RadioError:NONE
1318 * RadioError:RADIO_NOT_AVAILABLE
1319 * RadioError:INVALID_ARGUMENTS
1320 * RadioError:INVALID_SMS_FORMAT
1321 * RadioError:SIM_FULL
1322 * RadioError:INTERNAL_ERR
1323 * RadioError:MODEM_ERR
1324 * RadioError:ENCODING_ERR
1325 * RadioError:NO_MEMORY
1326 * RadioError:NO_RESOURCES
1327 * RadioError:INVALID_MODEM_STATE
1328 * RadioError:MODE_NOT_SUPPORTED
1329 * RadioError:INVALID_SMSC_ADDRESS
Sanket Padawed52335c2016-11-03 16:46:32 -07001330 */
1331 oneway writeSmsToRuimResponse(RadioResponseInfo info, uint32_t index);
1332
Andreas Huber675ae492017-03-28 14:40:58 -07001333 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001334 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001335 *
1336 * Valid errors returned:
1337 * RadioError:NONE
1338 * RadioError:RADIO_NOT_AVAILABLE
1339 * RadioError:INVALID_ARGUMENTS
1340 * RadioError:NO_MEMORY
1341 * RadioError:REQUEST_RATE_LIMITED
1342 * RadioError:SYSTEM_ERR
1343 * RadioError:MODEM_ERR
1344 * RadioError:NO_SUCH_ENTRY
Sanket Padawed52335c2016-11-03 16:46:32 -07001345 */
1346 oneway deleteSmsOnRuimResponse(RadioResponseInfo info);
1347
Andreas Huber675ae492017-03-28 14:40:58 -07001348 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001349 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001350 * @param imei IMEI if GSM subscription is available
1351 * @param imeisv IMEISV if GSM subscription is available
1352 * @param esn ESN if CDMA subscription is available
1353 * @param meid MEID if CDMA subscription is available
1354 *
1355 * Valid errors returned:
1356 * RadioError:NONE
1357 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001358 *
1359 * If a empty string value is returned for any of the device id, it means that there was error
1360 * accessing the device.
1361 *
1362 */
1363 oneway getDeviceIdentityResponse(RadioResponseInfo info, string imei, string imeisv,
1364 string esn, string meid);
1365
Andreas Huber675ae492017-03-28 14:40:58 -07001366 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001367 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001368 *
1369 * Valid errors returned:
1370 * RadioError:NONE
1371 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001372 * RadioError:OPERATION_NO_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001373 */
1374 oneway exitEmergencyCallbackModeResponse(RadioResponseInfo info);
1375
Andreas Huber675ae492017-03-28 14:40:58 -07001376 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001377 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001378 * @param smsc Short Message Service Center address on the device
1379 *
1380 * Valid errors returned:
1381 * RadioError:NONE
1382 * RadioError:RADIO_NOT_AVAILABLE
1383 * RadioError:INVALID_ARGUMENTS
1384 * RadioError:INTERNAL_ERR
1385 * RadioError:NO_MEMORY
1386 * RadioError:SYSTEM_ERR
1387 * RadioError:REQUEST_RATE_LIMITED
1388 * RadioError:MODEM_ERR
1389 * RadioError:INVALID_MODEM_STATE
1390 * RadioError:NOT_PROVISIONED
Sanket Padawed52335c2016-11-03 16:46:32 -07001391 */
1392 oneway getSmscAddressResponse(RadioResponseInfo info, string smsc);
1393
Andreas Huber675ae492017-03-28 14:40:58 -07001394 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001395 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001396 *
1397 * Valid errors returned:
1398 * RadioError:NONE
1399 * RadioError:RADIO_NOT_AVAILABLE
1400 * RadioError:INVALID_ARGUMENTS
1401 * RadioError:INVALID_SMS_FORMAT
1402 * RadioError:NO_MEMORY
1403 * RadioError:SYSTEM_ERR
1404 * RadioError:REQUEST_RATE_LIMITED
1405 * RadioError:MODEM_ERR
1406 * RadioError:NO_RESOURCES
Sanket Padawed52335c2016-11-03 16:46:32 -07001407 */
1408 oneway setSmscAddressResponse(RadioResponseInfo info);
1409
Andreas Huber675ae492017-03-28 14:40:58 -07001410 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001411 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001412 *
1413 * Valid errors returned:
1414 * RadioError:NONE
1415 * RadioError:RADIO_NOT_AVAILABLE
1416 * RadioError:INVALID_ARGUMENTS
1417 * RadioError:NO_MEMORY
1418 * RadioError:SYSTEM_ERR
1419 * RadioError:REQUEST_RATE_LIMITED
1420 * RadioError:MODEM_ERR
1421 * RadioError:INVALID_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001422 */
1423 oneway reportSmsMemoryStatusResponse(RadioResponseInfo info);
1424
Andreas Huber675ae492017-03-28 14:40:58 -07001425 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001426 * @param info Response info struct containing response type, serial no. and error
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001427 *
1428 * Valid errors returned:
1429 * RadioError:NONE
1430 * RadioError:RADIO_NOT_AVAILABLE
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001431 */
1432 oneway reportStkServiceIsRunningResponse(RadioResponseInfo info);
1433
Andreas Huber675ae492017-03-28 14:40:58 -07001434 /**
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001435 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001436 * @param source CDMA subscription source
1437 *
1438 * Valid errors returned:
1439 * RadioError:NONE
1440 * RadioError:RADIO_NOT_AVAILABLE
1441 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001442 */
1443 oneway getCdmaSubscriptionSourceResponse(RadioResponseInfo info, CdmaSubscriptionSource source);
1444
Andreas Huber675ae492017-03-28 14:40:58 -07001445 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001446 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001447 * @param response response string of the challenge/response algo for ISIM auth in base64 format
1448 *
1449 * Valid errors returned:
1450 * RadioError:NONE
1451 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001452 */
1453 oneway requestIsimAuthenticationResponse(RadioResponseInfo info, string response);
1454
Andreas Huber675ae492017-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
Sanket Padawed52335c2016-11-03 16:46:32 -07001461 */
1462 oneway acknowledgeIncomingGsmSmsWithPduResponse(RadioResponseInfo info);
1463
Andreas Huber675ae492017-03-28 14:40:58 -07001464 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001465 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001466 * @param iccIo IccIoResult as defined in types.hal corresponding to ICC IO response
1467 *
1468 * Valid errors returned:
1469 * RadioError:NONE
1470 * RadioError:RADIO_NOT_AVAILABLE
1471 * RadioError:SIM_BUSY
1472 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001473 */
1474 oneway sendEnvelopeWithStatusResponse(RadioResponseInfo info, IccIoResult iccIo);
1475
Andreas Huber675ae492017-03-28 14:40:58 -07001476 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001477 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001478 * @param rat Current voice RAT
1479 *
1480 * Valid errors returned:
1481 * RadioError:NONE
1482 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001483 */
1484 oneway getVoiceRadioTechnologyResponse(RadioResponseInfo info, RadioTechnology rat);
1485
Andreas Huber675ae492017-03-28 14:40:58 -07001486 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001487 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001488 * @param cellInfo List of current cell information known to radio
1489 *
1490 * Valid errors returned:
1491 * RadioError:NONE
1492 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001493 */
1494 oneway getCellInfoListResponse(RadioResponseInfo info, vec<CellInfo> cellInfo);
1495
Andreas Huber675ae492017-03-28 14:40:58 -07001496 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001497 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001498 *
1499 * Valid errors returned:
1500 * RadioError:NONE
1501 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001502 */
1503 oneway setCellInfoListRateResponse(RadioResponseInfo info);
1504
Andreas Huber675ae492017-03-28 14:40:58 -07001505 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001506 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001507 *
1508 * Valid errors returned:
1509 * RadioError:NONE
1510 * RadioError:RADIO_NOT_AVAILABLE
1511 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001512 */
1513 oneway setInitialAttachApnResponse(RadioResponseInfo info);
1514
Andreas Huber675ae492017-03-28 14:40:58 -07001515 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001516 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001517 * @param isRegistered false = not registered, true = registered
1518 * @param ratFamily RadioTechnologyFamily as defined in types.hal. This value is valid only if
1519 * isRegistered is true.
1520 *
1521 * Valid errors returned:
1522 * RadioError:NONE
1523 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001524 */
1525 oneway getImsRegistrationStateResponse(RadioResponseInfo info, bool isRegistered,
1526 RadioTechnologyFamily ratFamily);
1527
Andreas Huber675ae492017-03-28 14:40:58 -07001528 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001529 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001530 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
1531 *
1532 * Valid errors returned:
1533 * RadioError:NONE
1534 * RadioError:RADIO_NOT_AVAILABLE
1535 * RadioError:SMS_SEND_FAIL_RETRY
1536 * RadioError:FDN_CHECK_FAILURE
1537 * RadioError:NETWORK_REJECT
1538 * RadioError:INVALID_ARGUMENTS
1539 * RadioError:INVALID_STATE
1540 * RadioError:NO_MEMORY
1541 * RadioError:INVALID_SMS_FORMAT
1542 * RadioError:SYSTEM_ERR
1543 * RadioError:REQUEST_RATE_LIMITED
1544 * RadioError:MODEM_ERR
1545 * RadioError:NETWORK_ERR
1546 * RadioError:ENCODING_ERR
1547 * RadioError:MODE_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001548 */
1549 oneway sendImsSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1550
Andreas Huber675ae492017-03-28 14:40:58 -07001551 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001552 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001553 * @param result IccIoResult as defined in types.hal
1554 *
1555 * Valid errors returned:
1556 * RadioError:NONE
1557 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001558 */
1559 oneway iccTransmitApduBasicChannelResponse(RadioResponseInfo info, IccIoResult result);
1560
Andreas Huber675ae492017-03-28 14:40:58 -07001561 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001562 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001563 * @param channelId session id of the logical channel.
1564 * @param selectResponse Contains the select response for the open channel command with one
1565 * byte per integer
1566 *
1567 * Valid errors returned:
1568 * RadioError:NONE
1569 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001570 * RadioError:MISSING_RESOURCE
1571 * RadioError:NO_SUCH_ELEMENT
1572 */
1573 oneway iccOpenLogicalChannelResponse(RadioResponseInfo info, int32_t channelId,
1574 vec<int8_t> selectResponse);
1575
Andreas Huber675ae492017-03-28 14:40:58 -07001576 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001577 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001578 *
1579 * Valid errors returned:
1580 * RadioError:NONE
1581 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001582 */
1583 oneway iccCloseLogicalChannelResponse(RadioResponseInfo info);
1584
Andreas Huber675ae492017-03-28 14:40:58 -07001585 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001586 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001587 * @param result IccIoResult as defined in types.hal
1588 *
1589 * Valid errors returned:
1590 * RadioError:NONE
1591 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001592 */
1593 oneway iccTransmitApduLogicalChannelResponse(RadioResponseInfo info, IccIoResult result);
1594
Andreas Huber675ae492017-03-28 14:40:58 -07001595 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001596 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001597 * @param result string containing the contents of the NV item
1598 *
1599 * Valid errors returned:
1600 * RadioError:NONE
1601 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001602 */
1603 oneway nvReadItemResponse(RadioResponseInfo info, string result);
1604
Andreas Huber675ae492017-03-28 14:40:58 -07001605 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001606 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001607 *
1608 * Valid errors returned:
1609 * RadioError:NONE
1610 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001611 */
1612 oneway nvWriteItemResponse(RadioResponseInfo info);
1613
Andreas Huber675ae492017-03-28 14:40:58 -07001614 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001615 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001616 *
1617 * Valid errors returned:
1618 * RadioError:NONE
1619 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001620 */
1621 oneway nvWriteCdmaPrlResponse(RadioResponseInfo info);
1622
Andreas Huber675ae492017-03-28 14:40:58 -07001623 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001624 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001625 *
1626 * Valid errors returned:
1627 * RadioError:NONE
1628 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001629 */
1630 oneway nvResetConfigResponse(RadioResponseInfo info);
1631
Andreas Huber675ae492017-03-28 14:40:58 -07001632 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001633 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001634 *
1635 * Valid errors returned:
1636 * RadioError:NONE
1637 * RadioError:RADIO_NOT_AVAILABLE
1638 * RadioError:SUBSCRIPTION_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001639 */
1640 oneway setUiccSubscriptionResponse(RadioResponseInfo info);
1641
Andreas Huber675ae492017-03-28 14:40:58 -07001642 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001643 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001644 *
1645 * Valid errors returned:
1646 * RadioError:NONE
1647 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001648 */
1649 oneway setDataAllowedResponse(RadioResponseInfo info);
1650
Andreas Huber675ae492017-03-28 14:40:58 -07001651 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001652 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001653 * @param config Array of HardwareConfig of the radio.
1654 *
1655 * Valid errors returned:
1656 * RadioError:NONE
1657 * RadioError:RADIO_NOT_AVAILABLE
1658 */
1659 oneway getHardwareConfigResponse(RadioResponseInfo info, vec<HardwareConfig> config);
1660
Andreas Huber675ae492017-03-28 14:40:58 -07001661 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001662 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001663 * @param result IccIoResult as defined in types.hal
1664 *
1665 * Valid errors returned:
1666 * RadioError:NONE
1667 * RadioError:RADIO_NOT_AVAILABLE
1668 */
1669 oneway requestIccSimAuthenticationResponse(RadioResponseInfo info, IccIoResult result);
1670
Andreas Huber675ae492017-03-28 14:40:58 -07001671 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001672 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001673 *
1674 * Valid errors returned:
1675 * RadioError:NONE
1676 * RadioError:RADIO_NOT_AVAILABLE
1677 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1678 */
1679 oneway setDataProfileResponse(RadioResponseInfo info);
1680
Andreas Huber675ae492017-03-28 14:40:58 -07001681 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001682 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001683 *
1684 * Valid errors returned:
1685 * RadioError:NONE
1686 * RadioError:RADIO_NOT_AVAILABLE
1687 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001688 */
1689 oneway requestShutdownResponse(RadioResponseInfo info);
1690
Andreas Huber675ae492017-03-28 14:40:58 -07001691 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001692 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001693 * @param rc Radio capability as defined by RadioCapability in types.hal
1694 *
1695 * Valid errors returned:
1696 * RadioError:NONE
1697 * RadioError:RADIO_NOT_AVAILABLE
1698 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001699 */
1700 oneway getRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1701
Andreas Huber675ae492017-03-28 14:40:58 -07001702 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001703 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001704 * @param rc Radio capability as defined by RadioCapability in types.hal used to
1705 * feedback return status
1706 *
1707 * Valid errors returned:
1708 * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds.
1709 * RadioError:RADIO_NOT_AVAILABLE
1710 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001711 */
1712 oneway setRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1713
Andreas Huber675ae492017-03-28 14:40:58 -07001714 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001715 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001716 * @param statusInfo LceStatusInfo indicating LCE status
1717 *
1718 * Valid errors returned:
1719 * RadioError:NONE
1720 * RadioError:RADIO_NOT_AVAILABLE
1721 * RadioError:LCE_NOT_SUPPORTED
1722 */
1723 oneway startLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1724
Andreas Huber675ae492017-03-28 14:40:58 -07001725 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001726 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001727 * @param statusInfo LceStatusInfo indicating LCE status
1728 *
1729 * Valid errors returned:
1730 * RadioError:NONE
1731 * RadioError:RADIO_NOT_AVAILABLE
1732 * RadioError:LCE_NOT_SUPPORTED
1733 */
1734 oneway stopLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
1735
Andreas Huber675ae492017-03-28 14:40:58 -07001736 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001737 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001738 * @param lceInfo LceDataInfo indicating LCE data as defined in types.hal
1739 *
1740 * Valid errors returned:
1741 * RadioError:NONE
1742 * RadioError:RADIO_NOT_AVAILABLE
1743 * RadioError:LCE_NOT_SUPPORTED
1744 */
1745 oneway pullLceDataResponse(RadioResponseInfo info, LceDataInfo lceInfo);
1746
Andreas Huber675ae492017-03-28 14:40:58 -07001747 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001748 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001749 * @param activityInfo modem activity information
1750 *
1751 * Valid errors returned:
1752 * RadioError:NONE
1753 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001754 */
1755 oneway getModemActivityInfoResponse(RadioResponseInfo info, ActivityStatsInfo activityInfo);
1756
Andreas Huber675ae492017-03-28 14:40:58 -07001757 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001758 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001759 * @param numAllowed number of allowed carriers which have been set correctly.
1760 * On success, it must match the length of list Carriers->allowedCarriers.
1761 * if Length of allowed carriers list is 0, numAllowed = 0.
1762 *
1763 * Valid errors returned:
1764 * RadioError:NONE
1765 * RadioError:RADIO_NOT_AVAILABLE
1766 * RadioError:INVALID_ARGUMENTS
1767 * RadioError:REQUEST_NOT_SUPPORTED
1768 */
1769 oneway setAllowedCarriersResponse(RadioResponseInfo info, int32_t numAllowed);
1770
Andreas Huber675ae492017-03-28 14:40:58 -07001771 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07001772 * Expected modem behavior:
1773 * Return list of allowed carriers, and if all carriers are allowed.
1774 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001775 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001776 * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct.
1777 * If false, consider "carriers" struct
1778 * @param carriers Carrier restriction information.
1779 *
1780 * Valid errors returned:
1781 * RadioError:NONE
1782 * RadioError:RADIO_NOT_AVAILABLE
1783 * RadioError:REQUEST_NOT_SUPPORTED
1784 */
1785 oneway getAllowedCarriersResponse(RadioResponseInfo info, bool allAllowed,
1786 CarrierRestrictions carriers);
Sanket Padawe1a7eae72016-12-07 14:40:03 -08001787
Andreas Huber675ae492017-03-28 14:40:58 -07001788 /**
Jack Yued7ef812017-01-24 11:56:52 -08001789 * @param info Response info struct containing response type, serial no. and error
1790 *
1791 * Valid errors returned:
1792 * RadioError:NONE
1793 * RadioError:RADIO_NOT_AVAILABLE
1794 */
1795 oneway sendDeviceStateResponse(RadioResponseInfo info);
1796
Andreas Huber675ae492017-03-28 14:40:58 -07001797 /**
Jack Yued7ef812017-01-24 11:56:52 -08001798 * @param info Response info struct containing response type, serial no. and error
1799 *
1800 * Valid errors returned:
1801 * RadioError:NONE
1802 * RadioError:INVALID_ARGUMENTS
1803 * RadioError:RADIO_NOT_AVAILABLE
1804 */
1805 oneway setIndicationFilterResponse(RadioResponseInfo info);
1806
Andreas Huber675ae492017-03-28 14:40:58 -07001807 /**
Jack Yua2118692017-02-15 15:31:34 -08001808 * @param info Response info struct containing response type, serial no. and error
1809 *
1810 * Valid errors returned:
1811 * RadioError:NONE
1812 * RadioError:RADIO_NOT_AVAILABLE
1813 * RadioError:REQUEST_NOT_SUPPORTED
1814 * RadioError:SIM_ABSENT
1815 * RadioError:INVALID_ARGUMENTS
1816 */
1817 oneway setSimCardPowerResponse(RadioResponseInfo info);
1818
Andreas Huber675ae492017-03-28 14:40:58 -07001819 /**
Jack Yued7ef812017-01-24 11:56:52 -08001820 * Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
Sanket Padawe1a7eae72016-12-07 14:40:03 -08001821 * radio request which take long time to respond.
1822 * For more details, refer https://source.android.com/devices/tech/connect/ril.html
1823 *
1824 * @param serial Serial no. of the request whose acknowledgement is sent.
1825 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001826 oneway acknowledgeRequest(int32_t serial);
Sanket Padawe76372492016-10-27 13:20:49 -07001827};