Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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.0; |
| 18 | |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 19 | import IRadioResponse; |
| 20 | import IRadioIndication; |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 21 | |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 22 | /* |
| 23 | * This interface is used by telephony & telecom to talk to cellular radio. |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 24 | * All the functions have minimum one parameter: |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 25 | * serial: which corresponds to serial no. of request. Serial numbers must only be memorized for the |
| 26 | * duration of a method call. If clients provide colliding serials (including passing the same |
| 27 | * serial to different methods), multiple responses (one for each method call) must still be served. |
| 28 | */ |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 29 | interface IRadio { |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 30 | /* |
| 31 | * Set response functions for radio requests & radio indications. |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 32 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 33 | * @param radioResponse Object containing response functions |
| 34 | * @param radioIndication Object containing radio indications |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 35 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 36 | setResponseFunctions(IRadioResponse radioResponse, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 37 | IRadioIndication radioIndication); |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 38 | |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 39 | /* |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 40 | * Requests status of the ICC card |
| 41 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 42 | * @param serial Serial number of request. |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 43 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 44 | * Response function is IRadioResponse.getIccCardStatusResponse() |
| 45 | * |
| 46 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 47 | oneway getIccCardStatus(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 48 | |
| 49 | /* |
| 50 | * Supplies ICC PIN. Only called if CardStatus has AppState.PIN state |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 51 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 52 | * @param serial Serial number of request. |
| 53 | * @param pin PIN value |
| 54 | * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 55 | * |
| 56 | * Response function is IRadioResponse.supplyIccPinForAppResponse() |
| 57 | * |
Amit Mahajan | 4cb7b84 | 2016-08-12 15:25:10 -0700 | [diff] [blame] | 58 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 59 | oneway supplyIccPinForApp(int32_t serial, string pin, string aid); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 60 | |
| 61 | /* |
| 62 | * Supplies ICC PUK and new PIN. |
| 63 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 64 | * @param serial Serial number of request. |
| 65 | * @param puk PUK value |
| 66 | * @param pin New PIN value |
| 67 | * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 68 | * |
| 69 | * Response function is IRadioResponse.supplyIccPukForAppResponse() |
| 70 | * |
| 71 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 72 | oneway supplyIccPukForApp(int32_t serial, string puk, string pin, string aid); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 73 | |
| 74 | /* |
| 75 | * Supplies ICC PIN2. Only called following operation where SIM_PIN2 was |
| 76 | * returned as a a failure from a previous operation. |
| 77 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 78 | * @param serial Serial number of request. |
| 79 | * @param pin2 PIN2 value |
| 80 | * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 81 | * |
| 82 | * Response function is IRadioResponse.supplyIccPin2ForAppResponse() |
| 83 | * |
| 84 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 85 | oneway supplyIccPin2ForApp(int32_t serial, string pin2, string aid); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 86 | |
| 87 | /* |
| 88 | * Supplies ICC PUK2 and new PIN2. |
| 89 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 90 | * @param serial Serial number of request. |
| 91 | * @param puk2 PUK2 value |
| 92 | * @param pin2 New PIN2 value |
| 93 | * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 94 | * |
| 95 | * Response function is IRadioResponse.supplyIccPuk2ForAppResponse() |
| 96 | * |
| 97 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 98 | oneway supplyIccPuk2ForApp(int32_t serial, string puk2, string pin2, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 99 | string aid); |
| 100 | |
| 101 | /* |
| 102 | * Supplies old ICC PIN and new PIN. |
| 103 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 104 | * @param serial Serial number of request. |
| 105 | * @param oldPin Old pin value |
| 106 | * @param newPin New pin value |
| 107 | * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 108 | * |
| 109 | * Response function is IRadioResponse.changeIccPinForAppResponse() |
| 110 | * |
| 111 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 112 | oneway changeIccPinForApp(int32_t serial, string oldPin, string newPin, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 113 | string aid); |
| 114 | |
| 115 | /* |
| 116 | * Supplies old ICC PIN2 and new PIN2. |
| 117 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 118 | * @param serial Serial number of request. |
| 119 | * @param oldPin2 Old pin2 value |
| 120 | * @param newPin2 New pin2 value |
| 121 | * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 122 | * |
| 123 | * Response function is IRadioResponse.changeIccPin2ForAppResponse() |
| 124 | * |
| 125 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 126 | oneway changeIccPin2ForApp(int32_t serial, string oldPin2, string newPin2, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 127 | string aid); |
| 128 | |
| 129 | /* |
| 130 | * Requests that network personalization be deactivated |
| 131 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 132 | * @param serial Serial number of request. |
| 133 | * @param netPin Network depersonlization code |
| 134 | * |
| 135 | * Response function is IRadioResponse.supplyNetworkDepersonalizationResponse() |
| 136 | * |
| 137 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 138 | oneway supplyNetworkDepersonalization(int32_t serial, string netPin); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 139 | |
| 140 | /* |
| 141 | * Requests current call list |
| 142 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 143 | * @param serial Serial number of request. |
| 144 | * |
| 145 | * Response function is IRadioResponse.getCurrentCallsResponse() |
| 146 | * |
| 147 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 148 | oneway getCurrentCalls(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 149 | |
| 150 | /* |
| 151 | * Initiate voice call. |
| 152 | * This method is never used for supplementary service codes |
| 153 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 154 | * @param serial Serial number of request. |
| 155 | * @param dialInfo Dial struct |
| 156 | * |
| 157 | * Response function is IRadioResponse.dialResponse() |
| 158 | * |
| 159 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 160 | oneway dial(int32_t serial, Dial dialInfo); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 161 | |
| 162 | /* |
| 163 | * Get the SIM IMSI |
| 164 | * Only valid when radio state is "RADIO_STATE_ON" |
| 165 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 166 | * @param serial Serial number of request. |
| 167 | * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 168 | * |
| 169 | * Response function is IRadioResponse.getImsiForAppResponse() |
| 170 | * |
| 171 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 172 | oneway getImsiForApp(int32_t serial, string aid); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 173 | |
| 174 | /* |
| 175 | * Hang up a specific line (like AT+CHLD=1x) |
| 176 | * After this HANGUP request returns, Radio must show the connection is NOT |
| 177 | * active anymore in next requestGetCurrentCalls query. |
| 178 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 179 | * @param serial Serial number of request. |
| 180 | * @param gsmIndex Connection index (value of 'x' in CHLD above) |
| 181 | * |
| 182 | * Response function is IRadioResponse.hangupResponse() |
| 183 | * |
| 184 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 185 | oneway hangup(int32_t serial, int32_t gsmIndex); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 186 | |
| 187 | /* |
| 188 | * Hang up waiting or held (like AT+CHLD=0) |
| 189 | * After this HANGUP request returns, Radio must show the connection is NOT |
| 190 | * active anymore in next getCurrentCalls() query. |
| 191 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 192 | * @param serial Serial number of request. |
| 193 | * |
| 194 | * Response function is IRadioResponse.hangupWaitingOrBackgroundResponse() |
| 195 | * |
| 196 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 197 | oneway hangupWaitingOrBackground(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 198 | |
| 199 | /* |
| 200 | * Hang up waiting or held (like AT+CHLD=1) |
| 201 | * After this HANGUP request returns, Radio must show the connection is NOT |
| 202 | * active anymore in next getCurrentCalls query. |
| 203 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 204 | * @param serial Serial number of request. |
| 205 | * |
| 206 | * Response function is IRadioResponse.hangupForegroundResumeBackgroundResponse() |
| 207 | * |
| 208 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 209 | oneway hangupForegroundResumeBackground(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 210 | |
| 211 | /* |
| 212 | * Switch waiting or holding call and active call (like AT+CHLD=2) |
| 213 | * State transitions must be as follows: |
| 214 | * |
| 215 | * Call transitions must happen as shown below. |
| 216 | * |
| 217 | * BEFORE AFTER |
| 218 | * Call 1 Call 2 Call 1 Call 2 |
| 219 | * ACTIVE HOLDING HOLDING ACTIVE |
| 220 | * ACTIVE WAITING HOLDING ACTIVE |
| 221 | * HOLDING WAITING HOLDING ACTIVE |
| 222 | * ACTIVE IDLE HOLDING IDLE |
| 223 | * IDLE IDLE IDLE IDLE |
| 224 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 225 | * @param serial Serial number of request. |
| 226 | * |
| 227 | * Response function is IRadioResponse.switchWaitingOrHoldingAndActiveResponse() |
| 228 | * |
| 229 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 230 | oneway switchWaitingOrHoldingAndActive(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 231 | |
| 232 | /* |
| 233 | * Conference holding and active (like AT+CHLD=3) |
| 234 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 235 | * @param serial Serial number of request. |
| 236 | * |
| 237 | * Response function is IRadioResponse.conferenceResponse() |
| 238 | * |
| 239 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 240 | oneway conference(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 241 | |
| 242 | /* |
| 243 | * Send UDUB (user determined user busy) to ringing or |
| 244 | * waiting call answer) |
| 245 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 246 | * @param serial Serial number of request. |
| 247 | * |
| 248 | * Response function is IRadioResponse.rejectCallResponse() |
| 249 | * |
| 250 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 251 | oneway rejectCall(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 252 | |
| 253 | /* |
| 254 | * Requests the failure cause code for the most recently terminated call. |
| 255 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 256 | * @param serial Serial number of request. |
| 257 | * |
| 258 | * Response function is IRadioResponse.getLastCallFailCauseResponse() |
| 259 | * |
| 260 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 261 | oneway getLastCallFailCause(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 262 | |
| 263 | /* |
| 264 | * Requests current signal strength and associated information. |
| 265 | * Must succeed if radio is on. |
| 266 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 267 | * @param serial Serial number of request. |
| 268 | * |
| 269 | * Response function is IRadioResponse.getSignalStrengthResponse() |
| 270 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 271 | oneway getSignalStrength(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 272 | |
| 273 | /* |
| 274 | * Request current voice registration state |
| 275 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 276 | * @param serial Serial number of request. |
| 277 | * |
| 278 | * Response function is IRadioResponse.getVoiceRegistrationStateResponse() |
| 279 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 280 | oneway getVoiceRegistrationState(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 281 | |
| 282 | /* |
| 283 | * Request current data registration state |
| 284 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 285 | * @param serial Serial number of request. |
| 286 | * |
| 287 | * Response function is IRadioResponse.getDataRegistrationStateResponse() |
| 288 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 289 | oneway getDataRegistrationState(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 290 | |
| 291 | /* |
| 292 | * Request current operator ONS or EONS |
| 293 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 294 | * @param serial Serial number of request. |
| 295 | * |
| 296 | * Response function is IRadioResponse.getOperatorResponse() |
| 297 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 298 | oneway getOperator(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 299 | |
| 300 | /* |
| 301 | * Toggle radio on and off (for "airplane" mode) |
| 302 | * If the radio is turned off/on the radio modem subsystem |
| 303 | * is expected return to an initialized state. For instance, |
| 304 | * any voice and data calls must be terminated and all associated |
| 305 | * lists emptied. |
| 306 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 307 | * @param serial Serial number of request. |
| 308 | * @param on To turn on radio -> on = true, to turn off radio -> on = false. |
| 309 | * |
| 310 | * Response function is IRadioResponse.setRadioPowerResponse() |
| 311 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 312 | oneway setRadioPower(int32_t serial, bool on); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 313 | |
| 314 | /* |
| 315 | * Send a DTMF tone |
| 316 | * |
| 317 | * If the implementation is currently playing a tone requested via |
| 318 | * startDtmf(), that tone must be cancelled and the new tone |
| 319 | * must be played instead |
| 320 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 321 | * @param serial Serial number of request. |
| 322 | * @param s string with single char having one of 12 values: 0-9, *, # |
| 323 | * |
| 324 | * Response function is IRadioResponse.sendDtmfResponse() |
| 325 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 326 | oneway sendDtmf(int32_t serial, string s); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 327 | |
| 328 | /* |
| 329 | * Send an SMS message |
| 330 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 331 | * @param serial Serial number of request. |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 332 | * @param message GsmSmsMessage as defined in types.hal |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 333 | * |
| 334 | * Response function is IRadioResponse.sendSmsResponse() |
| 335 | * |
| 336 | * Based on the return error, caller decides to resend if sending sms |
| 337 | * fails. RadioError:SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332) |
| 338 | * and RadioError:GENERIC_FAILURE means no retry (i.e. error cause is 500) |
| 339 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 340 | oneway sendSms(int32_t serial, GsmSmsMessage message); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 341 | |
| 342 | /* |
| 343 | * Send an SMS message. Identical to sendSms, |
| 344 | * except that more messages are expected to be sent soon. If possible, |
| 345 | * keep SMS relay protocol link open (eg TS 27.005 AT+CMMS command) |
| 346 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 347 | * @param serial Serial number of request. |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 348 | * @param message GsmSmsMessage as defined in types.hal |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 349 | * |
| 350 | * Response function is IRadioResponse.sendSMSExpectMoreResponse() |
| 351 | * |
| 352 | * Based on the return error, caller decides to resend if sending sms |
| 353 | * fails. RadioError:SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332) |
| 354 | * and RadioError:GENERIC_FAILURE means no retry (i.e. error cause is 500) |
| 355 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 356 | oneway sendSMSExpectMore(int32_t serial, GsmSmsMessage message); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 357 | |
| 358 | /* |
| 359 | * Setup a packet data connection. If DataCallResponse.status |
| 360 | * return DataCallFailCause:NONE it is added to the list of data calls and a |
| 361 | * unsolDataCallListChanged() is sent. The call remains in the |
| 362 | * list until deactivateDataCall() is issued or the |
| 363 | * radio is powered off/on. This list is returned by getDataCallList() |
| 364 | * and dataCallListChanged(). |
| 365 | * |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 366 | * The Radio is expected to: |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 367 | * - Create one data call context. |
| 368 | * - Create and configure a dedicated interface for the context |
| 369 | * - The interface must be point to point. |
| 370 | * - The interface is configured with one or more addresses and |
| 371 | * is capable of sending and receiving packets. The prefix length |
| 372 | * of the addresses must be /32 for IPv4 and /128 for IPv6. |
| 373 | * - Must NOT change the linux routing table. |
| 374 | * - Support up to getDataRegistrationState response[5] |
| 375 | * number of simultaneous data call contexts. |
| 376 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 377 | * @param serial Serial number of request. |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 378 | * @param radioTechnology Radio technology to use. |
| 379 | * @param dataProfileInfo data profile info. |
| 380 | * @param modemCognitive Indicating this profile was sent to the modem through setDataProfile |
| 381 | * earlier. |
| 382 | * @param roamingAllowed Indicating data roaming is allowed or not by the user. |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 383 | * |
| 384 | * Response function is IRadioResponse.setupDataCallResponse() |
| 385 | */ |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 386 | oneway setupDataCall(int32_t serial, RadioTechnology radioTechnology, |
| 387 | DataProfileInfo dataProfileInfo, bool modemCognitive, bool roamingAllowed); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 388 | |
| 389 | /* |
| 390 | * Request ICC I/O operation. |
| 391 | * This is similar to the TS 27.007 "restricted SIM" operation |
| 392 | * where it assumes all of the EF selection must be done by the |
| 393 | * callee |
| 394 | * |
| 395 | * Arguments and responses that are unused for certain |
| 396 | * values of "command" must be ignored or set to empty string |
| 397 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 398 | * @param serial Serial number of request. |
| 399 | * @param iccIo IccIo |
| 400 | * |
| 401 | * Please note that IccIo has a "PIN2" field which may be empty string, |
| 402 | * or may specify a PIN2 for operations that require a PIN2 (eg |
| 403 | * updating FDN records) |
| 404 | * |
| 405 | * Response function is IRadioResponse.iccIOForAppResponse() |
| 406 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 407 | oneway iccIOForApp(int32_t serial, IccIo iccIo); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 408 | |
| 409 | /* |
| 410 | * Send a USSD message. |
| 411 | * |
| 412 | * If a USSD session already exists, the message must be sent in the |
| 413 | * context of that session. Otherwise, a new session must be created. |
| 414 | * |
| 415 | * The network reply must be reported via unsolOnUssd |
| 416 | * |
| 417 | * Only one USSD session must exist at a time, and the session is assumed |
| 418 | * to exist until: |
| 419 | * a) The android system invokes cancelUssd() |
| 420 | * b) The implementation sends a unsolOnUssd() with a type code |
| 421 | * of "0" (USSD-Notify/no further action) or "2" (session terminated) |
| 422 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 423 | * @param serial Serial number of request. |
| 424 | * @param ussd string containing the USSD request in UTF-8 format |
| 425 | * |
| 426 | * Response function is IRadioResponse.sendUssdResponse() |
| 427 | * |
| 428 | * See also requestCancelUssd, unsolOnUssd |
| 429 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 430 | oneway sendUssd(int32_t serial, string ussd); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 431 | |
| 432 | /* |
| 433 | * Cancel the current USSD session if one exists. |
| 434 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 435 | * @param serial Serial number of request. |
| 436 | * |
| 437 | * Response function is IRadioResponse.cancelPendingUssdResponse() |
| 438 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 439 | oneway cancelPendingUssd(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 440 | |
| 441 | /* |
| 442 | * Gets current CLIR status |
| 443 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 444 | * @param serial Serial number of request. |
| 445 | * |
| 446 | * Response function is IRadioResponse.getClirResponse() |
| 447 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 448 | oneway getClir(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 449 | |
| 450 | /* |
| 451 | * Set current CLIR status |
| 452 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 453 | * @param serial Serial number of request. |
| 454 | * @param status "n" parameter from TS 27.007 7.7 |
| 455 | * |
| 456 | * Response function is IRadioResponse.setClirResponse() |
| 457 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 458 | oneway setClir(int32_t serial, int32_t status); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 459 | |
| 460 | /* |
| 461 | * Request call forward status. |
| 462 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 463 | * @param serial Serial number of request. |
| 464 | * @param callInfo CallForwardInfo |
| 465 | * |
| 466 | * Response function is IRadioResponse.getCallForwardStatusResponse() |
| 467 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 468 | oneway getCallForwardStatus(int32_t serial, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 469 | CallForwardInfo callInfo); |
| 470 | |
| 471 | /* |
| 472 | * Configure call forward rule |
| 473 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 474 | * @param serial Serial number of request. |
| 475 | * @param callInfo CallForwardInfo |
| 476 | * |
| 477 | * Response function is IRadioResponse.setCallForwardResponse() |
| 478 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 479 | oneway setCallForward(int32_t serial, CallForwardInfo callInfo); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 480 | |
| 481 | /* |
| 482 | * Query current call waiting state |
| 483 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 484 | * @param serial Serial number of request. |
| 485 | * @param serviceClass Service class is the TS 27.007 service class to query |
| 486 | * |
| 487 | * Response function is IRadioResponse.getCallWaitingResponse() |
| 488 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 489 | oneway getCallWaiting(int32_t serial, int32_t serviceClass); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 490 | |
| 491 | /* |
| 492 | * Configure current call waiting state |
| 493 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 494 | * @param serial Serial number of request. |
| 495 | * @param enable is false for "disabled" and true for "enabled" |
| 496 | * @param serviceClass is the TS 27.007 service class bit vector of services to modify |
| 497 | * |
| 498 | * Response function is IRadioResponse.setCallWaitingResponse() |
| 499 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 500 | oneway setCallWaiting(int32_t serial, bool enable, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 501 | int32_t serviceClass); |
| 502 | |
| 503 | /* |
| 504 | * Acknowledge successful or failed receipt of SMS previously indicated |
| 505 | * via unsolResponseNewSms |
| 506 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 507 | * @param serial Serial number of request. |
| 508 | * @param success is true on successful receipt |
| 509 | * (basically, AT+CNMA=1 from TS 27.005 is 0 on failed receipt |
| 510 | * (basically, AT+CNMA=2 from TS 27.005) |
| 511 | * @param cause: if success is false, this contains the failure cause as defined |
| 512 | * in TS 23.040, 9.2.3.22. |
| 513 | * |
| 514 | * Response function is IRadioResponse.acknowledgeLastIncomingGsmSmsResponse() |
| 515 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 516 | oneway acknowledgeLastIncomingGsmSms(int32_t serial, bool success, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 517 | SmsAcknowledgeFailCause cause); |
| 518 | |
| 519 | /* |
| 520 | * Answer incoming call |
| 521 | * Must not be called for WAITING calls. |
| 522 | * switchWaitingOrHoldingAndActive() must be used in this case |
| 523 | * instead |
| 524 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 525 | * @param serial Serial number of request. |
| 526 | * |
| 527 | * Response function is IRadioResponse.acceptCallResponse() |
| 528 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 529 | oneway acceptCall(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 530 | |
| 531 | /* |
| 532 | * Deactivate packet data connection and remove from the |
| 533 | * data call list if RadioError:NONE is returned. Any other return |
| 534 | * values must also try to remove the call from the list. An |
| 535 | * unsolDataCallListChanged must be |
| 536 | * issued because of an deactivateDataCall. |
| 537 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 538 | * @param serial Serial number of request. |
| 539 | * @param cid Indicates CID |
| 540 | * @param reasonRadioShutDown Indicates Disconnect Reason |
| 541 | * false => No specific reason specified |
| 542 | * true => Radio shutdown requested |
| 543 | * |
| 544 | * Response function is IRadioResponse.deactivateDataCallResponse() |
| 545 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 546 | oneway deactivateDataCall(int32_t serial, int32_t cid, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 547 | bool reasonRadioShutDown); |
| 548 | |
| 549 | /* |
| 550 | * Query the status of a facility lock state |
| 551 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 552 | * @param serial Serial number of request. |
| 553 | * @param facility is the facility string code from TS 27.007 7.4 |
| 554 | * (eg "AO" for BAOC, "SC" for SIM lock) |
| 555 | * @param password is the password, or "" if not required |
| 556 | * @param serviceClass is the TS 27.007 service class bit vector of services to query |
| 557 | * @param appId is AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 558 | * This is only applicable in the case of Fixed Dialing Numbers (FDN) requests. |
| 559 | * |
| 560 | * Response function is IRadioResponse.getFacilityLockForAppResponse() |
| 561 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 562 | oneway getFacilityLockForApp(int32_t serial, string facility, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 563 | string password, int32_t serviceClass, string appId); |
| 564 | |
| 565 | /* |
| 566 | * Enable/disable one facility lock |
| 567 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 568 | * @param serial Serial number of request. |
| 569 | * @param facility is the facility string code from TS 27.007 7.4 (eg "AO" for BAOC) |
| 570 | * @param lockState false for "unlock" and true for "lock" |
| 571 | * @param password is the password |
| 572 | * @param serviceClass is string representation of decimal TS 27.007 |
| 573 | * service class bit vector. Eg, the string |
| 574 | * "1" means "set this facility for voice services" |
| 575 | * @param appId is AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value. |
| 576 | * This is only applicable in the case of Fixed Dialing Numbers (FDN) requests. |
| 577 | * |
| 578 | * Response function is IRadioResponse.setFacilityLockForAppResponse() |
| 579 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 580 | oneway setFacilityLockForApp(int32_t serial, string facility, bool lockState, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 581 | string password, int32_t serviceClass, string appId); |
| 582 | |
| 583 | /* |
| 584 | * Change call barring facility password |
| 585 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 586 | * @param serial Serial number of request. |
| 587 | * @param facility facility string code from TS 27.007 7.4 (eg "AO" for BAOC) |
| 588 | * @param oldPassword old password |
| 589 | * @param newPassword new password |
| 590 | * |
| 591 | * Response function is IRadioResponse.setBarringPasswordResponse() |
| 592 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 593 | oneway setBarringPassword(int32_t serial, string facility, |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 594 | string oldPassword, string newPassword); |
| 595 | |
| 596 | /* |
| 597 | * Query current network selection mode |
| 598 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 599 | * @param serial Serial number of request. |
| 600 | * |
| 601 | * Response function is IRadioResponse.getNetworkSelectionModeResponse() |
| 602 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 603 | oneway getNetworkSelectionMode(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 604 | |
| 605 | /* |
| 606 | * Specify that the network must be selected automatically. |
| 607 | * This request must not respond until the new operator is selected and registered. |
| 608 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 609 | * @param serial Serial number of request. |
| 610 | * |
| 611 | * Response function is IRadioResponse.setNetworkSelectionModeAutomaticResponse() |
| 612 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 613 | oneway setNetworkSelectionModeAutomatic(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 614 | |
| 615 | /* |
| 616 | * Manually select a specified network. |
| 617 | * This request must not respond until the new operator is selected and registered. |
| 618 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 619 | * @param serial Serial number of request. |
| 620 | * @param operatorNumeric string specifying MCCMNC of network to select (eg "310170") |
| 621 | * |
| 622 | * Response function is IRadioResponse.setNetworkSelectionModeManualResponse() |
| 623 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 624 | oneway setNetworkSelectionModeManual(int32_t serial, string operatorNumeric); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 625 | |
| 626 | /* |
| 627 | * Scans for available networks |
| 628 | * This request must not respond until the new operator is selected and registered. |
| 629 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 630 | * @param serial Serial number of request. |
| 631 | * |
| 632 | * Response function is IRadioResponse.getAvailableNetworksResponse() |
| 633 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 634 | oneway getAvailableNetworks(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 635 | |
| 636 | /* |
| 637 | * Start playing a DTMF tone. Continue playing DTMF tone until |
| 638 | * stopDtmf is received. |
| 639 | * If a startDtmf() is received while a tone is currently playing, |
| 640 | * it must cancel the previous tone and play the new one. |
| 641 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 642 | * @param serial Serial number of request. |
| 643 | * @param s string having a single character with one of 12 values: 0-9,*,# |
| 644 | * |
| 645 | * Response function is IRadioResponse.startDtmfResponse() |
| 646 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 647 | oneway startDtmf(int32_t serial, string s); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 648 | |
| 649 | /* |
| 650 | * Stop playing a currently playing DTMF tone. |
| 651 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 652 | * @param serial Serial number of request. |
| 653 | * |
| 654 | * Response function is IRadioResponse.stopDtmfResponse() |
| 655 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 656 | oneway stopDtmf(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 657 | |
| 658 | /* |
| 659 | * Return string value indicating baseband version, eg response from AT+CGMR |
| 660 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 661 | * @param serial Serial number of request. |
| 662 | * |
| 663 | * Response function is IRadioResponse.getBasebandVersionResponse() |
| 664 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 665 | oneway getBasebandVersion(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 666 | |
| 667 | /* |
| 668 | * Separate a party from a multiparty call placing the multiparty call |
| 669 | * (less the specified party) on hold and leaving the specified party |
| 670 | * as the only other member of the current (active) call |
| 671 | * |
| 672 | * Like AT+CHLD=2x |
| 673 | * |
| 674 | * See TS 22.084 1.3.8.2 (iii) |
| 675 | * TS 22.030 6.5.5 "Entering "2X followed by send" |
| 676 | * TS 27.007 "AT+CHLD=2x" |
| 677 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 678 | * @param serial Serial number of request. |
| 679 | * @param gsmIndex contains Connection index (value of 'x' in CHLD above) |
| 680 | * |
| 681 | * Response function is IRadioResponse.separateConnectionResponse() |
| 682 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 683 | oneway separateConnection(int32_t serial, int32_t gsmIndex); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 684 | |
| 685 | /* |
| 686 | * Turn on or off uplink (microphone) mute. |
| 687 | * Must only be sent while voice call is active. |
| 688 | * Must always be reset to "disable mute" when a new voice call is initiated |
| 689 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 690 | * @param serial Serial number of request. |
| 691 | * @param enable true for "enable mute" and false for "disable mute" |
| 692 | * |
| 693 | * Response function is IRadioResponse.setMuteResponse() |
| 694 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 695 | oneway setMute(int32_t serial, bool enable); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 696 | |
| 697 | /* |
| 698 | * Queries the current state of the uplink mute setting |
| 699 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 700 | * @param serial Serial number of request. |
| 701 | * |
| 702 | * Response function is IRadioResponse.getMuteResponse() |
| 703 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 704 | oneway getMute(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 705 | |
| 706 | /* |
| 707 | * Queries the status of the CLIP supplementary service |
| 708 | * (for MMI code "*#30#") |
| 709 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 710 | * @param serial Serial number of request. |
| 711 | * |
| 712 | * Response function is IRadioResponse.getClipResponse() |
| 713 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 714 | oneway getClip(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 715 | |
| 716 | /* |
| 717 | * Returns the data call list. An entry is added when a |
| 718 | * setupDataCall() is issued and removed on a |
| 719 | * deactivateDataCall(). The list is emptied when |
| 720 | * setRadioPower() off/on is issued. |
| 721 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 722 | * @param serial Serial number of request. |
| 723 | * |
| 724 | * Response function is IRadioResponse.getDataCallListResponse() |
| 725 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 726 | oneway getDataCallList(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 727 | |
| 728 | /* |
| 729 | * This request is reserved for OEM-specific uses. It passes raw byte arrays back and forth. |
| 730 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 731 | * @param serial Serial number of request. |
| 732 | * @param data data passed as raw bytes to oem |
| 733 | * |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 734 | * Response function is IRadioResponse.sendOemRadioRequestRawResponse() |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 735 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 736 | oneway sendOemRadioRequestRaw(int32_t serial, vec<uint8_t> data); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 737 | |
| 738 | /* |
| 739 | * This request is reserved for OEM-specific uses. It passes strings back and forth. |
| 740 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 741 | * @param serial Serial number of request. |
| 742 | * @param data data passed as strings to oem |
| 743 | * |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 744 | * Response function is IRadioResponse.sendOemRadioRequestStringsResponse() |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 745 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 746 | oneway sendOemRadioRequestStrings(int32_t serial, vec<string> data); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 747 | |
| 748 | /* |
| 749 | * Indicates the current state of the screen. When the screen is off, the |
| 750 | * Radio must notify the baseband to suppress certain notifications (eg, |
| 751 | * signal strength and changes in LAC/CID or BID/SID/NID/latitude/longitude) |
| 752 | * in an effort to conserve power. These notifications must resume when the |
| 753 | * screen is on. |
| 754 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 755 | * @param serial Serial number of request. |
| 756 | * @param enable true = screen on, false = screen off. |
| 757 | * |
| 758 | * Response function is IRadioResponse.sendScreenStateResponse() |
| 759 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 760 | oneway sendScreenState(int32_t serial, bool enable); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 761 | |
| 762 | /* |
| 763 | * Enables/disables supplementary service related notifications from the network. |
| 764 | * Notifications are reported via unsolSuppSvcNotification(). |
| 765 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 766 | * @param serial Serial number of request. |
| 767 | * @param enable true = notifications enabled, false = notifications disabled. |
| 768 | * |
| 769 | * Response function is IRadioResponse.setSuppServiceNotificationsResponse() |
| 770 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 771 | oneway setSuppServiceNotifications(int32_t serial, bool enable); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 772 | |
| 773 | /* |
| 774 | * Stores a SMS message to SIM memory. |
| 775 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 776 | * @param serial Serial number of request. |
| 777 | * @param smsWriteArgs SmsWriteArgs defined in types.hal |
| 778 | * |
| 779 | * Response function is IRadioResponse.writeSmsToSimResponse() |
| 780 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 781 | oneway writeSmsToSim(int32_t serial, SmsWriteArgs smsWriteArgs); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 782 | |
| 783 | /* |
| 784 | * Deletes a SMS message from SIM memory. |
| 785 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 786 | * @param serial Serial number of request. |
| 787 | * @param index Record index of the message to delete. |
| 788 | * |
| 789 | * Response function is IRadioResponse.deleteSmsOnSimResponse() |
| 790 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 791 | oneway deleteSmsOnSim(int32_t serial, int32_t index); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 792 | |
| 793 | /* |
| 794 | * Assign a specified band for RF configuration. |
| 795 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 796 | * @param serial Serial number of request. |
| 797 | * @param mode RadioBandMode defined in types.hal |
| 798 | * |
| 799 | * Response function is IRadioResponse.setBandModeResponse() |
| 800 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 801 | oneway setBandMode(int32_t serial, RadioBandMode mode); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 802 | |
| 803 | /* |
| 804 | * Get the list of band modes supported by RF. |
| 805 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 806 | * @param serial Serial number of request. |
| 807 | * |
| 808 | * Response function is IRadioResponse.getAvailableBandModesResponse() |
| 809 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 810 | oneway getAvailableBandModes(int32_t serial); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 811 | |
| 812 | /* |
| 813 | * Requests to send a SAT/USAT envelope command to SIM. |
| 814 | * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111 |
| 815 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 816 | * @param serial Serial number of request. |
| 817 | * @param command SAT/USAT command in hexadecimal format string starting with command tag |
| 818 | * |
| 819 | * Response function is IRadioResponse.sendEnvelopeResponse() |
| 820 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 821 | oneway sendEnvelope(int32_t serial, string command); |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 822 | |
| 823 | /* |
| 824 | * Requests to send a terminal response to SIM for a received proactive command |
| 825 | * |
Sanket Padawe | 7637249 | 2016-10-27 13:20:49 -0700 | [diff] [blame] | 826 | * @param serial Serial number of request. |
| 827 | * @param commandResponse SAT/USAT response in hexadecimal format string starting with |
| 828 | * first byte of response data |
| 829 | * |
| 830 | * Response function is IRadioResponse.sendTerminalResponseResponseToSim() |
| 831 | */ |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 832 | oneway sendTerminalResponseToSim(int32_t serial, string commandResponse); |
| 833 | |
| 834 | /* |
| 835 | * When STK application gets stkCallSetup(), the call actually has |
| 836 | * been initialized by mobile device already. (We could see the call has been in the 'call |
| 837 | * list') So, STK application needs to accept/reject the call according to user |
| 838 | * operations. |
| 839 | * |
| 840 | * @param serial Serial number of request. |
| 841 | * @param accept true = accept the call setup, false = reject the call setup |
| 842 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 843 | * Response callback is IRadioResponse.handleStkCallSetupRequestFromSimResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 844 | */ |
| 845 | oneway handleStkCallSetupRequestFromSim(int32_t serial, |
| 846 | bool accept); |
| 847 | |
| 848 | /* |
| 849 | * Connects the two calls and disconnects the subscriber from both calls. |
| 850 | * |
| 851 | * @param serial Serial number of request. |
| 852 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 853 | * Response callback is IRadioResponse.explicitCallTransferResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 854 | */ |
| 855 | oneway explicitCallTransfer(int32_t serial); |
| 856 | |
| 857 | /* |
| 858 | * Requests to set the preferred network type for searching and registering |
| 859 | * (CS/PS domain, RAT, and operation mode) |
| 860 | * |
| 861 | * @param serial Serial number of request. |
| 862 | * @param nwType PreferredNetworkType defined in types.hal |
| 863 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 864 | * Response callback is IRadioResponse.setPreferredNetworkTypeResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 865 | */ |
| 866 | oneway setPreferredNetworkType(int32_t serial, |
| 867 | PreferredNetworkType nwType); |
| 868 | |
| 869 | /* |
| 870 | * Query the preferred network type (CS/PS domain, RAT, and operation mode) |
| 871 | * for searching and registering |
| 872 | * |
| 873 | * @param serial Serial number of request. |
| 874 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 875 | * Response callback is IRadioResponse.getPreferredNetworkTypeResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 876 | */ |
| 877 | oneway getPreferredNetworkType(int32_t serial); |
| 878 | |
| 879 | /* |
| 880 | * Request neighboring cell id in GSM network |
| 881 | * |
| 882 | * @param serial Serial number of request. |
| 883 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 884 | * Response callback is IRadioResponse.getNeighboringCidsResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 885 | */ |
| 886 | oneway getNeighboringCids(int32_t serial); |
| 887 | |
| 888 | /* |
| 889 | * Enables/disables network state change notifications due to changes in |
| 890 | * LAC and/or CID (for GSM) or BID/SID/NID/latitude/longitude (for CDMA). |
| 891 | * Basically +CREG=2 vs. +CREG=1 (TS 27.007). |
| 892 | * Note: The Radio implementation must default to "updates enabled" |
| 893 | * when the screen is on and "updates disabled" when the screen is off. |
| 894 | * |
| 895 | * @param serial Serial number of request. |
| 896 | * @param enable true = updates enabled (+CREG=2), false = updates disabled (+CREG=1) |
| 897 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 898 | * Response callback is IRadioResponse.setLocationUpdatesResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 899 | */ |
| 900 | oneway setLocationUpdates(int32_t serial, bool enable); |
| 901 | |
| 902 | /* |
| 903 | * Request to set the location where the CDMA subscription shall |
| 904 | * be retrieved |
| 905 | * |
| 906 | * @param serial Serial number of request. |
| 907 | * @param cdmaSub CdmaSubscriptionSource |
| 908 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 909 | * Response callback is IRadioResponse.setCdmaSubscriptionSourceResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 910 | */ |
| 911 | oneway setCdmaSubscriptionSource(int32_t serial, |
| 912 | CdmaSubscriptionSource cdmaSub); |
| 913 | |
| 914 | /* |
| 915 | * Request to set the roaming preferences in CDMA |
| 916 | * |
| 917 | * @param serial Serial number of request. |
| 918 | * @param type CdmaRoamingType defined in types.hal |
| 919 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 920 | * Response callback is IRadioResponse.setCdmaRoamingPreferenceResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 921 | */ |
| 922 | oneway setCdmaRoamingPreference(int32_t serial, |
| 923 | CdmaRoamingType type); |
| 924 | |
| 925 | /* |
| 926 | * Request the actual setting of the roaming preferences in CDMA in the modem |
| 927 | * |
| 928 | * @param serial Serial number of request. |
| 929 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 930 | * Response callback is IRadioResponse.getCdmaRoamingPreferenceResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 931 | */ |
| 932 | oneway getCdmaRoamingPreference(int32_t serial); |
| 933 | |
| 934 | /* |
| 935 | * Request to set the TTY mode |
| 936 | * |
| 937 | * @param serial Serial number of request. |
| 938 | * @param mode TtyMode |
| 939 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 940 | * Response callback is IRadioResponse.setTTYModeResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 941 | */ |
| 942 | oneway setTTYMode(int32_t serial, TtyMode mode); |
| 943 | |
| 944 | /* |
| 945 | * Request the setting of TTY mode |
| 946 | * |
| 947 | * @param serial Serial number of request. |
| 948 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 949 | * Response callback is IRadioResponse.getTTYModeResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 950 | */ |
| 951 | oneway getTTYMode(int32_t serial); |
| 952 | |
| 953 | /* |
| 954 | * Request to set the preferred voice privacy mode used in voice scrambling. |
| 955 | * |
| 956 | * @param serial Serial number of request. |
| 957 | * @param enable false for Standard Privacy Mode (Public Long Code Mask) |
| 958 | * true for Enhanced Privacy Mode (Private Long Code Mask) |
| 959 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 960 | * Response callback is IRadioResponse.setPreferredVoicePrivacyResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 961 | */ |
| 962 | oneway setPreferredVoicePrivacy(int32_t serial, bool enable); |
| 963 | |
| 964 | /* |
| 965 | * Request the setting of preferred voice privacy mode. |
| 966 | * |
| 967 | * @param serial Serial number of request. |
| 968 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 969 | * Response callback is IRadioResponse.getPreferredVoicePrivacyResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 970 | */ |
| 971 | oneway getPreferredVoicePrivacy(int32_t serial); |
| 972 | |
| 973 | /* |
| 974 | * Send FLASH command |
| 975 | * |
| 976 | * @param serial Serial number of request. |
| 977 | * @param featureCode String associated with Flash command |
| 978 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 979 | * Response callback is IRadioResponse.sendCDMAFeatureCodeResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 980 | */ |
| 981 | oneway sendCDMAFeatureCode(int32_t serial, string featureCode); |
| 982 | |
| 983 | /* |
| 984 | * Send DTMF string |
| 985 | * |
| 986 | * @param serial Serial number of request. |
| 987 | * @param dtmf DTMF string |
| 988 | * @param on DTMF ON length in milliseconds, or 0 to use default |
| 989 | * @param off is the DTMF OFF length in milliseconds, or 0 to use default |
| 990 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 991 | * Response callback is IRadioResponse.sendBurstDtmfResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 992 | */ |
| 993 | oneway sendBurstDtmf(int32_t serial, string dtmf, int32_t on, int32_t off); |
| 994 | |
| 995 | /* |
| 996 | * Send a CDMA SMS message |
| 997 | * |
| 998 | * @param serial Serial number of request. |
| 999 | * @param sms Cdma Sms to be sent described by CdmaSmsMessage in types.hal |
| 1000 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1001 | * Response callback is IRadioResponse.sendCdmaSmsResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1002 | */ |
| 1003 | oneway sendCdmaSms(int32_t serial, CdmaSmsMessage sms); |
| 1004 | |
| 1005 | /* |
| 1006 | * Acknowledge the success or failure in the receipt of SMS |
| 1007 | * previously indicated via responseCdmaNewSms() |
| 1008 | * |
| 1009 | * @param serial Serial number of request. |
| 1010 | * @param smsAck Cdma Sms ack to be sent described by CdmaSmsAck in types.hal |
| 1011 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1012 | * Response callback is IRadioResponse.acknowledgeLastIncomingCdmaSmsResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1013 | */ |
| 1014 | oneway acknowledgeLastIncomingCdmaSms(int32_t serial, CdmaSmsAck smsAck); |
| 1015 | |
| 1016 | /* |
| 1017 | * Request the setting of GSM/WCDMA Cell Broadcast SMS config. |
| 1018 | * |
| 1019 | * @param serial Serial number of request. |
| 1020 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1021 | * Response callback is IRadioResponse.getGsmBroadcastConfigResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1022 | */ |
| 1023 | oneway getGsmBroadcastConfig(int32_t serial); |
| 1024 | |
| 1025 | /* |
| 1026 | * Set GSM/WCDMA Cell Broadcast SMS config |
| 1027 | * |
| 1028 | * @param serial Serial number of request. |
| 1029 | * @param configInfo Setting of GSM/WCDMA Cell broadcast config |
| 1030 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1031 | * Response callback is IRadioResponse.setGsmBroadcastConfigResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1032 | */ |
Sanket Padawe | 865834e | 2016-12-28 16:04:10 -0800 | [diff] [blame] | 1033 | oneway setGsmBroadcastConfig(int32_t serial, vec<GsmBroadcastSmsConfigInfo> configInfo); |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1034 | |
| 1035 | /* |
| 1036 | * Enable or disable the reception of GSM/WCDMA Cell Broadcast SMS |
| 1037 | * |
| 1038 | * @param serial Serial number of request. |
| 1039 | * @param activate indicates to activate or turn off the reception of GSM/WCDMA |
| 1040 | * Cell Broadcast SMS. true = activate, false = turn off |
| 1041 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1042 | * Response callback is IRadioResponse.setGsmBroadcastActivationResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1043 | */ |
| 1044 | oneway setGsmBroadcastActivation(int32_t serial, bool activate); |
| 1045 | |
| 1046 | /* |
| 1047 | * Request the setting of CDMA Broadcast SMS config |
| 1048 | * |
| 1049 | * @param serial Serial number of request. |
| 1050 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1051 | * Response callback is IRadioResponse.getCdmaBroadcastConfigResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1052 | */ |
| 1053 | oneway getCdmaBroadcastConfig(int32_t serial); |
| 1054 | |
| 1055 | /* |
| 1056 | * Set CDMA Broadcast SMS config |
| 1057 | * |
| 1058 | * @param serial Serial number of request. |
| 1059 | * @param configInfo CDMA Broadcast SMS config to be set. |
| 1060 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1061 | * Response callback is IRadioResponse.setCdmaBroadcastConfigResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1062 | */ |
Sanket Padawe | 865834e | 2016-12-28 16:04:10 -0800 | [diff] [blame] | 1063 | oneway setCdmaBroadcastConfig(int32_t serial, vec<CdmaBroadcastSmsConfigInfo> configInfo); |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1064 | |
| 1065 | /* |
| 1066 | * Enable or disable the reception of CDMA Cell Broadcast SMS |
| 1067 | * |
| 1068 | * @param serial Serial number of request. |
| 1069 | * @param activate indicates to activate or turn off the reception of CDMA |
| 1070 | * Cell Broadcast SMS. true = activate, false = turn off |
| 1071 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1072 | * Response callback is IRadioResponse.setCdmaBroadcastActivationResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1073 | */ |
| 1074 | oneway setCdmaBroadcastActivation(int32_t serial, bool activate); |
| 1075 | |
| 1076 | /* |
| 1077 | * Request the device MDN / H_SID / H_NID. |
| 1078 | * The request is only allowed when CDMA subscription is available. When CDMA |
| 1079 | * subscription is changed, application layer must re-issue the request to |
| 1080 | * update the subscription information. |
| 1081 | * |
| 1082 | * @param serial Serial number of request. |
| 1083 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1084 | * Response callback is IRadioResponse.getCDMASubscriptionResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1085 | */ |
| 1086 | oneway getCDMASubscription(int32_t serial); |
| 1087 | |
| 1088 | /* |
| 1089 | * Stores a CDMA SMS message to RUIM memory. |
| 1090 | * |
| 1091 | * @param serial Serial number of request. |
| 1092 | * @param cdmaSms CDMA message as defined by CdmaSmsWriteArgs in types.hal |
| 1093 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1094 | * Response callback is IRadioResponse.writeSmsToRuimResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1095 | */ |
| 1096 | oneway writeSmsToRuim(int32_t serial, CdmaSmsWriteArgs cdmaSms); |
| 1097 | |
| 1098 | /* |
| 1099 | * Deletes a CDMA SMS message from RUIM memory. |
| 1100 | * |
| 1101 | * @param serial Serial number of request. |
| 1102 | * @param index record index of the message to delete |
| 1103 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1104 | * Response callback is IRadioResponse.deleteSmsOnRuimResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1105 | */ |
| 1106 | oneway deleteSmsOnRuim(int32_t serial, int32_t index); |
| 1107 | |
| 1108 | /* |
| 1109 | * Request the device ESN / MEID / IMEI / IMEISV. |
| 1110 | * The request is always allowed and contains GSM and CDMA device identity. |
| 1111 | * When CDMA subscription is changed the ESN/MEID changes. The application |
| 1112 | * layer must re-issue the request to update the device identity in this case. |
| 1113 | * |
| 1114 | * @param serial Serial number of request. |
| 1115 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1116 | * Response callback is IRadioResponse.getDeviceIdentityResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1117 | */ |
| 1118 | oneway getDeviceIdentity(int32_t serial); |
| 1119 | |
| 1120 | /* |
| 1121 | * Request the radio's system selection module to exit emergency |
| 1122 | * callback mode. Radio must not respond with SUCCESS until the modem has |
| 1123 | * completely exited from Emergency Callback Mode. |
| 1124 | * |
| 1125 | * @param serial Serial number of request. |
| 1126 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1127 | * Response callback is IRadioResponse.exitEmergencyCallbackModeResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1128 | */ |
| 1129 | oneway exitEmergencyCallbackMode(int32_t serial); |
| 1130 | |
| 1131 | /* |
| 1132 | * Get the default Short Message Service Center address on the device. |
| 1133 | * |
| 1134 | * @param serial Serial number of request. |
| 1135 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1136 | * Response callback is IRadioResponse.getSmscAddressResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1137 | */ |
| 1138 | oneway getSmscAddress(int32_t serial); |
| 1139 | |
| 1140 | /* |
| 1141 | * Set the default Short Message Service Center address on the device. |
| 1142 | * |
| 1143 | * @param serial Serial number of request. |
| 1144 | * @param smsc Short Message Service Center address to set |
| 1145 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1146 | * Response callback is IRadioResponse.setSmscAddressResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1147 | */ |
| 1148 | oneway setSmscAddress(int32_t serial, string smsc); |
| 1149 | |
| 1150 | /* |
| 1151 | * Indicates whether there is storage available for new SMS messages. |
| 1152 | * |
| 1153 | * @param serial Serial number of request. |
| 1154 | * @param available true if memory is available for storing new messages, |
| 1155 | * false if memory capacity is exceeded |
| 1156 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1157 | * Response callback is IRadioResponse.reportSmsMemoryStatusResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1158 | */ |
| 1159 | oneway reportSmsMemoryStatus(int32_t serial, bool available); |
| 1160 | |
| 1161 | /* |
| 1162 | * Indicates that the StkSerivce is running and is |
| 1163 | * ready to receive unsolicited stkXXXXX commands. |
| 1164 | * |
| 1165 | * @param serial Serial number of request. |
| 1166 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1167 | * Response callback is IRadioResponse.reportStkServiceIsRunningResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1168 | */ |
| 1169 | oneway reportStkServiceIsRunning(int32_t serial); |
| 1170 | |
| 1171 | /* |
| 1172 | * Request to query the location where the CDMA subscription shall be retrieved. |
| 1173 | * |
| 1174 | * @param serial Serial number of request. |
| 1175 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1176 | * Response callback is IRadioResponse.getCdmaSubscriptionSourceResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1177 | */ |
| 1178 | oneway getCdmaSubscriptionSource(int32_t serial); |
| 1179 | |
| 1180 | /* |
| 1181 | * Request the ISIM application on the UICC to perform AKA |
| 1182 | * challenge/response algorithm for IMS authentication |
| 1183 | * |
| 1184 | * @param serial Serial number of request. |
| 1185 | * @param challenge challenge string in Base64 format |
| 1186 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1187 | * Response callback is IRadioResponse.requestIsimAuthenticationResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1188 | */ |
| 1189 | oneway requestIsimAuthentication(int32_t serial, string challenge); |
| 1190 | |
| 1191 | /* |
| 1192 | * Acknowledge successful or failed receipt of SMS previously indicated |
| 1193 | * via unsol responseNewSms(), including acknowledgement TPDU to send |
| 1194 | * as the RP-User-Data element of the RP-ACK or RP-ERROR PDU. |
| 1195 | * |
| 1196 | * @param serial Serial number of request. |
| 1197 | * @param success true on successful receipt (send RP-ACK) |
| 1198 | * false on failed receipt (send RP-ERROR) |
| 1199 | * @param ackPdu acknowledgement TPDU in hexadecimal format |
| 1200 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1201 | * Response callback is IRadioResponse.acknowledgeIncomingGsmSmsWithPduResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1202 | */ |
| 1203 | oneway acknowledgeIncomingGsmSmsWithPdu(int32_t serial, bool success, string ackPdu); |
| 1204 | |
| 1205 | /* |
| 1206 | * Requests to send a SAT/USAT envelope command to SIM. |
| 1207 | * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111. |
| 1208 | * |
| 1209 | * This request has one difference from sendEnvelope(): |
| 1210 | * the SW1 and SW2 status bytes from the UICC response are returned along with |
| 1211 | * the response data, using the same structure as iccIOForApp(). |
| 1212 | * |
| 1213 | * The implementation must perform normal processing of a '91XX' |
| 1214 | * response in SW1/SW2 to retrieve the pending proactive command and send it |
| 1215 | * as an unsolicited response, as sendEnvelope() does. |
| 1216 | * |
| 1217 | * @param serial Serial number of request. |
| 1218 | * @param contents SAT/USAT command in hexadecimal format starting with command tag |
| 1219 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1220 | * Response callback is IRadioResponse.sendEnvelopeWithStatusResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1221 | */ |
| 1222 | oneway sendEnvelopeWithStatus(int32_t serial, string contents); |
| 1223 | |
| 1224 | /* |
| 1225 | * Query the radio technology type (3GPP/3GPP2) used for voice. Query is valid only |
| 1226 | * when radio state is not RADIO_STATE_UNAVAILABLE |
| 1227 | * |
| 1228 | * @param serial Serial number of request. |
| 1229 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1230 | * Response callback is IRadioResponse.getVoiceRadioTechnologyResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1231 | */ |
| 1232 | oneway getVoiceRadioTechnology(int32_t serial); |
| 1233 | |
| 1234 | /* |
| 1235 | * Request all of the current cell information known to the radio. The radio |
| 1236 | * must return list of all current cells, including the neighboring cells. If for a particular |
| 1237 | * cell information isn't known then the appropriate unknown value will be returned. |
| 1238 | * This does not cause or change the rate of unsolicited cellInfoList(). |
| 1239 | * |
| 1240 | * @param serial Serial number of request. |
| 1241 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1242 | * Response callback is IRadioResponse.getCellInfoListResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1243 | */ |
| 1244 | oneway getCellInfoList(int32_t serial); |
| 1245 | |
| 1246 | /* |
| 1247 | * Sets the minimum time between when unsolicited cellInfoList() must be invoked. |
| 1248 | * A value of 0, means invoke cellInfoList() when any of the reported |
| 1249 | * information changes. Setting the value to INT_MAX(0x7fffffff) means never issue |
| 1250 | * a unsolicited cellInfoList(). |
| 1251 | * |
| 1252 | * @param serial Serial number of request. |
| 1253 | * @param rate minimum time in milliseconds to indicate time between unsolicited cellInfoList() |
| 1254 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1255 | * Response callback is IRadioResponse.setCellInfoListRateResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1256 | */ |
| 1257 | oneway setCellInfoListRate(int32_t serial, int32_t rate); |
| 1258 | |
| 1259 | /* |
| 1260 | * Set an apn to initial attach network |
| 1261 | * |
| 1262 | * @param serial Serial number of request. |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1263 | * @param dataProfileInfo data profile containing APN settings |
| 1264 | * @param modemCognitive is indicating the data profile was sent to the modem through |
| 1265 | * setDataProfile earlier. |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1266 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1267 | * Response callback is IRadioResponse.setInitialAttachApnResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1268 | */ |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1269 | oneway setInitialAttachApn(int32_t serial, DataProfileInfo dataProfileInfo, |
| 1270 | bool modemCognitive); |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1271 | |
| 1272 | /* |
| 1273 | * Request current IMS registration state |
| 1274 | * |
| 1275 | * @param serial Serial number of request. |
| 1276 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1277 | * Response callback is IRadioResponse.getImsRegistrationStateResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1278 | */ |
| 1279 | oneway getImsRegistrationState(int32_t serial); |
| 1280 | |
| 1281 | /* |
| 1282 | * Send a SMS message over IMS. |
| 1283 | * Based on the return error, caller decides to resend if sending sms |
| 1284 | * fails. SMS_SEND_FAIL_RETRY means retry, and other errors means no retry. |
| 1285 | * In case of retry, data is encoded based on Voice Technology available. |
| 1286 | * |
| 1287 | * @param serial Serial number of request. |
| 1288 | * @param message ImsSmsMessage as defined in types.hal to be sent |
| 1289 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1290 | * Response callback is IRadioResponse.sendImsSmsResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1291 | */ |
| 1292 | oneway sendImsSms(int32_t serial, ImsSmsMessage message); |
| 1293 | |
| 1294 | /* |
| 1295 | * Request APDU exchange on the basic channel. This command reflects TS 27.007 |
| 1296 | * "generic SIM access" operation (+CSIM). The modem must ensure proper function |
| 1297 | * of GSM/CDMA, and filter commands appropriately. It must filter |
| 1298 | * channel management and SELECT by DF name commands. |
| 1299 | * "sessionid" field must be ignored. |
| 1300 | * |
| 1301 | * @param serial Serial number of request. |
| 1302 | * @param message SimApdu as defined in types.hal to be sent |
| 1303 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1304 | * Response callback is IRadioResponse.iccTransmitApduBasicChannelResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1305 | */ |
| 1306 | oneway iccTransmitApduBasicChannel(int32_t serial, SimApdu message); |
| 1307 | |
| 1308 | /* |
| 1309 | * Open a new logical channel and select the given application. This command |
| 1310 | * reflects TS 27.007 "open logical channel" operation (+CCHO). |
| 1311 | * |
| 1312 | * @param serial Serial number of request. |
| 1313 | * @param aid AID value, See ETSI 102.221 and 101.220. |
| 1314 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1315 | * Response callback is IRadioResponse.iccOpenLogicalChannelResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1316 | */ |
| 1317 | oneway iccOpenLogicalChannel(int32_t serial, string aid); |
| 1318 | |
| 1319 | /* |
| 1320 | * Close a previously opened logical channel. This command reflects TS 27.007 |
| 1321 | * "close logical channel" operation (+CCHC). |
| 1322 | * |
| 1323 | * @param serial Serial number of request. |
| 1324 | * @param channelId session id of the logical channel (+CCHC). |
| 1325 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1326 | * Response callback is IRadioResponse.iccCloseLogicalChannelResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1327 | */ |
| 1328 | oneway iccCloseLogicalChannel(int32_t serial, int32_t channelId); |
| 1329 | |
| 1330 | /* |
| 1331 | * Exchange APDUs with a UICC over a previously opened logical channel. This |
| 1332 | * command reflects TS 27.007 "generic logical channel access" operation |
| 1333 | * (+CGLA). The modem must filter channel management and SELECT by DF name |
| 1334 | * commands. |
| 1335 | * |
| 1336 | * @param serial Serial number of request. |
| 1337 | * @param message SimApdu as defined in types.hal to be sent |
| 1338 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1339 | * Response callback is IRadioResponse.iccTransmitApduLogicalChannelResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1340 | */ |
| 1341 | oneway iccTransmitApduLogicalChannel(int32_t serial, SimApdu message); |
| 1342 | |
| 1343 | /* |
| 1344 | * Read one of the radio NV items. |
| 1345 | * This is used for device configuration by some CDMA operators. |
| 1346 | * |
| 1347 | * @param serial Serial number of request. |
| 1348 | * @param itemId NvItem is radio NV item as defined in types.hal |
| 1349 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1350 | * Response callback is IRadioResponse.nvReadItemResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1351 | */ |
| 1352 | oneway nvReadItem(int32_t serial, NvItem itemId); |
| 1353 | |
| 1354 | /* |
| 1355 | * Write one of the radio NV items. |
| 1356 | * This is used for device configuration by some CDMA operators. |
| 1357 | * |
| 1358 | * @param serial Serial number of request. |
| 1359 | * @param item NvWriteItem as defined in types.hal |
| 1360 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1361 | * Response callback is IRadioResponse.nvWriteItemResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1362 | */ |
| 1363 | oneway nvWriteItem(int32_t serial, NvWriteItem item); |
| 1364 | |
| 1365 | /* |
| 1366 | * Update the CDMA Preferred Roaming List (PRL) in the radio NV storage. |
| 1367 | * This is used for device configuration by some CDMA operators. |
| 1368 | * |
| 1369 | * @param serial Serial number of request. |
| 1370 | * @param prl PRL as a byte array |
| 1371 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1372 | * Response callback is IRadioResponse.nvWriteCdmaPrlResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1373 | */ |
| 1374 | oneway nvWriteCdmaPrl(int32_t serial, vec<uint8_t> prl); |
| 1375 | |
| 1376 | /* |
| 1377 | * Reset the radio NV configuration to the factory state. |
| 1378 | * This is used for device configuration by some CDMA operators. |
| 1379 | * |
| 1380 | * @param serial Serial number of request. |
| 1381 | * @param resetType ResetNvType as defined in types.hal |
| 1382 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1383 | * Response callback is IRadioResponse.nvResetConfigResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1384 | */ |
| 1385 | oneway nvResetConfig(int32_t serial, ResetNvType resetType); |
| 1386 | |
| 1387 | /* |
| 1388 | * Selection/de-selection of a subscription from a SIM card |
| 1389 | * |
| 1390 | * @param serial Serial number of request. |
| 1391 | * @param uiccSub SelectUiccSub as defined in types.hal |
| 1392 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1393 | * Response callback is IRadioResponse.setUiccSubscriptionResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1394 | */ |
| 1395 | oneway setUiccSubscription(int32_t serial, SelectUiccSub uiccSub); |
| 1396 | |
| 1397 | /* |
| 1398 | * Tells the modem whether data calls are allowed or not |
| 1399 | * |
| 1400 | * @param serial Serial number of request. |
| 1401 | * @param allow true to allow data calls, false to disallow data calls |
| 1402 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1403 | * Response callback is IRadioResponse.setDataAllowedResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1404 | */ |
| 1405 | oneway setDataAllowed(int32_t serial, bool allow); |
| 1406 | |
| 1407 | /* |
| 1408 | * Request all of the current hardware (modem and sim) associated with Radio. |
| 1409 | * |
| 1410 | * @param serial Serial number of request. |
| 1411 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1412 | * Response callback is IRadioResponse.getHardwareConfigResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1413 | */ |
| 1414 | oneway getHardwareConfig(int32_t serial); |
| 1415 | |
| 1416 | /* |
| 1417 | * Returns the response of SIM Authentication through Radio challenge request. |
| 1418 | * |
| 1419 | * @param serial Serial number of request. |
| 1420 | * @param authContext P2 value of authentication command, see P2 parameter in |
| 1421 | * 3GPP TS 31.102 7.1.2 |
| 1422 | * @param authData the challenge string in Base64 format, see 3GPP TS 31.102 7.1.2 |
| 1423 | * @param aid AID value, See ETSI 102.221 8.1 and 101.220 4, empty string if no value |
| 1424 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1425 | * Response callback is IRadioResponse.requestIccSimAuthenticationResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1426 | */ |
| 1427 | oneway requestIccSimAuthentication(int32_t serial, int32_t authContext, string authData, |
| 1428 | string aid); |
| 1429 | |
| 1430 | /* |
| 1431 | * Set data profile in modem. |
| 1432 | * Modem must erase existed profiles from framework, and apply new profiles |
| 1433 | * |
| 1434 | * @param serial Serial number of request. |
| 1435 | * @param profiles Array of DataProfiles to set. |
| 1436 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1437 | * Response callback is IRadioResponse.setDataProfileResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1438 | */ |
| 1439 | oneway setDataProfile(int32_t serial, vec<DataProfileInfo> profiles); |
| 1440 | |
| 1441 | /* |
| 1442 | * Device is shutting down. All further commands are ignored |
| 1443 | * and RADIO_NOT_AVAILABLE must be returned. |
| 1444 | * |
| 1445 | * @param serial Serial number of request. |
| 1446 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1447 | * Response callback is IRadioResponse.requestShutdownResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1448 | */ |
| 1449 | oneway requestShutdown(int32_t serial); |
| 1450 | |
| 1451 | /* |
| 1452 | * Used to get phone radio capablility. |
| 1453 | * |
| 1454 | * @param serial Serial number of request. |
| 1455 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1456 | * Response callback is IRadioResponse.getRadioCapabilityResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1457 | */ |
| 1458 | oneway getRadioCapability(int32_t serial); |
| 1459 | |
| 1460 | /* |
| 1461 | * Used to set the phones radio capability. Be VERY careful |
| 1462 | * using this request as it may cause some vendor modems to reset. Because |
| 1463 | * of the possible modem reset any radio commands after this one may not be |
| 1464 | * processed. |
| 1465 | * |
| 1466 | * @param serial Serial number of request. |
| 1467 | * @param rc RadioCapability structure to be set |
| 1468 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1469 | * Response callback is IRadioResponse.setRadioCapabilityResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1470 | */ |
| 1471 | oneway setRadioCapability(int32_t serial, RadioCapability rc); |
| 1472 | |
| 1473 | /* |
| 1474 | * Start Link Capacity Estimate (LCE) service if supported by the radio. |
| 1475 | * |
| 1476 | * @param serial Serial number of request. |
| 1477 | * @param reportInterval desired reporting interval (ms). |
| 1478 | * @param pullMode LCE service mode. true: PULL; false: PUSH. |
| 1479 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1480 | * Response callback is IRadioResponse.startLceServiceResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1481 | */ |
| 1482 | oneway startLceService(int32_t serial, int32_t reportInterval, bool pullMode); |
| 1483 | |
| 1484 | /* |
| 1485 | * Stop Link Capacity Estimate (LCE) service, the STOP operation must be |
| 1486 | * idempotent for the radio modem. |
| 1487 | * |
| 1488 | * @param serial Serial number of request. |
| 1489 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1490 | * Response callback is IRadioResponse.stopLceServiceResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1491 | */ |
| 1492 | oneway stopLceService(int32_t serial); |
| 1493 | |
| 1494 | /* |
| 1495 | * Pull LCE service for capacity information. |
| 1496 | * |
| 1497 | * @param serial Serial number of request. |
| 1498 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1499 | * Response callback is IRadioResponse.pullLceDataResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1500 | */ |
| 1501 | oneway pullLceData(int32_t serial); |
| 1502 | |
| 1503 | /* |
| 1504 | * Get modem activity information for power consumption estimation. |
| 1505 | * Request clear-on-read statistics information that is used for |
| 1506 | * estimating the per-millisecond power consumption of the cellular |
| 1507 | * modem. |
| 1508 | * |
| 1509 | * @param serial Serial number of request. |
| 1510 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1511 | * Response callback is IRadioResponse.getModemActivityInfoResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1512 | */ |
| 1513 | oneway getModemActivityInfo(int32_t serial); |
| 1514 | |
| 1515 | /* |
| 1516 | * Set carrier restrictions. Expected modem behavior: |
| 1517 | * If never receives this command |
| 1518 | * - Must allow all carriers |
| 1519 | * Receives this command with allAllowed true |
| 1520 | * - Must allow all carriers. If a previously allowed SIM is present, modem must not reload |
| 1521 | * the SIM. If a previously disallowed SIM is present, reload the SIM and notify Android. |
| 1522 | * Receives this command with a list of carriers & allAllowed = false |
| 1523 | * - Only allow specified carriers, persist across power cycles and FDR. If a present SIM |
| 1524 | * is in the allowed list, modem must not reload the SIM. If a present SIM is *not* in |
| 1525 | * the allowed list, modem must detach from the registered network and only keep emergency |
| 1526 | * service, and notify Android SIM refresh reset with new SIM state being |
| 1527 | * CardState:RESTRICTED. Emergency service must be enabled. |
| 1528 | * |
| 1529 | * @param serial Serial number of request. |
| 1530 | * @param allAllowed true only when all carriers are allowed. Ignore "carriers" struct. |
| 1531 | * If false, consider "carriers" struct |
| 1532 | * @param carriers CarrierRestrictions consisting allowed and excluded carriers as defined |
| 1533 | * in types.hal |
| 1534 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1535 | * Response callback is IRadioResponse.setAllowedCarriersResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1536 | */ |
| 1537 | oneway setAllowedCarriers(int32_t serial, bool allAllowed, CarrierRestrictions carriers); |
| 1538 | |
| 1539 | /* |
| 1540 | * Get carrier restrictions. |
| 1541 | * |
| 1542 | * @param serial Serial number of request. |
| 1543 | * |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1544 | * Response callback is IRadioResponse.getAllowedCarriersResponse() |
Sanket Padawe | d52335c | 2016-11-03 16:46:32 -0700 | [diff] [blame] | 1545 | */ |
| 1546 | oneway getAllowedCarriers(int32_t serial); |
Sanket Padawe | f6e345a | 2016-11-17 15:28:31 -0800 | [diff] [blame] | 1547 | |
| 1548 | /* |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1549 | * Send the updated device state. |
| 1550 | * This is providing the device state information for the modem to perform power saving |
| 1551 | * strategies. |
| 1552 | * |
| 1553 | * @param serial Serial number of request. |
| 1554 | * @param deviceStateType The updated device state type. |
| 1555 | * @param state The updated state. See the definition of state at DeviceStateType. |
| 1556 | * |
| 1557 | * Response callback is IRadioResponse.sendDeviceStateResponse() |
| 1558 | */ |
| 1559 | oneway sendDeviceState(int32_t serial, DeviceStateType deviceStateType, bool state); |
| 1560 | |
| 1561 | /* |
| 1562 | * Set the indication filter. |
| 1563 | * This is used to prevent unnecessary application processor wake up for power saving purposes |
| 1564 | * by suppressing the indications in certain scenarios. |
| 1565 | * |
| 1566 | * @param serial Serial number of request. |
| 1567 | * @param indicationFilter 32-bit bitmap of IndicationFilter. Bits set to 1 indicate the |
| 1568 | * indications are enabled. See IndicationFilter for the definition of each bit. |
| 1569 | * |
| 1570 | * Response callback is IRadioResponse.setIndicationFilterResponse() |
| 1571 | */ |
| 1572 | oneway setIndicationFilter(int32_t serial, bitfield<IndicationFilter> indicationFilter); |
| 1573 | |
| 1574 | /* |
Jack Yu | a211869 | 2017-02-15 15:31:34 -0800 | [diff] [blame^] | 1575 | * Set SIM card power state. |
| 1576 | * Request is equivalent to inserting or removing the card. |
| 1577 | * |
| 1578 | * The radio modem must generate IRadioIndication.simStatusChanged() as if the SIM had been |
| 1579 | * inserted or removed. |
| 1580 | * |
| 1581 | * @param serial Serial number of request |
| 1582 | * @param powerUp True if powering up the sim card |
| 1583 | * |
| 1584 | * Response callback is IRadioResponse.setSimCardPowerResponse() |
| 1585 | */ |
| 1586 | oneway setSimCardPower(int32_t serial, bool powerUp); |
| 1587 | |
| 1588 | /* |
Sanket Padawe | f6e345a | 2016-11-17 15:28:31 -0800 | [diff] [blame] | 1589 | * When response type received from a radio indication or radio response is |
| 1590 | * RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively, |
Jack Yu | ed7ef81 | 2017-01-24 11:56:52 -0800 | [diff] [blame] | 1591 | * acknowledge the receipt of those messages by sending responseAcknowledgement(). |
Sanket Padawe | f6e345a | 2016-11-17 15:28:31 -0800 | [diff] [blame] | 1592 | * |
| 1593 | */ |
| 1594 | oneway responseAcknowledgement(); |
Sanket Padawe | 865834e | 2016-12-28 16:04:10 -0800 | [diff] [blame] | 1595 | }; |