Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.radio@1.5; |
| 18 | |
| 19 | import @1.0::RadioResponseInfo; |
Nazish Tabassum | ba2f830 | 2019-12-10 14:35:09 +0530 | [diff] [blame] | 20 | import @1.0::SendSmsResult; |
Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 21 | import @1.4::IRadioResponse; |
Nathan Harold | 4bb9d31 | 2019-12-23 14:34:26 -0800 | [diff] [blame] | 22 | import @1.5::BarringInfo; |
Nathan Harold | 500733c | 2020-01-20 17:04:16 -0800 | [diff] [blame] | 23 | import @1.5::CellInfo; |
Sarah Chin | fc16668 | 2020-01-29 11:02:09 -0800 | [diff] [blame] | 24 | import @1.5::PersoSubstate; |
Nathan Harold | 8f6b67b | 2020-01-16 17:00:49 -0800 | [diff] [blame] | 25 | import @1.5::RegStateResult; |
Nazish Tabassum | ba2f830 | 2019-12-10 14:35:09 +0530 | [diff] [blame] | 26 | import @1.5::SetupDataCallResult; |
Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 27 | |
| 28 | /** |
| 29 | * Interface declaring response functions to solicited radio requests. |
| 30 | */ |
| 31 | interface IRadioResponse extends @1.4::IRadioResponse { |
sqian | f1850bf | 2019-11-12 18:26:30 -0800 | [diff] [blame] | 32 | /** |
| 33 | * @param info Response info struct containing response type, serial no. and error |
| 34 | * |
| 35 | * Valid errors returned: |
| 36 | * RadioError:NONE |
| 37 | * RadioError:INVALID_ARGUMENTS |
| 38 | * RadioError:RADIO_NOT_AVAILABLE |
| 39 | */ |
| 40 | oneway setSignalStrengthReportingCriteriaResponse_1_5(RadioResponseInfo info); |
Malcolm Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 41 | |
| 42 | /** |
| 43 | * @param info Response info struct containing response type, serial no. and error |
| 44 | * |
| 45 | * Valid errors returned: |
| 46 | * RadioError:NONE |
| 47 | * RadioError:SIM_ABSENT |
| 48 | * RadioError:RADIO_NOT_AVAILABLE |
| 49 | * RadioError:INTERNAL_ERR |
| 50 | * RadioError:BUSY |
Malcolm Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 51 | */ |
| 52 | oneway enableUiccApplicationsResponse(RadioResponseInfo info); |
| 53 | |
| 54 | /** |
| 55 | * @param info Response info struct containing response type, serial no. and error |
| 56 | * @param enabled whether Uicc applications are enabled. |
| 57 | * |
| 58 | * Valid errors returned: |
| 59 | * RadioError:NONE |
| 60 | * RadioError:SIM_ABSENT |
| 61 | * RadioError:RADIO_NOT_AVAILABLE |
| 62 | * RadioError:INTERNAL_ERR |
Malcolm Chen | fb6d624 | 2019-11-12 19:03:12 -0800 | [diff] [blame] | 63 | */ |
| 64 | oneway areUiccApplicationsEnabledResponse(RadioResponseInfo info, bool enabled); |
| 65 | |
| 66 | /** |
| 67 | * @param info Response info struct containing response type, serial no. and error |
Sarah Chin | b7709bb | 2019-11-01 13:19:31 -0700 | [diff] [blame] | 68 | * |
| 69 | * Valid errors returned: |
| 70 | * RadioError:NONE |
| 71 | * RadioError:RADIO_NOT_AVAILABLE |
| 72 | * RadioError:INTERNAL_ERR |
| 73 | * RadioError:INVALID_ARGUMENTS |
| 74 | */ |
| 75 | oneway setSystemSelectionChannelsResponse_1_5(RadioResponseInfo info); |
| 76 | |
| 77 | /** |
| 78 | * @param info Response info struct containing response type, serial no. and error |
| 79 | * |
| 80 | * Valid errors returned: |
| 81 | * RadioError:NONE |
| 82 | * RadioError:RADIO_NOT_AVAILABLE |
| 83 | * RadioError:DEVICE_IN_USE |
| 84 | * RadioError:INTERNAL_ERR |
| 85 | * RadioError:MODEM_ERR |
| 86 | * RadioError:INVALID_ARGUMENTS |
| 87 | */ |
| 88 | oneway startNetworkScanResponse_1_5(RadioResponseInfo info); |
Sarah Chin | 039d542 | 2019-11-05 15:39:32 -0800 | [diff] [blame] | 89 | |
| 90 | /** |
| 91 | * @param info Response info struct containing response type, serial no. and error |
| 92 | * @param dcResponse SetupDataCallResult defined in types.hal |
| 93 | * |
| 94 | * Valid errors returned: |
| 95 | * RadioError:NONE must be returned on both success and failure of setup with the |
| 96 | * DataCallResponse.status containing the actual status |
| 97 | * For all other errors the DataCallResponse is ignored. |
| 98 | * RadioError:RADIO_NOT_AVAILABLE |
| 99 | * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW |
| 100 | * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL |
| 101 | * RadioError:REQUEST_NOT_SUPPORTED |
| 102 | * RadioError:INVALID_ARGUMENTS |
| 103 | * RadioError:INTERNAL_ERR |
| 104 | * RadioError:NO_RESOURCES |
| 105 | * RadioError:SIM_ABSENT |
| 106 | */ |
| 107 | oneway setupDataCallResponse_1_5(RadioResponseInfo info, SetupDataCallResult dcResponse); |
| 108 | |
| 109 | /** |
| 110 | * @param info Response info struct containing response type, serial no. and error |
| 111 | * |
| 112 | * Valid errors returned: |
| 113 | * RadioError:NONE |
| 114 | * RadioError:RADIO_NOT_AVAILABLE |
| 115 | * RadioError:SUBSCRIPTION_NOT_AVAILABLE |
| 116 | * RadioError:NO_MEMORY |
| 117 | * RadioError:INTERNAL_ERR |
| 118 | * RadioError:SYSTEM_ERR |
| 119 | * RadioError:MODEM_ERR |
| 120 | * RadioError:INVALID_ARGUMENTS |
| 121 | * RadioError:NOT_PROVISIONED |
| 122 | * RadioError:REQUEST_NOT_SUPPORTED |
| 123 | * RadioError:NO_RESOURCES |
| 124 | * RadioError:CANCELLED |
| 125 | */ |
| 126 | oneway setInitialAttachApnResponse_1_5(RadioResponseInfo info); |
| 127 | |
| 128 | /** |
| 129 | * @param info Response info struct containing response type, serial no. and error |
| 130 | * |
| 131 | * Valid errors returned: |
| 132 | * RadioError:NONE |
| 133 | * RadioError:RADIO_NOT_AVAILABLE |
| 134 | * RadioError:SUBSCRIPTION_NOT_AVAILABLE |
| 135 | * RadioError:INTERNAL_ERR |
| 136 | * RadioError:NO_MEMORY |
| 137 | * RadioError:NO_RESOURCES |
| 138 | * RadioError:CANCELLED |
| 139 | * RadioError:REQUEST_NOT_SUPPORTED |
| 140 | * RadioError:SIM_ABSENT |
| 141 | */ |
| 142 | oneway setDataProfileResponse_1_5(RadioResponseInfo info); |
Malcolm Chen | 8f8e3d7 | 2019-12-16 18:53:58 -0800 | [diff] [blame] | 143 | |
| 144 | /** |
| 145 | * @param info Response info struct containing response type, serial no. and error |
| 146 | * |
| 147 | * Valid errors returned: |
| 148 | * RadioError:NONE |
| 149 | * RadioError:INTERNAL_ERR |
| 150 | * RadioError:INVALID_ARGUMENTS |
| 151 | */ |
| 152 | oneway setRadioPowerResponse_1_5(RadioResponseInfo info); |
Nathan Harold | bacb821 | 2019-12-27 12:58:32 -0800 | [diff] [blame] | 153 | |
| 154 | /** |
| 155 | * @param info Response info struct containing response type, serial no. and error |
| 156 | * |
| 157 | * Valid errors returned: |
| 158 | * RadioError:NONE |
| 159 | * RadioError:INVALID_ARGUMENTS |
| 160 | * RadioError:RADIO_NOT_AVAILABLE |
| 161 | * RadioError:INTERNAL_ERR |
| 162 | * RadioError:SYSTEM_ERR |
| 163 | */ |
| 164 | oneway setIndicationFilterResponse_1_5(RadioResponseInfo info); |
Nathan Harold | 4bb9d31 | 2019-12-23 14:34:26 -0800 | [diff] [blame] | 165 | |
| 166 | /** |
| 167 | * @param info Response info struct containing response type, serial no. and error |
| 168 | * @param barringInfos a vector of barring info for all barring service types |
| 169 | * |
| 170 | * Valid errors returned: |
| 171 | * RadioError:NONE |
| 172 | * RadioError:RADIO_NOT_AVAILABLE |
| 173 | * RadioError:INTERNAL_ERR |
| 174 | * RadioError:MODEM_ERR |
| 175 | */ |
| 176 | oneway getBarringInfoResponse(RadioResponseInfo info, vec<BarringInfo> barringInfos); |
Nathan Harold | 8f6b67b | 2020-01-16 17:00:49 -0800 | [diff] [blame] | 177 | |
| 178 | /** |
Sarah Chin | fc16668 | 2020-01-29 11:02:09 -0800 | [diff] [blame] | 179 | * @param info Response info struct containing response type, serial no. and error |
Nathan Harold | 8f6b67b | 2020-01-16 17:00:49 -0800 | [diff] [blame] | 180 | * @param voiceRegResponse Current Voice registration response as defined by RegStateResult |
| 181 | * in types.hal |
| 182 | * |
| 183 | * Valid errors returned: |
| 184 | * RadioError:NONE |
| 185 | * RadioError:RADIO_NOT_AVAILABLE |
| 186 | * RadioError:INTERNAL_ERR |
| 187 | */ |
| 188 | oneway getVoiceRegistrationStateResponse_1_5(RadioResponseInfo info, |
| 189 | RegStateResult voiceRegResponse); |
| 190 | |
| 191 | /** |
| 192 | * @param info Response info struct containing response type, serial no. and error |
| 193 | * @param dataRegResponse Current Data registration response as defined by RegStateResult in |
| 194 | * types.hal |
| 195 | * |
| 196 | * Valid errors returned: |
| 197 | * RadioError:NONE |
| 198 | * RadioError:RADIO_NOT_AVAILABLE |
| 199 | * RadioError:INTERNAL_ERR |
| 200 | * RadioError:NOT_PROVISIONED |
| 201 | */ |
| 202 | oneway getDataRegistrationStateResponse_1_5(RadioResponseInfo info, |
| 203 | RegStateResult dataRegResponse); |
Nathan Harold | 500733c | 2020-01-20 17:04:16 -0800 | [diff] [blame] | 204 | |
| 205 | /** |
| 206 | * This is identitcal to getCellInfoListResponse_1_4 but uses an updated version of CellInfo. |
| 207 | * |
| 208 | * @param info Response info struct containing response type, serial no. and error |
| 209 | * @param cellInfo List of current cell information known to radio |
| 210 | * |
| 211 | * Valid errors returned: |
| 212 | * RadioError:NONE |
| 213 | * RadioError:RADIO_NOT_AVAILABLE |
| 214 | * RadioError:INTERNAL_ERR |
| 215 | */ |
| 216 | oneway getCellInfoListResponse_1_5(RadioResponseInfo info, vec<CellInfo> cellInfo); |
Sarah Chin | 3efba53 | 2019-12-18 17:37:27 -0800 | [diff] [blame] | 217 | |
Sarah Chin | 3efba53 | 2019-12-18 17:37:27 -0800 | [diff] [blame] | 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 Tabassum | ba2f830 | 2019-12-10 14:35:09 +0530 | [diff] [blame] | 240 | |
| 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); |
Robert Greenwalt | d674835 | 2020-01-23 20:01:12 -0800 | [diff] [blame] | 271 | |
| 272 | /** |
| 273 | * @param info Response info struct contatining response type, serial no. and error |
Nazish Tabassum | 79f575e | 2019-12-13 02:19:39 +0530 | [diff] [blame] | 274 | * @param persoType SIM Personalisation type |
Robert Greenwalt | d674835 | 2020-01-23 20:01:12 -0800 | [diff] [blame] | 275 | * @param remainingRetries postiive values indicates number of retries remaining, |
| 276 | * must be equal to -1 if number of retries is infinite. |
Nazish Tabassum | 79f575e | 2019-12-13 02:19:39 +0530 | [diff] [blame] | 277 | * |
| 278 | * Valid errors returned: |
| 279 | * RadioError:NONE |
| 280 | * RadioError:RADIO_NOT_AVAILABLE |
| 281 | * RadioError:PASSWORD_INCORRECT (code is invalid) |
| 282 | * RadioError:NO_MEMORY |
| 283 | * RadioError:INVALID_SIM_STATE |
| 284 | * RadioError:INTERNAL_ERR |
| 285 | * RadioError:SYSTEM_ERR |
| 286 | * RadioError:MODEM_ERR |
| 287 | * RadioError:INVALID_ARGUMENTS |
| 288 | * RadioError:NO_RESOURCES |
| 289 | * RadioError:REQUEST_NOT_SUPPORTED |
| 290 | */ |
| 291 | oneway supplySimDepersonalizationResponse(RadioResponseInfo info, |
| 292 | PersoSubstate persoType, int32_t remainingRetries); |
Malcolm Chen | 360e1f9 | 2019-10-02 11:38:13 -0700 | [diff] [blame] | 293 | }; |