blob: a58a5c1a127cbbb0276a14b69a9a242947e7fc66 [file] [log] [blame]
sqian8ffbfa52018-08-29 20:26:03 -07001/*
2 * Copyright (C) 2018 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
Malcolm Chen638f0052018-11-26 13:11:03 -080017package android.hardware.radio@1.4;
sqian8ffbfa52018-08-29 20:26:03 -070018
19import @1.0::RadioResponseInfo;
Malcolm Chen638f0052018-11-26 13:11:03 -080020import @1.3::IRadioResponse;
sqian8ffbfa52018-08-29 20:26:03 -070021
22/**
23 * Interface declaring response functions to solicited radio requests.
24 */
Malcolm Chen638f0052018-11-26 13:11:03 -080025interface IRadioResponse extends @1.3::IRadioResponse {
sqian8ffbfa52018-08-29 20:26:03 -070026 /**
27 * @param info Response info struct containing response type, serial no. and error
sqian8ffbfa52018-08-29 20:26:03 -070028 *
29 * Valid errors returned:
30 * RadioError:NONE
31 * RadioError:RADIO_NOT_AVAILABLE (radio resetting)
32 * RadioError:DIAL_MODIFIED_TO_USSD
33 * RadioError:DIAL_MODIFIED_TO_SS
34 * RadioError:DIAL_MODIFIED_TO_DIAL
35 * RadioError:INVALID_ARGUMENTS
36 * RadioError:NO_MEMORY
37 * RadioError:NO_RESOURCES
38 * RadioError:INTERNAL_ERR
39 * RadioError:FDN_CHECK_FAILURE
40 * RadioError:MODEM_ERR
41 * RadioError:NO_SUBSCRIPTION
42 * RadioError:NO_NETWORK_FOUND
43 * RadioError:INVALID_CALL_ID
44 * RadioError:DEVICE_IN_USE
45 * RadioError:ABORTED
46 * RadioError:INVALID_MODEM_STATE
47 * RadioError:CANCELLED
48 */
49 oneway emergencyDialResponse(RadioResponseInfo info);
Amruth Ramachandrand146a722018-09-10 20:48:49 -070050
51 /**
52 * @param info Response info struct containing response type, serial no. and error
Youming Ye9f94a152019-01-02 15:55:29 -080053 *
54 * Same API as @1.1::IRadioResponse.startNetworkScanResponse, except disallowing error codes
55 * OPERATION_NOT_ALLOWED and REQUEST_NOT_SUPPORTED.
56 *
57 * Valid errors returned:
58 * RadioError:NONE
59 * RadioError:RADIO_NOT_AVAILABLE
60 * RadioError:DEVICE_IN_USE
61 * RadioError:INTERNAL_ERR
62 * RadioError:NO_MEMORY
63 * RadioError:MODEM_ERR
64 * RadioError:INVALID_ARGUMENTS
65 */
66 oneway startNetworkScanResponse_1_4(RadioResponseInfo info);
67
68 /**
69 * @param info Response info struct containing response type, serial no. and error
Pengquan Meng1d4e8ae2018-11-07 16:22:32 -080070 * @param cellInfo List of current cell information known to radio
71 *
72 * Valid errors returned:
73 * RadioError:NONE
74 * RadioError:RADIO_NOT_AVAILABLE
75 * RadioError:INTERNAL_ERR
76 */
Malcolm Chen638f0052018-11-26 13:11:03 -080077 oneway getCellInfoListResponse_1_4(RadioResponseInfo info, vec<CellInfo> cellInfo);
Pengquan Meng1d4e8ae2018-11-07 16:22:32 -080078
79 /**
80 * @param info Response info struct containing response type, serial no. and error
Amruth Ramachandrand146a722018-09-10 20:48:49 -070081 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
82 * types.hal
83 *
84 * Valid errors returned:
85 * RadioError:NONE
86 * RadioError:RADIO_NOT_AVAILABLE
87 * RadioError:INTERNAL_ERR
88 * RadioError:NOT_PROVISIONED
89 */
Malcolm Chen638f0052018-11-26 13:11:03 -080090 oneway getDataRegistrationStateResponse_1_4(RadioResponseInfo info,
Amruth Ramachandrand146a722018-09-10 20:48:49 -070091 DataRegStateResult dataRegResponse);
Jordan Liu398e84d2018-11-12 10:49:10 -080092
93 /**
94 * @param info Response info struct containing response type, serial no. and error
95 * @param cardStatus ICC card status as defined by CardStatus in types.hal
96 *
97 * Valid errors returned:
98 * RadioError:NONE
99 * RadioError:RADIO_NOT_AVAILABLE
100 * RadioError:INTERNAL_ERR
101 * RadioError:NO_MEMORY
102 * RadioError:NO_RESOURCES
103 * RadioError:CANCELLED
104 * RadioError:REQUEST_NOT_SUPPORTED
105 */
Malcolm Chen638f0052018-11-26 13:11:03 -0800106 oneway getIccCardStatusResponse_1_4(RadioResponseInfo info, CardStatus cardStatus);
Pengquan Meng1ed39242018-12-10 18:22:47 -0800107
108 /**
109 * @param info Response info struct containing response type, serial no. and error
110 * @param networkTypeBitmap a 32-bit bitmap of RadioAccessFamily.
111 *
112 * Valid errors returned:
113 * RadioError:NONE
114 * RadioError:RADIO_NOT_AVAILABLE
115 * RadioError:NO_MEMORY
116 * RadioError:INTERNAL_ERR
117 * RadioError:SYSTEM_ERR
118 * RadioError:INVALID_ARGUMENTS
119 * RadioError:MODEM_ERR
120 * RadioError:REQUEST_NOT_SUPPORTED
121 * RadioError:NO_RESOURCES
122 * RadioError:CANCELLED
123 */
124 oneway getPreferredNetworkTypeBitmapResponse(RadioResponseInfo info,
125 bitfield<RadioAccessFamily> networkTypeBitmap);
126
127 /**
128 * Callback of IRadio.setPreferredNetworkTypeBitmap(int, bitfield<RadioAccessFamily>)
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:OPERATION_NOT_ALLOWED
136 * RadioError:MODE_NOT_SUPPORTED
137 * RadioError:NO_MEMORY
138 * RadioError:INTERNAL_ERR
139 * RadioError:SYSTEM_ERR
140 * RadioError:INVALID_ARGUMENTS
141 * RadioError:MODEM_ERR
142 * RadioError:REQUEST_NOT_SUPPORTED
143 * RadioError:NO_RESOURCES
144 * RadioError:CANCELLED
145 */
146 oneway setPreferredNetworkTypeBitmapResponse(RadioResponseInfo info);
paulhu31aed672018-12-18 19:30:16 +0800147
148 /**
149 * @param info Response info struct containing response type, serial no. and error
150 * @param dcResponse List of DataCallResult as defined in types.hal
151 *
152 * Valid errors returned:
153 * RadioError:NONE
154 * RadioError:RADIO_NOT_AVAILABLE
155 * RadioError:INTERNAL_ERR
156 * RadioError:NO_MEMORY
157 * RadioError:NO_RESOURCES
158 * RadioError:CANCELLED
159 * RadioError:REQUEST_NOT_SUPPORTED
160 * RadioError:SIM_ABSENT
161 */
162 oneway getDataCallListResponse_1_4(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse);
163
164 /**
165 * @param info Response info struct containing response type, serial no. and error
166 * @param dcResponse SetupDataCallResult defined in types.hal
167 *
168 * Valid errors returned:
169 * RadioError:NONE must be returned on both success and failure of setup with the
170 * DataCallResponse.status containing the actual status
171 * For all other errors the DataCallResponse is ignored.
172 * RadioError:RADIO_NOT_AVAILABLE
173 * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW
174 * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL
175 * RadioError:REQUEST_NOT_SUPPORTED
176 * RadioError:INVALID_ARGUMENTS
177 * RadioError:INTERNAL_ERR
178 * RadioError:NO_MEMORY
179 * RadioError:NO_RESOURCES
180 * RadioError:CANCELLED
181 * RadioError:SIM_ABSENT
182 */
183 oneway setupDataCallResponse_1_4(RadioResponseInfo info, SetupDataCallResult dcResponse);
Pengquan Meng1ed39242018-12-10 18:22:47 -0800184};