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