blob: 1380da32a9493b2b8602701810f143d6e5d14040 [file] [log] [blame]
Malcolm Chen360e1f92019-10-02 11:38:13 -07001/*
2 * Copyright (C) 2019 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.5;
18
19import @1.0::RadioResponseInfo;
Nazish Tabassumba2f8302019-12-10 14:35:09 +053020import @1.0::SendSmsResult;
Malcolm Chen360e1f92019-10-02 11:38:13 -070021import @1.4::IRadioResponse;
Nathan Harold4bb9d312019-12-23 14:34:26 -080022import @1.5::BarringInfo;
Sarah Chindafc9a92020-02-25 16:21:44 -080023import @1.5::CardStatus;
Rambo Wang6894f892020-02-05 21:31:53 -080024import @1.5::CellIdentity;
Nathan Harold500733c2020-01-20 17:04:16 -080025import @1.5::CellInfo;
Sarah Chinfc166682020-01-29 11:02:09 -080026import @1.5::PersoSubstate;
Nathan Harold8f6b67b2020-01-16 17:00:49 -080027import @1.5::RegStateResult;
Nazish Tabassumba2f8302019-12-10 14:35:09 +053028import @1.5::SetupDataCallResult;
Malcolm Chen360e1f92019-10-02 11:38:13 -070029
30/**
31 * Interface declaring response functions to solicited radio requests.
32 */
33interface IRadioResponse extends @1.4::IRadioResponse {
sqianf1850bf2019-11-12 18:26:30 -080034 /**
35 * @param info Response info struct containing response type, serial no. and error
36 *
37 * Valid errors returned:
38 * RadioError:NONE
39 * RadioError:INVALID_ARGUMENTS
40 * RadioError:RADIO_NOT_AVAILABLE
41 */
42 oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info);
Malcolm Chenfb6d6242019-11-12 19:03:12 -080043
44 /**
45 * @param info Response info struct containing response type, serial no. and error
46 *
47 * Valid errors returned:
48 * RadioError:NONE
Sarah Chinfec7c4e2020-02-11 12:05:46 -080049 * RadioError:INVALID_ARGUMENTS
50 * RadioError:RADIO_NOT_AVAILABLE
51 * RadioError:INTERNAL_ERR
52 */
53 oneway setLinkCapacityReportingCriteriaResponse_1_5(RadioResponseInfo info);
54
55 /**
56 * @param info Response info struct containing response type, serial no. and error
57 *
58 * Valid errors returned:
59 * RadioError:NONE
Malcolm Chenfb6d6242019-11-12 19:03:12 -080060 * RadioError:SIM_ABSENT
61 * RadioError:RADIO_NOT_AVAILABLE
62 * RadioError:INTERNAL_ERR
63 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080064 */
65 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
66
67 /**
68 * @param info Response info struct containing response type, serial no. and error
69 * @param enabled whether Uicc applications are enabled.
70 *
71 * Valid errors returned:
72 * RadioError:NONE
73 * RadioError:SIM_ABSENT
74 * RadioError:RADIO_NOT_AVAILABLE
75 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080076 */
77 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
78
79 /**
80 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070081 *
82 * Valid errors returned:
83 * RadioError:NONE
84 * RadioError:RADIO_NOT_AVAILABLE
85 * RadioError:INTERNAL_ERR
86 * RadioError:INVALID_ARGUMENTS
87 */
88 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
89
90 /**
91 * @param info Response info struct containing response type, serial no. and error
92 *
93 * Valid errors returned:
94 * RadioError:NONE
95 * RadioError:RADIO_NOT_AVAILABLE
96 * RadioError:DEVICE_IN_USE
97 * RadioError:INTERNAL_ERR
98 * RadioError:MODEM_ERR
99 * RadioError:INVALID_ARGUMENTS
100 */
101 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -0800102
103 /**
104 * @param info Response info struct containing response type, serial no. and error
105 * @param dcResponse SetupDataCallResult defined in types.hal
106 *
107 * Valid errors returned:
108 * RadioError:NONE must be returned on both success and failure of setup with the
109 * DataCallResponse.status containing the actual status
110 * For all other errors the DataCallResponse is ignored.
111 * RadioError:RADIO_NOT_AVAILABLE
112 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
113 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
114 * RadioError:REQUEST_NOT_SUPPORTED
115 * RadioError:INVALID_ARGUMENTS
116 * RadioError:INTERNAL_ERR
117 * RadioError:NO_RESOURCES
118 * RadioError:SIM_ABSENT
119 */
120 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
121
122 /**
123 * @param info Response info struct containing response type, serial no. and error
Sarah Chindafc9a92020-02-25 16:21:44 -0800124 * @param dcResponse List of SetupDataCallResult as defined in types.hal
125 *
126 * Valid errors returned:
127 * RadioError:NONE
128 * RadioError:RADIO_NOT_AVAILABLE
129 * RadioError:INTERNAL_ERR
130 * RadioError:NO_RESOURCES
131 * RadioError:REQUEST_NOT_SUPPORTED
132 * RadioError:SIM_ABSENT
133 */
134 oneway getDataCallListResponse_1_5(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
135
136 /**
137 * @param info Response info struct containing response type, serial no. and error
Sarah Chin039d5422019-11-05 15:39:32 -0800138 *
139 * Valid errors returned:
140 * RadioError:NONE
141 * RadioError:RADIO_NOT_AVAILABLE
142 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
143 * RadioError:NO_MEMORY
144 * RadioError:INTERNAL_ERR
145 * RadioError:SYSTEM_ERR
146 * RadioError:MODEM_ERR
147 * RadioError:INVALID_ARGUMENTS
148 * RadioError:NOT_PROVISIONED
149 * RadioError:REQUEST_NOT_SUPPORTED
150 * RadioError:NO_RESOURCES
151 * RadioError:CANCELLED
152 */
153 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
154
155 /**
156 * @param info Response info struct containing response type, serial no. and error
157 *
158 * Valid errors returned:
159 * RadioError:NONE
160 * RadioError:RADIO_NOT_AVAILABLE
161 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
162 * RadioError:INTERNAL_ERR
163 * RadioError:NO_MEMORY
164 * RadioError:NO_RESOURCES
165 * RadioError:CANCELLED
166 * RadioError:REQUEST_NOT_SUPPORTED
167 * RadioError:SIM_ABSENT
168 */
169 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -0800170
171 /**
172 * @param info Response info struct containing response type, serial no. and error
173 *
174 * Valid errors returned:
175 * RadioError:NONE
176 * RadioError:INTERNAL_ERR
177 * RadioError:INVALID_ARGUMENTS
178 */
179 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800180
181 /**
182 * @param info Response info struct containing response type, serial no. and error
183 *
184 * Valid errors returned:
185 * RadioError:NONE
186 * RadioError:INVALID_ARGUMENTS
187 * RadioError:RADIO_NOT_AVAILABLE
188 * RadioError:INTERNAL_ERR
189 * RadioError:SYSTEM_ERR
190 */
191 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800192
193 /**
194 * @param info Response info struct containing response type, serial no. and error
Rambo Wang6894f892020-02-05 21:31:53 -0800195 * @param cellIdentity CellIdentity for the barring infos.
Nathan Harold4bb9d312019-12-23 14:34:26 -0800196 * @param barringInfos a vector of barring info for all barring service types
197 *
198 * Valid errors returned:
199 * RadioError:NONE
200 * RadioError:RADIO_NOT_AVAILABLE
201 * RadioError:INTERNAL_ERR
202 * RadioError:MODEM_ERR
203 */
Rambo Wang6894f892020-02-05 21:31:53 -0800204 oneway getBarringInfoResponse(RadioResponseInfo info, CellIdentity cellIdentity,
205 vec<BarringInfo> barringInfos);
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800206
207 /**
Sarah Chinfc166682020-01-29 11:02:09 -0800208 * @param info Response info struct containing response type, serial no. and error
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800209 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
210 * in types.hal
211 *
212 * Valid errors returned:
213 * RadioError:NONE
214 * RadioError:RADIO_NOT_AVAILABLE
215 * RadioError:INTERNAL_ERR
216 */
217 oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
218 RegStateResult voiceRegResponse);
219
220 /**
221 * @param info Response info struct containing response type, serial no. and error
222 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
223 * types.hal
224 *
225 * Valid errors returned:
226 * RadioError:NONE
227 * RadioError:RADIO_NOT_AVAILABLE
228 * RadioError:INTERNAL_ERR
229 * RadioError:NOT_PROVISIONED
230 */
231 oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
232 RegStateResult dataRegResponse);
Nathan Harold500733c2020-01-20 17:04:16 -0800233
234 /**
235 * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo.
236 *
237 * @param info Response info struct containing response type, serial no. and error
238 * @param cellInfo List of current cell information known to radio
239 *
240 * Valid errors returned:
241 * RadioError:NONE
242 * RadioError:RADIO_NOT_AVAILABLE
243 * RadioError:INTERNAL_ERR
244 */
245 oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo);
Sarah Chin3efba532019-12-18 17:37:27 -0800246
Sarah Chin3efba532019-12-18 17:37:27 -0800247 /**
248 * @param info Response info struct containing response type, serial no. and error
249 *
250 * Valid errors returned:
251 * RadioError:NONE
252 * RadioError:RADIO_NOT_AVAILABLE
253 * RadioError:ILLEGAL_SIM_OR_ME
254 * RadioError:OPERATION_NOT_ALLOWED
255 * RadioError:INVALID_STATE
256 * RadioError:NO_MEMORY
257 * RadioError:INTERNAL_ERR
258 * RadioError:SYSTEM_ERR
259 * RadioError:INVALID_ARGUMENTS
260 * RadioError:MODEM_ERR
261 * RadioError:REQUEST_NOT_SUPPORTED
262 * RadioError:NO_RESOURCES
263 * RadioError:CANCELLED
264 *
265 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
266 * no retries needed, such as illegal SIM or ME.
267 */
268 oneway setNetworkSelectionModeManualResponse_1_5(RadioResponseInfo info);
Nazish Tabassumba2f8302019-12-10 14:35:09 +0530269
270 /**
271 * @param info Response info struct containing response type, serial no. and error
272 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
273 *
274 * Valid errors returned:
275 * RadioError:NONE
276 * RadioError:RADIO_NOT_AVAILABLE
277 * RadioError:SMS_SEND_FAIL_RETRY
278 * RadioError:NETWORK_REJECT
279 * RadioError:INVALID_STATE
280 * RadioError:INVALID_ARGUMENTS
281 * RadioError:NO_MEMORY
282 * RadioError:REQUEST_RATE_LIMITED
283 * RadioError:INVALID_SMS_FORMAT
284 * RadioError:SYSTEM_ERR
285 * RadioError:FDN_CHECK_FAILURE
286 * RadioError:ENCODING_ERR
287 * RadioError:INVALID_SMSC_ADDRESS
288 * RadioError:MODEM_ERR
289 * RadioError:NETWORK_ERR
290 * RadioError:INTERNAL_ERR
291 * RadioError:REQUEST_NOT_SUPPORTED
292 * RadioError:INVALID_MODEM_STATE
293 * RadioError:NETWORK_NOT_READY
294 * RadioError:OPERATION_NOT_ALLOWED
295 * RadioError:NO_RESOURCES
296 * RadioError:CANCELLED
297 * RadioError:SIM_ABSENT
298 */
299 oneway sendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
Robert Greenwaltd6748352020-01-23 20:01:12 -0800300
301 /**
302 * @param info Response info struct contatining response type, serial no. and error
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530303 * @param persoType SIM Personalisation type
Robert Greenwaltd6748352020-01-23 20:01:12 -0800304 * @param remainingRetries postiive values indicates number of retries remaining,
305 * must be equal to -1 if number of retries is infinite.
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530306 *
307 * Valid errors returned:
308 * RadioError:NONE
309 * RadioError:RADIO_NOT_AVAILABLE
310 * RadioError:PASSWORD_INCORRECT (code is invalid)
311 * RadioError:NO_MEMORY
312 * RadioError:INVALID_SIM_STATE
313 * RadioError:INTERNAL_ERR
314 * RadioError:SYSTEM_ERR
315 * RadioError:MODEM_ERR
316 * RadioError:INVALID_ARGUMENTS
317 * RadioError:NO_RESOURCES
318 * RadioError:REQUEST_NOT_SUPPORTED
319 */
320 oneway supplySimDepersonalizationResponse(RadioResponseInfo info,
Sarah Chindafc9a92020-02-25 16:21:44 -0800321 PersoSubstate persoType, int32_t remainingRetries);
322
323 /**
324 * @param info Response info struct containing response type, serial no. and error
325 * @param cardStatus ICC card status as defined by CardStatus in types.hal
326 *
327 * Valid errors returned:
328 * RadioError:NONE
329 * RadioError:RADIO_NOT_AVAILABLE
330 * RadioError:INTERNAL_ERR
331 * RadioError:NO_RESOURCES
332 * RadioError:REQUEST_NOT_SUPPORTED
333 */
334 oneway getIccCardStatusResponse_1_5(RadioResponseInfo info, CardStatus cardStatus);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700335};