blob: 3f832091e42fbc84b7ab2d89b4a6dc5b4cd3ff5b [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;
20import @1.4::IRadioResponse;
Nathan Harold4bb9d312019-12-23 14:34:26 -080021import @1.5::BarringInfo;
Jack Yu7f6c8d02019-12-09 14:02:56 -080022import @1.5::SetupDataCallResult;
Nathan Harold8f6b67b2020-01-16 17:00:49 -080023import @1.5::RegStateResult;
Malcolm Chen360e1f92019-10-02 11:38:13 -070024
25/**
26 * Interface declaring response functions to solicited radio requests.
27 */
28interface IRadioResponse extends @1.4::IRadioResponse {
sqianf1850bf2019-11-12 18:26:30 -080029 /**
30 * @param info Response info struct containing response type, serial no. and error
31 *
32 * Valid errors returned:
33 * RadioError:NONE
34 * RadioError:INVALID_ARGUMENTS
35 * RadioError:RADIO_NOT_AVAILABLE
36 */
37 oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info);
Malcolm Chenfb6d6242019-11-12 19:03:12 -080038
39 /**
40 * @param info Response info struct containing response type, serial no. and error
41 *
42 * Valid errors returned:
43 * RadioError:NONE
44 * RadioError:SIM_ABSENT
45 * RadioError:RADIO_NOT_AVAILABLE
46 * RadioError:INTERNAL_ERR
47 * RadioError:BUSY
Malcolm Chenfb6d6242019-11-12 19:03:12 -080048 */
49 oneway enableUiccApplicationsResponse(RadioResponseInfo info);
50
51 /**
52 * @param info Response info struct containing response type, serial no. and error
53 * @param enabled whether Uicc applications are enabled.
54 *
55 * Valid errors returned:
56 * RadioError:NONE
57 * RadioError:SIM_ABSENT
58 * RadioError:RADIO_NOT_AVAILABLE
59 * RadioError:INTERNAL_ERR
Malcolm Chenfb6d6242019-11-12 19:03:12 -080060 */
61 oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled);
62
63 /**
64 * @param info Response info struct containing response type, serial no. and error
Sarah Chinb7709bb2019-11-01 13:19:31 -070065 *
66 * Valid errors returned:
67 * RadioError:NONE
68 * RadioError:RADIO_NOT_AVAILABLE
69 * RadioError:INTERNAL_ERR
70 * RadioError:INVALID_ARGUMENTS
71 */
72 oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info);
73
74 /**
75 * @param info Response info struct containing response type, serial no. and error
76 *
77 * Valid errors returned:
78 * RadioError:NONE
79 * RadioError:RADIO_NOT_AVAILABLE
80 * RadioError:DEVICE_IN_USE
81 * RadioError:INTERNAL_ERR
82 * RadioError:MODEM_ERR
83 * RadioError:INVALID_ARGUMENTS
84 */
85 oneway startNetworkScanResponse_1_5(RadioResponseInfo info);
Sarah Chin039d5422019-11-05 15:39:32 -080086
87 /**
88 * @param info Response info struct containing response type, serial no. and error
89 * @param dcResponse SetupDataCallResult defined in types.hal
90 *
91 * Valid errors returned:
92 * RadioError:NONE must be returned on both success and failure of setup with the
93 * DataCallResponse.status containing the actual status
94 * For all other errors the DataCallResponse is ignored.
95 * RadioError:RADIO_NOT_AVAILABLE
96 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
97 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
98 * RadioError:REQUEST_NOT_SUPPORTED
99 * RadioError:INVALID_ARGUMENTS
100 * RadioError:INTERNAL_ERR
101 * RadioError:NO_RESOURCES
102 * RadioError:SIM_ABSENT
103 */
104 oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse);
105
106 /**
107 * @param info Response info struct containing response type, serial no. and error
108 *
109 * Valid errors returned:
110 * RadioError:NONE
111 * RadioError:RADIO_NOT_AVAILABLE
112 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
113 * RadioError:NO_MEMORY
114 * RadioError:INTERNAL_ERR
115 * RadioError:SYSTEM_ERR
116 * RadioError:MODEM_ERR
117 * RadioError:INVALID_ARGUMENTS
118 * RadioError:NOT_PROVISIONED
119 * RadioError:REQUEST_NOT_SUPPORTED
120 * RadioError:NO_RESOURCES
121 * RadioError:CANCELLED
122 */
123 oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info);
124
125 /**
126 * @param info Response info struct containing response type, serial no. and error
127 *
128 * Valid errors returned:
129 * RadioError:NONE
130 * RadioError:RADIO_NOT_AVAILABLE
131 * RadioError:SUBSCRIPTION_NOT_AVAILABLE
132 * RadioError:INTERNAL_ERR
133 * RadioError:NO_MEMORY
134 * RadioError:NO_RESOURCES
135 * RadioError:CANCELLED
136 * RadioError:REQUEST_NOT_SUPPORTED
137 * RadioError:SIM_ABSENT
138 */
139 oneway setDataProfileResponse_1_5(RadioResponseInfo info);
Malcolm Chen8f8e3d72019-12-16 18:53:58 -0800140
141 /**
142 * @param info Response info struct containing response type, serial no. and error
143 *
144 * Valid errors returned:
145 * RadioError:NONE
146 * RadioError:INTERNAL_ERR
147 * RadioError:INVALID_ARGUMENTS
148 */
149 oneway setRadioPowerResponse_1_5(RadioResponseInfo info);
Nathan Haroldbacb8212019-12-27 12:58:32 -0800150
151 /**
152 * @param info Response info struct containing response type, serial no. and error
153 *
154 * Valid errors returned:
155 * RadioError:NONE
156 * RadioError:INVALID_ARGUMENTS
157 * RadioError:RADIO_NOT_AVAILABLE
158 * RadioError:INTERNAL_ERR
159 * RadioError:SYSTEM_ERR
160 */
161 oneway setIndicationFilterResponse_1_5(RadioResponseInfo info);
Nathan Harold4bb9d312019-12-23 14:34:26 -0800162
163 /**
164 * @param info Response info struct containing response type, serial no. and error
165 * @param barringInfos a vector of barring info for all barring service types
166 *
167 * Valid errors returned:
168 * RadioError:NONE
169 * RadioError:RADIO_NOT_AVAILABLE
170 * RadioError:INTERNAL_ERR
171 * RadioError:MODEM_ERR
172 */
173 oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos);
Nathan Harold8f6b67b2020-01-16 17:00:49 -0800174
175 /**
176 * @param info Response info struct containing response type, serial no. and error
177 * @param voiceRegResponse Current Voice registration response as defined by RegStateResult
178 * in types.hal
179 *
180 * Valid errors returned:
181 * RadioError:NONE
182 * RadioError:RADIO_NOT_AVAILABLE
183 * RadioError:INTERNAL_ERR
184 */
185 oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info,
186 RegStateResult voiceRegResponse);
187
188 /**
189 * @param info Response info struct containing response type, serial no. and error
190 * @param dataRegResponse Current Data registration response as defined by RegStateResult in
191 * types.hal
192 *
193 * Valid errors returned:
194 * RadioError:NONE
195 * RadioError:RADIO_NOT_AVAILABLE
196 * RadioError:INTERNAL_ERR
197 * RadioError:NOT_PROVISIONED
198 */
199 oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info,
200 RegStateResult dataRegResponse);
Malcolm Chen360e1f92019-10-02 11:38:13 -0700201};