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