blob: 6a2187f69d03a0376d5871867f4e109615b27d82 [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;
Nathan Harold8f6b67b2020-01-16 17:00:49 -080024import @1.5::RegStateResult;
Nazish Tabassumba2f8302019-12-10 14:35:09 +053025import @1.5::SetupDataCallResult;
Nazish Tabassum79f575e2019-12-13 02:19:39 +053026import @1.4::SetupDataCallResult;
27import @1.5::PersoSubstate;
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
169 * @param barringInfos a vector of barring info for all barring service types
170 *
171 * Valid errors returned:
172 * RadioError:NONE
173 * RadioError:RADIO_NOT_AVAILABLE
174 * RadioError:INTERNAL_ERR
175 * RadioError:MODEM_ERR
176 */
177 oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos);
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800178
179 /**
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
218
219 /**
220 * @param info Response info struct containing response type, serial no. and error
221 *
222 * Valid errors returned:
223 * RadioError:NONE
224 * RadioError:RADIO_NOT_AVAILABLE
225 * RadioError:ILLEGAL_SIM_OR_ME
226 * RadioError:OPERATION_NOT_ALLOWED
227 * RadioError:INVALID_STATE
228 * RadioError:NO_MEMORY
229 * RadioError:INTERNAL_ERR
230 * RadioError:SYSTEM_ERR
231 * RadioError:INVALID_ARGUMENTS
232 * RadioError:MODEM_ERR
233 * RadioError:REQUEST_NOT_SUPPORTED
234 * RadioError:NO_RESOURCES
235 * RadioError:CANCELLED
236 *
237 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
238 * no retries needed, such as illegal SIM or ME.
239 */
240 oneway setNetworkSelectionModeManualResponse_1_5(RadioResponseInfo info);
Nazish Tabassumba2f8302019-12-10 14:35:09 +0530241
242 /**
243 * @param info Response info struct containing response type, serial no. and error
244 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
245 *
246 * Valid errors returned:
247 * RadioError:NONE
248 * RadioError:RADIO_NOT_AVAILABLE
249 * RadioError:SMS_SEND_FAIL_RETRY
250 * RadioError:NETWORK_REJECT
251 * RadioError:INVALID_STATE
252 * RadioError:INVALID_ARGUMENTS
253 * RadioError:NO_MEMORY
254 * RadioError:REQUEST_RATE_LIMITED
255 * RadioError:INVALID_SMS_FORMAT
256 * RadioError:SYSTEM_ERR
257 * RadioError:FDN_CHECK_FAILURE
258 * RadioError:ENCODING_ERR
259 * RadioError:INVALID_SMSC_ADDRESS
260 * RadioError:MODEM_ERR
261 * RadioError:NETWORK_ERR
262 * RadioError:INTERNAL_ERR
263 * RadioError:REQUEST_NOT_SUPPORTED
264 * RadioError:INVALID_MODEM_STATE
265 * RadioError:NETWORK_NOT_READY
266 * RadioError:OPERATION_NOT_ALLOWED
267 * RadioError:NO_RESOURCES
268 * RadioError:CANCELLED
269 * RadioError:SIM_ABSENT
270 */
271 oneway sendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
Robert Greenwaltd6748352020-01-23 20:01:12 -0800272
273 /**
274 * @param info Response info struct contatining response type, serial no. and error
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530275 * @param persoType SIM Personalisation type
Robert Greenwaltd6748352020-01-23 20:01:12 -0800276 * @param remainingRetries postiive values indicates number of retries remaining,
277 * must be equal to -1 if number of retries is infinite.
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530278 *
279 * Valid errors returned:
280 * RadioError:NONE
281 * RadioError:RADIO_NOT_AVAILABLE
282 * RadioError:PASSWORD_INCORRECT (code is invalid)
283 * RadioError:NO_MEMORY
284 * RadioError:INVALID_SIM_STATE
285 * RadioError:INTERNAL_ERR
286 * RadioError:SYSTEM_ERR
287 * RadioError:MODEM_ERR
288 * RadioError:INVALID_ARGUMENTS
289 * RadioError:NO_RESOURCES
290 * RadioError:REQUEST_NOT_SUPPORTED
291 */
292 oneway supplySimDepersonalizationResponse(RadioResponseInfo info,
293 PersoSubstate persoType, int32_t remainingRetries);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700294};