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 | |
| 20 | import @1.0::CdmaSmsMessage; |
Shuo Qian | 3f86533 | 2021-02-02 00:05:42 +0000 | [diff] [blame] | 21 | import @1.0::Dial; |
allenwtsu | 1c3dcd3 | 2020-09-25 17:58:01 +0800 | [diff] [blame] | 22 | import @1.0::GsmSmsMessage; |
Jordan Liu | e4f5f02 | 2020-10-21 16:28:40 -0700 | [diff] [blame] | 23 | import @1.1::CardPowerState; |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 24 | import @1.2::DataRequestReason; |
Shuo Qian | 3f86533 | 2021-02-02 00:05:42 +0000 | [diff] [blame] | 25 | import @1.4::EmergencyCallRouting; |
| 26 | import @1.4::EmergencyServiceCategory; |
Thiébaud Weksteen | 5ae16f3 | 2020-08-21 16:46:07 +0200 | [diff] [blame] | 27 | import @1.4::RadioAccessFamily; |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 28 | import @1.5::IRadio; |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 29 | import @1.5::AccessNetwork; |
| 30 | import @1.5::DataProfileInfo; |
| 31 | import @1.5::LinkAddress; |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 32 | |
| 33 | /** |
| 34 | * This interface is used by telephony and telecom to talk to cellular radio. |
| 35 | * All the functions have minimum one parameter: |
| 36 | * serial: which corresponds to serial no. of request. Serial numbers must only be memorized for the |
| 37 | * duration of a method call. If clients provide colliding serials (including passing the same |
| 38 | * serial to different methods), multiple responses (one for each method call) must still be served. |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 39 | * setResponseFunctions must work with @1.6::IRadioResponse and @1.6::IRadioIndication. |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 40 | */ |
| 41 | interface IRadio extends @1.5::IRadio { |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 42 | /** |
Tim Lin | e29df60 | 2020-09-26 22:43:24 +0800 | [diff] [blame] | 43 | * Toggle radio on and off (for "airplane" mode) |
| 44 | * If the radio is turned off/on the radio modem subsystem |
| 45 | * is expected return to an initialized state. For instance, |
| 46 | * any voice and data calls must be terminated and all associated |
| 47 | * lists emptied. |
| 48 | * |
| 49 | * When setting radio power on to exit from airplane mode to place an emergency call on this |
| 50 | * logical modem, powerOn, forEmergencyCall and preferredForEmergencyCall must be true. In |
| 51 | * this case, this modem is optimized to scan only emergency call bands, until: |
| 52 | * 1) Emergency call is completed; or |
| 53 | * 2) Another setRadioPower_1_5 is issued with forEmergencyCall being false or |
| 54 | * preferredForEmergencyCall being false; or |
| 55 | * 3) Timeout after 30 seconds if dial or emergencyDial is not called. |
| 56 | * Once one of these conditions is reached, the modem should move into normal operation. |
| 57 | * |
| 58 | * @param serial Serial number of request. |
| 59 | * @param powerOn To turn on radio -> on = true, to turn off radio -> on = false. |
| 60 | * @param forEmergencyCall To indication to radio if this request is due to emergency call. |
| 61 | * No effect if powerOn is false. |
| 62 | * @param preferredForEmergencyCall indicate whether the following emergency call will be sent |
| 63 | * on this modem or not. No effect if forEmergencyCall is false, or powerOn is false. |
| 64 | * |
| 65 | * Response callback is IRadioConfigResponse. setRadioPowerResponse_1_6. |
| 66 | |
| 67 | * Note this API is the same as the 1.5 |
| 68 | */ |
| 69 | oneway setRadioPower_1_6(int32_t serial, bool powerOn, bool forEmergencyCall, |
| 70 | bool preferredForEmergencyCall); |
| 71 | |
| 72 | /** |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 73 | * Returns the data call list. An entry is added when a setupDataCall() is issued and removed |
| 74 | * on a deactivateDataCall(). The list is emptied when setRadioPower() off/on issued or when |
| 75 | * the vendor HAL or modem crashes. |
| 76 | * |
| 77 | * @param serial Serial number of request. |
| 78 | * |
| 79 | * Response function is IRadioResponse.getDataCallListResponse_1_6() |
| 80 | */ |
| 81 | oneway getDataCallList_1_6(int32_t serial); |
| 82 | |
| 83 | /** |
| 84 | * Setup a packet data connection. If DataCallResponse.status returns DataCallFailCause:NONE, |
| 85 | * the data connection must be added to data calls and a unsolDataCallListChanged() must be |
| 86 | * sent. The call remains until removed by subsequent unsolDataCallIstChanged(). It may be |
| 87 | * lost due to many factors, including deactivateDataCall() being issued, the radio powered |
| 88 | * off, reception lost or even transient factors like congestion. This data call list is |
| 89 | * returned by getDataCallList() and dataCallListChanged(). |
| 90 | * |
| 91 | * The Radio is expected to: |
| 92 | * - Create one data call context. |
| 93 | * - Create and configure a dedicated interface for the context. |
| 94 | * - The interface must be point to point. |
| 95 | * - The interface is configured with one or more addresses and is capable of sending and |
| 96 | * receiving packets. The format is IP address with optional "/" prefix length |
| 97 | * (The format is defined in RFC-4291 section 2.3). For example, "192.0.1.3", |
| 98 | * "192.0.1.11/16", or "2001:db8::1/64". Typically one IPv4 or one IPv6 or one of each. If |
| 99 | * the prefix length is absent, then the addresses are assumed to be point to point with |
| 100 | * IPv4 with prefix length 32 or IPv6 with prefix length 128. |
| 101 | * - Must not modify routing configuration related to this interface; routing management is |
| 102 | * exclusively within the purview of the Android OS. |
| 103 | * - Support simultaneous data call contexts up to DataRegStateResult.maxDataCalls specified |
| 104 | * in the response of getDataRegistrationState. |
| 105 | * |
| 106 | * @param serial Serial number of request. |
| 107 | * @param accessNetwork The access network to setup the data call. If the data connection cannot |
| 108 | * be established on the specified access network then it should be responded with an error. |
| 109 | * @param dataProfileInfo Data profile info. |
| 110 | * @param roamingAllowed Indicates whether or not data roaming is allowed by the user. |
| 111 | * @param reason The request reason. Must be DataRequestReason:NORMAL or |
| 112 | * DataRequestReason:HANDOVER. |
| 113 | * @param addresses If the reason is DataRequestReason:HANDOVER, this indicates the list of link |
| 114 | * addresses of the existing data connection. This parameter must be ignored unless reason |
| 115 | * is DataRequestReason:HANDOVER. |
| 116 | * @param dnses If the reason is DataRequestReason:HANDOVER, this indicates the list of DNS |
| 117 | * addresses of the existing data connection. The format is defined in RFC-4291 section 2.2. |
| 118 | * For example, "192.0.1.3" or "2001:db8::1". This parameter must be ignored unless reason |
| 119 | * is DataRequestReason:HANDOVER. |
Daniel Bright | 3c72fba | 2020-11-03 14:56:23 -0800 | [diff] [blame] | 120 | * @param pduSessionId The pdu session id to be used for this data call. A value of 0 means |
| 121 | * no pdu session id was attached to this call. |
| 122 | * Reference: 3GPP TS 24.007 section 11.2.3.1b |
Daniel Bright | 8e3a2bf | 2020-12-14 12:51:08 -0800 | [diff] [blame] | 123 | * @param sliceInfo SliceInfo to be used for the data connection when a handover occurs from |
| 124 | * EPDG to 5G. It is valid only when accessNetwork is AccessNetwork:NGRAN. If the slice |
| 125 | * passed from EPDG is rejected, then the data failure cause must be DataCallFailCause:SLICE_REJECTED. |
Jayachandran C | 9bc276b | 2020-07-24 00:46:58 -0700 | [diff] [blame] | 126 | * |
| 127 | * Response function is IRadioResponse.setupDataCallResponse_1_6() |
| 128 | * |
| 129 | * Note this API is the same as the 1.5 |
| 130 | */ |
| 131 | oneway setupDataCall_1_6(int32_t serial, AccessNetwork accessNetwork, |
| 132 | DataProfileInfo dataProfileInfo, bool roamingAllowed, |
Daniel Bright | 3c72fba | 2020-11-03 14:56:23 -0800 | [diff] [blame] | 133 | DataRequestReason reason, vec<LinkAddress> addresses, vec<string> dnses, |
Daniel Bright | 8e3a2bf | 2020-12-14 12:51:08 -0800 | [diff] [blame] | 134 | int32_t pduSessionId, OptionalSliceInfo sliceInfo); |
allenwtsu | 1c3dcd3 | 2020-09-25 17:58:01 +0800 | [diff] [blame] | 135 | |
| 136 | /** |
| 137 | * Send an SMS message |
| 138 | * |
| 139 | * @param serial Serial number of request. |
| 140 | * @param message GsmSmsMessage as defined in types.hal |
| 141 | * |
| 142 | * Response function is IRadioResponse.sendSmsResponse_1_6() |
| 143 | * |
| 144 | * Note this API is the same as the 1.0 |
| 145 | * |
| 146 | * Based on the return error, caller decides to resend if sending sms |
| 147 | * fails. RadioError:SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332) |
| 148 | * and RadioError:GENERIC_FAILURE means no retry (i.e. error cause is 500) |
| 149 | */ |
| 150 | oneway sendSms_1_6(int32_t serial, GsmSmsMessage message); |
| 151 | |
| 152 | /** |
| 153 | * Send an SMS message. Identical to sendSms_1_6, |
| 154 | * except that more messages are expected to be sent soon. If possible, |
| 155 | * keep SMS relay protocol link open (eg TS 27.005 AT+CMMS command) |
| 156 | * |
| 157 | * @param serial Serial number of request. |
| 158 | * @param message GsmSmsMessage as defined in types.hal |
| 159 | * |
| 160 | * Response function is IRadioResponse.sendSMSExpectMoreResponse_1_6() |
| 161 | * |
| 162 | * Note this API is the same as the 1.0 |
| 163 | * |
| 164 | * Based on the return error, caller decides to resend if sending sms |
| 165 | * fails. RadioError:SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332) |
| 166 | * and RadioError:GENERIC_FAILURE means no retry (i.e. error cause is 500) |
| 167 | */ |
| 168 | oneway sendSMSExpectMore_1_6(int32_t serial, GsmSmsMessage message); |
| 169 | |
| 170 | /** |
| 171 | * Send a CDMA SMS message |
| 172 | * |
| 173 | * @param serial Serial number of request. |
| 174 | * @param sms Cdma Sms to be sent described by CdmaSmsMessage in types.hal |
| 175 | * |
| 176 | * Response callback is IRadioResponse.sendCdmaSmsResponse_1_6() |
| 177 | * |
| 178 | * Note this API is the same as the 1.0 |
| 179 | * |
| 180 | */ |
| 181 | oneway sendCdmaSms_1_6(int32_t serial, CdmaSmsMessage sms); |
| 182 | |
| 183 | /** |
| 184 | * Send an SMS message. Identical to sendCdmaSms_1_6, |
| 185 | * except that more messages are expected to be sent soon. |
| 186 | * |
| 187 | * @param serial Serial number of request. |
| 188 | * @param sms Cdma Sms to be sent described by CdmaSmsMessage in types.hal |
| 189 | * |
| 190 | * Response callback is IRadioResponse.sendCdmaSMSExpectMoreResponse_1_6() |
| 191 | * |
| 192 | * Note this API is the same as the 1.5 |
| 193 | * |
| 194 | */ |
| 195 | oneway sendCdmaSmsExpectMore_1_6(int32_t serial, CdmaSmsMessage sms); |
Sooraj Sasindran | a9d461b | 2020-08-14 11:00:11 -0700 | [diff] [blame] | 196 | |
| 197 | /** |
Jordan Liu | e4f5f02 | 2020-10-21 16:28:40 -0700 | [diff] [blame] | 198 | * Set SIM card power state. |
| 199 | * Request is used to power off or power on the card. It should not generate |
| 200 | * a CardState.CARDSTATE_ABSENT indication, since the SIM is still physically |
| 201 | * inserted. |
| 202 | * |
| 203 | * @param serial Serial number of request |
| 204 | * @param powerUp POWER_DOWN if powering down the SIM card, |
| 205 | * POWER_UP if powering up the SIM card, |
| 206 | * POWER_UP_PASS_THROUGH if powering up the SIM card in |
| 207 | * pass through mode. |
| 208 | * |
| 209 | * When SIM card is in POWER_UP_PASS_THROUGH, the modem does not send |
| 210 | * any command to it (for example SELECT of MF, or TERMINAL |
| 211 | * CAPABILITY), and the SIM card is controlled completely by Telephony |
| 212 | * sending APDUs directly. The SIM card state must be |
| 213 | * RIL_CARDSTATE_PRESENT and the number of card apps will be 0. |
| 214 | * No new error code is generated. Emergency calls are supported in |
| 215 | * the same way as if the SIM card is absent. |
| 216 | * Pass-through mode is valid only for the specific card session where |
| 217 | * it is activated, and normal behavior occurs at the next SIM |
| 218 | * initialization, unless POWER_UP_PASS_THROUGH is requested again. |
| 219 | * |
| 220 | * The device is required to power down the SIM card before it can |
| 221 | * switch the mode between POWER_UP and POWER_UP_PASS_THROUGH. |
| 222 | * At device power up, the SIM interface is powered up automatically. |
| 223 | * Each subsequent request to this method is processed only after the |
| 224 | * completion of the previous one. |
| 225 | * |
Jordan Liu | 8ca952e | 2020-11-09 15:47:21 -0800 | [diff] [blame] | 226 | * When the SIM is in POWER_DOWN, the modem should send an empty vector of |
| 227 | * AppStatus in CardStatus.applications. If a SIM in the POWER_DOWN state |
| 228 | * is removed and a new SIM is inserted, the new SIM should be in POWER_UP |
| 229 | * mode by default. If the device is turned off or restarted while the SIM |
| 230 | * is in POWER_DOWN, then the SIM should turn on normally in POWER_UP mode |
| 231 | * when the device turns back on. |
| 232 | * |
Jordan Liu | e4f5f02 | 2020-10-21 16:28:40 -0700 | [diff] [blame] | 233 | * Response callback is IRadioResponse.setSimCardPowerResponse_1_6(). |
| 234 | * Note that this differs from setSimCardPower_1_1 in that the response |
| 235 | * callback should only be sent once the device has finished executing |
| 236 | * the request (the SIM has finished powering on or off). |
| 237 | */ |
| 238 | oneway setSimCardPower_1_6(int32_t serial, CardPowerState powerUp); |
| 239 | |
| 240 | /** |
Sooraj Sasindran | a9d461b | 2020-08-14 11:00:11 -0700 | [diff] [blame] | 241 | * Enable or disable E-UTRA-NR dual connectivity. If disabled then UE will not connect |
| 242 | * to secondary carrier. |
| 243 | * |
| 244 | * @param serial Serial number of request. |
| 245 | * @param nrDualConnectivityState expected NR dual connectivity state. |
| 246 | * 1. Enable NR dual connectivity {NrDualConnectivityState:ENABLE} |
| 247 | * 2. Disable NR dual connectivity {NrDualConnectivityState:DISABLE} |
| 248 | * 3. Disable NR dual connectivity and force secondary cell to be released |
| 249 | * {NrDualConnectivityState:DISABLE_IMMEDIATE} |
| 250 | |
Sooraj Sasindran | e9525fd | 2020-11-03 20:46:57 -0800 | [diff] [blame] | 251 | * Response callback is IRadioResponse.setNRDualConnectivityStateResponse() |
Sooraj Sasindran | a9d461b | 2020-08-14 11:00:11 -0700 | [diff] [blame] | 252 | */ |
Sooraj Sasindran | e9525fd | 2020-11-03 20:46:57 -0800 | [diff] [blame] | 253 | oneway setNrDualConnectivityState(int32_t serial, |
Sooraj Sasindran | a9d461b | 2020-08-14 11:00:11 -0700 | [diff] [blame] | 254 | NrDualConnectivityState nrDualConnectivityState); |
| 255 | |
| 256 | /** |
| 257 | * Is E-UTRA-NR Dual Connectivity enabled |
| 258 | * |
| 259 | * @param serial Serial number of request. |
| 260 | * Response callback is IRadioResponse.isNRDualConnectivityEnabledResponse() |
| 261 | */ |
| 262 | oneway isNrDualConnectivityEnabled(int32_t serial); |
Daniel Bright | 15cc34a | 2020-10-26 11:34:53 -0700 | [diff] [blame] | 263 | |
| 264 | /** |
| 265 | * Reserves an unallocated pdu session id from the pool of ids. |
| 266 | * |
| 267 | * The allocated id is returned in the response. |
| 268 | * |
| 269 | * When the id is no longer needed, call releasePduSessionId to |
| 270 | * return it to the pool. |
| 271 | * |
| 272 | * Reference: 3GPP TS 24.007 section 11.2.3.1b |
| 273 | * |
| 274 | * @param serial Serial number of request. |
| 275 | * |
| 276 | * Response function is IRadioResponse.allocatePduSessionIdResponse() |
| 277 | */ |
| 278 | oneway allocatePduSessionId(int32_t serial); |
| 279 | |
| 280 | /** |
| 281 | * Releases a pdu session id that was previously allocated using |
| 282 | * allocatePduSessionId. |
| 283 | * |
| 284 | * Reference: 3GPP TS 24.007 section 11.2.3.1b |
| 285 | * @param serial Serial number of request. |
| 286 | * @param id Pdu session id to release. |
| 287 | * |
| 288 | * Response function is IRadioResponse.releasePduSessionIdResponse() |
| 289 | */ |
| 290 | oneway releasePduSessionId(int32_t serial, int32_t id); |
| 291 | |
| 292 | /** |
| 293 | * Indicates that a handover to the IWLAN transport has begun. |
| 294 | * |
| 295 | * Any resources being transferred to the IWlan transport cannot be released while a |
| 296 | * handover is underway. For example, if a pdu session id needs to be |
| 297 | * transferred to IWlan, then, the modem should not release the id while |
| 298 | * the handover is in progress. |
| 299 | * |
| 300 | * If a handover was unsuccessful, then the framework calls IRadio::cancelHandover. |
| 301 | * The modem retains ownership over any of the resources being transferred to IWlan. |
| 302 | * |
| 303 | * If a handover was successful, the framework calls IRadio::deactivateDataCall with reason |
| 304 | * HANDOVER. The IWlan transport now owns the transferred resources and is responsible for |
| 305 | * releasing them. |
| 306 | * |
| 307 | * @param serial Serial number of request. |
| 308 | * @param id callId The identifier of the data call which is provided in SetupDataCallResult |
| 309 | * |
Daniel Bright | 3c72fba | 2020-11-03 14:56:23 -0800 | [diff] [blame] | 310 | * Response function is IRadioResponse.startHandoverResponse() |
Daniel Bright | 15cc34a | 2020-10-26 11:34:53 -0700 | [diff] [blame] | 311 | */ |
Daniel Bright | 3c72fba | 2020-11-03 14:56:23 -0800 | [diff] [blame] | 312 | oneway startHandover(int32_t serial, int32_t callId); |
Daniel Bright | 15cc34a | 2020-10-26 11:34:53 -0700 | [diff] [blame] | 313 | |
| 314 | /** |
Daniel Bright | 3c72fba | 2020-11-03 14:56:23 -0800 | [diff] [blame] | 315 | * Indicates that a handover was cancelled after a call to IRadio::startHandover. |
Daniel Bright | 15cc34a | 2020-10-26 11:34:53 -0700 | [diff] [blame] | 316 | * |
| 317 | * Since the handover was unsuccessful, the modem retains ownership over any of the resources |
| 318 | * being transferred and is still responsible for releasing them. |
| 319 | * |
| 320 | * @param serial Serial number of request. |
| 321 | * @param id callId The identifier of the data call which is provided in SetupDataCallResult |
| 322 | * |
| 323 | * Response function is IRadioResponse.cancelHandoverResponse() |
| 324 | */ |
| 325 | oneway cancelHandover(int32_t serial, int32_t callId); |
Thiébaud Weksteen | 5ae16f3 | 2020-08-21 16:46:07 +0200 | [diff] [blame] | 326 | |
| 327 | /** |
| 328 | * Requests to set the network type for searching and registering. |
| 329 | * |
| 330 | * Instruct the radio to *only* accept the types of network provided. This |
| 331 | * is stronger than setPreferredNetworkType which is a suggestion. |
| 332 | * |
| 333 | * @param serial Serial number of request. |
| 334 | * @param networkTypeBitmap a 32-bit bearer bitmap of RadioAccessFamily |
| 335 | * |
Yomna Nasser | e8bfa9c | 2020-11-17 22:00:55 +0000 | [diff] [blame] | 336 | * Response callback is IRadioResponse.setNetworkTypeBitmapResponse() |
Thiébaud Weksteen | 5ae16f3 | 2020-08-21 16:46:07 +0200 | [diff] [blame] | 337 | */ |
| 338 | oneway setAllowedNetworkTypeBitmap( |
| 339 | uint32_t serial, bitfield<RadioAccessFamily> networkTypeBitmap); |
Jack Nudelman | 5cd9414 | 2020-09-24 14:23:35 -0700 | [diff] [blame] | 340 | |
| 341 | /** |
Yomna Nasser | e8bfa9c | 2020-11-17 22:00:55 +0000 | [diff] [blame] | 342 | * Requests bitmap representing the currently allowed network types. |
| 343 | * |
| 344 | * Requests the bitmap set by the corresponding method |
| 345 | * setAllowedNetworkTypeBitmap, which sets a strict set of RATs for the |
| 346 | * radio to use. Differs from getPreferredNetworkType and getPreferredNetworkTypeBitmap |
| 347 | * in that those request *preferences*. |
| 348 | * |
| 349 | * @param serial Serial number of request. |
| 350 | * |
| 351 | * Response callback is IRadioResponse.getNetworkTypeBitmapResponse() |
| 352 | */ |
| 353 | oneway getAllowedNetworkTypeBitmap(uint32_t serial); |
| 354 | |
| 355 | /** |
Jack Nudelman | 5cd9414 | 2020-09-24 14:23:35 -0700 | [diff] [blame] | 356 | * Control data throttling at modem. |
| 357 | * - DataThrottlingAction:NO_DATA_THROTTLING should clear any existing |
| 358 | * data throttling within the requested completion window. |
| 359 | * - DataThrottlingAction:THROTTLE_SECONDARY_CARRIER: Remove any existing |
| 360 | * throttling on anchor carrier and achieve maximum data throttling on |
| 361 | * secondary carrier within the requested completion window. |
| 362 | * - DataThrottlingAction:THROTTLE_ANCHOR_CARRIER: disable secondary |
| 363 | * carrier and achieve maximum data throttling on anchor carrier by |
| 364 | * requested completion window. |
| 365 | * - DataThrottlingAction:HOLD: Immediately hold on to current level of |
| 366 | * throttling. |
| 367 | * |
| 368 | * @param serial Serial number of request. |
| 369 | * @param dataThrottlingAction DataThrottlingAction as defined in types.hal |
Jack Nudelman | 3f76554 | 2020-11-18 16:21:06 -0800 | [diff] [blame] | 370 | * @param completionDurationMillis window, in milliseconds, in which the |
| 371 | * requested throttling action has to be achieved. This must be 0 when |
Jack Nudelman | 5cd9414 | 2020-09-24 14:23:35 -0700 | [diff] [blame] | 372 | * dataThrottlingAction is DataThrottlingAction:HOLD. |
| 373 | * |
| 374 | * Response function is IRadioResponse.setDataThrottlingResponse() |
| 375 | */ |
| 376 | oneway setDataThrottling(int32_t serial, |
| 377 | DataThrottlingAction dataThrottlingAction, |
Jack Nudelman | 3f76554 | 2020-11-18 16:21:06 -0800 | [diff] [blame] | 378 | int64_t completionDurationMillis); |
Sarah Chin | f69abcf | 2020-11-18 13:40:15 -0800 | [diff] [blame] | 379 | |
| 380 | /** |
Shuo Qian | 3f86533 | 2021-02-02 00:05:42 +0000 | [diff] [blame] | 381 | * Initiate emergency voice call, with zero or more emergency service category(s), zero or |
| 382 | * more emergency Uniform Resource Names (URN), and routing information for handling the call. |
| 383 | * Android uses this request to make its emergency call instead of using @1.0::IRadio.dial |
| 384 | * if the 'address' in the 'dialInfo' field is identified as an emergency number by Android. |
| 385 | * |
| 386 | * In multi-sim scenario, if the emergency number is from a specific subscription, this radio |
| 387 | * request can still be sent out on the other subscription as long as routing is set to |
| 388 | * @1.4::EmergencyNumberRouting#EMERGENCY. This radio request will not be sent on an inactive |
| 389 | * (PIN/PUK locked) subscription unless both subscriptions are PIN/PUK locked. In this case, |
| 390 | * the request will be sent on the primary subscription. |
| 391 | * |
| 392 | * Some countries or carriers require some emergency numbers that must be handled with normal |
| 393 | * call routing if possible or emergency routing. 1) if the 'routing' field is specified as |
| 394 | * @1.4::EmergencyNumberRouting#NORMAL, the implementation must try the full radio service to |
| 395 | * use normal call routing to handle the call; if service cannot support normal routing, the |
| 396 | * implementation must use emergency routing to handle the call. 2) if 'routing' is specified |
| 397 | * as @1.4::EmergencyNumberRouting#EMERGENCY, the implementation must use emergency routing to |
| 398 | * handle the call. 3) if 'routing' is specified as @1.4::EmergencyNumberRouting#UNKNOWN, |
| 399 | * Android does not know how to handle the call. |
| 400 | * |
| 401 | * If the dialed emergency number does not have a specified emergency service category, the |
| 402 | * 'categories' field is set to @1.4::EmergencyServiceCategory#UNSPECIFIED; if the dialed |
| 403 | * emergency number does not have specified emergency Uniform Resource Names, the 'urns' field |
| 404 | * is set to an empty list. If the underlying technology used to request emergency services |
| 405 | * does not support the emergency service category or emergency uniform resource names, the |
| 406 | * field 'categories' or 'urns' may be ignored. |
| 407 | * |
| 408 | * In the scenarios that the 'address' in the 'dialInfo' field has other functions besides the |
| 409 | * emergency number function, if the 'hasKnownUserIntentEmergency' field is true, the user's |
| 410 | * intent for this dial request is emergency call, and the modem must treat this as an actual |
| 411 | * emergency dial; if the 'hasKnownUserIntentEmergency' field is false, Android does not know |
| 412 | * user's intent for this call. |
| 413 | * |
| 414 | * If 'isTesting' is true, this request is for testing purpose, and must not be sent to a real |
| 415 | * emergency service; otherwise it's for a real emergency call request. |
| 416 | * |
| 417 | * Reference: 3gpp 22.101, Section 10 - Emergency Calls; |
| 418 | * 3gpp 23.167, Section 6 - Functional description; |
| 419 | * 3gpp 24.503, Section 5.1.6.8.1 - General; |
| 420 | * RFC 5031 |
| 421 | * |
| 422 | * @param serial Serial number of request. |
| 423 | * @param dialInfo the same @1.0::Dial information used by @1.0::IRadio.dial. |
| 424 | * @param categories bitfield<@1.4::EmergencyServiceCategory> the Emergency Service Category(s) |
| 425 | * of the call. |
| 426 | * @param urns the emergency Uniform Resource Names (URN) |
| 427 | * @param routing @1.4::EmergencyCallRouting the emergency call routing information. |
| 428 | * @param hasKnownUserIntentEmergency Flag indicating if user's intent for the emergency call |
| 429 | * is known. |
| 430 | * @param isTesting Flag indicating if this request is for testing purpose. |
| 431 | * |
| 432 | * Response function is IRadioResponse.emergencyDialResponse() |
| 433 | */ |
| 434 | oneway emergencyDial_1_6(int32_t serial, Dial dialInfo, |
| 435 | bitfield<EmergencyServiceCategory> categories, vec<string> urns, |
| 436 | EmergencyCallRouting routing, bool hasKnownUserIntentEmergency, bool isTesting); |
| 437 | |
| 438 | /** |
Sarah Chin | f69abcf | 2020-11-18 13:40:15 -0800 | [diff] [blame] | 439 | * Get which bands the modem's background scan is acting on. |
| 440 | * |
| 441 | * @param serial Serial number of request. |
| 442 | * |
| 443 | * Response callback is IRadioResponse.getSystemSelectionChannelsResponse() |
| 444 | */ |
| 445 | oneway getSystemSelectionChannels(int32_t serial); |
Hui Wang | fb20250 | 2020-11-13 04:30:18 +0000 | [diff] [blame] | 446 | |
Mingming Cai | da0d983 | 2020-11-05 17:56:57 -0800 | [diff] [blame] | 447 | /** |
| 448 | * Request all of the current cell information known to the radio. The radio |
| 449 | * must return list of all current cells, including the neighboring cells. If for a particular |
| 450 | * cell information isn't known then the appropriate unknown value will be returned. |
| 451 | * This does not cause or change the rate of unsolicited cellInfoList(). |
| 452 | * |
| 453 | * This is identitcal to getCellInfoList in V1.0, but it requests updated version of CellInfo. |
| 454 | * |
| 455 | * @param serial Serial number of request. |
| 456 | * |
| 457 | * Response callback is IRadioResponse.getCellInfoListResponse() |
| 458 | */ |
| 459 | oneway getCellInfoList_1_6(int32_t serial); |
| 460 | |
Hui Wang | fb20250 | 2020-11-13 04:30:18 +0000 | [diff] [blame] | 461 | /** |
| 462 | * Request current voice registration state. |
| 463 | * |
| 464 | * @param serial Serial number of request. |
| 465 | * |
| 466 | * Response function is IRadioResponse.getVoiceRegistrationStateResponse_1_6() |
| 467 | */ |
| 468 | oneway getVoiceRegistrationState_1_6(int32_t serial); |
| 469 | |
| 470 | /** |
Mingming Cai | 20a2f42 | 2020-12-03 12:18:48 -0800 | [diff] [blame] | 471 | * Requests current signal strength and associated information. Must succeed if radio is on. |
| 472 | * |
| 473 | * @param serial Serial number of request. |
| 474 | * |
| 475 | * Response function is IRadioResponse.getSignalStrengthResponse_1_6() |
| 476 | */ |
| 477 | oneway getSignalStrength_1_6(int32_t serial); |
| 478 | |
| 479 | /** |
Hui Wang | fb20250 | 2020-11-13 04:30:18 +0000 | [diff] [blame] | 480 | * Request current data registration state. |
| 481 | * |
| 482 | * @param serial Serial number of request. |
| 483 | * |
| 484 | * Response function is IRadioResponse.getDataRegistrationStateResponse_1_6() |
| 485 | */ |
| 486 | oneway getDataRegistrationState_1_6(int32_t serial); |
Shinsuke Ishioka | ede1e95 | 2018-08-17 18:02:29 +0900 | [diff] [blame] | 487 | |
| 488 | /** |
| 489 | * Requests current call list |
| 490 | * |
| 491 | * @param serial Serial number of request. |
| 492 | * |
| 493 | * Response function is IRadioResponse.getCurrentCallsResponse_1_6() |
| 494 | */ |
| 495 | oneway getCurrentCalls_1_6(int32_t serial); |
Jayachandran C | 262b606 | 2020-07-22 15:53:58 -0700 | [diff] [blame] | 496 | }; |