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