blob: 05bb00304f90307334157a8e872bc3b2f7d050ec [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:REQUEST_NOT_SUPPORTED
211 * 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);
Jayachandran C262b6062020-07-22 15:53:58 -0700309};