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; |
| 20 | import @1.6::RadioResponseInfo; |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 21 | import @1.5::IRadioResponse; |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 22 | import @1.6::SetupDataCallResult; |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 23 | |
| 24 | /** |
| 25 | * Interface declaring response functions to solicited radio requests. |
| 26 | */ |
| 27 | interface IRadioResponse extends @1.5::IRadioResponse { |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 28 | /** |
| 29 | * @param info Response info struct containing response type, serial no. and error |
Tim Lin | e29df60 | 2020-09-26 22:43:24 +0800 | [diff] [blame] | 30 | * |
| 31 | * Valid errors returned: |
| 32 | * RadioError:NONE |
| 33 | * RadioError:INTERNAL_ERR |
| 34 | * RadioError:INVALID_ARGUMENTS |
| 35 | * RadioError:RF_HARDWARE_ISSUE |
| 36 | * RadioError:NO_RF_CALIBRATION_INFO |
| 37 | */ |
| 38 | oneway setRadioPowerResponse_1_6(RadioResponseInfo info); |
| 39 | |
| 40 | /** |
| 41 | * @param info Response info struct containing response type, serial no. and error |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 42 | * @param dcResponse SetupDataCallResult defined in types.hal |
| 43 | * |
| 44 | * Valid errors returned: |
| 45 | * RadioError:NONE must be returned on both success and failure of setup with the |
| 46 | * DataCallResponse.status containing the actual status |
| 47 | * For all other errors the DataCallResponse is ignored. |
| 48 | * RadioError:RADIO_NOT_AVAILABLE |
| 49 | * RadioError:OP_NOT_ALLOWED_BEFORE_REG_TO_NW |
| 50 | * RadioError:OP_NOT_ALLOWED_DURING_VOICE_CALL |
| 51 | * RadioError:INVALID_ARGUMENTS |
| 52 | * RadioError:INTERNAL_ERR |
| 53 | * RadioError:NO_RESOURCES if the vendor is unable handle due to resources |
| 54 | * are full. |
| 55 | * RadioError:SIM_ABSENT |
| 56 | */ |
| 57 | oneway setupDataCallResponse_1_6(RadioResponseInfo info, SetupDataCallResult dcResponse); |
| 58 | |
| 59 | /** |
| 60 | * @param info Response info struct containing response type, serial no. and error |
| 61 | * @param dcResponse List of SetupDataCallResult as defined in types.hal |
| 62 | * |
| 63 | * Valid errors returned: |
| 64 | * RadioError:NONE |
| 65 | * RadioError:RADIO_NOT_AVAILABLE |
| 66 | * RadioError:INTERNAL_ERR |
| 67 | * RadioError:SIM_ABSENT |
| 68 | */ |
| 69 | oneway getDataCallListResponse_1_6(RadioResponseInfo info, vec<SetupDataCallResult> dcResponse); |
allenwtsu | 1c3dcd3 | 2020-09-25 17:58:01 +0800 | [diff] [blame] | 70 | |
| 71 | /** |
| 72 | * @param info Response info struct containing response type, serial no. and error |
| 73 | * @param sms Response to sms sent as defined by SendSmsResult in types.hal |
| 74 | * |
| 75 | * Valid errors returned: |
| 76 | * RadioError:NONE |
| 77 | * RadioError:RADIO_NOT_AVAILABLE |
| 78 | * RadioError:SMS_SEND_FAIL_RETRY |
| 79 | * RadioError:NETWORK_REJECT |
| 80 | * RadioError:INVALID_STATE |
| 81 | * RadioError:INVALID_ARGUMENTS |
| 82 | * RadioError:NO_MEMORY |
| 83 | * RadioError:REQUEST_RATE_LIMITED |
| 84 | * RadioError:INVALID_SMS_FORMAT |
| 85 | * RadioError:SYSTEM_ERR |
| 86 | * RadioError:ENCODING_ERR |
| 87 | * RadioError:INVALID_SMSC_ADDRESS |
| 88 | * RadioError:MODEM_ERR |
| 89 | * RadioError:NETWORK_ERR |
| 90 | * RadioError:INTERNAL_ERR |
| 91 | * RadioError:REQUEST_NOT_SUPPORTED |
| 92 | * RadioError:INVALID_MODEM_STATE |
| 93 | * RadioError:NETWORK_NOT_READY |
| 94 | * RadioError:OPERATION_NOT_ALLOWED |
| 95 | * RadioError:NO_RESOURCES |
| 96 | * RadioError:CANCELLED |
| 97 | * RadioError:SIM_ABSENT |
| 98 | * RadioError:ACCESS_BARRED |
| 99 | * RadioError:BLOCKED_DUE_TO_CALL |
| 100 | */ |
| 101 | oneway sendSmsResponse_1_6(RadioResponseInfo info, SendSmsResult sms); |
| 102 | |
| 103 | /** |
| 104 | * @param info Response info struct containing response type, serial no. and error |
| 105 | * @param sms Response to sms sent as defined by SendSmsResult in types.hal |
| 106 | * |
| 107 | * Valid errors returned: |
| 108 | * RadioError:NONE |
| 109 | * RadioError:RADIO_NOT_AVAILABLE |
| 110 | * RadioError:SMS_SEND_FAIL_RETRY |
| 111 | * RadioError:NETWORK_REJECT |
| 112 | * RadioError:INVALID_STATE |
| 113 | * RadioError:INVALID_ARGUMENTS |
| 114 | * RadioError:NO_MEMORY |
| 115 | * RadioError:REQUEST_RATE_LIMITED |
| 116 | * RadioError:INVALID_SMS_FORMAT |
| 117 | * RadioError:SYSTEM_ERR |
| 118 | * RadioError:FDN_CHECK_FAILURE |
| 119 | * RadioError:ENCODING_ERR |
| 120 | * RadioError:INVALID_SMSC_ADDRESS |
| 121 | * RadioError:MODEM_ERR |
| 122 | * RadioError:NETWORK_ERR |
| 123 | * RadioError:INTERNAL_ERR |
| 124 | * RadioError:REQUEST_NOT_SUPPORTED |
| 125 | * RadioError:INVALID_MODEM_STATE |
| 126 | * RadioError:NETWORK_NOT_READY |
| 127 | * RadioError:OPERATION_NOT_ALLOWED |
| 128 | * RadioError:NO_RESOURCES |
| 129 | * RadioError:CANCELLED |
| 130 | * RadioError:SIM_ABSENT |
| 131 | * RadioError:ACCESS_BARRED |
| 132 | * RadioError:BLOCKED_DUE_TO_CALL |
| 133 | */ |
| 134 | oneway sendSMSExpectMoreResponse_1_6(RadioResponseInfo info, SendSmsResult sms); |
| 135 | |
| 136 | /** |
| 137 | * @param info Response info struct containing response type, serial no. and error |
| 138 | * @param sms Sms result struct as defined by SendSmsResult in types.hal |
| 139 | * |
| 140 | * Valid errors returned: |
| 141 | * RadioError:NONE |
| 142 | * RadioError:RADIO_NOT_AVAILABLE |
| 143 | * RadioError:INVALID_ARGUMENTS |
| 144 | * RadioError:SMS_SEND_FAIL_RETRY |
| 145 | * RadioError:NETWORK_REJECT |
| 146 | * RadioError:INVALID_STATE |
| 147 | * RadioError:NO_MEMORY |
| 148 | * RadioError:REQUEST_RATE_LIMITED |
| 149 | * RadioError:INVALID_SMS_FORMAT |
| 150 | * RadioError:SYSTEM_ERR |
| 151 | * RadioError:FDN_CHECK_FAILURE |
| 152 | * RadioError:MODEM_ERR |
| 153 | * RadioError:NETWORK_ERR |
| 154 | * RadioError:ENCODING_ERR |
| 155 | * RadioError:INVALID_SMSC_ADDRESS |
| 156 | * RadioError:INTERNAL_ERR |
| 157 | * RadioError:SYSTEM_ERR |
| 158 | * RadioError:REQUEST_NOT_SUPPORTED |
| 159 | * RadioError:OPERATION_NOT_ALLOWED |
| 160 | * RadioError:ENCODING_ERR |
| 161 | * RadioError:NO_RESOURCES |
| 162 | * RadioError:CANCELLED |
| 163 | * RadioError:SIM_ABSENT |
| 164 | * RadioError:SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED |
| 165 | * RadioError:ACCESS_BARRED |
| 166 | * RadioError:BLOCKED_DUE_TO_CALL |
| 167 | */ |
| 168 | oneway sendCdmaSmsResponse_1_6(RadioResponseInfo info, SendSmsResult sms); |
| 169 | |
| 170 | /** |
| 171 | * @param info Response info struct containing response type, serial no. and error |
| 172 | * @param sms Response to sms sent as defined by SendSmsResult in types.hal |
| 173 | * |
| 174 | * Valid errors returned: |
| 175 | * RadioError:NONE |
| 176 | * RadioError:RADIO_NOT_AVAILABLE |
| 177 | * RadioError:SMS_SEND_FAIL_RETRY |
| 178 | * RadioError:NETWORK_REJECT |
| 179 | * RadioError:INVALID_STATE |
| 180 | * RadioError:INVALID_ARGUMENTS |
| 181 | * RadioError:NO_MEMORY |
| 182 | * RadioError:REQUEST_RATE_LIMITED |
| 183 | * RadioError:INVALID_SMS_FORMAT |
| 184 | * RadioError:SYSTEM_ERR |
| 185 | * RadioError:FDN_CHECK_FAILURE |
| 186 | * RadioError:ENCODING_ERR |
| 187 | * RadioError:INVALID_SMSC_ADDRESS |
| 188 | * RadioError:MODEM_ERR |
| 189 | * RadioError:NETWORK_ERR |
| 190 | * RadioError:INTERNAL_ERR |
| 191 | * RadioError:REQUEST_NOT_SUPPORTED |
| 192 | * RadioError:INVALID_MODEM_STATE |
| 193 | * RadioError:NETWORK_NOT_READY |
| 194 | * RadioError:OPERATION_NOT_ALLOWED |
| 195 | * RadioError:NO_RESOURCES |
| 196 | * RadioError:CANCELLED |
| 197 | * RadioError:SIM_ABSENT |
| 198 | * RadioError:SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWED |
| 199 | * RadioError:ACCESS_BARRED |
| 200 | * RadioError:BLOCKED_DUE_TO_CALL |
| 201 | */ |
| 202 | oneway sendCdmaSmsExpectMoreResponse_1_6(RadioResponseInfo info, SendSmsResult sms); |
Sooraj Sasindran | a9d461b | 2020-08-14 11:00:11 -0700 | [diff] [blame] | 203 | |
| 204 | /** |
| 205 | * @param info Response info struct containing response type, serial no. and error |
| 206 | * |
| 207 | * Valid errors returned: |
| 208 | * RadioError:NONE |
| 209 | * RadioError:RADIO_NOT_AVAILABLE |
| 210 | * RadioError:INTERNAL_ERR |
| 211 | */ |
| 212 | oneway enableNrDualConnectivityResponse(RadioResponseInfo info); |
| 213 | |
| 214 | /** |
| 215 | * @param info Response info struct containing response type, serial no. and error |
| 216 | * |
| 217 | * @param isEnabled Indicates whether NR dual connectivity is enabled or not, True if enabled |
| 218 | * else false. |
| 219 | * Valid errors returned: |
| 220 | * RadioError:NONE |
| 221 | * RadioError:RADIO_NOT_AVAILABLE |
| 222 | * RadioError:INTERNAL_ERR |
| 223 | */ |
| 224 | oneway isNrDualConnectivityEnabledResponse(RadioResponseInfo info, bool isEnabled); |
Daniel Bright | 15cc34a | 2020-10-26 11:34:53 -0700 | [diff] [blame^] | 225 | |
| 226 | /** |
| 227 | * @param info Response info struct containing response type, serial no. and error |
| 228 | * @param id The allocated id. On an error, this is set to -1 |
| 229 | * |
| 230 | * Valid errors returned: |
| 231 | * RadioError:NONE |
| 232 | * RadioError:RADIO_NOT_AVAILABLE |
| 233 | * RadioError:INTERNAL_ERR |
| 234 | * RadioError:NO_RESOURCES- Indicates that no pdu session ids are available |
| 235 | * RadioError:REQUEST_NOT_SUPPORTED |
| 236 | */ |
| 237 | oneway allocatePduSessionIdResponse(RadioResponseInfo info, int32_t id); |
| 238 | |
| 239 | /** |
| 240 | * @param info Response info struct containing response type, serial no. and error |
| 241 | * |
| 242 | * Valid errors returned: |
| 243 | * RadioError:NONE |
| 244 | * RadioError:RADIO_NOT_AVAILABLE |
| 245 | * RadioError:INTERNAL_ERR |
| 246 | * RadioError:NO_RESOURCES |
| 247 | * RadioError:REQUEST_NOT_SUPPORTED |
| 248 | */ |
| 249 | oneway releasePduSessionIdResponse(RadioResponseInfo info); |
| 250 | |
| 251 | /** |
| 252 | * @param info Response info struct containing response type, serial no. and error |
| 253 | * |
| 254 | * Valid errors returned: |
| 255 | * RadioError:NONE |
| 256 | * RadioError:RADIO_NOT_AVAILABLE |
| 257 | * RadioError:INTERNAL_ERR |
| 258 | * RadioError:NO_RESOURCES |
| 259 | * RadioError:REQUEST_NOT_SUPPORTED |
| 260 | * RadioError:INVALID_CALL_ID |
| 261 | */ |
| 262 | oneway beginHandoverResponse(RadioResponseInfo info); |
| 263 | |
| 264 | /** |
| 265 | * @param info Response info struct containing response type, serial no. and error |
| 266 | * @param dcResponse Attributes of data call |
| 267 | * |
| 268 | * Valid errors returned: |
| 269 | * RadioError:NONE |
| 270 | * RadioError:RADIO_NOT_AVAILABLE |
| 271 | * RadioError:INTERNAL_ERR |
| 272 | * RadioError:NO_RESOURCES |
| 273 | * RadioError:REQUEST_NOT_SUPPORTED |
| 274 | * RadioError:INVALID_CALL_ID |
| 275 | */ |
| 276 | oneway cancelHandoverResponse(RadioResponseInfo info); |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 277 | }; |