blob: 6ac86c335eb451c3e540d5a5a2b3df76ee663cf0 [file] [log] [blame]
Jayachandran C262b6062020-07-22 15:53:58 -07001/*
2 * Copyright (C) 2020 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.6;
18
allenwtsu1c3dcd32020-09-25 17:58:01 +080019import @1.0::SendSmsResult;
Yomna Nassere8bfa9c2020-11-17 22:00:55 +000020import @1.4::RadioAccessFamily;
Jayachandran C262b6062020-07-22 15:53:58 -070021import @1.5::IRadioResponse;
Shinsuke Ishiokaede1e952018-08-17 18:02:29 +090022import @1.6::Call;
Mingming Caida0d9832020-11-05 17:56:57 -080023import @1.6::CellInfo;
Hui Wangfb202502020-11-13 04:30:18 +000024import @1.6::RegStateResult;
Mingming Caida0d9832020-11-05 17:56:57 -080025import @1.6::RadioResponseInfo;
Jayachandran C9bc276b2020-07-24 00:46:58 -070026import @1.6::SetupDataCallResult;
Mingming Cai20a2f422020-12-03 12:18:48 -080027import @1.6::SignalStrength;
Jayachandran C262b6062020-07-22 15:53:58 -070028
29/**
30 * Interface declaring response functions to solicited radio requests.
31 */
32interface IRadioResponse extends @1.5::IRadioResponse {
Jayachandran C9bc276b2020-07-24 00:46:58 -070033 /**
34 * @param info Response info struct containing response type, serial no. and error
Tim Line29df602020-09-26 22:43:24 +080035 *
36 * Valid errors returned:
37 * RadioError:NONE
38 * RadioError:INTERNAL_ERR
39 * RadioError:INVALID_ARGUMENTS
40 * RadioError:RF_HARDWARE_ISSUE
41 * RadioError:NO_RF_CALIBRATION_INFO
42 */
43 oneway setRadioPowerResponse_1_6(RadioResponseInfo info);
44
45 /**
46 * @param info Response info struct containing response type, serial no. and error
Jayachandran C9bc276b2020-07-24 00:46:58 -070047 * @param dcResponse SetupDataCallResult defined in types.hal
48 *
49 * Valid errors returned:
50 * RadioError:NONE must be returned on both success and failure of setup with the
51 * DataCallResponse.status containing the actual status
52 * For all other errors the DataCallResponse is ignored.
53 * RadioError:RADIO_NOT_AVAILABLE
54 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
55 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
56 * RadioError:INVALID_ARGUMENTS
57 * RadioError:INTERNAL_ERR
58 * RadioError:NO_RESOURCES if the vendor is unable handle due to resources
59 * are full.
60 * RadioError:SIM_ABSENT
61 */
62 oneway setupDataCallResponse_1_6(RadioResponseInfo info, SetupDataCallResult dcResponse);
63
64 /**
65 * @param info Response info struct containing response type, serial no. and error
66 * @param dcResponse List of SetupDataCallResult as defined in types.hal
67 *
68 * Valid errors returned:
69 * RadioError:NONE
70 * RadioError:RADIO_NOT_AVAILABLE
71 * RadioError:INTERNAL_ERR
72 * RadioError:SIM_ABSENT
73 */
74 oneway getDataCallListResponse_1_6(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
allenwtsu1c3dcd32020-09-25 17:58:01 +080075
76 /**
77 * @param info Response info struct containing response type, serial no. and error
78 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
79 *
80 * Valid errors returned:
81 * RadioError:NONE
82 * RadioError:RADIO_NOT_AVAILABLE
83 * RadioError:SMS_SEND_FAIL_RETRY
84 * RadioError:NETWORK_REJECT
85 * RadioError:INVALID_STATE
86 * RadioError:INVALID_ARGUMENTS
87 * RadioError:NO_MEMORY
88 * RadioError:REQUEST_RATE_LIMITED
89 * RadioError:INVALID_SMS_FORMAT
90 * RadioError:SYSTEM_ERR
91 * RadioError:ENCODING_ERR
92 * RadioError:INVALID_SMSC_ADDRESS
93 * RadioError:MODEM_ERR
94 * RadioError:NETWORK_ERR
95 * RadioError:INTERNAL_ERR
96 * RadioError:REQUEST_NOT_SUPPORTED
97 * RadioError:INVALID_MODEM_STATE
98 * RadioError:NETWORK_NOT_READY
99 * RadioError:OPERATION_NOT_ALLOWED
100 * RadioError:NO_RESOURCES
101 * RadioError:CANCELLED
102 * RadioError:SIM_ABSENT
103 * RadioError:ACCESS_BARRED
104 * RadioError:BLOCKED_DUE_TO_CALL
105 */
106 oneway sendSmsResponse_1_6(RadioResponseInfo info, SendSmsResult sms);
107
108 /**
109 * @param info Response info struct containing response type, serial no. and error
110 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
111 *
112 * Valid errors returned:
113 * RadioError:NONE
114 * RadioError:RADIO_NOT_AVAILABLE
115 * RadioError:SMS_SEND_FAIL_RETRY
116 * RadioError:NETWORK_REJECT
117 * RadioError:INVALID_STATE
118 * RadioError:INVALID_ARGUMENTS
119 * RadioError:NO_MEMORY
120 * RadioError:REQUEST_RATE_LIMITED
121 * RadioError:INVALID_SMS_FORMAT
122 * RadioError:SYSTEM_ERR
123 * RadioError:FDN_CHECK_FAILURE
124 * RadioError:ENCODING_ERR
125 * RadioError:INVALID_SMSC_ADDRESS
126 * RadioError:MODEM_ERR
127 * RadioError:NETWORK_ERR
128 * RadioError:INTERNAL_ERR
129 * RadioError:REQUEST_NOT_SUPPORTED
130 * RadioError:INVALID_MODEM_STATE
131 * RadioError:NETWORK_NOT_READY
132 * RadioError:OPERATION_NOT_ALLOWED
133 * RadioError:NO_RESOURCES
134 * RadioError:CANCELLED
135 * RadioError:SIM_ABSENT
136 * RadioError:ACCESS_BARRED
137 * RadioError:BLOCKED_DUE_TO_CALL
138 */
139 oneway sendSMSExpectMoreResponse_1_6(RadioResponseInfo info, SendSmsResult sms);
140
141 /**
142 * @param info Response info struct containing response type, serial no. and error
143 * @param sms Sms result struct as defined by SendSmsResult in types.hal
144 *
145 * Valid errors returned:
146 * RadioError:NONE
147 * RadioError:RADIO_NOT_AVAILABLE
148 * RadioError:INVALID_ARGUMENTS
149 * RadioError:SMS_SEND_FAIL_RETRY
150 * RadioError:NETWORK_REJECT
151 * RadioError:INVALID_STATE
152 * RadioError:NO_MEMORY
153 * RadioError:REQUEST_RATE_LIMITED
154 * RadioError:INVALID_SMS_FORMAT
155 * RadioError:SYSTEM_ERR
156 * RadioError:FDN_CHECK_FAILURE
157 * RadioError:MODEM_ERR
158 * RadioError:NETWORK_ERR
159 * RadioError:ENCODING_ERR
160 * RadioError:INVALID_SMSC_ADDRESS
161 * RadioError:INTERNAL_ERR
162 * RadioError:SYSTEM_ERR
163 * RadioError:REQUEST_NOT_SUPPORTED
164 * RadioError:OPERATION_NOT_ALLOWED
165 * RadioError:ENCODING_ERR
166 * RadioError:NO_RESOURCES
167 * RadioError:CANCELLED
168 * RadioError:SIM_ABSENT
169 * RadioError:SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED
170 * RadioError:ACCESS_BARRED
171 * RadioError:BLOCKED_DUE_TO_CALL
172 */
173 oneway sendCdmaSmsResponse_1_6(RadioResponseInfo info, SendSmsResult sms);
174
175 /**
176 * @param info Response info struct containing response type, serial no. and error
177 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
178 *
179 * Valid errors returned:
180 * RadioError:NONE
181 * RadioError:RADIO_NOT_AVAILABLE
182 * RadioError:SMS_SEND_FAIL_RETRY
183 * RadioError:NETWORK_REJECT
184 * RadioError:INVALID_STATE
185 * RadioError:INVALID_ARGUMENTS
186 * RadioError:NO_MEMORY
187 * RadioError:REQUEST_RATE_LIMITED
188 * RadioError:INVALID_SMS_FORMAT
189 * RadioError:SYSTEM_ERR
190 * RadioError:FDN_CHECK_FAILURE
191 * RadioError:ENCODING_ERR
192 * RadioError:INVALID_SMSC_ADDRESS
193 * RadioError:MODEM_ERR
194 * RadioError:NETWORK_ERR
195 * RadioError:INTERNAL_ERR
196 * RadioError:REQUEST_NOT_SUPPORTED
197 * RadioError:INVALID_MODEM_STATE
198 * RadioError:NETWORK_NOT_READY
199 * RadioError:OPERATION_NOT_ALLOWED
200 * RadioError:NO_RESOURCES
201 * RadioError:CANCELLED
202 * RadioError:SIM_ABSENT
203 * RadioError:SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED
204 * RadioError:ACCESS_BARRED
205 * RadioError:BLOCKED_DUE_TO_CALL
206 */
207 oneway sendCdmaSmsExpectMoreResponse_1_6(RadioResponseInfo info, SendSmsResult sms);
Sooraj Sasindrana9d461b2020-08-14 11:00:11 -0700208
209 /**
210 * @param info Response info struct containing response type, serial no. and error
211 *
212 * Valid errors returned:
213 * RadioError:NONE
214 * RadioError:RADIO_NOT_AVAILABLE
Jordan Liue4f5f022020-10-21 16:28:40 -0700215 * RadioError:INVALID_ARGUMENTS
216 * RadioError:SIM_ERR (indicates a timeout or other issue making the SIM unresponsive)
217 *
218 * Note that this differs from setSimCardPowerResponse_1_1 in that the response
219 * should only be sent once the request from setSimCardPower_1_6 is complete
220 * (the SIM has finished powering on or off).
221 */
222 oneway setSimCardPowerResponse_1_6(RadioResponseInfo info);
223
224 /**
225 * @param info Response info struct containing response type, serial no. and error
226 *
227 * Valid errors returned:
228 * RadioError:NONE
229 * RadioError:RADIO_NOT_AVAILABLE
Sooraj Sasindrana9d461b2020-08-14 11:00:11 -0700230 * RadioError:INTERNAL_ERR
231 */
Sooraj Sasindrane9525fd2020-11-03 20:46:57 -0800232 oneway setNrDualConnectivityStateResponse(RadioResponseInfo info);
Sooraj Sasindrana9d461b2020-08-14 11:00:11 -0700233
234 /**
235 * @param info Response info struct containing response type, serial no. and error
236 *
237 * @param isEnabled Indicates whether NR dual connectivity is enabled or not, True if enabled
238 * else false.
239 * Valid errors returned:
240 * RadioError:NONE
241 * RadioError:RADIO_NOT_AVAILABLE
242 * RadioError:INTERNAL_ERR
243 */
244 oneway isNrDualConnectivityEnabledResponse(RadioResponseInfo info, bool isEnabled);
Daniel Bright15cc34a2020-10-26 11:34:53 -0700245
246 /**
247 * @param info Response info struct containing response type, serial no. and error
Daniel Bright3c72fba2020-11-03 14:56:23 -0800248 * @param id The allocated id. On an error, this is set to 0.
Daniel Bright15cc34a2020-10-26 11:34:53 -0700249 *
250 * Valid errors returned:
251 * RadioError:NONE
252 * RadioError:RADIO_NOT_AVAILABLE
253 * RadioError:INTERNAL_ERR
254 * RadioError:NO_RESOURCES- Indicates that no pdu session ids are available
255 * RadioError:REQUEST_NOT_SUPPORTED
256 */
257 oneway allocatePduSessionIdResponse(RadioResponseInfo info, int32_t id);
258
259 /**
260 * @param info Response info struct containing response type, serial no. and error
261 *
262 * Valid errors returned:
263 * RadioError:NONE
264 * RadioError:RADIO_NOT_AVAILABLE
265 * RadioError:INTERNAL_ERR
266 * RadioError:NO_RESOURCES
267 * RadioError:REQUEST_NOT_SUPPORTED
268 */
269 oneway releasePduSessionIdResponse(RadioResponseInfo info);
270
271 /**
272 * @param info Response info struct containing response type, serial no. and error
273 *
274 * Valid errors returned:
275 * RadioError:NONE
276 * RadioError:RADIO_NOT_AVAILABLE
277 * RadioError:INTERNAL_ERR
278 * RadioError:NO_RESOURCES
279 * RadioError:REQUEST_NOT_SUPPORTED
280 * RadioError:INVALID_CALL_ID
281 */
Daniel Bright3c72fba2020-11-03 14:56:23 -0800282 oneway startHandoverResponse(RadioResponseInfo info);
Daniel Bright15cc34a2020-10-26 11:34:53 -0700283
284 /**
285 * @param info Response info struct containing response type, serial no. and error
286 * @param dcResponse Attributes of data call
287 *
288 * Valid errors returned:
289 * RadioError:NONE
290 * RadioError:RADIO_NOT_AVAILABLE
291 * RadioError:INTERNAL_ERR
292 * RadioError:NO_RESOURCES
293 * RadioError:REQUEST_NOT_SUPPORTED
294 * RadioError:INVALID_CALL_ID
295 */
296 oneway cancelHandoverResponse(RadioResponseInfo info);
ThiƩbaud Weksteen5ae16f32020-08-21 16:46:07 +0200297
298 /**
299 * Callback of IRadio.setAllowedNetworkTypeBitmap(int, bitfield<RadioAccessFamily>)
300 *
301 * Valid errors returned:
302 * RadioError:NONE
303 * RadioError:RADIO_NOT_AVAILABLE
304 * RadioError:OPERATION_NOT_ALLOWED
305 * RadioError:MODE_NOT_SUPPORTED
306 * RadioError:INTERNAL_ERR
307 * RadioError:INVALID_ARGUMENTS
308 * RadioError:MODEM_ERR
309 * RadioError:REQUEST_NOT_SUPPORTED
310 * RadioError:NO_RESOURCES
311 */
312 oneway setAllowedNetworkTypeBitmapResponse(RadioResponseInfo info);
Jack Nudelman5cd94142020-09-24 14:23:35 -0700313
314 /**
Yomna Nassere8bfa9c2020-11-17 22:00:55 +0000315 * Callback of IRadio.getAllowedNetworkTypeBitmap(int, bitfield<RadioAccessFamily>)
316 *
317 * Valid errors returned:
318 * RadioError:NONE
319 * RadioError:RADIO_NOT_AVAILABLE
320 * RadioError:OPERATION_NOT_ALLOWED
321 * RadioError:MODE_NOT_SUPPORTED
322 * RadioError:INTERNAL_ERR
323 * RadioError:INVALID_ARGUMENTS
324 * RadioError:MODEM_ERR
325 * RadioError:REQUEST_NOT_SUPPORTED
326 * RadioError:NO_RESOURCES
327 */
328 oneway getAllowedNetworkTypeBitmapResponse(
329 RadioResponseInfo info, bitfield<RadioAccessFamily> networkTypeBitmap);
330
331 /**
Jack Nudelman5cd94142020-09-24 14:23:35 -0700332 * @param info Response info struct containing response type, serial no. and error
333 *
334 * Valid errors returned:
335 * RadioError:NONE
336 * RadioError:RADIO_NOT_AVAILABLE
337 * RadioError:MODEM_ERR
338 * RadioError:INVALID_ARGUMENTS
339 */
340 oneway setDataThrottlingResponse(RadioResponseInfo info);
Sarah Chinf69abcf2020-11-18 13:40:15 -0800341
342 /**
343 * @param info Response info struct containing response type, serial no. and error
344 *
345 * Valid errors returned:
346 * RadioError:NONE
347 * RadioError:RADIO_NOT_AVAILABLE
348 * RadioError:INTERNAL_ERR
349 * RadioError:INVALID_ARGUMENTS
350 */
351 oneway getSystemSelectionChannelsResponse(RadioResponseInfo info);
Hui Wangfb202502020-11-13 04:30:18 +0000352
353 /**
Mingming Caida0d9832020-11-05 17:56:57 -0800354 * This is identical to getCellInfoListResponse_1_5 but uses an updated version of CellInfo.
355 *
356 * @param info Response info struct containing response type, serial no. and error
357 * @param cellInfo List of current cell information known to radio
358 *
359 * Valid errors returned:
360 * RadioError:NONE
361 * RadioError:RADIO_NOT_AVAILABLE
362 * RadioError:INTERNAL_ERR
363 */
364 oneway getCellInfoListResponse_1_6(RadioResponseInfo info, vec<CellInfo> cellInfo);
365
366 /**
Mingming Cai20a2f422020-12-03 12:18:48 -0800367 * This is identical to getSignalStrengthResponse_1_4 but uses an updated version of
368 * SignalStrength.
369 *
370 * @param signalStrength Current signal strength
371 *
372 * Valid errors returned:
373 * RadioError:NONE
374 * RadioError:RADIO_NOT_AVAILABLE
375 * RadioError:INTERNAL_ERR
376 */
377 oneway getSignalStrengthResponse_1_6(RadioResponseInfo info, SignalStrength signalStrength);
378
379 /**
Hui Wangfb202502020-11-13 04:30:18 +0000380 * @param info Response info struct containing response type, serial no. and error
381 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
382 * in types.hal
383 *
384 * Valid errors returned:
385 * RadioError:NONE
386 * RadioError:RADIO_NOT_AVAILABLE
387 * RadioError:INTERNAL_ERR
388 */
389 oneway getVoiceRegistrationStateResponse_1_6(RadioResponseInfo info,
390 RegStateResult voiceRegResponse);
391
392 /**
393 * @param info Response info struct containing response type, serial no. and error
394 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
395 * types.hal
396 *
397 * Valid errors returned:
398 * RadioError:NONE
399 * RadioError:RADIO_NOT_AVAILABLE
400 * RadioError:INTERNAL_ERR
401 * RadioError:NOT_PROVISIONED
402 */
403 oneway getDataRegistrationStateResponse_1_6(RadioResponseInfo info,
404 RegStateResult dataRegResponse);
Shinsuke Ishiokaede1e952018-08-17 18:02:29 +0900405
406 /**
407 * @param calls Current call list
408 * RadioError:NO_MEMORY
409 * RadioError:INTERNAL_ERR
410 * RadioError:SYSTEM_ERR
411 * RadioError:INVALID_ARGUMENTS
412 * RadioError:REQUEST_NOT_SUPPORTED
413 * RadioError:NO_RESOURCES
414 * RadioError:CANCELLED
415 */
416 oneway getCurrentCallsResponse_1_6(RadioResponseInfo info, vec<Call> calls);
Jayachandran C262b6062020-07-22 15:53:58 -0700417};