blob: 543f9b59b2a0e1a48f6b1d70887b825880fe11fc [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
48 * RadioError:SIM_ABSENT
49 * RadioError:RADIO_NOT_AVAILABLE
50 * RadioError:INTERNAL_ERR
51 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080052 */
53 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
54
55 /**
56 * @param info Response info struct containing response type, serial no. and error
57 * @param enabled whether Uicc applications are enabled.
58 *
59 * Valid errors returned:
60 * RadioError:NONE
61 * RadioError:SIM_ABSENT
62 * RadioError:RADIO_NOT_AVAILABLE
63 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080064 */
65 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
66
67 /**
68 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070069 *
70 * Valid errors returned:
71 * RadioError:NONE
72 * RadioError:RADIO_NOT_AVAILABLE
73 * RadioError:INTERNAL_ERR
74 * RadioError:INVALID_ARGUMENTS
75 */
76 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
77
78 /**
79 * @param info Response info struct containing response type, serial no. and error
80 *
81 * Valid errors returned:
82 * RadioError:NONE
83 * RadioError:RADIO_NOT_AVAILABLE
84 * RadioError:DEVICE_IN_USE
85 * RadioError:INTERNAL_ERR
86 * RadioError:MODEM_ERR
87 * RadioError:INVALID_ARGUMENTS
88 */
89 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -080090
91 /**
92 * @param info Response info struct containing response type, serial no. and error
93 * @param dcResponse SetupDataCallResult defined in types.hal
94 *
95 * Valid errors returned:
96 * RadioError:NONE must be returned on both success and failure of setup with the
97 * DataCallResponse.status containing the actual status
98 * For all other errors the DataCallResponse is ignored.
99 * RadioError:RADIO_NOT_AVAILABLE
100 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
101 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
102 * RadioError:REQUEST_NOT_SUPPORTED
103 * RadioError:INVALID_ARGUMENTS
104 * RadioError:INTERNAL_ERR
105 * RadioError:NO_RESOURCES
106 * RadioError:SIM_ABSENT
107 */
108 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
109
110 /**
111 * @param info Response info struct containing response type, serial no. and error
112 *
113 * Valid errors returned:
114 * RadioError:NONE
115 * RadioError:RADIO_NOT_AVAILABLE
116 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
117 * RadioError:NO_MEMORY
118 * RadioError:INTERNAL_ERR
119 * RadioError:SYSTEM_ERR
120 * RadioError:MODEM_ERR
121 * RadioError:INVALID_ARGUMENTS
122 * RadioError:NOT_PROVISIONED
123 * RadioError:REQUEST_NOT_SUPPORTED
124 * RadioError:NO_RESOURCES
125 * RadioError:CANCELLED
126 */
127 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
128
129 /**
130 * @param info Response info struct containing response type, serial no. and error
131 *
132 * Valid errors returned:
133 * RadioError:NONE
134 * RadioError:RADIO_NOT_AVAILABLE
135 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
136 * RadioError:INTERNAL_ERR
137 * RadioError:NO_MEMORY
138 * RadioError:NO_RESOURCES
139 * RadioError:CANCELLED
140 * RadioError:REQUEST_NOT_SUPPORTED
141 * RadioError:SIM_ABSENT
142 */
143 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -0800144
145 /**
146 * @param info Response info struct containing response type, serial no. and error
147 *
148 * Valid errors returned:
149 * RadioError:NONE
150 * RadioError:INTERNAL_ERR
151 * RadioError:INVALID_ARGUMENTS
152 */
153 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800154
155 /**
156 * @param info Response info struct containing response type, serial no. and error
157 *
158 * Valid errors returned:
159 * RadioError:NONE
160 * RadioError:INVALID_ARGUMENTS
161 * RadioError:RADIO_NOT_AVAILABLE
162 * RadioError:INTERNAL_ERR
163 * RadioError:SYSTEM_ERR
164 */
165 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800166
167 /**
168 * @param info Response info struct containing response type, serial no. and error
Rambo Wang6894f892020-02-05 21:31:53 -0800169 * @param cellIdentity CellIdentity for the barring infos.
Nathan Harold4bb9d312019-12-23 14:34:26 -0800170 * @param barringInfos a vector of barring info for all barring service types
171 *
172 * Valid errors returned:
173 * RadioError:NONE
174 * RadioError:RADIO_NOT_AVAILABLE
175 * RadioError:INTERNAL_ERR
176 * RadioError:MODEM_ERR
177 */
Rambo Wang6894f892020-02-05 21:31:53 -0800178 oneway getBarringInfoResponse(RadioResponseInfo info, CellIdentity cellIdentity,
179 vec<BarringInfo> barringInfos);
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800180
181 /**
Sarah Chinfc166682020-01-29 11:02:09 -0800182 * @param info Response info struct containing response type, serial no. and error
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800183 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
184 * in types.hal
185 *
186 * Valid errors returned:
187 * RadioError:NONE
188 * RadioError:RADIO_NOT_AVAILABLE
189 * RadioError:INTERNAL_ERR
190 */
191 oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
192 RegStateResult voiceRegResponse);
193
194 /**
195 * @param info Response info struct containing response type, serial no. and error
196 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
197 * types.hal
198 *
199 * Valid errors returned:
200 * RadioError:NONE
201 * RadioError:RADIO_NOT_AVAILABLE
202 * RadioError:INTERNAL_ERR
203 * RadioError:NOT_PROVISIONED
204 */
205 oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
206 RegStateResult dataRegResponse);
Nathan Harold500733c2020-01-20 17:04:16 -0800207
208 /**
209 * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo.
210 *
211 * @param info Response info struct containing response type, serial no. and error
212 * @param cellInfo List of current cell information known to radio
213 *
214 * Valid errors returned:
215 * RadioError:NONE
216 * RadioError:RADIO_NOT_AVAILABLE
217 * RadioError:INTERNAL_ERR
218 */
219 oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo);
Sarah Chin3efba532019-12-18 17:37:27 -0800220
Sarah Chin3efba532019-12-18 17:37:27 -0800221 /**
222 * @param info Response info struct containing response type, serial no. and error
223 *
224 * Valid errors returned:
225 * RadioError:NONE
226 * RadioError:RADIO_NOT_AVAILABLE
227 * RadioError:ILLEGAL_SIM_OR_ME
228 * RadioError:OPERATION_NOT_ALLOWED
229 * RadioError:INVALID_STATE
230 * RadioError:NO_MEMORY
231 * RadioError:INTERNAL_ERR
232 * RadioError:SYSTEM_ERR
233 * RadioError:INVALID_ARGUMENTS
234 * RadioError:MODEM_ERR
235 * RadioError:REQUEST_NOT_SUPPORTED
236 * RadioError:NO_RESOURCES
237 * RadioError:CANCELLED
238 *
239 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
240 * no retries needed, such as illegal SIM or ME.
241 */
242 oneway setNetworkSelectionModeManualResponse_1_5(RadioResponseInfo info);
Nazish Tabassumba2f8302019-12-10 14:35:09 +0530243
244 /**
245 * @param info Response info struct containing response type, serial no. and error
246 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
247 *
248 * Valid errors returned:
249 * RadioError:NONE
250 * RadioError:RADIO_NOT_AVAILABLE
251 * RadioError:SMS_SEND_FAIL_RETRY
252 * RadioError:NETWORK_REJECT
253 * RadioError:INVALID_STATE
254 * RadioError:INVALID_ARGUMENTS
255 * RadioError:NO_MEMORY
256 * RadioError:REQUEST_RATE_LIMITED
257 * RadioError:INVALID_SMS_FORMAT
258 * RadioError:SYSTEM_ERR
259 * RadioError:FDN_CHECK_FAILURE
260 * RadioError:ENCODING_ERR
261 * RadioError:INVALID_SMSC_ADDRESS
262 * RadioError:MODEM_ERR
263 * RadioError:NETWORK_ERR
264 * RadioError:INTERNAL_ERR
265 * RadioError:REQUEST_NOT_SUPPORTED
266 * RadioError:INVALID_MODEM_STATE
267 * RadioError:NETWORK_NOT_READY
268 * RadioError:OPERATION_NOT_ALLOWED
269 * RadioError:NO_RESOURCES
270 * RadioError:CANCELLED
271 * RadioError:SIM_ABSENT
272 */
273 oneway sendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
Robert Greenwaltd6748352020-01-23 20:01:12 -0800274
275 /**
276 * @param info Response info struct contatining response type, serial no. and error
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530277 * @param persoType SIM Personalisation type
Robert Greenwaltd6748352020-01-23 20:01:12 -0800278 * @param remainingRetries postiive values indicates number of retries remaining,
279 * must be equal to -1 if number of retries is infinite.
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530280 *
281 * Valid errors returned:
282 * RadioError:NONE
283 * RadioError:RADIO_NOT_AVAILABLE
284 * RadioError:PASSWORD_INCORRECT (code is invalid)
285 * RadioError:NO_MEMORY
286 * RadioError:INVALID_SIM_STATE
287 * RadioError:INTERNAL_ERR
288 * RadioError:SYSTEM_ERR
289 * RadioError:MODEM_ERR
290 * RadioError:INVALID_ARGUMENTS
291 * RadioError:NO_RESOURCES
292 * RadioError:REQUEST_NOT_SUPPORTED
293 */
294 oneway supplySimDepersonalizationResponse(RadioResponseInfo info,
295 PersoSubstate persoType, int32_t remainingRetries);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700296};