RILConstants.java revision aa0f5873a74afc4dc40f8f016b0f1b0205a4f194
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
17package com.android.internal.telephony;
18
19/**
20 * TODO: This should probably not be an interface see
21 * http://www.javaworld.com/javaworld/javaqa/2001-06/01-qa-0608-constants.html and google with
22 * http://www.google.com/search?q=interface+constants&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a
23 *
24 * Also they should all probably be static final.
25 */
26
27import android.os.SystemProperties;
28
29/**
30 * {@hide}
31 */
32public interface RILConstants {
33    // From the top of ril.cpp
34    int RIL_ERRNO_INVALID_RESPONSE = -1;
35
36    int MAX_INT = 0x7FFFFFFF;
37
38    // from RIL_Errno
39    int SUCCESS = 0;
40    int RADIO_NOT_AVAILABLE = 1;              /* If radio did not start or is resetting */
41    int GENERIC_FAILURE = 2;
42    int PASSWORD_INCORRECT = 3;               /* for PIN/PIN2 methods only! */
43    int SIM_PIN2 = 4;                         /* Operation requires SIM PIN2 to be entered */
44    int SIM_PUK2 = 5;                         /* Operation requires SIM PIN2 to be entered */
45    int REQUEST_NOT_SUPPORTED = 6;
46    int REQUEST_CANCELLED = 7;
47    int OP_NOT_ALLOWED_DURING_VOICE_CALL = 8; /* data operation is not allowed during voice call in
48                                                 class C */
49    int OP_NOT_ALLOWED_BEFORE_REG_NW = 9;     /* request is not allowed before device registers to
50                                                 network */
51    int SMS_SEND_FAIL_RETRY = 10;             /* send sms fail and need retry */
52    int SIM_ABSENT = 11;                      /* ICC card is absent */
53    int SUBSCRIPTION_NOT_AVAILABLE = 12;      /* fail to find CDMA subscription from specified
54                                                 location */
55    int MODE_NOT_SUPPORTED = 13;              /* HW does not support preferred network type */
56    int FDN_CHECK_FAILURE = 14;               /* send operation barred error when FDN is enabled */
57    int ILLEGAL_SIM_OR_ME = 15;               /* network selection failure due
58                                                 to wrong SIM/ME and no
59                                                 retries needed */
60    int MISSING_RESOURCE = 16;                /* no logical channel available */
61    int NO_SUCH_ELEMENT = 17;                 /* application not found on SIM */
62    int DIAL_MODIFIED_TO_USSD = 18;           /* DIAL request modified to USSD */
63    int DIAL_MODIFIED_TO_SS = 19;             /* DIAL request modified to SS */
64    int DIAL_MODIFIED_TO_DIAL = 20;           /* DIAL request modified to DIAL with different data*/
65    int USSD_MODIFIED_TO_DIAL = 21;           /* USSD request modified to DIAL */
66    int USSD_MODIFIED_TO_SS = 22;             /* USSD request modified to SS */
67    int USSD_MODIFIED_TO_USSD = 23;           /* USSD request modified to different USSD request */
68    int SS_MODIFIED_TO_DIAL = 24;             /* SS request modified to DIAL */
69    int SS_MODIFIED_TO_USSD = 25;             /* SS request modified to USSD */
70    int SUBSCRIPTION_NOT_SUPPORTED = 26;      /* Subscription not supported */
71    int SS_MODIFIED_TO_SS = 27;               /* SS request modified to different SS request */
72    int SIM_ALREADY_POWERED_OFF = 29;         /* SAP: 0x03, Error card aleready powered off */
73    int SIM_ALREADY_POWERED_ON = 30;          /* SAP: 0x05, Error card already powered on */
74    int SIM_DATA_NOT_AVAILABLE = 31;          /* SAP: 0x06, Error data not available */
75    int SIM_SAP_CONNECT_FAILURE = 32;
76    int SIM_SAP_MSG_SIZE_TOO_LARGE = 33;
77    int SIM_SAP_MSG_SIZE_TOO_SMALL = 34;
78    int SIM_SAP_CONNECT_OK_CALL_ONGOING = 35;
79    int LCE_NOT_SUPPORTED = 36;               /* Link Capacity Estimation (LCE) not supported */
80    int NO_MEMORY = 37;                       /* Not sufficient memory to process the request */
81    int INTERNAL_ERR = 38;                    /* Hit unexpected vendor internal error scenario */
82    int SYSTEM_ERR = 39;                      /* Hit platform or system error */
83    int MODEM_ERR = 40;                       /* Hit unexpected modem error */
84    int INVALID_STATE = 41;                   /* Can not process the request as vendor RIL is in
85                                                   invalid state. */
86    int NO_RESOURCES = 42;                    /* Not sufficient resource to process the request */
87    int SIM_ERR = 43;                         /* Received error from SIM card */
88    int INVALID_ARGUMENTS = 44;               /* Received invalid arguments in request */
89    int INVALID_SIM_STATE = 45;               /* Can not process the request in current SIM state */
90    int INVALID_MODEM_STATE = 46;             /* Can not process the request in current Modem state */
91    int INVALID_CALL_ID = 47;                 /* Received invalid call id in request */
92    int NO_SMS_TO_ACK = 48;                   /* ACK received when there is no SMS to ack */
93    int NETWORK_ERR = 49;                     /* Received error from network */
94    int REQUEST_RATE_LIMITED = 50;            /* Operation denied due to overly-frequent requests */
95    // Below is list of OEM specific error codes which can by used by OEMs in case they don't want to
96    // reveal particular replacement for Generic failure
97    int OEM_ERROR_1 = 501;
98    int OEM_ERROR_2 = 502;
99    int OEM_ERROR_3 = 503;
100    int OEM_ERROR_4 = 504;
101    int OEM_ERROR_5 = 505;
102    int OEM_ERROR_6 = 506;
103    int OEM_ERROR_7 = 507;
104    int OEM_ERROR_8 = 508;
105    int OEM_ERROR_9 = 509;
106    int OEM_ERROR_10 = 510;
107    int OEM_ERROR_11 = 511;
108    int OEM_ERROR_12 = 512;
109    int OEM_ERROR_13 = 513;
110    int OEM_ERROR_14 = 514;
111    int OEM_ERROR_15 = 515;
112    int OEM_ERROR_16 = 516;
113    int OEM_ERROR_17 = 517;
114    int OEM_ERROR_18 = 518;
115    int OEM_ERROR_19 = 519;
116    int OEM_ERROR_20 = 520;
117    int OEM_ERROR_21 = 521;
118    int OEM_ERROR_22 = 522;
119    int OEM_ERROR_23 = 523;
120    int OEM_ERROR_24 = 524;
121    int OEM_ERROR_25 = 525;
122
123    /* NETWORK_MODE_* See ril.h RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE */
124    int NETWORK_MODE_WCDMA_PREF     = 0; /* GSM/WCDMA (WCDMA preferred) */
125    int NETWORK_MODE_GSM_ONLY       = 1; /* GSM only */
126    int NETWORK_MODE_WCDMA_ONLY     = 2; /* WCDMA only */
127    int NETWORK_MODE_GSM_UMTS       = 3; /* GSM/WCDMA (auto mode, according to PRL)
128                                            AVAILABLE Application Settings menu*/
129    int NETWORK_MODE_CDMA           = 4; /* CDMA and EvDo (auto mode, according to PRL)
130                                            AVAILABLE Application Settings menu*/
131    int NETWORK_MODE_CDMA_NO_EVDO   = 5; /* CDMA only */
132    int NETWORK_MODE_EVDO_NO_CDMA   = 6; /* EvDo only */
133    int NETWORK_MODE_GLOBAL         = 7; /* GSM/WCDMA, CDMA, and EvDo (auto mode, according to PRL)
134                                            AVAILABLE Application Settings menu*/
135    int NETWORK_MODE_LTE_CDMA_EVDO  = 8; /* LTE, CDMA and EvDo */
136    int NETWORK_MODE_LTE_GSM_WCDMA  = 9; /* LTE, GSM/WCDMA */
137    int NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA = 10; /* LTE, CDMA, EvDo, GSM/WCDMA */
138    int NETWORK_MODE_LTE_ONLY       = 11; /* LTE Only mode. */
139    int NETWORK_MODE_LTE_WCDMA      = 12; /* LTE/WCDMA */
140    int NETWORK_MODE_TDSCDMA_ONLY            = 13; /* TD-SCDMA only */
141    int NETWORK_MODE_TDSCDMA_WCDMA           = 14; /* TD-SCDMA and WCDMA */
142    int NETWORK_MODE_LTE_TDSCDMA             = 15; /* TD-SCDMA and LTE */
143    int NETWORK_MODE_TDSCDMA_GSM             = 16; /* TD-SCDMA and GSM */
144    int NETWORK_MODE_LTE_TDSCDMA_GSM         = 17; /* TD-SCDMA,GSM and LTE */
145    int NETWORK_MODE_TDSCDMA_GSM_WCDMA       = 18; /* TD-SCDMA, GSM/WCDMA */
146    int NETWORK_MODE_LTE_TDSCDMA_WCDMA       = 19; /* TD-SCDMA, WCDMA and LTE */
147    int NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA   = 20; /* TD-SCDMA, GSM/WCDMA and LTE */
148    int NETWORK_MODE_TDSCDMA_CDMA_EVDO_GSM_WCDMA  = 21; /*TD-SCDMA,EvDo,CDMA,GSM/WCDMA*/
149    int NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA = 22; /* TD-SCDMA/LTE/GSM/WCDMA, CDMA, and EvDo */
150    int PREFERRED_NETWORK_MODE      = SystemProperties.getInt("ro.telephony.default_network",
151            NETWORK_MODE_WCDMA_PREF);
152
153    int BAND_MODE_UNSPECIFIED = 0;      //"unspecified" (selected by baseband automatically)
154    int BAND_MODE_EURO = 1;             //"EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000)
155    int BAND_MODE_USA = 2;              //"US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900)
156    int BAND_MODE_JPN = 3;              //"JPN band" (WCDMA-800 / WCDMA-IMT-2000)
157    int BAND_MODE_AUS = 4;              //"AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000)
158    int BAND_MODE_AUS_2 = 5;            //"AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850)
159    int BAND_MODE_CELL_800 = 6;         //"Cellular" (800-MHz Band)
160    int BAND_MODE_PCS = 7;              //"PCS" (1900-MHz Band)
161    int BAND_MODE_JTACS = 8;            //"Band Class 3" (JTACS Band)
162    int BAND_MODE_KOREA_PCS = 9;        //"Band Class 4" (Korean PCS Band)
163    int BAND_MODE_5_450M = 10;          //"Band Class 5" (450-MHz Band)
164    int BAND_MODE_IMT2000 = 11;         //"Band Class 6" (2-GMHz IMT2000 Band)
165    int BAND_MODE_7_700M_2 = 12;        //"Band Class 7" (Upper 700-MHz Band)
166    int BAND_MODE_8_1800M = 13;         //"Band Class 8" (1800-MHz Band)
167    int BAND_MODE_9_900M = 14;          //"Band Class 9" (900-MHz Band)
168    int BAND_MODE_10_800M_2 = 15;       //"Band Class 10" (Secondary 800-MHz Band)
169    int BAND_MODE_EURO_PAMR_400M = 16;  //"Band Class 11" (400-MHz European PAMR Band)
170    int BAND_MODE_AWS = 17;             //"Band Class 15" (AWS Band)
171    int BAND_MODE_USA_2500M = 18;       //"Band Class 16" (US 2.5-GHz Band)
172
173    int CDMA_CELL_BROADCAST_SMS_DISABLED = 1;
174    int CDMA_CELL_BROADCAST_SMS_ENABLED  = 0;
175
176    int NO_PHONE = 0;
177    int GSM_PHONE = 1;
178    int CDMA_PHONE = 2;
179    int SIP_PHONE  = 3;
180    int THIRD_PARTY_PHONE = 4;
181    int IMS_PHONE = 5;
182    int CDMA_LTE_PHONE = 6;
183
184    int LTE_ON_CDMA_UNKNOWN = -1;
185    int LTE_ON_CDMA_FALSE = 0;
186    int LTE_ON_CDMA_TRUE = 1;
187
188    int CDM_TTY_MODE_DISABLED = 0;
189    int CDM_TTY_MODE_ENABLED = 1;
190
191    int CDM_TTY_FULL_MODE = 1;
192    int CDM_TTY_HCO_MODE = 2;
193    int CDM_TTY_VCO_MODE = 3;
194
195    /* Setup a packet data connection. See ril.h RIL_REQUEST_SETUP_DATA_CALL */
196    int SETUP_DATA_TECH_CDMA      = 0;
197    int SETUP_DATA_TECH_GSM       = 1;
198
199    int SETUP_DATA_AUTH_NONE      = 0;
200    int SETUP_DATA_AUTH_PAP       = 1;
201    int SETUP_DATA_AUTH_CHAP      = 2;
202    int SETUP_DATA_AUTH_PAP_CHAP  = 3;
203
204    String SETUP_DATA_PROTOCOL_IP     = "IP";
205    String SETUP_DATA_PROTOCOL_IPV6   = "IPV6";
206    String SETUP_DATA_PROTOCOL_IPV4V6 = "IPV4V6";
207
208    /* Deactivate data call reasons */
209    int DEACTIVATE_REASON_NONE = 0;
210    int DEACTIVATE_REASON_RADIO_OFF = 1;
211    int DEACTIVATE_REASON_PDP_RESET = 2;
212
213    /* NV config radio reset types. */
214    int NV_CONFIG_RELOAD_RESET = 1;
215    int NV_CONFIG_ERASE_RESET = 2;
216    int NV_CONFIG_FACTORY_RESET = 3;
217
218    /* LCE service related constants. */
219    int LCE_NOT_AVAILABLE = -1;
220    int LCE_STOPPED = 0;
221    int LCE_ACTIVE = 1;
222
223/*
224cat include/telephony/ril.h | \
225   egrep '^#define' | \
226   sed -re 's/^#define +([^ ]+)* +([^ ]+)/    int \1 = \2;/' \
227   >>java/android/com.android.internal.telephony/gsm/RILConstants.java
228*/
229
230    /**
231     * No restriction at all including voice/SMS/USSD/SS/AV64
232     * and packet data.
233     */
234    int RIL_RESTRICTED_STATE_NONE = 0x00;
235    /**
236     * Block emergency call due to restriction.
237     * But allow all normal voice/SMS/USSD/SS/AV64.
238     */
239    int RIL_RESTRICTED_STATE_CS_EMERGENCY = 0x01;
240    /**
241     * Block all normal voice/SMS/USSD/SS/AV64 due to restriction.
242     * Only Emergency call allowed.
243     */
244    int RIL_RESTRICTED_STATE_CS_NORMAL = 0x02;
245    /**
246     * Block all voice/SMS/USSD/SS/AV64
247     * including emergency call due to restriction.
248     */
249    int RIL_RESTRICTED_STATE_CS_ALL = 0x04;
250    /**
251     * Block packet data access due to restriction.
252     */
253    int RIL_RESTRICTED_STATE_PS_ALL = 0x10;
254
255    /** Data profile for RIL_REQUEST_SETUP_DATA_CALL */
256    public static final int DATA_PROFILE_DEFAULT   = 0;
257    public static final int DATA_PROFILE_TETHERED  = 1;
258    public static final int DATA_PROFILE_IMS       = 2;
259    public static final int DATA_PROFILE_FOTA      = 3;
260    public static final int DATA_PROFILE_CBS       = 4;
261    public static final int DATA_PROFILE_OEM_BASE  = 1000;
262    public static final int DATA_PROFILE_INVALID   = 0xFFFFFFFF;
263
264    int RIL_REQUEST_GET_SIM_STATUS = 1;
265    int RIL_REQUEST_ENTER_SIM_PIN = 2;
266    int RIL_REQUEST_ENTER_SIM_PUK = 3;
267    int RIL_REQUEST_ENTER_SIM_PIN2 = 4;
268    int RIL_REQUEST_ENTER_SIM_PUK2 = 5;
269    int RIL_REQUEST_CHANGE_SIM_PIN = 6;
270    int RIL_REQUEST_CHANGE_SIM_PIN2 = 7;
271    int RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION = 8;
272    int RIL_REQUEST_GET_CURRENT_CALLS = 9;
273    int RIL_REQUEST_DIAL = 10;
274    int RIL_REQUEST_GET_IMSI = 11;
275    int RIL_REQUEST_HANGUP = 12;
276    int RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND = 13;
277    int RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND = 14;
278    int RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE = 15;
279    int RIL_REQUEST_CONFERENCE = 16;
280    int RIL_REQUEST_UDUB = 17;
281    int RIL_REQUEST_LAST_CALL_FAIL_CAUSE = 18;
282    int RIL_REQUEST_SIGNAL_STRENGTH = 19;
283    int RIL_REQUEST_VOICE_REGISTRATION_STATE = 20;
284    int RIL_REQUEST_DATA_REGISTRATION_STATE = 21;
285    int RIL_REQUEST_OPERATOR = 22;
286    int RIL_REQUEST_RADIO_POWER = 23;
287    int RIL_REQUEST_DTMF = 24;
288    int RIL_REQUEST_SEND_SMS = 25;
289    int RIL_REQUEST_SEND_SMS_EXPECT_MORE = 26;
290    int RIL_REQUEST_SETUP_DATA_CALL = 27;
291    int RIL_REQUEST_SIM_IO = 28;
292    int RIL_REQUEST_SEND_USSD = 29;
293    int RIL_REQUEST_CANCEL_USSD = 30;
294    int RIL_REQUEST_GET_CLIR = 31;
295    int RIL_REQUEST_SET_CLIR = 32;
296    int RIL_REQUEST_QUERY_CALL_FORWARD_STATUS = 33;
297    int RIL_REQUEST_SET_CALL_FORWARD = 34;
298    int RIL_REQUEST_QUERY_CALL_WAITING = 35;
299    int RIL_REQUEST_SET_CALL_WAITING = 36;
300    int RIL_REQUEST_SMS_ACKNOWLEDGE = 37;
301    int RIL_REQUEST_GET_IMEI = 38;
302    int RIL_REQUEST_GET_IMEISV = 39;
303    int RIL_REQUEST_ANSWER = 40;
304    int RIL_REQUEST_DEACTIVATE_DATA_CALL = 41;
305    int RIL_REQUEST_QUERY_FACILITY_LOCK = 42;
306    int RIL_REQUEST_SET_FACILITY_LOCK = 43;
307    int RIL_REQUEST_CHANGE_BARRING_PASSWORD = 44;
308    int RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE = 45;
309    int RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC = 46;
310    int RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL = 47;
311    int RIL_REQUEST_QUERY_AVAILABLE_NETWORKS = 48;
312    int RIL_REQUEST_DTMF_START = 49;
313    int RIL_REQUEST_DTMF_STOP = 50;
314    int RIL_REQUEST_BASEBAND_VERSION = 51;
315    int RIL_REQUEST_SEPARATE_CONNECTION = 52;
316    int RIL_REQUEST_SET_MUTE = 53;
317    int RIL_REQUEST_GET_MUTE = 54;
318    int RIL_REQUEST_QUERY_CLIP = 55;
319    int RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE = 56;
320    int RIL_REQUEST_DATA_CALL_LIST = 57;
321    int RIL_REQUEST_RESET_RADIO = 58;
322    int RIL_REQUEST_OEM_HOOK_RAW = 59;
323    int RIL_REQUEST_OEM_HOOK_STRINGS = 60;
324    int RIL_REQUEST_SCREEN_STATE = 61;
325    int RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION = 62;
326    int RIL_REQUEST_WRITE_SMS_TO_SIM = 63;
327    int RIL_REQUEST_DELETE_SMS_ON_SIM = 64;
328    int RIL_REQUEST_SET_BAND_MODE = 65;
329    int RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE = 66;
330    int RIL_REQUEST_STK_GET_PROFILE = 67;
331    int RIL_REQUEST_STK_SET_PROFILE = 68;
332    int RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND = 69;
333    int RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE = 70;
334    int RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM = 71;
335    int RIL_REQUEST_EXPLICIT_CALL_TRANSFER = 72;
336    int RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE = 73;
337    int RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE = 74;
338    int RIL_REQUEST_GET_NEIGHBORING_CELL_IDS = 75;
339    int RIL_REQUEST_SET_LOCATION_UPDATES = 76;
340    int RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE = 77;
341    int RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE = 78;
342    int RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE = 79;
343    int RIL_REQUEST_SET_TTY_MODE = 80;
344    int RIL_REQUEST_QUERY_TTY_MODE = 81;
345    int RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE = 82;
346    int RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE = 83;
347    int RIL_REQUEST_CDMA_FLASH = 84;
348    int RIL_REQUEST_CDMA_BURST_DTMF = 85;
349    int RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY = 86;
350    int RIL_REQUEST_CDMA_SEND_SMS = 87;
351    int RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE = 88;
352    int RIL_REQUEST_GSM_GET_BROADCAST_CONFIG = 89;
353    int RIL_REQUEST_GSM_SET_BROADCAST_CONFIG = 90;
354    int RIL_REQUEST_GSM_BROADCAST_ACTIVATION = 91;
355    int RIL_REQUEST_CDMA_GET_BROADCAST_CONFIG = 92;
356    int RIL_REQUEST_CDMA_SET_BROADCAST_CONFIG = 93;
357    int RIL_REQUEST_CDMA_BROADCAST_ACTIVATION = 94;
358    int RIL_REQUEST_CDMA_SUBSCRIPTION = 95;
359    int RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM = 96;
360    int RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM = 97;
361    int RIL_REQUEST_DEVICE_IDENTITY = 98;
362    int RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE = 99;
363    int RIL_REQUEST_GET_SMSC_ADDRESS = 100;
364    int RIL_REQUEST_SET_SMSC_ADDRESS = 101;
365    int RIL_REQUEST_REPORT_SMS_MEMORY_STATUS = 102;
366    int RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING = 103;
367    int RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE = 104;
368    int RIL_REQUEST_ISIM_AUTHENTICATION = 105;
369    int RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU = 106;
370    int RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS = 107;
371    int RIL_REQUEST_VOICE_RADIO_TECH = 108;
372    int RIL_REQUEST_GET_CELL_INFO_LIST = 109;
373    int RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE = 110;
374    int RIL_REQUEST_SET_INITIAL_ATTACH_APN = 111;
375    int RIL_REQUEST_IMS_REGISTRATION_STATE = 112;
376    int RIL_REQUEST_IMS_SEND_SMS = 113;
377    int RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC = 114;
378    int RIL_REQUEST_SIM_OPEN_CHANNEL = 115;
379    int RIL_REQUEST_SIM_CLOSE_CHANNEL = 116;
380    int RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL = 117;
381    int RIL_REQUEST_NV_READ_ITEM = 118;
382    int RIL_REQUEST_NV_WRITE_ITEM = 119;
383    int RIL_REQUEST_NV_WRITE_CDMA_PRL = 120;
384    int RIL_REQUEST_NV_RESET_CONFIG = 121;
385    int RIL_REQUEST_SET_UICC_SUBSCRIPTION = 122;
386    int RIL_REQUEST_ALLOW_DATA = 123;
387    int RIL_REQUEST_GET_HARDWARE_CONFIG = 124;
388    int RIL_REQUEST_SIM_AUTHENTICATION = 125;
389    int RIL_REQUEST_GET_DC_RT_INFO = 126;
390    int RIL_REQUEST_SET_DC_RT_INFO_RATE = 127;
391    int RIL_REQUEST_SET_DATA_PROFILE = 128;
392    int RIL_REQUEST_SHUTDOWN = 129;
393    int RIL_REQUEST_GET_RADIO_CAPABILITY = 130;
394    int RIL_REQUEST_SET_RADIO_CAPABILITY = 131;
395    int RIL_REQUEST_START_LCE = 132;
396    int RIL_REQUEST_STOP_LCE = 133;
397    int RIL_REQUEST_PULL_LCEDATA = 134;
398    int RIL_REQUEST_GET_ACTIVITY_INFO = 135;
399
400    int RIL_RESPONSE_ACKNOWLEDGEMENT = 800;
401
402    int RIL_UNSOL_RESPONSE_BASE = 1000;
403    int RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED = 1000;
404    int RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED = 1001;
405    int RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED = 1002;
406    int RIL_UNSOL_RESPONSE_NEW_SMS = 1003;
407    int RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT = 1004;
408    int RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM = 1005;
409    int RIL_UNSOL_ON_USSD = 1006;
410    int RIL_UNSOL_ON_USSD_REQUEST = 1007;
411    int RIL_UNSOL_NITZ_TIME_RECEIVED = 1008;
412    int RIL_UNSOL_SIGNAL_STRENGTH = 1009;
413    int RIL_UNSOL_DATA_CALL_LIST_CHANGED = 1010;
414    int RIL_UNSOL_SUPP_SVC_NOTIFICATION = 1011;
415    int RIL_UNSOL_STK_SESSION_END = 1012;
416    int RIL_UNSOL_STK_PROACTIVE_COMMAND = 1013;
417    int RIL_UNSOL_STK_EVENT_NOTIFY = 1014;
418    int RIL_UNSOL_STK_CALL_SETUP = 1015;
419    int RIL_UNSOL_SIM_SMS_STORAGE_FULL = 1016;
420    int RIL_UNSOL_SIM_REFRESH = 1017;
421    int RIL_UNSOL_CALL_RING = 1018;
422    int RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED = 1019;
423    int RIL_UNSOL_RESPONSE_CDMA_NEW_SMS = 1020;
424    int RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS = 1021;
425    int RIL_UNSOL_CDMA_RUIM_SMS_STORAGE_FULL = 1022;
426    int RIL_UNSOL_RESTRICTED_STATE_CHANGED = 1023;
427    int RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE = 1024;
428    int RIL_UNSOL_CDMA_CALL_WAITING = 1025;
429    int RIL_UNSOL_CDMA_OTA_PROVISION_STATUS = 1026;
430    int RIL_UNSOL_CDMA_INFO_REC = 1027;
431    int RIL_UNSOL_OEM_HOOK_RAW = 1028;
432    int RIL_UNSOL_RINGBACK_TONE = 1029;
433    int RIL_UNSOL_RESEND_INCALL_MUTE = 1030;
434    int RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED = 1031;
435    int RIL_UNSOl_CDMA_PRL_CHANGED = 1032;
436    int RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE = 1033;
437    int RIL_UNSOL_RIL_CONNECTED = 1034;
438    int RIL_UNSOL_VOICE_RADIO_TECH_CHANGED = 1035;
439    int RIL_UNSOL_CELL_INFO_LIST = 1036;
440    int RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED = 1037;
441    int RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED = 1038;
442    int RIL_UNSOL_SRVCC_STATE_NOTIFY = 1039;
443    int RIL_UNSOL_HARDWARE_CONFIG_CHANGED = 1040;
444    int RIL_UNSOL_DC_RT_INFO_CHANGED = 1041;
445    int RIL_UNSOL_RADIO_CAPABILITY = 1042;
446    int RIL_UNSOL_ON_SS = 1043;
447    int RIL_UNSOL_STK_CC_ALPHA_NOTIFY = 1044;
448    int RIL_UNSOL_LCEDATA_RECV = 1045;
449}
450