blob: 437e1919d8e892dc4f37b69cb104aa1f94781f73 [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)
Sanket Padawe76372492016-10-27 13:20:49 -0700117 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -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 Huber675ae492017-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
sqian159ec7f2017-04-25 18:00:34 -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 Huber675ae492017-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 Huber675ae492017-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 Huber675ae492017-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
sqian159ec7f2017-04-25 18:00:34 -0700192 * RadioError:SYSTEM_ERR
193 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700194 */
195 oneway hangupWaitingOrBackgroundResponse(RadioResponseInfo info);
196
Andreas Huber675ae492017-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
sqian159ec7f2017-04-25 18:00:34 -0700211 * RadioError:SYSTEM_ERR
212 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700213 */
214 oneway hangupForegroundResumeBackgroundResponse(RadioResponseInfo info);
215
Andreas Huber675ae492017-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
sqian159ec7f2017-04-25 18:00:34 -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 Huber675ae492017-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
sqian159ec7f2017-04-25 18:00:34 -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 Huber675ae492017-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
sqian159ec7f2017-04-25 18:00:34 -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 Huber675ae492017-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
sqian159ec7f2017-04-25 18:00:34 -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 Huber675ae492017-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
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700331 * RadioError:NO_MEMORY
332 * RadioError:INTERNAL_ERR
333 * RadioError:SYSTEM_ERR
334 * RadioError:MODEM_ERR
335 * RadioError:NOT_PROVISIONED
336 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700337 */
338 oneway getSignalStrengthResponse(RadioResponseInfo info, SignalStrength sigStrength);
339
Andreas Huber675ae492017-03-28 14:40:58 -0700340 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800341 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700342 * @param voiceRegResponse Current Voice registration response as defined by VoiceRegStateResult
343 * in types.hal
344 *
345 * Valid errors returned:
346 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700347 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700348 */
349 oneway getVoiceRegistrationStateResponse(RadioResponseInfo info,
350 VoiceRegStateResult voiceRegResponse);
351
Andreas Huber675ae492017-03-28 14:40:58 -0700352 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800353 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700354 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
355 * types.hal
356 *
357 * Valid errors returned:
358 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700359 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700360 * RadioError:NO_MEMORY
361 * RadioError:INTERNAL_ERR
362 * RadioError:SYSTEM_ERR
363 * RadioError:MODEM_ERR
364 * RadioError:NOT_PROVISIONED
365 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700366 */
367 oneway getDataRegistrationStateResponse(RadioResponseInfo info,
368 DataRegStateResult dataRegResponse);
369
Andreas Huber675ae492017-03-28 14:40:58 -0700370 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800371 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700372 * @param longName is long alpha ONS or EONS or empty string if unregistered
373 * @param shortName is short alpha ONS or EONS or empty string if unregistered
374 * @param numeric is 5 or 6 digit numeric code (MCC + MNC) or empty string if unregistered
375 *
376 * Valid errors returned:
377 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700378 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700379 * RadioError:NO_MEMORY
380 * RadioError:INTERNAL_ERR
381 * RadioError:SYSTEM_ERR
382 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700383 */
384 oneway getOperatorResponse(RadioResponseInfo info, string longName, string shortName,
385 string numeric);
386
Andreas Huber675ae492017-03-28 14:40:58 -0700387 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800388 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700389 *
390 * Valid errors returned:
391 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700392 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700393 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700394 * RadioError:INVALID_STATE
395 * RadioError:NO_MEMORY
396 * RadioError:INTERNAL_ERR
397 * RadioError:SYSTEM_ERR
398 * RadioError:INVALID_ARGUMENTS
399 * RadioError:MODEM_ERR
400 * RadioError:DEVICE_IN_USE
401 * RadioError:OPERATION_NOT_ALLOWED
402 * RadioError:INVALID_MODEM_STATE
403 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700404 */
405 oneway setRadioPowerResponse(RadioResponseInfo info);
406
Andreas Huber675ae492017-03-28 14:40:58 -0700407 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800408 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700409 *
410 * Valid errors returned:
411 * RadioError:NONE
412 * RadioError:RADIO_NOT_AVAILABLE
413 * RadioError:INVALID_ARGUMENTS
414 * RadioError:NO_RESOURCES
415 * RadioError:NO_MEMORY
416 * RadioError:MODEM_ERR
417 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700418 * RadioError:INTERNAL_ERR
419 * RadioError:SYSTEM_ERR
420 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700421 */
422 oneway sendDtmfResponse(RadioResponseInfo info);
423
Andreas Huber675ae492017-03-28 14:40:58 -0700424 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800425 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700426 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
427 *
428 * Valid errors returned:
429 * RadioError:NONE
430 * RadioError:RADIO_NOT_AVAILABLE
431 * RadioError:SMS_SEND_FAIL_RETRY
432 * RadioError:NETWORK_REJECT
433 * RadioError:INVALID_STATE
434 * RadioError:INVALID_ARGUMENTS
435 * RadioError:NO_MEMORY
436 * RadioError:REQUEST_RATE_LIMITED
437 * RadioError:INVALID_SMS_FORMAT
438 * RadioError:SYSTEM_ERR
439 * RadioError:ENCODING_ERR
440 * RadioError:INVALID_SMSC_ADDRESS
441 * RadioError:MODEM_ERR
442 * RadioError:NETWORK_ERR
443 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -0700444 * RadioError:INTERNAL_ERR
445 * RadioError:REQUEST_NOT_SUPPORTED
446 * RadioError:INVALID_MODEM_STATE
447 * RadioError:NETWORK_NOT_READY
448 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700449 */
450 oneway sendSmsResponse(RadioResponseInfo info, SendSmsResult sms);
451
Andreas Huber675ae492017-03-28 14:40:58 -0700452 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800453 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700454 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
455 *
456 * Valid errors returned:
457 * RadioError:NONE
458 * RadioError:RADIO_NOT_AVAILABLE
459 * RadioError:SMS_SEND_FAIL_RETRY
460 * RadioError:NETWORK_REJECT
461 * RadioError:INVALID_STATE
462 * RadioError:INVALID_ARGUMENTS
463 * RadioError:NO_MEMORY
464 * RadioError:REQUEST_RATE_LIMITED
465 * RadioError:INVALID_SMS_FORMAT
466 * RadioError:SYSTEM_ERR
467 * RadioError:FDN_CHECK_FAILURE
468 * RadioError:ENCODING_ERR
469 * RadioError:INVALID_SMSC_ADDRESS
470 * RadioError:MODEM_ERR
471 * RadioError:NETWORK_ERR
472 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -0700473 * RadioError:INTERNAL_ERR
474 * RadioError:REQUEST_NOT_SUPPORTED
475 * RadioError:INVALID_MODEM_STATE
476 * RadioError:NETWORK_NOT_READY
477 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700478 */
479 oneway sendSMSExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
480
Andreas Huber675ae492017-03-28 14:40:58 -0700481 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800482 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700483 * @param dcResponse SetupDataCallResult defined in types.hal
484 *
485 * Valid errors returned:
486 * RadioError:NONE must be returned on both success and failure of setup with the
487 * DataCallResponse.status containing the actual status
488 * For all other errors the DataCallResponse is ignored.
Sanket Padawe76372492016-10-27 13:20:49 -0700489 * RadioError:RADIO_NOT_AVAILABLE
490 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
491 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
492 * RadioError:REQUEST_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700493 * RadioError:INVALID_ARGUMENTS
494 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700495 */
496 oneway setupDataCallResponse(RadioResponseInfo info, SetupDataCallResult dcResponse);
497
Andreas Huber675ae492017-03-28 14:40:58 -0700498 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800499 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700500 * @param iccIo ICC io operation response as defined by IccIoResult in types.hal
Sanket Padawe76372492016-10-27 13:20:49 -0700501 *
502 * Valid errors returned:
503 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700504 * RadioError:RADIO_NOT_AVAILABLE
505 * RadioError:SIM_PIN2
506 * RadioError:SIM_PUK2
Sanket Padawe76372492016-10-27 13:20:49 -0700507 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800508 oneway iccIOForAppResponse(RadioResponseInfo info, IccIoResult iccIo);
Sanket Padawe76372492016-10-27 13:20:49 -0700509
Andreas Huber675ae492017-03-28 14:40:58 -0700510 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800511 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700512 *
513 * Valid errors returned:
514 * RadioError:NONE
515 * RadioError:RADIO_NOT_AVAILABLE
516 * RadioError:FDN_CHECK_FAILURE
517 * RadioError:USSD_MODIFIED_TO_DIAL
518 * RadioError:USSD_MODIFIED_TO_SS
519 * RadioError:USSD_MODIFIED_TO_USSD
520 * RadioError:SIM_BUSY
521 * RadioError:OPERATION_NOT_ALLOWED
522 * RadioError:INVALID_ARGUMENTS
523 * RadioError:NO_MEMORY
524 * RadioError:MODEM_ERR
525 * RadioError:INTERNAL_ERR
526 * RadioError:ABORTED
527 * RadioError:SYSTEM_ERR
528 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -0700529 * RadioError:REQUEST_NOT_SUPPORTED
530 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700531 */
532 oneway sendUssdResponse(RadioResponseInfo info);
533
Andreas Huber675ae492017-03-28 14:40:58 -0700534 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800535 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700536 *
537 * Valid errors returned:
538 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700539 * RadioError:RADIO_NOT_AVAILABLE
540 * RadioError:SIM_BUSY
541 * RadioError:OPERATION_NOT_ALLOWED
542 * RadioError:MODEM_ERR
543 * RadioError:INTERNAL_ERR
544 * RadioError:NO_MEMORY
545 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -0700546 * RadioError:INVALID_ARGUMENTS
547 * RadioError:SYSTEM_ERR
548 * RadioError:REQUEST_NOT_SUPPORTED
549 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700550 */
551 oneway cancelPendingUssdResponse(RadioResponseInfo info);
552
Andreas Huber675ae492017-03-28 14:40:58 -0700553 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800554 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700555 * @param n is "n" parameter from TS 27.007 7.7
556 * @param m is "m" parameter from TS 27.007 7.7
557 *
558 * Valid errors returned:
559 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700560 * RadioError:RADIO_NOT_AVAILABLE
561 * RadioError:SS_MODIFIED_TO_DIAL
562 * RadioError:SS_MODIFIED_TO_USSD
563 * RadioError:SS_MODIFIED_TO_SS
564 * RadioError:NO_MEMORY
565 * RadioError:MODEM_ERR
566 * RadioError:INTERNAL_ERR
567 * RadioError:FDN_CHECK_FAILURE
568 * RadioError:SYSTEM_ERR
sqian159ec7f2017-04-25 18:00:34 -0700569 * RadioError:REQUEST_NOT_SUPPORTED
570 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700571 */
572 oneway getClirResponse(RadioResponseInfo info, int32_t n, int32_t m);
573
Andreas Huber675ae492017-03-28 14:40:58 -0700574 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800575 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700576 *
577 * Valid errors returned:
578 * RadioError:NONE
579 * RadioError:INVALID_ARGUMENTS
580 * RadioError:RADIO_NOT_AVAILABLE
581 * RadioError:SS_MODIFIED_TO_DIAL
582 * RadioError:SS_MODIFIED_TO_USSD
583 * RadioError:SS_MODIFIED_TO_SS
sqian159ec7f2017-04-25 18:00:34 -0700584 * RadioError:NO_MEMORY
585 * RadioError:INTERNAL_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700586 * RadioError:SYSTEM_ERR
sqian159ec7f2017-04-25 18:00:34 -0700587 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700588 */
589 oneway setClirResponse(RadioResponseInfo info);
590
Andreas Huber675ae492017-03-28 14:40:58 -0700591 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800592 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700593 * @param callForwardInfos points to a vector of CallForwardInfo, one for
594 * each distinct registered phone number.
595 *
596 * For example, if data is forwarded to +18005551212 and voice is forwarded
597 * to +18005559999, then two separate CallForwardInfo's must be returned
598 *
599 * If, however, both data and voice are forwarded to +18005551212, then
600 * a single CallForwardInfo must be returned with the service class
601 * set to "data + voice = 3")
602 *
603 * Valid errors returned:
604 * RadioError:NONE
605 * RadioError:RADIO_NOT_AVAILABLE
606 * RadioError:SS_MODIFIED_TO_DIAL
607 * RadioError:SS_MODIFIED_TO_USSD
608 * RadioError:SS_MODIFIED_TO_SS
609 * RadioError:INVALID_ARGUMENTS
610 * RadioError:NO_MEMORY
611 * RadioError:SYSTEM_ERR
612 * RadioError:MODEM_ERR
613 * RadioError:INTERNAL_ERR
614 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700615 * RadioError:REQUEST_NOT_SUPPORTED
616 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700617 */
618 oneway getCallForwardStatusResponse(RadioResponseInfo info,
619 vec<CallForwardInfo> callForwardInfos);
620
Andreas Huber675ae492017-03-28 14:40:58 -0700621 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800622 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700623 *
624 * Valid errors returned:
625 * RadioError:NONE
626 * RadioError:RADIO_NOT_AVAILABLE
627 * RadioError: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:SYSTEM_ERR
633 * RadioError:MODEM_ERR
634 * RadioError:INTERNAL_ERR
635 * RadioError:INVALID_STATE
636 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700637 * RadioError:REQUEST_NOT_SUPPORTED
638 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700639 */
640 oneway setCallForwardResponse(RadioResponseInfo info);
641
Andreas Huber675ae492017-03-28 14:40:58 -0700642 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800643 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700644 * @param enable If current call waiting state is disabled, enable = false else true
645 * @param serviceClass If enable, then callWaitingResp[1]
646 * must follow, with the TS 27.007 service class bit vector of services
647 * for which call waiting is enabled.
648 * For example, if callWaitingResp[0] is 1 and
649 * callWaitingResp[1] is 3, then call waiting is enabled for data
650 * and voice and disabled for everything else.
651 *
652 * Valid errors returned:
653 * RadioError:NONE
654 * RadioError:RADIO_NOT_AVAILABLE
655 * RadioError:SS_MODIFIED_TO_DIAL
656 * RadioError:SS_MODIFIED_TO_USSD
657 * RadioError:SS_MODIFIED_TO_SS
658 * RadioError:INVALID_ARGUMENTS
659 * RadioError:NO_MEMORY
660 * RadioError:MODEM_ERR
661 * RadioError:INTERNAL_ERR
662 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700663 * RadioError:INTERNAL_ERR
664 * RadioError:SYSTEM_ERR
665 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700666 */
667 oneway getCallWaitingResponse(RadioResponseInfo info, bool enable, int32_t serviceClass);
668
Andreas Huber675ae492017-03-28 14:40:58 -0700669 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800670 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700671 *
672 * Valid errors returned:
673 * RadioError:NONE
674 * RadioError:RADIO_NOT_AVAILABLE
675 * RadioError:SS_MODIFIED_TO_DIAL
676 * RadioError:SS_MODIFIED_TO_USSD
677 * RadioError:SS_MODIFIED_TO_SS
678 * RadioError:INVALID_ARGUMENTS
679 * RadioError:NO_MEMORY
680 * RadioError:MODEM_ERR
681 * RadioError:INTERNAL_ERR
682 * RadioError:INVALID_STATE
683 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700684 * RadioError:SYSTEM_ERR
685 * RadioError:REQUEST_NOT_SUPPORTED
686 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700687 */
688 oneway setCallWaitingResponse(RadioResponseInfo info);
689
Andreas Huber675ae492017-03-28 14:40:58 -0700690 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800691 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700692 *
693 * Valid errors returned:
694 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700695 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700696 */
697 oneway acknowledgeLastIncomingGsmSmsResponse(RadioResponseInfo info);
698
Andreas Huber675ae492017-03-28 14:40:58 -0700699 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800700 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700701 *
702 * Valid errors returned:
703 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700704 * RadioError:RADIO_NOT_AVAILABLE
705 * RadioError:INVALID_STATE
706 * RadioError:NO_MEMORY
707 * RadioError:SYSTEM_ERR
708 * RadioError:MODEM_ERR
709 * RadioError:INTERNAL_ERR
710 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700711 * RadioError:INVALID_ARGUMENTS
712 * RadioError:SYSTEM_ERR
713 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700714 */
715 oneway acceptCallResponse(RadioResponseInfo info);
716
Andreas Huber675ae492017-03-28 14:40:58 -0700717 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800718 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700719 *
720 * Valid errors returned:
721 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700722 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700723 * RadioError:INVALID_CALL_ID
724 * RadioError:INVALID_STATE
725 * RadioError:INVALID_ARGUMENTS
726 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700727 */
728 oneway deactivateDataCallResponse(RadioResponseInfo info);
729
Andreas Huber675ae492017-03-28 14:40:58 -0700730 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800731 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700732 * @param response 0 is the TS 27.007 service class bit vector of
733 * services for which the specified barring facility
734 * is active. "0" means "disabled for all"
735 *
736 * Valid errors returned:
737 * RadioError:NONE
738 * RadioError:RADIO_NOT_AVAILABLE
739 * RadioError:SS_MODIFIED_TO_DIAL
740 * RadioError:SS_MODIFIED_TO_USSD
741 * RadioError:SS_MODIFIED_TO_SS
742 * RadioError:INVALID_ARGUMENTS
743 * RadioError:NO_MEMORY
744 * RadioError:MODEM_ERR
745 * RadioError:INTERNAL_ERR
746 * RadioError:SYSTEM_ERR
747 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700748 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700749 */
750 oneway getFacilityLockForAppResponse(RadioResponseInfo info, int32_t response);
751
Andreas Huber675ae492017-03-28 14:40:58 -0700752 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800753 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700754 * @param retry 0 is the number of retries remaining, or -1 if unknown
755 *
756 * Valid errors returned:
757 * RadioError:NONE
758 * RadioError:RADIO_NOT_AVAILABLE
759 * RadioError:SS_MODIFIED_TO_DIAL
760 * RadioError:SS_MODIFIED_TO_USSD
761 * RadioError:SS_MODIFIED_TO_SS
762 * RadioError:INVALID_ARGUMENTS
763 * RadioError:NO_MEMORY
764 * RadioError:MODEM_ERR
765 * RadioError:INTERNAL_ERR
sqian159ec7f2017-04-25 18:00:34 -0700766 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700767 * RadioError:INVALID_STATE
768 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700769 * RadioError:REQUEST_NOT_SUPPORTED
770 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700771 */
772 oneway setFacilityLockForAppResponse(RadioResponseInfo info, int32_t retry);
773
Andreas Huber675ae492017-03-28 14:40:58 -0700774 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800775 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700776 *
777 * Valid errors returned:
778 * RadioError:NONE
779 * RadioError:RADIO_NOT_AVAILABLE
780 * RadioError:SS_MODIFIED_TO_DIAL
781 * RadioError:SS_MODIFIED_TO_USSD
782 * RadioError:SS_MODIFIED_TO_SS
783 * RadioError:INVALID_ARGUMENTS
784 * RadioError:NO_MEMORY
785 * RadioError:MODEM_ERR
786 * RadioError:INTERNAL_ERR
787 * RadioError:SYSTEM_ERR
788 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700789 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700790 */
791 oneway setBarringPasswordResponse(RadioResponseInfo info);
792
Andreas Huber675ae492017-03-28 14:40:58 -0700793 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800794 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700795 * @param selection false for automatic selection, true for manual selection
796 *
797 * Valid errors returned:
798 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700799 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700800 * RadioError:NO_MEMORY
801 * RadioError:INTERNAL_ERR
802 * RadioError:SYSTEM_ERR
803 * RadioError:INVALID_ARGUMENTS
804 * RadioError:MODEM_ERR
805 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700806 */
807 oneway getNetworkSelectionModeResponse(RadioResponseInfo info, bool manual);
808
Andreas Huber675ae492017-03-28 14:40:58 -0700809 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800810 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700811 *
812 * Valid errors returned:
813 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700814 * RadioError:RADIO_NOT_AVAILABLE
815 * RadioError:ILLEGAL_SIM_OR_ME
816 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700817 * RadioError:NO_MEMORY
818 * RadioError:INTERNAL_ERR
819 * RadioError:SYSTEM_ERR
820 * RadioError:INVALID_ARGUMENTS
821 * RadioError:MODEM_ERR
822 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700823 *
824 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
825 * no retries needed, such as illegal SIM or ME.
Sanket Padawe76372492016-10-27 13:20:49 -0700826 */
827 oneway setNetworkSelectionModeAutomaticResponse(RadioResponseInfo info);
828
Andreas Huber675ae492017-03-28 14:40:58 -0700829 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800830 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700831 *
832 * Valid errors returned:
833 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700834 * RadioError:RADIO_NOT_AVAILABLE
835 * RadioError:ILLEGAL_SIM_OR_ME
836 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700837 * RadioError:INVALID_STATE
838 * RadioError:NO_MEMORY
839 * RadioError:INTERNAL_ERR
840 * RadioError:SYSTEM_ERR
841 * RadioError:INVALID_ARGUMENTS
842 * RadioError:MODEM_ERR
843 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700844 *
845 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
846 * no retries needed, such as illegal SIM or ME.
Sanket Padawe76372492016-10-27 13:20:49 -0700847 */
848 oneway setNetworkSelectionModeManualResponse(RadioResponseInfo info);
849
Andreas Huber675ae492017-03-28 14:40:58 -0700850 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800851 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700852 * @param networkInfos List of network operator information as OperatorInfos defined in
853 * types.hal
854 *
855 * Valid errors returned:
856 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700857 * RadioError:RADIO_NOT_AVAILABLE
858 * RadioError:OPERATION_NOT_ALLOWED
Jayachandran Cfbb1ea52017-03-13 19:23:52 -0700859 * RadioError:ABORTED
860 * RadioError:DEVICE_IN_USE
861 * RadioError:INTERNAL_ERR
862 * RadioError:NO_MEMORY
863 * RadioError:MODEM_ERR
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700864 * RadioError:REQUEST_NOT_SUPPORTED
865 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700866 */
867 oneway getAvailableNetworksResponse(RadioResponseInfo info,
868 vec<OperatorInfo> networkInfos);
869
Andreas Huber675ae492017-03-28 14:40:58 -0700870 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800871 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700872 *
873 * Valid errors returned:
874 * RadioError:NONE
875 * RadioError:RADIO_NOT_AVAILABLE
876 * RadioError:INVALID_ARGUMENTS
877 * RadioError:NO_RESOURCES
878 * RadioError:NO_MEMORY
879 * RadioError:SYSTEM_ERR
880 * RadioError:MODEM_ERR
881 * RadioError:INTERNAL_ERR
882 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700883 * RadioError:SYSTEM_ERR
884 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700885 */
886 oneway startDtmfResponse(RadioResponseInfo info);
887
Andreas Huber675ae492017-03-28 14:40:58 -0700888 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800889 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700890 *
891 * Valid errors returned:
892 * RadioError:NONE
893 * RadioError:RADIO_NOT_AVAILABLE
894 * RadioError:INVALID_ARGUMENTS
895 * RadioError:NO_RESOURCES
896 * RadioError:NO_MEMORY
897 * RadioError:INVALID_ARGUMENTS
898 * RadioError:SYSTEM_ERR
899 * RadioError:MODEM_ERR
900 * RadioError:INTERNAL_ERR
901 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700902 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700903 */
904 oneway stopDtmfResponse(RadioResponseInfo info);
905
Andreas Huber675ae492017-03-28 14:40:58 -0700906 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800907 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700908 * @param version string containing version string for log reporting
909 *
910 * Valid errors returned:
911 * RadioError:NONE
912 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700913 * RadioError:EMPTY_RECORD
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700914 * RadioError:NO_MEMORY
915 * RadioError:INTERNAL_ERR
916 * RadioError:SYSTEM_ERR
917 * RadioError:MODEM_ERR
918 * RadioError:NOT_PROVISIONED
919 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700920 */
921 oneway getBasebandVersionResponse(RadioResponseInfo info, string version);
922
Andreas Huber675ae492017-03-28 14:40:58 -0700923 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800924 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700925 *
926 * Valid errors returned:
927 * RadioError:NONE
928 * RadioError:RADIO_NOT_AVAILABLE
929 * RadioError:INVALID_ARGUMENTS
930 * RadioError:INVALID_STATE
931 * RadioError:NO_RESOURCES
932 * RadioError:NO_MEMORY
933 * RadioError:MODEM_ERR
934 * RadioError:SYSTEM_ERR
935 * RadioError:INTERNAL_ERR
936 * RadioError:INVALID_CALL_ID
937 * RadioError:OPERATION_NOT_ALLOWED
sqian159ec7f2017-04-25 18:00:34 -0700938 * RadioError:REQUEST_NOT_SUPPORTED
939 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700940 */
941 oneway separateConnectionResponse(RadioResponseInfo info);
942
Andreas Huber675ae492017-03-28 14:40:58 -0700943 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800944 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700945 *
946 * Valid errors returned:
947 * RadioError:NONE
948 * RadioError:RADIO_NOT_AVAILABLE
949 * RadioError:INVALID_ARGUMENTS
950 * RadioError:NO_MEMORY
951 * RadioError:REQUEST_RATE_LIMITED
sqian159ec7f2017-04-25 18:00:34 -0700952 * RadioError:INTERNAL_ERR
953 * RadioError:SYSTEM_ERR
954 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700955 */
956 oneway setMuteResponse(RadioResponseInfo info);
957
Andreas Huber675ae492017-03-28 14:40:58 -0700958 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800959 * @param info Response info struct containing response type, serial no. and error
960 * @param enable true for "mute enabled" and false for "mute disabled"
Sanket Padawe76372492016-10-27 13:20:49 -0700961 *
962 * Valid errors returned:
963 * RadioError:NONE
964 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700965 * RadioError:SS_MODIFIED_TO_DIAL
966 * RadioError:SS_MODIFIED_TO_USSD
967 * RadioError:SS_MODIFIED_TO_SS
968 * RadioError:NO_MEMORY
969 * RadioError:REQUEST_RATE_LIMITED
sqian159ec7f2017-04-25 18:00:34 -0700970 * RadioError:INVALID_ARGUMENTS
971 * RadioError:INTERNAL_ERR
972 * RadioError:SYSTEM_ERR
973 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700974 */
975 oneway getMuteResponse(RadioResponseInfo info, bool enable);
976
Andreas Huber675ae492017-03-28 14:40:58 -0700977 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800978 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700979 * @param status indicates CLIP status
980 *
981 * Valid errors returned:
982 * RadioError:NONE
983 * RadioError:RADIO_NOT_AVAILABLE
984 * RadioError:INVALID_ARGUMENTS
985 * RadioError:NO_MEMORY
986 * RadioError:SYSTEM_ERR
987 * RadioError:MODEM_ERR
988 * RadioError:INTERNAL_ERR
989 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700990 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700991 */
992 oneway getClipResponse(RadioResponseInfo info, ClipStatus status);
993
Andreas Huber675ae492017-03-28 14:40:58 -0700994 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800995 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700996 * @param dcResponse List of DataCallResult as defined in types.hal
997 *
998 * Valid errors returned:
999 * RadioError:NONE
1000 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001001 */
1002 oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
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 Padawe76372492016-10-27 13:20:49 -07001006 *
1007 * Valid errors returned:
1008 * RadioError:NONE
1009 * RadioError:RADIO_NOT_AVAILABLE
1010 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -07001011 * RadioError:SIM_BUSY
1012 * RadioError:NO_MEMORY
1013 * RadioError:SYSTEM_ERR
1014 * RadioError:MODEM_ERR
1015 * RadioError:INTERNAL_ERR
sqian159ec7f2017-04-25 18:00:34 -07001016 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001017 */
1018 oneway setSuppServiceNotificationsResponse(RadioResponseInfo info);
1019
Andreas Huber675ae492017-03-28 14:40:58 -07001020 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001021 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001022 * @param index record index where the message is stored
1023 *
1024 * Valid errors returned:
1025 * RadioError:NONE
1026 * RadioError:SIM_FULL
1027 * RadioError:INVALID_ARGUMENTS
1028 * RadioError:INVALID_SMS_FORMAT
1029 * RadioError:INTERNAL_ERR
1030 * RadioError:MODEM_ERR
1031 * RadioError:ENCODING_ERR
1032 * RadioError:NO_MEMORY
1033 * RadioError:NO_RESOURCES
1034 * RadioError:INVALID_MODEM_STATE
1035 * RadioError:MODE_NOT_SUPPORTED
1036 * RadioError:INVALID_SMSC_ADDRESS
sqian159ec7f2017-04-25 18:00:34 -07001037 * RadioError:RADIO_NOT_AVAILABLE
1038 * RadioError:SYSTEM_ERR
1039 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001040 */
1041 oneway writeSmsToSimResponse(RadioResponseInfo info, int32_t index);
1042
Andreas Huber675ae492017-03-28 14:40:58 -07001043 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001044 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001045 *
1046 * Valid errors returned:
1047 * RadioError:NONE
1048 * RadioError:SIM_FULL
1049 * RadioError:INVALID_ARGUMENTS
1050 * RadioError:NO_MEMORY
1051 * RadioError:REQUEST_RATE_LIMITED
1052 * RadioError:SYSTEM_ERR
1053 * RadioError:MODEM_ERR
1054 * RadioError:NO_SUCH_ENTRY
sqian159ec7f2017-04-25 18:00:34 -07001055 * RadioError:INTERNAL_ERR
1056 * RadioError:RADIO_NOT_AVAILABLE
1057 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001058 */
1059 oneway deleteSmsOnSimResponse(RadioResponseInfo info);
1060
Andreas Huber675ae492017-03-28 14:40:58 -07001061 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001062 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001063 *
1064 * Valid errors returned:
1065 * RadioError:NONE
1066 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001067 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001068 * RadioError:NO_MEMORY
1069 * RadioError:INTERNAL_ERR
1070 * RadioError:SYSTEM_ERR
1071 * RadioError:INVALID_ARGUMENTS
1072 * RadioError:MODEM_ERR
1073 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001074 */
1075 oneway setBandModeResponse(RadioResponseInfo info);
1076
Andreas Huber675ae492017-03-28 14:40:58 -07001077 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001078 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001079 * @param bandModes List of RadioBandMode listing supported modes
1080 *
1081 * Valid errors returned:
1082 * RadioError:NONE
1083 * RadioError:RADIO_NOT_AVAILABLE
1084 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001085 * RadioError:NO_MEMORY
1086 * RadioError:INTERNAL_ERR
1087 * RadioError:SYSTEM_ERR
1088 * RadioError:MODEM_ERR
1089 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001090 */
1091 oneway getAvailableBandModesResponse(RadioResponseInfo info, vec<RadioBandMode> bandModes);
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 Padawe76372492016-10-27 13:20:49 -07001095 * @param commandResponse SAT/USAT response in hexadecimal format
1096 * string starting with first byte of response
1097 *
1098 * Valid errors returned:
1099 * RadioError:NONE
1100 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001101 * RadioError:SIM_BUSY
1102 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -07001103 */
1104 oneway sendEnvelopeResponse(RadioResponseInfo info, string commandResponse);
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 Padawe76372492016-10-27 13:20:49 -07001108 *
1109 * Valid errors returned:
1110 * RadioError:NONE
1111 * RadioError:RADIO_NOT_AVAILABLE
1112 * RadioError:INVALID_ARGUMENTS
1113 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -07001114 */
1115 oneway sendTerminalResponseToSimResponse(RadioResponseInfo info);
Sanket Padawed52335c2016-11-03 16:46:32 -07001116
Andreas Huber675ae492017-03-28 14:40:58 -07001117 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001118 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001119 *
1120 * Valid errors returned:
1121 * RadioError:NONE
1122 * RadioError:RADIO_NOT_AVAILABLE
1123 * RadioError:INVALID_ARGUMENTS
1124 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001125 */
1126 oneway handleStkCallSetupRequestFromSimResponse(RadioResponseInfo info);
1127
Andreas Huber675ae492017-03-28 14:40:58 -07001128 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001129 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001130 *
1131 * Valid errors returned:
1132 * RadioError:NONE
1133 * RadioError:RADIO_NOT_AVAILABLE
1134 * RadioError:INVALID_ARGUMENTS
1135 * RadioError:INVALID_STATE
1136 * RadioError:NO_RESOURCES
1137 * RadioError:NO_MEMORY
1138 * RadioError:SYSTEM_ERR
1139 * RadioError:MODEM_ERR
1140 * RadioError:INTERNAL_ERR
1141 * RadioError:INVALID_CALL_ID
1142 * RadioError:OPERATION_NOT_ALLOWED
sqian159ec7f2017-04-25 18:00:34 -07001143 * RadioError:REQUEST_NOT_SUPPORTED
1144 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001145 */
1146 oneway explicitCallTransferResponse(RadioResponseInfo info);
1147
Andreas Huber675ae492017-03-28 14:40:58 -07001148 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001149 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001150 *
1151 * Valid errors returned:
1152 * RadioError:NONE
1153 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001154 * RadioError:OPERATION_NOT_ALLOWED
1155 * RadioError:MODE_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001156 * RadioError:NO_MEMORY
1157 * RadioError:INTERNAL_ERR
1158 * RadioError:SYSTEM_ERR
1159 * RadioError:INVALID_ARGUMENTS
1160 * RadioError:MODEM_ERR
1161 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001162 */
1163 oneway setPreferredNetworkTypeResponse(RadioResponseInfo info);
1164
Andreas Huber675ae492017-03-28 14:40:58 -07001165 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001166 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001167 * @param nwType RadioPreferredNetworkType defined in types.hal
1168 *
1169 * Valid errors returned:
1170 * RadioError:NONE
1171 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001172 * RadioError:NO_MEMORY
1173 * RadioError:INTERNAL_ERR
1174 * RadioError:SYSTEM_ERR
1175 * RadioError:INVALID_ARGUMENTS
1176 * RadioError:MODEM_ERR
1177 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001178 */
1179 oneway getPreferredNetworkTypeResponse(RadioResponseInfo info,
1180 PreferredNetworkType nwType);
1181
Andreas Huber675ae492017-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
1184 * @param cells Vector of neighboring radio cell
Sanket Padawed52335c2016-11-03 16:46:32 -07001185 *
1186 * Valid errors returned:
1187 * RadioError:NONE
1188 * RadioError:RADIO_NOT_AVAILABLE
1189 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001190 * RadioError:NO_MEMORY
1191 * RadioError:INTERNAL_ERR
1192 * RadioError:SYSTEM_ERR
1193 * RadioError:MODEM_ERR
1194 * RadioError:NO_NETWORK_FOUND
1195 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001196 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001197 oneway getNeighboringCidsResponse(RadioResponseInfo info, vec<NeighboringCell> cells);
Sanket Padawed52335c2016-11-03 16:46:32 -07001198
Andreas Huber675ae492017-03-28 14:40:58 -07001199 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001200 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001201 *
1202 * Valid errors returned:
1203 * RadioError:NONE
1204 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001205 * RadioError:NO_MEMORY
1206 * RadioError:INTERNAL_ERR
1207 * RadioError:SYSTEM_ERR
1208 * RadioError:INVALID_ARGUMENTS
1209 * RadioError:MODEM_ERR
1210 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001211 */
1212 oneway setLocationUpdatesResponse(RadioResponseInfo info);
1213
Andreas Huber675ae492017-03-28 14:40:58 -07001214 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001215 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001216 *
1217 * Valid errors returned:
1218 * RadioError:NONE
1219 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001220 * RadioError:SIM_ABSENT
1221 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001222 */
1223 oneway setCdmaSubscriptionSourceResponse(RadioResponseInfo info);
1224
Andreas Huber675ae492017-03-28 14:40:58 -07001225 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001226 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001227 *
1228 * Valid errors returned:
1229 * RadioError:NONE
1230 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001231 * RadioError:NO_MEMORY
1232 * RadioError:INTERNAL_ERR
1233 * RadioError:SYSTEM_ERR
1234 * RadioError:INVALID_ARGUMENTS
1235 * RadioError:MODEM_ERR
1236 * RadioError:REQUEST_NOT_SUPPORTED
1237 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001238 */
1239 oneway setCdmaRoamingPreferenceResponse(RadioResponseInfo info);
1240
Andreas Huber675ae492017-03-28 14:40:58 -07001241 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001242 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001243 * @param type CdmaRoamingType defined in types.hal
1244 *
1245 * Valid errors returned:
1246 * RadioError:NONE
1247 * RadioError:RADIO_NOT_AVAILABLE
1248 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001249 * RadioError:NO_MEMORY
1250 * RadioError:INTERNAL_ERR
1251 * RadioError:SYSTEM_ERR
1252 * RadioError:MODEM_ERR
1253 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001254 */
1255 oneway getCdmaRoamingPreferenceResponse(RadioResponseInfo info, CdmaRoamingType type);
1256
Andreas Huber675ae492017-03-28 14:40:58 -07001257 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001258 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001259 *
1260 * Valid errors returned:
1261 * RadioError:NONE
1262 * RadioError:RADIO_NOT_AVAILABLE
1263 * RadioError:INVALID_ARGUMENTS
1264 * RadioError:MODEM_ERR
1265 * RadioError:INTERNAL_ERR
1266 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001267 * RadioError:SYSTEM_ERR
1268 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001269 */
1270 oneway setTTYModeResponse(RadioResponseInfo info);
1271
Andreas Huber675ae492017-03-28 14:40:58 -07001272 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001273 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001274 * @param mode TtyMode
1275 *
1276 * Valid errors returned:
1277 * RadioError:NONE
1278 * RadioError:RADIO_NOT_AVAILABLE
1279 * RadioError:INVALID_ARGUMENTS
1280 * RadioError:MODEM_ERR
1281 * RadioError:INTERNAL_ERR
1282 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001283 * RadioError:SYSTEM_ERR
1284 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001285 */
1286 oneway getTTYModeResponse(RadioResponseInfo info, TtyMode mode);
1287
Andreas Huber675ae492017-03-28 14:40:58 -07001288 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001289 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001290 *
1291 * Valid errors returned:
1292 * RadioError:NONE
1293 * RadioError:RADIO_NOT_AVAILABLE
1294 * RadioError:INVALID_ARGUMENTS
1295 * RadioError:MODEM_ERR
1296 * RadioError:INTERNAL_ERR
1297 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001298 * RadioError:SYSTEM_ERR
1299 * RadioError:REQUEST_NOT_SUPPORTED
1300 * RadioError:INVALID_CALL_ID
Sanket Padawed52335c2016-11-03 16:46:32 -07001301 */
1302 oneway setPreferredVoicePrivacyResponse(RadioResponseInfo info);
1303
Andreas Huber675ae492017-03-28 14:40:58 -07001304 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001305 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001306 * @param enable false for Standard Privacy Mode (Public Long Code Mask)
1307 * true for Enhanced Privacy Mode (Private Long Code Mask)
1308 *
1309 * Valid errors:
1310 * RadioError:NONE
1311 * RadioError:RADIO_NOT_AVAILABLE
1312 * RadioError:INVALID_ARGUMENTS
1313 * RadioError:MODEM_ERR
1314 * RadioError:INTERNAL_ERR
1315 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001316 * RadioError:SYSTEM_ERR
1317 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001318 */
1319 oneway getPreferredVoicePrivacyResponse(RadioResponseInfo info, bool enable);
1320
Andreas Huber675ae492017-03-28 14:40:58 -07001321 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07001322 * Response callback for IRadio.sendCDMAFeatureCode()
1323 *
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:NO_MEMORY
1331 * RadioError:INTERNAL_ERR
1332 * RadioError:SYSTEM_ERR
1333 * RadioError:MODEM_ERR
1334 * RadioError:INVALID_CALL_ID
1335 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001336 * RadioError:REQUEST_NOT_SUPPORTED
1337 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001338 */
1339 oneway sendCDMAFeatureCodeResponse(RadioResponseInfo info);
1340
Andreas Huber675ae492017-03-28 14:40:58 -07001341 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001342 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001343 *
1344 * Valid errors returned:
1345 * RadioError:NONE
1346 * RadioError:RADIO_NOT_AVAILABLE
1347 * RadioError:INVALID_ARGUMENTS
1348 * RadioError:NO_MEMORY
1349 * RadioError:INTERNAL_ERR
1350 * RadioError:SYSTEM_ERR
1351 * RadioError:MODEM_ERR
1352 * RadioError:INVALID_CALL_ID
1353 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001354 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001355 */
1356 oneway sendBurstDtmfResponse(RadioResponseInfo info);
1357
Andreas Huber675ae492017-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
Sanket Padawed52335c2016-11-03 16:46:32 -07001360 * @param sms Sms result struct as defined by SendSmsResult in types.hal
1361 *
1362 * Valid errors returned:
1363 * RadioError:NONE
1364 * RadioError:RADIO_NOT_AVAILABLE
1365 * RadioError:INVALID_ARGUMENTS
1366 * RadioError:SMS_SEND_FAIL_RETRY
1367 * RadioError:NETWORK_REJECT
1368 * RadioError:INVALID_STATE
1369 * RadioError:NO_MEMORY
1370 * RadioError:REQUEST_RATE_LIMITED
1371 * RadioError:INVALID_SMS_FORMAT
1372 * RadioError:SYSTEM_ERR
1373 * RadioError:FDN_CHECK_FAILURE
1374 * RadioError:MODEM_ERR
1375 * RadioError:NETWORK_ERR
1376 * RadioError:ENCODING_ERR
1377 * RadioError:INVALID_SMSC_ADDRESS
1378 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -07001379 * RadioError:INTERNAL_ERR
1380 * RadioError:SYSTEM_ERR
1381 * RadioError:REQUEST_NOT_SUPPORTED
1382 * RadioError:OPERATION_NOT_ALLOWED
1383 * RadioError:ENCODING_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001384 */
1385 oneway sendCdmaSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1386
Andreas Huber675ae492017-03-28 14:40:58 -07001387 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001388 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001389 *
1390 * Valid errors returned:
1391 * RadioError:NONE
1392 * RadioError:RADIO_NOT_AVAILABLE
1393 * RadioError:INVALID_ARGUMENTS
1394 * RadioError:NO_SMS_TO_ACK
1395 * RadioError:INVALID_STATE
1396 * RadioError:NO_MEMORY
1397 * RadioError:REQUEST_RATE_LIMITED
1398 * RadioError:SYSTEM_ERR
1399 * RadioError:MODEM_ERR
1400 * RadioError:MODE_NOT_SUPPORTED
1401 * RadioError:NETWORK_NOT_READY
1402 * RadioError:INVALID_MODEM_STATE
sqian159ec7f2017-04-25 18:00:34 -07001403 * RadioError:INTERNAL_ERR
1404 * RadioError:REQUEST_NOT_SUPPORTED
1405 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001406 */
1407 oneway acknowledgeLastIncomingCdmaSmsResponse(RadioResponseInfo info);
1408
Andreas Huber675ae492017-03-28 14:40:58 -07001409 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001410 * @param info Response info struct containing response type, serial no. and error
1411 * @param configs Vector of GSM/WCDMA Cell broadcast configs
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:INVALID_STATE
1418 * RadioError:NO_MEMORY
1419 * RadioError:REQUEST_RATE_LIMITED
1420 * RadioError:SYSTEM_ERR
1421 * RadioError:MODEM_ERR
1422 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001423 * RadioError:INTERNAL_ERR
1424 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001425 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001426 oneway getGsmBroadcastConfigResponse(RadioResponseInfo info,
1427 vec<GsmBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001428
Andreas Huber675ae492017-03-28 14:40:58 -07001429 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001430 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001431 *
1432 * Valid errors returned:
1433 * RadioError:NONE
1434 * RadioError:RADIO_NOT_AVAILABLE
1435 * RadioError:INVALID_ARGUMENTS
1436 * RadioError:INVALID_STATE
1437 * RadioError:NO_MEMORY
1438 * RadioError:REQUEST_RATE_LIMITED
1439 * RadioError:SYSTEM_ERR
1440 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001441 * RadioError:INTERNAL_ERR
1442 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001443 */
1444 oneway setGsmBroadcastConfigResponse(RadioResponseInfo info);
1445
Andreas Huber675ae492017-03-28 14:40:58 -07001446 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001447 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001448 *
1449 * Valid errors returned:
1450 * RadioError:NONE
1451 * RadioError:RADIO_NOT_AVAILABLE
1452 * RadioError:INVALID_ARGUMENTS
1453 * RadioError:INVALID_STATE
1454 * RadioError:NO_MEMORY
1455 * RadioError:REQUEST_RATE_LIMITED
1456 * RadioError:SYSTEM_ERR
1457 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001458 * RadioError:INTERNAL_ERR
1459 * RadioError:REQUEST_NOT_SUPPORTED
1460 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001461 */
1462 oneway setGsmBroadcastActivationResponse(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
1466 * @param configs Vector of CDMA Broadcast SMS configs.
Sanket Padawed52335c2016-11-03 16:46:32 -07001467 *
1468 * Valid errors returned:
1469 * RadioError:NONE
1470 * RadioError:RADIO_NOT_AVAILABLE
1471 * RadioError:INVALID_ARGUMENTS
1472 * RadioError:INVALID_STATE
1473 * RadioError:NO_MEMORY
1474 * RadioError:REQUEST_RATE_LIMITED
1475 * RadioError:SYSTEM_ERR
1476 * RadioError:MODEM_ERR
1477 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001478 * RadioError:INTERNAL_ERR
1479 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001480 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001481 oneway getCdmaBroadcastConfigResponse(RadioResponseInfo info,
1482 vec<CdmaBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001483
Andreas Huber675ae492017-03-28 14:40:58 -07001484 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001485 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001486 *
1487 * Valid errors returned:
1488 * RadioError:NONE
1489 * RadioError:RADIO_NOT_AVAILABLE
1490 * RadioError:INVALID_ARGUMENTS
1491 * RadioError:INVALID_STATE
1492 * RadioError:NO_MEMORY
1493 * RadioError:REQUEST_RATE_LIMITED
1494 * RadioError:SYSTEM_ERR
1495 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001496 * RadioError:INTERNAL_ERR
1497 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001498 */
1499 oneway setCdmaBroadcastConfigResponse(RadioResponseInfo info);
1500
Andreas Huber675ae492017-03-28 14:40:58 -07001501 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001502 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001503 *
1504 * Valid errors returned:
1505 * RadioError:NONE
1506 * RadioError:RADIO_NOT_AVAILABLE
1507 * RadioError:INVALID_ARGUMENTS
1508 * RadioError:INVALID_STATE
1509 * RadioError:NO_MEMORY
1510 * RadioError:REQUEST_RATE_LIMITED
1511 * RadioError:SYSTEM_ERR
1512 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001513 * RadioError:INTERNAL_ERR
1514 * RadioError:REQUEST_NOT_SUPPORTED
1515 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001516 */
1517 oneway setCdmaBroadcastActivationResponse(RadioResponseInfo info);
1518
Andreas Huber675ae492017-03-28 14:40:58 -07001519 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001520 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001521 * @param mdn MDN if CDMA subscription is available
1522 * @param hSid is a comma separated list of H_SID (Home SID) if
1523 * CDMA subscription is available, in decimal format
1524 * @param hNid is a comma separated list of H_NID (Home NID) if
1525 * CDMA subscription is available, in decimal format
1526 * @param min MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
1527 * @param prl PRL version if CDMA subscription is available
1528 *
1529 * Valid errors returned:
1530 * RadioError:NONE
1531 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001532 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001533 * RadioError:NO_MEMORY
1534 * RadioError:INTERNAL_ERR
1535 * RadioError:SYSTEM_ERR
1536 * RadioError:INVALID_ARGUMENTS
1537 * RadioError:MODEM_ERR
1538 * RadioError:NOT_PROVISIONED
1539 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001540 */
1541 oneway getCDMASubscriptionResponse(RadioResponseInfo info, string mdn, string hSid,
1542 string hNid, string min, string prl);
1543
Andreas Huber675ae492017-03-28 14:40:58 -07001544 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001545 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001546 * @param index record index where the cmda sms message is stored
1547 *
1548 * Valid errors returned:
1549 * RadioError:NONE
1550 * RadioError:RADIO_NOT_AVAILABLE
1551 * RadioError:INVALID_ARGUMENTS
1552 * RadioError:INVALID_SMS_FORMAT
1553 * RadioError:SIM_FULL
1554 * RadioError:INTERNAL_ERR
1555 * RadioError:MODEM_ERR
1556 * RadioError:ENCODING_ERR
1557 * RadioError:NO_MEMORY
1558 * RadioError:NO_RESOURCES
1559 * RadioError:INVALID_MODEM_STATE
1560 * RadioError:MODE_NOT_SUPPORTED
1561 * RadioError:INVALID_SMSC_ADDRESS
sqian159ec7f2017-04-25 18:00:34 -07001562 * RadioError:SYSTEM_ERR
1563 * RadioError:REQUEST_NOT_SUPPORTED
1564 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001565 */
1566 oneway writeSmsToRuimResponse(RadioResponseInfo info, uint32_t index);
1567
Andreas Huber675ae492017-03-28 14:40:58 -07001568 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001569 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001570 *
1571 * Valid errors returned:
1572 * RadioError:NONE
1573 * RadioError:RADIO_NOT_AVAILABLE
1574 * RadioError:INVALID_ARGUMENTS
1575 * RadioError:NO_MEMORY
1576 * RadioError:REQUEST_RATE_LIMITED
1577 * RadioError:SYSTEM_ERR
1578 * RadioError:MODEM_ERR
1579 * RadioError:NO_SUCH_ENTRY
sqian159ec7f2017-04-25 18:00:34 -07001580 * RadioError:INTERNAL_ERR
1581 * RadioError:REQUEST_NOT_SUPPORTED
1582 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001583 */
1584 oneway deleteSmsOnRuimResponse(RadioResponseInfo info);
1585
Andreas Huber675ae492017-03-28 14:40:58 -07001586 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001587 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001588 * @param imei IMEI if GSM subscription is available
1589 * @param imeisv IMEISV if GSM subscription is available
1590 * @param esn ESN if CDMA subscription is available
1591 * @param meid MEID if CDMA subscription is available
1592 *
1593 * Valid errors returned:
1594 * RadioError:NONE
1595 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001596 * RadioError:NO_MEMORY
1597 * RadioError:INTERNAL_ERR
1598 * RadioError:SYSTEM_ERR
1599 * RadioError:INVALID_ARGUMENTS
1600 * RadioError:MODEM_ERR
1601 * RadioError:NOT_PROVISIONED
Sanket Padawed52335c2016-11-03 16:46:32 -07001602 *
1603 * If a empty string value is returned for any of the device id, it means that there was error
1604 * accessing the device.
1605 *
1606 */
1607 oneway getDeviceIdentityResponse(RadioResponseInfo info, string imei, string imeisv,
1608 string esn, string meid);
1609
Andreas Huber675ae492017-03-28 14:40:58 -07001610 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001611 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001612 *
1613 * Valid errors returned:
1614 * RadioError:NONE
1615 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001616 * RadioError:OPERATION_NO_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001617 * RadioError:INTERNAL_ERR
1618 * RadioError:NO_MEMORY
1619 * RadioError:SYSTEM_ERR
1620 * RadioError:INVALID_ARGUMENTS
1621 * RadioError:MODEM_ERR
1622 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001623 */
1624 oneway exitEmergencyCallbackModeResponse(RadioResponseInfo info);
1625
Andreas Huber675ae492017-03-28 14:40:58 -07001626 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001627 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001628 * @param smsc Short Message Service Center address on the device
1629 *
1630 * Valid errors returned:
1631 * RadioError:NONE
1632 * RadioError:RADIO_NOT_AVAILABLE
1633 * RadioError:INVALID_ARGUMENTS
1634 * RadioError:INTERNAL_ERR
1635 * RadioError:NO_MEMORY
1636 * RadioError:SYSTEM_ERR
1637 * RadioError:REQUEST_RATE_LIMITED
1638 * RadioError:MODEM_ERR
1639 * RadioError:INVALID_MODEM_STATE
1640 * RadioError:NOT_PROVISIONED
sqian159ec7f2017-04-25 18:00:34 -07001641 * RadioError:REQUEST_NOT_SUPPORTED
1642 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001643 */
1644 oneway getSmscAddressResponse(RadioResponseInfo info, string smsc);
1645
Andreas Huber675ae492017-03-28 14:40:58 -07001646 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001647 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001648 *
1649 * Valid errors returned:
1650 * RadioError:NONE
1651 * RadioError:RADIO_NOT_AVAILABLE
1652 * RadioError:INVALID_ARGUMENTS
1653 * RadioError:INVALID_SMS_FORMAT
1654 * RadioError:NO_MEMORY
1655 * RadioError:SYSTEM_ERR
1656 * RadioError:REQUEST_RATE_LIMITED
1657 * RadioError:MODEM_ERR
1658 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001659 * RadioError:INTERNAL_ERR
1660 * RadioError:REQUEST_NOT_SUPPORTED
1661 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001662 */
1663 oneway setSmscAddressResponse(RadioResponseInfo info);
1664
Andreas Huber675ae492017-03-28 14:40:58 -07001665 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001666 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001667 *
1668 * Valid errors returned:
1669 * RadioError:NONE
1670 * RadioError:RADIO_NOT_AVAILABLE
1671 * RadioError:INVALID_ARGUMENTS
1672 * RadioError:NO_MEMORY
1673 * RadioError:SYSTEM_ERR
1674 * RadioError:REQUEST_RATE_LIMITED
1675 * RadioError:MODEM_ERR
1676 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001677 * RadioError:INTERNAL_ERR
1678 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001679 */
1680 oneway reportSmsMemoryStatusResponse(RadioResponseInfo info);
1681
Andreas Huber675ae492017-03-28 14:40:58 -07001682 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001683 * @param info Response info struct containing response type, serial no. and error
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001684 *
1685 * Valid errors returned:
1686 * RadioError:NONE
1687 * RadioError:RADIO_NOT_AVAILABLE
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001688 */
1689 oneway reportStkServiceIsRunningResponse(RadioResponseInfo info);
1690
Andreas Huber675ae492017-03-28 14:40:58 -07001691 /**
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001692 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001693 * @param source CDMA subscription source
1694 *
1695 * Valid errors returned:
1696 * RadioError:NONE
1697 * RadioError:RADIO_NOT_AVAILABLE
1698 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001699 */
1700 oneway getCdmaSubscriptionSourceResponse(RadioResponseInfo info, CdmaSubscriptionSource source);
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 response response string of the challenge/response algo for ISIM auth in base64 format
1705 *
1706 * Valid errors returned:
1707 * RadioError:NONE
1708 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001709 */
1710 oneway requestIsimAuthenticationResponse(RadioResponseInfo info, string response);
1711
Andreas Huber675ae492017-03-28 14:40:58 -07001712 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001713 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001714 *
1715 * Valid errors returned:
1716 * RadioError:NONE
1717 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001718 */
1719 oneway acknowledgeIncomingGsmSmsWithPduResponse(RadioResponseInfo info);
1720
Andreas Huber675ae492017-03-28 14:40:58 -07001721 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001722 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001723 * @param iccIo IccIoResult as defined in types.hal corresponding to ICC IO response
1724 *
1725 * Valid errors returned:
1726 * RadioError:NONE
1727 * RadioError:RADIO_NOT_AVAILABLE
1728 * RadioError:SIM_BUSY
1729 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001730 */
1731 oneway sendEnvelopeWithStatusResponse(RadioResponseInfo info, IccIoResult iccIo);
1732
Andreas Huber675ae492017-03-28 14:40:58 -07001733 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001734 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001735 * @param rat Current voice RAT
1736 *
1737 * Valid errors returned:
1738 * RadioError:NONE
1739 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001740 */
1741 oneway getVoiceRadioTechnologyResponse(RadioResponseInfo info, RadioTechnology rat);
1742
Andreas Huber675ae492017-03-28 14:40:58 -07001743 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001744 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001745 * @param cellInfo List of current cell information known to radio
1746 *
1747 * Valid errors returned:
1748 * RadioError:NONE
1749 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001750 * RadioError:NO_MEMORY
1751 * RadioError:INTERNAL_ERR
1752 * RadioError:SYSTEM_ERR
1753 * RadioError:MODEM_ERR
1754 * RadioError:NO_NETWORK_FOUND
1755 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001756 */
1757 oneway getCellInfoListResponse(RadioResponseInfo info, vec<CellInfo> cellInfo);
1758
Andreas Huber675ae492017-03-28 14:40:58 -07001759 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001760 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001761 *
1762 * Valid errors returned:
1763 * RadioError:NONE
1764 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001765 * RadioError:NO_MEMORY
1766 * RadioError:INTERNAL_ERR
1767 * RadioError:SYSTEM_ERR
1768 * RadioError:INVALID_ARGUMENTS
Sanket Padawed52335c2016-11-03 16:46:32 -07001769 */
1770 oneway setCellInfoListRateResponse(RadioResponseInfo info);
1771
Andreas Huber675ae492017-03-28 14:40:58 -07001772 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001773 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001774 *
1775 * Valid errors returned:
1776 * RadioError:NONE
1777 * RadioError:RADIO_NOT_AVAILABLE
1778 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001779 * RadioError:NO_MEMORY
1780 * RadioError:INTERNAL_ERR
1781 * RadioError:SYSTEM_ERR
1782 * RadioError:MODEM_ERR
1783 * RadioError:INVALID_ARGUMENTS
1784 * RadioError:NOT_PROVISIONED
1785 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001786 */
1787 oneway setInitialAttachApnResponse(RadioResponseInfo info);
1788
Andreas Huber675ae492017-03-28 14:40:58 -07001789 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001790 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001791 * @param isRegistered false = not registered, true = registered
1792 * @param ratFamily RadioTechnologyFamily as defined in types.hal. This value is valid only if
1793 * isRegistered is true.
1794 *
1795 * Valid errors returned:
1796 * RadioError:NONE
1797 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001798 */
1799 oneway getImsRegistrationStateResponse(RadioResponseInfo info, bool isRegistered,
1800 RadioTechnologyFamily ratFamily);
1801
Andreas Huber675ae492017-03-28 14:40:58 -07001802 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001803 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001804 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
1805 *
1806 * Valid errors returned:
1807 * RadioError:NONE
1808 * RadioError:RADIO_NOT_AVAILABLE
1809 * RadioError:SMS_SEND_FAIL_RETRY
1810 * RadioError:FDN_CHECK_FAILURE
1811 * RadioError:NETWORK_REJECT
1812 * RadioError:INVALID_ARGUMENTS
1813 * RadioError:INVALID_STATE
1814 * RadioError:NO_MEMORY
1815 * RadioError:INVALID_SMS_FORMAT
1816 * RadioError:SYSTEM_ERR
1817 * RadioError:REQUEST_RATE_LIMITED
1818 * RadioError:MODEM_ERR
1819 * RadioError:NETWORK_ERR
1820 * RadioError:ENCODING_ERR
1821 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -07001822 * RadioError:INTERNAL_ERR
1823 * RadioError:REQUEST_NOT_SUPPORTED
1824 * RadioError:NETWORK_NOT_READY
Sanket Padawed52335c2016-11-03 16:46:32 -07001825 */
1826 oneway sendImsSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1827
Andreas Huber675ae492017-03-28 14:40:58 -07001828 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001829 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001830 * @param result IccIoResult as defined in types.hal
1831 *
1832 * Valid errors returned:
1833 * RadioError:NONE
1834 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001835 */
1836 oneway iccTransmitApduBasicChannelResponse(RadioResponseInfo info, IccIoResult result);
1837
Andreas Huber675ae492017-03-28 14:40:58 -07001838 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001839 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001840 * @param channelId session id of the logical channel.
1841 * @param selectResponse Contains the select response for the open channel command with one
1842 * byte per integer
1843 *
1844 * Valid errors returned:
1845 * RadioError:NONE
1846 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001847 * RadioError:MISSING_RESOURCE
1848 * RadioError:NO_SUCH_ELEMENT
1849 */
1850 oneway iccOpenLogicalChannelResponse(RadioResponseInfo info, int32_t channelId,
1851 vec<int8_t> selectResponse);
1852
Andreas Huber675ae492017-03-28 14:40:58 -07001853 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001854 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001855 *
1856 * Valid errors returned:
1857 * RadioError:NONE
1858 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001859 */
1860 oneway iccCloseLogicalChannelResponse(RadioResponseInfo info);
1861
Andreas Huber675ae492017-03-28 14:40:58 -07001862 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001863 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001864 * @param result IccIoResult as defined in types.hal
1865 *
1866 * Valid errors returned:
1867 * RadioError:NONE
1868 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001869 */
1870 oneway iccTransmitApduLogicalChannelResponse(RadioResponseInfo info, IccIoResult result);
1871
Andreas Huber675ae492017-03-28 14:40:58 -07001872 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001873 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001874 * @param result string containing the contents of the NV item
1875 *
1876 * Valid errors returned:
1877 * RadioError:NONE
1878 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001879 */
1880 oneway nvReadItemResponse(RadioResponseInfo info, string result);
1881
Andreas Huber675ae492017-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 *
1885 * Valid errors returned:
1886 * RadioError:NONE
1887 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001888 */
1889 oneway nvWriteItemResponse(RadioResponseInfo info);
1890
Andreas Huber675ae492017-03-28 14:40:58 -07001891 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001892 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001893 *
1894 * Valid errors returned:
1895 * RadioError:NONE
1896 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001897 */
1898 oneway nvWriteCdmaPrlResponse(RadioResponseInfo info);
1899
Andreas Huber675ae492017-03-28 14:40:58 -07001900 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001901 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001902 *
1903 * Valid errors returned:
1904 * RadioError:NONE
1905 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001906 */
1907 oneway nvResetConfigResponse(RadioResponseInfo info);
1908
Andreas Huber675ae492017-03-28 14:40:58 -07001909 /**
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 *
1912 * Valid errors returned:
1913 * RadioError:NONE
1914 * RadioError:RADIO_NOT_AVAILABLE
1915 * RadioError:SUBSCRIPTION_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001916 * RadioError:NO_MEMORY
1917 * RadioError:INTERNAL_ERR
1918 * RadioError:SYSTEM_ERR
1919 * RadioError:MODEM_ERR
1920 * RadioError:INVALID_ARGUMENTS
1921 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001922 */
1923 oneway setUiccSubscriptionResponse(RadioResponseInfo info);
1924
Andreas Huber675ae492017-03-28 14:40:58 -07001925 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001926 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001927 *
1928 * Valid errors returned:
1929 * RadioError:NONE
1930 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001931 * RadioError:NO_MEMORY
1932 * RadioError:INTERNAL_ERR
1933 * RadioError:SYSTEM_ERR
1934 * RadioError:MODEM_ERR
1935 * RadioError:INVALID_ARGUMENTS
1936 * RadioError:DEVICE_IN_USE
1937 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001938 */
1939 oneway setDataAllowedResponse(RadioResponseInfo info);
1940
Andreas Huber675ae492017-03-28 14:40:58 -07001941 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001942 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001943 * @param config Array of HardwareConfig of the radio.
1944 *
1945 * Valid errors returned:
1946 * RadioError:NONE
1947 * RadioError:RADIO_NOT_AVAILABLE
1948 */
1949 oneway getHardwareConfigResponse(RadioResponseInfo info, vec<HardwareConfig> config);
1950
Andreas Huber675ae492017-03-28 14:40:58 -07001951 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001952 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001953 * @param result IccIoResult as defined in types.hal
1954 *
1955 * Valid errors returned:
1956 * RadioError:NONE
1957 * RadioError:RADIO_NOT_AVAILABLE
1958 */
1959 oneway requestIccSimAuthenticationResponse(RadioResponseInfo info, IccIoResult result);
1960
Andreas Huber675ae492017-03-28 14:40:58 -07001961 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001962 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001963 *
1964 * Valid errors returned:
1965 * RadioError:NONE
1966 * RadioError:RADIO_NOT_AVAILABLE
1967 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1968 */
1969 oneway setDataProfileResponse(RadioResponseInfo info);
1970
Andreas Huber675ae492017-03-28 14:40:58 -07001971 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001972 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001973 *
1974 * Valid errors returned:
1975 * RadioError:NONE
1976 * RadioError:RADIO_NOT_AVAILABLE
1977 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001978 * RadioError:NO_MEMORY
1979 * RadioError:INTERNAL_ERR
1980 * RadioError:SYSTEM_ERR
1981 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001982 */
1983 oneway requestShutdownResponse(RadioResponseInfo info);
1984
Andreas Huber675ae492017-03-28 14:40:58 -07001985 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001986 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001987 * @param rc Radio capability as defined by RadioCapability in types.hal
1988 *
1989 * Valid errors returned:
1990 * RadioError:NONE
1991 * RadioError:RADIO_NOT_AVAILABLE
1992 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001993 * RadioError:INVALID_STATE
1994 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001995 */
1996 oneway getRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
1997
Andreas Huber675ae492017-03-28 14:40:58 -07001998 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001999 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002000 * @param rc Radio capability as defined by RadioCapability in types.hal used to
2001 * feedback return status
2002 *
2003 * Valid errors returned:
2004 * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds.
2005 * RadioError:RADIO_NOT_AVAILABLE
2006 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002007 * RadioError:NO_MEMORY
2008 * RadioError:INTERNAL_ERR
2009 * RadioError:SYSTEM_ERR
2010 * RadioError:INVALID_ARGUMENTS
2011 * RadioError:MODEM_ERR
2012 * RadioError:INVALID_STATE
2013 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002014 */
2015 oneway setRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
2016
Andreas Huber675ae492017-03-28 14:40:58 -07002017 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002018 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002019 * @param statusInfo LceStatusInfo indicating LCE status
2020 *
2021 * Valid errors returned:
2022 * RadioError:NONE
2023 * RadioError:RADIO_NOT_AVAILABLE
2024 * RadioError:LCE_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002025 * RadioError:INTERNAL_ERR
2026 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002027 */
2028 oneway startLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
2029
Andreas Huber675ae492017-03-28 14:40:58 -07002030 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002031 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002032 * @param statusInfo LceStatusInfo indicating LCE status
2033 *
2034 * Valid errors returned:
2035 * RadioError:NONE
2036 * RadioError:RADIO_NOT_AVAILABLE
2037 * RadioError:LCE_NOT_SUPPORTED
2038 */
2039 oneway stopLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
2040
Andreas Huber675ae492017-03-28 14:40:58 -07002041 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002042 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002043 * @param lceInfo LceDataInfo indicating LCE data as defined in types.hal
2044 *
2045 * Valid errors returned:
2046 * RadioError:NONE
2047 * RadioError:RADIO_NOT_AVAILABLE
2048 * RadioError:LCE_NOT_SUPPORTED
2049 */
2050 oneway pullLceDataResponse(RadioResponseInfo info, LceDataInfo lceInfo);
2051
Andreas Huber675ae492017-03-28 14:40:58 -07002052 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002053 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002054 * @param activityInfo modem activity information
2055 *
2056 * Valid errors returned:
2057 * RadioError:NONE
2058 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002059 * RadioError:NO_MEMORY
2060 * RadioError:INTERNAL_ERR
2061 * RadioError:SYSTEM_ERR
2062 * RadioError:MODEM_ERR
2063 * RadioError:NOT_PROVISIONED
Sanket Padawed52335c2016-11-03 16:46:32 -07002064 */
2065 oneway getModemActivityInfoResponse(RadioResponseInfo info, ActivityStatsInfo activityInfo);
2066
Andreas Huber675ae492017-03-28 14:40:58 -07002067 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002068 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002069 * @param numAllowed number of allowed carriers which have been set correctly.
2070 * On success, it must match the length of list Carriers->allowedCarriers.
2071 * if Length of allowed carriers list is 0, numAllowed = 0.
2072 *
2073 * Valid errors returned:
2074 * RadioError:NONE
2075 * RadioError:RADIO_NOT_AVAILABLE
2076 * RadioError:INVALID_ARGUMENTS
2077 * RadioError:REQUEST_NOT_SUPPORTED
2078 */
2079 oneway setAllowedCarriersResponse(RadioResponseInfo info, int32_t numAllowed);
2080
Andreas Huber675ae492017-03-28 14:40:58 -07002081 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07002082 * Expected modem behavior:
2083 * Return list of allowed carriers, and if all carriers are allowed.
2084 *
Sanket Padawe865834e2016-12-28 16:04:10 -08002085 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002086 * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct.
2087 * If false, consider "carriers" struct
2088 * @param carriers Carrier restriction information.
2089 *
2090 * Valid errors returned:
2091 * RadioError:NONE
2092 * RadioError:RADIO_NOT_AVAILABLE
2093 * RadioError:REQUEST_NOT_SUPPORTED
2094 */
2095 oneway getAllowedCarriersResponse(RadioResponseInfo info, bool allAllowed,
2096 CarrierRestrictions carriers);
Sanket Padawe1a7eae72016-12-07 14:40:03 -08002097
Andreas Huber675ae492017-03-28 14:40:58 -07002098 /**
Jack Yued7ef812017-01-24 11:56:52 -08002099 * @param info Response info struct containing response type, serial no. and error
2100 *
2101 * Valid errors returned:
2102 * RadioError:NONE
2103 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002104 * RadioError:NO_MEMORY
2105 * RadioError:INTERNAL_ERR
2106 * RadioError:SYSTEM_ERR
2107 * RadioError:INVALID_ARGUMENTS
2108 * RadioError:REQUEST_NOT_SUPPORTED
Jack Yued7ef812017-01-24 11:56:52 -08002109 */
2110 oneway sendDeviceStateResponse(RadioResponseInfo info);
2111
Andreas Huber675ae492017-03-28 14:40:58 -07002112 /**
Jack Yued7ef812017-01-24 11:56:52 -08002113 * @param info Response info struct containing response type, serial no. and error
2114 *
2115 * Valid errors returned:
2116 * RadioError:NONE
2117 * RadioError:INVALID_ARGUMENTS
2118 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002119 * RadioError:NO_MEMORY
2120 * RadioError:INTERNAL_ERR
2121 * RadioError:SYSTEM_ERR
2122 * RadioError:REQUEST_NOT_SUPPORTED
Jack Yued7ef812017-01-24 11:56:52 -08002123 */
2124 oneway setIndicationFilterResponse(RadioResponseInfo info);
2125
Andreas Huber675ae492017-03-28 14:40:58 -07002126 /**
Jack Yua2118692017-02-15 15:31:34 -08002127 * @param info Response info struct containing response type, serial no. and error
2128 *
2129 * Valid errors returned:
2130 * RadioError:NONE
2131 * RadioError:RADIO_NOT_AVAILABLE
2132 * RadioError:REQUEST_NOT_SUPPORTED
Jack Yua2118692017-02-15 15:31:34 -08002133 * RadioError:INVALID_ARGUMENTS
2134 */
2135 oneway setSimCardPowerResponse(RadioResponseInfo info);
2136
Andreas Huber675ae492017-03-28 14:40:58 -07002137 /**
Jack Yued7ef812017-01-24 11:56:52 -08002138 * Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
Sanket Padawe1a7eae72016-12-07 14:40:03 -08002139 * radio request which take long time to respond.
2140 * For more details, refer https://source.android.com/devices/tech/connect/ril.html
2141 *
2142 * @param serial Serial no. of the request whose acknowledgement is sent.
2143 */
Sanket Padawe865834e2016-12-28 16:04:10 -08002144 oneway acknowledgeRequest(int32_t serial);
Sanket Padawe76372492016-10-27 13:20:49 -07002145};