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