blob: 84a455ff7d80437e920229c3c547c55f23767956 [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;
Nathan Harold8f0d8b12020-01-20 17:04:16 -080023import @1.5::CellInfo;
Sarah Chinf90eddf2020-01-29 11:02:09 -080024import @1.5::PersoSubstate;
Nathan Haroldcaee79f2020-01-16 17:00:49 -080025import @1.5::RegStateResult;
26import @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
Sarah Chin2f8f6c32020-02-11 12:05:46 -080047 * RadioError:INVALID_ARGUMENTS
48 * RadioError:RADIO_NOT_AVAILABLE
49 * RadioError:INTERNAL_ERR
50 */
51 oneway setLinkCapacityReportingCriteriaResponse_1_5(RadioResponseInfo info);
52
53 /**
54 * @param info Response info struct containing response type, serial no. and error
55 *
56 * Valid errors returned:
57 * RadioError:NONE
Malcolm Chenfb6d6242019-11-12 19:03:12 -080058 * RadioError:SIM_ABSENT
59 * RadioError:RADIO_NOT_AVAILABLE
60 * RadioError:INTERNAL_ERR
61 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080062 */
63 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
64
65 /**
66 * @param info Response info struct containing response type, serial no. and error
67 * @param enabled whether Uicc applications are enabled.
68 *
69 * Valid errors returned:
70 * RadioError:NONE
71 * RadioError:SIM_ABSENT
72 * RadioError:RADIO_NOT_AVAILABLE
73 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080074 */
75 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
76
77 /**
78 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070079 *
80 * Valid errors returned:
81 * RadioError:NONE
82 * RadioError:RADIO_NOT_AVAILABLE
83 * RadioError:INTERNAL_ERR
84 * RadioError:INVALID_ARGUMENTS
85 */
86 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
87
88 /**
89 * @param info Response info struct containing response type, serial no. and error
90 *
91 * Valid errors returned:
92 * RadioError:NONE
93 * RadioError:RADIO_NOT_AVAILABLE
94 * RadioError:DEVICE_IN_USE
95 * RadioError:INTERNAL_ERR
96 * RadioError:MODEM_ERR
97 * RadioError:INVALID_ARGUMENTS
98 */
99 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -0800100
101 /**
102 * @param info Response info struct containing response type, serial no. and error
103 * @param dcResponse SetupDataCallResult defined in types.hal
104 *
105 * Valid errors returned:
106 * RadioError:NONE must be returned on both success and failure of setup with the
107 * DataCallResponse.status containing the actual status
108 * For all other errors the DataCallResponse is ignored.
109 * RadioError:RADIO_NOT_AVAILABLE
110 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
111 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
112 * RadioError:REQUEST_NOT_SUPPORTED
113 * RadioError:INVALID_ARGUMENTS
114 * RadioError:INTERNAL_ERR
115 * RadioError:NO_RESOURCES
116 * RadioError:SIM_ABSENT
117 */
118 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
119
120 /**
121 * @param info Response info struct containing response type, serial no. and error
122 *
123 * Valid errors returned:
124 * RadioError:NONE
125 * RadioError:RADIO_NOT_AVAILABLE
126 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
127 * RadioError:NO_MEMORY
128 * RadioError:INTERNAL_ERR
129 * RadioError:SYSTEM_ERR
130 * RadioError:MODEM_ERR
131 * RadioError:INVALID_ARGUMENTS
132 * RadioError:NOT_PROVISIONED
133 * RadioError:REQUEST_NOT_SUPPORTED
134 * RadioError:NO_RESOURCES
135 * RadioError:CANCELLED
136 */
137 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
138
139 /**
140 * @param info Response info struct containing response type, serial no. and error
141 *
142 * Valid errors returned:
143 * RadioError:NONE
144 * RadioError:RADIO_NOT_AVAILABLE
145 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
146 * RadioError:INTERNAL_ERR
147 * RadioError:NO_MEMORY
148 * RadioError:NO_RESOURCES
149 * RadioError:CANCELLED
150 * RadioError:REQUEST_NOT_SUPPORTED
151 * RadioError:SIM_ABSENT
152 */
153 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -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:INTERNAL_ERR
161 * RadioError:INVALID_ARGUMENTS
162 */
163 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800164
165 /**
166 * @param info Response info struct containing response type, serial no. and error
167 *
168 * Valid errors returned:
169 * RadioError:NONE
170 * RadioError:INVALID_ARGUMENTS
171 * RadioError:RADIO_NOT_AVAILABLE
172 * RadioError:INTERNAL_ERR
173 * RadioError:SYSTEM_ERR
174 */
175 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800176
177 /**
178 * @param info Response info struct containing response type, serial no. and error
179 * @param barringInfos a vector of barring info for all barring service types
180 *
181 * Valid errors returned:
182 * RadioError:NONE
183 * RadioError:RADIO_NOT_AVAILABLE
184 * RadioError:INTERNAL_ERR
185 * RadioError:MODEM_ERR
186 */
187 oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos);
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530188
189 /**
Sarah Chinf90eddf2020-01-29 11:02:09 -0800190 * @param info Response info struct containing response type, serial no. and error
Nathan Haroldcaee79f2020-01-16 17:00:49 -0800191 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
192 * in types.hal
193 *
194 * Valid errors returned:
195 * RadioError:NONE
196 * RadioError:RADIO_NOT_AVAILABLE
197 * RadioError:INTERNAL_ERR
198 */
199 oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
200 RegStateResult voiceRegResponse);
201
202 /**
203 * @param info Response info struct containing response type, serial no. and error
204 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
205 * types.hal
206 *
207 * Valid errors returned:
208 * RadioError:NONE
209 * RadioError:RADIO_NOT_AVAILABLE
210 * RadioError:INTERNAL_ERR
211 * RadioError:NOT_PROVISIONED
212 */
213 oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
214 RegStateResult dataRegResponse);
215
216 /**
Nathan Harold8f0d8b12020-01-20 17:04:16 -0800217 * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo.
218 *
219 * @param info Response info struct containing response type, serial no. and error
220 * @param cellInfo List of current cell information known to radio
221 *
222 * Valid errors returned:
223 * RadioError:NONE
224 * RadioError:RADIO_NOT_AVAILABLE
225 * RadioError:INTERNAL_ERR
226 */
227 oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo);
228
229 /**
Nathan Haroldcaee79f2020-01-16 17:00:49 -0800230 * @param info Response info struct containing response type, serial no. and error
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530231 *
232 * Valid errors returned:
233 * RadioError:NONE
234 * RadioError:RADIO_NOT_AVAILABLE
Sarah Chin0b0871e2019-12-18 17:37:27 -0800235 * RadioError:ILLEGAL_SIM_OR_ME
236 * RadioError:OPERATION_NOT_ALLOWED
237 * RadioError:INVALID_STATE
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530238 * RadioError:NO_MEMORY
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530239 * RadioError:INTERNAL_ERR
240 * RadioError:SYSTEM_ERR
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530241 * RadioError:INVALID_ARGUMENTS
Sarah Chin0b0871e2019-12-18 17:37:27 -0800242 * RadioError:MODEM_ERR
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530243 * RadioError:REQUEST_NOT_SUPPORTED
Sarah Chin0b0871e2019-12-18 17:37:27 -0800244 * RadioError:NO_RESOURCES
245 * RadioError:CANCELLED
246 *
247 * Returns RadioError:ILLEGAL_SIM_OR_ME when the failure is permanent and
248 * no retries needed, such as illegal SIM or ME.
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530249 */
Sarah Chin0b0871e2019-12-18 17:37:27 -0800250 oneway setNetworkSelectionModeManualResponse_1_5(RadioResponseInfo info);
Nazish Tabassumc4487182019-12-10 14:35:09 +0530251
252 /**
253 * @param info Response info struct containing response type, serial no. and error
254 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
255 *
256 * Valid errors returned:
257 * RadioError:NONE
258 * RadioError:RADIO_NOT_AVAILABLE
259 * RadioError:SMS_SEND_FAIL_RETRY
260 * RadioError:NETWORK_REJECT
261 * RadioError:INVALID_STATE
262 * RadioError:INVALID_ARGUMENTS
263 * RadioError:NO_MEMORY
264 * RadioError:REQUEST_RATE_LIMITED
265 * RadioError:INVALID_SMS_FORMAT
266 * RadioError:SYSTEM_ERR
267 * RadioError:FDN_CHECK_FAILURE
268 * RadioError:ENCODING_ERR
269 * RadioError:INVALID_SMSC_ADDRESS
270 * RadioError:MODEM_ERR
271 * RadioError:NETWORK_ERR
272 * RadioError:INTERNAL_ERR
273 * RadioError:REQUEST_NOT_SUPPORTED
274 * RadioError:INVALID_MODEM_STATE
275 * RadioError:NETWORK_NOT_READY
276 * RadioError:OPERATION_NOT_ALLOWED
277 * RadioError:NO_RESOURCES
278 * RadioError:CANCELLED
279 * RadioError:SIM_ABSENT
280 */
281 oneway sendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
Sarah Chin0b0871e2019-12-18 17:37:27 -0800282
283 /**
284 * @param info Response info struct contatining response type, serial no. and error
285 * @param persoType SIM Personalisation type
286 * @param remainingRetries postiive values indicates number of retries remaining,
287 * must be equal to -1 if number of retries is infinite.
288 *
289 * Valid errors returned:
290 * RadioError:NONE
291 * RadioError:RADIO_NOT_AVAILABLE
292 * RadioError:PASSWORD_INCORRECT (code is invalid)
293 * RadioError:NO_MEMORY
294 * RadioError:INVALID_SIM_STATE
295 * RadioError:INTERNAL_ERR
296 * RadioError:SYSTEM_ERR
297 * RadioError:MODEM_ERR
298 * RadioError:INVALID_ARGUMENTS
299 * RadioError:NO_RESOURCES
300 * RadioError:REQUEST_NOT_SUPPORTED
301 */
302 oneway supplySimDepersonalizationResponse(RadioResponseInfo info,
303 PersoSubstate persoType, int32_t remainingRetries);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700304};