blob: aa8b526ffaa4572e4c5ec716c1a77361dfa048ce [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;
Nathan Harold500733c2020-01-20 17:04:16 -080023import @1.5::CellInfo;
Sarah Chinfc166682020-01-29 11:02:09 -080024import @1.5::PersoSubstate;
Nathan Harold8f6b67b2020-01-16 17:00:49 -080025import @1.5::RegStateResult;
Nazish Tabassumba2f8302019-12-10 14:35:09 +053026import @1.5::SetupDataCallResult;
Malcolm Chen360e1f92019-10-02 11:38:13 -070027
28/**
29 * Interface declaring response functions to solicited radio requests.
30 */
31interface IRadioResponse extends @1.4::IRadioResponse {
sqianf1850bf2019-11-12 18:26:30 -080032 /**
33 * @param info Response info struct containing response type, serial no. and error
34 *
35 * Valid errors returned:
36 * RadioError:NONE
37 * RadioError:INVALID_ARGUMENTS
38 * RadioError:RADIO_NOT_AVAILABLE
39 */
40 oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info);
Malcolm Chenfb6d6242019-11-12 19:03:12 -080041
42 /**
43 * @param info Response info struct containing response type, serial no. and error
44 *
45 * Valid errors returned:
46 * RadioError:NONE
47 * RadioError:SIM_ABSENT
48 * RadioError:RADIO_NOT_AVAILABLE
49 * RadioError:INTERNAL_ERR
50 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080051 */
52 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
53
54 /**
55 * @param info Response info struct containing response type, serial no. and error
56 * @param enabled whether Uicc applications are enabled.
57 *
58 * Valid errors returned:
59 * RadioError:NONE
60 * RadioError:SIM_ABSENT
61 * RadioError:RADIO_NOT_AVAILABLE
62 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080063 */
64 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
65
66 /**
67 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070068 *
69 * Valid errors returned:
70 * RadioError:NONE
71 * RadioError:RADIO_NOT_AVAILABLE
72 * RadioError:INTERNAL_ERR
73 * RadioError:INVALID_ARGUMENTS
74 */
75 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
76
77 /**
78 * @param info Response info struct containing response type, serial no. and error
79 *
80 * Valid errors returned:
81 * RadioError:NONE
82 * RadioError:RADIO_NOT_AVAILABLE
83 * RadioError:DEVICE_IN_USE
84 * RadioError:INTERNAL_ERR
85 * RadioError:MODEM_ERR
86 * RadioError:INVALID_ARGUMENTS
87 */
88 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -080089
90 /**
91 * @param info Response info struct containing response type, serial no. and error
92 * @param dcResponse SetupDataCallResult defined in types.hal
93 *
94 * Valid errors returned:
95 * RadioError:NONE must be returned on both success and failure of setup with the
96 * DataCallResponse.status containing the actual status
97 * For all other errors the DataCallResponse is ignored.
98 * RadioError:RADIO_NOT_AVAILABLE
99 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
100 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
101 * RadioError:REQUEST_NOT_SUPPORTED
102 * RadioError:INVALID_ARGUMENTS
103 * RadioError:INTERNAL_ERR
104 * RadioError:NO_RESOURCES
105 * RadioError:SIM_ABSENT
106 */
107 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
108
109 /**
110 * @param info Response info struct containing response type, serial no. and error
111 *
112 * Valid errors returned:
113 * RadioError:NONE
114 * RadioError:RADIO_NOT_AVAILABLE
115 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
116 * RadioError:NO_MEMORY
117 * RadioError:INTERNAL_ERR
118 * RadioError:SYSTEM_ERR
119 * RadioError:MODEM_ERR
120 * RadioError:INVALID_ARGUMENTS
121 * RadioError:NOT_PROVISIONED
122 * RadioError:REQUEST_NOT_SUPPORTED
123 * RadioError:NO_RESOURCES
124 * RadioError:CANCELLED
125 */
126 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
127
128 /**
129 * @param info Response info struct containing response type, serial no. and error
130 *
131 * Valid errors returned:
132 * RadioError:NONE
133 * RadioError:RADIO_NOT_AVAILABLE
134 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
135 * RadioError:INTERNAL_ERR
136 * RadioError:NO_MEMORY
137 * RadioError:NO_RESOURCES
138 * RadioError:CANCELLED
139 * RadioError:REQUEST_NOT_SUPPORTED
140 * RadioError:SIM_ABSENT
141 */
142 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -0800143
144 /**
145 * @param info Response info struct containing response type, serial no. and error
146 *
147 * Valid errors returned:
148 * RadioError:NONE
149 * RadioError:INTERNAL_ERR
150 * RadioError:INVALID_ARGUMENTS
151 */
152 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800153
154 /**
155 * @param info Response info struct containing response type, serial no. and error
156 *
157 * Valid errors returned:
158 * RadioError:NONE
159 * RadioError:INVALID_ARGUMENTS
160 * RadioError:RADIO_NOT_AVAILABLE
161 * RadioError:INTERNAL_ERR
162 * RadioError:SYSTEM_ERR
163 */
164 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800165
166 /**
167 * @param info Response info struct containing response type, serial no. and error
168 * @param barringInfos a vector of barring info for all barring service types
169 *
170 * Valid errors returned:
171 * RadioError:NONE
172 * RadioError:RADIO_NOT_AVAILABLE
173 * RadioError:INTERNAL_ERR
174 * RadioError:MODEM_ERR
175 */
176 oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos);
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800177
178 /**
Sarah Chinfc166682020-01-29 11:02:09 -0800179 * @param info Response info struct containing response type, serial no. and error
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800180 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
181 * in types.hal
182 *
183 * Valid errors returned:
184 * RadioError:NONE
185 * RadioError:RADIO_NOT_AVAILABLE
186 * RadioError:INTERNAL_ERR
187 */
188 oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
189 RegStateResult voiceRegResponse);
190
191 /**
192 * @param info Response info struct containing response type, serial no. and error
193 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
194 * types.hal
195 *
196 * Valid errors returned:
197 * RadioError:NONE
198 * RadioError:RADIO_NOT_AVAILABLE
199 * RadioError:INTERNAL_ERR
200 * RadioError:NOT_PROVISIONED
201 */
202 oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
203 RegStateResult dataRegResponse);
Nathan Harold500733c2020-01-20 17:04:16 -0800204
205 /**
206 * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo.
207 *
208 * @param info Response info struct containing response type, serial no. and error
209 * @param cellInfo List of current cell information known to radio
210 *
211 * Valid errors returned:
212 * RadioError:NONE
213 * RadioError:RADIO_NOT_AVAILABLE
214 * RadioError:INTERNAL_ERR
215 */
216 oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo);
Sarah Chin3efba532019-12-18 17:37:27 -0800217
Sarah Chin3efba532019-12-18 17:37:27 -0800218 /**
219 * @param info Response info struct containing response type, serial no. and error
220 *
221 * Valid errors returned:
222 * RadioError:NONE
223 * RadioError:RADIO_NOT_AVAILABLE
224 * RadioError:ILLEGAL_SIM_OR_ME
225 * RadioError:OPERATION_NOT_ALLOWED
226 * RadioError:INVALID_STATE
227 * RadioError:NO_MEMORY
228 * RadioError:INTERNAL_ERR
229 * RadioError:SYSTEM_ERR
230 * RadioError:INVALID_ARGUMENTS
231 * RadioError:MODEM_ERR
232 * RadioError:REQUEST_NOT_SUPPORTED
233 * RadioError:NO_RESOURCES
234 * RadioError:CANCELLED
235 *
236 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
237 * no retries needed, such as illegal SIM or ME.
238 */
239 oneway setNetworkSelectionModeManualResponse_1_5(RadioResponseInfo info);
Nazish Tabassumba2f8302019-12-10 14:35:09 +0530240
241 /**
242 * @param info Response info struct containing response type, serial no. and error
243 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
244 *
245 * Valid errors returned:
246 * RadioError:NONE
247 * RadioError:RADIO_NOT_AVAILABLE
248 * RadioError:SMS_SEND_FAIL_RETRY
249 * RadioError:NETWORK_REJECT
250 * RadioError:INVALID_STATE
251 * RadioError:INVALID_ARGUMENTS
252 * RadioError:NO_MEMORY
253 * RadioError:REQUEST_RATE_LIMITED
254 * RadioError:INVALID_SMS_FORMAT
255 * RadioError:SYSTEM_ERR
256 * RadioError:FDN_CHECK_FAILURE
257 * RadioError:ENCODING_ERR
258 * RadioError:INVALID_SMSC_ADDRESS
259 * RadioError:MODEM_ERR
260 * RadioError:NETWORK_ERR
261 * RadioError:INTERNAL_ERR
262 * RadioError:REQUEST_NOT_SUPPORTED
263 * RadioError:INVALID_MODEM_STATE
264 * RadioError:NETWORK_NOT_READY
265 * RadioError:OPERATION_NOT_ALLOWED
266 * RadioError:NO_RESOURCES
267 * RadioError:CANCELLED
268 * RadioError:SIM_ABSENT
269 */
270 oneway sendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
Robert Greenwaltd6748352020-01-23 20:01:12 -0800271
272 /**
273 * @param info Response info struct contatining response type, serial no. and error
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530274 * @param persoType SIM Personalisation type
Robert Greenwaltd6748352020-01-23 20:01:12 -0800275 * @param remainingRetries postiive values indicates number of retries remaining,
276 * must be equal to -1 if number of retries is infinite.
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530277 *
278 * Valid errors returned:
279 * RadioError:NONE
280 * RadioError:RADIO_NOT_AVAILABLE
281 * RadioError:PASSWORD_INCORRECT (code is invalid)
282 * RadioError:NO_MEMORY
283 * RadioError:INVALID_SIM_STATE
284 * RadioError:INTERNAL_ERR
285 * RadioError:SYSTEM_ERR
286 * RadioError:MODEM_ERR
287 * RadioError:INVALID_ARGUMENTS
288 * RadioError:NO_RESOURCES
289 * RadioError:REQUEST_NOT_SUPPORTED
290 */
291 oneway supplySimDepersonalizationResponse(RadioResponseInfo info,
292 PersoSubstate persoType, int32_t remainingRetries);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700293};