blob: 4a9be598094a8e1b6da02f4859cade0a5e88c38d [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:PASSWORD_INCORRECT (code is invalid)
sqian284c53c2017-05-16 20:29:19 -0700106 * RadioError:NO_MEMORY
107 * RadioError:INVALID_SIM_STATE
108 * RadioError:INTERNAL_ERR
109 * RadioError:SYSTEM_ERR
110 * RadioError:MODEM_ERR
111 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700112 */
113 oneway supplyNetworkDepersonalizationResponse(RadioResponseInfo info, int32_t remainingRetries);
114
Andreas Huber675ae492017-03-28 14:40:58 -0700115 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800116 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700117 * @param calls Current call list
118 *
119 * Valid errors returned:
120 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700121 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700122 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -0700123 * RadioError:INTERNAL_ERR
124 * RadioError:SYSTEM_ERR
125 * RadioError:INVALID_ARGUMENTS
126 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700127 */
128 oneway getCurrentCallsResponse(RadioResponseInfo info, vec<Call> calls);
129
Andreas Huber675ae492017-03-28 14:40:58 -0700130 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800131 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700132 *
133 * Valid errors returned:
134 * RadioError:NONE
135 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700136 * RadioError:DIAL_MODIFIED_TO_USSD
137 * RadioError:DIAL_MODIFIED_TO_SS
138 * RadioError:DIAL_MODIFIED_TO_DIAL
139 * RadioError:INVALID_ARGUMENTS
140 * RadioError:NO_MEMORY
141 * RadioError:INVALID_STATE
142 * RadioError:NO_RESOURCES
143 * RadioError:INTERNAL_ERR
144 * RadioError:FDN_CHECK_FAILURE
145 * RadioError:MODEM_ERR
146 * RadioError:NO_SUBSCRIPTION
147 * RadioError:NO_NETWORK_FOUND
148 * RadioError:INVALID_CALL_ID
149 * RadioError:DEVICE_IN_USE
150 * RadioError:MODE_NOT_SUPPORTED
151 * RadioError:ABORTED
sqian159ec7f2017-04-25 18:00:34 -0700152 * RadioError:SYSTEM_ERR
153 * RadioError:REQUEST_NOT_SUPPORTED
154 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700155 */
156 oneway dialResponse(RadioResponseInfo info);
157
Andreas Huber675ae492017-03-28 14:40:58 -0700158 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800159 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700160 * @param imsi String containing the IMSI
161 *
162 * Valid errors returned:
163 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700164 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
Sanket Padawe76372492016-10-27 13:20:49 -0700165 */
166 oneway getIMSIForAppResponse(RadioResponseInfo info, string imsi);
167
Andreas Huber675ae492017-03-28 14:40:58 -0700168 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800169 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700170 *
171 * Valid errors returned:
172 * RadioError:NONE
173 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
174 * RadioError:INVALID_ARGUMENTS
175 * RadioError:NO_MEMORY
176 * RadioError:INVALID_STATE
177 * RadioError:MODEM_ERR
178 * RadioError:INTERNAL_ERR
179 * RadioError:INVALID_CALL_ID
Sanket Padawe76372492016-10-27 13:20:49 -0700180 */
181 oneway hangupConnectionResponse(RadioResponseInfo info);
182
Andreas Huber675ae492017-03-28 14:40:58 -0700183 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800184 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700185 *
186 * Valid errors returned:
187 * RadioError:NONE
188 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
189 * RadioError:INVALID_STATE
190 * RadioError:NO_MEMORY
191 * RadioError:MODEM_ERR
192 * RadioError:INTERNAL_ERR
193 * RadioError:INVALID_CALL_ID
194 * RadioError:NO_RESOURCES
195 * RadioError:OPERATION_NOT_ALLOWED
196 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700197 * RadioError:SYSTEM_ERR
198 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700199 */
200 oneway hangupWaitingOrBackgroundResponse(RadioResponseInfo info);
201
Andreas Huber675ae492017-03-28 14:40:58 -0700202 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800203 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700204 *
205 * Valid errors returned:
206 * RadioError:NONE
207 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
208 * RadioError:INVALID_STATE
209 * RadioError:NO_MEMORY
210 * RadioError:MODEM_ERR
211 * RadioError:INTERNAL_ERR
212 * RadioError:INVALID_CALL_ID
213 * RadioError:NO_RESOURCES
214 * RadioError:OPERATION_NOT_ALLOWED
215 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700216 * RadioError:SYSTEM_ERR
217 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700218 */
219 oneway hangupForegroundResumeBackgroundResponse(RadioResponseInfo info);
220
Andreas Huber675ae492017-03-28 14:40:58 -0700221 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800222 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700223 *
224 * Valid errors returned:
225 * RadioError:NONE
226 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
227 * RadioError:INVALID_STATE
228 * RadioError:NO_MEMORY
229 * RadioError:MODEM_ERR
230 * RadioError:INTERNAL_ERR
231 * RadioError:INVALID_STATE
232 * RadioError:INVALID_CALL_ID
233 * RadioError:OPERATION_NOT_ALLOWED
234 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700235 * RadioError:SYSTEM_ERR
236 * RadioError:REQUEST_NOT_SUPPORTED
237 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700238 */
239 oneway switchWaitingOrHoldingAndActiveResponse(RadioResponseInfo info);
240
Andreas Huber675ae492017-03-28 14:40:58 -0700241 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800242 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700243 *
244 * Valid errors returned:
245 * RadioError:NONE
246 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
247 * RadioError:NO_MEMORY
248 * RadioError:MODEM_ERR
249 * RadioError:INTERNAL_ERR
250 * RadioError:INVALID_STATE
251 * RadioError:INVALID_CALL_ID
252 * RadioError:OPERATION_NOT_ALLOWED
253 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700254 * RadioError:SYSTEM_ERR
255 * RadioError:REQUEST_NOT_SUPPORTED
256 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700257 */
258 oneway conferenceResponse(RadioResponseInfo info);
259
Andreas Huber675ae492017-03-28 14:40:58 -0700260 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800261 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700262 *
263 * Valid errors returned:
264 * RadioError:NONE
265 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
266 * RadioError:INVALID_STATE
267 * RadioError:NO_RESOURCES
268 * RadioError:NO_MEMORY
269 * RadioError:MODEM_ERR
270 * RadioError:INTERNAL_ERR
271 * RadioError:INVALID_CALL_ID
272 * RadioError:OPERATION_NOT_ALLOWED
273 * RadioError:INVALID_ARGUMENTS
sqian159ec7f2017-04-25 18:00:34 -0700274 * RadioError:SYSTEM_ERR
275 * RadioError:REQUEST_NOT_SUPPORTED
276 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700277 */
278 oneway rejectCallResponse(RadioResponseInfo info);
279
Andreas Huber675ae492017-03-28 14:40:58 -0700280 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800281 * @param info Response info struct containing response type, serial no. and error
Jayachandran Ca03c0c62017-03-13 17:00:33 -0700282 * @param failCauseInfo Contains LastCallFailCause and vendor cause code.
Sanket Padawe76372492016-10-27 13:20:49 -0700283 *
Jayachandran Ca03c0c62017-03-13 17:00:33 -0700284 * The vendor cause code must be used for debugging purpose only.
285 * The implementation must return one of the values of LastCallFailCause
286 * as mentioned below
287 *
288 * GSM failure reasons codes for the cause codes defined in TS 24.008 Annex H
289 * where possible.
290 * CDMA failure reasons codes for the possible call failure scenarios
291 * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard.
292 * Any of the following reason codes if the call is failed or dropped due to reason
293 * mentioned with in the braces.
294 * LastCallFailCause:RADIO_OFF (Radio is OFF)
295 * LastCallFailCause:OUT_OF_SERVICE (No cell coverage)
296 * LastCallFailCause:NO_VALID_SIM (No valid SIM)
297 * LastCallFailCause:RADIO_INTERNAL_ERROR (Modem hit unexpected error scenario)
298 * LastCallFailCause:NETWORK_RESP_TIMEOUT (No response from network)
299 * LastCallFailCause:NETWORK_REJECT (Explicit network reject)
300 * LastCallFailCause:RADIO_ACCESS_FAILURE (RRC connection failure. Eg.RACH)
301 * LastCallFailCause:RADIO_LINK_FAILURE (Radio Link Failure)
302 * LastCallFailCause:RADIO_LINK_LOST (Radio link lost due to poor coverage)
303 * LastCallFailCause:RADIO_UPLINK_FAILURE (Radio uplink failure)
304 * LastCallFailCause:RADIO_SETUP_FAILURE (RRC connection setup failure)
305 * LastCallFailCause:RADIO_RELEASE_NORMAL (RRC connection release, normal)
306 * LastCallFailCause:RADIO_RELEASE_ABNORMAL (RRC connection release, abnormal)
307 * LastCallFailCause:ACCESS_CLASS_BLOCKED (Access class barring)
308 * LastCallFailCause:NETWORK_DETACH (Explicit network detach)
309 * OEM causes (LastCallFailCause:OEM_CAUSE_XX) must be used for debug purpose only
Sanket Padawe76372492016-10-27 13:20:49 -0700310 *
311 * If the implementation does not have access to the exact cause codes,
312 * then it must return one of the values listed in LastCallFailCause,
313 * as the UI layer needs to distinguish these cases for tone generation or
314 * error notification.
315 *
316 * Valid errors returned:
317 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700318 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -0700319 * RadioError:RADIO_NOT_AVAILABLE
320 * RadioError:SYSTEM_ERR
321 * RadioError:INVALID_ARGUMENTS
322 * RadioError:INTERNAL_ERR
323 * RadioError:MODEM_ERR
324 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700325 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800326 oneway getLastCallFailCauseResponse(RadioResponseInfo info,
327 LastCallFailCauseInfo failCauseinfo);
Sanket Padawe76372492016-10-27 13:20:49 -0700328
Andreas Huber675ae492017-03-28 14:40:58 -0700329 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800330 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700331 * @param sigStrength Current signal strength
332 *
333 * Valid errors returned:
334 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700335 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700336 * RadioError:NO_MEMORY
337 * RadioError:INTERNAL_ERR
338 * RadioError:SYSTEM_ERR
339 * RadioError:MODEM_ERR
340 * RadioError:NOT_PROVISIONED
341 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700342 */
343 oneway getSignalStrengthResponse(RadioResponseInfo info, SignalStrength sigStrength);
344
Andreas Huber675ae492017-03-28 14:40:58 -0700345 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800346 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700347 * @param voiceRegResponse Current Voice registration response as defined by VoiceRegStateResult
348 * in types.hal
349 *
350 * Valid errors returned:
351 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700352 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700353 */
354 oneway getVoiceRegistrationStateResponse(RadioResponseInfo info,
355 VoiceRegStateResult voiceRegResponse);
356
Andreas Huber675ae492017-03-28 14:40:58 -0700357 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800358 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700359 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
360 * types.hal
361 *
362 * Valid errors returned:
363 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700364 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700365 * RadioError:NO_MEMORY
366 * RadioError:INTERNAL_ERR
367 * RadioError:SYSTEM_ERR
368 * RadioError:MODEM_ERR
369 * RadioError:NOT_PROVISIONED
370 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700371 */
372 oneway getDataRegistrationStateResponse(RadioResponseInfo info,
373 DataRegStateResult dataRegResponse);
374
Andreas Huber675ae492017-03-28 14:40:58 -0700375 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800376 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700377 * @param longName is long alpha ONS or EONS or empty string if unregistered
378 * @param shortName is short alpha ONS or EONS or empty string if unregistered
379 * @param numeric is 5 or 6 digit numeric code (MCC + MNC) or empty string if unregistered
380 *
381 * Valid errors returned:
382 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700383 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700384 * RadioError:NO_MEMORY
385 * RadioError:INTERNAL_ERR
386 * RadioError:SYSTEM_ERR
387 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700388 */
389 oneway getOperatorResponse(RadioResponseInfo info, string longName, string shortName,
390 string numeric);
391
Andreas Huber675ae492017-03-28 14:40:58 -0700392 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800393 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700394 *
395 * Valid errors returned:
396 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700397 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700398 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700399 * RadioError:INVALID_STATE
400 * RadioError:NO_MEMORY
401 * RadioError:INTERNAL_ERR
402 * RadioError:SYSTEM_ERR
403 * RadioError:INVALID_ARGUMENTS
404 * RadioError:MODEM_ERR
405 * RadioError:DEVICE_IN_USE
406 * RadioError:OPERATION_NOT_ALLOWED
407 * RadioError:INVALID_MODEM_STATE
408 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700409 */
410 oneway setRadioPowerResponse(RadioResponseInfo info);
411
Andreas Huber675ae492017-03-28 14:40:58 -0700412 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800413 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700414 *
415 * Valid errors returned:
416 * RadioError:NONE
417 * RadioError:RADIO_NOT_AVAILABLE
418 * RadioError:INVALID_ARGUMENTS
419 * RadioError:NO_RESOURCES
420 * RadioError:NO_MEMORY
421 * RadioError:MODEM_ERR
422 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700423 * RadioError:INTERNAL_ERR
424 * RadioError:SYSTEM_ERR
425 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700426 */
427 oneway sendDtmfResponse(RadioResponseInfo info);
428
Andreas Huber675ae492017-03-28 14:40:58 -0700429 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800430 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700431 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
432 *
433 * Valid errors returned:
434 * RadioError:NONE
435 * RadioError:RADIO_NOT_AVAILABLE
436 * RadioError:SMS_SEND_FAIL_RETRY
437 * RadioError:NETWORK_REJECT
438 * RadioError:INVALID_STATE
439 * RadioError:INVALID_ARGUMENTS
440 * RadioError:NO_MEMORY
441 * RadioError:REQUEST_RATE_LIMITED
442 * RadioError:INVALID_SMS_FORMAT
443 * RadioError:SYSTEM_ERR
444 * RadioError:ENCODING_ERR
445 * RadioError:INVALID_SMSC_ADDRESS
446 * RadioError:MODEM_ERR
447 * RadioError:NETWORK_ERR
448 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -0700449 * RadioError:INTERNAL_ERR
450 * RadioError:REQUEST_NOT_SUPPORTED
451 * RadioError:INVALID_MODEM_STATE
452 * RadioError:NETWORK_NOT_READY
453 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700454 */
455 oneway sendSmsResponse(RadioResponseInfo info, SendSmsResult sms);
456
Andreas Huber675ae492017-03-28 14:40:58 -0700457 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800458 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700459 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
460 *
461 * Valid errors returned:
462 * RadioError:NONE
463 * RadioError:RADIO_NOT_AVAILABLE
464 * RadioError:SMS_SEND_FAIL_RETRY
465 * RadioError:NETWORK_REJECT
466 * RadioError:INVALID_STATE
467 * RadioError:INVALID_ARGUMENTS
468 * RadioError:NO_MEMORY
469 * RadioError:REQUEST_RATE_LIMITED
470 * RadioError:INVALID_SMS_FORMAT
471 * RadioError:SYSTEM_ERR
472 * RadioError:FDN_CHECK_FAILURE
473 * RadioError:ENCODING_ERR
474 * RadioError:INVALID_SMSC_ADDRESS
475 * RadioError:MODEM_ERR
476 * RadioError:NETWORK_ERR
477 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -0700478 * RadioError:INTERNAL_ERR
479 * RadioError:REQUEST_NOT_SUPPORTED
480 * RadioError:INVALID_MODEM_STATE
481 * RadioError:NETWORK_NOT_READY
482 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -0700483 */
484 oneway sendSMSExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
485
Andreas Huber675ae492017-03-28 14:40:58 -0700486 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800487 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700488 * @param dcResponse SetupDataCallResult defined in types.hal
489 *
490 * Valid errors returned:
491 * RadioError:NONE must be returned on both success and failure of setup with the
492 * DataCallResponse.status containing the actual status
493 * For all other errors the DataCallResponse is ignored.
Sanket Padawe76372492016-10-27 13:20:49 -0700494 * RadioError:RADIO_NOT_AVAILABLE
495 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
496 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
497 * RadioError:REQUEST_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700498 * RadioError:INVALID_ARGUMENTS
499 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700500 */
501 oneway setupDataCallResponse(RadioResponseInfo info, SetupDataCallResult dcResponse);
502
Andreas Huber675ae492017-03-28 14:40:58 -0700503 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800504 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -0700505 * @param iccIo ICC io operation response as defined by IccIoResult in types.hal
Sanket Padawe76372492016-10-27 13:20:49 -0700506 *
507 * Valid errors returned:
508 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700509 * RadioError:RADIO_NOT_AVAILABLE
510 * RadioError:SIM_PIN2
511 * RadioError:SIM_PUK2
Sanket Padawe76372492016-10-27 13:20:49 -0700512 */
Sanket Padawe865834e2016-12-28 16:04:10 -0800513 oneway iccIOForAppResponse(RadioResponseInfo info, IccIoResult iccIo);
Sanket Padawe76372492016-10-27 13:20:49 -0700514
Andreas Huber675ae492017-03-28 14:40:58 -0700515 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800516 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700517 *
518 * Valid errors returned:
519 * RadioError:NONE
520 * RadioError:RADIO_NOT_AVAILABLE
521 * RadioError:FDN_CHECK_FAILURE
522 * RadioError:USSD_MODIFIED_TO_DIAL
523 * RadioError:USSD_MODIFIED_TO_SS
524 * RadioError:USSD_MODIFIED_TO_USSD
525 * RadioError:SIM_BUSY
526 * RadioError:OPERATION_NOT_ALLOWED
527 * RadioError:INVALID_ARGUMENTS
528 * RadioError:NO_MEMORY
529 * RadioError:MODEM_ERR
530 * RadioError:INTERNAL_ERR
531 * RadioError:ABORTED
532 * RadioError:SYSTEM_ERR
533 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -0700534 * RadioError:REQUEST_NOT_SUPPORTED
535 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700536 */
537 oneway sendUssdResponse(RadioResponseInfo info);
538
Andreas Huber675ae492017-03-28 14:40:58 -0700539 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800540 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700541 *
542 * Valid errors returned:
543 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700544 * RadioError:RADIO_NOT_AVAILABLE
545 * RadioError:SIM_BUSY
546 * RadioError:OPERATION_NOT_ALLOWED
547 * RadioError:MODEM_ERR
548 * RadioError:INTERNAL_ERR
549 * RadioError:NO_MEMORY
550 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -0700551 * RadioError:INVALID_ARGUMENTS
552 * RadioError:SYSTEM_ERR
553 * RadioError:REQUEST_NOT_SUPPORTED
554 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700555 */
556 oneway cancelPendingUssdResponse(RadioResponseInfo info);
557
Andreas Huber675ae492017-03-28 14:40:58 -0700558 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800559 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700560 * @param n is "n" parameter from TS 27.007 7.7
561 * @param m is "m" parameter from TS 27.007 7.7
562 *
563 * Valid errors returned:
564 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700565 * RadioError:RADIO_NOT_AVAILABLE
566 * RadioError:SS_MODIFIED_TO_DIAL
567 * RadioError:SS_MODIFIED_TO_USSD
568 * RadioError:SS_MODIFIED_TO_SS
569 * RadioError:NO_MEMORY
570 * RadioError:MODEM_ERR
571 * RadioError:INTERNAL_ERR
572 * RadioError:FDN_CHECK_FAILURE
573 * RadioError:SYSTEM_ERR
sqian159ec7f2017-04-25 18:00:34 -0700574 * RadioError:REQUEST_NOT_SUPPORTED
575 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -0700576 */
577 oneway getClirResponse(RadioResponseInfo info, int32_t n, int32_t m);
578
Andreas Huber675ae492017-03-28 14:40:58 -0700579 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800580 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700581 *
582 * Valid errors returned:
583 * RadioError:NONE
584 * RadioError:INVALID_ARGUMENTS
585 * RadioError:RADIO_NOT_AVAILABLE
586 * RadioError:SS_MODIFIED_TO_DIAL
587 * RadioError:SS_MODIFIED_TO_USSD
588 * RadioError:SS_MODIFIED_TO_SS
sqian159ec7f2017-04-25 18:00:34 -0700589 * RadioError:NO_MEMORY
590 * RadioError:INTERNAL_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700591 * RadioError:SYSTEM_ERR
sqian159ec7f2017-04-25 18:00:34 -0700592 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700593 */
594 oneway setClirResponse(RadioResponseInfo info);
595
Andreas Huber675ae492017-03-28 14:40:58 -0700596 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800597 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700598 * @param callForwardInfos points to a vector of CallForwardInfo, one for
599 * each distinct registered phone number.
600 *
601 * For example, if data is forwarded to +18005551212 and voice is forwarded
602 * to +18005559999, then two separate CallForwardInfo's must be returned
603 *
604 * If, however, both data and voice are forwarded to +18005551212, then
605 * a single CallForwardInfo must be returned with the service class
606 * set to "data + voice = 3")
607 *
608 * Valid errors returned:
609 * RadioError:NONE
610 * RadioError:RADIO_NOT_AVAILABLE
611 * RadioError:SS_MODIFIED_TO_DIAL
612 * RadioError:SS_MODIFIED_TO_USSD
613 * RadioError:SS_MODIFIED_TO_SS
614 * RadioError:INVALID_ARGUMENTS
615 * RadioError:NO_MEMORY
616 * RadioError:SYSTEM_ERR
617 * RadioError:MODEM_ERR
618 * RadioError:INTERNAL_ERR
619 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700620 * RadioError:REQUEST_NOT_SUPPORTED
621 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700622 */
623 oneway getCallForwardStatusResponse(RadioResponseInfo info,
624 vec<CallForwardInfo> callForwardInfos);
625
Andreas Huber675ae492017-03-28 14:40:58 -0700626 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800627 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700628 *
629 * Valid errors returned:
630 * RadioError:NONE
631 * RadioError:RADIO_NOT_AVAILABLE
632 * RadioError:SS_MODIFIED_TO_DIAL
633 * RadioError:SS_MODIFIED_TO_USSD
634 * RadioError:SS_MODIFIED_TO_SS
635 * RadioError:INVALID_ARGUMENTS
636 * RadioError:NO_MEMORY
637 * RadioError:SYSTEM_ERR
638 * RadioError:MODEM_ERR
639 * RadioError:INTERNAL_ERR
640 * RadioError:INVALID_STATE
641 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700642 * RadioError:REQUEST_NOT_SUPPORTED
643 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700644 */
645 oneway setCallForwardResponse(RadioResponseInfo info);
646
Andreas Huber675ae492017-03-28 14:40:58 -0700647 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800648 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700649 * @param enable If current call waiting state is disabled, enable = false else true
650 * @param serviceClass If enable, then callWaitingResp[1]
651 * must follow, with the TS 27.007 service class bit vector of services
652 * for which call waiting is enabled.
653 * For example, if callWaitingResp[0] is 1 and
654 * callWaitingResp[1] is 3, then call waiting is enabled for data
655 * and voice and disabled for everything else.
656 *
657 * Valid errors returned:
658 * RadioError:NONE
659 * RadioError:RADIO_NOT_AVAILABLE
660 * RadioError:SS_MODIFIED_TO_DIAL
661 * RadioError:SS_MODIFIED_TO_USSD
662 * RadioError:SS_MODIFIED_TO_SS
663 * RadioError:INVALID_ARGUMENTS
664 * RadioError:NO_MEMORY
665 * RadioError:MODEM_ERR
666 * RadioError:INTERNAL_ERR
667 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700668 * RadioError:INTERNAL_ERR
669 * RadioError:SYSTEM_ERR
670 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700671 */
672 oneway getCallWaitingResponse(RadioResponseInfo info, bool enable, int32_t serviceClass);
673
Andreas Huber675ae492017-03-28 14:40:58 -0700674 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800675 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700676 *
677 * Valid errors returned:
678 * RadioError:NONE
679 * RadioError:RADIO_NOT_AVAILABLE
680 * RadioError:SS_MODIFIED_TO_DIAL
681 * RadioError:SS_MODIFIED_TO_USSD
682 * RadioError:SS_MODIFIED_TO_SS
683 * RadioError:INVALID_ARGUMENTS
684 * RadioError:NO_MEMORY
685 * RadioError:MODEM_ERR
686 * RadioError:INTERNAL_ERR
687 * RadioError:INVALID_STATE
688 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700689 * RadioError:SYSTEM_ERR
690 * RadioError:REQUEST_NOT_SUPPORTED
691 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700692 */
693 oneway setCallWaitingResponse(RadioResponseInfo info);
694
Andreas Huber675ae492017-03-28 14:40:58 -0700695 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800696 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700697 *
698 * Valid errors returned:
699 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700700 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700701 */
702 oneway acknowledgeLastIncomingGsmSmsResponse(RadioResponseInfo info);
703
Andreas Huber675ae492017-03-28 14:40:58 -0700704 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800705 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700706 *
707 * Valid errors returned:
708 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700709 * RadioError:RADIO_NOT_AVAILABLE
710 * RadioError:INVALID_STATE
711 * RadioError:NO_MEMORY
712 * RadioError:SYSTEM_ERR
713 * RadioError:MODEM_ERR
714 * RadioError:INTERNAL_ERR
715 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700716 * RadioError:INVALID_ARGUMENTS
717 * RadioError:SYSTEM_ERR
718 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700719 */
720 oneway acceptCallResponse(RadioResponseInfo info);
721
Andreas Huber675ae492017-03-28 14:40:58 -0700722 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800723 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700724 *
725 * Valid errors returned:
726 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700727 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700728 * RadioError:INVALID_CALL_ID
729 * RadioError:INVALID_STATE
730 * RadioError:INVALID_ARGUMENTS
731 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700732 */
733 oneway deactivateDataCallResponse(RadioResponseInfo info);
734
Andreas Huber675ae492017-03-28 14:40:58 -0700735 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800736 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700737 * @param response 0 is the TS 27.007 service class bit vector of
738 * services for which the specified barring facility
739 * is active. "0" means "disabled for all"
740 *
741 * Valid errors returned:
742 * RadioError:NONE
743 * RadioError:RADIO_NOT_AVAILABLE
744 * RadioError:SS_MODIFIED_TO_DIAL
745 * RadioError:SS_MODIFIED_TO_USSD
746 * RadioError:SS_MODIFIED_TO_SS
747 * RadioError:INVALID_ARGUMENTS
748 * RadioError:NO_MEMORY
749 * RadioError:MODEM_ERR
750 * RadioError:INTERNAL_ERR
751 * RadioError:SYSTEM_ERR
752 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700753 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700754 */
755 oneway getFacilityLockForAppResponse(RadioResponseInfo info, int32_t response);
756
Andreas Huber675ae492017-03-28 14:40:58 -0700757 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800758 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700759 * @param retry 0 is the number of retries remaining, or -1 if unknown
760 *
761 * Valid errors returned:
762 * RadioError:NONE
763 * RadioError:RADIO_NOT_AVAILABLE
764 * RadioError:SS_MODIFIED_TO_DIAL
765 * RadioError:SS_MODIFIED_TO_USSD
766 * RadioError:SS_MODIFIED_TO_SS
767 * RadioError:INVALID_ARGUMENTS
768 * RadioError:NO_MEMORY
769 * RadioError:MODEM_ERR
770 * RadioError:INTERNAL_ERR
sqian159ec7f2017-04-25 18:00:34 -0700771 * RadioError:SYSTEM_ERR
Sanket Padawe76372492016-10-27 13:20:49 -0700772 * RadioError:INVALID_STATE
773 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700774 * RadioError:REQUEST_NOT_SUPPORTED
775 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700776 */
777 oneway setFacilityLockForAppResponse(RadioResponseInfo info, int32_t retry);
778
Andreas Huber675ae492017-03-28 14:40:58 -0700779 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800780 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700781 *
782 * Valid errors returned:
783 * RadioError:NONE
784 * RadioError:RADIO_NOT_AVAILABLE
785 * RadioError:SS_MODIFIED_TO_DIAL
786 * RadioError:SS_MODIFIED_TO_USSD
787 * RadioError:SS_MODIFIED_TO_SS
788 * RadioError:INVALID_ARGUMENTS
789 * RadioError:NO_MEMORY
790 * RadioError:MODEM_ERR
791 * RadioError:INTERNAL_ERR
792 * RadioError:SYSTEM_ERR
793 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700794 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700795 */
796 oneway setBarringPasswordResponse(RadioResponseInfo info);
797
Andreas Huber675ae492017-03-28 14:40:58 -0700798 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800799 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700800 * @param selection false for automatic selection, true for manual selection
801 *
802 * Valid errors returned:
803 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700804 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700805 * RadioError:NO_MEMORY
806 * RadioError:INTERNAL_ERR
807 * RadioError:SYSTEM_ERR
808 * RadioError:INVALID_ARGUMENTS
809 * RadioError:MODEM_ERR
810 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700811 */
812 oneway getNetworkSelectionModeResponse(RadioResponseInfo info, bool manual);
813
Andreas Huber675ae492017-03-28 14:40:58 -0700814 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800815 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700816 *
817 * Valid errors returned:
818 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700819 * RadioError:RADIO_NOT_AVAILABLE
820 * RadioError:ILLEGAL_SIM_OR_ME
821 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700822 * RadioError:NO_MEMORY
823 * RadioError:INTERNAL_ERR
824 * RadioError:SYSTEM_ERR
825 * RadioError:INVALID_ARGUMENTS
826 * RadioError:MODEM_ERR
827 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700828 *
829 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
830 * no retries needed, such as illegal SIM or ME.
Sanket Padawe76372492016-10-27 13:20:49 -0700831 */
832 oneway setNetworkSelectionModeAutomaticResponse(RadioResponseInfo info);
833
Andreas Huber675ae492017-03-28 14:40:58 -0700834 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800835 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700836 *
837 * Valid errors returned:
838 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700839 * RadioError:RADIO_NOT_AVAILABLE
840 * RadioError:ILLEGAL_SIM_OR_ME
841 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700842 * RadioError:INVALID_STATE
843 * RadioError:NO_MEMORY
844 * RadioError:INTERNAL_ERR
845 * RadioError:SYSTEM_ERR
846 * RadioError:INVALID_ARGUMENTS
847 * RadioError:MODEM_ERR
848 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700849 *
850 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
851 * no retries needed, such as illegal SIM or ME.
Sanket Padawe76372492016-10-27 13:20:49 -0700852 */
853 oneway setNetworkSelectionModeManualResponse(RadioResponseInfo info);
854
Andreas Huber675ae492017-03-28 14:40:58 -0700855 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800856 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700857 * @param networkInfos List of network operator information as OperatorInfos defined in
858 * types.hal
859 *
860 * Valid errors returned:
861 * RadioError:NONE
Sanket Padawe76372492016-10-27 13:20:49 -0700862 * RadioError:RADIO_NOT_AVAILABLE
863 * RadioError:OPERATION_NOT_ALLOWED
Jayachandran Cfbb1ea52017-03-13 19:23:52 -0700864 * RadioError:ABORTED
865 * RadioError:DEVICE_IN_USE
866 * RadioError:INTERNAL_ERR
867 * RadioError:NO_MEMORY
868 * RadioError:MODEM_ERR
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700869 * RadioError:REQUEST_NOT_SUPPORTED
870 * RadioError:CANCELLED
Sanket Padawe76372492016-10-27 13:20:49 -0700871 */
872 oneway getAvailableNetworksResponse(RadioResponseInfo info,
873 vec<OperatorInfo> networkInfos);
874
Andreas Huber675ae492017-03-28 14:40:58 -0700875 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800876 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700877 *
878 * Valid errors returned:
879 * RadioError:NONE
880 * RadioError:RADIO_NOT_AVAILABLE
881 * RadioError:INVALID_ARGUMENTS
882 * RadioError:NO_RESOURCES
883 * RadioError:NO_MEMORY
884 * RadioError:SYSTEM_ERR
885 * RadioError:MODEM_ERR
886 * RadioError:INTERNAL_ERR
887 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700888 * RadioError:SYSTEM_ERR
889 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700890 */
891 oneway startDtmfResponse(RadioResponseInfo info);
892
Andreas Huber675ae492017-03-28 14:40:58 -0700893 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800894 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700895 *
896 * Valid errors returned:
897 * RadioError:NONE
898 * RadioError:RADIO_NOT_AVAILABLE
899 * RadioError:INVALID_ARGUMENTS
900 * RadioError:NO_RESOURCES
901 * RadioError:NO_MEMORY
902 * RadioError:INVALID_ARGUMENTS
903 * RadioError:SYSTEM_ERR
904 * RadioError:MODEM_ERR
905 * RadioError:INTERNAL_ERR
906 * RadioError:INVALID_CALL_ID
sqian159ec7f2017-04-25 18:00:34 -0700907 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700908 */
909 oneway stopDtmfResponse(RadioResponseInfo info);
910
Andreas Huber675ae492017-03-28 14:40:58 -0700911 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800912 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700913 * @param version string containing version string for log reporting
914 *
915 * Valid errors returned:
916 * RadioError:NONE
917 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700918 * RadioError:EMPTY_RECORD
Naina Nalluri9cc29c82017-05-05 11:00:05 -0700919 * RadioError:NO_MEMORY
920 * RadioError:INTERNAL_ERR
921 * RadioError:SYSTEM_ERR
922 * RadioError:MODEM_ERR
923 * RadioError:NOT_PROVISIONED
924 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700925 */
926 oneway getBasebandVersionResponse(RadioResponseInfo info, string version);
927
Andreas Huber675ae492017-03-28 14:40:58 -0700928 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800929 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700930 *
931 * Valid errors returned:
932 * RadioError:NONE
933 * RadioError:RADIO_NOT_AVAILABLE
934 * RadioError:INVALID_ARGUMENTS
935 * RadioError:INVALID_STATE
936 * RadioError:NO_RESOURCES
937 * RadioError:NO_MEMORY
938 * RadioError:MODEM_ERR
939 * RadioError:SYSTEM_ERR
940 * RadioError:INTERNAL_ERR
941 * RadioError:INVALID_CALL_ID
942 * RadioError:OPERATION_NOT_ALLOWED
sqian159ec7f2017-04-25 18:00:34 -0700943 * RadioError:REQUEST_NOT_SUPPORTED
944 * RadioError:INVALID_MODEM_STATE
Sanket Padawe76372492016-10-27 13:20:49 -0700945 */
946 oneway separateConnectionResponse(RadioResponseInfo info);
947
Andreas Huber675ae492017-03-28 14:40:58 -0700948 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800949 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700950 *
951 * Valid errors returned:
952 * RadioError:NONE
953 * RadioError:RADIO_NOT_AVAILABLE
954 * RadioError:INVALID_ARGUMENTS
955 * RadioError:NO_MEMORY
956 * RadioError:REQUEST_RATE_LIMITED
sqian159ec7f2017-04-25 18:00:34 -0700957 * RadioError:INTERNAL_ERR
958 * RadioError:SYSTEM_ERR
959 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700960 */
961 oneway setMuteResponse(RadioResponseInfo info);
962
Andreas Huber675ae492017-03-28 14:40:58 -0700963 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800964 * @param info Response info struct containing response type, serial no. and error
965 * @param enable true for "mute enabled" and false for "mute disabled"
Sanket Padawe76372492016-10-27 13:20:49 -0700966 *
967 * Valid errors returned:
968 * RadioError:NONE
969 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -0700970 * RadioError:SS_MODIFIED_TO_DIAL
971 * RadioError:SS_MODIFIED_TO_USSD
972 * RadioError:SS_MODIFIED_TO_SS
973 * RadioError:NO_MEMORY
974 * RadioError:REQUEST_RATE_LIMITED
sqian159ec7f2017-04-25 18:00:34 -0700975 * RadioError:INVALID_ARGUMENTS
976 * RadioError:INTERNAL_ERR
977 * RadioError:SYSTEM_ERR
978 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700979 */
980 oneway getMuteResponse(RadioResponseInfo info, bool enable);
981
Andreas Huber675ae492017-03-28 14:40:58 -0700982 /**
Sanket Padawe865834e2016-12-28 16:04:10 -0800983 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -0700984 * @param status indicates CLIP status
985 *
986 * Valid errors returned:
987 * RadioError:NONE
988 * RadioError:RADIO_NOT_AVAILABLE
989 * RadioError:INVALID_ARGUMENTS
990 * RadioError:NO_MEMORY
991 * RadioError:SYSTEM_ERR
992 * RadioError:MODEM_ERR
993 * RadioError:INTERNAL_ERR
994 * RadioError:FDN_CHECK_FAILURE
sqian159ec7f2017-04-25 18:00:34 -0700995 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -0700996 */
997 oneway getClipResponse(RadioResponseInfo info, ClipStatus status);
998
Andreas Huber675ae492017-03-28 14:40:58 -0700999 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001000 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001001 * @param dcResponse List of DataCallResult as defined in types.hal
1002 *
1003 * Valid errors returned:
1004 * RadioError:NONE
1005 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001006 */
1007 oneway getDataCallListResponse(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
1008
Andreas Huber675ae492017-03-28 14:40:58 -07001009 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001010 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001011 *
1012 * Valid errors returned:
1013 * RadioError:NONE
1014 * RadioError:RADIO_NOT_AVAILABLE
1015 * RadioError:INVALID_ARGUMENTS
Sanket Padawe76372492016-10-27 13:20:49 -07001016 * RadioError:SIM_BUSY
1017 * RadioError:NO_MEMORY
1018 * RadioError:SYSTEM_ERR
1019 * RadioError:MODEM_ERR
1020 * RadioError:INTERNAL_ERR
sqian159ec7f2017-04-25 18:00:34 -07001021 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001022 */
1023 oneway setSuppServiceNotificationsResponse(RadioResponseInfo info);
1024
Andreas Huber675ae492017-03-28 14:40:58 -07001025 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001026 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001027 * @param index record index where the message is stored
1028 *
1029 * Valid errors returned:
1030 * RadioError:NONE
1031 * RadioError:SIM_FULL
1032 * RadioError:INVALID_ARGUMENTS
1033 * RadioError:INVALID_SMS_FORMAT
1034 * RadioError:INTERNAL_ERR
1035 * RadioError:MODEM_ERR
1036 * RadioError:ENCODING_ERR
1037 * RadioError:NO_MEMORY
1038 * RadioError:NO_RESOURCES
1039 * RadioError:INVALID_MODEM_STATE
1040 * RadioError:MODE_NOT_SUPPORTED
1041 * RadioError:INVALID_SMSC_ADDRESS
sqian159ec7f2017-04-25 18:00:34 -07001042 * RadioError:RADIO_NOT_AVAILABLE
1043 * RadioError:SYSTEM_ERR
1044 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001045 */
1046 oneway writeSmsToSimResponse(RadioResponseInfo info, int32_t index);
1047
Andreas Huber675ae492017-03-28 14:40:58 -07001048 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001049 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001050 *
1051 * Valid errors returned:
1052 * RadioError:NONE
1053 * RadioError:SIM_FULL
1054 * RadioError:INVALID_ARGUMENTS
1055 * RadioError:NO_MEMORY
1056 * RadioError:REQUEST_RATE_LIMITED
1057 * RadioError:SYSTEM_ERR
1058 * RadioError:MODEM_ERR
1059 * RadioError:NO_SUCH_ENTRY
sqian159ec7f2017-04-25 18:00:34 -07001060 * RadioError:INTERNAL_ERR
1061 * RadioError:RADIO_NOT_AVAILABLE
1062 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001063 */
1064 oneway deleteSmsOnSimResponse(RadioResponseInfo info);
1065
Andreas Huber675ae492017-03-28 14:40:58 -07001066 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001067 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001068 *
1069 * Valid errors returned:
1070 * RadioError:NONE
1071 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001072 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001073 * RadioError:NO_MEMORY
1074 * RadioError:INTERNAL_ERR
1075 * RadioError:SYSTEM_ERR
1076 * RadioError:INVALID_ARGUMENTS
1077 * RadioError:MODEM_ERR
1078 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001079 */
1080 oneway setBandModeResponse(RadioResponseInfo info);
1081
Andreas Huber675ae492017-03-28 14:40:58 -07001082 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001083 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001084 * @param bandModes List of RadioBandMode listing supported modes
1085 *
1086 * Valid errors returned:
1087 * RadioError:NONE
1088 * RadioError:RADIO_NOT_AVAILABLE
1089 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001090 * RadioError:NO_MEMORY
1091 * RadioError:INTERNAL_ERR
1092 * RadioError:SYSTEM_ERR
1093 * RadioError:MODEM_ERR
1094 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawe76372492016-10-27 13:20:49 -07001095 */
1096 oneway getAvailableBandModesResponse(RadioResponseInfo info, vec<RadioBandMode> bandModes);
1097
Andreas Huber675ae492017-03-28 14:40:58 -07001098 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001099 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001100 * @param commandResponse SAT/USAT response in hexadecimal format
1101 * string starting with first byte of response
1102 *
1103 * Valid errors returned:
1104 * RadioError:NONE
1105 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawe76372492016-10-27 13:20:49 -07001106 * RadioError:SIM_BUSY
1107 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -07001108 */
1109 oneway sendEnvelopeResponse(RadioResponseInfo info, string commandResponse);
1110
Andreas Huber675ae492017-03-28 14:40:58 -07001111 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001112 * @param info Response info struct containing response type, serial no. and error
Sanket Padawe76372492016-10-27 13:20:49 -07001113 *
1114 * Valid errors returned:
1115 * RadioError:NONE
1116 * RadioError:RADIO_NOT_AVAILABLE
1117 * RadioError:INVALID_ARGUMENTS
1118 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawe76372492016-10-27 13:20:49 -07001119 */
1120 oneway sendTerminalResponseToSimResponse(RadioResponseInfo info);
Sanket Padawed52335c2016-11-03 16:46:32 -07001121
Andreas Huber675ae492017-03-28 14:40:58 -07001122 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001123 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001124 *
1125 * Valid errors returned:
1126 * RadioError:NONE
sqian284c53c2017-05-16 20:29:19 -07001127 * RadioError:NO_MEMORY
1128 * RadioError:INTERNAL_ERR
1129 * RadioError:SYSTEM_ERR
1130 * RadioError:MODEM_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001131 * RadioError:INVALID_ARGUMENTS
Sanket Padawed52335c2016-11-03 16:46:32 -07001132 */
1133 oneway handleStkCallSetupRequestFromSimResponse(RadioResponseInfo info);
1134
Andreas Huber675ae492017-03-28 14:40:58 -07001135 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001136 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001137 *
1138 * Valid errors returned:
1139 * RadioError:NONE
1140 * RadioError:RADIO_NOT_AVAILABLE
1141 * RadioError:INVALID_ARGUMENTS
1142 * RadioError:INVALID_STATE
1143 * RadioError:NO_RESOURCES
1144 * RadioError:NO_MEMORY
1145 * RadioError:SYSTEM_ERR
1146 * RadioError:MODEM_ERR
1147 * RadioError:INTERNAL_ERR
1148 * RadioError:INVALID_CALL_ID
1149 * RadioError:OPERATION_NOT_ALLOWED
sqian159ec7f2017-04-25 18:00:34 -07001150 * RadioError:REQUEST_NOT_SUPPORTED
1151 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001152 */
1153 oneway explicitCallTransferResponse(RadioResponseInfo info);
1154
Andreas Huber675ae492017-03-28 14:40:58 -07001155 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001156 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001157 *
1158 * Valid errors returned:
1159 * RadioError:NONE
1160 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001161 * RadioError:OPERATION_NOT_ALLOWED
1162 * RadioError:MODE_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001163 * RadioError:NO_MEMORY
1164 * RadioError:INTERNAL_ERR
1165 * RadioError:SYSTEM_ERR
1166 * RadioError:INVALID_ARGUMENTS
1167 * RadioError:MODEM_ERR
1168 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001169 */
1170 oneway setPreferredNetworkTypeResponse(RadioResponseInfo info);
1171
Andreas Huber675ae492017-03-28 14:40:58 -07001172 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001173 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001174 * @param nwType RadioPreferredNetworkType defined in types.hal
1175 *
1176 * Valid errors returned:
1177 * RadioError:NONE
1178 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001179 * RadioError:NO_MEMORY
1180 * RadioError:INTERNAL_ERR
1181 * RadioError:SYSTEM_ERR
1182 * RadioError:INVALID_ARGUMENTS
1183 * RadioError:MODEM_ERR
1184 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001185 */
1186 oneway getPreferredNetworkTypeResponse(RadioResponseInfo info,
1187 PreferredNetworkType nwType);
1188
Andreas Huber675ae492017-03-28 14:40:58 -07001189 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001190 * @param info Response info struct containing response type, serial no. and error
1191 * @param cells Vector of neighboring radio cell
Sanket Padawed52335c2016-11-03 16:46:32 -07001192 *
1193 * Valid errors returned:
1194 * RadioError:NONE
1195 * RadioError:RADIO_NOT_AVAILABLE
1196 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001197 * RadioError:NO_MEMORY
1198 * RadioError:INTERNAL_ERR
1199 * RadioError:SYSTEM_ERR
1200 * RadioError:MODEM_ERR
1201 * RadioError:NO_NETWORK_FOUND
1202 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001203 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001204 oneway getNeighboringCidsResponse(RadioResponseInfo info, vec<NeighboringCell> cells);
Sanket Padawed52335c2016-11-03 16:46:32 -07001205
Andreas Huber675ae492017-03-28 14:40:58 -07001206 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001207 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001208 *
1209 * Valid errors returned:
1210 * RadioError:NONE
1211 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001212 * RadioError:NO_MEMORY
1213 * RadioError:INTERNAL_ERR
1214 * RadioError:SYSTEM_ERR
1215 * RadioError:INVALID_ARGUMENTS
1216 * RadioError:MODEM_ERR
1217 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001218 */
1219 oneway setLocationUpdatesResponse(RadioResponseInfo info);
1220
Andreas Huber675ae492017-03-28 14:40:58 -07001221 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001222 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001223 *
1224 * Valid errors returned:
1225 * RadioError:NONE
1226 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001227 * RadioError:SIM_ABSENT
1228 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001229 */
1230 oneway setCdmaSubscriptionSourceResponse(RadioResponseInfo info);
1231
Andreas Huber675ae492017-03-28 14:40:58 -07001232 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001233 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001234 *
1235 * Valid errors returned:
1236 * RadioError:NONE
1237 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001238 * RadioError:NO_MEMORY
1239 * RadioError:INTERNAL_ERR
1240 * RadioError:SYSTEM_ERR
1241 * RadioError:INVALID_ARGUMENTS
1242 * RadioError:MODEM_ERR
1243 * RadioError:REQUEST_NOT_SUPPORTED
1244 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001245 */
1246 oneway setCdmaRoamingPreferenceResponse(RadioResponseInfo info);
1247
Andreas Huber675ae492017-03-28 14:40:58 -07001248 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001249 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001250 * @param type CdmaRoamingType defined in types.hal
1251 *
1252 * Valid errors returned:
1253 * RadioError:NONE
1254 * RadioError:RADIO_NOT_AVAILABLE
1255 * RadioError:INVALID_ARGUMENTS
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001256 * RadioError:NO_MEMORY
1257 * RadioError:INTERNAL_ERR
1258 * RadioError:SYSTEM_ERR
1259 * RadioError:MODEM_ERR
1260 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001261 */
1262 oneway getCdmaRoamingPreferenceResponse(RadioResponseInfo info, CdmaRoamingType type);
1263
Andreas Huber675ae492017-03-28 14:40:58 -07001264 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001265 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001266 *
1267 * Valid errors returned:
1268 * RadioError:NONE
1269 * RadioError:RADIO_NOT_AVAILABLE
1270 * RadioError:INVALID_ARGUMENTS
1271 * RadioError:MODEM_ERR
1272 * RadioError:INTERNAL_ERR
1273 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001274 * RadioError:SYSTEM_ERR
1275 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001276 */
1277 oneway setTTYModeResponse(RadioResponseInfo info);
1278
Andreas Huber675ae492017-03-28 14:40:58 -07001279 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001280 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001281 * @param mode TtyMode
1282 *
1283 * Valid errors returned:
1284 * RadioError:NONE
1285 * RadioError:RADIO_NOT_AVAILABLE
1286 * RadioError:INVALID_ARGUMENTS
1287 * RadioError:MODEM_ERR
1288 * RadioError:INTERNAL_ERR
1289 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001290 * RadioError:SYSTEM_ERR
1291 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001292 */
1293 oneway getTTYModeResponse(RadioResponseInfo info, TtyMode mode);
1294
Andreas Huber675ae492017-03-28 14:40:58 -07001295 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001296 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001297 *
1298 * Valid errors returned:
1299 * RadioError:NONE
1300 * RadioError:RADIO_NOT_AVAILABLE
1301 * RadioError:INVALID_ARGUMENTS
1302 * RadioError:MODEM_ERR
1303 * RadioError:INTERNAL_ERR
1304 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001305 * RadioError:SYSTEM_ERR
1306 * RadioError:REQUEST_NOT_SUPPORTED
1307 * RadioError:INVALID_CALL_ID
Sanket Padawed52335c2016-11-03 16:46:32 -07001308 */
1309 oneway setPreferredVoicePrivacyResponse(RadioResponseInfo info);
1310
Andreas Huber675ae492017-03-28 14:40:58 -07001311 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001312 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001313 * @param enable false for Standard Privacy Mode (Public Long Code Mask)
1314 * true for Enhanced Privacy Mode (Private Long Code Mask)
1315 *
1316 * Valid errors:
1317 * RadioError:NONE
1318 * RadioError:RADIO_NOT_AVAILABLE
1319 * RadioError:INVALID_ARGUMENTS
1320 * RadioError:MODEM_ERR
1321 * RadioError:INTERNAL_ERR
1322 * RadioError:NO_MEMORY
sqian159ec7f2017-04-25 18:00:34 -07001323 * RadioError:SYSTEM_ERR
1324 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001325 */
1326 oneway getPreferredVoicePrivacyResponse(RadioResponseInfo info, bool enable);
1327
Andreas Huber675ae492017-03-28 14:40:58 -07001328 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07001329 * Response callback for IRadio.sendCDMAFeatureCode()
1330 *
Sanket Padawe865834e2016-12-28 16:04:10 -08001331 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001332 *
1333 * Valid errors returned:
1334 * RadioError:NONE
1335 * RadioError:RADIO_NOT_AVAILABLE
1336 * RadioError:INVALID_ARGUMENTS
1337 * RadioError:NO_MEMORY
1338 * RadioError:INTERNAL_ERR
1339 * RadioError:SYSTEM_ERR
1340 * RadioError:MODEM_ERR
1341 * RadioError:INVALID_CALL_ID
1342 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001343 * RadioError:REQUEST_NOT_SUPPORTED
1344 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001345 */
1346 oneway sendCDMAFeatureCodeResponse(RadioResponseInfo info);
1347
Andreas Huber675ae492017-03-28 14:40:58 -07001348 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001349 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001350 *
1351 * Valid errors returned:
1352 * RadioError:NONE
1353 * RadioError:RADIO_NOT_AVAILABLE
1354 * RadioError:INVALID_ARGUMENTS
1355 * RadioError:NO_MEMORY
1356 * RadioError:INTERNAL_ERR
1357 * RadioError:SYSTEM_ERR
1358 * RadioError:MODEM_ERR
1359 * RadioError:INVALID_CALL_ID
1360 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001361 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001362 */
1363 oneway sendBurstDtmfResponse(RadioResponseInfo info);
1364
Andreas Huber675ae492017-03-28 14:40:58 -07001365 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001366 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001367 * @param sms Sms result struct as defined by SendSmsResult in types.hal
1368 *
1369 * Valid errors returned:
1370 * RadioError:NONE
1371 * RadioError:RADIO_NOT_AVAILABLE
1372 * RadioError:INVALID_ARGUMENTS
1373 * RadioError:SMS_SEND_FAIL_RETRY
1374 * RadioError:NETWORK_REJECT
1375 * RadioError:INVALID_STATE
1376 * RadioError:NO_MEMORY
1377 * RadioError:REQUEST_RATE_LIMITED
1378 * RadioError:INVALID_SMS_FORMAT
1379 * RadioError:SYSTEM_ERR
1380 * RadioError:FDN_CHECK_FAILURE
1381 * RadioError:MODEM_ERR
1382 * RadioError:NETWORK_ERR
1383 * RadioError:ENCODING_ERR
1384 * RadioError:INVALID_SMSC_ADDRESS
1385 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -07001386 * RadioError:INTERNAL_ERR
1387 * RadioError:SYSTEM_ERR
1388 * RadioError:REQUEST_NOT_SUPPORTED
1389 * RadioError:OPERATION_NOT_ALLOWED
1390 * RadioError:ENCODING_ERR
Sanket Padawed52335c2016-11-03 16:46:32 -07001391 */
1392 oneway sendCdmaSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1393
Andreas Huber675ae492017-03-28 14:40:58 -07001394 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001395 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001396 *
1397 * Valid errors returned:
1398 * RadioError:NONE
1399 * RadioError:RADIO_NOT_AVAILABLE
1400 * RadioError:INVALID_ARGUMENTS
1401 * RadioError:NO_SMS_TO_ACK
1402 * RadioError:INVALID_STATE
1403 * RadioError:NO_MEMORY
1404 * RadioError:REQUEST_RATE_LIMITED
1405 * RadioError:SYSTEM_ERR
1406 * RadioError:MODEM_ERR
1407 * RadioError:MODE_NOT_SUPPORTED
1408 * RadioError:NETWORK_NOT_READY
1409 * RadioError:INVALID_MODEM_STATE
sqian159ec7f2017-04-25 18:00:34 -07001410 * RadioError:INTERNAL_ERR
1411 * RadioError:REQUEST_NOT_SUPPORTED
1412 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001413 */
1414 oneway acknowledgeLastIncomingCdmaSmsResponse(RadioResponseInfo info);
1415
Andreas Huber675ae492017-03-28 14:40:58 -07001416 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001417 * @param info Response info struct containing response type, serial no. and error
1418 * @param configs Vector of GSM/WCDMA Cell broadcast configs
Sanket Padawed52335c2016-11-03 16:46:32 -07001419 *
1420 * Valid errors returned:
1421 * RadioError:NONE
1422 * RadioError:RADIO_NOT_AVAILABLE
1423 * RadioError:INVALID_ARGUMENTS
1424 * RadioError:INVALID_STATE
1425 * RadioError:NO_MEMORY
1426 * RadioError:REQUEST_RATE_LIMITED
1427 * RadioError:SYSTEM_ERR
1428 * RadioError:MODEM_ERR
1429 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001430 * RadioError:INTERNAL_ERR
1431 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001432 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001433 oneway getGsmBroadcastConfigResponse(RadioResponseInfo info,
1434 vec<GsmBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001435
Andreas Huber675ae492017-03-28 14:40:58 -07001436 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001437 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001438 *
1439 * Valid errors returned:
1440 * RadioError:NONE
1441 * RadioError:RADIO_NOT_AVAILABLE
1442 * RadioError:INVALID_ARGUMENTS
1443 * RadioError:INVALID_STATE
1444 * RadioError:NO_MEMORY
1445 * RadioError:REQUEST_RATE_LIMITED
1446 * RadioError:SYSTEM_ERR
1447 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001448 * RadioError:INTERNAL_ERR
1449 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001450 */
1451 oneway setGsmBroadcastConfigResponse(RadioResponseInfo info);
1452
Andreas Huber675ae492017-03-28 14:40:58 -07001453 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001454 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001455 *
1456 * Valid errors returned:
1457 * RadioError:NONE
1458 * RadioError:RADIO_NOT_AVAILABLE
1459 * RadioError:INVALID_ARGUMENTS
1460 * RadioError:INVALID_STATE
1461 * RadioError:NO_MEMORY
1462 * RadioError:REQUEST_RATE_LIMITED
1463 * RadioError:SYSTEM_ERR
1464 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001465 * RadioError:INTERNAL_ERR
1466 * RadioError:REQUEST_NOT_SUPPORTED
1467 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001468 */
1469 oneway setGsmBroadcastActivationResponse(RadioResponseInfo info);
1470
Andreas Huber675ae492017-03-28 14:40:58 -07001471 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001472 * @param info Response info struct containing response type, serial no. and error
1473 * @param configs Vector of CDMA Broadcast SMS configs.
Sanket Padawed52335c2016-11-03 16:46:32 -07001474 *
1475 * Valid errors returned:
1476 * RadioError:NONE
1477 * RadioError:RADIO_NOT_AVAILABLE
1478 * RadioError:INVALID_ARGUMENTS
1479 * RadioError:INVALID_STATE
1480 * RadioError:NO_MEMORY
1481 * RadioError:REQUEST_RATE_LIMITED
1482 * RadioError:SYSTEM_ERR
1483 * RadioError:MODEM_ERR
1484 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001485 * RadioError:INTERNAL_ERR
1486 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001487 */
Sanket Padawe865834e2016-12-28 16:04:10 -08001488 oneway getCdmaBroadcastConfigResponse(RadioResponseInfo info,
1489 vec<CdmaBroadcastSmsConfigInfo> configs);
Sanket Padawed52335c2016-11-03 16:46:32 -07001490
Andreas Huber675ae492017-03-28 14:40:58 -07001491 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001492 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001493 *
1494 * Valid errors returned:
1495 * RadioError:NONE
1496 * RadioError:RADIO_NOT_AVAILABLE
1497 * RadioError:INVALID_ARGUMENTS
1498 * RadioError:INVALID_STATE
1499 * RadioError:NO_MEMORY
1500 * RadioError:REQUEST_RATE_LIMITED
1501 * RadioError:SYSTEM_ERR
1502 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001503 * RadioError:INTERNAL_ERR
1504 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001505 */
1506 oneway setCdmaBroadcastConfigResponse(RadioResponseInfo info);
1507
Andreas Huber675ae492017-03-28 14:40:58 -07001508 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001509 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001510 *
1511 * Valid errors returned:
1512 * RadioError:NONE
1513 * RadioError:RADIO_NOT_AVAILABLE
1514 * RadioError:INVALID_ARGUMENTS
1515 * RadioError:INVALID_STATE
1516 * RadioError:NO_MEMORY
1517 * RadioError:REQUEST_RATE_LIMITED
1518 * RadioError:SYSTEM_ERR
1519 * RadioError:MODEM_ERR
sqian159ec7f2017-04-25 18:00:34 -07001520 * RadioError:INTERNAL_ERR
1521 * RadioError:REQUEST_NOT_SUPPORTED
1522 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001523 */
1524 oneway setCdmaBroadcastActivationResponse(RadioResponseInfo info);
1525
Andreas Huber675ae492017-03-28 14:40:58 -07001526 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001527 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001528 * @param mdn MDN if CDMA subscription is available
1529 * @param hSid is a comma separated list of H_SID (Home SID) if
1530 * CDMA subscription is available, in decimal format
1531 * @param hNid is a comma separated list of H_NID (Home NID) if
1532 * CDMA subscription is available, in decimal format
1533 * @param min MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
1534 * @param prl PRL version if CDMA subscription is available
1535 *
1536 * Valid errors returned:
1537 * RadioError:NONE
1538 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001539 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001540 * RadioError:NO_MEMORY
1541 * RadioError:INTERNAL_ERR
1542 * RadioError:SYSTEM_ERR
1543 * RadioError:INVALID_ARGUMENTS
1544 * RadioError:MODEM_ERR
1545 * RadioError:NOT_PROVISIONED
1546 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001547 */
1548 oneway getCDMASubscriptionResponse(RadioResponseInfo info, string mdn, string hSid,
1549 string hNid, string min, string prl);
1550
Andreas Huber675ae492017-03-28 14:40:58 -07001551 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001552 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001553 * @param index record index where the cmda sms message is stored
1554 *
1555 * Valid errors returned:
1556 * RadioError:NONE
1557 * RadioError:RADIO_NOT_AVAILABLE
1558 * RadioError:INVALID_ARGUMENTS
1559 * RadioError:INVALID_SMS_FORMAT
1560 * RadioError:SIM_FULL
1561 * RadioError:INTERNAL_ERR
1562 * RadioError:MODEM_ERR
1563 * RadioError:ENCODING_ERR
1564 * RadioError:NO_MEMORY
1565 * RadioError:NO_RESOURCES
1566 * RadioError:INVALID_MODEM_STATE
1567 * RadioError:MODE_NOT_SUPPORTED
1568 * RadioError:INVALID_SMSC_ADDRESS
sqian159ec7f2017-04-25 18:00:34 -07001569 * RadioError:SYSTEM_ERR
1570 * RadioError:REQUEST_NOT_SUPPORTED
1571 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001572 */
1573 oneway writeSmsToRuimResponse(RadioResponseInfo info, uint32_t index);
1574
Andreas Huber675ae492017-03-28 14:40:58 -07001575 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001576 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001577 *
1578 * Valid errors returned:
1579 * RadioError:NONE
1580 * RadioError:RADIO_NOT_AVAILABLE
1581 * RadioError:INVALID_ARGUMENTS
1582 * RadioError:NO_MEMORY
1583 * RadioError:REQUEST_RATE_LIMITED
1584 * RadioError:SYSTEM_ERR
1585 * RadioError:MODEM_ERR
1586 * RadioError:NO_SUCH_ENTRY
sqian159ec7f2017-04-25 18:00:34 -07001587 * RadioError:INTERNAL_ERR
1588 * RadioError:REQUEST_NOT_SUPPORTED
1589 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001590 */
1591 oneway deleteSmsOnRuimResponse(RadioResponseInfo info);
1592
Andreas Huber675ae492017-03-28 14:40:58 -07001593 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001594 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001595 * @param imei IMEI if GSM subscription is available
1596 * @param imeisv IMEISV if GSM subscription is available
1597 * @param esn ESN if CDMA subscription is available
1598 * @param meid MEID if CDMA subscription is available
1599 *
1600 * Valid errors returned:
1601 * RadioError:NONE
1602 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001603 * RadioError:NO_MEMORY
1604 * RadioError:INTERNAL_ERR
1605 * RadioError:SYSTEM_ERR
1606 * RadioError:INVALID_ARGUMENTS
1607 * RadioError:MODEM_ERR
1608 * RadioError:NOT_PROVISIONED
Sanket Padawed52335c2016-11-03 16:46:32 -07001609 *
1610 * If a empty string value is returned for any of the device id, it means that there was error
1611 * accessing the device.
1612 *
1613 */
1614 oneway getDeviceIdentityResponse(RadioResponseInfo info, string imei, string imeisv,
1615 string esn, string meid);
1616
Andreas Huber675ae492017-03-28 14:40:58 -07001617 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001618 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001619 *
1620 * Valid errors returned:
1621 * RadioError:NONE
1622 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001623 * RadioError:OPERATION_NO_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001624 * RadioError:INTERNAL_ERR
1625 * RadioError:NO_MEMORY
1626 * RadioError:SYSTEM_ERR
1627 * RadioError:INVALID_ARGUMENTS
1628 * RadioError:MODEM_ERR
1629 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001630 */
1631 oneway exitEmergencyCallbackModeResponse(RadioResponseInfo info);
1632
Andreas Huber675ae492017-03-28 14:40:58 -07001633 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001634 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001635 * @param smsc Short Message Service Center address on the device
1636 *
1637 * Valid errors returned:
1638 * RadioError:NONE
1639 * RadioError:RADIO_NOT_AVAILABLE
1640 * RadioError:INVALID_ARGUMENTS
1641 * RadioError:INTERNAL_ERR
1642 * RadioError:NO_MEMORY
1643 * RadioError:SYSTEM_ERR
1644 * RadioError:REQUEST_RATE_LIMITED
1645 * RadioError:MODEM_ERR
1646 * RadioError:INVALID_MODEM_STATE
1647 * RadioError:NOT_PROVISIONED
sqian159ec7f2017-04-25 18:00:34 -07001648 * RadioError:REQUEST_NOT_SUPPORTED
1649 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001650 */
1651 oneway getSmscAddressResponse(RadioResponseInfo info, string smsc);
1652
Andreas Huber675ae492017-03-28 14:40:58 -07001653 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001654 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001655 *
1656 * Valid errors returned:
1657 * RadioError:NONE
1658 * RadioError:RADIO_NOT_AVAILABLE
1659 * RadioError:INVALID_ARGUMENTS
1660 * RadioError:INVALID_SMS_FORMAT
1661 * RadioError:NO_MEMORY
1662 * RadioError:SYSTEM_ERR
1663 * RadioError:REQUEST_RATE_LIMITED
1664 * RadioError:MODEM_ERR
1665 * RadioError:NO_RESOURCES
sqian159ec7f2017-04-25 18:00:34 -07001666 * RadioError:INTERNAL_ERR
1667 * RadioError:REQUEST_NOT_SUPPORTED
1668 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001669 */
1670 oneway setSmscAddressResponse(RadioResponseInfo info);
1671
Andreas Huber675ae492017-03-28 14:40:58 -07001672 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001673 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001674 *
1675 * Valid errors returned:
1676 * RadioError:NONE
1677 * RadioError:RADIO_NOT_AVAILABLE
1678 * RadioError:INVALID_ARGUMENTS
1679 * RadioError:NO_MEMORY
1680 * RadioError:SYSTEM_ERR
1681 * RadioError:REQUEST_RATE_LIMITED
1682 * RadioError:MODEM_ERR
1683 * RadioError:INVALID_STATE
sqian159ec7f2017-04-25 18:00:34 -07001684 * RadioError:INTERNAL_ERR
1685 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001686 */
1687 oneway reportSmsMemoryStatusResponse(RadioResponseInfo info);
1688
Andreas Huber675ae492017-03-28 14:40:58 -07001689 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001690 * @param info Response info struct containing response type, serial no. and error
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001691 *
1692 * Valid errors returned:
1693 * RadioError:NONE
1694 * RadioError:RADIO_NOT_AVAILABLE
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001695 */
1696 oneway reportStkServiceIsRunningResponse(RadioResponseInfo info);
1697
Andreas Huber675ae492017-03-28 14:40:58 -07001698 /**
Amit Mahajan0de66ed2017-01-31 17:00:26 -08001699 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001700 * @param source CDMA subscription source
1701 *
1702 * Valid errors returned:
1703 * RadioError:NONE
1704 * RadioError:RADIO_NOT_AVAILABLE
1705 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001706 */
1707 oneway getCdmaSubscriptionSourceResponse(RadioResponseInfo info, CdmaSubscriptionSource source);
1708
Andreas Huber675ae492017-03-28 14:40:58 -07001709 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001710 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001711 * @param response response string of the challenge/response algo for ISIM auth in base64 format
1712 *
1713 * Valid errors returned:
1714 * RadioError:NONE
1715 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001716 */
1717 oneway requestIsimAuthenticationResponse(RadioResponseInfo info, string response);
1718
Andreas Huber675ae492017-03-28 14:40:58 -07001719 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001720 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001721 *
1722 * Valid errors returned:
1723 * RadioError:NONE
1724 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001725 */
1726 oneway acknowledgeIncomingGsmSmsWithPduResponse(RadioResponseInfo info);
1727
Andreas Huber675ae492017-03-28 14:40:58 -07001728 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001729 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001730 * @param iccIo IccIoResult as defined in types.hal corresponding to ICC IO response
1731 *
1732 * Valid errors returned:
1733 * RadioError:NONE
1734 * RadioError:RADIO_NOT_AVAILABLE
1735 * RadioError:SIM_BUSY
1736 * RadioError:OPERATION_NOT_ALLOWED
Sanket Padawed52335c2016-11-03 16:46:32 -07001737 */
1738 oneway sendEnvelopeWithStatusResponse(RadioResponseInfo info, IccIoResult iccIo);
1739
Andreas Huber675ae492017-03-28 14:40:58 -07001740 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001741 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001742 * @param rat Current voice RAT
1743 *
1744 * Valid errors returned:
1745 * RadioError:NONE
1746 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001747 */
1748 oneway getVoiceRadioTechnologyResponse(RadioResponseInfo info, RadioTechnology rat);
1749
Andreas Huber675ae492017-03-28 14:40:58 -07001750 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001751 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001752 * @param cellInfo List of current cell information known to radio
1753 *
1754 * Valid errors returned:
1755 * RadioError:NONE
1756 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001757 * RadioError:NO_MEMORY
1758 * RadioError:INTERNAL_ERR
1759 * RadioError:SYSTEM_ERR
1760 * RadioError:MODEM_ERR
1761 * RadioError:NO_NETWORK_FOUND
1762 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001763 */
1764 oneway getCellInfoListResponse(RadioResponseInfo info, vec<CellInfo> cellInfo);
1765
Andreas Huber675ae492017-03-28 14:40:58 -07001766 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001767 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001768 *
1769 * Valid errors returned:
1770 * RadioError:NONE
1771 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001772 * RadioError:NO_MEMORY
1773 * RadioError:INTERNAL_ERR
1774 * RadioError:SYSTEM_ERR
1775 * RadioError:INVALID_ARGUMENTS
Sanket Padawed52335c2016-11-03 16:46:32 -07001776 */
1777 oneway setCellInfoListRateResponse(RadioResponseInfo info);
1778
Andreas Huber675ae492017-03-28 14:40:58 -07001779 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001780 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001781 *
1782 * Valid errors returned:
1783 * RadioError:NONE
1784 * RadioError:RADIO_NOT_AVAILABLE
1785 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001786 * RadioError:NO_MEMORY
1787 * RadioError:INTERNAL_ERR
1788 * RadioError:SYSTEM_ERR
1789 * RadioError:MODEM_ERR
1790 * RadioError:INVALID_ARGUMENTS
1791 * RadioError:NOT_PROVISIONED
1792 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001793 */
1794 oneway setInitialAttachApnResponse(RadioResponseInfo info);
1795
Andreas Huber675ae492017-03-28 14:40:58 -07001796 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001797 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001798 * @param isRegistered false = not registered, true = registered
1799 * @param ratFamily RadioTechnologyFamily as defined in types.hal. This value is valid only if
1800 * isRegistered is true.
1801 *
1802 * Valid errors returned:
1803 * RadioError:NONE
1804 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001805 */
1806 oneway getImsRegistrationStateResponse(RadioResponseInfo info, bool isRegistered,
1807 RadioTechnologyFamily ratFamily);
1808
Andreas Huber675ae492017-03-28 14:40:58 -07001809 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001810 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001811 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
1812 *
1813 * Valid errors returned:
1814 * RadioError:NONE
1815 * RadioError:RADIO_NOT_AVAILABLE
1816 * RadioError:SMS_SEND_FAIL_RETRY
1817 * RadioError:FDN_CHECK_FAILURE
1818 * RadioError:NETWORK_REJECT
1819 * RadioError:INVALID_ARGUMENTS
1820 * RadioError:INVALID_STATE
1821 * RadioError:NO_MEMORY
1822 * RadioError:INVALID_SMS_FORMAT
1823 * RadioError:SYSTEM_ERR
1824 * RadioError:REQUEST_RATE_LIMITED
1825 * RadioError:MODEM_ERR
1826 * RadioError:NETWORK_ERR
1827 * RadioError:ENCODING_ERR
1828 * RadioError:MODE_NOT_SUPPORTED
sqian159ec7f2017-04-25 18:00:34 -07001829 * RadioError:INTERNAL_ERR
1830 * RadioError:REQUEST_NOT_SUPPORTED
1831 * RadioError:NETWORK_NOT_READY
Sanket Padawed52335c2016-11-03 16:46:32 -07001832 */
1833 oneway sendImsSmsResponse(RadioResponseInfo info, SendSmsResult sms);
1834
Andreas Huber675ae492017-03-28 14:40:58 -07001835 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001836 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001837 * @param result IccIoResult as defined in types.hal
1838 *
1839 * Valid errors returned:
1840 * RadioError:NONE
1841 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001842 */
1843 oneway iccTransmitApduBasicChannelResponse(RadioResponseInfo info, IccIoResult result);
1844
Andreas Huber675ae492017-03-28 14:40:58 -07001845 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001846 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001847 * @param channelId session id of the logical channel.
1848 * @param selectResponse Contains the select response for the open channel command with one
1849 * byte per integer
1850 *
1851 * Valid errors returned:
1852 * RadioError:NONE
1853 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001854 * RadioError:MISSING_RESOURCE
1855 * RadioError:NO_SUCH_ELEMENT
1856 */
1857 oneway iccOpenLogicalChannelResponse(RadioResponseInfo info, int32_t channelId,
1858 vec<int8_t> selectResponse);
1859
Andreas Huber675ae492017-03-28 14:40:58 -07001860 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001861 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001862 *
1863 * Valid errors returned:
1864 * RadioError:NONE
1865 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001866 */
1867 oneway iccCloseLogicalChannelResponse(RadioResponseInfo info);
1868
Andreas Huber675ae492017-03-28 14:40:58 -07001869 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001870 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001871 * @param result IccIoResult as defined in types.hal
1872 *
1873 * Valid errors returned:
1874 * RadioError:NONE
1875 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001876 */
1877 oneway iccTransmitApduLogicalChannelResponse(RadioResponseInfo info, IccIoResult result);
1878
Andreas Huber675ae492017-03-28 14:40:58 -07001879 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001880 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001881 * @param result string containing the contents of the NV item
1882 *
1883 * Valid errors returned:
1884 * RadioError:NONE
1885 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001886 */
1887 oneway nvReadItemResponse(RadioResponseInfo info, string result);
1888
Andreas Huber675ae492017-03-28 14:40:58 -07001889 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001890 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001891 *
1892 * Valid errors returned:
1893 * RadioError:NONE
1894 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001895 */
1896 oneway nvWriteItemResponse(RadioResponseInfo info);
1897
Andreas Huber675ae492017-03-28 14:40:58 -07001898 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001899 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001900 *
1901 * Valid errors returned:
1902 * RadioError:NONE
1903 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001904 */
1905 oneway nvWriteCdmaPrlResponse(RadioResponseInfo info);
1906
Andreas Huber675ae492017-03-28 14:40:58 -07001907 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001908 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001909 *
1910 * Valid errors returned:
1911 * RadioError:NONE
1912 * RadioError:RADIO_NOT_AVAILABLE
Sanket Padawed52335c2016-11-03 16:46:32 -07001913 */
1914 oneway nvResetConfigResponse(RadioResponseInfo info);
1915
Andreas Huber675ae492017-03-28 14:40:58 -07001916 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001917 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001918 *
1919 * Valid errors returned:
1920 * RadioError:NONE
1921 * RadioError:RADIO_NOT_AVAILABLE
1922 * RadioError:SUBSCRIPTION_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001923 * RadioError:NO_MEMORY
1924 * RadioError:INTERNAL_ERR
1925 * RadioError:SYSTEM_ERR
1926 * RadioError:MODEM_ERR
1927 * RadioError:INVALID_ARGUMENTS
1928 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001929 */
1930 oneway setUiccSubscriptionResponse(RadioResponseInfo info);
1931
Andreas Huber675ae492017-03-28 14:40:58 -07001932 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001933 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001934 *
1935 * Valid errors returned:
1936 * RadioError:NONE
1937 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001938 * RadioError:NO_MEMORY
1939 * RadioError:INTERNAL_ERR
1940 * RadioError:SYSTEM_ERR
1941 * RadioError:MODEM_ERR
1942 * RadioError:INVALID_ARGUMENTS
1943 * RadioError:DEVICE_IN_USE
1944 * RadioError:INVALID_MODEM_STATE
Sanket Padawed52335c2016-11-03 16:46:32 -07001945 */
1946 oneway setDataAllowedResponse(RadioResponseInfo info);
1947
Andreas Huber675ae492017-03-28 14:40:58 -07001948 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001949 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001950 * @param config Array of HardwareConfig of the radio.
1951 *
1952 * Valid errors returned:
1953 * RadioError:NONE
1954 * RadioError:RADIO_NOT_AVAILABLE
1955 */
1956 oneway getHardwareConfigResponse(RadioResponseInfo info, vec<HardwareConfig> config);
1957
Andreas Huber675ae492017-03-28 14:40:58 -07001958 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001959 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001960 * @param result IccIoResult as defined in types.hal
1961 *
1962 * Valid errors returned:
1963 * RadioError:NONE
1964 * RadioError:RADIO_NOT_AVAILABLE
1965 */
1966 oneway requestIccSimAuthenticationResponse(RadioResponseInfo info, IccIoResult result);
1967
Andreas Huber675ae492017-03-28 14:40:58 -07001968 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001969 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001970 *
1971 * Valid errors returned:
1972 * RadioError:NONE
1973 * RadioError:RADIO_NOT_AVAILABLE
1974 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
1975 */
1976 oneway setDataProfileResponse(RadioResponseInfo info);
1977
Andreas Huber675ae492017-03-28 14:40:58 -07001978 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001979 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001980 *
1981 * Valid errors returned:
1982 * RadioError:NONE
1983 * RadioError:RADIO_NOT_AVAILABLE
1984 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07001985 * RadioError:NO_MEMORY
1986 * RadioError:INTERNAL_ERR
1987 * RadioError:SYSTEM_ERR
1988 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07001989 */
1990 oneway requestShutdownResponse(RadioResponseInfo info);
1991
Andreas Huber675ae492017-03-28 14:40:58 -07001992 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08001993 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07001994 * @param rc Radio capability as defined by RadioCapability in types.hal
1995 *
1996 * Valid errors returned:
1997 * RadioError:NONE
1998 * RadioError:RADIO_NOT_AVAILABLE
1999 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002000 * RadioError:INVALID_STATE
2001 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002002 */
2003 oneway getRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
2004
Andreas Huber675ae492017-03-28 14:40:58 -07002005 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002006 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002007 * @param rc Radio capability as defined by RadioCapability in types.hal used to
2008 * feedback return status
2009 *
2010 * Valid errors returned:
2011 * RadioError:NONE means a unsol radioCapability() will be sent within 30 seconds.
2012 * RadioError:RADIO_NOT_AVAILABLE
2013 * RadioError:OPERATION_NOT_ALLOWED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002014 * RadioError:NO_MEMORY
2015 * RadioError:INTERNAL_ERR
2016 * RadioError:SYSTEM_ERR
2017 * RadioError:INVALID_ARGUMENTS
2018 * RadioError:MODEM_ERR
2019 * RadioError:INVALID_STATE
2020 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002021 */
2022 oneway setRadioCapabilityResponse(RadioResponseInfo info, RadioCapability rc);
2023
Andreas Huber675ae492017-03-28 14:40:58 -07002024 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002025 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002026 * @param statusInfo LceStatusInfo indicating LCE status
2027 *
2028 * Valid errors returned:
2029 * RadioError:NONE
2030 * RadioError:RADIO_NOT_AVAILABLE
2031 * RadioError:LCE_NOT_SUPPORTED
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002032 * RadioError:INTERNAL_ERR
2033 * RadioError:REQUEST_NOT_SUPPORTED
Sanket Padawed52335c2016-11-03 16:46:32 -07002034 */
2035 oneway startLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
2036
Andreas Huber675ae492017-03-28 14:40:58 -07002037 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002038 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002039 * @param statusInfo LceStatusInfo indicating LCE status
2040 *
2041 * Valid errors returned:
2042 * RadioError:NONE
2043 * RadioError:RADIO_NOT_AVAILABLE
2044 * RadioError:LCE_NOT_SUPPORTED
2045 */
2046 oneway stopLceServiceResponse(RadioResponseInfo info, LceStatusInfo statusInfo);
2047
Andreas Huber675ae492017-03-28 14:40:58 -07002048 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002049 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002050 * @param lceInfo LceDataInfo indicating LCE data as defined in types.hal
2051 *
2052 * Valid errors returned:
2053 * RadioError:NONE
2054 * RadioError:RADIO_NOT_AVAILABLE
2055 * RadioError:LCE_NOT_SUPPORTED
2056 */
2057 oneway pullLceDataResponse(RadioResponseInfo info, LceDataInfo lceInfo);
2058
Andreas Huber675ae492017-03-28 14:40:58 -07002059 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002060 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002061 * @param activityInfo modem activity information
2062 *
2063 * Valid errors returned:
2064 * RadioError:NONE
2065 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002066 * RadioError:NO_MEMORY
2067 * RadioError:INTERNAL_ERR
2068 * RadioError:SYSTEM_ERR
2069 * RadioError:MODEM_ERR
2070 * RadioError:NOT_PROVISIONED
Sanket Padawed52335c2016-11-03 16:46:32 -07002071 */
2072 oneway getModemActivityInfoResponse(RadioResponseInfo info, ActivityStatsInfo activityInfo);
2073
Andreas Huber675ae492017-03-28 14:40:58 -07002074 /**
Sanket Padawe865834e2016-12-28 16:04:10 -08002075 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002076 * @param numAllowed number of allowed carriers which have been set correctly.
2077 * On success, it must match the length of list Carriers->allowedCarriers.
2078 * if Length of allowed carriers list is 0, numAllowed = 0.
2079 *
2080 * Valid errors returned:
2081 * RadioError:NONE
2082 * RadioError:RADIO_NOT_AVAILABLE
2083 * RadioError:INVALID_ARGUMENTS
2084 * RadioError:REQUEST_NOT_SUPPORTED
2085 */
2086 oneway setAllowedCarriersResponse(RadioResponseInfo info, int32_t numAllowed);
2087
Andreas Huber675ae492017-03-28 14:40:58 -07002088 /**
Sanket Padawed52335c2016-11-03 16:46:32 -07002089 * Expected modem behavior:
2090 * Return list of allowed carriers, and if all carriers are allowed.
2091 *
Sanket Padawe865834e2016-12-28 16:04:10 -08002092 * @param info Response info struct containing response type, serial no. and error
Sanket Padawed52335c2016-11-03 16:46:32 -07002093 * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct.
2094 * If false, consider "carriers" struct
2095 * @param carriers Carrier restriction information.
2096 *
2097 * Valid errors returned:
2098 * RadioError:NONE
2099 * RadioError:RADIO_NOT_AVAILABLE
2100 * RadioError:REQUEST_NOT_SUPPORTED
2101 */
2102 oneway getAllowedCarriersResponse(RadioResponseInfo info, bool allAllowed,
2103 CarrierRestrictions carriers);
Sanket Padawe1a7eae72016-12-07 14:40:03 -08002104
Andreas Huber675ae492017-03-28 14:40:58 -07002105 /**
Jack Yued7ef812017-01-24 11:56:52 -08002106 * @param info Response info struct containing response type, serial no. and error
2107 *
2108 * Valid errors returned:
2109 * RadioError:NONE
2110 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002111 * RadioError:NO_MEMORY
2112 * RadioError:INTERNAL_ERR
2113 * RadioError:SYSTEM_ERR
2114 * RadioError:INVALID_ARGUMENTS
2115 * RadioError:REQUEST_NOT_SUPPORTED
Jack Yued7ef812017-01-24 11:56:52 -08002116 */
2117 oneway sendDeviceStateResponse(RadioResponseInfo info);
2118
Andreas Huber675ae492017-03-28 14:40:58 -07002119 /**
Jack Yued7ef812017-01-24 11:56:52 -08002120 * @param info Response info struct containing response type, serial no. and error
2121 *
2122 * Valid errors returned:
2123 * RadioError:NONE
2124 * RadioError:INVALID_ARGUMENTS
2125 * RadioError:RADIO_NOT_AVAILABLE
Naina Nalluri9cc29c82017-05-05 11:00:05 -07002126 * RadioError:NO_MEMORY
2127 * RadioError:INTERNAL_ERR
2128 * RadioError:SYSTEM_ERR
2129 * RadioError:REQUEST_NOT_SUPPORTED
Jack Yued7ef812017-01-24 11:56:52 -08002130 */
2131 oneway setIndicationFilterResponse(RadioResponseInfo info);
2132
Andreas Huber675ae492017-03-28 14:40:58 -07002133 /**
Jack Yua2118692017-02-15 15:31:34 -08002134 * @param info Response info struct containing response type, serial no. and error
2135 *
2136 * Valid errors returned:
2137 * RadioError:NONE
2138 * RadioError:RADIO_NOT_AVAILABLE
2139 * RadioError:REQUEST_NOT_SUPPORTED
Jack Yua2118692017-02-15 15:31:34 -08002140 * RadioError:INVALID_ARGUMENTS
2141 */
2142 oneway setSimCardPowerResponse(RadioResponseInfo info);
2143
Andreas Huber675ae492017-03-28 14:40:58 -07002144 /**
Jack Yued7ef812017-01-24 11:56:52 -08002145 * Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
Sanket Padawe1a7eae72016-12-07 14:40:03 -08002146 * radio request which take long time to respond.
2147 * For more details, refer https://source.android.com/devices/tech/connect/ril.html
2148 *
2149 * @param serial Serial no. of the request whose acknowledgement is sent.
2150 */
Sanket Padawe865834e2016-12-28 16:04:10 -08002151 oneway acknowledgeRequest(int32_t serial);
Sanket Padawe76372492016-10-27 13:20:49 -07002152};