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