blob: 886f9951d615e45a7258c49d8fdc34cbedf848b2 [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 Tabassumc4487182019-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 Chinca261012020-02-25 16:21:44 -080023import @1.5::CardStatus;
Nathan Harold8f0d8b12020-01-20 17:04:16 -080024import @1.5::CellInfo;
Sarah Chinf90eddf2020-01-29 11:02:09 -080025import @1.5::PersoSubstate;
Nathan Haroldcaee79f2020-01-16 17:00:49 -080026import @1.5::RegStateResult;
27import @1.5::SetupDataCallResult;
Malcolm Chen360e1f92019-10-02 11:38:13 -070028
29/**
30 * Interface declaring response functions to solicited radio requests.
31 */
32interface IRadioResponse extends @1.4::IRadioResponse {
sqianf1850bf2019-11-12 18:26:30 -080033 /**
34 * @param info Response info struct containing response type, serial no. and error
35 *
36 * Valid errors returned:
37 * RadioError:NONE
38 * RadioError:INVALID_ARGUMENTS
39 * RadioError:RADIO_NOT_AVAILABLE
40 */
41 oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info);
Malcolm Chenfb6d6242019-11-12 19:03:12 -080042
43 /**
44 * @param info Response info struct containing response type, serial no. and error
45 *
46 * Valid errors returned:
47 * RadioError:NONE
Sarah Chin2f8f6c32020-02-11 12:05:46 -080048 * RadioError:INVALID_ARGUMENTS
49 * RadioError:RADIO_NOT_AVAILABLE
50 * RadioError:INTERNAL_ERR
51 */
52 oneway setLinkCapacityReportingCriteriaResponse_1_5(RadioResponseInfo info);
53
54 /**
55 * @param info Response info struct containing response type, serial no. and error
56 *
57 * Valid errors returned:
58 * RadioError:NONE
Malcolm Chenfb6d6242019-11-12 19:03:12 -080059 * RadioError:SIM_ABSENT
60 * RadioError:RADIO_NOT_AVAILABLE
61 * RadioError:INTERNAL_ERR
62 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080063 */
64 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
65
66 /**
67 * @param info Response info struct containing response type, serial no. and error
68 * @param enabled whether Uicc applications are enabled.
69 *
70 * Valid errors returned:
71 * RadioError:NONE
72 * RadioError:SIM_ABSENT
73 * RadioError:RADIO_NOT_AVAILABLE
74 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080075 */
76 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
77
78 /**
79 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070080 *
81 * Valid errors returned:
82 * RadioError:NONE
83 * RadioError:RADIO_NOT_AVAILABLE
84 * RadioError:INTERNAL_ERR
85 * RadioError:INVALID_ARGUMENTS
86 */
87 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
88
89 /**
90 * @param info Response info struct containing response type, serial no. and error
91 *
92 * Valid errors returned:
93 * RadioError:NONE
94 * RadioError:RADIO_NOT_AVAILABLE
95 * RadioError:DEVICE_IN_USE
96 * RadioError:INTERNAL_ERR
97 * RadioError:MODEM_ERR
98 * RadioError:INVALID_ARGUMENTS
99 */
100 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -0800101
102 /**
103 * @param info Response info struct containing response type, serial no. and error
104 * @param dcResponse SetupDataCallResult defined in types.hal
105 *
106 * Valid errors returned:
107 * RadioError:NONE must be returned on both success and failure of setup with the
108 * DataCallResponse.status containing the actual status
109 * For all other errors the DataCallResponse is ignored.
110 * RadioError:RADIO_NOT_AVAILABLE
111 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
112 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
113 * RadioError:REQUEST_NOT_SUPPORTED
114 * RadioError:INVALID_ARGUMENTS
115 * RadioError:INTERNAL_ERR
116 * RadioError:NO_RESOURCES
117 * RadioError:SIM_ABSENT
118 */
119 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
120
121 /**
122 * @param info Response info struct containing response type, serial no. and error
Sarah Chinca261012020-02-25 16:21:44 -0800123 * @param dcResponse List of SetupDataCallResult as defined in types.hal
124 *
125 * Valid errors returned:
126 * RadioError:NONE
127 * RadioError:RADIO_NOT_AVAILABLE
128 * RadioError:INTERNAL_ERR
129 * RadioError:NO_RESOURCES
130 * RadioError:REQUEST_NOT_SUPPORTED
131 * RadioError:SIM_ABSENT
132 */
133 oneway getDataCallListResponse_1_5(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
134
135 /**
136 * @param info Response info struct containing response type, serial no. and error
Sarah Chin039d5422019-11-05 15:39:32 -0800137 *
138 * Valid errors returned:
139 * RadioError:NONE
140 * RadioError:RADIO_NOT_AVAILABLE
141 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
142 * RadioError:NO_MEMORY
143 * RadioError:INTERNAL_ERR
144 * RadioError:SYSTEM_ERR
145 * RadioError:MODEM_ERR
146 * RadioError:INVALID_ARGUMENTS
147 * RadioError:NOT_PROVISIONED
148 * RadioError:REQUEST_NOT_SUPPORTED
149 * RadioError:NO_RESOURCES
150 * RadioError:CANCELLED
151 */
152 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
153
154 /**
155 * @param info Response info struct containing response type, serial no. and error
156 *
157 * Valid errors returned:
158 * RadioError:NONE
159 * RadioError:RADIO_NOT_AVAILABLE
160 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
161 * RadioError:INTERNAL_ERR
162 * RadioError:NO_MEMORY
163 * RadioError:NO_RESOURCES
164 * RadioError:CANCELLED
165 * RadioError:REQUEST_NOT_SUPPORTED
166 * RadioError:SIM_ABSENT
167 */
168 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -0800169
170 /**
171 * @param info Response info struct containing response type, serial no. and error
172 *
173 * Valid errors returned:
174 * RadioError:NONE
175 * RadioError:INTERNAL_ERR
176 * RadioError:INVALID_ARGUMENTS
177 */
178 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800179
180 /**
181 * @param info Response info struct containing response type, serial no. and error
182 *
183 * Valid errors returned:
184 * RadioError:NONE
185 * RadioError:INVALID_ARGUMENTS
186 * RadioError:RADIO_NOT_AVAILABLE
187 * RadioError:INTERNAL_ERR
188 * RadioError:SYSTEM_ERR
189 */
190 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800191
192 /**
193 * @param info Response info struct containing response type, serial no. and error
194 * @param barringInfos a vector of barring info for all barring service types
195 *
196 * Valid errors returned:
197 * RadioError:NONE
198 * RadioError:RADIO_NOT_AVAILABLE
199 * RadioError:INTERNAL_ERR
200 * RadioError:MODEM_ERR
201 */
202 oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos);
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530203
204 /**
Sarah Chinf90eddf2020-01-29 11:02:09 -0800205 * @param info Response info struct containing response type, serial no. and error
Nathan Haroldcaee79f2020-01-16 17:00:49 -0800206 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
207 * in types.hal
208 *
209 * Valid errors returned:
210 * RadioError:NONE
211 * RadioError:RADIO_NOT_AVAILABLE
212 * RadioError:INTERNAL_ERR
213 */
214 oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
215 RegStateResult voiceRegResponse);
216
217 /**
218 * @param info Response info struct containing response type, serial no. and error
219 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
220 * types.hal
221 *
222 * Valid errors returned:
223 * RadioError:NONE
224 * RadioError:RADIO_NOT_AVAILABLE
225 * RadioError:INTERNAL_ERR
226 * RadioError:NOT_PROVISIONED
227 */
228 oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
229 RegStateResult dataRegResponse);
230
231 /**
Nathan Harold8f0d8b12020-01-20 17:04:16 -0800232 * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo.
233 *
234 * @param info Response info struct containing response type, serial no. and error
235 * @param cellInfo List of current cell information known to radio
236 *
237 * Valid errors returned:
238 * RadioError:NONE
239 * RadioError:RADIO_NOT_AVAILABLE
240 * RadioError:INTERNAL_ERR
241 */
242 oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo);
243
244 /**
Nathan Haroldcaee79f2020-01-16 17:00:49 -0800245 * @param info Response info struct containing response type, serial no. and error
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530246 *
247 * Valid errors returned:
248 * RadioError:NONE
249 * RadioError:RADIO_NOT_AVAILABLE
Sarah Chin0b0871e2019-12-18 17:37:27 -0800250 * RadioError:ILLEGAL_SIM_OR_ME
251 * RadioError:OPERATION_NOT_ALLOWED
252 * RadioError:INVALID_STATE
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530253 * RadioError:NO_MEMORY
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530254 * RadioError:INTERNAL_ERR
255 * RadioError:SYSTEM_ERR
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530256 * RadioError:INVALID_ARGUMENTS
Sarah Chin0b0871e2019-12-18 17:37:27 -0800257 * RadioError:MODEM_ERR
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530258 * RadioError:REQUEST_NOT_SUPPORTED
Sarah Chin0b0871e2019-12-18 17:37:27 -0800259 * RadioError:NO_RESOURCES
260 * RadioError:CANCELLED
261 *
262 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
263 * no retries needed, such as illegal SIM or ME.
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530264 */
Sarah Chin0b0871e2019-12-18 17:37:27 -0800265 oneway setNetworkSelectionModeManualResponse_1_5(RadioResponseInfo info);
Nazish Tabassumc4487182019-12-10 14:35:09 +0530266
267 /**
268 * @param info Response info struct containing response type, serial no. and error
269 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
270 *
271 * Valid errors returned:
272 * RadioError:NONE
273 * RadioError:RADIO_NOT_AVAILABLE
274 * RadioError:SMS_SEND_FAIL_RETRY
275 * RadioError:NETWORK_REJECT
276 * RadioError:INVALID_STATE
277 * RadioError:INVALID_ARGUMENTS
278 * RadioError:NO_MEMORY
279 * RadioError:REQUEST_RATE_LIMITED
280 * RadioError:INVALID_SMS_FORMAT
281 * RadioError:SYSTEM_ERR
282 * RadioError:FDN_CHECK_FAILURE
283 * RadioError:ENCODING_ERR
284 * RadioError:INVALID_SMSC_ADDRESS
285 * RadioError:MODEM_ERR
286 * RadioError:NETWORK_ERR
287 * RadioError:INTERNAL_ERR
288 * RadioError:REQUEST_NOT_SUPPORTED
289 * RadioError:INVALID_MODEM_STATE
290 * RadioError:NETWORK_NOT_READY
291 * RadioError:OPERATION_NOT_ALLOWED
292 * RadioError:NO_RESOURCES
293 * RadioError:CANCELLED
294 * RadioError:SIM_ABSENT
295 */
296 oneway sendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
Sarah Chin0b0871e2019-12-18 17:37:27 -0800297
298 /**
299 * @param info Response info struct contatining response type, serial no. and error
300 * @param persoType SIM Personalisation type
301 * @param remainingRetries postiive values indicates number of retries remaining,
302 * must be equal to -1 if number of retries is infinite.
303 *
304 * Valid errors returned:
305 * RadioError:NONE
306 * RadioError:RADIO_NOT_AVAILABLE
307 * RadioError:PASSWORD_INCORRECT (code is invalid)
308 * RadioError:NO_MEMORY
309 * RadioError:INVALID_SIM_STATE
310 * RadioError:INTERNAL_ERR
311 * RadioError:SYSTEM_ERR
312 * RadioError:MODEM_ERR
313 * RadioError:INVALID_ARGUMENTS
314 * RadioError:NO_RESOURCES
315 * RadioError:REQUEST_NOT_SUPPORTED
316 */
317 oneway supplySimDepersonalizationResponse(RadioResponseInfo info,
Sarah Chinca261012020-02-25 16:21:44 -0800318 PersoSubstate persoType, int32_t remainingRetries);
319
320 /**
321 * @param info Response info struct containing response type, serial no. and error
322 * @param cardStatus ICC card status as defined by CardStatus in types.hal
323 *
324 * Valid errors returned:
325 * RadioError:NONE
326 * RadioError:RADIO_NOT_AVAILABLE
327 * RadioError:INTERNAL_ERR
328 * RadioError:NO_RESOURCES
329 * RadioError:REQUEST_NOT_SUPPORTED
330 */
331 oneway getIccCardStatusResponse_1_5(RadioResponseInfo info, CardStatus cardStatus);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700332};