Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2020 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 | |
| 17 | package android.hardware.radio@1.6; |
| 18 | |
allenwtsu | 1c3dcd3 | 2020-09-25 17:58:01 +0800 | [diff] [blame] | 19 | import @1.0::SendSmsResult; |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 20 | import @1.5::IRadioResponse; |
Mingming Cai | da0d983 | 2020-11-05 17:56:57 -0800 | [diff] [blame^] | 21 | import @1.6::CellInfo; |
Hui Wang | fb20250 | 2020-11-13 04:30:18 +0000 | [diff] [blame] | 22 | import @1.6::RegStateResult; |
Mingming Cai | da0d983 | 2020-11-05 17:56:57 -0800 | [diff] [blame^] | 23 | import @1.6::RadioResponseInfo; |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 24 | import @1.6::SetupDataCallResult; |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * Interface declaring response functions to solicited radio requests. |
| 28 | */ |
| 29 | interface IRadioResponse extends @1.5::IRadioResponse { |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 30 | /** |
| 31 | * @param info Response info struct containing response type, serial no. and error |
Tim Lin | e29df60 | 2020-09-26 22:43:24 +0800 | [diff] [blame] | 32 | * |
| 33 | * Valid errors returned: |
| 34 | * RadioError:NONE |
| 35 | * RadioError:INTERNAL_ERR |
| 36 | * RadioError:INVALID_ARGUMENTS |
| 37 | * RadioError:RF_HARDWARE_ISSUE |
| 38 | * RadioError:NO_RF_CALIBRATION_INFO |
| 39 | */ |
| 40 | oneway setRadioPowerResponse_1_6(RadioResponseInfo info); |
| 41 | |
| 42 | /** |
| 43 | * @param info Response info struct containing response type, serial no. and error |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 44 | * @param dcResponse SetupDataCallResult defined in types.hal |
| 45 | * |
| 46 | * Valid errors returned: |
| 47 | * RadioError:NONE must be returned on both success and failure of setup with the |
| 48 | * DataCallResponse.status containing the actual status |
| 49 | * For all other errors the DataCallResponse is ignored. |
| 50 | * RadioError:RADIO_NOT_AVAILABLE |
| 51 | * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW |
| 52 | * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL |
| 53 | * RadioError:INVALID_ARGUMENTS |
| 54 | * RadioError:INTERNAL_ERR |
| 55 | * RadioError:NO_RESOURCES if the vendor is unable handle due to resources |
| 56 | * are full. |
| 57 | * RadioError:SIM_ABSENT |
| 58 | */ |
| 59 | oneway setupDataCallResponse_1_6(RadioResponseInfo info, SetupDataCallResult dcResponse); |
| 60 | |
| 61 | /** |
| 62 | * @param info Response info struct containing response type, serial no. and error |
| 63 | * @param dcResponse List of SetupDataCallResult as defined in types.hal |
| 64 | * |
| 65 | * Valid errors returned: |
| 66 | * RadioError:NONE |
| 67 | * RadioError:RADIO_NOT_AVAILABLE |
| 68 | * RadioError:INTERNAL_ERR |
| 69 | * RadioError:SIM_ABSENT |
| 70 | */ |
| 71 | oneway getDataCallListResponse_1_6(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse); |
allenwtsu | 1c3dcd3 | 2020-09-25 17:58:01 +0800 | [diff] [blame] | 72 | |
| 73 | /** |
| 74 | * @param info Response info struct containing response type, serial no. and error |
| 75 | * @param sms Response to sms sent as defined by SendSmsResult in types.hal |
| 76 | * |
| 77 | * Valid errors returned: |
| 78 | * RadioError:NONE |
| 79 | * RadioError:RADIO_NOT_AVAILABLE |
| 80 | * RadioError:SMS_SEND_FAIL_RETRY |
| 81 | * RadioError:NETWORK_REJECT |
| 82 | * RadioError:INVALID_STATE |
| 83 | * RadioError:INVALID_ARGUMENTS |
| 84 | * RadioError:NO_MEMORY |
| 85 | * RadioError:REQUEST_RATE_LIMITED |
| 86 | * RadioError:INVALID_SMS_FORMAT |
| 87 | * RadioError:SYSTEM_ERR |
| 88 | * RadioError:ENCODING_ERR |
| 89 | * RadioError:INVALID_SMSC_ADDRESS |
| 90 | * RadioError:MODEM_ERR |
| 91 | * RadioError:NETWORK_ERR |
| 92 | * RadioError:INTERNAL_ERR |
| 93 | * RadioError:REQUEST_NOT_SUPPORTED |
| 94 | * RadioError:INVALID_MODEM_STATE |
| 95 | * RadioError:NETWORK_NOT_READY |
| 96 | * RadioError:OPERATION_NOT_ALLOWED |
| 97 | * RadioError:NO_RESOURCES |
| 98 | * RadioError:CANCELLED |
| 99 | * RadioError:SIM_ABSENT |
| 100 | * RadioError:ACCESS_BARRED |
| 101 | * RadioError:BLOCKED_DUE_TO_CALL |
| 102 | */ |
| 103 | oneway sendSmsResponse_1_6(RadioResponseInfo info, SendSmsResult sms); |
| 104 | |
| 105 | /** |
| 106 | * @param info Response info struct containing response type, serial no. and error |
| 107 | * @param sms Response to sms sent as defined by SendSmsResult in types.hal |
| 108 | * |
| 109 | * Valid errors returned: |
| 110 | * RadioError:NONE |
| 111 | * RadioError:RADIO_NOT_AVAILABLE |
| 112 | * RadioError:SMS_SEND_FAIL_RETRY |
| 113 | * RadioError:NETWORK_REJECT |
| 114 | * RadioError:INVALID_STATE |
| 115 | * RadioError:INVALID_ARGUMENTS |
| 116 | * RadioError:NO_MEMORY |
| 117 | * RadioError:REQUEST_RATE_LIMITED |
| 118 | * RadioError:INVALID_SMS_FORMAT |
| 119 | * RadioError:SYSTEM_ERR |
| 120 | * RadioError:FDN_CHECK_FAILURE |
| 121 | * RadioError:ENCODING_ERR |
| 122 | * RadioError:INVALID_SMSC_ADDRESS |
| 123 | * RadioError:MODEM_ERR |
| 124 | * RadioError:NETWORK_ERR |
| 125 | * RadioError:INTERNAL_ERR |
| 126 | * RadioError:REQUEST_NOT_SUPPORTED |
| 127 | * RadioError:INVALID_MODEM_STATE |
| 128 | * RadioError:NETWORK_NOT_READY |
| 129 | * RadioError:OPERATION_NOT_ALLOWED |
| 130 | * RadioError:NO_RESOURCES |
| 131 | * RadioError:CANCELLED |
| 132 | * RadioError:SIM_ABSENT |
| 133 | * RadioError:ACCESS_BARRED |
| 134 | * RadioError:BLOCKED_DUE_TO_CALL |
| 135 | */ |
| 136 | oneway sendSMSExpectMoreResponse_1_6(RadioResponseInfo info, SendSmsResult sms); |
| 137 | |
| 138 | /** |
| 139 | * @param info Response info struct containing response type, serial no. and error |
| 140 | * @param sms Sms result struct as defined by SendSmsResult in types.hal |
| 141 | * |
| 142 | * Valid errors returned: |
| 143 | * RadioError:NONE |
| 144 | * RadioError:RADIO_NOT_AVAILABLE |
| 145 | * RadioError:INVALID_ARGUMENTS |
| 146 | * RadioError:SMS_SEND_FAIL_RETRY |
| 147 | * RadioError:NETWORK_REJECT |
| 148 | * RadioError:INVALID_STATE |
| 149 | * RadioError:NO_MEMORY |
| 150 | * RadioError:REQUEST_RATE_LIMITED |
| 151 | * RadioError:INVALID_SMS_FORMAT |
| 152 | * RadioError:SYSTEM_ERR |
| 153 | * RadioError:FDN_CHECK_FAILURE |
| 154 | * RadioError:MODEM_ERR |
| 155 | * RadioError:NETWORK_ERR |
| 156 | * RadioError:ENCODING_ERR |
| 157 | * RadioError:INVALID_SMSC_ADDRESS |
| 158 | * RadioError:INTERNAL_ERR |
| 159 | * RadioError:SYSTEM_ERR |
| 160 | * RadioError:REQUEST_NOT_SUPPORTED |
| 161 | * RadioError:OPERATION_NOT_ALLOWED |
| 162 | * RadioError:ENCODING_ERR |
| 163 | * RadioError:NO_RESOURCES |
| 164 | * RadioError:CANCELLED |
| 165 | * RadioError:SIM_ABSENT |
| 166 | * RadioError:SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED |
| 167 | * RadioError:ACCESS_BARRED |
| 168 | * RadioError:BLOCKED_DUE_TO_CALL |
| 169 | */ |
| 170 | oneway sendCdmaSmsResponse_1_6(RadioResponseInfo info, SendSmsResult sms); |
| 171 | |
| 172 | /** |
| 173 | * @param info Response info struct containing response type, serial no. and error |
| 174 | * @param sms Response to sms sent as defined by SendSmsResult in types.hal |
| 175 | * |
| 176 | * Valid errors returned: |
| 177 | * RadioError:NONE |
| 178 | * RadioError:RADIO_NOT_AVAILABLE |
| 179 | * RadioError:SMS_SEND_FAIL_RETRY |
| 180 | * RadioError:NETWORK_REJECT |
| 181 | * RadioError:INVALID_STATE |
| 182 | * RadioError:INVALID_ARGUMENTS |
| 183 | * RadioError:NO_MEMORY |
| 184 | * RadioError:REQUEST_RATE_LIMITED |
| 185 | * RadioError:INVALID_SMS_FORMAT |
| 186 | * RadioError:SYSTEM_ERR |
| 187 | * RadioError:FDN_CHECK_FAILURE |
| 188 | * RadioError:ENCODING_ERR |
| 189 | * RadioError:INVALID_SMSC_ADDRESS |
| 190 | * RadioError:MODEM_ERR |
| 191 | * RadioError:NETWORK_ERR |
| 192 | * RadioError:INTERNAL_ERR |
| 193 | * RadioError:REQUEST_NOT_SUPPORTED |
| 194 | * RadioError:INVALID_MODEM_STATE |
| 195 | * RadioError:NETWORK_NOT_READY |
| 196 | * RadioError:OPERATION_NOT_ALLOWED |
| 197 | * RadioError:NO_RESOURCES |
| 198 | * RadioError:CANCELLED |
| 199 | * RadioError:SIM_ABSENT |
| 200 | * RadioError:SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED |
| 201 | * RadioError:ACCESS_BARRED |
| 202 | * RadioError:BLOCKED_DUE_TO_CALL |
| 203 | */ |
| 204 | oneway sendCdmaSmsExpectMoreResponse_1_6(RadioResponseInfo info, SendSmsResult sms); |
Sooraj Sasindran | a9d461b | 2020-08-14 11:00:11 -0700 | [diff] [blame] | 205 | |
| 206 | /** |
| 207 | * @param info Response info struct containing response type, serial no. and error |
| 208 | * |
| 209 | * Valid errors returned: |
| 210 | * RadioError:NONE |
| 211 | * RadioError:RADIO_NOT_AVAILABLE |
Jordan Liu | e4f5f02 | 2020-10-21 16:28:40 -0700 | [diff] [blame] | 212 | * RadioError:INVALID_ARGUMENTS |
| 213 | * RadioError:SIM_ERR (indicates a timeout or other issue making the SIM unresponsive) |
| 214 | * |
| 215 | * Note that this differs from setSimCardPowerResponse_1_1 in that the response |
| 216 | * should only be sent once the request from setSimCardPower_1_6 is complete |
| 217 | * (the SIM has finished powering on or off). |
| 218 | */ |
| 219 | oneway setSimCardPowerResponse_1_6(RadioResponseInfo info); |
| 220 | |
| 221 | /** |
| 222 | * @param info Response info struct containing response type, serial no. and error |
| 223 | * |
| 224 | * Valid errors returned: |
| 225 | * RadioError:NONE |
| 226 | * RadioError:RADIO_NOT_AVAILABLE |
Sooraj Sasindran | a9d461b | 2020-08-14 11:00:11 -0700 | [diff] [blame] | 227 | * RadioError:INTERNAL_ERR |
| 228 | */ |
Sooraj Sasindran | e9525fd | 2020-11-03 20:46:57 -0800 | [diff] [blame] | 229 | oneway setNrDualConnectivityStateResponse(RadioResponseInfo info); |
Sooraj Sasindran | a9d461b | 2020-08-14 11:00:11 -0700 | [diff] [blame] | 230 | |
| 231 | /** |
| 232 | * @param info Response info struct containing response type, serial no. and error |
| 233 | * |
| 234 | * @param isEnabled Indicates whether NR dual connectivity is enabled or not, True if enabled |
| 235 | * else false. |
| 236 | * Valid errors returned: |
| 237 | * RadioError:NONE |
| 238 | * RadioError:RADIO_NOT_AVAILABLE |
| 239 | * RadioError:INTERNAL_ERR |
| 240 | */ |
| 241 | oneway isNrDualConnectivityEnabledResponse(RadioResponseInfo info, bool isEnabled); |
Daniel Bright | 15cc34a | 2020-10-26 11:34:53 -0700 | [diff] [blame] | 242 | |
| 243 | /** |
| 244 | * @param info Response info struct containing response type, serial no. and error |
Daniel Bright | 3c72fba | 2020-11-03 14:56:23 -0800 | [diff] [blame] | 245 | * @param id The allocated id. On an error, this is set to 0. |
Daniel Bright | 15cc34a | 2020-10-26 11:34:53 -0700 | [diff] [blame] | 246 | * |
| 247 | * Valid errors returned: |
| 248 | * RadioError:NONE |
| 249 | * RadioError:RADIO_NOT_AVAILABLE |
| 250 | * RadioError:INTERNAL_ERR |
| 251 | * RadioError:NO_RESOURCES- Indicates that no pdu session ids are available |
| 252 | * RadioError:REQUEST_NOT_SUPPORTED |
| 253 | */ |
| 254 | oneway allocatePduSessionIdResponse(RadioResponseInfo info, int32_t id); |
| 255 | |
| 256 | /** |
| 257 | * @param info Response info struct containing response type, serial no. and error |
| 258 | * |
| 259 | * Valid errors returned: |
| 260 | * RadioError:NONE |
| 261 | * RadioError:RADIO_NOT_AVAILABLE |
| 262 | * RadioError:INTERNAL_ERR |
| 263 | * RadioError:NO_RESOURCES |
| 264 | * RadioError:REQUEST_NOT_SUPPORTED |
| 265 | */ |
| 266 | oneway releasePduSessionIdResponse(RadioResponseInfo info); |
| 267 | |
| 268 | /** |
| 269 | * @param info Response info struct containing response type, serial no. and error |
| 270 | * |
| 271 | * Valid errors returned: |
| 272 | * RadioError:NONE |
| 273 | * RadioError:RADIO_NOT_AVAILABLE |
| 274 | * RadioError:INTERNAL_ERR |
| 275 | * RadioError:NO_RESOURCES |
| 276 | * RadioError:REQUEST_NOT_SUPPORTED |
| 277 | * RadioError:INVALID_CALL_ID |
| 278 | */ |
Daniel Bright | 3c72fba | 2020-11-03 14:56:23 -0800 | [diff] [blame] | 279 | oneway startHandoverResponse(RadioResponseInfo info); |
Daniel Bright | 15cc34a | 2020-10-26 11:34:53 -0700 | [diff] [blame] | 280 | |
| 281 | /** |
| 282 | * @param info Response info struct containing response type, serial no. and error |
| 283 | * @param dcResponse Attributes of data call |
| 284 | * |
| 285 | * Valid errors returned: |
| 286 | * RadioError:NONE |
| 287 | * RadioError:RADIO_NOT_AVAILABLE |
| 288 | * RadioError:INTERNAL_ERR |
| 289 | * RadioError:NO_RESOURCES |
| 290 | * RadioError:REQUEST_NOT_SUPPORTED |
| 291 | * RadioError:INVALID_CALL_ID |
| 292 | */ |
| 293 | oneway cancelHandoverResponse(RadioResponseInfo info); |
ThiƩbaud Weksteen | 5ae16f3 | 2020-08-21 16:46:07 +0200 | [diff] [blame] | 294 | |
| 295 | /** |
| 296 | * Callback of IRadio.setAllowedNetworkTypeBitmap(int, bitfield<RadioAccessFamily>) |
| 297 | * |
| 298 | * Valid errors returned: |
| 299 | * RadioError:NONE |
| 300 | * RadioError:RADIO_NOT_AVAILABLE |
| 301 | * RadioError:OPERATION_NOT_ALLOWED |
| 302 | * RadioError:MODE_NOT_SUPPORTED |
| 303 | * RadioError:INTERNAL_ERR |
| 304 | * RadioError:INVALID_ARGUMENTS |
| 305 | * RadioError:MODEM_ERR |
| 306 | * RadioError:REQUEST_NOT_SUPPORTED |
| 307 | * RadioError:NO_RESOURCES |
| 308 | */ |
| 309 | oneway setAllowedNetworkTypeBitmapResponse(RadioResponseInfo info); |
Jack Nudelman | 5cd9414 | 2020-09-24 14:23:35 -0700 | [diff] [blame] | 310 | |
| 311 | /** |
| 312 | * @param info Response info struct containing response type, serial no. and error |
| 313 | * |
| 314 | * Valid errors returned: |
| 315 | * RadioError:NONE |
| 316 | * RadioError:RADIO_NOT_AVAILABLE |
| 317 | * RadioError:MODEM_ERR |
| 318 | * RadioError:INVALID_ARGUMENTS |
| 319 | */ |
| 320 | oneway setDataThrottlingResponse(RadioResponseInfo info); |
Sarah Chin | f69abcf | 2020-11-18 13:40:15 -0800 | [diff] [blame] | 321 | |
| 322 | /** |
| 323 | * @param info Response info struct containing response type, serial no. and error |
| 324 | * |
| 325 | * Valid errors returned: |
| 326 | * RadioError:NONE |
| 327 | * RadioError:RADIO_NOT_AVAILABLE |
| 328 | * RadioError:INTERNAL_ERR |
| 329 | * RadioError:INVALID_ARGUMENTS |
| 330 | */ |
| 331 | oneway getSystemSelectionChannelsResponse(RadioResponseInfo info); |
Hui Wang | fb20250 | 2020-11-13 04:30:18 +0000 | [diff] [blame] | 332 | |
| 333 | /** |
Mingming Cai | da0d983 | 2020-11-05 17:56:57 -0800 | [diff] [blame^] | 334 | * This is identical to getCellInfoListResponse_1_5 but uses an updated version of CellInfo. |
| 335 | * |
| 336 | * @param info Response info struct containing response type, serial no. and error |
| 337 | * @param cellInfo List of current cell information known to radio |
| 338 | * |
| 339 | * Valid errors returned: |
| 340 | * RadioError:NONE |
| 341 | * RadioError:RADIO_NOT_AVAILABLE |
| 342 | * RadioError:INTERNAL_ERR |
| 343 | */ |
| 344 | oneway getCellInfoListResponse_1_6(RadioResponseInfo info, vec<CellInfo> cellInfo); |
| 345 | |
| 346 | /** |
Hui Wang | fb20250 | 2020-11-13 04:30:18 +0000 | [diff] [blame] | 347 | * @param info Response info struct containing response type, serial no. and error |
| 348 | * @param voiceRegResponse Current Voice registration response as defined by RegStateResult |
| 349 | * in types.hal |
| 350 | * |
| 351 | * Valid errors returned: |
| 352 | * RadioError:NONE |
| 353 | * RadioError:RADIO_NOT_AVAILABLE |
| 354 | * RadioError:INTERNAL_ERR |
| 355 | */ |
| 356 | oneway getVoiceRegistrationStateResponse_1_6(RadioResponseInfo info, |
| 357 | RegStateResult voiceRegResponse); |
| 358 | |
| 359 | /** |
| 360 | * @param info Response info struct containing response type, serial no. and error |
| 361 | * @param dataRegResponse Current Data registration response as defined by RegStateResult in |
| 362 | * types.hal |
| 363 | * |
| 364 | * Valid errors returned: |
| 365 | * RadioError:NONE |
| 366 | * RadioError:RADIO_NOT_AVAILABLE |
| 367 | * RadioError:INTERNAL_ERR |
| 368 | * RadioError:NOT_PROVISIONED |
| 369 | */ |
| 370 | oneway getDataRegistrationStateResponse_1_6(RadioResponseInfo info, |
| 371 | RegStateResult dataRegResponse); |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 372 | }; |