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