blob: e87cad25fcb011cc8512de7d18bf6f82b84f4d92 [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;
Rambo Wang6894f892020-02-05 21:31:53 -080023import @1.5::CellIdentity;
Nathan Harold500733c2020-01-20 17:04:16 -080024import @1.5::CellInfo;
Sarah Chinfc166682020-01-29 11:02:09 -080025import @1.5::PersoSubstate;
Nathan Harold8f6b67b2020-01-16 17:00:49 -080026import @1.5::RegStateResult;
Nazish Tabassumba2f8302019-12-10 14:35:09 +053027import @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 Chinfec7c4e2020-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
123 *
124 * Valid errors returned:
125 * RadioError:NONE
126 * RadioError:RADIO_NOT_AVAILABLE
127 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
128 * RadioError:NO_MEMORY
129 * RadioError:INTERNAL_ERR
130 * RadioError:SYSTEM_ERR
131 * RadioError:MODEM_ERR
132 * RadioError:INVALID_ARGUMENTS
133 * RadioError:NOT_PROVISIONED
134 * RadioError:REQUEST_NOT_SUPPORTED
135 * RadioError:NO_RESOURCES
136 * RadioError:CANCELLED
137 */
138 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
139
140 /**
141 * @param info Response info struct containing response type, serial no. and error
142 *
143 * Valid errors returned:
144 * RadioError:NONE
145 * RadioError:RADIO_NOT_AVAILABLE
146 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
147 * RadioError:INTERNAL_ERR
148 * RadioError:NO_MEMORY
149 * RadioError:NO_RESOURCES
150 * RadioError:CANCELLED
151 * RadioError:REQUEST_NOT_SUPPORTED
152 * RadioError:SIM_ABSENT
153 */
154 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -0800155
156 /**
157 * @param info Response info struct containing response type, serial no. and error
158 *
159 * Valid errors returned:
160 * RadioError:NONE
161 * RadioError:INTERNAL_ERR
162 * RadioError:INVALID_ARGUMENTS
163 */
164 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800165
166 /**
167 * @param info Response info struct containing response type, serial no. and error
168 *
169 * Valid errors returned:
170 * RadioError:NONE
171 * RadioError:INVALID_ARGUMENTS
172 * RadioError:RADIO_NOT_AVAILABLE
173 * RadioError:INTERNAL_ERR
174 * RadioError:SYSTEM_ERR
175 */
176 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800177
178 /**
179 * @param info Response info struct containing response type, serial no. and error
Rambo Wang6894f892020-02-05 21:31:53 -0800180 * @param cellIdentity CellIdentity for the barring infos.
Nathan Harold4bb9d312019-12-23 14:34:26 -0800181 * @param barringInfos a vector of barring info for all barring service types
182 *
183 * Valid errors returned:
184 * RadioError:NONE
185 * RadioError:RADIO_NOT_AVAILABLE
186 * RadioError:INTERNAL_ERR
187 * RadioError:MODEM_ERR
188 */
Rambo Wang6894f892020-02-05 21:31:53 -0800189 oneway getBarringInfoResponse(RadioResponseInfo info, CellIdentity cellIdentity,
190 vec<BarringInfo> barringInfos);
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800191
192 /**
Sarah Chinfc166682020-01-29 11:02:09 -0800193 * @param info Response info struct containing response type, serial no. and error
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800194 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
195 * in types.hal
196 *
197 * Valid errors returned:
198 * RadioError:NONE
199 * RadioError:RADIO_NOT_AVAILABLE
200 * RadioError:INTERNAL_ERR
201 */
202 oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
203 RegStateResult voiceRegResponse);
204
205 /**
206 * @param info Response info struct containing response type, serial no. and error
207 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
208 * types.hal
209 *
210 * Valid errors returned:
211 * RadioError:NONE
212 * RadioError:RADIO_NOT_AVAILABLE
213 * RadioError:INTERNAL_ERR
214 * RadioError:NOT_PROVISIONED
215 */
216 oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
217 RegStateResult dataRegResponse);
Nathan Harold500733c2020-01-20 17:04:16 -0800218
219 /**
220 * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo.
221 *
222 * @param info Response info struct containing response type, serial no. and error
223 * @param cellInfo List of current cell information known to radio
224 *
225 * Valid errors returned:
226 * RadioError:NONE
227 * RadioError:RADIO_NOT_AVAILABLE
228 * RadioError:INTERNAL_ERR
229 */
230 oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo);
Sarah Chin3efba532019-12-18 17:37:27 -0800231
Sarah Chin3efba532019-12-18 17:37:27 -0800232 /**
233 * @param info Response info struct containing response type, serial no. and error
234 *
235 * Valid errors returned:
236 * RadioError:NONE
237 * RadioError:RADIO_NOT_AVAILABLE
238 * RadioError:ILLEGAL_SIM_OR_ME
239 * RadioError:OPERATION_NOT_ALLOWED
240 * RadioError:INVALID_STATE
241 * RadioError:NO_MEMORY
242 * RadioError:INTERNAL_ERR
243 * RadioError:SYSTEM_ERR
244 * RadioError:INVALID_ARGUMENTS
245 * RadioError:MODEM_ERR
246 * RadioError:REQUEST_NOT_SUPPORTED
247 * RadioError:NO_RESOURCES
248 * RadioError:CANCELLED
249 *
250 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
251 * no retries needed, such as illegal SIM or ME.
252 */
253 oneway setNetworkSelectionModeManualResponse_1_5(RadioResponseInfo info);
Nazish Tabassumba2f8302019-12-10 14:35:09 +0530254
255 /**
256 * @param info Response info struct containing response type, serial no. and error
257 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
258 *
259 * Valid errors returned:
260 * RadioError:NONE
261 * RadioError:RADIO_NOT_AVAILABLE
262 * RadioError:SMS_SEND_FAIL_RETRY
263 * RadioError:NETWORK_REJECT
264 * RadioError:INVALID_STATE
265 * RadioError:INVALID_ARGUMENTS
266 * RadioError:NO_MEMORY
267 * RadioError:REQUEST_RATE_LIMITED
268 * RadioError:INVALID_SMS_FORMAT
269 * RadioError:SYSTEM_ERR
270 * RadioError:FDN_CHECK_FAILURE
271 * RadioError:ENCODING_ERR
272 * RadioError:INVALID_SMSC_ADDRESS
273 * RadioError:MODEM_ERR
274 * RadioError:NETWORK_ERR
275 * RadioError:INTERNAL_ERR
276 * RadioError:REQUEST_NOT_SUPPORTED
277 * RadioError:INVALID_MODEM_STATE
278 * RadioError:NETWORK_NOT_READY
279 * RadioError:OPERATION_NOT_ALLOWED
280 * RadioError:NO_RESOURCES
281 * RadioError:CANCELLED
282 * RadioError:SIM_ABSENT
283 */
284 oneway sendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
Robert Greenwaltd6748352020-01-23 20:01:12 -0800285
286 /**
287 * @param info Response info struct contatining response type, serial no. and error
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530288 * @param persoType SIM Personalisation type
Robert Greenwaltd6748352020-01-23 20:01:12 -0800289 * @param remainingRetries postiive values indicates number of retries remaining,
290 * must be equal to -1 if number of retries is infinite.
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530291 *
292 * Valid errors returned:
293 * RadioError:NONE
294 * RadioError:RADIO_NOT_AVAILABLE
295 * RadioError:PASSWORD_INCORRECT (code is invalid)
296 * RadioError:NO_MEMORY
297 * RadioError:INVALID_SIM_STATE
298 * RadioError:INTERNAL_ERR
299 * RadioError:SYSTEM_ERR
300 * RadioError:MODEM_ERR
301 * RadioError:INVALID_ARGUMENTS
302 * RadioError:NO_RESOURCES
303 * RadioError:REQUEST_NOT_SUPPORTED
304 */
305 oneway supplySimDepersonalizationResponse(RadioResponseInfo info,
306 PersoSubstate persoType, int32_t remainingRetries);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700307};