blob: 9fa521e7926e67b5b9b28fd254e0aefa1d395bc4 [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;
Malcolm Chen360e1f92019-10-02 11:38:13 -070026
27/**
28 * Interface declaring response functions to solicited radio requests.
29 */
30interface IRadioResponse extends @1.4::IRadioResponse {
sqianf1850bf2019-11-12 18:26:30 -080031 /**
32 * @param info Response info struct containing response type, serial no. and error
33 *
34 * Valid errors returned:
35 * RadioError:NONE
36 * RadioError:INVALID_ARGUMENTS
37 * RadioError:RADIO_NOT_AVAILABLE
38 */
39 oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info);
Malcolm Chenfb6d6242019-11-12 19:03:12 -080040
41 /**
42 * @param info Response info struct containing response type, serial no. and error
43 *
44 * Valid errors returned:
45 * RadioError:NONE
46 * RadioError:SIM_ABSENT
47 * RadioError:RADIO_NOT_AVAILABLE
48 * RadioError:INTERNAL_ERR
49 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080050 */
51 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
52
53 /**
54 * @param info Response info struct containing response type, serial no. and error
55 * @param enabled whether Uicc applications are enabled.
56 *
57 * Valid errors returned:
58 * RadioError:NONE
59 * RadioError:SIM_ABSENT
60 * RadioError:RADIO_NOT_AVAILABLE
61 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080062 */
63 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
64
65 /**
66 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070067 *
68 * Valid errors returned:
69 * RadioError:NONE
70 * RadioError:RADIO_NOT_AVAILABLE
71 * RadioError:INTERNAL_ERR
72 * RadioError:INVALID_ARGUMENTS
73 */
74 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
75
76 /**
77 * @param info Response info struct containing response type, serial no. and error
78 *
79 * Valid errors returned:
80 * RadioError:NONE
81 * RadioError:RADIO_NOT_AVAILABLE
82 * RadioError:DEVICE_IN_USE
83 * RadioError:INTERNAL_ERR
84 * RadioError:MODEM_ERR
85 * RadioError:INVALID_ARGUMENTS
86 */
87 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -080088
89 /**
90 * @param info Response info struct containing response type, serial no. and error
91 * @param dcResponse SetupDataCallResult defined in types.hal
92 *
93 * Valid errors returned:
94 * RadioError:NONE must be returned on both success and failure of setup with the
95 * DataCallResponse.status containing the actual status
96 * For all other errors the DataCallResponse is ignored.
97 * RadioError:RADIO_NOT_AVAILABLE
98 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
99 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
100 * RadioError:REQUEST_NOT_SUPPORTED
101 * RadioError:INVALID_ARGUMENTS
102 * RadioError:INTERNAL_ERR
103 * RadioError:NO_RESOURCES
104 * RadioError:SIM_ABSENT
105 */
106 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
107
108 /**
109 * @param info Response info struct containing response type, serial no. and error
110 *
111 * Valid errors returned:
112 * RadioError:NONE
113 * RadioError:RADIO_NOT_AVAILABLE
114 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
115 * RadioError:NO_MEMORY
116 * RadioError:INTERNAL_ERR
117 * RadioError:SYSTEM_ERR
118 * RadioError:MODEM_ERR
119 * RadioError:INVALID_ARGUMENTS
120 * RadioError:NOT_PROVISIONED
121 * RadioError:REQUEST_NOT_SUPPORTED
122 * RadioError:NO_RESOURCES
123 * RadioError:CANCELLED
124 */
125 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
126
127 /**
128 * @param info Response info struct containing response type, serial no. and error
129 *
130 * Valid errors returned:
131 * RadioError:NONE
132 * RadioError:RADIO_NOT_AVAILABLE
133 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
134 * RadioError:INTERNAL_ERR
135 * RadioError:NO_MEMORY
136 * RadioError:NO_RESOURCES
137 * RadioError:CANCELLED
138 * RadioError:REQUEST_NOT_SUPPORTED
139 * RadioError:SIM_ABSENT
140 */
141 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -0800142
143 /**
144 * @param info Response info struct containing response type, serial no. and error
145 *
146 * Valid errors returned:
147 * RadioError:NONE
148 * RadioError:INTERNAL_ERR
149 * RadioError:INVALID_ARGUMENTS
150 */
151 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800152
153 /**
154 * @param info Response info struct containing response type, serial no. and error
155 *
156 * Valid errors returned:
157 * RadioError:NONE
158 * RadioError:INVALID_ARGUMENTS
159 * RadioError:RADIO_NOT_AVAILABLE
160 * RadioError:INTERNAL_ERR
161 * RadioError:SYSTEM_ERR
162 */
163 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800164
165 /**
166 * @param info Response info struct containing response type, serial no. and error
167 * @param barringInfos a vector of barring info for all barring service types
168 *
169 * Valid errors returned:
170 * RadioError:NONE
171 * RadioError:RADIO_NOT_AVAILABLE
172 * RadioError:INTERNAL_ERR
173 * RadioError:MODEM_ERR
174 */
175 oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos);
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800176
177 /**
178 * @param info Response info struct containing response type, serial no. and error
179 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
180 * in types.hal
181 *
182 * Valid errors returned:
183 * RadioError:NONE
184 * RadioError:RADIO_NOT_AVAILABLE
185 * RadioError:INTERNAL_ERR
186 */
187 oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
188 RegStateResult voiceRegResponse);
189
190 /**
191 * @param info Response info struct containing response type, serial no. and error
192 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
193 * types.hal
194 *
195 * Valid errors returned:
196 * RadioError:NONE
197 * RadioError:RADIO_NOT_AVAILABLE
198 * RadioError:INTERNAL_ERR
199 * RadioError:NOT_PROVISIONED
200 */
201 oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
202 RegStateResult dataRegResponse);
Nathan Harold500733c2020-01-20 17:04:16 -0800203
204 /**
205 * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo.
206 *
207 * @param info Response info struct containing response type, serial no. and error
208 * @param cellInfo List of current cell information known to radio
209 *
210 * Valid errors returned:
211 * RadioError:NONE
212 * RadioError:RADIO_NOT_AVAILABLE
213 * RadioError:INTERNAL_ERR
214 */
215 oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo);
Sarah Chin3efba532019-12-18 17:37:27 -0800216
217
218 /**
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);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700271};