blob: f65c075203aa7c51d4d748751087a4b128549c04 [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;
Nazish Tabassum79f575e2019-12-13 02:19:39 +053023import @1.5::PersoSubstate;
Nathan Haroldcaee79f2020-01-16 17:00:49 -080024import @1.5::RegStateResult;
25import @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);
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530176
177 /**
178 * @param info Response info struct containing response type, serial no. and error
Nathan Haroldcaee79f2020-01-16 17:00:49 -0800179 * @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);
203
204 /**
205 * @param info Response info struct containing response type, serial no. and error
Nazish Tabassum79f575e2019-12-13 02:19:39 +0530206 * @param persoType SIM Personalisation type
207 * @param remainingRetries Positive values indicates number of retries remaining,
208 * must be equal to -1 if number of retries are infinite.
209 *
210 * Valid errors returned:
211 * RadioError:NONE
212 * RadioError:RADIO_NOT_AVAILABLE
213 * RadioError:PASSWORD_INCORRECT (code is invalid)
214 * RadioError:NO_MEMORY
215 * RadioError:INVALID_SIM_STATE
216 * RadioError:INTERNAL_ERR
217 * RadioError:SYSTEM_ERR
218 * RadioError:MODEM_ERR
219 * RadioError:INVALID_ARGUMENTS
220 * RadioError:NO_RESOURCES
221 * RadioError:REQUEST_NOT_SUPPORTED
222 */
223 oneway supplySimDepersonalizationResponse(RadioResponseInfo info,
224 PersoSubstate persoType, int32_t remainingRetries);
Nazish Tabassumc4487182019-12-10 14:35:09 +0530225
226 /**
227 * @param info Response info struct containing response type, serial no. and error
228 * @param sms Response to sms sent as defined by SendSmsResult in types.hal
229 *
230 * Valid errors returned:
231 * RadioError:NONE
232 * RadioError:RADIO_NOT_AVAILABLE
233 * RadioError:SMS_SEND_FAIL_RETRY
234 * RadioError:NETWORK_REJECT
235 * RadioError:INVALID_STATE
236 * RadioError:INVALID_ARGUMENTS
237 * RadioError:NO_MEMORY
238 * RadioError:REQUEST_RATE_LIMITED
239 * RadioError:INVALID_SMS_FORMAT
240 * RadioError:SYSTEM_ERR
241 * RadioError:FDN_CHECK_FAILURE
242 * RadioError:ENCODING_ERR
243 * RadioError:INVALID_SMSC_ADDRESS
244 * RadioError:MODEM_ERR
245 * RadioError:NETWORK_ERR
246 * RadioError:INTERNAL_ERR
247 * RadioError:REQUEST_NOT_SUPPORTED
248 * RadioError:INVALID_MODEM_STATE
249 * RadioError:NETWORK_NOT_READY
250 * RadioError:OPERATION_NOT_ALLOWED
251 * RadioError:NO_RESOURCES
252 * RadioError:CANCELLED
253 * RadioError:SIM_ABSENT
254 */
255 oneway sendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SendSmsResult sms);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700256};