The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2006 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 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 17 | #ifndef ANDROID_RIL_H |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 18 | #define ANDROID_RIL_H 1 |
| 19 | |
| 20 | #include <stdlib.h> |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 21 | #include <stdint.h> |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 22 | #include <telephony/ril_cdma_sms.h> |
Jake Hamby | 8a4a233 | 2014-01-15 13:12:05 -0800 | [diff] [blame] | 23 | #include <telephony/ril_nv_items.h> |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 24 | #include <telephony/ril_msim.h> |
Jake Hamby | 8a4a233 | 2014-01-15 13:12:05 -0800 | [diff] [blame] | 25 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 26 | #ifndef FEATURE_UNIT_TEST |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 27 | #include <sys/time.h> |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 28 | #endif /* !FEATURE_UNIT_TEST */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 29 | |
| 30 | #ifdef __cplusplus |
| 31 | extern "C" { |
| 32 | #endif |
| 33 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 34 | |
| 35 | #if defined(ANDROID_SIM_COUNT_2) |
| 36 | #define SIM_COUNT 2 |
| 37 | #elif defined(ANDROID_SIM_COUNT_3) |
| 38 | #define SIM_COUNT 3 |
| 39 | #elif defined(ANDROID_SIM_COUNT_4) |
| 40 | #define SIM_COUNT 4 |
| 41 | #else |
| 42 | #define SIM_COUNT 1 |
| 43 | #endif |
| 44 | |
| 45 | #ifndef ANDROID_MULTI_SIM |
| 46 | #define SIM_COUNT 1 |
| 47 | #endif |
| 48 | |
Sukanya Rajkhowa | b44dda3 | 2014-06-02 14:03:44 -0700 | [diff] [blame^] | 49 | #define RIL_VERSION 11 /* Current version */ |
Alex Yakavenka | 45e740e | 2012-01-31 11:48:27 -0800 | [diff] [blame] | 50 | #define RIL_VERSION_MIN 6 /* Minimum RIL_VERSION supported */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 51 | |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 52 | #define CDMA_ALPHA_INFO_BUFFER_LENGTH 64 |
| 53 | #define CDMA_NUMBER_INFO_BUFFER_LENGTH 81 |
| 54 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 55 | #define MAX_RILDS 3 |
| 56 | #define MAX_SOCKET_NAME_LENGTH 6 |
| 57 | #define MAX_CLIENT_ID_LENGTH 2 |
| 58 | #define MAX_DEBUG_SOCKET_NAME_LENGTH 12 |
| 59 | #define MAX_QEMU_PIPE_NAME_LENGTH 11 |
Wink Saville | 8b4e4f7 | 2014-10-17 15:01:45 -0700 | [diff] [blame] | 60 | #define MAX_UUID_LENGTH 64 |
| 61 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 62 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 63 | typedef void * RIL_Token; |
| 64 | |
| 65 | typedef enum { |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 66 | RIL_SOCKET_1, |
| 67 | #if (SIM_COUNT >= 2) |
| 68 | RIL_SOCKET_2, |
| 69 | #if (SIM_COUNT >= 3) |
| 70 | RIL_SOCKET_3, |
| 71 | #endif |
| 72 | #if (SIM_COUNT >= 4) |
| 73 | RIL_SOCKET_4, |
| 74 | #endif |
| 75 | #endif |
| 76 | RIL_SOCKET_NUM |
| 77 | } RIL_SOCKET_ID; |
| 78 | |
| 79 | |
| 80 | typedef enum { |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 81 | RIL_E_SUCCESS = 0, |
| 82 | RIL_E_RADIO_NOT_AVAILABLE = 1, /* If radio did not start or is resetting */ |
| 83 | RIL_E_GENERIC_FAILURE = 2, |
| 84 | RIL_E_PASSWORD_INCORRECT = 3, /* for PIN/PIN2 methods only! */ |
| 85 | RIL_E_SIM_PIN2 = 4, /* Operation requires SIM PIN2 to be entered */ |
| 86 | RIL_E_SIM_PUK2 = 5, /* Operation requires SIM PIN2 to be entered */ |
| 87 | RIL_E_REQUEST_NOT_SUPPORTED = 6, |
| 88 | RIL_E_CANCELLED = 7, |
| 89 | RIL_E_OP_NOT_ALLOWED_DURING_VOICE_CALL = 8, /* data ops are not allowed during voice |
| 90 | call on a Class C GPRS device */ |
| 91 | RIL_E_OP_NOT_ALLOWED_BEFORE_REG_TO_NW = 9, /* data ops are not allowed before device |
| 92 | registers in network */ |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 93 | RIL_E_SMS_SEND_FAIL_RETRY = 10, /* fail to send sms and need retry */ |
| 94 | RIL_E_SIM_ABSENT = 11, /* fail to set the location where CDMA subscription |
| 95 | shall be retrieved because of SIM or RUIM |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 96 | card absent */ |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 97 | RIL_E_SUBSCRIPTION_NOT_AVAILABLE = 12, /* fail to find CDMA subscription from specified |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 98 | location */ |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 99 | RIL_E_MODE_NOT_SUPPORTED = 13, /* HW does not support preferred network type */ |
John Wang | 7553447 | 2010-04-20 15:11:42 -0700 | [diff] [blame] | 100 | RIL_E_FDN_CHECK_FAILURE = 14, /* command failed because recipient is not on FDN list */ |
Shishir Agrawal | 2458d8d | 2013-11-27 14:53:05 -0800 | [diff] [blame] | 101 | RIL_E_ILLEGAL_SIM_OR_ME = 15, /* network selection failed due to |
John Wang | 7553447 | 2010-04-20 15:11:42 -0700 | [diff] [blame] | 102 | illegal SIM or ME */ |
Shishir Agrawal | 2458d8d | 2013-11-27 14:53:05 -0800 | [diff] [blame] | 103 | RIL_E_MISSING_RESOURCE = 16, /* no logical channel available */ |
Amit Mahajan | 6bfaf64 | 2014-11-19 00:06:53 +0000 | [diff] [blame] | 104 | RIL_E_NO_SUCH_ELEMENT = 17, /* application not found on SIM */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 105 | } RIL_Errno; |
| 106 | |
| 107 | typedef enum { |
| 108 | RIL_CALL_ACTIVE = 0, |
| 109 | RIL_CALL_HOLDING = 1, |
| 110 | RIL_CALL_DIALING = 2, /* MO call only */ |
| 111 | RIL_CALL_ALERTING = 3, /* MO call only */ |
| 112 | RIL_CALL_INCOMING = 4, /* MT call only */ |
| 113 | RIL_CALL_WAITING = 5 /* MT call only */ |
| 114 | } RIL_CallState; |
| 115 | |
| 116 | typedef enum { |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 117 | RADIO_STATE_OFF = 0, /* Radio explictly powered off (eg CFUN=0) */ |
| 118 | RADIO_STATE_UNAVAILABLE = 1, /* Radio unavailable (eg, resetting or not booted) */ |
Naveen Kalla | 2bc78d6 | 2011-12-07 16:22:53 -0800 | [diff] [blame] | 119 | /* States 2-9 below are deprecated. Just leaving them here for backward compatibility. */ |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 120 | RADIO_STATE_SIM_NOT_READY = 2, /* Radio is on, but the SIM interface is not ready */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 121 | RADIO_STATE_SIM_LOCKED_OR_ABSENT = 3, /* SIM PIN locked, PUK required, network |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 122 | personalization locked, or SIM absent */ |
| 123 | RADIO_STATE_SIM_READY = 4, /* Radio is on and SIM interface is available */ |
| 124 | RADIO_STATE_RUIM_NOT_READY = 5, /* Radio is on, but the RUIM interface is not ready */ |
| 125 | RADIO_STATE_RUIM_READY = 6, /* Radio is on and the RUIM interface is available */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 126 | RADIO_STATE_RUIM_LOCKED_OR_ABSENT = 7, /* RUIM PIN locked, PUK required, network |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 127 | personalization locked, or RUIM absent */ |
| 128 | RADIO_STATE_NV_NOT_READY = 8, /* Radio is on, but the NV interface is not available */ |
Naveen Kalla | 2bc78d6 | 2011-12-07 16:22:53 -0800 | [diff] [blame] | 129 | RADIO_STATE_NV_READY = 9, /* Radio is on and the NV interface is available */ |
| 130 | RADIO_STATE_ON = 10 /* Radio is on */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 131 | } RIL_RadioState; |
| 132 | |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 133 | typedef enum { |
| 134 | RADIO_TECH_UNKNOWN = 0, |
| 135 | RADIO_TECH_GPRS = 1, |
| 136 | RADIO_TECH_EDGE = 2, |
| 137 | RADIO_TECH_UMTS = 3, |
| 138 | RADIO_TECH_IS95A = 4, |
| 139 | RADIO_TECH_IS95B = 5, |
| 140 | RADIO_TECH_1xRTT = 6, |
| 141 | RADIO_TECH_EVDO_0 = 7, |
| 142 | RADIO_TECH_EVDO_A = 8, |
| 143 | RADIO_TECH_HSDPA = 9, |
| 144 | RADIO_TECH_HSUPA = 10, |
| 145 | RADIO_TECH_HSPA = 11, |
| 146 | RADIO_TECH_EVDO_B = 12, |
| 147 | RADIO_TECH_EHRPD = 13, |
Glenn Kasten | c941961 | 2011-02-02 17:44:18 -0800 | [diff] [blame] | 148 | RADIO_TECH_LTE = 14, |
Naveen Kalla | 2bc78d6 | 2011-12-07 16:22:53 -0800 | [diff] [blame] | 149 | RADIO_TECH_HSPAP = 15, // HSPA+ |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 150 | RADIO_TECH_GSM = 16, // Only supports voice |
| 151 | RADIO_TECH_TD_SCDMA = 17 |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 152 | } RIL_RadioTechnology; |
| 153 | |
Wink Saville | 8b4e4f7 | 2014-10-17 15:01:45 -0700 | [diff] [blame] | 154 | typedef enum { |
| 155 | RAF_UNKNOWN = (1 << RADIO_TECH_UNKNOWN), |
| 156 | RAF_GPRS = (1 << RADIO_TECH_GPRS), |
| 157 | RAF_EDGE = (1 << RADIO_TECH_EDGE), |
| 158 | RAF_UMTS = (1 << RADIO_TECH_UMTS), |
| 159 | RAF_IS95A = (1 << RADIO_TECH_IS95A), |
| 160 | RAF_IS95B = (1 << RADIO_TECH_IS95B), |
| 161 | RAF_1xRTT = (1 << RADIO_TECH_1xRTT), |
| 162 | RAF_EVDO_0 = (1 << RADIO_TECH_EVDO_0), |
| 163 | RAF_EVDO_A = (1 << RADIO_TECH_EVDO_A), |
| 164 | RAF_HSDPA = (1 << RADIO_TECH_HSDPA), |
| 165 | RAF_HSUPA = (1 << RADIO_TECH_HSUPA), |
| 166 | RAF_HSPA = (1 << RADIO_TECH_HSPA), |
| 167 | RAF_EVDO_B = (1 << RADIO_TECH_EVDO_B), |
| 168 | RAF_EHRPD = (1 << RADIO_TECH_EHRPD), |
| 169 | RAF_LTE = (1 << RADIO_TECH_LTE), |
| 170 | RAF_HSPAP = (1 << RADIO_TECH_HSPAP), |
| 171 | RAF_GSM = (1 << RADIO_TECH_GSM), |
| 172 | RAF_TD_SCDMA = (1 << RADIO_TECH_TD_SCDMA), |
| 173 | } RIL_RadioAccessFamily; |
| 174 | |
| 175 | typedef enum { |
| 176 | RC_PHASE_CONFIGURED = 0, // LM is configured is initial value and value after FINISH completes |
| 177 | RC_PHASE_START = 1, // START is sent before Apply and indicates that an APPLY will be |
| 178 | // forthcoming with these same parameters |
| 179 | RC_PHASE_APPLY = 2, // APPLY is sent after all LM's receive START and returned |
| 180 | // RIL_RadioCapability.status = 0, if any START's fail no |
| 181 | // APPLY will be sent |
| 182 | RC_PHASE_UNSOL_RSP = 3, // UNSOL_RSP is sent with RIL_UNSOL_RADIO_CAPABILITY |
| 183 | RC_PHASE_FINISH = 4 // FINISH is sent after all commands have completed. If an error |
| 184 | // occurs in any previous command the RIL_RadioAccessesFamily and |
Legler Wu | 8caf06f | 2014-10-29 14:02:14 +0800 | [diff] [blame] | 185 | // logicalModemUuid fields will be the prior configuration thus |
Wink Saville | 8b4e4f7 | 2014-10-17 15:01:45 -0700 | [diff] [blame] | 186 | // restoring the configuration to the previous value. An error |
| 187 | // returned by this command will generally be ignored or may |
| 188 | // cause that logical modem to be removed from service. |
| 189 | } RadioCapabilityPhase; |
| 190 | |
| 191 | typedef enum { |
| 192 | RC_STATUS_NONE = 0, // This parameter has no meaning with RC_PHASE_START, |
| 193 | // RC_PHASE_APPLY |
| 194 | RC_STATUS_SUCCESS = 1, // Tell modem the action transaction of set radio |
| 195 | // capability was success with RC_PHASE_FINISH |
| 196 | RC_STATUS_FAIL = 2, // Tell modem the action transaction of set radio |
| 197 | // capability is fail with RC_PHASE_FINISH. |
| 198 | } RadioCapabilityStatus; |
| 199 | |
| 200 | #define RIL_RADIO_CAPABILITY_VERSION 1 |
| 201 | typedef struct { |
Legler Wu | 8caf06f | 2014-10-29 14:02:14 +0800 | [diff] [blame] | 202 | int version; // Version of structure, RIL_RADIO_CAPABILITY_VERSION |
Wink Saville | 8b4e4f7 | 2014-10-17 15:01:45 -0700 | [diff] [blame] | 203 | int session; // Unique session value defined by framework returned in all "responses/unsol" |
| 204 | int phase; // CONFIGURED, START, APPLY, FINISH |
| 205 | int rat; // RIL_RadioAccessFamily for the radio |
| 206 | char logicalModemUuid[MAX_UUID_LENGTH]; // A UUID typically "com.xxxx.lmX where X is the logical modem. |
| 207 | int status; // Return status and an input parameter for RC_PHASE_FINISH |
| 208 | } RIL_RadioCapability; |
| 209 | |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 210 | // Do we want to split Data from Voice and the use |
| 211 | // RIL_RadioTechnology for get/setPreferredVoice/Data ? |
| 212 | typedef enum { |
| 213 | PREF_NET_TYPE_GSM_WCDMA = 0, /* GSM/WCDMA (WCDMA preferred) */ |
| 214 | PREF_NET_TYPE_GSM_ONLY = 1, /* GSM only */ |
| 215 | PREF_NET_TYPE_WCDMA = 2, /* WCDMA */ |
| 216 | PREF_NET_TYPE_GSM_WCDMA_AUTO = 3, /* GSM/WCDMA (auto mode, according to PRL) */ |
| 217 | PREF_NET_TYPE_CDMA_EVDO_AUTO = 4, /* CDMA and EvDo (auto mode, according to PRL) */ |
| 218 | PREF_NET_TYPE_CDMA_ONLY = 5, /* CDMA only */ |
| 219 | PREF_NET_TYPE_EVDO_ONLY = 6, /* EvDo only */ |
| 220 | PREF_NET_TYPE_GSM_WCDMA_CDMA_EVDO_AUTO = 7, /* GSM/WCDMA, CDMA, and EvDo (auto mode, according to PRL) */ |
| 221 | PREF_NET_TYPE_LTE_CDMA_EVDO = 8, /* LTE, CDMA and EvDo */ |
| 222 | PREF_NET_TYPE_LTE_GSM_WCDMA = 9, /* LTE, GSM/WCDMA */ |
| 223 | PREF_NET_TYPE_LTE_CMDA_EVDO_GSM_WCDMA = 10, /* LTE, CDMA, EvDo, GSM/WCDMA */ |
Uma Maheswari Ramalingam | 0e09487 | 2011-09-28 13:25:48 -0700 | [diff] [blame] | 224 | PREF_NET_TYPE_LTE_ONLY = 11, /* LTE only */ |
| 225 | PREF_NET_TYPE_LTE_WCDMA = 12 /* LTE/WCDMA */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 226 | } RIL_PreferredNetworkType; |
| 227 | |
| 228 | /* Source for cdma subscription */ |
| 229 | typedef enum { |
| 230 | CDMA_SUBSCRIPTION_SOURCE_RUIM_SIM = 0, |
| 231 | CDMA_SUBSCRIPTION_SOURCE_NV = 1 |
| 232 | } RIL_CdmaSubscriptionSource; |
| 233 | |
Wink Saville | 74fa388 | 2009-12-22 15:35:41 -0800 | [diff] [blame] | 234 | /* User-to-User signaling Info activation types derived from 3GPP 23.087 v8.0 */ |
| 235 | typedef enum { |
| 236 | RIL_UUS_TYPE1_IMPLICIT = 0, |
| 237 | RIL_UUS_TYPE1_REQUIRED = 1, |
| 238 | RIL_UUS_TYPE1_NOT_REQUIRED = 2, |
| 239 | RIL_UUS_TYPE2_REQUIRED = 3, |
| 240 | RIL_UUS_TYPE2_NOT_REQUIRED = 4, |
| 241 | RIL_UUS_TYPE3_REQUIRED = 5, |
| 242 | RIL_UUS_TYPE3_NOT_REQUIRED = 6 |
| 243 | } RIL_UUS_Type; |
| 244 | |
| 245 | /* User-to-User Signaling Information data coding schemes. Possible values for |
| 246 | * Octet 3 (Protocol Discriminator field) in the UUIE. The values have been |
| 247 | * specified in section 10.5.4.25 of 3GPP TS 24.008 */ |
| 248 | typedef enum { |
| 249 | RIL_UUS_DCS_USP = 0, /* User specified protocol */ |
| 250 | RIL_UUS_DCS_OSIHLP = 1, /* OSI higher layer protocol */ |
| 251 | RIL_UUS_DCS_X244 = 2, /* X.244 */ |
| 252 | RIL_UUS_DCS_RMCF = 3, /* Reserved for system mangement |
| 253 | convergence function */ |
| 254 | RIL_UUS_DCS_IA5c = 4 /* IA5 characters */ |
| 255 | } RIL_UUS_DCS; |
| 256 | |
| 257 | /* User-to-User Signaling Information defined in 3GPP 23.087 v8.0 |
| 258 | * This data is passed in RIL_ExtensionRecord and rec contains this |
| 259 | * structure when type is RIL_UUS_INFO_EXT_REC */ |
| 260 | typedef struct { |
| 261 | RIL_UUS_Type uusType; /* UUS Type */ |
| 262 | RIL_UUS_DCS uusDcs; /* UUS Data Coding Scheme */ |
| 263 | int uusLength; /* Length of UUS Data */ |
| 264 | char * uusData; /* UUS Data */ |
| 265 | } RIL_UUS_Info; |
| 266 | |
| 267 | /* CDMA Signal Information Record as defined in C.S0005 section 3.7.5.5 */ |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 268 | typedef struct { |
| 269 | char isPresent; /* non-zero if signal information record is present */ |
| 270 | char signalType; /* as defined 3.7.5.5-1 */ |
| 271 | char alertPitch; /* as defined 3.7.5.5-2 */ |
| 272 | char signal; /* as defined 3.7.5.5-3, 3.7.5.5-4 or 3.7.5.5-5 */ |
| 273 | } RIL_CDMA_SignalInfoRecord; |
| 274 | |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 275 | typedef struct { |
| 276 | RIL_CallState state; |
| 277 | int index; /* Connection Index for use with, eg, AT+CHLD */ |
| 278 | int toa; /* type of address, eg 145 = intl */ |
| 279 | char isMpty; /* nonzero if is mpty call */ |
| 280 | char isMT; /* nonzero if call is mobile terminated */ |
| 281 | char als; /* ALS line indicator if available |
| 282 | (0 = line 1) */ |
| 283 | char isVoice; /* nonzero if this is is a voice call */ |
| 284 | char isVoicePrivacy; /* nonzero if CDMA voice privacy mode is active */ |
| 285 | char * number; /* Remote party number */ |
| 286 | int numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown 3=Payphone */ |
| 287 | char * name; /* Remote party name */ |
| 288 | int namePresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown 3=Payphone */ |
Wink Saville | 74fa388 | 2009-12-22 15:35:41 -0800 | [diff] [blame] | 289 | RIL_UUS_Info * uusInfo; /* NULL or Pointer to User-User Signaling Information */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 290 | } RIL_Call; |
| 291 | |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 292 | /* Deprecated, use RIL_Data_Call_Response_v6 */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 293 | typedef struct { |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 294 | int cid; /* Context ID, uniquely identifies this call */ |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 295 | int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */ |
Lorenzo Colitti | 4f81dcf | 2010-09-01 19:38:57 -0700 | [diff] [blame] | 296 | char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1. |
| 297 | For example, "IP", "IPV6", "IPV4V6", or "PPP". */ |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 298 | char * apn; /* ignored */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 299 | char * address; /* An address, e.g., "192.0.1.3" or "2001:db8::1". */ |
| 300 | } RIL_Data_Call_Response_v4; |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 301 | |
| 302 | /* |
| 303 | * Returned by RIL_REQUEST_SETUP_DATA_CALL, RIL_REQUEST_DATA_CALL_LIST |
| 304 | * and RIL_UNSOL_DATA_CALL_LIST_CHANGED, on error status != 0. |
| 305 | */ |
| 306 | typedef struct { |
| 307 | int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */ |
Kazuhiro Ondo | beb25b5 | 2011-06-17 16:26:45 -0500 | [diff] [blame] | 308 | int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry |
| 309 | back-off timer value RIL wants to override the one |
| 310 | pre-configured in FW. |
| 311 | The unit is miliseconds. |
| 312 | The value < 0 means no value is suggested. |
Kazuhiro Ondo | 1615758 | 2011-07-24 07:56:32 -0700 | [diff] [blame] | 313 | The value 0 means retry should be done ASAP. |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 314 | The value of INT_MAX(0x7fffffff) means no retry. */ |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 315 | int cid; /* Context ID, uniquely identifies this call */ |
| 316 | int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */ |
| 317 | char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1. |
| 318 | For example, "IP", "IPV6", "IPV4V6", or "PPP". If status is |
| 319 | PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED this is the type supported |
| 320 | such as "IP" or "IPV6" */ |
| 321 | char * ifname; /* The network interface name */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 322 | char * addresses; /* A space-delimited list of addresses with optional "/" prefix length, |
| 323 | e.g., "192.0.1.3" or "192.0.1.11/16 2001:db8::1/64". |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 324 | May not be empty, typically 1 IPv4 or 1 IPv6 or |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 325 | one of each. If the prefix length is absent the addresses |
| 326 | are assumed to be point to point with IPv4 having a prefix |
| 327 | length of 32 and IPv6 128. */ |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 328 | char * dnses; /* A space-delimited list of DNS server addresses, |
| 329 | e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". |
| 330 | May be empty. */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 331 | char * gateways; /* A space-delimited list of default gateway addresses, |
| 332 | e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". |
| 333 | May be empty in which case the addresses represent point |
| 334 | to point connections. */ |
| 335 | } RIL_Data_Call_Response_v6; |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 336 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 337 | typedef struct { |
| 338 | int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */ |
| 339 | int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry |
| 340 | back-off timer value RIL wants to override the one |
| 341 | pre-configured in FW. |
| 342 | The unit is miliseconds. |
| 343 | The value < 0 means no value is suggested. |
| 344 | The value 0 means retry should be done ASAP. |
| 345 | The value of INT_MAX(0x7fffffff) means no retry. */ |
| 346 | int cid; /* Context ID, uniquely identifies this call */ |
| 347 | int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */ |
| 348 | char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1. |
| 349 | For example, "IP", "IPV6", "IPV4V6", or "PPP". If status is |
| 350 | PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED this is the type supported |
| 351 | such as "IP" or "IPV6" */ |
| 352 | char * ifname; /* The network interface name */ |
| 353 | char * addresses; /* A space-delimited list of addresses with optional "/" prefix length, |
| 354 | e.g., "192.0.1.3" or "192.0.1.11/16 2001:db8::1/64". |
| 355 | May not be empty, typically 1 IPv4 or 1 IPv6 or |
| 356 | one of each. If the prefix length is absent the addresses |
| 357 | are assumed to be point to point with IPv4 having a prefix |
| 358 | length of 32 and IPv6 128. */ |
| 359 | char * dnses; /* A space-delimited list of DNS server addresses, |
| 360 | e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". |
| 361 | May be empty. */ |
| 362 | char * gateways; /* A space-delimited list of default gateway addresses, |
| 363 | e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". |
| 364 | May be empty in which case the addresses represent point |
| 365 | to point connections. */ |
| 366 | char * pcscf; /* the Proxy Call State Control Function address |
| 367 | via PCO(Protocol Configuration Option) for IMS client. */ |
Sukanya Rajkhowa | b44dda3 | 2014-06-02 14:03:44 -0700 | [diff] [blame^] | 368 | } RIL_Data_Call_Response_v9; |
| 369 | |
| 370 | typedef struct { |
| 371 | int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */ |
| 372 | int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry |
| 373 | back-off timer value RIL wants to override the one |
| 374 | pre-configured in FW. |
| 375 | The unit is miliseconds. |
| 376 | The value < 0 means no value is suggested. |
| 377 | The value 0 means retry should be done ASAP. |
| 378 | The value of INT_MAX(0x7fffffff) means no retry. */ |
| 379 | int cid; /* Context ID, uniquely identifies this call */ |
| 380 | int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */ |
| 381 | char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1. |
| 382 | For example, "IP", "IPV6", "IPV4V6", or "PPP". If status is |
| 383 | PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED this is the type supported |
| 384 | such as "IP" or "IPV6" */ |
| 385 | char * ifname; /* The network interface name */ |
| 386 | char * addresses; /* A space-delimited list of addresses with optional "/" prefix length, |
| 387 | e.g., "192.0.1.3" or "192.0.1.11/16 2001:db8::1/64". |
| 388 | May not be empty, typically 1 IPv4 or 1 IPv6 or |
| 389 | one of each. If the prefix length is absent the addresses |
| 390 | are assumed to be point to point with IPv4 having a prefix |
| 391 | length of 32 and IPv6 128. */ |
| 392 | char * dnses; /* A space-delimited list of DNS server addresses, |
| 393 | e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". |
| 394 | May be empty. */ |
| 395 | char * gateways; /* A space-delimited list of default gateway addresses, |
| 396 | e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". |
| 397 | May be empty in which case the addresses represent point |
| 398 | to point connections. */ |
| 399 | char * pcscf; /* the Proxy Call State Control Function address |
| 400 | via PCO(Protocol Configuration Option) for IMS client. */ |
| 401 | int mtu; /* MTU received from network |
| 402 | Value <= 0 means network has either not sent a value or |
| 403 | sent an invalid value */ |
| 404 | } RIL_Data_Call_Response_v11; |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 405 | |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 406 | typedef enum { |
| 407 | RADIO_TECH_3GPP = 1, /* 3GPP Technologies - GSM, WCDMA */ |
| 408 | RADIO_TECH_3GPP2 = 2 /* 3GPP2 Technologies - CDMA */ |
| 409 | } RIL_RadioTechnologyFamily; |
| 410 | |
| 411 | typedef struct { |
| 412 | RIL_RadioTechnologyFamily tech; |
| 413 | unsigned char retry; /* 0 == not retry, nonzero == retry */ |
| 414 | int messageRef; /* Valid field if retry is set to nonzero. |
| 415 | Contains messageRef from RIL_SMS_Response |
| 416 | corresponding to failed MO SMS. |
| 417 | */ |
| 418 | |
| 419 | union { |
| 420 | /* Valid field if tech is RADIO_TECH_3GPP2. See RIL_REQUEST_CDMA_SEND_SMS */ |
| 421 | RIL_CDMA_SMS_Message* cdmaMessage; |
| 422 | |
| 423 | /* Valid field if tech is RADIO_TECH_3GPP. See RIL_REQUEST_SEND_SMS */ |
| 424 | char** gsmMessage; |
| 425 | } message; |
| 426 | } RIL_IMS_SMS_Message; |
| 427 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 428 | typedef struct { |
Tammo Spalink | 8e3a2ca | 2009-09-11 11:26:30 +0800 | [diff] [blame] | 429 | int messageRef; /* TP-Message-Reference for GSM, |
| 430 | and BearerData MessageId for CDMA |
| 431 | (See 3GPP2 C.S0015-B, v2.0, table 4.5-1). */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 432 | char *ackPDU; /* or NULL if n/a */ |
Jaikumar Ganesh | 920c78f | 2009-06-04 10:53:15 -0700 | [diff] [blame] | 433 | int errorCode; /* See 3GPP 27.005, 3.2.5 for GSM/UMTS, |
| 434 | 3GPP2 N.S0005 (IS-41C) Table 171 for CDMA, |
| 435 | -1 if unknown or not applicable*/ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 436 | } RIL_SMS_Response; |
| 437 | |
| 438 | /** Used by RIL_REQUEST_WRITE_SMS_TO_SIM */ |
| 439 | typedef struct { |
| 440 | int status; /* Status of message. See TS 27.005 3.1, "<stat>": */ |
| 441 | /* 0 = "REC UNREAD" */ |
| 442 | /* 1 = "REC READ" */ |
| 443 | /* 2 = "STO UNSENT" */ |
| 444 | /* 3 = "STO SENT" */ |
johnwang | f8bc167 | 2009-05-14 19:19:47 -0700 | [diff] [blame] | 445 | char * pdu; /* PDU of message to write, as an ASCII hex string less the SMSC address, |
| 446 | the TP-layer length is "strlen(pdu)/2". */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 447 | char * smsc; /* SMSC address in GSM BCD format prefixed by a length byte |
| 448 | (as expected by TS 27.005) or NULL for default SMSC */ |
| 449 | } RIL_SMS_WriteArgs; |
| 450 | |
| 451 | /** Used by RIL_REQUEST_DIAL */ |
| 452 | typedef struct { |
| 453 | char * address; |
| 454 | int clir; |
| 455 | /* (same as 'n' paremeter in TS 27.007 7.7 "+CLIR" |
| 456 | * clir == 0 on "use subscription default value" |
| 457 | * clir == 1 on "CLIR invocation" (restrict CLI presentation) |
| 458 | * clir == 2 on "CLIR suppression" (allow CLI presentation) |
| 459 | */ |
Wink Saville | 74fa388 | 2009-12-22 15:35:41 -0800 | [diff] [blame] | 460 | RIL_UUS_Info * uusInfo; /* NULL or Pointer to User-User Signaling Information */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 461 | } RIL_Dial; |
| 462 | |
| 463 | typedef struct { |
| 464 | int command; /* one of the commands listed for TS 27.007 +CRSM*/ |
| 465 | int fileid; /* EF id */ |
| 466 | char *path; /* "pathid" from TS 27.007 +CRSM command. |
| 467 | Path is in hex asciii format eg "7f205f70" |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 468 | Path must always be provided. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 469 | */ |
| 470 | int p1; |
| 471 | int p2; |
| 472 | int p3; |
| 473 | char *data; /* May be NULL*/ |
| 474 | char *pin2; /* May be NULL*/ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 475 | } RIL_SIM_IO_v5; |
| 476 | |
| 477 | typedef struct { |
| 478 | int command; /* one of the commands listed for TS 27.007 +CRSM*/ |
| 479 | int fileid; /* EF id */ |
| 480 | char *path; /* "pathid" from TS 27.007 +CRSM command. |
| 481 | Path is in hex asciii format eg "7f205f70" |
| 482 | Path must always be provided. |
| 483 | */ |
| 484 | int p1; |
| 485 | int p2; |
| 486 | int p3; |
| 487 | char *data; /* May be NULL*/ |
| 488 | char *pin2; /* May be NULL*/ |
| 489 | char *aidPtr; /* AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. */ |
| 490 | } RIL_SIM_IO_v6; |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 491 | |
Shishir Agrawal | 2458d8d | 2013-11-27 14:53:05 -0800 | [diff] [blame] | 492 | /* Used by RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL and |
| 493 | * RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC. */ |
| 494 | typedef struct { |
| 495 | int sessionid; /* "sessionid" from TS 27.007 +CGLA command. Should be |
| 496 | ignored for +CSIM command. */ |
| 497 | |
| 498 | /* Following fields are used to derive the APDU ("command" and "length" |
| 499 | values in TS 27.007 +CSIM and +CGLA commands). */ |
| 500 | int cla; |
| 501 | int instruction; |
| 502 | int p1; |
| 503 | int p2; |
| 504 | int p3; /* A negative P3 implies a 4 byte APDU. */ |
| 505 | char *data; /* May be NULL. In hex string format. */ |
| 506 | } RIL_SIM_APDU; |
| 507 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 508 | typedef struct { |
| 509 | int sw1; |
| 510 | int sw2; |
Amit Mahajan | 2875bc2 | 2014-08-06 10:03:15 -0700 | [diff] [blame] | 511 | char *simResponse; /* In hex string format ([a-fA-F0-9]*), except for SIM_AUTHENTICATION |
| 512 | response for which it is in Base64 format, see 3GPP TS 31.102 7.1.2 */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 513 | } RIL_SIM_IO_Response; |
| 514 | |
| 515 | /* See also com.android.internal.telephony.gsm.CallForwardInfo */ |
| 516 | |
| 517 | typedef struct { |
| 518 | int status; /* |
| 519 | * For RIL_REQUEST_QUERY_CALL_FORWARD_STATUS |
| 520 | * status 1 = active, 0 = not active |
| 521 | * |
| 522 | * For RIL_REQUEST_SET_CALL_FORWARD: |
| 523 | * status is: |
| 524 | * 0 = disable |
| 525 | * 1 = enable |
| 526 | * 2 = interrogate |
| 527 | * 3 = registeration |
| 528 | * 4 = erasure |
| 529 | */ |
| 530 | |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 531 | int reason; /* from TS 27.007 7.11 "reason" */ |
| 532 | int serviceClass;/* From 27.007 +CCFC/+CLCK "class" |
| 533 | See table for Android mapping from |
| 534 | MMI service code |
| 535 | 0 means user doesn't input class */ |
| 536 | int toa; /* "type" from TS 27.007 7.11 */ |
| 537 | char * number; /* "number" from TS 27.007 7.11. May be NULL */ |
| 538 | int timeSeconds; /* for CF no reply only */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 539 | }RIL_CallForwardInfo; |
| 540 | |
| 541 | typedef struct { |
johnwang | e0ba6a9 | 2009-09-11 19:14:52 -0700 | [diff] [blame] | 542 | char * cid; /* Combination of LAC and Cell Id in 32 bits in GSM. |
| 543 | * Upper 16 bits is LAC and lower 16 bits |
| 544 | * is CID (as described in TS 27.005) |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 545 | * Primary Scrambling Code (as described in TS 25.331) |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 546 | * in 9 bits in UMTS |
johnwang | e0ba6a9 | 2009-09-11 19:14:52 -0700 | [diff] [blame] | 547 | * Valid values are hexadecimal 0x0000 - 0xffffffff. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 548 | */ |
johnwang | e0ba6a9 | 2009-09-11 19:14:52 -0700 | [diff] [blame] | 549 | int rssi; /* Received RSSI in GSM, |
| 550 | * Level index of CPICH Received Signal Code Power in UMTS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 551 | */ |
| 552 | } RIL_NeighboringCell; |
| 553 | |
| 554 | /* See RIL_REQUEST_LAST_CALL_FAIL_CAUSE */ |
| 555 | typedef enum { |
Naveen Kalla | 1b3a6fe | 2010-04-21 16:44:37 -0700 | [diff] [blame] | 556 | CALL_FAIL_UNOBTAINABLE_NUMBER = 1, |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 557 | CALL_FAIL_NORMAL = 16, |
| 558 | CALL_FAIL_BUSY = 17, |
| 559 | CALL_FAIL_CONGESTION = 34, |
| 560 | CALL_FAIL_ACM_LIMIT_EXCEEDED = 68, |
| 561 | CALL_FAIL_CALL_BARRED = 240, |
| 562 | CALL_FAIL_FDN_BLOCKED = 241, |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 563 | CALL_FAIL_IMSI_UNKNOWN_IN_VLR = 242, |
| 564 | CALL_FAIL_IMEI_NOT_ACCEPTED = 243, |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 565 | CALL_FAIL_CDMA_LOCKED_UNTIL_POWER_CYCLE = 1000, |
| 566 | CALL_FAIL_CDMA_DROP = 1001, |
| 567 | CALL_FAIL_CDMA_INTERCEPT = 1002, |
| 568 | CALL_FAIL_CDMA_REORDER = 1003, |
| 569 | CALL_FAIL_CDMA_SO_REJECT = 1004, |
| 570 | CALL_FAIL_CDMA_RETRY_ORDER = 1005, |
| 571 | CALL_FAIL_CDMA_ACCESS_FAILURE = 1006, |
| 572 | CALL_FAIL_CDMA_PREEMPTED = 1007, |
| 573 | CALL_FAIL_CDMA_NOT_EMERGENCY = 1008, /* For non-emergency number dialed |
| 574 | during emergency callback mode */ |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 575 | CALL_FAIL_CDMA_ACCESS_BLOCKED = 1009, /* CDMA network access probes blocked */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 576 | CALL_FAIL_ERROR_UNSPECIFIED = 0xffff |
| 577 | } RIL_LastCallFailCause; |
| 578 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 579 | /* See RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 580 | typedef enum { |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 581 | PDP_FAIL_NONE = 0, /* No error, connection ok */ |
| 582 | |
| 583 | /* an integer cause code defined in TS 24.008 |
| 584 | section 6.1.3.1.3 or TS 24.301 Release 8+ Annex B. |
| 585 | If the implementation does not have access to the exact cause codes, |
| 586 | then it should return one of the following values, |
| 587 | as the UI layer needs to distinguish these |
| 588 | cases for error notification and potential retries. */ |
Jaikumar Ganesh | d6aa2e3 | 2009-05-04 11:09:46 -0700 | [diff] [blame] | 589 | PDP_FAIL_OPERATOR_BARRED = 0x08, /* no retry */ |
| 590 | PDP_FAIL_INSUFFICIENT_RESOURCES = 0x1A, |
| 591 | PDP_FAIL_MISSING_UKNOWN_APN = 0x1B, /* no retry */ |
| 592 | PDP_FAIL_UNKNOWN_PDP_ADDRESS_TYPE = 0x1C, /* no retry */ |
| 593 | PDP_FAIL_USER_AUTHENTICATION = 0x1D, /* no retry */ |
| 594 | PDP_FAIL_ACTIVATION_REJECT_GGSN = 0x1E, /* no retry */ |
| 595 | PDP_FAIL_ACTIVATION_REJECT_UNSPECIFIED = 0x1F, |
| 596 | PDP_FAIL_SERVICE_OPTION_NOT_SUPPORTED = 0x20, /* no retry */ |
| 597 | PDP_FAIL_SERVICE_OPTION_NOT_SUBSCRIBED = 0x21, /* no retry */ |
| 598 | PDP_FAIL_SERVICE_OPTION_OUT_OF_ORDER = 0x22, |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 599 | PDP_FAIL_NSAPI_IN_USE = 0x23, /* no retry */ |
Hui Wang | 11e8b23 | 2014-09-19 16:40:17 -0500 | [diff] [blame] | 600 | PDP_FAIL_REGULAR_DEACTIVATION = 0x24, /* possibly restart radio, |
| 601 | based on framework config */ |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 602 | PDP_FAIL_ONLY_IPV4_ALLOWED = 0x32, /* no retry */ |
| 603 | PDP_FAIL_ONLY_IPV6_ALLOWED = 0x33, /* no retry */ |
| 604 | PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED = 0x34, |
Jaikumar Ganesh | d6aa2e3 | 2009-05-04 11:09:46 -0700 | [diff] [blame] | 605 | PDP_FAIL_PROTOCOL_ERRORS = 0x6F, /* no retry */ |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 606 | |
Jaikumar Ganesh | d6aa2e3 | 2009-05-04 11:09:46 -0700 | [diff] [blame] | 607 | /* Not mentioned in the specification */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 608 | PDP_FAIL_VOICE_REGISTRATION_FAIL = -1, |
| 609 | PDP_FAIL_DATA_REGISTRATION_FAIL = -2, |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 610 | |
| 611 | /* reasons for data call drop - network/modem disconnect */ |
Wink Saville | 3492c6e | 2013-10-03 13:53:27 -0700 | [diff] [blame] | 612 | PDP_FAIL_SIGNAL_LOST = -3, |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 613 | PDP_FAIL_PREF_RADIO_TECH_CHANGED = -4,/* preferred technology has changed, should retry |
| 614 | with parameters appropriate for new technology */ |
| 615 | PDP_FAIL_RADIO_POWER_OFF = -5, /* data call was disconnected because radio was resetting, |
| 616 | powered off - no retry */ |
| 617 | PDP_FAIL_TETHERED_CALL_ACTIVE = -6, /* data call was disconnected by modem because tethered |
| 618 | mode was up on same APN/data profile - no retry until |
| 619 | tethered call is off */ |
| 620 | |
| 621 | PDP_FAIL_ERROR_UNSPECIFIED = 0xffff, /* retry silently */ |
| 622 | } RIL_DataCallFailCause; |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 623 | |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 624 | /* See RIL_REQUEST_SETUP_DATA_CALL */ |
| 625 | typedef enum { |
| 626 | RIL_DATA_PROFILE_DEFAULT = 0, |
| 627 | RIL_DATA_PROFILE_TETHERED = 1, |
Hui Wang | 8d67962 | 2014-10-16 14:59:27 -0500 | [diff] [blame] | 628 | RIL_DATA_PROFILE_IMS = 2, |
| 629 | RIL_DATA_PROFILE_FOTA = 3, |
| 630 | RIL_DATA_PROFILE_CBS = 4, |
| 631 | RIL_DATA_PROFILE_OEM_BASE = 1000, /* Start of OEM-specific profiles */ |
| 632 | RIL_DATA_PROFILE_INVALID = 0xFFFFFFFF |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 633 | } RIL_DataProfile; |
| 634 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 635 | /* Used by RIL_UNSOL_SUPP_SVC_NOTIFICATION */ |
| 636 | typedef struct { |
| 637 | int notificationType; /* |
| 638 | * 0 = MO intermediate result code |
| 639 | * 1 = MT unsolicited result code |
| 640 | */ |
| 641 | int code; /* See 27.007 7.17 |
| 642 | "code1" for MO |
| 643 | "code2" for MT. */ |
| 644 | int index; /* CUG index. See 27.007 7.17. */ |
| 645 | int type; /* "type" from 27.007 7.17 (MT only). */ |
| 646 | char * number; /* "number" from 27.007 7.17 |
| 647 | (MT only, may be NULL). */ |
| 648 | } RIL_SuppSvcNotification; |
| 649 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 650 | #define RIL_CARD_MAX_APPS 8 |
| 651 | |
| 652 | typedef enum { |
| 653 | RIL_CARDSTATE_ABSENT = 0, |
| 654 | RIL_CARDSTATE_PRESENT = 1, |
| 655 | RIL_CARDSTATE_ERROR = 2 |
| 656 | } RIL_CardState; |
| 657 | |
| 658 | typedef enum { |
| 659 | RIL_PERSOSUBSTATE_UNKNOWN = 0, /* initial state */ |
| 660 | RIL_PERSOSUBSTATE_IN_PROGRESS = 1, /* in between each lock transition */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 661 | RIL_PERSOSUBSTATE_READY = 2, /* when either SIM or RUIM Perso is finished |
| 662 | since each app can only have 1 active perso |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 663 | involved */ |
| 664 | RIL_PERSOSUBSTATE_SIM_NETWORK = 3, |
| 665 | RIL_PERSOSUBSTATE_SIM_NETWORK_SUBSET = 4, |
| 666 | RIL_PERSOSUBSTATE_SIM_CORPORATE = 5, |
| 667 | RIL_PERSOSUBSTATE_SIM_SERVICE_PROVIDER = 6, |
| 668 | RIL_PERSOSUBSTATE_SIM_SIM = 7, |
| 669 | RIL_PERSOSUBSTATE_SIM_NETWORK_PUK = 8, /* The corresponding perso lock is blocked */ |
| 670 | RIL_PERSOSUBSTATE_SIM_NETWORK_SUBSET_PUK = 9, |
| 671 | RIL_PERSOSUBSTATE_SIM_CORPORATE_PUK = 10, |
| 672 | RIL_PERSOSUBSTATE_SIM_SERVICE_PROVIDER_PUK = 11, |
| 673 | RIL_PERSOSUBSTATE_SIM_SIM_PUK = 12, |
| 674 | RIL_PERSOSUBSTATE_RUIM_NETWORK1 = 13, |
| 675 | RIL_PERSOSUBSTATE_RUIM_NETWORK2 = 14, |
| 676 | RIL_PERSOSUBSTATE_RUIM_HRPD = 15, |
| 677 | RIL_PERSOSUBSTATE_RUIM_CORPORATE = 16, |
| 678 | RIL_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER = 17, |
| 679 | RIL_PERSOSUBSTATE_RUIM_RUIM = 18, |
| 680 | RIL_PERSOSUBSTATE_RUIM_NETWORK1_PUK = 19, /* The corresponding perso lock is blocked */ |
| 681 | RIL_PERSOSUBSTATE_RUIM_NETWORK2_PUK = 20, |
| 682 | RIL_PERSOSUBSTATE_RUIM_HRPD_PUK = 21, |
| 683 | RIL_PERSOSUBSTATE_RUIM_CORPORATE_PUK = 22, |
| 684 | RIL_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER_PUK = 23, |
| 685 | RIL_PERSOSUBSTATE_RUIM_RUIM_PUK = 24 |
| 686 | } RIL_PersoSubstate; |
| 687 | |
| 688 | typedef enum { |
| 689 | RIL_APPSTATE_UNKNOWN = 0, |
| 690 | RIL_APPSTATE_DETECTED = 1, |
| 691 | RIL_APPSTATE_PIN = 2, /* If PIN1 or UPin is required */ |
| 692 | RIL_APPSTATE_PUK = 3, /* If PUK1 or Puk for UPin is required */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 693 | RIL_APPSTATE_SUBSCRIPTION_PERSO = 4, /* perso_substate should be look at |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 694 | when app_state is assigned to this value */ |
| 695 | RIL_APPSTATE_READY = 5 |
| 696 | } RIL_AppState; |
| 697 | |
| 698 | typedef enum { |
| 699 | RIL_PINSTATE_UNKNOWN = 0, |
| 700 | RIL_PINSTATE_ENABLED_NOT_VERIFIED = 1, |
| 701 | RIL_PINSTATE_ENABLED_VERIFIED = 2, |
| 702 | RIL_PINSTATE_DISABLED = 3, |
| 703 | RIL_PINSTATE_ENABLED_BLOCKED = 4, |
| 704 | RIL_PINSTATE_ENABLED_PERM_BLOCKED = 5 |
| 705 | } RIL_PinState; |
| 706 | |
| 707 | typedef enum { |
| 708 | RIL_APPTYPE_UNKNOWN = 0, |
| 709 | RIL_APPTYPE_SIM = 1, |
| 710 | RIL_APPTYPE_USIM = 2, |
| 711 | RIL_APPTYPE_RUIM = 3, |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 712 | RIL_APPTYPE_CSIM = 4, |
| 713 | RIL_APPTYPE_ISIM = 5 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 714 | } RIL_AppType; |
| 715 | |
| 716 | typedef struct |
| 717 | { |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 718 | RIL_AppType app_type; |
| 719 | RIL_AppState app_state; |
| 720 | RIL_PersoSubstate perso_substate; /* applicable only if app_state == |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 721 | RIL_APPSTATE_SUBSCRIPTION_PERSO */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 722 | char *aid_ptr; /* null terminated string, e.g., from 0xA0, 0x00 -> 0x41, |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 723 | 0x30, 0x30, 0x30 */ |
| 724 | char *app_label_ptr; /* null terminated string */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 725 | int pin1_replaced; /* applicable to USIM, CSIM & ISIM */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 726 | RIL_PinState pin1; |
| 727 | RIL_PinState pin2; |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 728 | } RIL_AppStatus; |
| 729 | |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 730 | /* Deprecated, use RIL_CardStatus_v6 */ |
| 731 | typedef struct |
| 732 | { |
| 733 | RIL_CardState card_state; |
| 734 | RIL_PinState universal_pin_state; /* applicable to USIM and CSIM: RIL_PINSTATE_xxx */ |
| 735 | int gsm_umts_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ |
| 736 | int cdma_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ |
| 737 | int num_applications; /* value <= RIL_CARD_MAX_APPS */ |
| 738 | RIL_AppStatus applications[RIL_CARD_MAX_APPS]; |
| 739 | } RIL_CardStatus_v5; |
| 740 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 741 | typedef struct |
| 742 | { |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 743 | RIL_CardState card_state; |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 744 | RIL_PinState universal_pin_state; /* applicable to USIM and CSIM: RIL_PINSTATE_xxx */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 745 | int gsm_umts_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ |
| 746 | int cdma_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ |
| 747 | int ims_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 748 | int num_applications; /* value <= RIL_CARD_MAX_APPS */ |
| 749 | RIL_AppStatus applications[RIL_CARD_MAX_APPS]; |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 750 | } RIL_CardStatus_v6; |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 751 | |
Alex Yakavenka | 45e740e | 2012-01-31 11:48:27 -0800 | [diff] [blame] | 752 | /** The result of a SIM refresh, returned in data[0] of RIL_UNSOL_SIM_REFRESH |
| 753 | * or as part of RIL_SimRefreshResponse_v7 |
| 754 | */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 755 | typedef enum { |
| 756 | /* A file on SIM has been updated. data[1] contains the EFID. */ |
| 757 | SIM_FILE_UPDATE = 0, |
Alex Yakavenka | 45e740e | 2012-01-31 11:48:27 -0800 | [diff] [blame] | 758 | /* SIM initialized. All files should be re-read. */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 759 | SIM_INIT = 1, |
| 760 | /* SIM reset. SIM power required, SIM may be locked and all files should be re-read. */ |
| 761 | SIM_RESET = 2 |
| 762 | } RIL_SimRefreshResult; |
| 763 | |
Alex Yakavenka | 45e740e | 2012-01-31 11:48:27 -0800 | [diff] [blame] | 764 | typedef struct { |
| 765 | RIL_SimRefreshResult result; |
| 766 | int ef_id; /* is the EFID of the updated file if the result is */ |
| 767 | /* SIM_FILE_UPDATE or 0 for any other result. */ |
| 768 | char * aid; /* is AID(application ID) of the card application */ |
| 769 | /* See ETSI 102.221 8.1 and 101.220 4 */ |
| 770 | /* For SIM_FILE_UPDATE result it can be set to AID of */ |
| 771 | /* application in which updated EF resides or it can be */ |
| 772 | /* NULL if EF is outside of an application. */ |
| 773 | /* For SIM_INIT result this field is set to AID of */ |
| 774 | /* application that caused REFRESH */ |
| 775 | /* For SIM_RESET result it is NULL. */ |
| 776 | } RIL_SimRefreshResponse_v7; |
| 777 | |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 778 | /* Deprecated, use RIL_CDMA_CallWaiting_v6 */ |
| 779 | typedef struct { |
| 780 | char * number; /* Remote party number */ |
| 781 | int numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown */ |
| 782 | char * name; /* Remote party name */ |
| 783 | RIL_CDMA_SignalInfoRecord signalInfoRecord; |
| 784 | } RIL_CDMA_CallWaiting_v5; |
| 785 | |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 786 | typedef struct { |
| 787 | char * number; /* Remote party number */ |
| 788 | int numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown */ |
| 789 | char * name; /* Remote party name */ |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 790 | RIL_CDMA_SignalInfoRecord signalInfoRecord; |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 791 | /* Number type/Number plan required to support International Call Waiting */ |
| 792 | int number_type; /* 0=Unknown, 1=International, 2=National, |
| 793 | 3=Network specific, 4=subscriber */ |
| 794 | int number_plan; /* 0=Unknown, 1=ISDN, 3=Data, 4=Telex, 8=Nat'l, 9=Private */ |
| 795 | } RIL_CDMA_CallWaiting_v6; |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 796 | |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 797 | /** |
| 798 | * Which types of Cell Broadcast Message (CBM) are to be received by the ME |
| 799 | * |
| 800 | * uFromServiceID - uToServiceID defines a range of CBM message identifiers |
| 801 | * whose value is 0x0000 - 0xFFFF as defined in TS 23.041 9.4.1.2.2 for GMS |
| 802 | * and 9.4.4.2.2 for UMTS. All other values can be treated as empty |
| 803 | * CBM message ID. |
| 804 | * |
| 805 | * uFromCodeScheme - uToCodeScheme defines a range of CBM data coding schemes |
| 806 | * whose value is 0x00 - 0xFF as defined in TS 23.041 9.4.1.2.3 for GMS |
| 807 | * and 9.4.4.2.3 for UMTS. |
| 808 | * All other values can be treated as empty CBM data coding scheme. |
| 809 | * |
| 810 | * selected 0 means message types specified in <fromServiceId, toServiceId> |
| 811 | * and <fromCodeScheme, toCodeScheme>are not accepted, while 1 means accepted. |
| 812 | * |
| 813 | * Used by RIL_REQUEST_GSM_GET_BROADCAST_CONFIG and |
| 814 | * RIL_REQUEST_GSM_SET_BROADCAST_CONFIG. |
| 815 | */ |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 816 | typedef struct { |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 817 | int fromServiceId; |
| 818 | int toServiceId; |
| 819 | int fromCodeScheme; |
| 820 | int toCodeScheme; |
| 821 | unsigned char selected; |
| 822 | } RIL_GSM_BroadcastSmsConfigInfo; |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 823 | |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 824 | /* No restriction at all including voice/SMS/USSD/SS/AV64 and packet data. */ |
| 825 | #define RIL_RESTRICTED_STATE_NONE 0x00 |
| 826 | /* Block emergency call due to restriction. But allow all normal voice/SMS/USSD/SS/AV64. */ |
| 827 | #define RIL_RESTRICTED_STATE_CS_EMERGENCY 0x01 |
| 828 | /* Block all normal voice/SMS/USSD/SS/AV64 due to restriction. Only Emergency call allowed. */ |
| 829 | #define RIL_RESTRICTED_STATE_CS_NORMAL 0x02 |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 830 | /* Block all voice/SMS/USSD/SS/AV64 including emergency call due to restriction.*/ |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 831 | #define RIL_RESTRICTED_STATE_CS_ALL 0x04 |
| 832 | /* Block packet data access due to restriction. */ |
| 833 | #define RIL_RESTRICTED_STATE_PS_ALL 0x10 |
| 834 | |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 835 | /* The status for an OTASP/OTAPA session */ |
| 836 | typedef enum { |
| 837 | CDMA_OTA_PROVISION_STATUS_SPL_UNLOCKED, |
| 838 | CDMA_OTA_PROVISION_STATUS_SPC_RETRIES_EXCEEDED, |
| 839 | CDMA_OTA_PROVISION_STATUS_A_KEY_EXCHANGED, |
| 840 | CDMA_OTA_PROVISION_STATUS_SSD_UPDATED, |
| 841 | CDMA_OTA_PROVISION_STATUS_NAM_DOWNLOADED, |
| 842 | CDMA_OTA_PROVISION_STATUS_MDN_DOWNLOADED, |
| 843 | CDMA_OTA_PROVISION_STATUS_IMSI_DOWNLOADED, |
| 844 | CDMA_OTA_PROVISION_STATUS_PRL_DOWNLOADED, |
| 845 | CDMA_OTA_PROVISION_STATUS_COMMITTED, |
| 846 | CDMA_OTA_PROVISION_STATUS_OTAPA_STARTED, |
| 847 | CDMA_OTA_PROVISION_STATUS_OTAPA_STOPPED, |
| 848 | CDMA_OTA_PROVISION_STATUS_OTAPA_ABORTED |
| 849 | } RIL_CDMA_OTA_ProvisionStatus; |
| 850 | |
| 851 | typedef struct { |
| 852 | int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ |
| 853 | int bitErrorRate; /* bit error rate (0-7, 99) as defined in TS 27.007 8.5 */ |
| 854 | } RIL_GW_SignalStrength; |
| 855 | |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 856 | typedef struct { |
| 857 | int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ |
| 858 | int bitErrorRate; /* bit error rate (0-7, 99) as defined in TS 27.007 8.5 */ |
| 859 | } RIL_SignalStrengthWcdma; |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 860 | |
| 861 | typedef struct { |
| 862 | int dbm; /* Valid values are positive integers. This value is the actual RSSI value |
| 863 | * multiplied by -1. Example: If the actual RSSI is -75, then this response |
| 864 | * value will be 75. |
| 865 | */ |
| 866 | int ecio; /* Valid values are positive integers. This value is the actual Ec/Io multiplied |
| 867 | * by -10. Example: If the actual Ec/Io is -12.5 dB, then this response value |
| 868 | * will be 125. |
| 869 | */ |
| 870 | } RIL_CDMA_SignalStrength; |
| 871 | |
| 872 | |
| 873 | typedef struct { |
| 874 | int dbm; /* Valid values are positive integers. This value is the actual RSSI value |
| 875 | * multiplied by -1. Example: If the actual RSSI is -75, then this response |
| 876 | * value will be 75. |
| 877 | */ |
| 878 | int ecio; /* Valid values are positive integers. This value is the actual Ec/Io multiplied |
| 879 | * by -10. Example: If the actual Ec/Io is -12.5 dB, then this response value |
| 880 | * will be 125. |
| 881 | */ |
| 882 | int signalNoiseRatio; /* Valid values are 0-8. 8 is the highest signal to noise ratio. */ |
| 883 | } RIL_EVDO_SignalStrength; |
| 884 | |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 885 | typedef struct { |
| 886 | int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ |
Wink Saville | 473adc9 | 2011-06-13 10:24:09 -0700 | [diff] [blame] | 887 | int rsrp; /* The current Reference Signal Receive Power in dBm multipled by -1. |
| 888 | * Range: 44 to 140 dBm |
| 889 | * INT_MAX: 0x7FFFFFFF denotes invalid value. |
| 890 | * Reference: 3GPP TS 36.133 9.1.4 */ |
| 891 | int rsrq; /* The current Reference Signal Receive Quality in dB multiplied by -1. |
| 892 | * Range: 20 to 3 dB. |
| 893 | * INT_MAX: 0x7FFFFFFF denotes invalid value. |
| 894 | * Reference: 3GPP TS 36.133 9.1.7 */ |
| 895 | int rssnr; /* The current reference signal signal-to-noise ratio in 0.1 dB units. |
| 896 | * Range: -200 to +300 (-200 = -20.0 dB, +300 = 30dB). |
| 897 | * INT_MAX : 0x7FFFFFFF denotes invalid value. |
| 898 | * Reference: 3GPP TS 36.101 8.1.1 */ |
| 899 | int cqi; /* The current Channel Quality Indicator. |
| 900 | * Range: 0 to 15. |
| 901 | * INT_MAX : 0x7FFFFFFF denotes invalid value. |
| 902 | * Reference: 3GPP TS 36.101 9.2, 9.3, A.4 */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 903 | } RIL_LTE_SignalStrength; |
| 904 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 905 | typedef struct { |
| 906 | int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ |
| 907 | int rsrp; /* The current Reference Signal Receive Power in dBm multipled by -1. |
| 908 | * Range: 44 to 140 dBm |
| 909 | * INT_MAX: 0x7FFFFFFF denotes invalid value. |
| 910 | * Reference: 3GPP TS 36.133 9.1.4 */ |
| 911 | int rsrq; /* The current Reference Signal Receive Quality in dB multiplied by -1. |
| 912 | * Range: 20 to 3 dB. |
| 913 | * INT_MAX: 0x7FFFFFFF denotes invalid value. |
| 914 | * Reference: 3GPP TS 36.133 9.1.7 */ |
| 915 | int rssnr; /* The current reference signal signal-to-noise ratio in 0.1 dB units. |
| 916 | * Range: -200 to +300 (-200 = -20.0 dB, +300 = 30dB). |
| 917 | * INT_MAX : 0x7FFFFFFF denotes invalid value. |
| 918 | * Reference: 3GPP TS 36.101 8.1.1 */ |
| 919 | int cqi; /* The current Channel Quality Indicator. |
| 920 | * Range: 0 to 15. |
| 921 | * INT_MAX : 0x7FFFFFFF denotes invalid value. |
| 922 | * Reference: 3GPP TS 36.101 9.2, 9.3, A.4 */ |
| 923 | int timingAdvance; /* timing advance in micro seconds for a one way trip from cell to device. |
| 924 | * Approximate distance can be calculated using 300m/us * timingAdvance. |
| 925 | * Range: 0 to 0x7FFFFFFE |
| 926 | * INT_MAX : 0x7FFFFFFF denotes invalid value. |
| 927 | * Reference: 3GPP 36.321 section 6.1.3.5 |
| 928 | * also: http://www.cellular-planningoptimization.com/2010/02/timing-advance-with-calculation.html */ |
| 929 | } RIL_LTE_SignalStrength_v8; |
| 930 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 931 | typedef struct { |
| 932 | int rscp; /* The Received Signal Code Power in dBm multipled by -1. |
| 933 | * Range : 25 to 120 |
| 934 | * INT_MAX: 0x7FFFFFFF denotes invalid value. |
| 935 | * Reference: 3GPP TS 25.123, section 9.1.1.1 */ |
| 936 | } RIL_TD_SCDMA_SignalStrength; |
| 937 | |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 938 | /* Deprecated, use RIL_SignalStrength_v6 */ |
| 939 | typedef struct { |
| 940 | RIL_GW_SignalStrength GW_SignalStrength; |
| 941 | RIL_CDMA_SignalStrength CDMA_SignalStrength; |
| 942 | RIL_EVDO_SignalStrength EVDO_SignalStrength; |
| 943 | } RIL_SignalStrength_v5; |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 944 | |
| 945 | typedef struct { |
| 946 | RIL_GW_SignalStrength GW_SignalStrength; |
| 947 | RIL_CDMA_SignalStrength CDMA_SignalStrength; |
| 948 | RIL_EVDO_SignalStrength EVDO_SignalStrength; |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 949 | RIL_LTE_SignalStrength LTE_SignalStrength; |
| 950 | } RIL_SignalStrength_v6; |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 951 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 952 | typedef struct { |
| 953 | RIL_GW_SignalStrength GW_SignalStrength; |
| 954 | RIL_CDMA_SignalStrength CDMA_SignalStrength; |
| 955 | RIL_EVDO_SignalStrength EVDO_SignalStrength; |
| 956 | RIL_LTE_SignalStrength_v8 LTE_SignalStrength; |
| 957 | } RIL_SignalStrength_v8; |
| 958 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 959 | typedef struct { |
| 960 | RIL_GW_SignalStrength GW_SignalStrength; |
| 961 | RIL_CDMA_SignalStrength CDMA_SignalStrength; |
| 962 | RIL_EVDO_SignalStrength EVDO_SignalStrength; |
| 963 | RIL_LTE_SignalStrength_v8 LTE_SignalStrength; |
| 964 | RIL_TD_SCDMA_SignalStrength TD_SCDMA_SignalStrength; |
| 965 | } RIL_SignalStrength_v10; |
| 966 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 967 | /** RIL_CellIdentityGsm */ |
| 968 | typedef struct { |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 969 | int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ |
| 970 | int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ |
| 971 | int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ |
| 972 | int cid; /* 16-bit GSM Cell Identity described in TS 27.007, 0..65535, INT_MAX if unknown */ |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 973 | } RIL_CellIdentityGsm; |
| 974 | |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 975 | /** RIL_CellIdentityWcdma */ |
| 976 | typedef struct { |
| 977 | int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ |
| 978 | int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ |
| 979 | int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ |
| 980 | int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */ |
| 981 | int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511, INT_MAX if unknown */ |
| 982 | } RIL_CellIdentityWcdma; |
| 983 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 984 | /** RIL_CellIdentityCdma */ |
| 985 | typedef struct { |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 986 | int networkId; /* Network Id 0..65535, INT_MAX if unknown */ |
| 987 | int systemId; /* CDMA System Id 0..32767, INT_MAX if unknown */ |
| 988 | int basestationId; /* Base Station Id 0..65535, INT_MAX if unknown */ |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 989 | int longitude; /* Longitude is a decimal number as specified in 3GPP2 C.S0005-A v6.0. |
| 990 | * It is represented in units of 0.25 seconds and ranges from -2592000 |
| 991 | * to 2592000, both values inclusive (corresponding to a range of -180 |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 992 | * to +180 degrees). INT_MAX if unknown */ |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 993 | |
| 994 | int latitude; /* Latitude is a decimal number as specified in 3GPP2 C.S0005-A v6.0. |
| 995 | * It is represented in units of 0.25 seconds and ranges from -1296000 |
| 996 | * to 1296000, both values inclusive (corresponding to a range of -90 |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 997 | * to +90 degrees). INT_MAX if unknown */ |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 998 | } RIL_CellIdentityCdma; |
| 999 | |
| 1000 | /** RIL_CellIdentityLte */ |
| 1001 | typedef struct { |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 1002 | int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ |
| 1003 | int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ |
| 1004 | int ci; /* 28-bit Cell Identity described in TS ???, INT_MAX if unknown */ |
| 1005 | int pci; /* physical cell id 0..503, INT_MAX if unknown */ |
| 1006 | int tac; /* 16-bit tracking area code, INT_MAX if unknown */ |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 1007 | } RIL_CellIdentityLte; |
| 1008 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 1009 | /** RIL_CellIdentityTdscdma */ |
| 1010 | typedef struct { |
| 1011 | int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ |
| 1012 | int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ |
| 1013 | int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ |
| 1014 | int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */ |
| 1015 | int cpid; /* 8-bit Cell Parameters ID described in TS 25.331, 0..127, INT_MAX if unknown */ |
| 1016 | } RIL_CellIdentityTdscdma; |
| 1017 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 1018 | /** RIL_CellInfoGsm */ |
| 1019 | typedef struct { |
| 1020 | RIL_CellIdentityGsm cellIdentityGsm; |
| 1021 | RIL_GW_SignalStrength signalStrengthGsm; |
| 1022 | } RIL_CellInfoGsm; |
| 1023 | |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 1024 | /** RIL_CellInfoWcdma */ |
| 1025 | typedef struct { |
| 1026 | RIL_CellIdentityWcdma cellIdentityWcdma; |
| 1027 | RIL_SignalStrengthWcdma signalStrengthWcdma; |
| 1028 | } RIL_CellInfoWcdma; |
| 1029 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 1030 | /** RIL_CellInfoCdma */ |
| 1031 | typedef struct { |
| 1032 | RIL_CellIdentityCdma cellIdentityCdma; |
| 1033 | RIL_CDMA_SignalStrength signalStrengthCdma; |
| 1034 | RIL_EVDO_SignalStrength signalStrengthEvdo; |
| 1035 | } RIL_CellInfoCdma; |
| 1036 | |
| 1037 | /** RIL_CellInfoLte */ |
| 1038 | typedef struct { |
| 1039 | RIL_CellIdentityLte cellIdentityLte; |
| 1040 | RIL_LTE_SignalStrength_v8 signalStrengthLte; |
| 1041 | } RIL_CellInfoLte; |
| 1042 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 1043 | /** RIL_CellInfoTdscdma */ |
| 1044 | typedef struct { |
| 1045 | RIL_CellIdentityTdscdma cellIdentityTdscdma; |
| 1046 | RIL_TD_SCDMA_SignalStrength signalStrengthTdscdma; |
| 1047 | } RIL_CellInfoTdscdma; |
| 1048 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 1049 | // Must be the same as CellInfo.TYPE_XXX |
| 1050 | typedef enum { |
| 1051 | RIL_CELL_INFO_TYPE_GSM = 1, |
| 1052 | RIL_CELL_INFO_TYPE_CDMA = 2, |
| 1053 | RIL_CELL_INFO_TYPE_LTE = 3, |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 1054 | RIL_CELL_INFO_TYPE_WCDMA = 4, |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 1055 | RIL_CELL_INFO_TYPE_TD_SCDMA = 5 |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 1056 | } RIL_CellInfoType; |
| 1057 | |
| 1058 | // Must be the same as CellInfo.TIMESTAMP_TYPE_XXX |
| 1059 | typedef enum { |
| 1060 | RIL_TIMESTAMP_TYPE_UNKNOWN = 0, |
| 1061 | RIL_TIMESTAMP_TYPE_ANTENNA = 1, |
| 1062 | RIL_TIMESTAMP_TYPE_MODEM = 2, |
| 1063 | RIL_TIMESTAMP_TYPE_OEM_RIL = 3, |
| 1064 | RIL_TIMESTAMP_TYPE_JAVA_RIL = 4, |
| 1065 | } RIL_TimeStampType; |
| 1066 | |
| 1067 | typedef struct { |
| 1068 | RIL_CellInfoType cellInfoType; /* cell type for selecting from union CellInfo */ |
| 1069 | int registered; /* !0 if this cell is registered 0 if not registered */ |
| 1070 | RIL_TimeStampType timeStampType; /* type of time stamp represented by timeStamp */ |
| 1071 | uint64_t timeStamp; /* Time in nanos as returned by ril_nano_time */ |
| 1072 | union { |
| 1073 | RIL_CellInfoGsm gsm; |
| 1074 | RIL_CellInfoCdma cdma; |
| 1075 | RIL_CellInfoLte lte; |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 1076 | RIL_CellInfoWcdma wcdma; |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 1077 | RIL_CellInfoTdscdma tdscdma; |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 1078 | } CellInfo; |
| 1079 | } RIL_CellInfo; |
| 1080 | |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1081 | /* Names of the CDMA info records (C.S0005 section 3.7.5) */ |
| 1082 | typedef enum { |
| 1083 | RIL_CDMA_DISPLAY_INFO_REC, |
| 1084 | RIL_CDMA_CALLED_PARTY_NUMBER_INFO_REC, |
| 1085 | RIL_CDMA_CALLING_PARTY_NUMBER_INFO_REC, |
| 1086 | RIL_CDMA_CONNECTED_NUMBER_INFO_REC, |
| 1087 | RIL_CDMA_SIGNAL_INFO_REC, |
| 1088 | RIL_CDMA_REDIRECTING_NUMBER_INFO_REC, |
| 1089 | RIL_CDMA_LINE_CONTROL_INFO_REC, |
| 1090 | RIL_CDMA_EXTENDED_DISPLAY_INFO_REC, |
| 1091 | RIL_CDMA_T53_CLIR_INFO_REC, |
| 1092 | RIL_CDMA_T53_RELEASE_INFO_REC, |
| 1093 | RIL_CDMA_T53_AUDIO_CONTROL_INFO_REC |
| 1094 | } RIL_CDMA_InfoRecName; |
| 1095 | |
| 1096 | /* Display Info Rec as defined in C.S0005 section 3.7.5.1 |
| 1097 | Extended Display Info Rec as defined in C.S0005 section 3.7.5.16 |
| 1098 | Note: the Extended Display info rec contains multiple records of the |
| 1099 | form: display_tag, display_len, and display_len occurrences of the |
| 1100 | chari field if the display_tag is not 10000000 or 10000001. |
| 1101 | To save space, the records are stored consecutively in a byte buffer. |
| 1102 | The display_tag, display_len and chari fields are all 1 byte. |
| 1103 | */ |
| 1104 | |
| 1105 | typedef struct { |
| 1106 | char alpha_len; |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 1107 | char alpha_buf[CDMA_ALPHA_INFO_BUFFER_LENGTH]; |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1108 | } RIL_CDMA_DisplayInfoRecord; |
| 1109 | |
| 1110 | /* Called Party Number Info Rec as defined in C.S0005 section 3.7.5.2 |
| 1111 | Calling Party Number Info Rec as defined in C.S0005 section 3.7.5.3 |
| 1112 | Connected Number Info Rec as defined in C.S0005 section 3.7.5.4 |
| 1113 | */ |
| 1114 | |
| 1115 | typedef struct { |
| 1116 | char len; |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 1117 | char buf[CDMA_NUMBER_INFO_BUFFER_LENGTH]; |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1118 | char number_type; |
| 1119 | char number_plan; |
| 1120 | char pi; |
| 1121 | char si; |
| 1122 | } RIL_CDMA_NumberInfoRecord; |
| 1123 | |
| 1124 | /* Redirecting Number Information Record as defined in C.S0005 section 3.7.5.11 */ |
| 1125 | typedef enum { |
| 1126 | RIL_REDIRECTING_REASON_UNKNOWN = 0, |
| 1127 | RIL_REDIRECTING_REASON_CALL_FORWARDING_BUSY = 1, |
| 1128 | RIL_REDIRECTING_REASON_CALL_FORWARDING_NO_REPLY = 2, |
| 1129 | RIL_REDIRECTING_REASON_CALLED_DTE_OUT_OF_ORDER = 9, |
| 1130 | RIL_REDIRECTING_REASON_CALL_FORWARDING_BY_THE_CALLED_DTE = 10, |
| 1131 | RIL_REDIRECTING_REASON_CALL_FORWARDING_UNCONDITIONAL = 15, |
| 1132 | RIL_REDIRECTING_REASON_RESERVED |
| 1133 | } RIL_CDMA_RedirectingReason; |
| 1134 | |
| 1135 | typedef struct { |
| 1136 | RIL_CDMA_NumberInfoRecord redirectingNumber; |
| 1137 | /* redirectingReason is set to RIL_REDIRECTING_REASON_UNKNOWN if not included */ |
| 1138 | RIL_CDMA_RedirectingReason redirectingReason; |
| 1139 | } RIL_CDMA_RedirectingNumberInfoRecord; |
| 1140 | |
| 1141 | /* Line Control Information Record as defined in C.S0005 section 3.7.5.15 */ |
| 1142 | typedef struct { |
| 1143 | char lineCtrlPolarityIncluded; |
| 1144 | char lineCtrlToggle; |
| 1145 | char lineCtrlReverse; |
| 1146 | char lineCtrlPowerDenial; |
| 1147 | } RIL_CDMA_LineControlInfoRecord; |
| 1148 | |
| 1149 | /* T53 CLIR Information Record */ |
| 1150 | typedef struct { |
| 1151 | char cause; |
| 1152 | } RIL_CDMA_T53_CLIRInfoRecord; |
| 1153 | |
| 1154 | /* T53 Audio Control Information Record */ |
| 1155 | typedef struct { |
| 1156 | char upLink; |
| 1157 | char downLink; |
| 1158 | } RIL_CDMA_T53_AudioControlInfoRecord; |
| 1159 | |
| 1160 | typedef struct { |
| 1161 | |
| 1162 | RIL_CDMA_InfoRecName name; |
| 1163 | |
| 1164 | union { |
| 1165 | /* Display and Extended Display Info Rec */ |
| 1166 | RIL_CDMA_DisplayInfoRecord display; |
| 1167 | |
| 1168 | /* Called Party Number, Calling Party Number, Connected Number Info Rec */ |
| 1169 | RIL_CDMA_NumberInfoRecord number; |
| 1170 | |
| 1171 | /* Signal Info Rec */ |
| 1172 | RIL_CDMA_SignalInfoRecord signal; |
| 1173 | |
| 1174 | /* Redirecting Number Info Rec */ |
| 1175 | RIL_CDMA_RedirectingNumberInfoRecord redir; |
| 1176 | |
| 1177 | /* Line Control Info Rec */ |
| 1178 | RIL_CDMA_LineControlInfoRecord lineCtrl; |
| 1179 | |
| 1180 | /* T53 CLIR Info Rec */ |
| 1181 | RIL_CDMA_T53_CLIRInfoRecord clir; |
| 1182 | |
| 1183 | /* T53 Audio Control Info Rec */ |
| 1184 | RIL_CDMA_T53_AudioControlInfoRecord audioCtrl; |
| 1185 | } rec; |
| 1186 | } RIL_CDMA_InformationRecord; |
| 1187 | |
| 1188 | #define RIL_CDMA_MAX_NUMBER_OF_INFO_RECS 10 |
| 1189 | |
| 1190 | typedef struct { |
| 1191 | char numberOfInfoRecs; |
| 1192 | RIL_CDMA_InformationRecord infoRec[RIL_CDMA_MAX_NUMBER_OF_INFO_RECS]; |
| 1193 | } RIL_CDMA_InformationRecords; |
| 1194 | |
Jake Hamby | 8a4a233 | 2014-01-15 13:12:05 -0800 | [diff] [blame] | 1195 | /* See RIL_REQUEST_NV_READ_ITEM */ |
| 1196 | typedef struct { |
| 1197 | RIL_NV_Item itemID; |
| 1198 | } RIL_NV_ReadItem; |
| 1199 | |
| 1200 | /* See RIL_REQUEST_NV_WRITE_ITEM */ |
| 1201 | typedef struct { |
| 1202 | RIL_NV_Item itemID; |
| 1203 | char * value; |
| 1204 | } RIL_NV_WriteItem; |
| 1205 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 1206 | typedef enum { |
| 1207 | HANDOVER_STARTED = 0, |
| 1208 | HANDOVER_COMPLETED = 1, |
| 1209 | HANDOVER_FAILED = 2, |
| 1210 | HANDOVER_CANCELED = 3 |
| 1211 | } RIL_SrvccState; |
| 1212 | |
| 1213 | /* hardware configuration reported to RILJ. */ |
| 1214 | typedef enum { |
| 1215 | RIL_HARDWARE_CONFIG_MODEM = 0, |
| 1216 | RIL_HARDWARE_CONFIG_SIM = 1, |
| 1217 | } RIL_HardwareConfig_Type; |
| 1218 | |
| 1219 | typedef enum { |
| 1220 | RIL_HARDWARE_CONFIG_STATE_ENABLED = 0, |
| 1221 | RIL_HARDWARE_CONFIG_STATE_STANDBY = 1, |
| 1222 | RIL_HARDWARE_CONFIG_STATE_DISABLED = 2, |
| 1223 | } RIL_HardwareConfig_State; |
| 1224 | |
| 1225 | typedef struct { |
| 1226 | int rilModel; |
| 1227 | uint32_t rat; /* bitset - ref. RIL_RadioTechnology. */ |
| 1228 | int maxVoice; |
| 1229 | int maxData; |
| 1230 | int maxStandby; |
| 1231 | } RIL_HardwareConfig_Modem; |
| 1232 | |
| 1233 | typedef struct { |
Wink Saville | 8b4e4f7 | 2014-10-17 15:01:45 -0700 | [diff] [blame] | 1234 | char modemUuid[MAX_UUID_LENGTH]; |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 1235 | } RIL_HardwareConfig_Sim; |
| 1236 | |
| 1237 | typedef struct { |
| 1238 | RIL_HardwareConfig_Type type; |
Wink Saville | 8b4e4f7 | 2014-10-17 15:01:45 -0700 | [diff] [blame] | 1239 | char uuid[MAX_UUID_LENGTH]; |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 1240 | RIL_HardwareConfig_State state; |
| 1241 | union { |
| 1242 | RIL_HardwareConfig_Modem modem; |
| 1243 | RIL_HardwareConfig_Sim sim; |
| 1244 | } cfg; |
| 1245 | } RIL_HardwareConfig; |
| 1246 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1247 | /** |
Wink Saville | c29360a | 2014-07-13 05:17:28 -0700 | [diff] [blame] | 1248 | * Data connection power state |
| 1249 | */ |
| 1250 | typedef enum { |
| 1251 | RIL_DC_POWER_STATE_LOW = 1, // Low power state |
| 1252 | RIL_DC_POWER_STATE_MEDIUM = 2, // Medium power state |
| 1253 | RIL_DC_POWER_STATE_HIGH = 3, // High power state |
| 1254 | RIL_DC_POWER_STATE_UNKNOWN = INT32_MAX // Unknown state |
| 1255 | } RIL_DcPowerStates; |
| 1256 | |
| 1257 | /** |
| 1258 | * Data connection real time info |
| 1259 | */ |
| 1260 | typedef struct { |
| 1261 | uint64_t time; // Time in nanos as returned by ril_nano_time |
| 1262 | RIL_DcPowerStates powerState; // Current power state |
| 1263 | } RIL_DcRtInfo; |
| 1264 | |
Amit Mahajan | c796e22 | 2014-08-13 16:54:01 +0000 | [diff] [blame] | 1265 | /** |
| 1266 | * Data profile to modem |
| 1267 | */ |
| 1268 | typedef struct { |
| 1269 | /* id of the data profile */ |
| 1270 | int profileId; |
| 1271 | /* the APN to connect to */ |
| 1272 | char* apn; |
| 1273 | /** one of the PDP_type values in TS 27.007 section 10.1.1. |
| 1274 | * For example, "IP", "IPV6", "IPV4V6", or "PPP". |
| 1275 | */ |
| 1276 | char* protocol; |
| 1277 | /** authentication protocol used for this PDP context |
| 1278 | * (None: 0, PAP: 1, CHAP: 2, PAP&CHAP: 3) |
| 1279 | */ |
| 1280 | int authType; |
| 1281 | /* the username for APN, or NULL */ |
| 1282 | char* user; |
| 1283 | /* the password for APN, or NULL */ |
| 1284 | char* password; |
| 1285 | /* the profile type, TYPE_COMMON-0, TYPE_3GPP-1, TYPE_3GPP2-2 */ |
| 1286 | int type; |
| 1287 | /* the period in seconds to limit the maximum connections */ |
| 1288 | int maxConnsTime; |
| 1289 | /* the maximum connections during maxConnsTime */ |
| 1290 | int maxConns; |
| 1291 | /** the required wait time in seconds after a successful UE initiated |
| 1292 | * disconnect of a given PDN connection before the device can send |
| 1293 | * a new PDN connection request for that given PDN |
| 1294 | */ |
| 1295 | int waitTime; |
| 1296 | /* true to enable the profile, 0 to disable, 1 to enable */ |
| 1297 | int enabled; |
| 1298 | } RIL_DataProfileInfo; |
Wink Saville | c29360a | 2014-07-13 05:17:28 -0700 | [diff] [blame] | 1299 | |
| 1300 | /** |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1301 | * RIL_REQUEST_GET_SIM_STATUS |
| 1302 | * |
| 1303 | * Requests status of the SIM interface and the SIM card |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1304 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1305 | * "data" is NULL |
| 1306 | * |
Wink Saville | fd72937 | 2011-02-22 16:19:39 -0800 | [diff] [blame] | 1307 | * "response" is const RIL_CardStatus_v6 * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1308 | * |
| 1309 | * Valid errors: |
| 1310 | * Must never fail |
| 1311 | */ |
| 1312 | #define RIL_REQUEST_GET_SIM_STATUS 1 |
| 1313 | |
| 1314 | /** |
| 1315 | * RIL_REQUEST_ENTER_SIM_PIN |
| 1316 | * |
John Wang | 309ac29 | 2009-07-30 14:53:23 -0700 | [diff] [blame] | 1317 | * Supplies SIM PIN. Only called if RIL_CardStatus has RIL_APPSTATE_PIN state |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1318 | * |
| 1319 | * "data" is const char ** |
| 1320 | * ((const char **)data)[0] is PIN value |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1321 | * ((const char **)data)[1] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1322 | * |
jsh | 593c910 | 2009-06-24 16:13:44 -0700 | [diff] [blame] | 1323 | * "response" is int * |
| 1324 | * ((int *)response)[0] is the number of retries remaining, or -1 if unknown |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1325 | * |
| 1326 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1327 | * |
| 1328 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1329 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1330 | * GENERIC_FAILURE |
| 1331 | * PASSWORD_INCORRECT |
| 1332 | */ |
| 1333 | |
| 1334 | #define RIL_REQUEST_ENTER_SIM_PIN 2 |
| 1335 | |
Amit Mahajan | 6bfaf64 | 2014-11-19 00:06:53 +0000 | [diff] [blame] | 1336 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1337 | /** |
| 1338 | * RIL_REQUEST_ENTER_SIM_PUK |
| 1339 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1340 | * Supplies SIM PUK and new PIN. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1341 | * |
| 1342 | * "data" is const char ** |
| 1343 | * ((const char **)data)[0] is PUK value |
| 1344 | * ((const char **)data)[1] is new PIN value |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1345 | * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1346 | * |
jsh | 593c910 | 2009-06-24 16:13:44 -0700 | [diff] [blame] | 1347 | * "response" is int * |
| 1348 | * ((int *)response)[0] is the number of retries remaining, or -1 if unknown |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1349 | * |
| 1350 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1351 | * |
| 1352 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1353 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1354 | * GENERIC_FAILURE |
| 1355 | * PASSWORD_INCORRECT |
| 1356 | * (PUK is invalid) |
| 1357 | */ |
| 1358 | |
| 1359 | #define RIL_REQUEST_ENTER_SIM_PUK 3 |
| 1360 | |
| 1361 | /** |
| 1362 | * RIL_REQUEST_ENTER_SIM_PIN2 |
| 1363 | * |
| 1364 | * Supplies SIM PIN2. Only called following operation where SIM_PIN2 was |
| 1365 | * returned as a a failure from a previous operation. |
| 1366 | * |
| 1367 | * "data" is const char ** |
| 1368 | * ((const char **)data)[0] is PIN2 value |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1369 | * ((const char **)data)[1] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1370 | * |
jsh | 593c910 | 2009-06-24 16:13:44 -0700 | [diff] [blame] | 1371 | * "response" is int * |
| 1372 | * ((int *)response)[0] is the number of retries remaining, or -1 if unknown |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1373 | * |
| 1374 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1375 | * |
| 1376 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1377 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1378 | * GENERIC_FAILURE |
| 1379 | * PASSWORD_INCORRECT |
| 1380 | */ |
| 1381 | |
| 1382 | #define RIL_REQUEST_ENTER_SIM_PIN2 4 |
| 1383 | |
| 1384 | /** |
| 1385 | * RIL_REQUEST_ENTER_SIM_PUK2 |
| 1386 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1387 | * Supplies SIM PUK2 and new PIN2. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1388 | * |
| 1389 | * "data" is const char ** |
| 1390 | * ((const char **)data)[0] is PUK2 value |
| 1391 | * ((const char **)data)[1] is new PIN2 value |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1392 | * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1393 | * |
jsh | 593c910 | 2009-06-24 16:13:44 -0700 | [diff] [blame] | 1394 | * "response" is int * |
| 1395 | * ((int *)response)[0] is the number of retries remaining, or -1 if unknown |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1396 | * |
| 1397 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1398 | * |
| 1399 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1400 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1401 | * GENERIC_FAILURE |
| 1402 | * PASSWORD_INCORRECT |
| 1403 | * (PUK2 is invalid) |
| 1404 | */ |
| 1405 | |
| 1406 | #define RIL_REQUEST_ENTER_SIM_PUK2 5 |
| 1407 | |
| 1408 | /** |
| 1409 | * RIL_REQUEST_CHANGE_SIM_PIN |
| 1410 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1411 | * Supplies old SIM PIN and new PIN. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1412 | * |
| 1413 | * "data" is const char ** |
| 1414 | * ((const char **)data)[0] is old PIN value |
| 1415 | * ((const char **)data)[1] is new PIN value |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1416 | * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1417 | * |
jsh | 593c910 | 2009-06-24 16:13:44 -0700 | [diff] [blame] | 1418 | * "response" is int * |
| 1419 | * ((int *)response)[0] is the number of retries remaining, or -1 if unknown |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1420 | * |
| 1421 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1422 | * |
| 1423 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1424 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1425 | * GENERIC_FAILURE |
| 1426 | * PASSWORD_INCORRECT |
| 1427 | * (old PIN is invalid) |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1428 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1429 | */ |
| 1430 | |
| 1431 | #define RIL_REQUEST_CHANGE_SIM_PIN 6 |
| 1432 | |
| 1433 | |
| 1434 | /** |
| 1435 | * RIL_REQUEST_CHANGE_SIM_PIN2 |
| 1436 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1437 | * Supplies old SIM PIN2 and new PIN2. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1438 | * |
| 1439 | * "data" is const char ** |
| 1440 | * ((const char **)data)[0] is old PIN2 value |
| 1441 | * ((const char **)data)[1] is new PIN2 value |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1442 | * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1443 | * |
jsh | 593c910 | 2009-06-24 16:13:44 -0700 | [diff] [blame] | 1444 | * "response" is int * |
| 1445 | * ((int *)response)[0] is the number of retries remaining, or -1 if unknown |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1446 | * |
| 1447 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1448 | * |
| 1449 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1450 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1451 | * GENERIC_FAILURE |
| 1452 | * PASSWORD_INCORRECT |
| 1453 | * (old PIN2 is invalid) |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1454 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1455 | */ |
| 1456 | |
| 1457 | #define RIL_REQUEST_CHANGE_SIM_PIN2 7 |
| 1458 | |
| 1459 | /** |
| 1460 | * RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION |
| 1461 | * |
| 1462 | * Requests that network personlization be deactivated |
| 1463 | * |
| 1464 | * "data" is const char ** |
| 1465 | * ((const char **)(data))[0]] is network depersonlization code |
| 1466 | * |
jsh | 593c910 | 2009-06-24 16:13:44 -0700 | [diff] [blame] | 1467 | * "response" is int * |
| 1468 | * ((int *)response)[0] is the number of retries remaining, or -1 if unknown |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1469 | * |
| 1470 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1471 | * |
| 1472 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1473 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1474 | * GENERIC_FAILURE |
| 1475 | * PASSWORD_INCORRECT |
| 1476 | * (code is invalid) |
| 1477 | */ |
| 1478 | |
| 1479 | #define RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION 8 |
| 1480 | |
| 1481 | /** |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1482 | * RIL_REQUEST_GET_CURRENT_CALLS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1483 | * |
| 1484 | * Requests current call list |
| 1485 | * |
| 1486 | * "data" is NULL |
| 1487 | * |
| 1488 | * "response" must be a "const RIL_Call **" |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1489 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1490 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1491 | * |
| 1492 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1493 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1494 | * GENERIC_FAILURE |
| 1495 | * (request will be made again in a few hundred msec) |
| 1496 | */ |
| 1497 | |
| 1498 | #define RIL_REQUEST_GET_CURRENT_CALLS 9 |
| 1499 | |
| 1500 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1501 | /** |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1502 | * RIL_REQUEST_DIAL |
| 1503 | * |
| 1504 | * Initiate voice call |
| 1505 | * |
| 1506 | * "data" is const RIL_Dial * |
| 1507 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1508 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1509 | * This method is never used for supplementary service codes |
| 1510 | * |
| 1511 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1512 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1513 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1514 | * GENERIC_FAILURE |
| 1515 | */ |
| 1516 | #define RIL_REQUEST_DIAL 10 |
| 1517 | |
| 1518 | /** |
| 1519 | * RIL_REQUEST_GET_IMSI |
| 1520 | * |
| 1521 | * Get the SIM IMSI |
| 1522 | * |
Naveen Kalla | 2bc78d6 | 2011-12-07 16:22:53 -0800 | [diff] [blame] | 1523 | * Only valid when radio state is "RADIO_STATE_ON" |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1524 | * |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1525 | * "data" is const char ** |
| 1526 | * ((const char **)data)[0] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1527 | * "response" is a const char * containing the IMSI |
| 1528 | * |
| 1529 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1530 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1531 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1532 | * GENERIC_FAILURE |
| 1533 | */ |
| 1534 | |
| 1535 | #define RIL_REQUEST_GET_IMSI 11 |
| 1536 | |
| 1537 | /** |
| 1538 | * RIL_REQUEST_HANGUP |
| 1539 | * |
| 1540 | * Hang up a specific line (like AT+CHLD=1x) |
| 1541 | * |
John Wang | 06bae4b | 2010-11-18 16:37:09 -0800 | [diff] [blame] | 1542 | * After this HANGUP request returns, RIL should show the connection is NOT |
| 1543 | * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query. |
| 1544 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1545 | * "data" is an int * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 1546 | * (int *)data)[0] contains Connection index (value of 'x' in CHLD above) |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1547 | * |
| 1548 | * "response" is NULL |
| 1549 | * |
| 1550 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1551 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1552 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1553 | * GENERIC_FAILURE |
| 1554 | */ |
| 1555 | |
| 1556 | #define RIL_REQUEST_HANGUP 12 |
| 1557 | |
| 1558 | /** |
| 1559 | * RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND |
| 1560 | * |
| 1561 | * Hang up waiting or held (like AT+CHLD=0) |
| 1562 | * |
John Wang | 06bae4b | 2010-11-18 16:37:09 -0800 | [diff] [blame] | 1563 | * After this HANGUP request returns, RIL should show the connection is NOT |
| 1564 | * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query. |
| 1565 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1566 | * "data" is NULL |
| 1567 | * "response" is NULL |
| 1568 | * |
| 1569 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1570 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1571 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1572 | * GENERIC_FAILURE |
| 1573 | */ |
| 1574 | |
| 1575 | #define RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND 13 |
| 1576 | |
| 1577 | /** |
| 1578 | * RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND |
| 1579 | * |
| 1580 | * Hang up waiting or held (like AT+CHLD=1) |
| 1581 | * |
John Wang | 06bae4b | 2010-11-18 16:37:09 -0800 | [diff] [blame] | 1582 | * After this HANGUP request returns, RIL should show the connection is NOT |
| 1583 | * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query. |
| 1584 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1585 | * "data" is NULL |
| 1586 | * "response" is NULL |
| 1587 | * |
| 1588 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1589 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1590 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1591 | * GENERIC_FAILURE |
| 1592 | */ |
| 1593 | |
| 1594 | #define RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND 14 |
| 1595 | |
| 1596 | /** |
| 1597 | * RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE |
| 1598 | * |
| 1599 | * Switch waiting or holding call and active call (like AT+CHLD=2) |
| 1600 | * |
| 1601 | * State transitions should be is follows: |
| 1602 | * |
| 1603 | * If call 1 is waiting and call 2 is active, then if this re |
| 1604 | * |
| 1605 | * BEFORE AFTER |
| 1606 | * Call 1 Call 2 Call 1 Call 2 |
| 1607 | * ACTIVE HOLDING HOLDING ACTIVE |
| 1608 | * ACTIVE WAITING HOLDING ACTIVE |
| 1609 | * HOLDING WAITING HOLDING ACTIVE |
| 1610 | * ACTIVE IDLE HOLDING IDLE |
| 1611 | * IDLE IDLE IDLE IDLE |
| 1612 | * |
| 1613 | * "data" is NULL |
| 1614 | * "response" is NULL |
| 1615 | * |
| 1616 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1617 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1618 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1619 | * GENERIC_FAILURE |
| 1620 | */ |
| 1621 | |
| 1622 | #define RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE 15 |
| 1623 | #define RIL_REQUEST_SWITCH_HOLDING_AND_ACTIVE 15 |
| 1624 | |
| 1625 | /** |
| 1626 | * RIL_REQUEST_CONFERENCE |
| 1627 | * |
| 1628 | * Conference holding and active (like AT+CHLD=3) |
| 1629 | |
| 1630 | * "data" is NULL |
| 1631 | * "response" is NULL |
| 1632 | * |
| 1633 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1634 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1635 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1636 | * GENERIC_FAILURE |
| 1637 | */ |
| 1638 | #define RIL_REQUEST_CONFERENCE 16 |
| 1639 | |
| 1640 | /** |
| 1641 | * RIL_REQUEST_UDUB |
| 1642 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1643 | * Send UDUB (user determined used busy) to ringing or |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1644 | * waiting call answer)(RIL_BasicRequest r); |
| 1645 | * |
| 1646 | * "data" is NULL |
| 1647 | * "response" is NULL |
| 1648 | * |
| 1649 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1650 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1651 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 1652 | * GENERIC_FAILURE |
| 1653 | */ |
| 1654 | #define RIL_REQUEST_UDUB 17 |
| 1655 | |
| 1656 | /** |
| 1657 | * RIL_REQUEST_LAST_CALL_FAIL_CAUSE |
| 1658 | * |
| 1659 | * Requests the failure cause code for the most recently terminated call |
| 1660 | * |
| 1661 | * "data" is NULL |
| 1662 | * "response" is a "int *" |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1663 | * ((int *)response)[0] is RIL_LastCallFailCause. GSM failure reasons are |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 1664 | * mapped to cause codes defined in TS 24.008 Annex H where possible. CDMA |
| 1665 | * failure reasons are derived from the possible call failure scenarios |
| 1666 | * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1667 | * |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 1668 | * The implementation should return CALL_FAIL_ERROR_UNSPECIFIED for blocked |
| 1669 | * MO calls by restricted state (See RIL_UNSOL_RESTRICTED_STATE_CHANGED) |
| 1670 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1671 | * If the implementation does not have access to the exact cause codes, |
| 1672 | * then it should return one of the values listed in RIL_LastCallFailCause, |
| 1673 | * as the UI layer needs to distinguish these cases for tone generation or |
| 1674 | * error notification. |
| 1675 | * |
| 1676 | * Valid errors: |
| 1677 | * SUCCESS |
| 1678 | * RADIO_NOT_AVAILABLE |
| 1679 | * GENERIC_FAILURE |
| 1680 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 1681 | * See also: RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1682 | */ |
| 1683 | #define RIL_REQUEST_LAST_CALL_FAIL_CAUSE 18 |
| 1684 | |
| 1685 | /** |
| 1686 | * RIL_REQUEST_SIGNAL_STRENGTH |
| 1687 | * |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1688 | * Requests current signal strength and associated information |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1689 | * |
| 1690 | * Must succeed if radio is on. |
| 1691 | * |
| 1692 | * "data" is NULL |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1693 | * |
| 1694 | * "response" is a const RIL_SignalStrength * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1695 | * |
| 1696 | * Valid errors: |
| 1697 | * SUCCESS |
| 1698 | * RADIO_NOT_AVAILABLE |
| 1699 | */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1700 | #define RIL_REQUEST_SIGNAL_STRENGTH 19 |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 1701 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1702 | /** |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1703 | * RIL_REQUEST_VOICE_REGISTRATION_STATE |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1704 | * |
| 1705 | * Request current registration state |
| 1706 | * |
| 1707 | * "data" is NULL |
| 1708 | * "response" is a "char **" |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 1709 | * ((const char **)response)[0] is registration state 0-6, |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1710 | * 0 - Not registered, MT is not currently searching |
| 1711 | * a new operator to register |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 1712 | * 1 - Registered, home network |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1713 | * 2 - Not registered, but MT is currently searching |
| 1714 | * a new operator to register |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 1715 | * 3 - Registration denied |
| 1716 | * 4 - Unknown |
| 1717 | * 5 - Registered, roaming |
John Wang | 7f8ded1 | 2010-01-21 15:07:28 -0800 | [diff] [blame] | 1718 | * 10 - Same as 0, but indicates that emergency calls |
| 1719 | * are enabled. |
| 1720 | * 12 - Same as 2, but indicates that emergency calls |
| 1721 | * are enabled. |
| 1722 | * 13 - Same as 3, but indicates that emergency calls |
| 1723 | * are enabled. |
| 1724 | * 14 - Same as 4, but indicates that emergency calls |
| 1725 | * are enabled. |
| 1726 | * |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1727 | * ((const char **)response)[1] is LAC if registered on a GSM/WCDMA system or |
| 1728 | * NULL if not.Valid LAC are 0x0000 - 0xffff |
| 1729 | * ((const char **)response)[2] is CID if registered on a * GSM/WCDMA or |
| 1730 | * NULL if not. |
| 1731 | * Valid CID are 0x00000000 - 0xffffffff |
| 1732 | * In GSM, CID is Cell ID (see TS 27.007) |
| 1733 | * in 16 bits |
| 1734 | * In UMTS, CID is UMTS Cell Identity |
| 1735 | * (see TS 25.331) in 28 bits |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 1736 | * ((const char **)response)[3] indicates the available voice radio technology, |
| 1737 | * valid values as defined by RIL_RadioTechnology. |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1738 | * ((const char **)response)[4] is Base Station ID if registered on a CDMA |
| 1739 | * system or NULL if not. Base Station ID in |
jsh | 29be25c | 2009-07-14 20:18:59 -0700 | [diff] [blame] | 1740 | * decimal format |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1741 | * ((const char **)response)[5] is Base Station latitude if registered on a |
| 1742 | * CDMA system or NULL if not. Base Station |
Naveen Kalla | 36b721c | 2009-10-13 18:29:41 -0700 | [diff] [blame] | 1743 | * latitude is a decimal number as specified in |
| 1744 | * 3GPP2 C.S0005-A v6.0. It is represented in |
| 1745 | * units of 0.25 seconds and ranges from -1296000 |
| 1746 | * to 1296000, both values inclusive (corresponding |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 1747 | * to a range of -90 to +90 degrees). |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1748 | * ((const char **)response)[6] is Base Station longitude if registered on a |
| 1749 | * CDMA system or NULL if not. Base Station |
Naveen Kalla | 36b721c | 2009-10-13 18:29:41 -0700 | [diff] [blame] | 1750 | * longitude is a decimal number as specified in |
| 1751 | * 3GPP2 C.S0005-A v6.0. It is represented in |
| 1752 | * units of 0.25 seconds and ranges from -2592000 |
| 1753 | * to 2592000, both values inclusive (corresponding |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 1754 | * to a range of -180 to +180 degrees). |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1755 | * ((const char **)response)[7] is concurrent services support indicator if |
| 1756 | * registered on a CDMA system 0-1. |
| 1757 | * 0 - Concurrent services not supported, |
| 1758 | * 1 - Concurrent services supported |
| 1759 | * ((const char **)response)[8] is System ID if registered on a CDMA system or |
| 1760 | * NULL if not. Valid System ID are 0 - 32767 |
| 1761 | * ((const char **)response)[9] is Network ID if registered on a CDMA system or |
| 1762 | * NULL if not. Valid System ID are 0 - 65535 |
| 1763 | * ((const char **)response)[10] is the TSB-58 Roaming Indicator if registered |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 1764 | * on a CDMA or EVDO system or NULL if not. Valid values |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1765 | * are 0-255. |
| 1766 | * ((const char **)response)[11] indicates whether the current system is in the |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 1767 | * PRL if registered on a CDMA or EVDO system or NULL if |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1768 | * not. 0=not in the PRL, 1=in the PRL |
| 1769 | * ((const char **)response)[12] is the default Roaming Indicator from the PRL, |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 1770 | * if registered on a CDMA or EVDO system or NULL if not. |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1771 | * Valid values are 0-255. |
| 1772 | * ((const char **)response)[13] if registration state is 3 (Registration |
| 1773 | * denied) this is an enumerated reason why |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 1774 | * registration was denied. See 3GPP TS 24.008, |
| 1775 | * 10.5.3.6 and Annex G. |
| 1776 | * 0 - General |
| 1777 | * 1 - Authentication Failure |
| 1778 | * 2 - IMSI unknown in HLR |
| 1779 | * 3 - Illegal MS |
| 1780 | * 4 - Illegal ME |
| 1781 | * 5 - PLMN not allowed |
| 1782 | * 6 - Location area not allowed |
| 1783 | * 7 - Roaming not allowed |
| 1784 | * 8 - No Suitable Cells in this Location Area |
| 1785 | * 9 - Network failure |
jsh | 29be25c | 2009-07-14 20:18:59 -0700 | [diff] [blame] | 1786 | * 10 - Persistent location update reject |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1787 | * 11 - PLMN not allowed |
| 1788 | * 12 - Location area not allowed |
| 1789 | * 13 - Roaming not allowed in this Location Area |
| 1790 | * 15 - No Suitable Cells in this Location Area |
| 1791 | * 17 - Network Failure |
| 1792 | * 20 - MAC Failure |
| 1793 | * 21 - Sync Failure |
| 1794 | * 22 - Congestion |
| 1795 | * 23 - GSM Authentication unacceptable |
| 1796 | * 25 - Not Authorized for this CSG |
| 1797 | * 32 - Service option not supported |
| 1798 | * 33 - Requested service option not subscribed |
| 1799 | * 34 - Service option temporarily out of order |
| 1800 | * 38 - Call cannot be identified |
| 1801 | * 48-63 - Retry upon entry into a new cell |
| 1802 | * 95 - Semantically incorrect message |
| 1803 | * 96 - Invalid mandatory information |
| 1804 | * 97 - Message type non-existent or not implemented |
| 1805 | * 98 - Message not compatible with protocol state |
| 1806 | * 99 - Information element non-existent or not implemented |
| 1807 | * 100 - Conditional IE error |
| 1808 | * 101 - Message not compatible with protocol state |
| 1809 | * 111 - Protocol error, unspecified |
jsh | ca5e347 | 2010-06-23 21:53:24 -0700 | [diff] [blame] | 1810 | * ((const char **)response)[14] is the Primary Scrambling Code of the current |
| 1811 | * cell as described in TS 25.331, in hexadecimal |
| 1812 | * format, or NULL if unknown or not registered |
| 1813 | * to a UMTS network. |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1814 | * |
| 1815 | * Please note that registration state 4 ("unknown") is treated |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1816 | * as "out of service" in the Android telephony system |
| 1817 | * |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 1818 | * Registration state 3 can be returned if Location Update Reject |
| 1819 | * (with cause 17 - Network Failure) is received repeatedly from the network, |
| 1820 | * to facilitate "managed roaming" |
| 1821 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1822 | * Valid errors: |
| 1823 | * SUCCESS |
| 1824 | * RADIO_NOT_AVAILABLE |
| 1825 | * GENERIC_FAILURE |
| 1826 | */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1827 | #define RIL_REQUEST_VOICE_REGISTRATION_STATE 20 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1828 | |
| 1829 | /** |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1830 | * RIL_REQUEST_DATA_REGISTRATION_STATE |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1831 | * |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1832 | * Request current DATA registration state |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1833 | * |
| 1834 | * "data" is NULL |
| 1835 | * "response" is a "char **" |
Li Zhe | 3a63fbc | 2009-08-04 13:14:34 +0800 | [diff] [blame] | 1836 | * ((const char **)response)[0] is registration state 0-5 from TS 27.007 10.1.20 AT+CGREG |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1837 | * ((const char **)response)[1] is LAC if registered or NULL if not |
| 1838 | * ((const char **)response)[2] is CID if registered or NULL if not |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 1839 | * ((const char **)response)[3] indicates the available data radio technology, |
| 1840 | * valid values as defined by RIL_RadioTechnology. |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1841 | * ((const char **)response)[4] if registration state is 3 (Registration |
| 1842 | * denied) this is an enumerated reason why |
| 1843 | * registration was denied. See 3GPP TS 24.008, |
| 1844 | * Annex G.6 "Additonal cause codes for GMM". |
| 1845 | * 7 == GPRS services not allowed |
| 1846 | * 8 == GPRS services and non-GPRS services not allowed |
| 1847 | * 9 == MS identity cannot be derived by the network |
| 1848 | * 10 == Implicitly detached |
| 1849 | * 14 == GPRS services not allowed in this PLMN |
| 1850 | * 16 == MSC temporarily not reachable |
| 1851 | * 40 == No PDP context activated |
| 1852 | * ((const char **)response)[5] The maximum number of simultaneous Data Calls that can be |
| 1853 | * established using RIL_REQUEST_SETUP_DATA_CALL. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1854 | * |
Wink Saville | ae67953 | 2012-12-03 14:59:45 -0800 | [diff] [blame] | 1855 | * The values at offsets 6..10 are optional LTE location information in decimal. |
| 1856 | * If a value is unknown that value may be NULL. If all values are NULL, |
| 1857 | * none need to be present. |
Wink Saville | ea51a9d | 2012-09-15 07:54:06 -0700 | [diff] [blame] | 1858 | * ((const char **)response)[6] is TAC, a 16-bit Tracking Area Code. |
| 1859 | * ((const char **)response)[7] is CID, a 0-503 Physical Cell Identifier. |
| 1860 | * ((const char **)response)[8] is ECI, a 28-bit E-UTRAN Cell Identifier. |
| 1861 | * ((const char **)response)[9] is CSGID, a 27-bit Closed Subscriber Group Identity. |
| 1862 | * ((const char **)response)[10] is TADV, a 6-bit timing advance value. |
| 1863 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1864 | * LAC and CID are in hexadecimal format. |
| 1865 | * valid LAC are 0x0000 - 0xffff |
| 1866 | * valid CID are 0x00000000 - 0x0fffffff |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1867 | * |
| 1868 | * Please note that registration state 4 ("unknown") is treated |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1869 | * as "out of service" in the Android telephony system |
| 1870 | * |
| 1871 | * Valid errors: |
| 1872 | * SUCCESS |
| 1873 | * RADIO_NOT_AVAILABLE |
| 1874 | * GENERIC_FAILURE |
| 1875 | */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 1876 | #define RIL_REQUEST_DATA_REGISTRATION_STATE 21 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1877 | |
| 1878 | /** |
| 1879 | * RIL_REQUEST_OPERATOR |
| 1880 | * |
| 1881 | * Request current operator ONS or EONS |
| 1882 | * |
| 1883 | * "data" is NULL |
| 1884 | * "response" is a "const char **" |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1885 | * ((const char **)response)[0] is long alpha ONS or EONS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1886 | * or NULL if unregistered |
| 1887 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1888 | * ((const char **)response)[1] is short alpha ONS or EONS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1889 | * or NULL if unregistered |
| 1890 | * ((const char **)response)[2] is 5 or 6 digit numeric code (MCC + MNC) |
| 1891 | * or NULL if unregistered |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1892 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1893 | * Valid errors: |
| 1894 | * SUCCESS |
| 1895 | * RADIO_NOT_AVAILABLE |
| 1896 | * GENERIC_FAILURE |
| 1897 | */ |
| 1898 | #define RIL_REQUEST_OPERATOR 22 |
| 1899 | |
| 1900 | /** |
| 1901 | * RIL_REQUEST_RADIO_POWER |
| 1902 | * |
| 1903 | * Toggle radio on and off (for "airplane" mode) |
Wink Saville | 29487ef | 2011-04-15 09:15:31 -0700 | [diff] [blame] | 1904 | * If the radio is is turned off/on the radio modem subsystem |
| 1905 | * is expected return to an initialized state. For instance, |
| 1906 | * any voice and data calls will be terminated and all associated |
| 1907 | * lists emptied. |
| 1908 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1909 | * "data" is int * |
| 1910 | * ((int *)data)[0] is > 0 for "Radio On" |
| 1911 | * ((int *)data)[0] is == 0 for "Radio Off" |
| 1912 | * |
| 1913 | * "response" is NULL |
| 1914 | * |
| 1915 | * Turn radio on if "on" > 0 |
| 1916 | * Turn radio off if "on" == 0 |
| 1917 | * |
| 1918 | * Valid errors: |
| 1919 | * SUCCESS |
| 1920 | * RADIO_NOT_AVAILABLE |
| 1921 | * GENERIC_FAILURE |
| 1922 | */ |
| 1923 | #define RIL_REQUEST_RADIO_POWER 23 |
| 1924 | |
| 1925 | /** |
| 1926 | * RIL_REQUEST_DTMF |
| 1927 | * |
| 1928 | * Send a DTMF tone |
| 1929 | * |
| 1930 | * If the implementation is currently playing a tone requested via |
| 1931 | * RIL_REQUEST_DTMF_START, that tone should be cancelled and the new tone |
| 1932 | * should be played instead |
| 1933 | * |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 1934 | * "data" is a char * containing a single character with one of 12 values: 0-9,*,# |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1935 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1936 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1937 | * FIXME should this block/mute microphone? |
| 1938 | * How does this interact with local DTMF feedback? |
| 1939 | * |
| 1940 | * Valid errors: |
| 1941 | * SUCCESS |
| 1942 | * RADIO_NOT_AVAILABLE |
| 1943 | * GENERIC_FAILURE |
| 1944 | * |
| 1945 | * See also: RIL_REQUEST_DTMF_STOP, RIL_REQUEST_DTMF_START |
| 1946 | * |
| 1947 | */ |
| 1948 | #define RIL_REQUEST_DTMF 24 |
| 1949 | |
| 1950 | /** |
| 1951 | * RIL_REQUEST_SEND_SMS |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1952 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1953 | * Send an SMS message |
| 1954 | * |
| 1955 | * "data" is const char ** |
| 1956 | * ((const char **)data)[0] is SMSC address in GSM BCD format prefixed |
| 1957 | * by a length byte (as expected by TS 27.005) or NULL for default SMSC |
| 1958 | * ((const char **)data)[1] is SMS in PDU format as an ASCII hex string |
| 1959 | * less the SMSC address |
| 1960 | * TP-Layer-Length is be "strlen(((const char **)data)[1])/2" |
| 1961 | * |
| 1962 | * "response" is a const RIL_SMS_Response * |
| 1963 | * |
| 1964 | * Based on the return error, caller decides to resend if sending sms |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1965 | * fails. SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332) |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1966 | * and GENERIC_FAILURE means no retry (i.e. error cause is 500) |
| 1967 | * |
| 1968 | * Valid errors: |
| 1969 | * SUCCESS |
| 1970 | * RADIO_NOT_AVAILABLE |
| 1971 | * SMS_SEND_FAIL_RETRY |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 1972 | * FDN_CHECK_FAILURE |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1973 | * GENERIC_FAILURE |
| 1974 | * |
| 1975 | * FIXME how do we specify TP-Message-Reference if we need to resend? |
| 1976 | */ |
| 1977 | #define RIL_REQUEST_SEND_SMS 25 |
| 1978 | |
| 1979 | |
| 1980 | /** |
| 1981 | * RIL_REQUEST_SEND_SMS_EXPECT_MORE |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1982 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1983 | * Send an SMS message. Identical to RIL_REQUEST_SEND_SMS, |
| 1984 | * except that more messages are expected to be sent soon. If possible, |
| 1985 | * keep SMS relay protocol link open (eg TS 27.005 AT+CMMS command) |
| 1986 | * |
| 1987 | * "data" is const char ** |
| 1988 | * ((const char **)data)[0] is SMSC address in GSM BCD format prefixed |
| 1989 | * by a length byte (as expected by TS 27.005) or NULL for default SMSC |
| 1990 | * ((const char **)data)[1] is SMS in PDU format as an ASCII hex string |
| 1991 | * less the SMSC address |
| 1992 | * TP-Layer-Length is be "strlen(((const char **)data)[1])/2" |
| 1993 | * |
| 1994 | * "response" is a const RIL_SMS_Response * |
| 1995 | * |
| 1996 | * Based on the return error, caller decides to resend if sending sms |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 1997 | * fails. SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332) |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1998 | * and GENERIC_FAILURE means no retry (i.e. error cause is 500) |
| 1999 | * |
| 2000 | * Valid errors: |
| 2001 | * SUCCESS |
| 2002 | * RADIO_NOT_AVAILABLE |
| 2003 | * SMS_SEND_FAIL_RETRY |
| 2004 | * GENERIC_FAILURE |
| 2005 | * |
| 2006 | */ |
| 2007 | #define RIL_REQUEST_SEND_SMS_EXPECT_MORE 26 |
| 2008 | |
| 2009 | |
| 2010 | /** |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2011 | * RIL_REQUEST_SETUP_DATA_CALL |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2012 | * |
Wink Saville | 29487ef | 2011-04-15 09:15:31 -0700 | [diff] [blame] | 2013 | * Setup a packet data connection. If RIL_Data_Call_Response_v6.status |
| 2014 | * return success it is added to the list of data calls and a |
| 2015 | * RIL_UNSOL_DATA_CALL_LIST_CHANGED is sent. The call remains in the |
| 2016 | * list until RIL_REQUEST_DEACTIVATE_DATA_CALL is issued or the |
| 2017 | * radio is powered off/on. This list is returned by RIL_REQUEST_DATA_CALL_LIST |
| 2018 | * and RIL_UNSOL_DATA_CALL_LIST_CHANGED. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2019 | * |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 2020 | * The RIL is expected to: |
| 2021 | * - Create one data call context. |
| 2022 | * - Create and configure a dedicated interface for the context |
| 2023 | * - The interface must be point to point. |
| 2024 | * - The interface is configured with one or more addresses and |
| 2025 | * is capable of sending and receiving packets. The prefix length |
| 2026 | * of the addresses must be /32 for IPv4 and /128 for IPv6. |
| 2027 | * - Must NOT change the linux routing table. |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2028 | * - Support up to RIL_REQUEST_DATA_REGISTRATION_STATE response[5] |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 2029 | * number of simultaneous data call contexts. |
| 2030 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2031 | * "data" is a const char ** |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2032 | * ((const char **)data)[0] Radio technology to use: 0-CDMA, 1-GSM/UMTS, 2... |
| 2033 | * for values above 2 this is RIL_RadioTechnology + 2. |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 2034 | * ((const char **)data)[1] is a RIL_DataProfile (support is optional) |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2035 | * ((const char **)data)[2] is the APN to connect to if radio technology is GSM/UMTS. This APN will |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2036 | * override the one in the profile. NULL indicates no APN overrride. |
| 2037 | * ((const char **)data)[3] is the username for APN, or NULL |
| 2038 | * ((const char **)data)[4] is the password for APN, or NULL |
Jaikumar Ganesh | 920c78f | 2009-06-04 10:53:15 -0700 | [diff] [blame] | 2039 | * ((const char **)data)[5] is the PAP / CHAP auth type. Values: |
| 2040 | * 0 => PAP and CHAP is never performed. |
| 2041 | * 1 => PAP may be performed; CHAP is never performed. |
| 2042 | * 2 => CHAP may be performed; PAP is never performed. |
| 2043 | * 3 => PAP / CHAP may be performed - baseband dependent. |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2044 | * ((const char **)data)[6] is the connection type to request must be one of the |
| 2045 | * PDP_type values in TS 27.007 section 10.1.1. |
Lorenzo Colitti | 4f81dcf | 2010-09-01 19:38:57 -0700 | [diff] [blame] | 2046 | * For example, "IP", "IPV6", "IPV4V6", or "PPP". |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2047 | * ((const char **)data)[7] Optional connection property parameters, format to be defined. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2048 | * |
Sukanya Rajkhowa | b44dda3 | 2014-06-02 14:03:44 -0700 | [diff] [blame^] | 2049 | * "response" is a RIL_Data_Call_Response_v11 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2050 | * |
| 2051 | * FIXME may need way to configure QoS settings |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 2052 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2053 | * Valid errors: |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 2054 | * SUCCESS should be returned on both success and failure of setup with |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2055 | * the RIL_Data_Call_Response_v6.status containing the actual status. |
| 2056 | * For all other errors the RIL_Data_Call_Resonse_v6 is ignored. |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 2057 | * |
| 2058 | * Other errors could include: |
| 2059 | * RADIO_NOT_AVAILABLE, GENERIC_FAILURE, OP_NOT_ALLOWED_BEFORE_REG_TO_NW, |
| 2060 | * OP_NOT_ALLOWED_DURING_VOICE_CALL and REQUEST_NOT_SUPPORTED. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2061 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2062 | * See also: RIL_REQUEST_DEACTIVATE_DATA_CALL |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2063 | */ |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2064 | #define RIL_REQUEST_SETUP_DATA_CALL 27 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2065 | |
| 2066 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2067 | /** |
| 2068 | * RIL_REQUEST_SIM_IO |
| 2069 | * |
| 2070 | * Request SIM I/O operation. |
| 2071 | * This is similar to the TS 27.007 "restricted SIM" operation |
| 2072 | * where it assumes all of the EF selection will be done by the |
| 2073 | * callee. |
| 2074 | * |
Wink Saville | fd72937 | 2011-02-22 16:19:39 -0800 | [diff] [blame] | 2075 | * "data" is a const RIL_SIM_IO_v6 * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2076 | * Please note that RIL_SIM_IO has a "PIN2" field which may be NULL, |
| 2077 | * or may specify a PIN2 for operations that require a PIN2 (eg |
| 2078 | * updating FDN records) |
| 2079 | * |
| 2080 | * "response" is a const RIL_SIM_IO_Response * |
| 2081 | * |
| 2082 | * Arguments and responses that are unused for certain |
| 2083 | * values of "command" should be ignored or set to NULL |
| 2084 | * |
| 2085 | * Valid errors: |
| 2086 | * SUCCESS |
| 2087 | * RADIO_NOT_AVAILABLE |
| 2088 | * GENERIC_FAILURE |
| 2089 | * SIM_PIN2 |
| 2090 | * SIM_PUK2 |
| 2091 | */ |
| 2092 | #define RIL_REQUEST_SIM_IO 28 |
| 2093 | |
| 2094 | /** |
| 2095 | * RIL_REQUEST_SEND_USSD |
| 2096 | * |
| 2097 | * Send a USSD message |
| 2098 | * |
| 2099 | * If a USSD session already exists, the message should be sent in the |
| 2100 | * context of that session. Otherwise, a new session should be created. |
| 2101 | * |
| 2102 | * The network reply should be reported via RIL_UNSOL_ON_USSD |
| 2103 | * |
| 2104 | * Only one USSD session may exist at a time, and the session is assumed |
| 2105 | * to exist until: |
| 2106 | * a) The android system invokes RIL_REQUEST_CANCEL_USSD |
| 2107 | * b) The implementation sends a RIL_UNSOL_ON_USSD with a type code |
| 2108 | * of "0" (USSD-Notify/no further action) or "2" (session terminated) |
| 2109 | * |
| 2110 | * "data" is a const char * containing the USSD request in UTF-8 format |
| 2111 | * "response" is NULL |
| 2112 | * |
| 2113 | * Valid errors: |
| 2114 | * SUCCESS |
| 2115 | * RADIO_NOT_AVAILABLE |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 2116 | * FDN_CHECK_FAILURE |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2117 | * GENERIC_FAILURE |
| 2118 | * |
| 2119 | * See also: RIL_REQUEST_CANCEL_USSD, RIL_UNSOL_ON_USSD |
| 2120 | */ |
| 2121 | |
| 2122 | #define RIL_REQUEST_SEND_USSD 29 |
| 2123 | |
| 2124 | /** |
| 2125 | * RIL_REQUEST_CANCEL_USSD |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2126 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2127 | * Cancel the current USSD session if one exists |
| 2128 | * |
| 2129 | * "data" is null |
| 2130 | * "response" is NULL |
| 2131 | * |
| 2132 | * Valid errors: |
| 2133 | * SUCCESS |
| 2134 | * RADIO_NOT_AVAILABLE |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2135 | * GENERIC_FAILURE |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2136 | */ |
| 2137 | |
| 2138 | #define RIL_REQUEST_CANCEL_USSD 30 |
| 2139 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2140 | /** |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2141 | * RIL_REQUEST_GET_CLIR |
| 2142 | * |
| 2143 | * Gets current CLIR status |
| 2144 | * "data" is NULL |
| 2145 | * "response" is int * |
| 2146 | * ((int *)data)[0] is "n" parameter from TS 27.007 7.7 |
| 2147 | * ((int *)data)[1] is "m" parameter from TS 27.007 7.7 |
| 2148 | * |
| 2149 | * Valid errors: |
| 2150 | * SUCCESS |
| 2151 | * RADIO_NOT_AVAILABLE |
| 2152 | * GENERIC_FAILURE |
| 2153 | */ |
| 2154 | #define RIL_REQUEST_GET_CLIR 31 |
| 2155 | |
| 2156 | /** |
| 2157 | * RIL_REQUEST_SET_CLIR |
| 2158 | * |
| 2159 | * "data" is int * |
| 2160 | * ((int *)data)[0] is "n" parameter from TS 27.007 7.7 |
| 2161 | * |
| 2162 | * "response" is NULL |
| 2163 | * |
| 2164 | * Valid errors: |
| 2165 | * SUCCESS |
| 2166 | * RADIO_NOT_AVAILABLE |
| 2167 | * GENERIC_FAILURE |
| 2168 | */ |
| 2169 | #define RIL_REQUEST_SET_CLIR 32 |
| 2170 | |
| 2171 | /** |
| 2172 | * RIL_REQUEST_QUERY_CALL_FORWARD_STATUS |
| 2173 | * |
| 2174 | * "data" is const RIL_CallForwardInfo * |
| 2175 | * |
| 2176 | * "response" is const RIL_CallForwardInfo ** |
| 2177 | * "response" points to an array of RIL_CallForwardInfo *'s, one for |
| 2178 | * each distinct registered phone number. |
| 2179 | * |
| 2180 | * For example, if data is forwarded to +18005551212 and voice is forwarded |
| 2181 | * to +18005559999, then two separate RIL_CallForwardInfo's should be returned |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2182 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2183 | * If, however, both data and voice are forwarded to +18005551212, then |
| 2184 | * a single RIL_CallForwardInfo can be returned with the service class |
| 2185 | * set to "data + voice = 3") |
| 2186 | * |
| 2187 | * Valid errors: |
| 2188 | * SUCCESS |
| 2189 | * RADIO_NOT_AVAILABLE |
| 2190 | * GENERIC_FAILURE |
| 2191 | */ |
| 2192 | #define RIL_REQUEST_QUERY_CALL_FORWARD_STATUS 33 |
| 2193 | |
| 2194 | |
| 2195 | /** |
| 2196 | * RIL_REQUEST_SET_CALL_FORWARD |
| 2197 | * |
| 2198 | * Configure call forward rule |
| 2199 | * |
| 2200 | * "data" is const RIL_CallForwardInfo * |
| 2201 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2202 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2203 | * Valid errors: |
| 2204 | * SUCCESS |
| 2205 | * RADIO_NOT_AVAILABLE |
| 2206 | * GENERIC_FAILURE |
| 2207 | */ |
| 2208 | #define RIL_REQUEST_SET_CALL_FORWARD 34 |
| 2209 | |
| 2210 | |
| 2211 | /** |
| 2212 | * RIL_REQUEST_QUERY_CALL_WAITING |
| 2213 | * |
| 2214 | * Query current call waiting state |
| 2215 | * |
| 2216 | * "data" is const int * |
| 2217 | * ((const int *)data)[0] is the TS 27.007 service class to query. |
| 2218 | * "response" is a const int * |
| 2219 | * ((const int *)response)[0] is 0 for "disabled" and 1 for "enabled" |
| 2220 | * |
| 2221 | * If ((const int *)response)[0] is = 1, then ((const int *)response)[1] |
| 2222 | * must follow, with the TS 27.007 service class bit vector of services |
| 2223 | * for which call waiting is enabled. |
| 2224 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2225 | * For example, if ((const int *)response)[0] is 1 and |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2226 | * ((const int *)response)[1] is 3, then call waiting is enabled for data |
| 2227 | * and voice and disabled for everything else |
| 2228 | * |
| 2229 | * Valid errors: |
| 2230 | * SUCCESS |
| 2231 | * RADIO_NOT_AVAILABLE |
| 2232 | * GENERIC_FAILURE |
| 2233 | */ |
| 2234 | #define RIL_REQUEST_QUERY_CALL_WAITING 35 |
| 2235 | |
| 2236 | |
| 2237 | /** |
| 2238 | * RIL_REQUEST_SET_CALL_WAITING |
| 2239 | * |
| 2240 | * Configure current call waiting state |
| 2241 | * |
| 2242 | * "data" is const int * |
| 2243 | * ((const int *)data)[0] is 0 for "disabled" and 1 for "enabled" |
| 2244 | * ((const int *)data)[1] is the TS 27.007 service class bit vector of |
| 2245 | * services to modify |
| 2246 | * "response" is NULL |
| 2247 | * |
| 2248 | * Valid errors: |
| 2249 | * SUCCESS |
| 2250 | * RADIO_NOT_AVAILABLE |
| 2251 | * GENERIC_FAILURE |
| 2252 | */ |
| 2253 | #define RIL_REQUEST_SET_CALL_WAITING 36 |
| 2254 | |
| 2255 | /** |
| 2256 | * RIL_REQUEST_SMS_ACKNOWLEDGE |
| 2257 | * |
| 2258 | * Acknowledge successful or failed receipt of SMS previously indicated |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2259 | * via RIL_UNSOL_RESPONSE_NEW_SMS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2260 | * |
| 2261 | * "data" is int * |
jsh | b60444e | 2009-05-29 11:09:17 -0700 | [diff] [blame] | 2262 | * ((int *)data)[0] is 1 on successful receipt |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2263 | * (basically, AT+CNMA=1 from TS 27.005 |
jsh | b60444e | 2009-05-29 11:09:17 -0700 | [diff] [blame] | 2264 | * is 0 on failed receipt |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2265 | * (basically, AT+CNMA=2 from TS 27.005) |
jsh | b60444e | 2009-05-29 11:09:17 -0700 | [diff] [blame] | 2266 | * ((int *)data)[1] if data[0] is 0, this contains the failure cause as defined |
| 2267 | * in TS 23.040, 9.2.3.22. Currently only 0xD3 (memory |
| 2268 | * capacity exceeded) and 0xFF (unspecified error) are |
| 2269 | * reported. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2270 | * |
| 2271 | * "response" is NULL |
| 2272 | * |
| 2273 | * FIXME would like request that specified RP-ACK/RP-ERROR PDU |
| 2274 | * |
| 2275 | * Valid errors: |
| 2276 | * SUCCESS |
| 2277 | * RADIO_NOT_AVAILABLE |
| 2278 | * GENERIC_FAILURE |
| 2279 | */ |
| 2280 | #define RIL_REQUEST_SMS_ACKNOWLEDGE 37 |
| 2281 | |
| 2282 | /** |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2283 | * RIL_REQUEST_GET_IMEI - DEPRECATED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2284 | * |
| 2285 | * Get the device IMEI, including check digit |
| 2286 | * |
johnwang | f8bc167 | 2009-05-14 19:19:47 -0700 | [diff] [blame] | 2287 | * The request is DEPRECATED, use RIL_REQUEST_DEVICE_IDENTITY |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2288 | * Valid when RadioState is not RADIO_STATE_UNAVAILABLE |
| 2289 | * |
| 2290 | * "data" is NULL |
| 2291 | * "response" is a const char * containing the IMEI |
| 2292 | * |
| 2293 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2294 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2295 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2296 | * GENERIC_FAILURE |
| 2297 | */ |
| 2298 | |
| 2299 | #define RIL_REQUEST_GET_IMEI 38 |
| 2300 | |
| 2301 | /** |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2302 | * RIL_REQUEST_GET_IMEISV - DEPRECATED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2303 | * |
| 2304 | * Get the device IMEISV, which should be two decimal digits |
| 2305 | * |
johnwang | f8bc167 | 2009-05-14 19:19:47 -0700 | [diff] [blame] | 2306 | * The request is DEPRECATED, use RIL_REQUEST_DEVICE_IDENTITY |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2307 | * Valid when RadioState is not RADIO_STATE_UNAVAILABLE |
| 2308 | * |
| 2309 | * "data" is NULL |
| 2310 | * "response" is a const char * containing the IMEISV |
| 2311 | * |
| 2312 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2313 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2314 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2315 | * GENERIC_FAILURE |
| 2316 | */ |
| 2317 | |
| 2318 | #define RIL_REQUEST_GET_IMEISV 39 |
| 2319 | |
| 2320 | |
| 2321 | /** |
| 2322 | * RIL_REQUEST_ANSWER |
| 2323 | * |
| 2324 | * Answer incoming call |
| 2325 | * |
| 2326 | * Will not be called for WAITING calls. |
| 2327 | * RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE will be used in this case |
| 2328 | * instead |
| 2329 | * |
| 2330 | * "data" is NULL |
| 2331 | * "response" is NULL |
| 2332 | * |
| 2333 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2334 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2335 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2336 | * GENERIC_FAILURE |
| 2337 | */ |
| 2338 | |
| 2339 | #define RIL_REQUEST_ANSWER 40 |
| 2340 | |
| 2341 | /** |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2342 | * RIL_REQUEST_DEACTIVATE_DATA_CALL |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2343 | * |
Wink Saville | 29487ef | 2011-04-15 09:15:31 -0700 | [diff] [blame] | 2344 | * Deactivate packet data connection and remove from the |
| 2345 | * data call list if SUCCESS is returned. Any other return |
| 2346 | * values should also try to remove the call from the list, |
| 2347 | * but that may not be possible. In any event a |
| 2348 | * RIL_REQUEST_RADIO_POWER off/on must clear the list. An |
| 2349 | * RIL_UNSOL_DATA_CALL_LIST_CHANGED is not expected to be |
| 2350 | * issued because of an RIL_REQUEST_DEACTIVATE_DATA_CALL. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2351 | * |
| 2352 | * "data" is const char ** |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2353 | * ((char**)data)[0] indicating CID |
Kazuhiro Ondo | d86799a | 2010-12-02 13:22:35 -0600 | [diff] [blame] | 2354 | * ((char**)data)[1] indicating Disconnect Reason |
| 2355 | * 0 => No specific reason specified |
| 2356 | * 1 => Radio shutdown requested |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2357 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2358 | * "response" is NULL |
| 2359 | * |
| 2360 | * Valid errors: |
| 2361 | * SUCCESS |
| 2362 | * RADIO_NOT_AVAILABLE |
| 2363 | * GENERIC_FAILURE |
| 2364 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2365 | * See also: RIL_REQUEST_SETUP_DATA_CALL |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2366 | */ |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2367 | #define RIL_REQUEST_DEACTIVATE_DATA_CALL 41 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2368 | |
| 2369 | /** |
| 2370 | * RIL_REQUEST_QUERY_FACILITY_LOCK |
| 2371 | * |
| 2372 | * Query the status of a facility lock state |
| 2373 | * |
| 2374 | * "data" is const char ** |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2375 | * ((const char **)data)[0] is the facility string code from TS 27.007 7.4 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2376 | * (eg "AO" for BAOC, "SC" for SIM lock) |
| 2377 | * ((const char **)data)[1] is the password, or "" if not required |
| 2378 | * ((const char **)data)[2] is the TS 27.007 service class bit vector of |
| 2379 | * services to query |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2380 | * ((const char **)data)[3] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
Wink Saville | fd72937 | 2011-02-22 16:19:39 -0800 | [diff] [blame] | 2381 | * This is only applicable in the case of Fixed Dialing Numbers |
| 2382 | * (FDN) requests. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2383 | * |
| 2384 | * "response" is an int * |
| 2385 | * ((const int *)response) 0 is the TS 27.007 service class bit vector of |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2386 | * services for which the specified barring facility |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2387 | * is active. "0" means "disabled for all" |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2388 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2389 | * |
| 2390 | * Valid errors: |
| 2391 | * SUCCESS |
| 2392 | * RADIO_NOT_AVAILABLE |
| 2393 | * GENERIC_FAILURE |
| 2394 | * |
| 2395 | */ |
| 2396 | #define RIL_REQUEST_QUERY_FACILITY_LOCK 42 |
| 2397 | |
| 2398 | /** |
| 2399 | * RIL_REQUEST_SET_FACILITY_LOCK |
| 2400 | * |
| 2401 | * Enable/disable one facility lock |
| 2402 | * |
| 2403 | * "data" is const char ** |
| 2404 | * |
| 2405 | * ((const char **)data)[0] = facility string code from TS 27.007 7.4 |
| 2406 | * (eg "AO" for BAOC) |
| 2407 | * ((const char **)data)[1] = "0" for "unlock" and "1" for "lock" |
| 2408 | * ((const char **)data)[2] = password |
| 2409 | * ((const char **)data)[3] = string representation of decimal TS 27.007 |
| 2410 | * service class bit vector. Eg, the string |
| 2411 | * "1" means "set this facility for voice services" |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2412 | * ((const char **)data)[4] = AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. |
Wink Saville | fd72937 | 2011-02-22 16:19:39 -0800 | [diff] [blame] | 2413 | * This is only applicable in the case of Fixed Dialing Numbers |
| 2414 | * (FDN) requests. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2415 | * |
jsh | 593c910 | 2009-06-24 16:13:44 -0700 | [diff] [blame] | 2416 | * "response" is int * |
| 2417 | * ((int *)response)[0] is the number of retries remaining, or -1 if unknown |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2418 | * |
| 2419 | * Valid errors: |
| 2420 | * SUCCESS |
| 2421 | * RADIO_NOT_AVAILABLE |
| 2422 | * GENERIC_FAILURE |
| 2423 | * |
| 2424 | */ |
| 2425 | #define RIL_REQUEST_SET_FACILITY_LOCK 43 |
| 2426 | |
| 2427 | /** |
| 2428 | * RIL_REQUEST_CHANGE_BARRING_PASSWORD |
| 2429 | * |
| 2430 | * Change call barring facility password |
| 2431 | * |
| 2432 | * "data" is const char ** |
| 2433 | * |
| 2434 | * ((const char **)data)[0] = facility string code from TS 27.007 7.4 |
| 2435 | * (eg "AO" for BAOC) |
| 2436 | * ((const char **)data)[1] = old password |
| 2437 | * ((const char **)data)[2] = new password |
| 2438 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2439 | * "response" is NULL |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2440 | * |
| 2441 | * Valid errors: |
| 2442 | * SUCCESS |
| 2443 | * RADIO_NOT_AVAILABLE |
| 2444 | * GENERIC_FAILURE |
| 2445 | * |
| 2446 | */ |
| 2447 | #define RIL_REQUEST_CHANGE_BARRING_PASSWORD 44 |
| 2448 | |
| 2449 | /** |
| 2450 | * RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE |
| 2451 | * |
| 2452 | * Query current network selectin mode |
| 2453 | * |
| 2454 | * "data" is NULL |
| 2455 | * |
| 2456 | * "response" is int * |
| 2457 | * ((const int *)response)[0] is |
| 2458 | * 0 for automatic selection |
| 2459 | * 1 for manual selection |
| 2460 | * |
| 2461 | * Valid errors: |
| 2462 | * SUCCESS |
| 2463 | * RADIO_NOT_AVAILABLE |
| 2464 | * GENERIC_FAILURE |
| 2465 | * |
| 2466 | */ |
| 2467 | #define RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE 45 |
| 2468 | |
| 2469 | /** |
| 2470 | * RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC |
| 2471 | * |
| 2472 | * Specify that the network should be selected automatically |
| 2473 | * |
| 2474 | * "data" is NULL |
| 2475 | * "response" is NULL |
| 2476 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2477 | * This request must not respond until the new operator is selected |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2478 | * and registered |
| 2479 | * |
| 2480 | * Valid errors: |
| 2481 | * SUCCESS |
| 2482 | * RADIO_NOT_AVAILABLE |
John Wang | 7553447 | 2010-04-20 15:11:42 -0700 | [diff] [blame] | 2483 | * ILLEGAL_SIM_OR_ME |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2484 | * GENERIC_FAILURE |
| 2485 | * |
John Wang | 7553447 | 2010-04-20 15:11:42 -0700 | [diff] [blame] | 2486 | * Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and |
| 2487 | * no retries needed, such as illegal SIM or ME. |
| 2488 | * Returns GENERIC_FAILURE for all other causes that might be |
| 2489 | * fixed by retries. |
| 2490 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2491 | */ |
| 2492 | #define RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC 46 |
| 2493 | |
| 2494 | /** |
| 2495 | * RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL |
| 2496 | * |
| 2497 | * Manually select a specified network. |
| 2498 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2499 | * "data" is const char * specifying MCCMNC of network to select (eg "310170") |
| 2500 | * "response" is NULL |
| 2501 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2502 | * This request must not respond until the new operator is selected |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2503 | * and registered |
| 2504 | * |
| 2505 | * Valid errors: |
| 2506 | * SUCCESS |
| 2507 | * RADIO_NOT_AVAILABLE |
John Wang | 7553447 | 2010-04-20 15:11:42 -0700 | [diff] [blame] | 2508 | * ILLEGAL_SIM_OR_ME |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2509 | * GENERIC_FAILURE |
| 2510 | * |
John Wang | 7553447 | 2010-04-20 15:11:42 -0700 | [diff] [blame] | 2511 | * Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and |
| 2512 | * no retries needed, such as illegal SIM or ME. |
| 2513 | * Returns GENERIC_FAILURE for all other causes that might be |
| 2514 | * fixed by retries. |
| 2515 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2516 | */ |
| 2517 | #define RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL 47 |
| 2518 | |
| 2519 | /** |
| 2520 | * RIL_REQUEST_QUERY_AVAILABLE_NETWORKS |
| 2521 | * |
| 2522 | * Scans for available networks |
| 2523 | * |
| 2524 | * "data" is NULL |
| 2525 | * "response" is const char ** that should be an array of n*4 strings, where |
| 2526 | * n is the number of available networks |
| 2527 | * For each available network: |
| 2528 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2529 | * ((const char **)response)[n+0] is long alpha ONS or EONS |
| 2530 | * ((const char **)response)[n+1] is short alpha ONS or EONS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2531 | * ((const char **)response)[n+2] is 5 or 6 digit numeric code (MCC + MNC) |
| 2532 | * ((const char **)response)[n+3] is a string value of the status: |
| 2533 | * "unknown" |
| 2534 | * "available" |
| 2535 | * "current" |
| 2536 | * "forbidden" |
| 2537 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2538 | * This request must not respond until the new operator is selected |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2539 | * and registered |
| 2540 | * |
| 2541 | * Valid errors: |
| 2542 | * SUCCESS |
| 2543 | * RADIO_NOT_AVAILABLE |
| 2544 | * GENERIC_FAILURE |
| 2545 | * |
| 2546 | */ |
| 2547 | #define RIL_REQUEST_QUERY_AVAILABLE_NETWORKS 48 |
| 2548 | |
| 2549 | /** |
| 2550 | * RIL_REQUEST_DTMF_START |
| 2551 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2552 | * Start playing a DTMF tone. Continue playing DTMF tone until |
| 2553 | * RIL_REQUEST_DTMF_STOP is received |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2554 | * |
| 2555 | * If a RIL_REQUEST_DTMF_START is received while a tone is currently playing, |
| 2556 | * it should cancel the previous tone and play the new one. |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2557 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2558 | * "data" is a char * |
| 2559 | * ((char *)data)[0] is a single character with one of 12 values: 0-9,*,# |
| 2560 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2561 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2562 | * Valid errors: |
| 2563 | * SUCCESS |
| 2564 | * RADIO_NOT_AVAILABLE |
| 2565 | * GENERIC_FAILURE |
| 2566 | * |
| 2567 | * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_STOP |
| 2568 | */ |
| 2569 | #define RIL_REQUEST_DTMF_START 49 |
| 2570 | |
| 2571 | /** |
| 2572 | * RIL_REQUEST_DTMF_STOP |
| 2573 | * |
| 2574 | * Stop playing a currently playing DTMF tone. |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2575 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2576 | * "data" is NULL |
| 2577 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2578 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2579 | * Valid errors: |
| 2580 | * SUCCESS |
| 2581 | * RADIO_NOT_AVAILABLE |
| 2582 | * GENERIC_FAILURE |
| 2583 | * |
| 2584 | * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_START |
| 2585 | */ |
| 2586 | #define RIL_REQUEST_DTMF_STOP 50 |
| 2587 | |
| 2588 | /** |
| 2589 | * RIL_REQUEST_BASEBAND_VERSION |
| 2590 | * |
| 2591 | * Return string value indicating baseband version, eg |
| 2592 | * response from AT+CGMR |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2593 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2594 | * "data" is NULL |
| 2595 | * "response" is const char * containing version string for log reporting |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2596 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2597 | * Valid errors: |
| 2598 | * SUCCESS |
| 2599 | * RADIO_NOT_AVAILABLE |
| 2600 | * GENERIC_FAILURE |
| 2601 | * |
| 2602 | */ |
| 2603 | #define RIL_REQUEST_BASEBAND_VERSION 51 |
| 2604 | |
| 2605 | /** |
| 2606 | * RIL_REQUEST_SEPARATE_CONNECTION |
| 2607 | * |
| 2608 | * Separate a party from a multiparty call placing the multiparty call |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2609 | * (less the specified party) on hold and leaving the specified party |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2610 | * as the only other member of the current (active) call |
| 2611 | * |
| 2612 | * Like AT+CHLD=2x |
| 2613 | * |
| 2614 | * See TS 22.084 1.3.8.2 (iii) |
| 2615 | * TS 22.030 6.5.5 "Entering "2X followed by send" |
| 2616 | * TS 27.007 "AT+CHLD=2x" |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2617 | * |
| 2618 | * "data" is an int * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2619 | * (int *)data)[0] contains Connection index (value of 'x' in CHLD above) "response" is NULL |
| 2620 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2621 | * "response" is NULL |
| 2622 | * |
| 2623 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2624 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2625 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2626 | * GENERIC_FAILURE |
| 2627 | */ |
| 2628 | #define RIL_REQUEST_SEPARATE_CONNECTION 52 |
| 2629 | |
| 2630 | |
| 2631 | /** |
| 2632 | * RIL_REQUEST_SET_MUTE |
| 2633 | * |
| 2634 | * Turn on or off uplink (microphone) mute. |
| 2635 | * |
| 2636 | * Will only be sent while voice call is active. |
| 2637 | * Will always be reset to "disable mute" when a new voice call is initiated |
| 2638 | * |
| 2639 | * "data" is an int * |
| 2640 | * (int *)data)[0] is 1 for "enable mute" and 0 for "disable mute" |
| 2641 | * |
| 2642 | * "response" is NULL |
| 2643 | * |
| 2644 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2645 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2646 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2647 | * GENERIC_FAILURE |
| 2648 | */ |
| 2649 | |
| 2650 | #define RIL_REQUEST_SET_MUTE 53 |
| 2651 | |
| 2652 | /** |
| 2653 | * RIL_REQUEST_GET_MUTE |
| 2654 | * |
| 2655 | * Queries the current state of the uplink mute setting |
| 2656 | * |
| 2657 | * "data" is NULL |
| 2658 | * "response" is an int * |
| 2659 | * (int *)response)[0] is 1 for "mute enabled" and 0 for "mute disabled" |
| 2660 | * |
| 2661 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2662 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2663 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2664 | * GENERIC_FAILURE |
| 2665 | */ |
| 2666 | |
| 2667 | #define RIL_REQUEST_GET_MUTE 54 |
| 2668 | |
| 2669 | /** |
| 2670 | * RIL_REQUEST_QUERY_CLIP |
| 2671 | * |
| 2672 | * Queries the status of the CLIP supplementary service |
| 2673 | * |
| 2674 | * (for MMI code "*#30#") |
| 2675 | * |
| 2676 | * "data" is NULL |
| 2677 | * "response" is an int * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2678 | * (int *)response)[0] is 1 for "CLIP provisioned" |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2679 | * and 0 for "CLIP not provisioned" |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2680 | * and 2 for "unknown, e.g. no network etc" |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2681 | * |
| 2682 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2683 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2684 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2685 | * GENERIC_FAILURE |
| 2686 | */ |
| 2687 | |
| 2688 | #define RIL_REQUEST_QUERY_CLIP 55 |
| 2689 | |
| 2690 | /** |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2691 | * RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE - Deprecated use the status |
| 2692 | * field in RIL_Data_Call_Response_v6. |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2693 | * |
| 2694 | * Requests the failure cause code for the most recently failed PDP |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2695 | * context or CDMA data connection active |
| 2696 | * replaces RIL_REQUEST_LAST_PDP_FAIL_CAUSE |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2697 | * |
| 2698 | * "data" is NULL |
| 2699 | * |
| 2700 | * "response" is a "int *" |
| 2701 | * ((int *)response)[0] is an integer cause code defined in TS 24.008 |
| 2702 | * section 6.1.3.1.3 or close approximation |
| 2703 | * |
| 2704 | * If the implementation does not have access to the exact cause codes, |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2705 | * then it should return one of the values listed in |
Wink Saville | 4380897 | 2011-01-13 17:39:51 -0800 | [diff] [blame] | 2706 | * RIL_DataCallFailCause, as the UI layer needs to distinguish these |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2707 | * cases for error notification |
| 2708 | * and potential retries. |
| 2709 | * |
| 2710 | * Valid errors: |
| 2711 | * SUCCESS |
| 2712 | * RADIO_NOT_AVAILABLE |
| 2713 | * GENERIC_FAILURE |
| 2714 | * |
| 2715 | * See also: RIL_REQUEST_LAST_CALL_FAIL_CAUSE |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2716 | * |
| 2717 | * Deprecated use the status field in RIL_Data_Call_Response_v6. |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2718 | */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2719 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2720 | #define RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE 56 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2721 | |
| 2722 | /** |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2723 | * RIL_REQUEST_DATA_CALL_LIST |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2724 | * |
Wink Saville | 29487ef | 2011-04-15 09:15:31 -0700 | [diff] [blame] | 2725 | * Returns the data call list. An entry is added when a |
| 2726 | * RIL_REQUEST_SETUP_DATA_CALL is issued and removed on a |
| 2727 | * RIL_REQUEST_DEACTIVATE_DATA_CALL. The list is emptied |
| 2728 | * when RIL_REQUEST_RADIO_POWER off/on is issued. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2729 | * |
| 2730 | * "data" is NULL |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 2731 | * "response" is an array of RIL_Data_Call_Response_v6 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2732 | * |
| 2733 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2734 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2735 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2736 | * GENERIC_FAILURE |
Wink Saville | 29487ef | 2011-04-15 09:15:31 -0700 | [diff] [blame] | 2737 | * |
| 2738 | * See also: RIL_UNSOL_DATA_CALL_LIST_CHANGED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2739 | */ |
| 2740 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2741 | #define RIL_REQUEST_DATA_CALL_LIST 57 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2742 | |
| 2743 | /** |
johnwang | f8bc167 | 2009-05-14 19:19:47 -0700 | [diff] [blame] | 2744 | * RIL_REQUEST_RESET_RADIO - DEPRECATED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2745 | * |
| 2746 | * Request a radio reset. The RIL implementation may postpone |
| 2747 | * the reset until after this request is responded to if the baseband |
| 2748 | * is presently busy. |
| 2749 | * |
johnwang | f8bc167 | 2009-05-14 19:19:47 -0700 | [diff] [blame] | 2750 | * The request is DEPRECATED, use RIL_REQUEST_RADIO_POWER |
| 2751 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2752 | * "data" is NULL |
| 2753 | * "response" is NULL |
| 2754 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2755 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2756 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2757 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 2758 | * GENERIC_FAILURE |
johnwang | f8bc167 | 2009-05-14 19:19:47 -0700 | [diff] [blame] | 2759 | * REQUEST_NOT_SUPPORTED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2760 | */ |
| 2761 | |
| 2762 | #define RIL_REQUEST_RESET_RADIO 58 |
| 2763 | |
| 2764 | /** |
| 2765 | * RIL_REQUEST_OEM_HOOK_RAW |
| 2766 | * |
| 2767 | * This request reserved for OEM-specific uses. It passes raw byte arrays |
| 2768 | * back and forth. |
| 2769 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2770 | * It can be invoked on the Java side from |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2771 | * com.android.internal.telephony.Phone.invokeOemRilRequestRaw() |
| 2772 | * |
| 2773 | * "data" is a char * of bytes copied from the byte[] data argument in java |
| 2774 | * "response" is a char * of bytes that will returned via the |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2775 | * caller's "response" Message here: |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2776 | * (byte[])(((AsyncResult)response.obj).result) |
| 2777 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2778 | * An error response here will result in |
| 2779 | * (((AsyncResult)response.obj).result) == null and |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2780 | * (((AsyncResult)response.obj).exception) being an instance of |
| 2781 | * com.android.internal.telephony.gsm.CommandException |
| 2782 | * |
| 2783 | * Valid errors: |
| 2784 | * All |
| 2785 | */ |
| 2786 | |
| 2787 | #define RIL_REQUEST_OEM_HOOK_RAW 59 |
| 2788 | |
| 2789 | /** |
| 2790 | * RIL_REQUEST_OEM_HOOK_STRINGS |
| 2791 | * |
| 2792 | * This request reserved for OEM-specific uses. It passes strings |
| 2793 | * back and forth. |
| 2794 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2795 | * It can be invoked on the Java side from |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2796 | * com.android.internal.telephony.Phone.invokeOemRilRequestStrings() |
| 2797 | * |
| 2798 | * "data" is a const char **, representing an array of null-terminated UTF-8 |
| 2799 | * strings copied from the "String[] strings" argument to |
| 2800 | * invokeOemRilRequestStrings() |
| 2801 | * |
| 2802 | * "response" is a const char **, representing an array of null-terminated UTF-8 |
| 2803 | * stings that will be returned via the caller's response message here: |
| 2804 | * |
| 2805 | * (String[])(((AsyncResult)response.obj).result) |
| 2806 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 2807 | * An error response here will result in |
| 2808 | * (((AsyncResult)response.obj).result) == null and |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2809 | * (((AsyncResult)response.obj).exception) being an instance of |
| 2810 | * com.android.internal.telephony.gsm.CommandException |
| 2811 | * |
| 2812 | * Valid errors: |
| 2813 | * All |
| 2814 | */ |
| 2815 | |
| 2816 | #define RIL_REQUEST_OEM_HOOK_STRINGS 60 |
| 2817 | |
| 2818 | /** |
| 2819 | * RIL_REQUEST_SCREEN_STATE |
| 2820 | * |
| 2821 | * Indicates the current state of the screen. When the screen is off, the |
| 2822 | * RIL should notify the baseband to suppress certain notifications (eg, |
jsh | 4326561 | 2009-09-29 17:46:11 -0700 | [diff] [blame] | 2823 | * signal strength and changes in LAC/CID or BID/SID/NID/latitude/longitude) |
| 2824 | * in an effort to conserve power. These notifications should resume when the |
| 2825 | * screen is on. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2826 | * |
| 2827 | * "data" is int * |
| 2828 | * ((int *)data)[0] is == 1 for "Screen On" |
| 2829 | * ((int *)data)[0] is == 0 for "Screen Off" |
| 2830 | * |
| 2831 | * "response" is NULL |
| 2832 | * |
| 2833 | * Valid errors: |
| 2834 | * SUCCESS |
| 2835 | * GENERIC_FAILURE |
| 2836 | */ |
| 2837 | #define RIL_REQUEST_SCREEN_STATE 61 |
| 2838 | |
| 2839 | |
| 2840 | /** |
| 2841 | * RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION |
| 2842 | * |
| 2843 | * Enables/disables supplementary service related notifications |
| 2844 | * from the network. |
| 2845 | * |
| 2846 | * Notifications are reported via RIL_UNSOL_SUPP_SVC_NOTIFICATION. |
| 2847 | * |
| 2848 | * "data" is int * |
| 2849 | * ((int *)data)[0] is == 1 for notifications enabled |
| 2850 | * ((int *)data)[0] is == 0 for notifications disabled |
| 2851 | * |
| 2852 | * "response" is NULL |
| 2853 | * |
| 2854 | * Valid errors: |
| 2855 | * SUCCESS |
| 2856 | * RADIO_NOT_AVAILABLE |
| 2857 | * GENERIC_FAILURE |
| 2858 | * |
| 2859 | * See also: RIL_UNSOL_SUPP_SVC_NOTIFICATION. |
| 2860 | */ |
| 2861 | #define RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION 62 |
| 2862 | |
| 2863 | /** |
| 2864 | * RIL_REQUEST_WRITE_SMS_TO_SIM |
| 2865 | * |
| 2866 | * Stores a SMS message to SIM memory. |
| 2867 | * |
| 2868 | * "data" is RIL_SMS_WriteArgs * |
| 2869 | * |
| 2870 | * "response" is int * |
| 2871 | * ((const int *)response)[0] is the record index where the message is stored. |
| 2872 | * |
| 2873 | * Valid errors: |
| 2874 | * SUCCESS |
| 2875 | * GENERIC_FAILURE |
| 2876 | * |
| 2877 | */ |
| 2878 | #define RIL_REQUEST_WRITE_SMS_TO_SIM 63 |
| 2879 | |
| 2880 | /** |
| 2881 | * RIL_REQUEST_DELETE_SMS_ON_SIM |
| 2882 | * |
| 2883 | * Deletes a SMS message from SIM memory. |
| 2884 | * |
| 2885 | * "data" is int * |
| 2886 | * ((int *)data)[0] is the record index of the message to delete. |
| 2887 | * |
| 2888 | * "response" is NULL |
| 2889 | * |
| 2890 | * Valid errors: |
| 2891 | * SUCCESS |
| 2892 | * GENERIC_FAILURE |
| 2893 | * |
| 2894 | */ |
| 2895 | #define RIL_REQUEST_DELETE_SMS_ON_SIM 64 |
| 2896 | |
| 2897 | /** |
| 2898 | * RIL_REQUEST_SET_BAND_MODE |
| 2899 | * |
| 2900 | * Assign a specified band for RF configuration. |
| 2901 | * |
| 2902 | * "data" is int * |
| 2903 | * ((int *)data)[0] is == 0 for "unspecified" (selected by baseband automatically) |
| 2904 | * ((int *)data)[0] is == 1 for "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000) |
| 2905 | * ((int *)data)[0] is == 2 for "US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900) |
| 2906 | * ((int *)data)[0] is == 3 for "JPN band" (WCDMA-800 / WCDMA-IMT-2000) |
| 2907 | * ((int *)data)[0] is == 4 for "AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000) |
| 2908 | * ((int *)data)[0] is == 5 for "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850) |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2909 | * ((int *)data)[0] is == 6 for "Cellular (800-MHz Band)" |
| 2910 | * ((int *)data)[0] is == 7 for "PCS (1900-MHz Band)" |
| 2911 | * ((int *)data)[0] is == 8 for "Band Class 3 (JTACS Band)" |
| 2912 | * ((int *)data)[0] is == 9 for "Band Class 4 (Korean PCS Band)" |
| 2913 | * ((int *)data)[0] is == 10 for "Band Class 5 (450-MHz Band)" |
| 2914 | * ((int *)data)[0] is == 11 for "Band Class 6 (2-GMHz IMT2000 Band)" |
| 2915 | * ((int *)data)[0] is == 12 for "Band Class 7 (Upper 700-MHz Band)" |
| 2916 | * ((int *)data)[0] is == 13 for "Band Class 8 (1800-MHz Band)" |
| 2917 | * ((int *)data)[0] is == 14 for "Band Class 9 (900-MHz Band)" |
| 2918 | * ((int *)data)[0] is == 15 for "Band Class 10 (Secondary 800-MHz Band)" |
| 2919 | * ((int *)data)[0] is == 16 for "Band Class 11 (400-MHz European PAMR Band)" |
| 2920 | * ((int *)data)[0] is == 17 for "Band Class 15 (AWS Band)" |
| 2921 | * ((int *)data)[0] is == 18 for "Band Class 16 (US 2.5-GHz Band)" |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2922 | * |
| 2923 | * "response" is NULL |
| 2924 | * |
| 2925 | * Valid errors: |
| 2926 | * SUCCESS |
| 2927 | * RADIO_NOT_AVAILABLE |
| 2928 | * GENERIC_FAILURE |
| 2929 | */ |
| 2930 | #define RIL_REQUEST_SET_BAND_MODE 65 |
| 2931 | |
| 2932 | /** |
| 2933 | * RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE |
| 2934 | * |
| 2935 | * Query the list of band mode supported by RF. |
| 2936 | * |
| 2937 | * "data" is NULL |
| 2938 | * |
| 2939 | * "response" is int * |
| 2940 | * "response" points to an array of int's, the int[0] is the size of array, reset is one for |
| 2941 | * each available band mode. |
| 2942 | * |
| 2943 | * 0 for "unspecified" (selected by baseband automatically) |
| 2944 | * 1 for "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000) |
| 2945 | * 2 for "US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900) |
| 2946 | * 3 for "JPN band" (WCDMA-800 / WCDMA-IMT-2000) |
| 2947 | * 4 for "AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000) |
| 2948 | * 5 for "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850) |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 2949 | * 6 for "Cellular (800-MHz Band)" |
| 2950 | * 7 for "PCS (1900-MHz Band)" |
| 2951 | * 8 for "Band Class 3 (JTACS Band)" |
| 2952 | * 9 for "Band Class 4 (Korean PCS Band)" |
| 2953 | * 10 for "Band Class 5 (450-MHz Band)" |
| 2954 | * 11 for "Band Class 6 (2-GMHz IMT2000 Band)" |
| 2955 | * 12 for "Band Class 7 (Upper 700-MHz Band)" |
| 2956 | * 13 for "Band Class 8 (1800-MHz Band)" |
| 2957 | * 14 for "Band Class 9 (900-MHz Band)" |
| 2958 | * 15 for "Band Class 10 (Secondary 800-MHz Band)" |
| 2959 | * 16 for "Band Class 11 (400-MHz European PAMR Band)" |
| 2960 | * 17 for "Band Class 15 (AWS Band)" |
| 2961 | * 18 for "Band Class 16 (US 2.5-GHz Band)" |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 2962 | * |
| 2963 | * Valid errors: |
| 2964 | * SUCCESS |
| 2965 | * RADIO_NOT_AVAILABLE |
| 2966 | * GENERIC_FAILURE |
| 2967 | * |
| 2968 | * See also: RIL_REQUEST_SET_BAND_MODE |
| 2969 | */ |
| 2970 | #define RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE 66 |
| 2971 | |
| 2972 | /** |
| 2973 | * RIL_REQUEST_STK_GET_PROFILE |
| 2974 | * |
| 2975 | * Requests the profile of SIM tool kit. |
| 2976 | * The profile indicates the SAT/USAT features supported by ME. |
| 2977 | * The SAT/USAT features refer to 3GPP TS 11.14 and 3GPP TS 31.111 |
| 2978 | * |
| 2979 | * "data" is NULL |
| 2980 | * |
| 2981 | * "response" is a const char * containing SAT/USAT profile |
| 2982 | * in hexadecimal format string starting with first byte of terminal profile |
| 2983 | * |
| 2984 | * Valid errors: |
| 2985 | * RIL_E_SUCCESS |
| 2986 | * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) |
| 2987 | * RIL_E_GENERIC_FAILURE |
| 2988 | */ |
| 2989 | #define RIL_REQUEST_STK_GET_PROFILE 67 |
| 2990 | |
| 2991 | /** |
| 2992 | * RIL_REQUEST_STK_SET_PROFILE |
| 2993 | * |
| 2994 | * Download the STK terminal profile as part of SIM initialization |
| 2995 | * procedure |
| 2996 | * |
| 2997 | * "data" is a const char * containing SAT/USAT profile |
| 2998 | * in hexadecimal format string starting with first byte of terminal profile |
| 2999 | * |
| 3000 | * "response" is NULL |
| 3001 | * |
| 3002 | * Valid errors: |
| 3003 | * RIL_E_SUCCESS |
| 3004 | * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) |
| 3005 | * RIL_E_GENERIC_FAILURE |
| 3006 | */ |
| 3007 | #define RIL_REQUEST_STK_SET_PROFILE 68 |
| 3008 | |
| 3009 | /** |
| 3010 | * RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND |
| 3011 | * |
| 3012 | * Requests to send a SAT/USAT envelope command to SIM. |
| 3013 | * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111 |
| 3014 | * |
| 3015 | * "data" is a const char * containing SAT/USAT command |
| 3016 | * in hexadecimal format string starting with command tag |
| 3017 | * |
| 3018 | * "response" is a const char * containing SAT/USAT response |
| 3019 | * in hexadecimal format string starting with first byte of response |
| 3020 | * (May be NULL) |
| 3021 | * |
| 3022 | * Valid errors: |
| 3023 | * RIL_E_SUCCESS |
| 3024 | * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) |
| 3025 | * RIL_E_GENERIC_FAILURE |
| 3026 | */ |
| 3027 | #define RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND 69 |
| 3028 | |
| 3029 | /** |
| 3030 | * RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE |
| 3031 | * |
| 3032 | * Requests to send a terminal response to SIM for a received |
| 3033 | * proactive command |
| 3034 | * |
| 3035 | * "data" is a const char * containing SAT/USAT response |
| 3036 | * in hexadecimal format string starting with first byte of response data |
| 3037 | * |
| 3038 | * "response" is NULL |
| 3039 | * |
| 3040 | * Valid errors: |
| 3041 | * RIL_E_SUCCESS |
| 3042 | * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) |
| 3043 | * RIL_E_GENERIC_FAILURE |
| 3044 | */ |
| 3045 | #define RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE 70 |
| 3046 | |
| 3047 | /** |
| 3048 | * RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM |
| 3049 | * |
| 3050 | * When STK application gets RIL_UNSOL_STK_CALL_SETUP, the call actually has |
| 3051 | * been initialized by ME already. (We could see the call has been in the 'call |
| 3052 | * list') So, STK application needs to accept/reject the call according as user |
| 3053 | * operations. |
| 3054 | * |
| 3055 | * "data" is int * |
| 3056 | * ((int *)data)[0] is > 0 for "accept" the call setup |
| 3057 | * ((int *)data)[0] is == 0 for "reject" the call setup |
| 3058 | * |
| 3059 | * "response" is NULL |
| 3060 | * |
| 3061 | * Valid errors: |
| 3062 | * RIL_E_SUCCESS |
| 3063 | * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) |
| 3064 | * RIL_E_GENERIC_FAILURE |
| 3065 | */ |
| 3066 | #define RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM 71 |
| 3067 | |
| 3068 | /** |
| 3069 | * RIL_REQUEST_EXPLICIT_CALL_TRANSFER |
| 3070 | * |
| 3071 | * Connects the two calls and disconnects the subscriber from both calls. |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3072 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 3073 | * "data" is NULL |
| 3074 | * "response" is NULL |
| 3075 | * |
| 3076 | * Valid errors: |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3077 | * SUCCESS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 3078 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 3079 | * GENERIC_FAILURE |
| 3080 | */ |
| 3081 | #define RIL_REQUEST_EXPLICIT_CALL_TRANSFER 72 |
| 3082 | |
| 3083 | /** |
| 3084 | * RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE |
| 3085 | * |
| 3086 | * Requests to set the preferred network type for searching and registering |
| 3087 | * (CS/PS domain, RAT, and operation mode) |
| 3088 | * |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 3089 | * "data" is int * which is RIL_PreferredNetworkType |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 3090 | * |
| 3091 | * "response" is NULL |
| 3092 | * |
| 3093 | * Valid errors: |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3094 | * SUCCESS |
| 3095 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 3096 | * GENERIC_FAILURE |
| 3097 | * MODE_NOT_SUPPORTED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 3098 | */ |
| 3099 | #define RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE 73 |
| 3100 | |
| 3101 | /** |
| 3102 | * RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE |
| 3103 | * |
| 3104 | * Query the preferred network type (CS/PS domain, RAT, and operation mode) |
| 3105 | * for searching and registering |
| 3106 | * |
| 3107 | * "data" is NULL |
| 3108 | * |
| 3109 | * "response" is int * |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 3110 | * ((int *)reponse)[0] is == RIL_PreferredNetworkType |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 3111 | * |
| 3112 | * Valid errors: |
| 3113 | * SUCCESS |
| 3114 | * RADIO_NOT_AVAILABLE |
| 3115 | * GENERIC_FAILURE |
| 3116 | * |
| 3117 | * See also: RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE |
| 3118 | */ |
| 3119 | #define RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE 74 |
| 3120 | |
| 3121 | /** |
| 3122 | * RIL_REQUEST_NEIGHBORING_CELL_IDS |
| 3123 | * |
| 3124 | * Request neighboring cell id in GSM network |
| 3125 | * |
| 3126 | * "data" is NULL |
| 3127 | * "response" must be a " const RIL_NeighboringCell** " |
| 3128 | * |
| 3129 | * Valid errors: |
| 3130 | * SUCCESS |
| 3131 | * RADIO_NOT_AVAILABLE |
| 3132 | * GENERIC_FAILURE |
| 3133 | */ |
| 3134 | #define RIL_REQUEST_GET_NEIGHBORING_CELL_IDS 75 |
| 3135 | |
| 3136 | /** |
| 3137 | * RIL_REQUEST_SET_LOCATION_UPDATES |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 3138 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 3139 | * Enables/disables network state change notifications due to changes in |
jsh | 4326561 | 2009-09-29 17:46:11 -0700 | [diff] [blame] | 3140 | * LAC and/or CID (for GSM) or BID/SID/NID/latitude/longitude (for CDMA). |
| 3141 | * Basically +CREG=2 vs. +CREG=1 (TS 27.007). |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 3142 | * |
| 3143 | * Note: The RIL implementation should default to "updates enabled" |
| 3144 | * when the screen is on and "updates disabled" when the screen is off. |
| 3145 | * |
| 3146 | * "data" is int * |
| 3147 | * ((int *)data)[0] is == 1 for updates enabled (+CREG=2) |
| 3148 | * ((int *)data)[0] is == 0 for updates disabled (+CREG=1) |
| 3149 | * |
| 3150 | * "response" is NULL |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 3151 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 3152 | * Valid errors: |
| 3153 | * SUCCESS |
| 3154 | * RADIO_NOT_AVAILABLE |
| 3155 | * GENERIC_FAILURE |
| 3156 | * |
| 3157 | * See also: RIL_REQUEST_SCREEN_STATE, RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED |
| 3158 | */ |
| 3159 | #define RIL_REQUEST_SET_LOCATION_UPDATES 76 |
| 3160 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3161 | /** |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 3162 | * RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3163 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3164 | * Request to set the location where the CDMA subscription shall |
| 3165 | * be retrieved |
| 3166 | * |
| 3167 | * "data" is int * |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 3168 | * ((int *)data)[0] is == RIL_CdmaSubscriptionSource |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3169 | * |
| 3170 | * "response" is NULL |
| 3171 | * |
| 3172 | * Valid errors: |
| 3173 | * SUCCESS |
| 3174 | * RADIO_NOT_AVAILABLE |
| 3175 | * GENERIC_FAILURE |
| 3176 | * SIM_ABSENT |
| 3177 | * SUBSCRIPTION_NOT_AVAILABLE |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 3178 | * |
| 3179 | * See also: RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3180 | */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 3181 | #define RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE 77 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3182 | |
| 3183 | /** |
| 3184 | * RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3185 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3186 | * Request to set the roaming preferences in CDMA |
| 3187 | * |
| 3188 | * "data" is int * |
| 3189 | * ((int *)data)[0] is == 0 for Home Networks only, as defined in PRL |
| 3190 | * ((int *)data)[0] is == 1 for Roaming on Affiliated networks, as defined in PRL |
| 3191 | * ((int *)data)[0] is == 2 for Roaming on Any Network, as defined in the PRL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3192 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3193 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3194 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3195 | * Valid errors: |
| 3196 | * SUCCESS |
| 3197 | * RADIO_NOT_AVAILABLE |
| 3198 | * GENERIC_FAILURE |
| 3199 | */ |
| 3200 | #define RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE 78 |
| 3201 | |
| 3202 | /** |
| 3203 | * RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3204 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3205 | * Request the actual setting of the roaming preferences in CDMA in the modem |
| 3206 | * |
| 3207 | * "data" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3208 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3209 | * "response" is int * |
| 3210 | * ((int *)response)[0] is == 0 for Home Networks only, as defined in PRL |
| 3211 | * ((int *)response)[0] is == 1 for Roaming on Affiliated networks, as defined in PRL |
| 3212 | * ((int *)response)[0] is == 2 for Roaming on Any Network, as defined in the PRL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3213 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3214 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3215 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3216 | * Valid errors: |
| 3217 | * SUCCESS |
| 3218 | * RADIO_NOT_AVAILABLE |
| 3219 | * GENERIC_FAILURE |
| 3220 | */ |
| 3221 | #define RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE 79 |
| 3222 | |
| 3223 | /** |
| 3224 | * RIL_REQUEST_SET_TTY_MODE |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3225 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3226 | * Request to set the TTY mode |
| 3227 | * |
| 3228 | * "data" is int * |
| 3229 | * ((int *)data)[0] is == 0 for TTY off |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 3230 | * ((int *)data)[0] is == 1 for TTY Full |
| 3231 | * ((int *)data)[0] is == 2 for TTY HCO (hearing carryover) |
| 3232 | * ((int *)data)[0] is == 3 for TTY VCO (voice carryover) |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3233 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3234 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3235 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3236 | * Valid errors: |
| 3237 | * SUCCESS |
| 3238 | * RADIO_NOT_AVAILABLE |
| 3239 | * GENERIC_FAILURE |
| 3240 | */ |
| 3241 | #define RIL_REQUEST_SET_TTY_MODE 80 |
| 3242 | |
| 3243 | /** |
| 3244 | * RIL_REQUEST_QUERY_TTY_MODE |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3245 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3246 | * Request the setting of TTY mode |
| 3247 | * |
| 3248 | * "data" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3249 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3250 | * "response" is int * |
| 3251 | * ((int *)response)[0] is == 0 for TTY off |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 3252 | * ((int *)response)[0] is == 1 for TTY Full |
| 3253 | * ((int *)response)[0] is == 2 for TTY HCO (hearing carryover) |
| 3254 | * ((int *)response)[0] is == 3 for TTY VCO (voice carryover) |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3255 | * |
| 3256 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3257 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3258 | * Valid errors: |
| 3259 | * SUCCESS |
| 3260 | * RADIO_NOT_AVAILABLE |
| 3261 | * GENERIC_FAILURE |
| 3262 | */ |
| 3263 | #define RIL_REQUEST_QUERY_TTY_MODE 81 |
| 3264 | |
| 3265 | /** |
| 3266 | * RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE |
| 3267 | * |
| 3268 | * Request to set the preferred voice privacy mode used in voice |
| 3269 | * scrambling |
| 3270 | * |
| 3271 | * "data" is int * |
| 3272 | * ((int *)data)[0] is == 0 for Standard Privacy Mode (Public Long Code Mask) |
| 3273 | * ((int *)data)[0] is == 1 for Enhanced Privacy Mode (Private Long Code Mask) |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3274 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3275 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3276 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3277 | * Valid errors: |
| 3278 | * SUCCESS |
| 3279 | * RADIO_NOT_AVAILABLE |
| 3280 | * GENERIC_FAILURE |
| 3281 | */ |
| 3282 | #define RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE 82 |
| 3283 | |
| 3284 | /** |
| 3285 | * RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3286 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3287 | * Request the setting of preferred voice privacy mode |
| 3288 | * |
| 3289 | * "data" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3290 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3291 | * "response" is int * |
| 3292 | * ((int *)response)[0] is == 0 for Standard Privacy Mode (Public Long Code Mask) |
| 3293 | * ((int *)response)[0] is == 1 for Enhanced Privacy Mode (Private Long Code Mask) |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3294 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3295 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3296 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3297 | * Valid errors: |
| 3298 | * SUCCESS |
| 3299 | * RADIO_NOT_AVAILABLE |
| 3300 | * GENERIC_FAILURE |
| 3301 | */ |
| 3302 | #define RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE 83 |
| 3303 | |
| 3304 | /** |
| 3305 | * RIL_REQUEST_CDMA_FLASH |
| 3306 | * |
| 3307 | * Send FLASH |
| 3308 | * |
| 3309 | * "data" is const char * |
| 3310 | * ((const char *)data)[0] is a FLASH string |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3311 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3312 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3313 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3314 | * Valid errors: |
| 3315 | * SUCCESS |
| 3316 | * RADIO_NOT_AVAILABLE |
| 3317 | * GENERIC_FAILURE |
| 3318 | * |
| 3319 | */ |
| 3320 | #define RIL_REQUEST_CDMA_FLASH 84 |
| 3321 | |
| 3322 | /** |
| 3323 | * RIL_REQUEST_CDMA_BURST_DTMF |
| 3324 | * |
| 3325 | * Send DTMF string |
| 3326 | * |
jsh | 602f80f | 2009-07-10 15:44:37 -0700 | [diff] [blame] | 3327 | * "data" is const char ** |
| 3328 | * ((const char **)data)[0] is a DTMF string |
| 3329 | * ((const char **)data)[1] is the DTMF ON length in milliseconds, or 0 to use |
| 3330 | * default |
| 3331 | * ((const char **)data)[2] is the DTMF OFF length in milliseconds, or 0 to use |
| 3332 | * default |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3333 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3334 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3335 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3336 | * Valid errors: |
| 3337 | * SUCCESS |
| 3338 | * RADIO_NOT_AVAILABLE |
| 3339 | * GENERIC_FAILURE |
| 3340 | * |
| 3341 | */ |
| 3342 | #define RIL_REQUEST_CDMA_BURST_DTMF 85 |
| 3343 | |
| 3344 | /** |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 3345 | * RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3346 | * |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 3347 | * Takes a 26 digit string (20 digit AKEY + 6 digit checksum). |
| 3348 | * If the checksum is valid the 20 digit AKEY is written to NV, |
| 3349 | * replacing the existing AKEY no matter what it was before. |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3350 | * |
| 3351 | * "data" is const char * |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 3352 | * ((const char *)data)[0] is a 26 digit string (ASCII digits '0'-'9') |
| 3353 | * where the last 6 digits are a checksum of the |
| 3354 | * first 20, as specified in TR45.AHAG |
| 3355 | * "Common Cryptographic Algorithms, Revision D.1 |
| 3356 | * Section 2.2" |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3357 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3358 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3359 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3360 | * Valid errors: |
| 3361 | * SUCCESS |
| 3362 | * RADIO_NOT_AVAILABLE |
| 3363 | * GENERIC_FAILURE |
| 3364 | * |
| 3365 | */ |
Naveen Kalla | 03c1edf | 2009-09-23 11:18:35 -0700 | [diff] [blame] | 3366 | #define RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY 86 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3367 | |
| 3368 | /** |
| 3369 | * RIL_REQUEST_CDMA_SEND_SMS |
| 3370 | * |
| 3371 | * Send a CDMA SMS message |
| 3372 | * |
| 3373 | * "data" is const RIL_CDMA_SMS_Message * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3374 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3375 | * "response" is a const RIL_SMS_Response * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3376 | * |
johnwang | bfb151b | 2009-09-11 15:20:38 -0700 | [diff] [blame] | 3377 | * Based on the return error, caller decides to resend if sending sms |
| 3378 | * fails. The CDMA error class is derived as follows, |
| 3379 | * SUCCESS is error class 0 (no error) |
| 3380 | * SMS_SEND_FAIL_RETRY is error class 2 (temporary failure) |
| 3381 | * and GENERIC_FAILURE is error class 3 (permanent and no retry) |
| 3382 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3383 | * Valid errors: |
| 3384 | * SUCCESS |
| 3385 | * RADIO_NOT_AVAILABLE |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 3386 | * SMS_SEND_FAIL_RETRY |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3387 | * GENERIC_FAILURE |
| 3388 | * |
| 3389 | */ |
| 3390 | #define RIL_REQUEST_CDMA_SEND_SMS 87 |
| 3391 | |
| 3392 | /** |
| 3393 | * RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE |
| 3394 | * |
| 3395 | * Acknowledge the success or failure in the receipt of SMS |
| 3396 | * previously indicated via RIL_UNSOL_RESPONSE_CDMA_NEW_SMS |
| 3397 | * |
| 3398 | * "data" is const RIL_CDMA_SMS_Ack * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3399 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3400 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3401 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3402 | * Valid errors: |
| 3403 | * SUCCESS |
| 3404 | * RADIO_NOT_AVAILABLE |
| 3405 | * GENERIC_FAILURE |
| 3406 | * |
| 3407 | */ |
| 3408 | #define RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE 88 |
| 3409 | |
| 3410 | /** |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3411 | * RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3412 | * |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3413 | * Request the setting of GSM/WCDMA Cell Broadcast SMS config. |
| 3414 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3415 | * "data" is NULL |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3416 | * |
| 3417 | * "response" is a const RIL_GSM_BroadcastSmsConfigInfo ** |
| 3418 | * "responselen" is count * sizeof (RIL_GSM_BroadcastSmsConfigInfo *) |
| 3419 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3420 | * Valid errors: |
| 3421 | * SUCCESS |
| 3422 | * RADIO_NOT_AVAILABLE |
| 3423 | * GENERIC_FAILURE |
| 3424 | * |
| 3425 | */ |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3426 | #define RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG 89 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3427 | |
| 3428 | /** |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3429 | * RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3430 | * |
| 3431 | * Set GSM/WCDMA Cell Broadcast SMS config |
| 3432 | * |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3433 | * "data" is a const RIL_GSM_BroadcastSmsConfigInfo ** |
| 3434 | * "datalen" is count * sizeof(RIL_GSM_BroadcastSmsConfigInfo *) |
| 3435 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3436 | * "response" is NULL |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3437 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3438 | * Valid errors: |
| 3439 | * SUCCESS |
| 3440 | * RADIO_NOT_AVAILABLE |
| 3441 | * GENERIC_FAILURE |
| 3442 | * |
| 3443 | */ |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3444 | #define RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG 90 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3445 | |
| 3446 | /** |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3447 | * RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3448 | * |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3449 | * Enable or disable the reception of GSM/WCDMA Cell Broadcast SMS |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3450 | * |
| 3451 | * "data" is const int * |
| 3452 | * (const int *)data[0] indicates to activate or turn off the |
| 3453 | * reception of GSM/WCDMA Cell Broadcast SMS, 0-1, |
| 3454 | * 0 - Activate, 1 - Turn off |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3455 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3456 | * "response" is NULL |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3457 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3458 | * Valid errors: |
| 3459 | * SUCCESS |
| 3460 | * RADIO_NOT_AVAILABLE |
| 3461 | * GENERIC_FAILURE |
| 3462 | * |
| 3463 | */ |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3464 | #define RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION 91 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3465 | |
| 3466 | /** |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3467 | * RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3468 | * |
| 3469 | * Request the setting of CDMA Broadcast SMS config |
| 3470 | * |
| 3471 | * "data" is NULL |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3472 | * |
| 3473 | * "response" is a const RIL_CDMA_BroadcastSmsConfigInfo ** |
| 3474 | * "responselen" is count * sizeof (RIL_CDMA_BroadcastSmsConfigInfo *) |
| 3475 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3476 | * Valid errors: |
| 3477 | * SUCCESS |
| 3478 | * RADIO_NOT_AVAILABLE |
| 3479 | * GENERIC_FAILURE |
| 3480 | * |
| 3481 | */ |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3482 | #define RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG 92 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3483 | |
| 3484 | /** |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3485 | * RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3486 | * |
| 3487 | * Set CDMA Broadcast SMS config |
| 3488 | * |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3489 | * "data" is an const RIL_CDMA_BroadcastSmsConfigInfo ** |
| 3490 | * "datalen" is count * sizeof(const RIL_CDMA_BroadcastSmsConfigInfo *) |
| 3491 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3492 | * "response" is NULL |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3493 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3494 | * Valid errors: |
| 3495 | * SUCCESS |
| 3496 | * RADIO_NOT_AVAILABLE |
| 3497 | * GENERIC_FAILURE |
| 3498 | * |
| 3499 | */ |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3500 | #define RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG 93 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3501 | |
| 3502 | /** |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3503 | * RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3504 | * |
| 3505 | * Enable or disable the reception of CDMA Broadcast SMS |
| 3506 | * |
| 3507 | * "data" is const int * |
| 3508 | * (const int *)data[0] indicates to activate or turn off the |
| 3509 | * reception of CDMA Broadcast SMS, 0-1, |
| 3510 | * 0 - Activate, 1 - Turn off |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3511 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3512 | * "response" is NULL |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3513 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3514 | * Valid errors: |
| 3515 | * SUCCESS |
| 3516 | * RADIO_NOT_AVAILABLE |
| 3517 | * GENERIC_FAILURE |
| 3518 | * |
| 3519 | */ |
Wink Saville | a592eeb | 2009-05-22 13:26:36 -0700 | [diff] [blame] | 3520 | #define RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION 94 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3521 | |
| 3522 | /** |
| 3523 | * RIL_REQUEST_CDMA_SUBSCRIPTION |
| 3524 | * |
| 3525 | * Request the device MDN / H_SID / H_NID. |
| 3526 | * |
| 3527 | * The request is only allowed when CDMA subscription is available. When CDMA |
| 3528 | * subscription is changed, application layer should re-issue the request to |
| 3529 | * update the subscription information. |
| 3530 | * |
| 3531 | * If a NULL value is returned for any of the device id, it means that error |
| 3532 | * accessing the device. |
| 3533 | * |
| 3534 | * "response" is const char ** |
| 3535 | * ((const char **)response)[0] is MDN if CDMA subscription is available |
jsh | 29be25c | 2009-07-14 20:18:59 -0700 | [diff] [blame] | 3536 | * ((const char **)response)[1] is a comma separated list of H_SID (Home SID) if |
| 3537 | * CDMA subscription is available, in decimal format |
| 3538 | * ((const char **)response)[2] is a comma separated list of H_NID (Home NID) if |
| 3539 | * CDMA subscription is available, in decimal format |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 3540 | * ((const char **)response)[3] is MIN (10 digits, MIN2+MIN1) if CDMA subscription is available |
Wink Saville | d4ee7dc | 2009-06-05 15:11:30 -0700 | [diff] [blame] | 3541 | * ((const char **)response)[4] is PRL version if CDMA subscription is available |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3542 | * |
| 3543 | * Valid errors: |
| 3544 | * SUCCESS |
| 3545 | * RIL_E_SUBSCRIPTION_NOT_AVAILABLE |
| 3546 | */ |
| 3547 | |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3548 | #define RIL_REQUEST_CDMA_SUBSCRIPTION 95 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3549 | |
| 3550 | /** |
| 3551 | * RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM |
| 3552 | * |
| 3553 | * Stores a CDMA SMS message to RUIM memory. |
| 3554 | * |
| 3555 | * "data" is RIL_CDMA_SMS_WriteArgs * |
| 3556 | * |
| 3557 | * "response" is int * |
| 3558 | * ((const int *)response)[0] is the record index where the message is stored. |
| 3559 | * |
| 3560 | * Valid errors: |
| 3561 | * SUCCESS |
| 3562 | * RADIO_NOT_AVAILABLE |
| 3563 | * GENERIC_FAILURE |
| 3564 | * |
| 3565 | */ |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3566 | #define RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM 96 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3567 | |
| 3568 | /** |
| 3569 | * RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM |
| 3570 | * |
| 3571 | * Deletes a CDMA SMS message from RUIM memory. |
| 3572 | * |
| 3573 | * "data" is int * |
| 3574 | * ((int *)data)[0] is the record index of the message to delete. |
| 3575 | * |
| 3576 | * "response" is NULL |
| 3577 | * |
| 3578 | * Valid errors: |
| 3579 | * SUCCESS |
| 3580 | * RADIO_NOT_AVAILABLE |
| 3581 | * GENERIC_FAILURE |
| 3582 | * |
| 3583 | */ |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3584 | #define RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM 97 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3585 | |
| 3586 | /** |
| 3587 | * RIL_REQUEST_DEVICE_IDENTITY |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3588 | * |
| 3589 | * Request the device ESN / MEID / IMEI / IMEISV. |
| 3590 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3591 | * The request is always allowed and contains GSM and CDMA device identity; |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3592 | * it substitutes the deprecated requests RIL_REQUEST_GET_IMEI and |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3593 | * RIL_REQUEST_GET_IMEISV. |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3594 | * |
| 3595 | * If a NULL value is returned for any of the device id, it means that error |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3596 | * accessing the device. |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3597 | * |
| 3598 | * When CDMA subscription is changed the ESN/MEID may change. The application |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3599 | * layer should re-issue the request to update the device identity in this case. |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3600 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3601 | * "response" is const char ** |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3602 | * ((const char **)response)[0] is IMEI if GSM subscription is available |
| 3603 | * ((const char **)response)[1] is IMEISV if GSM subscription is available |
| 3604 | * ((const char **)response)[2] is ESN if CDMA subscription is available |
| 3605 | * ((const char **)response)[3] is MEID if CDMA subscription is available |
| 3606 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3607 | * Valid errors: |
| 3608 | * SUCCESS |
| 3609 | * RADIO_NOT_AVAILABLE |
| 3610 | * GENERIC_FAILURE |
| 3611 | */ |
Wink Saville | eafe79d | 2009-04-03 18:02:34 -0700 | [diff] [blame] | 3612 | #define RIL_REQUEST_DEVICE_IDENTITY 98 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3613 | |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 3614 | /** |
| 3615 | * RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE |
| 3616 | * |
| 3617 | * Request the radio's system selection module to exit emergency |
| 3618 | * callback mode. RIL will not respond with SUCCESS until the modem has |
| 3619 | * completely exited from Emergency Callback Mode. |
| 3620 | * |
| 3621 | * "data" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3622 | * |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 3623 | * "response" is NULL |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 3624 | * |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 3625 | * Valid errors: |
| 3626 | * SUCCESS |
| 3627 | * RADIO_NOT_AVAILABLE |
| 3628 | * GENERIC_FAILURE |
| 3629 | * |
| 3630 | */ |
| 3631 | #define RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE 99 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 3632 | |
jsh | 000a9fe | 2009-05-11 14:52:35 -0700 | [diff] [blame] | 3633 | /** |
| 3634 | * RIL_REQUEST_GET_SMSC_ADDRESS |
| 3635 | * |
| 3636 | * Queries the default Short Message Service Center address on the device. |
| 3637 | * |
| 3638 | * "data" is NULL |
| 3639 | * |
| 3640 | * "response" is const char * containing the SMSC address. |
| 3641 | * |
| 3642 | * Valid errors: |
| 3643 | * SUCCESS |
| 3644 | * RADIO_NOT_AVAILABLE |
| 3645 | * GENERIC_FAILURE |
| 3646 | * |
| 3647 | */ |
| 3648 | #define RIL_REQUEST_GET_SMSC_ADDRESS 100 |
| 3649 | |
| 3650 | /** |
| 3651 | * RIL_REQUEST_SET_SMSC_ADDRESS |
| 3652 | * |
| 3653 | * Sets the default Short Message Service Center address on the device. |
| 3654 | * |
| 3655 | * "data" is const char * containing the SMSC address. |
| 3656 | * |
| 3657 | * "response" is NULL |
| 3658 | * |
| 3659 | * Valid errors: |
| 3660 | * SUCCESS |
| 3661 | * RADIO_NOT_AVAILABLE |
| 3662 | * GENERIC_FAILURE |
| 3663 | * |
| 3664 | */ |
| 3665 | #define RIL_REQUEST_SET_SMSC_ADDRESS 101 |
| 3666 | |
jsh | b60444e | 2009-05-29 11:09:17 -0700 | [diff] [blame] | 3667 | /** |
| 3668 | * RIL_REQUEST_REPORT_SMS_MEMORY_STATUS |
| 3669 | * |
| 3670 | * Indicates whether there is storage available for new SMS messages. |
| 3671 | * |
| 3672 | * "data" is int * |
| 3673 | * ((int *)data)[0] is 1 if memory is available for storing new messages |
| 3674 | * is 0 if memory capacity is exceeded |
| 3675 | * |
| 3676 | * "response" is NULL |
| 3677 | * |
| 3678 | * Valid errors: |
| 3679 | * SUCCESS |
| 3680 | * RADIO_NOT_AVAILABLE |
| 3681 | * GENERIC_FAILURE |
| 3682 | * |
| 3683 | */ |
| 3684 | #define RIL_REQUEST_REPORT_SMS_MEMORY_STATUS 102 |
| 3685 | |
Wink Saville | 2641d5b | 2009-06-08 17:40:42 -0700 | [diff] [blame] | 3686 | /** |
| 3687 | * RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING |
| 3688 | * |
| 3689 | * Indicates that the StkSerivce is running and is |
| 3690 | * ready to receive RIL_UNSOL_STK_XXXXX commands. |
| 3691 | * |
| 3692 | * "data" is NULL |
| 3693 | * "response" is NULL |
| 3694 | * |
| 3695 | * Valid errors: |
| 3696 | * SUCCESS |
| 3697 | * RADIO_NOT_AVAILABLE |
| 3698 | * GENERIC_FAILURE |
| 3699 | * |
| 3700 | */ |
| 3701 | #define RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING 103 |
| 3702 | |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 3703 | /** |
| 3704 | * RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE |
| 3705 | * |
| 3706 | * Request to query the location where the CDMA subscription shall |
| 3707 | * be retrieved |
| 3708 | * |
| 3709 | * "data" is NULL |
| 3710 | * |
| 3711 | * "response" is int * |
| 3712 | * ((int *)data)[0] is == RIL_CdmaSubscriptionSource |
| 3713 | * |
| 3714 | * Valid errors: |
| 3715 | * SUCCESS |
| 3716 | * RADIO_NOT_AVAILABLE |
| 3717 | * GENERIC_FAILURE |
| 3718 | * SUBSCRIPTION_NOT_AVAILABLE |
| 3719 | * |
| 3720 | * See also: RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE |
| 3721 | */ |
| 3722 | #define RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE 104 |
| 3723 | |
Jake Hamby | fa8d584 | 2011-08-19 16:22:18 -0700 | [diff] [blame] | 3724 | /** |
| 3725 | * RIL_REQUEST_ISIM_AUTHENTICATION |
| 3726 | * |
| 3727 | * Request the ISIM application on the UICC to perform AKA |
| 3728 | * challenge/response algorithm for IMS authentication |
| 3729 | * |
| 3730 | * "data" is a const char * containing the challenge string in Base64 format |
| 3731 | * "response" is a const char * containing the response in Base64 format |
| 3732 | * |
| 3733 | * Valid errors: |
| 3734 | * SUCCESS |
| 3735 | * RADIO_NOT_AVAILABLE |
| 3736 | * GENERIC_FAILURE |
| 3737 | */ |
| 3738 | #define RIL_REQUEST_ISIM_AUTHENTICATION 105 |
| 3739 | |
Jake Hamby | 300105d | 2011-09-26 01:01:44 -0700 | [diff] [blame] | 3740 | /** |
| 3741 | * RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU |
| 3742 | * |
| 3743 | * Acknowledge successful or failed receipt of SMS previously indicated |
| 3744 | * via RIL_UNSOL_RESPONSE_NEW_SMS, including acknowledgement TPDU to send |
| 3745 | * as the RP-User-Data element of the RP-ACK or RP-ERROR PDU. |
| 3746 | * |
| 3747 | * "data" is const char ** |
| 3748 | * ((const char **)data)[0] is "1" on successful receipt (send RP-ACK) |
| 3749 | * is "0" on failed receipt (send RP-ERROR) |
| 3750 | * ((const char **)data)[1] is the acknowledgement TPDU in hexadecimal format |
| 3751 | * |
| 3752 | * "response" is NULL |
| 3753 | * |
| 3754 | * Valid errors: |
| 3755 | * SUCCESS |
| 3756 | * RADIO_NOT_AVAILABLE |
| 3757 | * GENERIC_FAILURE |
| 3758 | */ |
| 3759 | #define RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU 106 |
| 3760 | |
| 3761 | /** |
| 3762 | * RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS |
| 3763 | * |
| 3764 | * Requests to send a SAT/USAT envelope command to SIM. |
| 3765 | * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111. |
| 3766 | * |
| 3767 | * This request has one difference from RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND: |
| 3768 | * the SW1 and SW2 status bytes from the UICC response are returned along with |
| 3769 | * the response data, using the same structure as RIL_REQUEST_SIM_IO. |
| 3770 | * |
| 3771 | * The RIL implementation shall perform the normal processing of a '91XX' |
| 3772 | * response in SW1/SW2 to retrieve the pending proactive command and send it |
| 3773 | * as an unsolicited response, as RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND does. |
| 3774 | * |
| 3775 | * "data" is a const char * containing the SAT/USAT command |
| 3776 | * in hexadecimal format starting with command tag |
| 3777 | * |
| 3778 | * "response" is a const RIL_SIM_IO_Response * |
| 3779 | * |
| 3780 | * Valid errors: |
| 3781 | * RIL_E_SUCCESS |
| 3782 | * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) |
| 3783 | * RIL_E_GENERIC_FAILURE |
| 3784 | */ |
| 3785 | #define RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS 107 |
| 3786 | |
Naveen Kalla | 2bc78d6 | 2011-12-07 16:22:53 -0800 | [diff] [blame] | 3787 | /** |
| 3788 | * RIL_REQUEST_VOICE_RADIO_TECH |
| 3789 | * |
| 3790 | * Query the radio technology type (3GPP/3GPP2) used for voice. Query is valid only |
| 3791 | * when radio state is RADIO_STATE_ON |
| 3792 | * |
| 3793 | * "data" is NULL |
| 3794 | * "response" is int * |
| 3795 | * ((int *) response)[0] is of type const RIL_RadioTechnology |
| 3796 | * |
| 3797 | * Valid errors: |
| 3798 | * SUCCESS |
| 3799 | * RADIO_NOT_AVAILABLE |
| 3800 | * GENERIC_FAILURE |
| 3801 | */ |
| 3802 | #define RIL_REQUEST_VOICE_RADIO_TECH 108 |
| 3803 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 3804 | /** |
| 3805 | * RIL_REQUEST_GET_CELL_INFO_LIST |
| 3806 | * |
| 3807 | * Request all of the current cell information known to the radio. The radio |
| 3808 | * must a list of all current cells, including the neighboring cells. If for a particular |
| 3809 | * cell information isn't known then the appropriate unknown value will be returned. |
| 3810 | * This does not cause or change the rate of RIL_UNSOL_CELL_INFO_LIST. |
| 3811 | * |
| 3812 | * "data" is NULL |
| 3813 | * |
| 3814 | * "response" is an array of RIL_CellInfo. |
| 3815 | */ |
| 3816 | #define RIL_REQUEST_GET_CELL_INFO_LIST 109 |
| 3817 | |
| 3818 | /** |
| 3819 | * RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE |
| 3820 | * |
| 3821 | * Sets the minimum time between when RIL_UNSOL_CELL_INFO_LIST should be invoked. |
Wink Saville | c57b3eb | 2013-04-17 12:51:41 -0700 | [diff] [blame] | 3822 | * A value of 0, means invoke RIL_UNSOL_CELL_INFO_LIST when any of the reported |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 3823 | * information changes. Setting the value to INT_MAX(0x7fffffff) means never issue |
| 3824 | * a RIL_UNSOL_CELL_INFO_LIST. |
| 3825 | * |
| 3826 | * "data" is int * |
| 3827 | * ((int *)data)[0] is minimum time in milliseconds |
| 3828 | * |
| 3829 | * "response" is NULL |
| 3830 | * |
| 3831 | * Valid errors: |
| 3832 | * SUCCESS |
| 3833 | * RADIO_NOT_AVAILABLE |
| 3834 | * GENERIC_FAILURE |
| 3835 | */ |
| 3836 | #define RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE 110 |
Jake Hamby | 300105d | 2011-09-26 01:01:44 -0700 | [diff] [blame] | 3837 | |
Sungmin Choi | 7569753 | 2013-04-26 15:04:45 -0700 | [diff] [blame] | 3838 | /** |
| 3839 | * RIL_REQUEST_SET_INITIAL_ATTACH_APN |
| 3840 | * |
| 3841 | * Set an apn to initial attach network |
| 3842 | * "response" is NULL |
| 3843 | * |
| 3844 | * Valid errors: |
| 3845 | * SUCCESS |
| 3846 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 3847 | * GENERIC_FAILURE |
| 3848 | * SUBSCRIPTION_NOT_AVAILABLE |
| 3849 | */ |
| 3850 | #define RIL_REQUEST_SET_INITIAL_ATTACH_APN 111 |
| 3851 | |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 3852 | /** |
| 3853 | * RIL_REQUEST_IMS_REGISTRATION_STATE |
| 3854 | * |
| 3855 | * Request current IMS registration state |
| 3856 | * |
| 3857 | * "data" is NULL |
| 3858 | * |
| 3859 | * "response" is int * |
| 3860 | * ((int *)response)[0] is registration state: |
| 3861 | * 0 - Not registered |
| 3862 | * 1 - Registered |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 3863 | * |
Wink Saville | 865ce3b | 2013-11-08 16:37:01 -0800 | [diff] [blame] | 3864 | * If ((int*)response)[0] is = 1, then ((int *) response)[1] |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 3865 | * must follow with IMS SMS format: |
| 3866 | * |
Wink Saville | 865ce3b | 2013-11-08 16:37:01 -0800 | [diff] [blame] | 3867 | * ((int *) response)[1] is of type RIL_RadioTechnologyFamily |
| 3868 | * |
| 3869 | * Valid errors: |
| 3870 | * SUCCESS |
| 3871 | * RADIO_NOT_AVAILABLE |
| 3872 | * GENERIC_FAILURE |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 3873 | */ |
| 3874 | #define RIL_REQUEST_IMS_REGISTRATION_STATE 112 |
| 3875 | |
| 3876 | /** |
| 3877 | * RIL_REQUEST_IMS_SEND_SMS |
| 3878 | * |
| 3879 | * Send a SMS message over IMS |
| 3880 | * |
| 3881 | * "data" is const RIL_IMS_SMS_Message * |
| 3882 | * |
| 3883 | * "response" is a const RIL_SMS_Response * |
| 3884 | * |
| 3885 | * Based on the return error, caller decides to resend if sending sms |
| 3886 | * fails. SMS_SEND_FAIL_RETRY means retry, and other errors means no retry. |
| 3887 | * In case of retry, data is encoded based on Voice Technology available. |
| 3888 | * |
| 3889 | * Valid errors: |
| 3890 | * SUCCESS |
| 3891 | * RADIO_NOT_AVAILABLE |
| 3892 | * SMS_SEND_FAIL_RETRY |
| 3893 | * FDN_CHECK_FAILURE |
| 3894 | * GENERIC_FAILURE |
| 3895 | * |
| 3896 | */ |
| 3897 | #define RIL_REQUEST_IMS_SEND_SMS 113 |
| 3898 | |
Shishir Agrawal | 2458d8d | 2013-11-27 14:53:05 -0800 | [diff] [blame] | 3899 | /** |
| 3900 | * RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC |
| 3901 | * |
| 3902 | * Request APDU exchange on the basic channel. This command reflects TS 27.007 |
| 3903 | * "generic SIM access" operation (+CSIM). The modem must ensure proper function |
| 3904 | * of GSM/CDMA, and filter commands appropriately. It should filter |
| 3905 | * channel management and SELECT by DF name commands. |
| 3906 | * |
| 3907 | * "data" is a const RIL_SIM_APDU * |
| 3908 | * "sessionid" field should be ignored. |
| 3909 | * |
| 3910 | * "response" is a const RIL_SIM_IO_Response * |
| 3911 | * |
| 3912 | * Valid errors: |
| 3913 | * SUCCESS |
| 3914 | * RADIO_NOT_AVAILABLE |
| 3915 | * GENERIC_FAILURE |
| 3916 | */ |
| 3917 | #define RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC 114 |
| 3918 | |
| 3919 | /** |
| 3920 | * RIL_REQUEST_SIM_OPEN_CHANNEL |
| 3921 | * |
| 3922 | * Open a new logical channel and select the given application. This command |
| 3923 | * reflects TS 27.007 "open logical channel" operation (+CCHO). |
| 3924 | * |
| 3925 | * "data" is const char * and set to AID value, See ETSI 102.221 and 101.220. |
| 3926 | * |
| 3927 | * "response" is int * |
| 3928 | * ((int *)data)[0] contains the session id of the logical channel. |
Shishir Agrawal | 760123f | 2014-10-14 09:14:57 -0700 | [diff] [blame] | 3929 | * ((int *)data)[1] onwards may optionally contain the select response for the |
| 3930 | * open channel command with one byte per integer. |
Shishir Agrawal | 2458d8d | 2013-11-27 14:53:05 -0800 | [diff] [blame] | 3931 | * |
| 3932 | * Valid errors: |
| 3933 | * SUCCESS |
| 3934 | * RADIO_NOT_AVAILABLE |
| 3935 | * GENERIC_FAILURE |
| 3936 | * MISSING_RESOURCE |
| 3937 | * NO_SUCH_ELEMENT |
| 3938 | */ |
| 3939 | #define RIL_REQUEST_SIM_OPEN_CHANNEL 115 |
| 3940 | |
| 3941 | /** |
| 3942 | * RIL_REQUEST_SIM_CLOSE_CHANNEL |
| 3943 | * |
| 3944 | * Close a previously opened logical channel. This command reflects TS 27.007 |
| 3945 | * "close logical channel" operation (+CCHC). |
| 3946 | * |
| 3947 | * "data" is int * |
| 3948 | * ((int *)data)[0] is the session id of logical the channel to close. |
| 3949 | * |
| 3950 | * "response" is NULL |
| 3951 | * |
| 3952 | * Valid errors: |
| 3953 | * SUCCESS |
| 3954 | * RADIO_NOT_AVAILABLE |
| 3955 | * GENERIC_FAILURE |
| 3956 | */ |
| 3957 | #define RIL_REQUEST_SIM_CLOSE_CHANNEL 116 |
| 3958 | |
| 3959 | /** |
| 3960 | * RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL |
| 3961 | * |
| 3962 | * Exchange APDUs with a UICC over a previously opened logical channel. This |
| 3963 | * command reflects TS 27.007 "generic logical channel access" operation |
| 3964 | * (+CGLA). The modem should filter channel management and SELECT by DF name |
| 3965 | * commands. |
| 3966 | * |
| 3967 | * "data" is a const RIL_SIM_APDU* |
| 3968 | * |
| 3969 | * "response" is a const RIL_SIM_IO_Response * |
| 3970 | * |
| 3971 | * Valid errors: |
| 3972 | * SUCCESS |
| 3973 | * RADIO_NOT_AVAILABLE |
| 3974 | * GENERIC_FAILURE |
| 3975 | */ |
| 3976 | #define RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL 117 |
| 3977 | |
Jake Hamby | 8a4a233 | 2014-01-15 13:12:05 -0800 | [diff] [blame] | 3978 | /** |
| 3979 | * RIL_REQUEST_NV_READ_ITEM |
| 3980 | * |
| 3981 | * Read one of the radio NV items defined in RadioNVItems.java / ril_nv_items.h. |
| 3982 | * This is used for device configuration by some CDMA operators. |
| 3983 | * |
| 3984 | * "data" is a const RIL_NV_ReadItem * |
| 3985 | * |
| 3986 | * "response" is const char * containing the contents of the NV item |
| 3987 | * |
| 3988 | * Valid errors: |
| 3989 | * SUCCESS |
| 3990 | * RADIO_NOT_AVAILABLE |
| 3991 | * GENERIC_FAILURE |
| 3992 | */ |
| 3993 | #define RIL_REQUEST_NV_READ_ITEM 118 |
| 3994 | |
| 3995 | /** |
| 3996 | * RIL_REQUEST_NV_WRITE_ITEM |
| 3997 | * |
| 3998 | * Write one of the radio NV items defined in RadioNVItems.java / ril_nv_items.h. |
| 3999 | * This is used for device configuration by some CDMA operators. |
| 4000 | * |
| 4001 | * "data" is a const RIL_NV_WriteItem * |
| 4002 | * |
| 4003 | * "response" is NULL |
| 4004 | * |
| 4005 | * Valid errors: |
| 4006 | * SUCCESS |
| 4007 | * RADIO_NOT_AVAILABLE |
| 4008 | * GENERIC_FAILURE |
| 4009 | */ |
| 4010 | #define RIL_REQUEST_NV_WRITE_ITEM 119 |
| 4011 | |
| 4012 | /** |
| 4013 | * RIL_REQUEST_NV_WRITE_CDMA_PRL |
| 4014 | * |
| 4015 | * Update the CDMA Preferred Roaming List (PRL) in the radio NV storage. |
| 4016 | * This is used for device configuration by some CDMA operators. |
| 4017 | * |
| 4018 | * "data" is a const char * containing the PRL as a byte array |
| 4019 | * |
| 4020 | * "response" is NULL |
| 4021 | * |
| 4022 | * Valid errors: |
| 4023 | * SUCCESS |
| 4024 | * RADIO_NOT_AVAILABLE |
| 4025 | * GENERIC_FAILURE |
| 4026 | */ |
| 4027 | #define RIL_REQUEST_NV_WRITE_CDMA_PRL 120 |
| 4028 | |
| 4029 | /** |
| 4030 | * RIL_REQUEST_NV_RESET_CONFIG |
| 4031 | * |
| 4032 | * Reset the radio NV configuration to the factory state. |
| 4033 | * This is used for device configuration by some CDMA operators. |
| 4034 | * |
| 4035 | * "data" is int * |
Jake Hamby | d27c9d5 | 2014-02-06 14:52:05 -0800 | [diff] [blame] | 4036 | * ((int *)data)[0] is 1 to reload all NV items |
| 4037 | * ((int *)data)[0] is 2 for erase NV reset (SCRTN) |
| 4038 | * ((int *)data)[0] is 3 for factory reset (RTN) |
Jake Hamby | 8a4a233 | 2014-01-15 13:12:05 -0800 | [diff] [blame] | 4039 | * |
| 4040 | * "response" is NULL |
| 4041 | * |
| 4042 | * Valid errors: |
| 4043 | * SUCCESS |
| 4044 | * RADIO_NOT_AVAILABLE |
| 4045 | * GENERIC_FAILURE |
| 4046 | */ |
| 4047 | #define RIL_REQUEST_NV_RESET_CONFIG 121 |
| 4048 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 4049 | /** RIL_REQUEST_SET_UICC_SUBSCRIPTION |
| 4050 | * FIXME This API needs to have more documentation. |
| 4051 | * |
| 4052 | * Selection/de-selection of a subscription from a SIM card |
| 4053 | * "data" is const RIL_SelectUiccSub* |
| 4054 | |
| 4055 | * |
| 4056 | * "response" is NULL |
| 4057 | * |
| 4058 | * Valid errors: |
| 4059 | * SUCCESS |
| 4060 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 4061 | * GENERIC_FAILURE |
| 4062 | * SUBSCRIPTION_NOT_SUPPORTED |
| 4063 | * |
| 4064 | */ |
| 4065 | #define RIL_REQUEST_SET_UICC_SUBSCRIPTION 122 |
| 4066 | |
| 4067 | /** |
| 4068 | * RIL_REQUEST_ALLOW_DATA |
| 4069 | * |
| 4070 | * Tells the modem whether data calls are allowed or not |
| 4071 | * |
| 4072 | * "data" is int * |
| 4073 | * FIXME slotId and aid will be added. |
| 4074 | * ((int *)data)[0] is == 0 to allow data calls |
| 4075 | * ((int *)data)[0] is == 1 to disallow data calls |
| 4076 | * |
| 4077 | * "response" is NULL |
| 4078 | * |
| 4079 | * Valid errors: |
| 4080 | * |
| 4081 | * SUCCESS |
| 4082 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 4083 | * GENERIC_FAILURE |
| 4084 | * |
| 4085 | */ |
| 4086 | #define RIL_REQUEST_ALLOW_DATA 123 |
| 4087 | |
| 4088 | /** |
| 4089 | * RIL_REQUEST_GET_HARDWARE_CONFIG |
| 4090 | * |
| 4091 | * Request all of the current hardware (modem and sim) associated |
| 4092 | * with the RIL. |
| 4093 | * |
| 4094 | * "data" is NULL |
| 4095 | * |
| 4096 | * "response" is an array of RIL_HardwareConfig. |
| 4097 | */ |
| 4098 | #define RIL_REQUEST_GET_HARDWARE_CONFIG 124 |
| 4099 | |
| 4100 | /** |
Amit Mahajan | 2b77203 | 2014-06-26 14:20:11 -0700 | [diff] [blame] | 4101 | * RIL_REQUEST_SIM_AUTHENTICATION |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 4102 | * |
| 4103 | * Returns the response of SIM Authentication through RIL to a |
| 4104 | * challenge request. |
| 4105 | * |
| 4106 | * "data" Base64 encoded string containing challenge: |
| 4107 | * int authContext; P2 value of authentication command, see P2 parameter in |
| 4108 | * 3GPP TS 31.102 7.1.2 |
| 4109 | * char *authData; the challenge string in Base64 format, see 3GPP |
| 4110 | * TS 31.102 7.1.2 |
| 4111 | * char *aid; AID value, See ETSI 102.221 8.1 and 101.220 4, |
| 4112 | * NULL if no value |
| 4113 | * |
| 4114 | * "response" Base64 encoded strings containing response: |
| 4115 | * int sw1; Status bytes per 3GPP TS 31.102 section 7.3 |
| 4116 | * int sw2; |
| 4117 | * char *simResponse; Response in Base64 format, see 3GPP TS 31.102 7.1.2 |
| 4118 | */ |
Amit Mahajan | 2b77203 | 2014-06-26 14:20:11 -0700 | [diff] [blame] | 4119 | #define RIL_REQUEST_SIM_AUTHENTICATION 125 |
Shishir Agrawal | 2458d8d | 2013-11-27 14:53:05 -0800 | [diff] [blame] | 4120 | |
Wink Saville | c29360a | 2014-07-13 05:17:28 -0700 | [diff] [blame] | 4121 | /** |
| 4122 | * RIL_REQUEST_GET_DC_RT_INFO |
| 4123 | * |
| 4124 | * Requests the Data Connection Real Time Info |
| 4125 | * |
| 4126 | * "data" is NULL |
| 4127 | * |
| 4128 | * "response" is the most recent RIL_DcRtInfo |
| 4129 | * |
| 4130 | * Valid errors: |
| 4131 | * SUCCESS |
| 4132 | * RADIO_NOT_AVAILABLE |
| 4133 | * GENERIC_FAILURE |
| 4134 | * |
| 4135 | * See also: RIL_UNSOL_DC_RT_INFO_CHANGED |
| 4136 | */ |
| 4137 | #define RIL_REQUEST_GET_DC_RT_INFO 126 |
| 4138 | |
| 4139 | /** |
| 4140 | * RIL_REQUEST_SET_DC_RT_INFO_RATE |
| 4141 | * |
| 4142 | * This is the minimum number of milliseconds between successive |
| 4143 | * RIL_UNSOL_DC_RT_INFO_CHANGED messages and defines the highest rate |
| 4144 | * at which RIL_UNSOL_DC_RT_INFO_CHANGED's will be sent. A value of |
| 4145 | * 0 means send as fast as possible. |
| 4146 | * |
| 4147 | * "data" The number of milliseconds as an int |
| 4148 | * |
| 4149 | * "response" is null |
| 4150 | * |
| 4151 | * Valid errors: |
| 4152 | * SUCCESS must not fail |
| 4153 | */ |
| 4154 | #define RIL_REQUEST_SET_DC_RT_INFO_RATE 127 |
| 4155 | |
Amit Mahajan | c796e22 | 2014-08-13 16:54:01 +0000 | [diff] [blame] | 4156 | /** |
| 4157 | * RIL_REQUEST_SET_DATA_PROFILE |
| 4158 | * |
| 4159 | * Set data profile in modem |
Hui Wang | 8d67962 | 2014-10-16 14:59:27 -0500 | [diff] [blame] | 4160 | * Modem should erase existed profiles from framework, and apply new profiles |
Amit Mahajan | c796e22 | 2014-08-13 16:54:01 +0000 | [diff] [blame] | 4161 | * "data" is an const RIL_DataProfileInfo ** |
| 4162 | * "datalen" is count * sizeof(const RIL_DataProfileInfo *) |
| 4163 | * "response" is NULL |
| 4164 | * |
| 4165 | * Valid errors: |
| 4166 | * SUCCESS |
| 4167 | * RADIO_NOT_AVAILABLE (radio resetting) |
| 4168 | * GENERIC_FAILURE |
| 4169 | * SUBSCRIPTION_NOT_AVAILABLE |
| 4170 | */ |
| 4171 | #define RIL_REQUEST_SET_DATA_PROFILE 128 |
Naveen Kalla | a65a16a | 2014-07-31 16:48:31 -0700 | [diff] [blame] | 4172 | |
| 4173 | /** |
| 4174 | * RIL_REQUEST_SHUTDOWN |
| 4175 | * |
| 4176 | * Device is shutting down. All further commands are ignored |
| 4177 | * and RADIO_NOT_AVAILABLE must be returned. |
| 4178 | * |
| 4179 | * "data" is null |
| 4180 | * "response" is NULL |
| 4181 | * |
| 4182 | * Valid errors: |
| 4183 | * SUCCESS |
| 4184 | * RADIO_NOT_AVAILABLE |
| 4185 | * GENERIC_FAILURE |
| 4186 | */ |
| 4187 | #define RIL_REQUEST_SHUTDOWN 129 |
| 4188 | |
Wink Saville | 8b4e4f7 | 2014-10-17 15:01:45 -0700 | [diff] [blame] | 4189 | /** |
| 4190 | * RIL_REQUEST_GET_RADIO_CAPABILITY |
| 4191 | * |
| 4192 | * Used to get phone radio capablility. |
| 4193 | * |
| 4194 | * "data" is int * |
| 4195 | * ((int *)data)[0] is the phone radio access family defined in |
| 4196 | * RadioAccessFamily. It's a bit mask value to represent the support type. |
| 4197 | * |
| 4198 | * Valid errors: |
| 4199 | * SUCCESS |
| 4200 | * RADIO_NOT_AVAILABLE |
| 4201 | * GENERIC_FAILURE |
| 4202 | */ |
| 4203 | #define RIL_REQUEST_GET_RADIO_CAPABILITY 130 |
| 4204 | |
| 4205 | /** |
| 4206 | * RIL_REQUEST_SET_RADIO_CAPABILITY |
| 4207 | * |
| 4208 | * Used to set the phones radio capability. Be VERY careful |
| 4209 | * using this request as it may cause some vendor modems to reset. Because |
| 4210 | * of the possible modem reset any RIL commands after this one may not be |
| 4211 | * processed. |
| 4212 | * |
| 4213 | * "data" is the RIL_RadioCapability structure |
| 4214 | * |
| 4215 | * "response" is the RIL_RadioCapability structure, used to feedback return status |
| 4216 | * |
| 4217 | * Valid errors: |
| 4218 | * SUCCESS means a RIL_UNSOL_RADIO_CAPABILITY will be sent within 30 seconds. |
| 4219 | * RADIO_NOT_AVAILABLE |
| 4220 | * GENERIC_FAILURE |
| 4221 | */ |
| 4222 | #define RIL_REQUEST_SET_RADIO_CAPABILITY 131 |
| 4223 | |
Naveen Kalla | a65a16a | 2014-07-31 16:48:31 -0700 | [diff] [blame] | 4224 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4225 | /***********************************************************************/ |
| 4226 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4227 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4228 | #define RIL_UNSOL_RESPONSE_BASE 1000 |
| 4229 | |
| 4230 | /** |
| 4231 | * RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED |
| 4232 | * |
| 4233 | * Indicate when value of RIL_RadioState has changed. |
| 4234 | * |
| 4235 | * Callee will invoke RIL_RadioStateRequest method on main thread |
| 4236 | * |
| 4237 | * "data" is NULL |
| 4238 | */ |
| 4239 | |
| 4240 | #define RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED 1000 |
| 4241 | |
| 4242 | |
| 4243 | /** |
| 4244 | * RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED |
| 4245 | * |
| 4246 | * Indicate when call state has changed |
| 4247 | * |
| 4248 | * Callee will invoke RIL_REQUEST_GET_CURRENT_CALLS on main thread |
| 4249 | * |
| 4250 | * "data" is NULL |
| 4251 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4252 | * Response should be invoked on, for example, |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4253 | * "RING", "BUSY", "NO CARRIER", and also call state |
| 4254 | * transitions (DIALING->ALERTING ALERTING->ACTIVE) |
| 4255 | * |
| 4256 | * Redundent or extraneous invocations are tolerated |
| 4257 | */ |
| 4258 | #define RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED 1001 |
| 4259 | |
| 4260 | |
| 4261 | /** |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 4262 | * RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4263 | * |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 4264 | * Called when the voice network state changed |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4265 | * |
| 4266 | * Callee will invoke the following requests on main thread: |
| 4267 | * |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 4268 | * RIL_REQUEST_VOICE_REGISTRATION_STATE |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4269 | * RIL_REQUEST_OPERATOR |
| 4270 | * |
| 4271 | * "data" is NULL |
| 4272 | * |
| 4273 | * FIXME should this happen when SIM records are loaded? (eg, for |
| 4274 | * EONS) |
| 4275 | */ |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 4276 | #define RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED 1002 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4277 | |
| 4278 | /** |
| 4279 | * RIL_UNSOL_RESPONSE_NEW_SMS |
| 4280 | * |
| 4281 | * Called when new SMS is received. |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4282 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4283 | * "data" is const char * |
| 4284 | * This is a pointer to a string containing the PDU of an SMS-DELIVER |
| 4285 | * as an ascii string of hex digits. The PDU starts with the SMSC address |
| 4286 | * per TS 27.005 (+CMT:) |
| 4287 | * |
| 4288 | * Callee will subsequently confirm the receipt of thei SMS with a |
| 4289 | * RIL_REQUEST_SMS_ACKNOWLEDGE |
| 4290 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4291 | * No new RIL_UNSOL_RESPONSE_NEW_SMS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4292 | * or RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT messages should be sent until a |
| 4293 | * RIL_REQUEST_SMS_ACKNOWLEDGE has been received |
| 4294 | */ |
| 4295 | |
| 4296 | #define RIL_UNSOL_RESPONSE_NEW_SMS 1003 |
| 4297 | |
| 4298 | /** |
| 4299 | * RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT |
| 4300 | * |
| 4301 | * Called when new SMS Status Report is received. |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4302 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4303 | * "data" is const char * |
| 4304 | * This is a pointer to a string containing the PDU of an SMS-STATUS-REPORT |
| 4305 | * as an ascii string of hex digits. The PDU starts with the SMSC address |
| 4306 | * per TS 27.005 (+CDS:). |
| 4307 | * |
| 4308 | * Callee will subsequently confirm the receipt of the SMS with a |
| 4309 | * RIL_REQUEST_SMS_ACKNOWLEDGE |
| 4310 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4311 | * No new RIL_UNSOL_RESPONSE_NEW_SMS |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4312 | * or RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT messages should be sent until a |
| 4313 | * RIL_REQUEST_SMS_ACKNOWLEDGE has been received |
| 4314 | */ |
| 4315 | |
| 4316 | #define RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT 1004 |
| 4317 | |
| 4318 | /** |
| 4319 | * RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM |
| 4320 | * |
| 4321 | * Called when new SMS has been stored on SIM card |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4322 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4323 | * "data" is const int * |
| 4324 | * ((const int *)data)[0] contains the slot index on the SIM that contains |
| 4325 | * the new message |
| 4326 | */ |
| 4327 | |
| 4328 | #define RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM 1005 |
| 4329 | |
| 4330 | /** |
| 4331 | * RIL_UNSOL_ON_USSD |
| 4332 | * |
| 4333 | * Called when a new USSD message is received. |
| 4334 | * |
| 4335 | * "data" is const char ** |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4336 | * ((const char **)data)[0] points to a type code, which is |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4337 | * one of these string values: |
| 4338 | * "0" USSD-Notify -- text in ((const char **)data)[1] |
| 4339 | * "1" USSD-Request -- text in ((const char **)data)[1] |
| 4340 | * "2" Session terminated by network |
| 4341 | * "3" other local client (eg, SIM Toolkit) has responded |
| 4342 | * "4" Operation not supported |
| 4343 | * "5" Network timeout |
| 4344 | * |
| 4345 | * The USSD session is assumed to persist if the type code is "1", otherwise |
| 4346 | * the current session (if any) is assumed to have terminated. |
| 4347 | * |
| 4348 | * ((const char **)data)[1] points to a message string if applicable, which |
| 4349 | * should always be in UTF-8. |
| 4350 | */ |
| 4351 | #define RIL_UNSOL_ON_USSD 1006 |
| 4352 | /* Previously #define RIL_UNSOL_ON_USSD_NOTIFY 1006 */ |
| 4353 | |
| 4354 | /** |
| 4355 | * RIL_UNSOL_ON_USSD_REQUEST |
| 4356 | * |
| 4357 | * Obsolete. Send via RIL_UNSOL_ON_USSD |
| 4358 | */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4359 | #define RIL_UNSOL_ON_USSD_REQUEST 1007 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4360 | |
Amit Mahajan | 6bfaf64 | 2014-11-19 00:06:53 +0000 | [diff] [blame] | 4361 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4362 | /** |
| 4363 | * RIL_UNSOL_NITZ_TIME_RECEIVED |
| 4364 | * |
| 4365 | * Called when radio has received a NITZ time message |
| 4366 | * |
| 4367 | * "data" is const char * pointing to NITZ time string |
| 4368 | * in the form "yy/mm/dd,hh:mm:ss(+/-)tz,dt" |
| 4369 | */ |
| 4370 | #define RIL_UNSOL_NITZ_TIME_RECEIVED 1008 |
| 4371 | |
| 4372 | /** |
| 4373 | * RIL_UNSOL_SIGNAL_STRENGTH |
| 4374 | * |
| 4375 | * Radio may report signal strength rather han have it polled. |
| 4376 | * |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 4377 | * "data" is a const RIL_SignalStrength * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4378 | */ |
| 4379 | #define RIL_UNSOL_SIGNAL_STRENGTH 1009 |
| 4380 | |
| 4381 | |
| 4382 | /** |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4383 | * RIL_UNSOL_DATA_CALL_LIST_CHANGED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4384 | * |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 4385 | * "data" is an array of RIL_Data_Call_Response_v6 identical to that |
Wink Saville | 29487ef | 2011-04-15 09:15:31 -0700 | [diff] [blame] | 4386 | * returned by RIL_REQUEST_DATA_CALL_LIST. It is the complete list |
| 4387 | * of current data contexts including new contexts that have been |
| 4388 | * activated. A data call is only removed from this list when the |
| 4389 | * framework sends a RIL_REQUEST_DEACTIVATE_DATA_CALL or the radio |
| 4390 | * is powered off/on. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4391 | * |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4392 | * See also: RIL_REQUEST_DATA_CALL_LIST |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4393 | */ |
| 4394 | |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4395 | #define RIL_UNSOL_DATA_CALL_LIST_CHANGED 1010 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4396 | |
| 4397 | /** |
| 4398 | * RIL_UNSOL_SUPP_SVC_NOTIFICATION |
| 4399 | * |
| 4400 | * Reports supplementary service related notification from the network. |
| 4401 | * |
| 4402 | * "data" is a const RIL_SuppSvcNotification * |
| 4403 | * |
| 4404 | */ |
| 4405 | |
| 4406 | #define RIL_UNSOL_SUPP_SVC_NOTIFICATION 1011 |
| 4407 | |
| 4408 | /** |
| 4409 | * RIL_UNSOL_STK_SESSION_END |
| 4410 | * |
| 4411 | * Indicate when STK session is terminated by SIM. |
| 4412 | * |
| 4413 | * "data" is NULL |
| 4414 | */ |
| 4415 | #define RIL_UNSOL_STK_SESSION_END 1012 |
| 4416 | |
| 4417 | /** |
| 4418 | * RIL_UNSOL_STK_PROACTIVE_COMMAND |
| 4419 | * |
| 4420 | * Indicate when SIM issue a STK proactive command to applications |
| 4421 | * |
| 4422 | * "data" is a const char * containing SAT/USAT proactive command |
| 4423 | * in hexadecimal format string starting with command tag |
| 4424 | * |
| 4425 | */ |
| 4426 | #define RIL_UNSOL_STK_PROACTIVE_COMMAND 1013 |
| 4427 | |
| 4428 | /** |
| 4429 | * RIL_UNSOL_STK_EVENT_NOTIFY |
| 4430 | * |
| 4431 | * Indicate when SIM notifies applcations some event happens. |
| 4432 | * Generally, application does not need to have any feedback to |
| 4433 | * SIM but shall be able to indicate appropriate messages to users. |
| 4434 | * |
| 4435 | * "data" is a const char * containing SAT/USAT commands or responses |
| 4436 | * sent by ME to SIM or commands handled by ME, in hexadecimal format string |
| 4437 | * starting with first byte of response data or command tag |
| 4438 | * |
| 4439 | */ |
| 4440 | #define RIL_UNSOL_STK_EVENT_NOTIFY 1014 |
| 4441 | |
| 4442 | /** |
| 4443 | * RIL_UNSOL_STK_CALL_SETUP |
| 4444 | * |
| 4445 | * Indicate when SIM wants application to setup a voice call. |
| 4446 | * |
| 4447 | * "data" is const int * |
| 4448 | * ((const int *)data)[0] contains timeout value (in milliseconds) |
| 4449 | */ |
| 4450 | #define RIL_UNSOL_STK_CALL_SETUP 1015 |
| 4451 | |
| 4452 | /** |
| 4453 | * RIL_UNSOL_SIM_SMS_STORAGE_FULL |
| 4454 | * |
| 4455 | * Indicates that SMS storage on the SIM is full. Sent when the network |
| 4456 | * attempts to deliver a new SMS message. Messages cannot be saved on the |
| 4457 | * SIM until space is freed. In particular, incoming Class 2 messages |
| 4458 | * cannot be stored. |
| 4459 | * |
| 4460 | * "data" is null |
| 4461 | * |
| 4462 | */ |
| 4463 | #define RIL_UNSOL_SIM_SMS_STORAGE_FULL 1016 |
| 4464 | |
| 4465 | /** |
| 4466 | * RIL_UNSOL_SIM_REFRESH |
| 4467 | * |
| 4468 | * Indicates that file(s) on the SIM have been updated, or the SIM |
| 4469 | * has been reinitialized. |
| 4470 | * |
Alex Yakavenka | 45e740e | 2012-01-31 11:48:27 -0800 | [diff] [blame] | 4471 | * In the case where RIL is version 6 or older: |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4472 | * "data" is an int * |
| 4473 | * ((int *)data)[0] is a RIL_SimRefreshResult. |
| 4474 | * ((int *)data)[1] is the EFID of the updated file if the result is |
Alex Yakavenka | 45e740e | 2012-01-31 11:48:27 -0800 | [diff] [blame] | 4475 | * SIM_FILE_UPDATE or NULL for any other result. |
| 4476 | * |
| 4477 | * In the case where RIL is version 7: |
| 4478 | * "data" is a RIL_SimRefreshResponse_v7 * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4479 | * |
Naveen Kalla | 2bc78d6 | 2011-12-07 16:22:53 -0800 | [diff] [blame] | 4480 | * Note: If the SIM state changes as a result of the SIM refresh (eg, |
| 4481 | * SIM_READY -> SIM_LOCKED_OR_ABSENT), RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4482 | * should be sent. |
| 4483 | */ |
| 4484 | #define RIL_UNSOL_SIM_REFRESH 1017 |
| 4485 | |
| 4486 | /** |
| 4487 | * RIL_UNSOL_CALL_RING |
| 4488 | * |
| 4489 | * Ring indication for an incoming call (eg, RING or CRING event). |
Wink Saville | 6453306 | 2009-08-28 11:16:03 -0700 | [diff] [blame] | 4490 | * There must be at least one RIL_UNSOL_CALL_RING at the beginning |
| 4491 | * of a call and sending multiple is optional. If the system property |
| 4492 | * ro.telephony.call_ring.multiple is false then the upper layers |
| 4493 | * will generate the multiple events internally. Otherwise the vendor |
| 4494 | * ril must generate multiple RIL_UNSOL_CALL_RING if |
| 4495 | * ro.telephony.call_ring.multiple is true or if it is absent. |
| 4496 | * |
| 4497 | * The rate of these events is controlled by ro.telephony.call_ring.delay |
| 4498 | * and has a default value of 3000 (3 seconds) if absent. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4499 | * |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 4500 | * "data" is null for GSM |
| 4501 | * "data" is const RIL_CDMA_SignalInfoRecord * if CDMA |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4502 | */ |
| 4503 | #define RIL_UNSOL_CALL_RING 1018 |
| 4504 | |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4505 | /** |
| 4506 | * RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED |
| 4507 | * |
| 4508 | * Indicates that SIM state changes. |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 4509 | * |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4510 | * Callee will invoke RIL_REQUEST_GET_SIM_STATUS on main thread |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4511 | |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4512 | * "data" is null |
| 4513 | */ |
| 4514 | #define RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED 1019 |
| 4515 | |
| 4516 | /** |
| 4517 | * RIL_UNSOL_RESPONSE_CDMA_NEW_SMS |
| 4518 | * |
| 4519 | * Called when new CDMA SMS is received |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 4520 | * |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4521 | * "data" is const RIL_CDMA_SMS_Message * |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 4522 | * |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4523 | * Callee will subsequently confirm the receipt of the SMS with |
| 4524 | * a RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 4525 | * |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4526 | * No new RIL_UNSOL_RESPONSE_CDMA_NEW_SMS should be sent until |
| 4527 | * RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE has been received |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 4528 | * |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4529 | */ |
| 4530 | #define RIL_UNSOL_RESPONSE_CDMA_NEW_SMS 1020 |
| 4531 | |
| 4532 | /** |
| 4533 | * RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS |
| 4534 | * |
| 4535 | * Called when new Broadcast SMS is received |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4536 | * |
Henrik Hall | 0eba202 | 2010-11-25 10:20:56 +0100 | [diff] [blame] | 4537 | * "data" can be one of the following: |
| 4538 | * If received from GSM network, "data" is const char of 88 bytes |
| 4539 | * which indicates each page of a CBS Message sent to the MS by the |
| 4540 | * BTS as coded in 3GPP 23.041 Section 9.4.1.2. |
| 4541 | * If received from UMTS network, "data" is const char of 90 up to 1252 |
| 4542 | * bytes which contain between 1 and 15 CBS Message pages sent as one |
| 4543 | * packet to the MS by the BTS as coded in 3GPP 23.041 Section 9.4.2.2. |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4544 | * |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4545 | */ |
| 4546 | #define RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS 1021 |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4547 | |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4548 | /** |
| 4549 | * RIL_UNSOL_CDMA_RUIM_SMS_STORAGE_FULL |
| 4550 | * |
| 4551 | * Indicates that SMS storage on the RUIM is full. Messages |
| 4552 | * cannot be saved on the RUIM until space is freed. |
| 4553 | * |
| 4554 | * "data" is null |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4555 | * |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4556 | */ |
Wink Saville | f4c4d36 | 2009-04-02 01:37:03 -0700 | [diff] [blame] | 4557 | #define RIL_UNSOL_CDMA_RUIM_SMS_STORAGE_FULL 1022 |
| 4558 | |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4559 | /** |
| 4560 | * RIL_UNSOL_RESTRICTED_STATE_CHANGED |
| 4561 | * |
| 4562 | * Indicates a restricted state change (eg, for Domain Specific Access Control). |
| 4563 | * |
| 4564 | * Radio need send this msg after radio off/on cycle no matter it is changed or not. |
| 4565 | * |
| 4566 | * "data" is an int * |
| 4567 | * ((int *)data)[0] contains a bitmask of RIL_RESTRICTED_STATE_* values. |
| 4568 | */ |
| 4569 | #define RIL_UNSOL_RESTRICTED_STATE_CHANGED 1023 |
| 4570 | |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 4571 | /** |
| 4572 | * RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE |
| 4573 | * |
| 4574 | * Indicates that the radio system selection module has |
| 4575 | * autonomously entered emergency callback mode. |
| 4576 | * |
| 4577 | * "data" is null |
| 4578 | * |
| 4579 | */ |
| 4580 | #define RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE 1024 |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4581 | |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 4582 | /** |
| 4583 | * RIL_UNSOL_CDMA_CALL_WAITING |
| 4584 | * |
| 4585 | * Called when CDMA radio receives a call waiting indication. |
| 4586 | * |
| 4587 | * "data" is const RIL_CDMA_CallWaiting * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4588 | * |
Wink Saville | 1b5fd23 | 2009-04-22 14:50:00 -0700 | [diff] [blame] | 4589 | */ |
| 4590 | #define RIL_UNSOL_CDMA_CALL_WAITING 1025 |
| 4591 | |
| 4592 | /** |
| 4593 | * RIL_UNSOL_CDMA_OTA_PROVISION_STATUS |
| 4594 | * |
| 4595 | * Called when CDMA radio receives an update of the progress of an |
| 4596 | * OTASP/OTAPA call. |
| 4597 | * |
| 4598 | * "data" is const int * |
| 4599 | * For CDMA this is an integer OTASP/OTAPA status listed in |
| 4600 | * RIL_CDMA_OTA_ProvisionStatus. |
| 4601 | * |
| 4602 | */ |
| 4603 | #define RIL_UNSOL_CDMA_OTA_PROVISION_STATUS 1026 |
| 4604 | |
| 4605 | /** |
| 4606 | * RIL_UNSOL_CDMA_INFO_REC |
| 4607 | * |
| 4608 | * Called when CDMA radio receives one or more info recs. |
| 4609 | * |
| 4610 | * "data" is const RIL_CDMA_InformationRecords * |
| 4611 | * |
| 4612 | */ |
| 4613 | #define RIL_UNSOL_CDMA_INFO_REC 1027 |
The Android Open Source Project | 34a5108 | 2009-03-05 14:34:37 -0800 | [diff] [blame] | 4614 | |
Jaikumar Ganesh | af6ecbf | 2009-04-29 13:27:51 -0700 | [diff] [blame] | 4615 | /** |
| 4616 | * RIL_UNSOL_OEM_HOOK_RAW |
| 4617 | * |
| 4618 | * This is for OEM specific use. |
| 4619 | * |
| 4620 | * "data" is a byte[] |
| 4621 | */ |
| 4622 | #define RIL_UNSOL_OEM_HOOK_RAW 1028 |
| 4623 | |
John Wang | 5d621da | 2009-09-18 17:17:48 -0700 | [diff] [blame] | 4624 | /** |
| 4625 | * RIL_UNSOL_RINGBACK_TONE |
| 4626 | * |
| 4627 | * Indicates that nework doesn't have in-band information, need to |
| 4628 | * play out-band tone. |
| 4629 | * |
| 4630 | * "data" is an int * |
| 4631 | * ((int *)data)[0] == 0 for stop play ringback tone. |
| 4632 | * ((int *)data)[0] == 1 for start play ringback tone. |
| 4633 | */ |
| 4634 | #define RIL_UNSOL_RINGBACK_TONE 1029 |
| 4635 | |
John Wang | 5909cf8 | 2010-01-29 00:18:54 -0800 | [diff] [blame] | 4636 | /** |
| 4637 | * RIL_UNSOL_RESEND_INCALL_MUTE |
| 4638 | * |
| 4639 | * Indicates that framework/application need reset the uplink mute state. |
| 4640 | * |
| 4641 | * There may be situations where the mute state becomes out of sync |
| 4642 | * between the application and device in some GSM infrastructures. |
| 4643 | * |
| 4644 | * "data" is null |
| 4645 | */ |
| 4646 | #define RIL_UNSOL_RESEND_INCALL_MUTE 1030 |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 4647 | |
| 4648 | /** |
| 4649 | * RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED |
| 4650 | * |
| 4651 | * Called when CDMA subscription source changed. |
| 4652 | * |
| 4653 | * "data" is int * |
| 4654 | * ((int *)data)[0] is == RIL_CdmaSubscriptionSource |
| 4655 | */ |
Wink Saville | 29487ef | 2011-04-15 09:15:31 -0700 | [diff] [blame] | 4656 | #define RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED 1031 |
Wink Saville | c0114b3 | 2011-02-18 10:14:07 -0800 | [diff] [blame] | 4657 | |
| 4658 | /** |
| 4659 | * RIL_UNSOL_CDMA_PRL_CHANGED |
| 4660 | * |
| 4661 | * Called when PRL (preferred roaming list) changes. |
| 4662 | * |
| 4663 | * "data" is int * |
| 4664 | * ((int *)data)[0] is PRL_VERSION as would be returned by RIL_REQUEST_CDMA_SUBSCRIPTION |
| 4665 | */ |
| 4666 | #define RIL_UNSOL_CDMA_PRL_CHANGED 1032 |
| 4667 | |
| 4668 | /** |
| 4669 | * RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE |
| 4670 | * |
| 4671 | * Called when Emergency Callback Mode Ends |
| 4672 | * |
| 4673 | * Indicates that the radio system selection module has |
| 4674 | * proactively exited emergency callback mode. |
| 4675 | * |
| 4676 | * "data" is NULL |
| 4677 | * |
| 4678 | */ |
| 4679 | #define RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE 1033 |
| 4680 | |
Wink Saville | 5b9df33 | 2011-04-06 16:24:21 -0700 | [diff] [blame] | 4681 | /** |
| 4682 | * RIL_UNSOL_RIL_CONNECTED |
| 4683 | * |
| 4684 | * Called the ril connects and returns the version |
| 4685 | * |
| 4686 | * "data" is int * |
| 4687 | * ((int *)data)[0] is RIL_VERSION |
| 4688 | */ |
| 4689 | #define RIL_UNSOL_RIL_CONNECTED 1034 |
| 4690 | |
Naveen Kalla | 2bc78d6 | 2011-12-07 16:22:53 -0800 | [diff] [blame] | 4691 | /** |
| 4692 | * RIL_UNSOL_VOICE_RADIO_TECH_CHANGED |
| 4693 | * |
| 4694 | * Indicates that voice technology has changed. Contains new radio technology |
| 4695 | * as a data in the message. |
| 4696 | * |
| 4697 | * "data" is int * |
| 4698 | * ((int *)data)[0] is of type const RIL_RadioTechnology |
| 4699 | * |
| 4700 | */ |
| 4701 | #define RIL_UNSOL_VOICE_RADIO_TECH_CHANGED 1035 |
| 4702 | |
Wink Saville | 8a9e021 | 2013-04-09 12:11:38 -0700 | [diff] [blame] | 4703 | /** |
| 4704 | * RIL_UNSOL_CELL_INFO_LIST |
| 4705 | * |
| 4706 | * Same information as returned by RIL_REQUEST_GET_CELL_INFO_LIST, but returned |
| 4707 | * at the rate no greater than specified by RIL_REQUEST_SET_UNSOL_CELL_INFO_RATE. |
| 4708 | * |
| 4709 | * "data" is NULL |
| 4710 | * |
| 4711 | * "response" is an array of RIL_CellInfo. |
| 4712 | */ |
| 4713 | #define RIL_UNSOL_CELL_INFO_LIST 1036 |
Naveen Kalla | 2bc78d6 | 2011-12-07 16:22:53 -0800 | [diff] [blame] | 4714 | |
Wink Saville | 865ce3b | 2013-11-08 16:37:01 -0800 | [diff] [blame] | 4715 | /** |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 4716 | * RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED |
| 4717 | * |
| 4718 | * Called when IMS registration state has changed |
| 4719 | * |
Wink Saville | 865ce3b | 2013-11-08 16:37:01 -0800 | [diff] [blame] | 4720 | * To get IMS registration state and IMS SMS format, callee needs to invoke the |
| 4721 | * following request on main thread: |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 4722 | * |
Wink Saville | 865ce3b | 2013-11-08 16:37:01 -0800 | [diff] [blame] | 4723 | * RIL_REQUEST_IMS_REGISTRATION_STATE |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 4724 | * |
Wink Saville | 865ce3b | 2013-11-08 16:37:01 -0800 | [diff] [blame] | 4725 | * "data" is NULL |
| 4726 | * |
Sukanya Rajkhowa | a18b9d1 | 2013-09-10 12:30:13 -0700 | [diff] [blame] | 4727 | */ |
| 4728 | #define RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED 1037 |
| 4729 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 4730 | /** |
| 4731 | * RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED |
| 4732 | * |
| 4733 | * Indicated when there is a change in subscription status. |
| 4734 | * This event will be sent in the following scenarios |
| 4735 | * - subscription readiness at modem, which was selected by telephony layer |
| 4736 | * - when subscription is deactivated by modem due to UICC card removal |
| 4737 | * - When network invalidates the subscription i.e. attach reject due to authentication reject |
| 4738 | * |
| 4739 | * "data" is const int * |
| 4740 | * ((const int *)data)[0] == 0 for Subscription Deactivated |
| 4741 | * ((const int *)data)[0] == 1 for Subscription Activated |
| 4742 | * |
| 4743 | */ |
| 4744 | #define RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED 1038 |
| 4745 | |
| 4746 | /** |
| 4747 | * RIL_UNSOL_SRVCC_STATE_NOTIFY |
| 4748 | * |
| 4749 | * Called when Single Radio Voice Call Continuity(SRVCC) |
| 4750 | * progress state has changed |
| 4751 | * |
| 4752 | * "data" is int * |
| 4753 | * ((int *)data)[0] is of type const RIL_SrvccState |
| 4754 | * |
| 4755 | */ |
| 4756 | |
| 4757 | #define RIL_UNSOL_SRVCC_STATE_NOTIFY 1039 |
| 4758 | |
| 4759 | /** |
| 4760 | * RIL_UNSOL_HARDWARE_CONFIG_CHANGED |
| 4761 | * |
| 4762 | * Called when the hardware configuration associated with the RILd changes |
| 4763 | * |
| 4764 | * "data" is an array of RIL_HardwareConfig |
| 4765 | * |
| 4766 | */ |
| 4767 | #define RIL_UNSOL_HARDWARE_CONFIG_CHANGED 1040 |
| 4768 | |
Wink Saville | c29360a | 2014-07-13 05:17:28 -0700 | [diff] [blame] | 4769 | /** |
| 4770 | * RIL_UNSOL_DC_RT_INFO_CHANGED |
| 4771 | * |
| 4772 | * Sent when the DC_RT_STATE changes but the time |
| 4773 | * between these messages must not be less than the |
| 4774 | * value set by RIL_REQUEST_SET_DC_RT_RATE. |
| 4775 | * |
| 4776 | * "data" is the most recent RIL_DcRtInfo |
| 4777 | * |
| 4778 | */ |
| 4779 | #define RIL_UNSOL_DC_RT_INFO_CHANGED 1041 |
| 4780 | |
Wink Saville | 8b4e4f7 | 2014-10-17 15:01:45 -0700 | [diff] [blame] | 4781 | /** |
| 4782 | * RIL_UNSOL_RADIO_CAPABILITY |
| 4783 | * |
| 4784 | * Sent when RIL_REQUEST_SET_RADIO_CAPABILITY completes. |
| 4785 | * Returns the phone radio capability exactly as |
| 4786 | * RIL_REQUEST_GET_RADIO_CAPABILITY and should be the |
| 4787 | * same set as sent by RIL_REQUEST_SET_RADIO_CAPABILITY. |
| 4788 | * |
| 4789 | * "data" is the RIL_RadioCapability structure |
| 4790 | */ |
| 4791 | #define RIL_UNSOL_RADIO_CAPABILITY 1042 |
| 4792 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4793 | /***********************************************************************/ |
| 4794 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 4795 | #if defined(ANDROID_MULTI_SIM) |
| 4796 | /** |
| 4797 | * RIL_Request Function pointer |
| 4798 | * |
| 4799 | * @param request is one of RIL_REQUEST_* |
| 4800 | * @param data is pointer to data defined for that RIL_REQUEST_* |
| 4801 | * data is owned by caller, and should not be modified or freed by callee |
| 4802 | * @param t should be used in subsequent call to RIL_onResponse |
| 4803 | * @param datalen the length of data |
| 4804 | * |
| 4805 | */ |
| 4806 | typedef void (*RIL_RequestFunc) (int request, void *data, |
| 4807 | size_t datalen, RIL_Token t, RIL_SOCKET_ID socket_id); |
| 4808 | |
| 4809 | /** |
| 4810 | * This function should return the current radio state synchronously |
| 4811 | */ |
| 4812 | typedef RIL_RadioState (*RIL_RadioStateRequest)(RIL_SOCKET_ID socket_id); |
| 4813 | |
| 4814 | #else |
| 4815 | /* Backward compatible */ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4816 | |
| 4817 | /** |
| 4818 | * RIL_Request Function pointer |
| 4819 | * |
| 4820 | * @param request is one of RIL_REQUEST_* |
| 4821 | * @param data is pointer to data defined for that RIL_REQUEST_* |
| 4822 | * data is owned by caller, and should not be modified or freed by callee |
| 4823 | * @param t should be used in subsequent call to RIL_onResponse |
| 4824 | * @param datalen the length of data |
| 4825 | * |
| 4826 | */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4827 | typedef void (*RIL_RequestFunc) (int request, void *data, |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4828 | size_t datalen, RIL_Token t); |
| 4829 | |
| 4830 | /** |
| 4831 | * This function should return the current radio state synchronously |
| 4832 | */ |
| 4833 | typedef RIL_RadioState (*RIL_RadioStateRequest)(); |
| 4834 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 4835 | #endif |
| 4836 | |
| 4837 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4838 | /** |
| 4839 | * This function returns "1" if the specified RIL_REQUEST code is |
| 4840 | * supported and 0 if it is not |
| 4841 | * |
| 4842 | * @param requestCode is one of RIL_REQUEST codes |
| 4843 | */ |
| 4844 | |
| 4845 | typedef int (*RIL_Supports)(int requestCode); |
| 4846 | |
| 4847 | /** |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4848 | * This function is called from a separate thread--not the |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4849 | * thread that calls RIL_RequestFunc--and indicates that a pending |
| 4850 | * request should be cancelled. |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4851 | * |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4852 | * On cancel, the callee should do its best to abandon the request and |
| 4853 | * call RIL_onRequestComplete with RIL_Errno CANCELLED at some later point. |
| 4854 | * |
| 4855 | * Subsequent calls to RIL_onRequestComplete for this request with |
| 4856 | * other results will be tolerated but ignored. (That is, it is valid |
| 4857 | * to ignore the cancellation request) |
| 4858 | * |
| 4859 | * RIL_Cancel calls should return immediately, and not wait for cancellation |
| 4860 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4861 | * Please see ITU v.250 5.6.1 for how one might implement this on a TS 27.007 |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4862 | * interface |
| 4863 | * |
| 4864 | * @param t token wants to be canceled |
| 4865 | */ |
| 4866 | |
| 4867 | typedef void (*RIL_Cancel)(RIL_Token t); |
| 4868 | |
| 4869 | typedef void (*RIL_TimedCallback) (void *param); |
| 4870 | |
| 4871 | /** |
| 4872 | * Return a version string for your RIL implementation |
| 4873 | */ |
| 4874 | typedef const char * (*RIL_GetVersion) (void); |
| 4875 | |
| 4876 | typedef struct { |
| 4877 | int version; /* set to RIL_VERSION */ |
| 4878 | RIL_RequestFunc onRequest; |
| 4879 | RIL_RadioStateRequest onStateRequest; |
| 4880 | RIL_Supports supports; |
| 4881 | RIL_Cancel onCancel; |
| 4882 | RIL_GetVersion getVersion; |
| 4883 | } RIL_RadioFunctions; |
| 4884 | |
Sungmin Choi | 7569753 | 2013-04-26 15:04:45 -0700 | [diff] [blame] | 4885 | typedef struct { |
| 4886 | char *apn; |
| 4887 | char *protocol; |
| 4888 | int authtype; |
| 4889 | char *username; |
| 4890 | char *password; |
| 4891 | } RIL_InitialAttachApn; |
| 4892 | |
Amit Mahajan | 2b77203 | 2014-06-26 14:20:11 -0700 | [diff] [blame] | 4893 | typedef struct { |
| 4894 | int authContext; /* P2 value of authentication command, see P2 parameter in |
| 4895 | 3GPP TS 31.102 7.1.2 */ |
| 4896 | char *authData; /* the challenge string in Base64 format, see 3GPP |
| 4897 | TS 31.102 7.1.2 */ |
| 4898 | char *aid; /* AID value, See ETSI 102.221 8.1 and 101.220 4, |
| 4899 | NULL if no value. */ |
| 4900 | } RIL_SimAuthentication; |
| 4901 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4902 | #ifdef RIL_SHLIB |
| 4903 | struct RIL_Env { |
| 4904 | /** |
| 4905 | * "t" is parameter passed in on previous call to RIL_Notification |
| 4906 | * routine. |
| 4907 | * |
| 4908 | * If "e" != SUCCESS, then response can be null/is ignored |
| 4909 | * |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4910 | * "response" is owned by caller, and should not be modified or |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4911 | * freed by callee |
| 4912 | * |
| 4913 | * RIL_onRequestComplete will return as soon as possible |
| 4914 | */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4915 | void (*OnRequestComplete)(RIL_Token t, RIL_Errno e, |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4916 | void *response, size_t responselen); |
| 4917 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 4918 | #if defined(ANDROID_MULTI_SIM) |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4919 | /** |
| 4920 | * "unsolResponse" is one of RIL_UNSOL_RESPONSE_* |
| 4921 | * "data" is pointer to data defined for that RIL_UNSOL_RESPONSE_* |
| 4922 | * |
| 4923 | * "data" is owned by caller, and should not be modified or freed by callee |
| 4924 | */ |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 4925 | void (*OnUnsolicitedResponse)(int unsolResponse, const void *data, size_t datalen, RIL_SOCKET_ID socket_id); |
| 4926 | #else |
| 4927 | /** |
| 4928 | * "unsolResponse" is one of RIL_UNSOL_RESPONSE_* |
| 4929 | * "data" is pointer to data defined for that RIL_UNSOL_RESPONSE_* |
| 4930 | * |
| 4931 | * "data" is owned by caller, and should not be modified or freed by callee |
| 4932 | */ |
| 4933 | void (*OnUnsolicitedResponse)(int unsolResponse, const void *data, size_t datalen); |
| 4934 | #endif |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4935 | /** |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4936 | * Call user-specifed "callback" function on on the same thread that |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4937 | * RIL_RequestFunc is called. If "relativeTime" is specified, then it specifies |
| 4938 | * a relative time value at which the callback is invoked. If relativeTime is |
| 4939 | * NULL or points to a 0-filled structure, the callback will be invoked as |
| 4940 | * soon as possible |
| 4941 | */ |
| 4942 | |
Dianne Hackborn | 0d9f0c0 | 2010-06-25 16:50:46 -0700 | [diff] [blame] | 4943 | void (*RequestTimedCallback) (RIL_TimedCallback callback, |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4944 | void *param, const struct timeval *relativeTime); |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4945 | }; |
| 4946 | |
| 4947 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4948 | /** |
| 4949 | * RIL implementations must defined RIL_Init |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4950 | * argc and argv will be command line arguments intended for the RIL implementation |
| 4951 | * Return NULL on error |
| 4952 | * |
| 4953 | * @param env is environment point defined as RIL_Env |
| 4954 | * @param argc number of arguments |
| 4955 | * @param argv list fo arguments |
| 4956 | * |
| 4957 | */ |
| 4958 | const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc, char **argv); |
| 4959 | |
| 4960 | #else /* RIL_SHLIB */ |
| 4961 | |
| 4962 | /** |
| 4963 | * Call this once at startup to register notification routine |
| 4964 | * |
| 4965 | * @param callbacks user-specifed callback function |
| 4966 | */ |
| 4967 | void RIL_register (const RIL_RadioFunctions *callbacks); |
| 4968 | |
| 4969 | |
| 4970 | /** |
| 4971 | * |
| 4972 | * RIL_onRequestComplete will return as soon as possible |
| 4973 | * |
| 4974 | * @param t is parameter passed in on previous call to RIL_Notification |
Wink Saville | 3d54e74 | 2009-05-18 18:00:44 -0700 | [diff] [blame] | 4975 | * routine. |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4976 | * @param e error code |
| 4977 | * if "e" != SUCCESS, then response can be null/is ignored |
| 4978 | * @param response is owned by caller, and should not be modified or |
| 4979 | * freed by callee |
| 4980 | * @param responselen the length of response in byte |
| 4981 | */ |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 4982 | void RIL_onRequestComplete(RIL_Token t, RIL_Errno e, |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4983 | void *response, size_t responselen); |
| 4984 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 4985 | #if defined(ANDROID_MULTI_SIM) |
| 4986 | /** |
| 4987 | * @param unsolResponse is one of RIL_UNSOL_RESPONSE_* |
| 4988 | * @param data is pointer to data defined for that RIL_UNSOL_RESPONSE_* |
| 4989 | * "data" is owned by caller, and should not be modified or freed by callee |
| 4990 | * @param datalen the length of data in byte |
| 4991 | */ |
| 4992 | |
| 4993 | void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, |
| 4994 | size_t datalen, RIL_SOCKET_ID socket_id); |
| 4995 | #else |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 4996 | /** |
| 4997 | * @param unsolResponse is one of RIL_UNSOL_RESPONSE_* |
| 4998 | * @param data is pointer to data defined for that RIL_UNSOL_RESPONSE_* |
| 4999 | * "data" is owned by caller, and should not be modified or freed by callee |
| 5000 | * @param datalen the length of data in byte |
| 5001 | */ |
| 5002 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 5003 | void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 5004 | size_t datalen); |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 5005 | #endif |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 5006 | |
| 5007 | /** |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 5008 | * Call user-specifed "callback" function on on the same thread that |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 5009 | * RIL_RequestFunc is called. If "relativeTime" is specified, then it specifies |
| 5010 | * a relative time value at which the callback is invoked. If relativeTime is |
| 5011 | * NULL or points to a 0-filled structure, the callback will be invoked as |
| 5012 | * soon as possible |
| 5013 | * |
| 5014 | * @param callback user-specifed callback function |
| 5015 | * @param param parameter list |
| 5016 | * @param relativeTime a relative time value at which the callback is invoked |
| 5017 | */ |
| 5018 | |
Dianne Hackborn | 0d9f0c0 | 2010-06-25 16:50:46 -0700 | [diff] [blame] | 5019 | void RIL_requestTimedCallback (RIL_TimedCallback callback, |
| 5020 | void *param, const struct timeval *relativeTime); |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 5021 | |
| 5022 | |
| 5023 | #endif /* RIL_SHLIB */ |
| 5024 | |
| 5025 | #ifdef __cplusplus |
| 5026 | } |
| 5027 | #endif |
| 5028 | |
| 5029 | #endif /*ANDROID_RIL_H*/ |