ril.h revision 29487ef2685e5ee38f0348ab031cb96a608296ba
100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/*
200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Copyright (C) 2006 The Android Open Source Project
300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Licensed under the Apache License, Version 2.0 (the "License");
500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * you may not use this file except in compliance with the License.
600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * You may obtain a copy of the License at
700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      http://www.apache.org/licenses/LICENSE-2.0
900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Unless required by applicable law or agreed to in writing, software
1100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS,
1200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See the License for the specific language governing permissions and
1400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * limitations under the License.
1500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
1600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
177f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville#ifndef ANDROID_RIL_H
1800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define ANDROID_RIL_H 1
1900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
2000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#include <stdlib.h>
21f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#ifndef FEATURE_UNIT_TEST
2200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#include <sys/time.h>
23f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#endif /* !FEATURE_UNIT_TEST */
2400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
2500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#ifdef __cplusplus
2600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projectextern "C" {
2700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#endif
2800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
29c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville#define RIL_VERSION 6     /* Current version */
304380897c6cdc99486a061b819943e3b290ebcf09Wink Saville#define RIL_VERSION_MIN 2 /* Minimum RIL_VERSION supported */
3100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
32a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville#define CDMA_ALPHA_INFO_BUFFER_LENGTH 64
33a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville#define CDMA_NUMBER_INFO_BUFFER_LENGTH 81
34a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville
3500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef void * RIL_Token;
3600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
3700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef enum {
3800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_SUCCESS = 0,
3900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_RADIO_NOT_AVAILABLE = 1,     /* If radio did not start or is resetting */
4000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_GENERIC_FAILURE = 2,
4100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_PASSWORD_INCORRECT = 3,      /* for PIN/PIN2 methods only! */
4200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_SIM_PIN2 = 4,                /* Operation requires SIM PIN2 to be entered */
4300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_SIM_PUK2 = 5,                /* Operation requires SIM PIN2 to be entered */
4400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_REQUEST_NOT_SUPPORTED = 6,
4500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_CANCELLED = 7,
4600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_OP_NOT_ALLOWED_DURING_VOICE_CALL = 8, /* data ops are not allowed during voice
4700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                                   call on a Class C GPRS device */
4800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_E_OP_NOT_ALLOWED_BEFORE_REG_TO_NW = 9,  /* data ops are not allowed before device
4900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                                   registers in network */
503d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    RIL_E_SMS_SEND_FAIL_RETRY = 10,             /* fail to send sms and need retry */
513d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    RIL_E_SIM_ABSENT = 11,                      /* fail to set the location where CDMA subscription
523d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville                                                   shall be retrieved because of SIM or RUIM
53f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville                                                   card absent */
543d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    RIL_E_SUBSCRIPTION_NOT_AVAILABLE = 12,      /* fail to find CDMA subscription from specified
55f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville                                                   location */
56602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh    RIL_E_MODE_NOT_SUPPORTED = 13,              /* HW does not support preferred network type */
577553447d44bb3f494b00d573215d81398f61cfcdJohn Wang    RIL_E_FDN_CHECK_FAILURE = 14,               /* command failed because recipient is not on FDN list */
587553447d44bb3f494b00d573215d81398f61cfcdJohn Wang    RIL_E_ILLEGAL_SIM_OR_ME = 15                /* network selection failed due to
597553447d44bb3f494b00d573215d81398f61cfcdJohn Wang                                                   illegal SIM or ME */
6000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_Errno;
6100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
6200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef enum {
6300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_CALL_ACTIVE = 0,
6400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_CALL_HOLDING = 1,
6500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_CALL_DIALING = 2,    /* MO call only */
6600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_CALL_ALERTING = 3,   /* MO call only */
6700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_CALL_INCOMING = 4,   /* MT call only */
6800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_CALL_WAITING = 5     /* MT call only */
6900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_CallState;
7000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
7100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef enum {
72f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RADIO_STATE_OFF = 0,                   /* Radio explictly powered off (eg CFUN=0) */
73f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RADIO_STATE_UNAVAILABLE = 1,           /* Radio unavailable (eg, resetting or not booted) */
74f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RADIO_STATE_SIM_NOT_READY = 2,         /* Radio is on, but the SIM interface is not ready */
757f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville    RADIO_STATE_SIM_LOCKED_OR_ABSENT = 3,  /* SIM PIN locked, PUK required, network
76f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville                                              personalization locked, or SIM absent */
77f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RADIO_STATE_SIM_READY = 4,             /* Radio is on and SIM interface is available */
78f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RADIO_STATE_RUIM_NOT_READY = 5,        /* Radio is on, but the RUIM interface is not ready */
79f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RADIO_STATE_RUIM_READY = 6,            /* Radio is on and the RUIM interface is available */
807f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville    RADIO_STATE_RUIM_LOCKED_OR_ABSENT = 7, /* RUIM PIN locked, PUK required, network
81f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville                                              personalization locked, or RUIM absent */
82f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RADIO_STATE_NV_NOT_READY = 8,          /* Radio is on, but the NV interface is not available */
83f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RADIO_STATE_NV_READY = 9               /* Radio is on and the NV interface is available */
8400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_RadioState;
8500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
864380897c6cdc99486a061b819943e3b290ebcf09Wink Savilletypedef enum {
874380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_UNKNOWN = 0,
884380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_GPRS = 1,
894380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_EDGE = 2,
904380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_UMTS = 3,
914380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_IS95A = 4,
924380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_IS95B = 5,
934380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_1xRTT =  6,
944380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_EVDO_0 = 7,
954380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_EVDO_A = 8,
964380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_HSDPA = 9,
974380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_HSUPA = 10,
984380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_HSPA = 11,
994380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_EVDO_B = 12,
1004380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    RADIO_TECH_EHRPD = 13,
101c941961f4b2660f10352c0f715947a4d086f171dGlenn Kasten    RADIO_TECH_LTE = 14,
102c941961f4b2660f10352c0f715947a4d086f171dGlenn Kasten    RADIO_TECH_HSPAP = 15 // HSPA+
1034380897c6cdc99486a061b819943e3b290ebcf09Wink Saville} RIL_RadioTechnology;
1044380897c6cdc99486a061b819943e3b290ebcf09Wink Saville
105c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville// Do we want to split Data from Voice and the use
106c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville// RIL_RadioTechnology for get/setPreferredVoice/Data ?
107c0114b325877907fcdf7a5baa24e54a752e7e58bWink Savilletypedef enum {
108c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_GSM_WCDMA                = 0, /* GSM/WCDMA (WCDMA preferred) */
109c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_GSM_ONLY                 = 1, /* GSM only */
110c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_WCDMA                    = 2, /* WCDMA  */
111c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_GSM_WCDMA_AUTO           = 3, /* GSM/WCDMA (auto mode, according to PRL) */
112c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_CDMA_EVDO_AUTO           = 4, /* CDMA and EvDo (auto mode, according to PRL) */
113c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_CDMA_ONLY                = 5, /* CDMA only */
114c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_EVDO_ONLY                = 6, /* EvDo only */
115c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_GSM_WCDMA_CDMA_EVDO_AUTO = 7, /* GSM/WCDMA, CDMA, and EvDo (auto mode, according to PRL) */
116c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_LTE_CDMA_EVDO            = 8, /* LTE, CDMA and EvDo */
117c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_LTE_GSM_WCDMA            = 9, /* LTE, GSM/WCDMA */
118c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_LTE_CMDA_EVDO_GSM_WCDMA  = 10, /* LTE, CDMA, EvDo, GSM/WCDMA */
119c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PREF_NET_TYPE_LTE_ONLY                 = 11  /* LTE only */
120c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_PreferredNetworkType;
121c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
122c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/* Source for cdma subscription */
123c0114b325877907fcdf7a5baa24e54a752e7e58bWink Savilletypedef enum {
124c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville   CDMA_SUBSCRIPTION_SOURCE_RUIM_SIM = 0,
125c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville   CDMA_SUBSCRIPTION_SOURCE_NV = 1
126c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_CdmaSubscriptionSource;
127c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
12874fa38884320698c1623764850e3131b9769dff0Wink Saville/* User-to-User signaling Info activation types derived from 3GPP 23.087 v8.0 */
12974fa38884320698c1623764850e3131b9769dff0Wink Savilletypedef enum {
13074fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_TYPE1_IMPLICIT = 0,
13174fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_TYPE1_REQUIRED = 1,
13274fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_TYPE1_NOT_REQUIRED = 2,
13374fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_TYPE2_REQUIRED = 3,
13474fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_TYPE2_NOT_REQUIRED = 4,
13574fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_TYPE3_REQUIRED = 5,
13674fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_TYPE3_NOT_REQUIRED = 6
13774fa38884320698c1623764850e3131b9769dff0Wink Saville} RIL_UUS_Type;
13874fa38884320698c1623764850e3131b9769dff0Wink Saville
13974fa38884320698c1623764850e3131b9769dff0Wink Saville/* User-to-User Signaling Information data coding schemes. Possible values for
14074fa38884320698c1623764850e3131b9769dff0Wink Saville * Octet 3 (Protocol Discriminator field) in the UUIE. The values have been
14174fa38884320698c1623764850e3131b9769dff0Wink Saville * specified in section 10.5.4.25 of 3GPP TS 24.008 */
14274fa38884320698c1623764850e3131b9769dff0Wink Savilletypedef enum {
14374fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_DCS_USP = 0,          /* User specified protocol */
14474fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_DCS_OSIHLP = 1,       /* OSI higher layer protocol */
14574fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_DCS_X244 = 2,         /* X.244 */
14674fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_DCS_RMCF = 3,         /* Reserved for system mangement
14774fa38884320698c1623764850e3131b9769dff0Wink Saville                                     convergence function */
14874fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_DCS_IA5c = 4          /* IA5 characters */
14974fa38884320698c1623764850e3131b9769dff0Wink Saville} RIL_UUS_DCS;
15074fa38884320698c1623764850e3131b9769dff0Wink Saville
15174fa38884320698c1623764850e3131b9769dff0Wink Saville/* User-to-User Signaling Information defined in 3GPP 23.087 v8.0
15274fa38884320698c1623764850e3131b9769dff0Wink Saville * This data is passed in RIL_ExtensionRecord and rec contains this
15374fa38884320698c1623764850e3131b9769dff0Wink Saville * structure when type is RIL_UUS_INFO_EXT_REC */
15474fa38884320698c1623764850e3131b9769dff0Wink Savilletypedef struct {
15574fa38884320698c1623764850e3131b9769dff0Wink Saville  RIL_UUS_Type    uusType;    /* UUS Type */
15674fa38884320698c1623764850e3131b9769dff0Wink Saville  RIL_UUS_DCS     uusDcs;     /* UUS Data Coding Scheme */
15774fa38884320698c1623764850e3131b9769dff0Wink Saville  int             uusLength;  /* Length of UUS Data */
15874fa38884320698c1623764850e3131b9769dff0Wink Saville  char *          uusData;    /* UUS Data */
15974fa38884320698c1623764850e3131b9769dff0Wink Saville} RIL_UUS_Info;
16074fa38884320698c1623764850e3131b9769dff0Wink Saville
16174fa38884320698c1623764850e3131b9769dff0Wink Saville/* CDMA Signal Information Record as defined in C.S0005 section 3.7.5.5 */
1621b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
1631b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char isPresent;    /* non-zero if signal information record is present */
1641b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char signalType;   /* as defined 3.7.5.5-1 */
1651b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char alertPitch;   /* as defined 3.7.5.5-2 */
1661b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char signal;       /* as defined 3.7.5.5-3, 3.7.5.5-4 or 3.7.5.5-5 */
1671b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_SignalInfoRecord;
1681b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
1691b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
1701b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CallState   state;
1711b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int             index;      /* Connection Index for use with, eg, AT+CHLD */
1721b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int             toa;        /* type of address, eg 145 = intl */
1731b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char            isMpty;     /* nonzero if is mpty call */
1741b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char            isMT;       /* nonzero if call is mobile terminated */
1751b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char            als;        /* ALS line indicator if available
1761b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville                                   (0 = line 1) */
1771b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char            isVoice;    /* nonzero if this is is a voice call */
1781b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char            isVoicePrivacy;     /* nonzero if CDMA voice privacy mode is active */
1791b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char *          number;     /* Remote party number */
1801b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int             numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown 3=Payphone */
1811b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char *          name;       /* Remote party name */
1821b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int             namePresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown 3=Payphone */
18374fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_Info *  uusInfo;    /* NULL or Pointer to User-User Signaling Information */
18400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_Call;
18500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
186c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/* Deprecated, use RIL_Data_Call_Response_v6 */
18700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
1884380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    int             cid;        /* Context ID, uniquely identifies this call */
1891b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int             active;     /* 0=inactive, 1=active/physical link down, 2=active/physical link up */
1904f81dcf2a9bc84cbfbb6d3d658c452c22e9b6e83Lorenzo Colitti    char *          type;       /* One of the PDP_type values in TS 27.007 section 10.1.1.
1914f81dcf2a9bc84cbfbb6d3d658c452c22e9b6e83Lorenzo Colitti                                   For example, "IP", "IPV6", "IPV4V6", or "PPP". */
1924380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    char *          apn;        /* ignored */
193c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *          address;    /* An address, e.g., "192.0.1.3" or "2001:db8::1". */
194c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_Data_Call_Response_v4;
1954380897c6cdc99486a061b819943e3b290ebcf09Wink Saville
1964380897c6cdc99486a061b819943e3b290ebcf09Wink Saville/*
1974380897c6cdc99486a061b819943e3b290ebcf09Wink Saville * Returned by RIL_REQUEST_SETUP_DATA_CALL, RIL_REQUEST_DATA_CALL_LIST
1984380897c6cdc99486a061b819943e3b290ebcf09Wink Saville * and RIL_UNSOL_DATA_CALL_LIST_CHANGED, on error status != 0.
1994380897c6cdc99486a061b819943e3b290ebcf09Wink Saville */
2004380897c6cdc99486a061b819943e3b290ebcf09Wink Savilletypedef struct {
2014380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    int             status;     /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */
2024380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    int             cid;        /* Context ID, uniquely identifies this call */
2034380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    int             active;     /* 0=inactive, 1=active/physical link down, 2=active/physical link up */
2044380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    char *          type;       /* One of the PDP_type values in TS 27.007 section 10.1.1.
2054380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                   For example, "IP", "IPV6", "IPV4V6", or "PPP". If status is
2064380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                   PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED this is the type supported
2074380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                   such as "IP" or "IPV6" */
2084380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    char *          ifname;     /* The network interface name */
209c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *          addresses;  /* A space-delimited list of addresses with optional "/" prefix length,
210c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                                   e.g., "192.0.1.3" or "192.0.1.11/16 2001:db8::1/64".
2114380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                   May not be empty, typically 1 IPv4 or 1 IPv6 or
212c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                                   one of each. If the prefix length is absent the addresses
213c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                                   are assumed to be point to point with IPv4 having a prefix
214c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                                   length of 32 and IPv6 128. */
2154380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    char *          dnses;      /* A space-delimited list of DNS server addresses,
2164380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                   e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1".
2174380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                   May be empty. */
218c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *          gateways;   /* A space-delimited list of default gateway addresses,
219c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                                   e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1".
220c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                                   May be empty in which case the addresses represent point
221c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                                   to point connections. */
222c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_Data_Call_Response_v6;
22300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
22400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
2258e3a2cad4ed875394c833124df98255b1fd18a77Tammo Spalink    int messageRef;   /* TP-Message-Reference for GSM,
2268e3a2cad4ed875394c833124df98255b1fd18a77Tammo Spalink                         and BearerData MessageId for CDMA
2278e3a2cad4ed875394c833124df98255b1fd18a77Tammo Spalink                         (See 3GPP2 C.S0015-B, v2.0, table 4.5-1). */
22800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    char *ackPDU;     /* or NULL if n/a */
229920c78f166e787dc799bf5df7d6be30034ac0e77Jaikumar Ganesh    int errorCode;    /* See 3GPP 27.005, 3.2.5 for GSM/UMTS,
230920c78f166e787dc799bf5df7d6be30034ac0e77Jaikumar Ganesh                         3GPP2 N.S0005 (IS-41C) Table 171 for CDMA,
231920c78f166e787dc799bf5df7d6be30034ac0e77Jaikumar Ganesh                         -1 if unknown or not applicable*/
23200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_SMS_Response;
23300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
23400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/** Used by RIL_REQUEST_WRITE_SMS_TO_SIM */
23500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
23600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int status;     /* Status of message.  See TS 27.005 3.1, "<stat>": */
23700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                    /*      0 = "REC UNREAD"    */
23800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                    /*      1 = "REC READ"      */
23900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                    /*      2 = "STO UNSENT"    */
24000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                    /*      3 = "STO SENT"      */
241f8bc167551e4a5af4c22dab4855468a166b9ed30johnwang    char * pdu;     /* PDU of message to write, as an ASCII hex string less the SMSC address,
242f8bc167551e4a5af4c22dab4855468a166b9ed30johnwang                       the TP-layer length is "strlen(pdu)/2". */
24300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    char * smsc;    /* SMSC address in GSM BCD format prefixed by a length byte
24400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                       (as expected by TS 27.005) or NULL for default SMSC */
24500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_SMS_WriteArgs;
24600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
24700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/** Used by RIL_REQUEST_DIAL */
24800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
24900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    char * address;
25000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int clir;
25100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project            /* (same as 'n' paremeter in TS 27.007 7.7 "+CLIR"
25200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project             * clir == 0 on "use subscription default value"
25300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project             * clir == 1 on "CLIR invocation" (restrict CLI presentation)
25400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project             * clir == 2 on "CLIR suppression" (allow CLI presentation)
25500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project             */
25674fa38884320698c1623764850e3131b9769dff0Wink Saville    RIL_UUS_Info *  uusInfo;    /* NULL or Pointer to User-User Signaling Information */
25700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_Dial;
25800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
25900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
26000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int command;    /* one of the commands listed for TS 27.007 +CRSM*/
26100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int fileid;     /* EF id */
26200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    char *path;     /* "pathid" from TS 27.007 +CRSM command.
26300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                       Path is in hex asciii format eg "7f205f70"
2641b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville                       Path must always be provided.
26500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                     */
26600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int p1;
26700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int p2;
26800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int p3;
26900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    char *data;     /* May be NULL*/
27000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    char *pin2;     /* May be NULL*/
271c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_SIM_IO_v5;
272c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
273c0114b325877907fcdf7a5baa24e54a752e7e58bWink Savilletypedef struct {
274c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int command;    /* one of the commands listed for TS 27.007 +CRSM*/
275c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int fileid;     /* EF id */
276c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *path;     /* "pathid" from TS 27.007 +CRSM command.
277c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                       Path is in hex asciii format eg "7f205f70"
278c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                       Path must always be provided.
279c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                     */
280c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int p1;
281c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int p2;
282c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int p3;
283c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *data;     /* May be NULL*/
284c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *pin2;     /* May be NULL*/
285c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *aidPtr;   /* AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. */
286c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_SIM_IO_v6;
28700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
28800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
28900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int sw1;
29000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int sw2;
29100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    char *simResponse;  /* In hex string format ([a-fA-F0-9]*). */
29200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_SIM_IO_Response;
29300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
29400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/* See also com.android.internal.telephony.gsm.CallForwardInfo */
29500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
29600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
29700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int             status;     /*
29800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * For RIL_REQUEST_QUERY_CALL_FORWARD_STATUS
29900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * status 1 = active, 0 = not active
30000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 *
30100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * For RIL_REQUEST_SET_CALL_FORWARD:
30200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * status is:
30300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * 0 = disable
30400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * 1 = enable
30500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * 2 = interrogate
30600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * 3 = registeration
30700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * 4 = erasure
30800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 */
30900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
3103d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    int             reason;      /* from TS 27.007 7.11 "reason" */
3113d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    int             serviceClass;/* From 27.007 +CCFC/+CLCK "class"
3123d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville                                    See table for Android mapping from
3133d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville                                    MMI service code
3143d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville                                    0 means user doesn't input class */
3153d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    int             toa;         /* "type" from TS 27.007 7.11 */
3163d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    char *          number;      /* "number" from TS 27.007 7.11. May be NULL */
3173d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    int             timeSeconds; /* for CF no reply only */
31800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project}RIL_CallForwardInfo;
31900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
32000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
321e0ba6a98408e1efd3d1d1043d75f0ab53daddaaajohnwang   char * cid;         /* Combination of LAC and Cell Id in 32 bits in GSM.
322e0ba6a98408e1efd3d1d1043d75f0ab53daddaaajohnwang                        * Upper 16 bits is LAC and lower 16 bits
323e0ba6a98408e1efd3d1d1043d75f0ab53daddaaajohnwang                        * is CID (as described in TS 27.005)
32400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                        * Primary Scrambling Code (as described in TS 25.331)
3257f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville                        *         in 9 bits in UMTS
326e0ba6a98408e1efd3d1d1043d75f0ab53daddaaajohnwang                        * Valid values are hexadecimal 0x0000 - 0xffffffff.
32700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                        */
328e0ba6a98408e1efd3d1d1043d75f0ab53daddaaajohnwang   int    rssi;        /* Received RSSI in GSM,
329e0ba6a98408e1efd3d1d1043d75f0ab53daddaaajohnwang                        * Level index of CPICH Received Signal Code Power in UMTS
33000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                        */
33100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_NeighboringCell;
33200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
33300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/* See RIL_REQUEST_LAST_CALL_FAIL_CAUSE */
33400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef enum {
3351b3a6fe083ff049db50c3e6612ba6ccd9062326aNaveen Kalla    CALL_FAIL_UNOBTAINABLE_NUMBER = 1,
33600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    CALL_FAIL_NORMAL = 16,
33700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    CALL_FAIL_BUSY = 17,
33800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    CALL_FAIL_CONGESTION = 34,
33900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    CALL_FAIL_ACM_LIMIT_EXCEEDED = 68,
34000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    CALL_FAIL_CALL_BARRED = 240,
34100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    CALL_FAIL_FDN_BLOCKED = 241,
342602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh    CALL_FAIL_IMSI_UNKNOWN_IN_VLR = 242,
343602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh    CALL_FAIL_IMEI_NOT_ACCEPTED = 243,
3441b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_LOCKED_UNTIL_POWER_CYCLE = 1000,
3451b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_DROP = 1001,
3461b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_INTERCEPT = 1002,
3471b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_REORDER = 1003,
3481b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_SO_REJECT = 1004,
3491b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_RETRY_ORDER = 1005,
3501b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_ACCESS_FAILURE = 1006,
3511b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_PREEMPTED = 1007,
3521b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CALL_FAIL_CDMA_NOT_EMERGENCY = 1008, /* For non-emergency number dialed
3531b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville                                            during emergency callback mode */
35403c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla    CALL_FAIL_CDMA_ACCESS_BLOCKED = 1009, /* CDMA network access probes blocked */
35500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    CALL_FAIL_ERROR_UNSPECIFIED = 0xffff
35600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_LastCallFailCause;
35700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
358f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/* See RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE */
35900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef enum {
3604380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_NONE = 0, /* No error, connection ok */
3614380897c6cdc99486a061b819943e3b290ebcf09Wink Saville
3624380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    /* an integer cause code defined in TS 24.008
3634380897c6cdc99486a061b819943e3b290ebcf09Wink Saville       section 6.1.3.1.3 or TS 24.301 Release 8+ Annex B.
3644380897c6cdc99486a061b819943e3b290ebcf09Wink Saville       If the implementation does not have access to the exact cause codes,
3654380897c6cdc99486a061b819943e3b290ebcf09Wink Saville       then it should return one of the following values,
3664380897c6cdc99486a061b819943e3b290ebcf09Wink Saville       as the UI layer needs to distinguish these
3674380897c6cdc99486a061b819943e3b290ebcf09Wink Saville       cases for error notification and potential retries. */
368d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_OPERATOR_BARRED = 0x08,               /* no retry */
369d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_INSUFFICIENT_RESOURCES = 0x1A,
370d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_MISSING_UKNOWN_APN = 0x1B,            /* no retry */
371d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_UNKNOWN_PDP_ADDRESS_TYPE = 0x1C,      /* no retry */
372d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_USER_AUTHENTICATION = 0x1D,           /* no retry */
373d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_ACTIVATION_REJECT_GGSN = 0x1E,        /* no retry */
374d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_ACTIVATION_REJECT_UNSPECIFIED = 0x1F,
375d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_SERVICE_OPTION_NOT_SUPPORTED = 0x20,  /* no retry */
376d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_SERVICE_OPTION_NOT_SUBSCRIBED = 0x21, /* no retry */
377d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_SERVICE_OPTION_OUT_OF_ORDER = 0x22,
3784380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_NSAPI_IN_USE = 0x23,                  /* no retry */
3794380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_ONLY_IPV4_ALLOWED = 0x32,             /* no retry */
3804380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_ONLY_IPV6_ALLOWED = 0x33,             /* no retry */
3814380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED = 0x34,
382d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    PDP_FAIL_PROTOCOL_ERRORS   = 0x6F,             /* no retry */
3834380897c6cdc99486a061b819943e3b290ebcf09Wink Saville
384d6aa2e32a44f883b008b9bb12b322f5b7e8dced4Jaikumar Ganesh    /* Not mentioned in the specification */
385c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PDP_FAIL_VOICE_REGISTRATION_FAIL = -1,
386c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PDP_FAIL_DATA_REGISTRATION_FAIL = -2,
3874380897c6cdc99486a061b819943e3b290ebcf09Wink Saville
3884380897c6cdc99486a061b819943e3b290ebcf09Wink Saville   /* reasons for data call drop - network/modem disconnect */
389c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    PDP_FAIL_SIGNAL_LOST = -3,            /* no retry */
3904380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_PREF_RADIO_TECH_CHANGED = -4,/* preferred technology has changed, should retry
3914380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                             with parameters appropriate for new technology */
3924380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_RADIO_POWER_OFF = -5,        /* data call was disconnected because radio was resetting,
3934380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                             powered off - no retry */
3944380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_TETHERED_CALL_ACTIVE = -6,   /* data call was disconnected by modem because tethered
3954380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                             mode was up on same APN/data profile - no retry until
3964380897c6cdc99486a061b819943e3b290ebcf09Wink Saville                                             tethered call is off */
3974380897c6cdc99486a061b819943e3b290ebcf09Wink Saville
3984380897c6cdc99486a061b819943e3b290ebcf09Wink Saville    PDP_FAIL_ERROR_UNSPECIFIED = 0xffff,  /* retry silently */
3994380897c6cdc99486a061b819943e3b290ebcf09Wink Saville} RIL_DataCallFailCause;
40000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
401602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh/* See RIL_REQUEST_SETUP_DATA_CALL */
402602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jshtypedef enum {
403602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh    RIL_DATA_PROFILE_DEFAULT    = 0,
404602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh    RIL_DATA_PROFILE_TETHERED   = 1,
405602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh    RIL_DATA_PROFILE_OEM_BASE   = 1000    /* Start of OEM-specific profiles */
406602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh} RIL_DataProfile;
407602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh
40800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/* Used by RIL_UNSOL_SUPP_SVC_NOTIFICATION */
40900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
41000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int     notificationType;   /*
41100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * 0 = MO intermediate result code
41200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 * 1 = MT unsolicited result code
41300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                 */
41400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int     code;               /* See 27.007 7.17
41500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                   "code1" for MO
41600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                   "code2" for MT. */
41700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int     index;              /* CUG index. See 27.007 7.17. */
41800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int     type;               /* "type" from 27.007 7.17 (MT only). */
41900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    char *  number;             /* "number" from 27.007 7.17
42000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                   (MT only, may be NULL). */
42100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_SuppSvcNotification;
42200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
423f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_CARD_MAX_APPS     8
424f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
425f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Savilletypedef enum {
426f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_CARDSTATE_ABSENT   = 0,
427f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_CARDSTATE_PRESENT  = 1,
428f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_CARDSTATE_ERROR    = 2
429f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville} RIL_CardState;
430f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
431f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Savilletypedef enum {
432f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_UNKNOWN                   = 0, /* initial state */
433f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_IN_PROGRESS               = 1, /* in between each lock transition */
4347f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville    RIL_PERSOSUBSTATE_READY                     = 2, /* when either SIM or RUIM Perso is finished
4357f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville                                                        since each app can only have 1 active perso
436f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville                                                        involved */
437f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_NETWORK               = 3,
438f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_NETWORK_SUBSET        = 4,
439f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_CORPORATE             = 5,
440f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_SERVICE_PROVIDER      = 6,
441f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_SIM                   = 7,
442f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_NETWORK_PUK           = 8, /* The corresponding perso lock is blocked */
443f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_NETWORK_SUBSET_PUK    = 9,
444f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_CORPORATE_PUK         = 10,
445f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_SERVICE_PROVIDER_PUK  = 11,
446f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_SIM_SIM_PUK               = 12,
447f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_NETWORK1             = 13,
448f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_NETWORK2             = 14,
449f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_HRPD                 = 15,
450f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_CORPORATE            = 16,
451f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER     = 17,
452f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_RUIM                 = 18,
453f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_NETWORK1_PUK         = 19, /* The corresponding perso lock is blocked */
454f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_NETWORK2_PUK         = 20,
455f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_HRPD_PUK             = 21,
456f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_CORPORATE_PUK        = 22,
457f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER_PUK = 23,
458f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PERSOSUBSTATE_RUIM_RUIM_PUK             = 24
459f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville} RIL_PersoSubstate;
460f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
461f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Savilletypedef enum {
462f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_APPSTATE_UNKNOWN               = 0,
463f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_APPSTATE_DETECTED              = 1,
464f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_APPSTATE_PIN                   = 2, /* If PIN1 or UPin is required */
465f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_APPSTATE_PUK                   = 3, /* If PUK1 or Puk for UPin is required */
4667f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville    RIL_APPSTATE_SUBSCRIPTION_PERSO    = 4, /* perso_substate should be look at
467f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville                                               when app_state is assigned to this value */
468f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_APPSTATE_READY                 = 5
469f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville} RIL_AppState;
470f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
471f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Savilletypedef enum {
472f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PINSTATE_UNKNOWN              = 0,
473f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PINSTATE_ENABLED_NOT_VERIFIED = 1,
474f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PINSTATE_ENABLED_VERIFIED     = 2,
475f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PINSTATE_DISABLED             = 3,
476f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PINSTATE_ENABLED_BLOCKED      = 4,
477f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville    RIL_PINSTATE_ENABLED_PERM_BLOCKED = 5
478f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville} RIL_PinState;
479f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
480f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Savilletypedef enum {
481f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville  RIL_APPTYPE_UNKNOWN = 0,
482f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville  RIL_APPTYPE_SIM     = 1,
483f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville  RIL_APPTYPE_USIM    = 2,
484f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville  RIL_APPTYPE_RUIM    = 3,
485c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  RIL_APPTYPE_CSIM    = 4,
486c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  RIL_APPTYPE_ISIM    = 5
487f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville} RIL_AppType;
488f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
489f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Savilletypedef struct
490f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville{
4917f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville  RIL_AppType      app_type;
4927f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville  RIL_AppState     app_state;
4937f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville  RIL_PersoSubstate perso_substate; /* applicable only if app_state ==
494f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville                                       RIL_APPSTATE_SUBSCRIPTION_PERSO */
4957f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville  char             *aid_ptr;        /* null terminated string, e.g., from 0xA0, 0x00 -> 0x41,
496f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville                                       0x30, 0x30, 0x30 */
497f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville  char             *app_label_ptr;  /* null terminated string */
498c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  int              pin1_replaced;   /* applicable to USIM, CSIM & ISIM */
4997f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville  RIL_PinState     pin1;
5007f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville  RIL_PinState     pin2;
501f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville} RIL_AppStatus;
502f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
503c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/* Deprecated, use RIL_CardStatus_v6 */
504c0114b325877907fcdf7a5baa24e54a752e7e58bWink Savilletypedef struct
505c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville{
506c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  RIL_CardState card_state;
507c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  RIL_PinState  universal_pin_state;             /* applicable to USIM and CSIM: RIL_PINSTATE_xxx */
508c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  int           gsm_umts_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */
509c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  int           cdma_subscription_app_index;     /* value < RIL_CARD_MAX_APPS, -1 if none */
510c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  int           num_applications;                /* value <= RIL_CARD_MAX_APPS */
511c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  RIL_AppStatus applications[RIL_CARD_MAX_APPS];
512c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_CardStatus_v5;
513c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
514f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Savilletypedef struct
515f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville{
5167f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville  RIL_CardState card_state;
517f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville  RIL_PinState  universal_pin_state;             /* applicable to USIM and CSIM: RIL_PINSTATE_xxx */
518c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  int           gsm_umts_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */
519c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  int           cdma_subscription_app_index;     /* value < RIL_CARD_MAX_APPS, -1 if none */
520c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville  int           ims_subscription_app_index;      /* value < RIL_CARD_MAX_APPS, -1 if none */
521f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville  int           num_applications;                /* value <= RIL_CARD_MAX_APPS */
522f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville  RIL_AppStatus applications[RIL_CARD_MAX_APPS];
523c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_CardStatus_v6;
524f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
52500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/* The result of a SIM refresh, returned in data[0] of RIL_UNSOL_SIM_REFRESH */
52600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef enum {
52700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    /* A file on SIM has been updated.  data[1] contains the EFID. */
52800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    SIM_FILE_UPDATE = 0,
529c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    /* SIM initialized.  All files should be re-read. data[1] contains AID that caused REFRESH */
53000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    SIM_INIT = 1,
53100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    /* SIM reset.  SIM power required, SIM may be locked and all files should be re-read. */
53200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    SIM_RESET = 2
53300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_SimRefreshResult;
53400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
535c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/* Deprecated, use RIL_CDMA_CallWaiting_v6 */
5361b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
5371b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char *          number;             /* Remote party number */
5381b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int             numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown */
5391b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    char *          name;               /* Remote party name */
5403d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville    RIL_CDMA_SignalInfoRecord signalInfoRecord;
541c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_CDMA_CallWaiting_v5;
542c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
543c0114b325877907fcdf7a5baa24e54a752e7e58bWink Savilletypedef struct {
544c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *          number;             /* Remote party number */
545c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int             numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown */
546c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    char *          name;               /* Remote party name */
547c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    RIL_CDMA_SignalInfoRecord signalInfoRecord;
548c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    /* Number type/Number plan required to support International Call Waiting */
549c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int             number_type;        /* 0=Unknown, 1=International, 2=National,
550c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                                           3=Network specific, 4=subscriber */
551c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int             number_plan;        /* 0=Unknown, 1=ISDN, 3=Data, 4=Telex, 8=Nat'l, 9=Private */
552c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_CDMA_CallWaiting_v6;
5531b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
554a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville/**
555a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * Which types of Cell Broadcast Message (CBM) are to be received by the ME
556a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
557a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * uFromServiceID - uToServiceID defines a range of CBM message identifiers
558a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * whose value is 0x0000 - 0xFFFF as defined in TS 23.041 9.4.1.2.2 for GMS
559a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * and 9.4.4.2.2 for UMTS. All other values can be treated as empty
560a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * CBM message ID.
561a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
562a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * uFromCodeScheme - uToCodeScheme defines a range of CBM data coding schemes
563a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * whose value is 0x00 - 0xFF as defined in TS 23.041 9.4.1.2.3 for GMS
564a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * and 9.4.4.2.3 for UMTS.
565a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * All other values can be treated as empty CBM data coding scheme.
566a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
567a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * selected 0 means message types specified in <fromServiceId, toServiceId>
568a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * and <fromCodeScheme, toCodeScheme>are not accepted, while 1 means accepted.
569a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
570a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * Used by RIL_REQUEST_GSM_GET_BROADCAST_CONFIG and
571a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * RIL_REQUEST_GSM_SET_BROADCAST_CONFIG.
572a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville */
573f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Savilletypedef struct {
574a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville    int fromServiceId;
575a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville    int toServiceId;
576a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville    int fromCodeScheme;
577a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville    int toCodeScheme;
578a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville    unsigned char selected;
579a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville} RIL_GSM_BroadcastSmsConfigInfo;
580f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
58134a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/* No restriction at all including voice/SMS/USSD/SS/AV64 and packet data. */
58234a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_RESTRICTED_STATE_NONE           0x00
58334a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/* Block emergency call due to restriction. But allow all normal voice/SMS/USSD/SS/AV64. */
58434a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_RESTRICTED_STATE_CS_EMERGENCY   0x01
58534a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/* Block all normal voice/SMS/USSD/SS/AV64 due to restriction. Only Emergency call allowed. */
58634a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_RESTRICTED_STATE_CS_NORMAL      0x02
587a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville/* Block all voice/SMS/USSD/SS/AV64 including emergency call due to restriction.*/
58834a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_RESTRICTED_STATE_CS_ALL         0x04
58934a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/* Block packet data access due to restriction. */
59034a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_RESTRICTED_STATE_PS_ALL         0x10
59134a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project
5921b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/* The status for an OTASP/OTAPA session */
5931b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef enum {
5941b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_SPL_UNLOCKED,
5951b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_SPC_RETRIES_EXCEEDED,
5961b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_A_KEY_EXCHANGED,
5971b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_SSD_UPDATED,
5981b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_NAM_DOWNLOADED,
5991b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_MDN_DOWNLOADED,
6001b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_IMSI_DOWNLOADED,
6011b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_PRL_DOWNLOADED,
6021b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_COMMITTED,
6031b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_OTAPA_STARTED,
6041b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_OTAPA_STOPPED,
6051b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    CDMA_OTA_PROVISION_STATUS_OTAPA_ABORTED
6061b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_OTA_ProvisionStatus;
6071b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6081b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
6091b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int signalStrength;  /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */
6101b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int bitErrorRate;    /* bit error rate (0-7, 99) as defined in TS 27.007 8.5 */
6111b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_GW_SignalStrength;
6121b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6131b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6141b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
6151b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int dbm;  /* Valid values are positive integers.  This value is the actual RSSI value
6161b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               * multiplied by -1.  Example: If the actual RSSI is -75, then this response
6171b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               * value will be 75.
6181b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               */
6191b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int ecio; /* Valid values are positive integers.  This value is the actual Ec/Io multiplied
6201b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               * by -10.  Example: If the actual Ec/Io is -12.5 dB, then this response value
6211b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               * will be 125.
6221b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               */
6231b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_SignalStrength;
6241b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6251b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6261b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
6271b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int dbm;  /* Valid values are positive integers.  This value is the actual RSSI value
6281b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               * multiplied by -1.  Example: If the actual RSSI is -75, then this response
6291b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               * value will be 75.
6301b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               */
6311b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int ecio; /* Valid values are positive integers.  This value is the actual Ec/Io multiplied
6321b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               * by -10.  Example: If the actual Ec/Io is -12.5 dB, then this response value
6331b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               * will be 125.
6341b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville               */
6351b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    int signalNoiseRatio; /* Valid values are 0-8.  8 is the highest signal to noise ratio. */
6361b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_EVDO_SignalStrength;
6371b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
638c0114b325877907fcdf7a5baa24e54a752e7e58bWink Savilletypedef struct {
639c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int signalStrength;  /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */
640c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int rsrp;            /* The current Reference Signal Receive Power in dBm
641c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                          * multipled by -1. Range: 44 to 140 dBm, TODO: doc reference */
642c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int rsrq;            /* The current Reference Signal Receive Quality in dB
643c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville                          * multiplied by -1. Range: 20 to 3 dB. TODO: doc reference */
644c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int rssnr;           /* TODO: Need documentation and doc reference */
645c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    int cqi;             /* TODO: Need documentation and doc reference */
646c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_LTE_SignalStrength;
647c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
648c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/* Deprecated, use RIL_SignalStrength_v6 */
649c0114b325877907fcdf7a5baa24e54a752e7e58bWink Savilletypedef struct {
650c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    RIL_GW_SignalStrength   GW_SignalStrength;
651c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    RIL_CDMA_SignalStrength CDMA_SignalStrength;
652c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    RIL_EVDO_SignalStrength EVDO_SignalStrength;
653c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_SignalStrength_v5;
6541b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6551b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
6561b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_GW_SignalStrength   GW_SignalStrength;
6571b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CDMA_SignalStrength CDMA_SignalStrength;
6581b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_EVDO_SignalStrength EVDO_SignalStrength;
659c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville    RIL_LTE_SignalStrength  LTE_SignalStrength;
660c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville} RIL_SignalStrength_v6;
6611b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6621b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/* Names of the CDMA info records (C.S0005 section 3.7.5) */
6631b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef enum {
6641b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_DISPLAY_INFO_REC,
6651b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_CALLED_PARTY_NUMBER_INFO_REC,
6661b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_CALLING_PARTY_NUMBER_INFO_REC,
6671b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_CONNECTED_NUMBER_INFO_REC,
6681b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_SIGNAL_INFO_REC,
6691b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_REDIRECTING_NUMBER_INFO_REC,
6701b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_LINE_CONTROL_INFO_REC,
6711b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_EXTENDED_DISPLAY_INFO_REC,
6721b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_T53_CLIR_INFO_REC,
6731b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_T53_RELEASE_INFO_REC,
6741b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_T53_AUDIO_CONTROL_INFO_REC
6751b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_InfoRecName;
6761b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6771b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/* Display Info Rec as defined in C.S0005 section 3.7.5.1
6781b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville   Extended Display Info Rec as defined in C.S0005 section 3.7.5.16
6791b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville   Note: the Extended Display info rec contains multiple records of the
6801b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville   form: display_tag, display_len, and display_len occurrences of the
6811b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville   chari field if the display_tag is not 10000000 or 10000001.
6821b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville   To save space, the records are stored consecutively in a byte buffer.
6831b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville   The display_tag, display_len and chari fields are all 1 byte.
6841b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville*/
6851b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6861b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
6871b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char alpha_len;
688a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville  char alpha_buf[CDMA_ALPHA_INFO_BUFFER_LENGTH];
6891b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_DisplayInfoRecord;
6901b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6911b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/* Called Party Number Info Rec as defined in C.S0005 section 3.7.5.2
6921b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville   Calling Party Number Info Rec as defined in C.S0005 section 3.7.5.3
6931b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville   Connected Number Info Rec as defined in C.S0005 section 3.7.5.4
6941b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville*/
6951b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
6961b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
6971b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char len;
698a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville  char buf[CDMA_NUMBER_INFO_BUFFER_LENGTH];
6991b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char number_type;
7001b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char number_plan;
7011b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char pi;
7021b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char si;
7031b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_NumberInfoRecord;
7041b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7051b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/* Redirecting Number Information Record as defined in C.S0005 section 3.7.5.11 */
7061b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef enum {
7071b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_REDIRECTING_REASON_UNKNOWN = 0,
7081b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_REDIRECTING_REASON_CALL_FORWARDING_BUSY = 1,
7091b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_REDIRECTING_REASON_CALL_FORWARDING_NO_REPLY = 2,
7101b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_REDIRECTING_REASON_CALLED_DTE_OUT_OF_ORDER = 9,
7111b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_REDIRECTING_REASON_CALL_FORWARDING_BY_THE_CALLED_DTE = 10,
7121b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_REDIRECTING_REASON_CALL_FORWARDING_UNCONDITIONAL = 15,
7131b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_REDIRECTING_REASON_RESERVED
7141b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_RedirectingReason;
7151b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7161b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
7171b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_NumberInfoRecord redirectingNumber;
7181b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  /* redirectingReason is set to RIL_REDIRECTING_REASON_UNKNOWN if not included */
7191b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_RedirectingReason redirectingReason;
7201b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_RedirectingNumberInfoRecord;
7211b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7221b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/* Line Control Information Record as defined in C.S0005 section 3.7.5.15 */
7231b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
7241b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char lineCtrlPolarityIncluded;
7251b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char lineCtrlToggle;
7261b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char lineCtrlReverse;
7271b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char lineCtrlPowerDenial;
7281b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_LineControlInfoRecord;
7291b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7301b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/* T53 CLIR Information Record */
7311b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
7321b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char cause;
7331b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_T53_CLIRInfoRecord;
7341b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7351b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/* T53 Audio Control Information Record */
7361b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
7371b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char upLink;
7381b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char downLink;
7391b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_T53_AudioControlInfoRecord;
7401b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7411b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
7421b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7431b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_InfoRecName name;
7441b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7451b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  union {
7461b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    /* Display and Extended Display Info Rec */
7471b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CDMA_DisplayInfoRecord           display;
7481b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7491b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    /* Called Party Number, Calling Party Number, Connected Number Info Rec */
7501b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CDMA_NumberInfoRecord            number;
7511b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7521b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    /* Signal Info Rec */
7531b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CDMA_SignalInfoRecord            signal;
7541b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7551b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    /* Redirecting Number Info Rec */
7561b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CDMA_RedirectingNumberInfoRecord redir;
7571b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7581b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    /* Line Control Info Rec */
7591b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CDMA_LineControlInfoRecord       lineCtrl;
7601b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7611b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    /* T53 CLIR Info Rec */
7621b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CDMA_T53_CLIRInfoRecord          clir;
7631b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7641b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    /* T53 Audio Control Info Rec */
7651b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville    RIL_CDMA_T53_AudioControlInfoRecord  audioCtrl;
7661b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  } rec;
7671b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_InformationRecord;
7681b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7691b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville#define RIL_CDMA_MAX_NUMBER_OF_INFO_RECS 10
7701b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7711b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Savilletypedef struct {
7721b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  char numberOfInfoRecs;
7731b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville  RIL_CDMA_InformationRecord infoRec[RIL_CDMA_MAX_NUMBER_OF_INFO_RECS];
7741b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville} RIL_CDMA_InformationRecords;
7751b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
7767f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville/**
77700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_GET_SIM_STATUS
77800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
77900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Requests status of the SIM interface and the SIM card
7807f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
78100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
78200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
783fd7293711394c422711ff07d15a357955ff2194fWink Saville * "response" is const RIL_CardStatus_v6 *
78400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
78500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
78600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  Must never fail
78700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
78800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_SIM_STATUS 1
78900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
79000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
79100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_ENTER_SIM_PIN
79200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
793309ac294bd529ff5a71f1c1e62cd493df1010271John Wang * Supplies SIM PIN. Only called if RIL_CardStatus has RIL_APPSTATE_PIN state
79400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
79500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
79600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] is PIN value
797c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[1] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
79800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
799593c910c9a98973ff1be5afe39987bafaa546170jsh * "response" is int *
800593c910c9a98973ff1be5afe39987bafaa546170jsh * ((int *)response)[0] is the number of retries remaining, or -1 if unknown
80100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
80200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
8037f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
8047f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * SUCCESS
80500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RADIO_NOT_AVAILABLE (radio resetting)
80600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * GENERIC_FAILURE
80700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * PASSWORD_INCORRECT
80800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
80900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
81000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_ENTER_SIM_PIN 2
81100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
81200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
81300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
81400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_ENTER_SIM_PUK
81500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
8167f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Supplies SIM PUK and new PIN.
81700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
81800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
81900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] is PUK value
82000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] is new PIN value
821c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
82200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
823593c910c9a98973ff1be5afe39987bafaa546170jsh * "response" is int *
824593c910c9a98973ff1be5afe39987bafaa546170jsh * ((int *)response)[0] is the number of retries remaining, or -1 if unknown
82500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
82600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
8277f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
8287f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
82900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
83000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
83100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  PASSWORD_INCORRECT
83200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *     (PUK is invalid)
83300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
83400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
83500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_ENTER_SIM_PUK 3
83600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
83700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
83800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_ENTER_SIM_PIN2
83900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
84000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Supplies SIM PIN2. Only called following operation where SIM_PIN2 was
84100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * returned as a a failure from a previous operation.
84200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
84300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
84400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] is PIN2 value
845c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[1] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
84600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
847593c910c9a98973ff1be5afe39987bafaa546170jsh * "response" is int *
848593c910c9a98973ff1be5afe39987bafaa546170jsh * ((int *)response)[0] is the number of retries remaining, or -1 if unknown
84900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
85000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
8517f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
8527f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
85300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
85400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
85500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  PASSWORD_INCORRECT
85600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
85700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
85800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_ENTER_SIM_PIN2 4
85900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
86000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
86100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_ENTER_SIM_PUK2
86200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
8637f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Supplies SIM PUK2 and new PIN2.
86400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
86500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
86600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] is PUK2 value
86700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] is new PIN2 value
868c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
86900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
870593c910c9a98973ff1be5afe39987bafaa546170jsh * "response" is int *
871593c910c9a98973ff1be5afe39987bafaa546170jsh * ((int *)response)[0] is the number of retries remaining, or -1 if unknown
87200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
87300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
8747f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
8757f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
87600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
87700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
87800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  PASSWORD_INCORRECT
87900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *     (PUK2 is invalid)
88000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
88100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
88200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_ENTER_SIM_PUK2 5
88300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
88400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
88500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_CHANGE_SIM_PIN
88600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
8877f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Supplies old SIM PIN and new PIN.
88800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
88900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
89000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] is old PIN value
89100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] is new PIN value
892c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
89300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
894593c910c9a98973ff1be5afe39987bafaa546170jsh * "response" is int *
895593c910c9a98973ff1be5afe39987bafaa546170jsh * ((int *)response)[0] is the number of retries remaining, or -1 if unknown
89600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
89700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
8987f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
8997f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
90000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
90100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
90200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  PASSWORD_INCORRECT
90300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *     (old PIN is invalid)
9047f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
90500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
90600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
90700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_CHANGE_SIM_PIN 6
90800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
90900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
91000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
91100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_CHANGE_SIM_PIN2
91200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
9137f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Supplies old SIM PIN2 and new PIN2.
91400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
91500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
91600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] is old PIN2 value
91700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] is new PIN2 value
918c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
91900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
920593c910c9a98973ff1be5afe39987bafaa546170jsh * "response" is int *
921593c910c9a98973ff1be5afe39987bafaa546170jsh * ((int *)response)[0] is the number of retries remaining, or -1 if unknown
92200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
92300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
9247f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
9257f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
92600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
92700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
92800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  PASSWORD_INCORRECT
92900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *     (old PIN2 is invalid)
9307f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
93100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
93200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
93300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_CHANGE_SIM_PIN2 7
93400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
93500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
93600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION
93700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
93800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Requests that network personlization be deactivated
93900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
94000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
94100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)(data))[0]] is network depersonlization code
94200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
943593c910c9a98973ff1be5afe39987bafaa546170jsh * "response" is int *
944593c910c9a98973ff1be5afe39987bafaa546170jsh * ((int *)response)[0] is the number of retries remaining, or -1 if unknown
94500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
94600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
9477f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
9487f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
94900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
95000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
95100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  PASSWORD_INCORRECT
95200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *     (code is invalid)
95300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
95400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
95500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION 8
95600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
95700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
9587f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * RIL_REQUEST_GET_CURRENT_CALLS
95900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
96000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Requests current call list
96100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
96200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
96300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
96400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" must be a "const RIL_Call **"
9657f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
96600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
9677f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
9687f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
96900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
97000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
97100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      (request will be made again in a few hundred msec)
97200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
97300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
97400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_CURRENT_CALLS 9
97500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
97600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
9777f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville/**
97800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_DIAL
97900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
98000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Initiate voice call
98100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
98200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const RIL_Dial *
98300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
9847f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
98500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * This method is never used for supplementary service codes
98600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
98700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
9887f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
98900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
99000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
99100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
99200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_DIAL 10
99300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
99400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
99500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_GET_IMSI
99600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
99700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Get the SIM IMSI
99800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
99900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Only valid when radio state is "RADIO_STATE_SIM_READY"
100000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1001c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "data" is const char **
1002c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[0] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
100300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const char * containing the IMSI
100400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
100500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
10067f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
100700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
100800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
100900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
101000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
101100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_IMSI 11
101200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
101300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
101400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_HANGUP
101500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
101600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Hang up a specific line (like AT+CHLD=1x)
101700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
101806bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang * After this HANGUP request returns, RIL should show the connection is NOT
101906bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query.
102006bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang *
10217f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * "data" is an int *
1022f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * (int *)data)[0] contains Connection index (value of 'x' in CHLD above)
102300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
102400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
102500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
102600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
10277f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
102800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
102900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
103000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
103100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
103200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_HANGUP 12
103300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
103400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
103500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND
103600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
103700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Hang up waiting or held (like AT+CHLD=0)
103800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
103906bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang * After this HANGUP request returns, RIL should show the connection is NOT
104006bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query.
104106bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang *
104200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
104300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
104400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
104500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
10467f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
104700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
104800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
104900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
105000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
105100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND 13
105200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
105300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
105400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND
105500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
105600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Hang up waiting or held (like AT+CHLD=1)
105700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
105806bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang * After this HANGUP request returns, RIL should show the connection is NOT
105906bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query.
106006bae4bcdc941fb1165fbf79cf6f2cb34e57e51dJohn Wang *
106100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
106200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
106300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
106400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
10657f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
106600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
106700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
106800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
106900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
107000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND 14
107100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
107200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
107300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE
107400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
107500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Switch waiting or holding call and active call (like AT+CHLD=2)
107600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
107700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * State transitions should be is follows:
107800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
107900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * If call 1 is waiting and call 2 is active, then if this re
108000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
108100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *   BEFORE                               AFTER
108200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Call 1   Call 2                 Call 1       Call 2
108300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ACTIVE   HOLDING                HOLDING     ACTIVE
108400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ACTIVE   WAITING                HOLDING     ACTIVE
108500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * HOLDING  WAITING                HOLDING     ACTIVE
108600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ACTIVE   IDLE                   HOLDING     IDLE
108700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * IDLE     IDLE                   IDLE        IDLE
108800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
108900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
109000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
109100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
109200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
10937f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
109400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
109500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
109600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
109700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
109800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE 15
109900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SWITCH_HOLDING_AND_ACTIVE 15
110000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
110100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
110200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_CONFERENCE
110300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
110400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Conference holding and active (like AT+CHLD=3)
110500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
110600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
110700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
110800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
110900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
11107f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
111100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
111200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
111300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
111400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_CONFERENCE 16
111500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
111600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
111700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_UDUB
111800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
11197f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Send UDUB (user determined used busy) to ringing or
112000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * waiting call answer)(RIL_BasicRequest r);
112100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
112200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
112300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
112400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
112500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
11267f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
112700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
112800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
112900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
113000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_UDUB 17
113100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
113200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
113300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_LAST_CALL_FAIL_CAUSE
113400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
113500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Requests the failure cause code for the most recently terminated call
113600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
113700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
113800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a "int *"
11391b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((int *)response)[0] is RIL_LastCallFailCause.  GSM failure reasons are
114003c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla * mapped to cause codes defined in TS 24.008 Annex H where possible. CDMA
114103c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla * failure reasons are derived from the possible call failure scenarios
114203c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard.
114300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
114434a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * The implementation should return CALL_FAIL_ERROR_UNSPECIFIED for blocked
114534a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * MO calls by restricted state (See RIL_UNSOL_RESTRICTED_STATE_CHANGED)
114634a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
114700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * If the implementation does not have access to the exact cause codes,
114800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * then it should return one of the values listed in RIL_LastCallFailCause,
114900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * as the UI layer needs to distinguish these cases for tone generation or
115000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * error notification.
115100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
115200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
115300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
115400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
115500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
115600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1157f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * See also: RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE
115800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
115900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_LAST_CALL_FAIL_CAUSE 18
116000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
116100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
116200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SIGNAL_STRENGTH
116300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
11641b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Requests current signal strength and associated information
116500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
116600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Must succeed if radio is on.
116700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
116800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
11691b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
11701b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * "response" is a const RIL_SignalStrength *
117100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
117200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
117300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
117400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
117500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
117600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SIGNAL_STRENGTH 19
11773d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville
117800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
1179c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_REQUEST_VOICE_REGISTRATION_STATE
118000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
118100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Request current registration state
118200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
118300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
118400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a "char **"
1185f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((const char **)response)[0] is registration state 0-6,
11861b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *              0 - Not registered, MT is not currently searching
11871b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                  a new operator to register
1188f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *              1 - Registered, home network
11891b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *              2 - Not registered, but MT is currently searching
11901b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                  a new operator to register
1191f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *              3 - Registration denied
1192f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *              4 - Unknown
1193f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *              5 - Registered, roaming
11947f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *             10 - Same as 0, but indicates that emergency calls
11957f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *                  are enabled.
11967f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *             12 - Same as 2, but indicates that emergency calls
11977f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *                  are enabled.
11987f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *             13 - Same as 3, but indicates that emergency calls
11997f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *                  are enabled.
12007f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *             14 - Same as 4, but indicates that emergency calls
12017f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *                  are enabled.
12027f8ded1d8a337b6860dd7329b8a1be0ade4ea290John Wang *
12031b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[1] is LAC if registered on a GSM/WCDMA system or
12041b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                              NULL if not.Valid LAC are 0x0000 - 0xffff
12051b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[2] is CID if registered on a * GSM/WCDMA or
12061b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                              NULL if not.
12071b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                                 Valid CID are 0x00000000 - 0xffffffff
12081b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                                    In GSM, CID is Cell ID (see TS 27.007)
12091b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                                            in 16 bits
12101b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                                    In UMTS, CID is UMTS Cell Identity
12111b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                                             (see TS 25.331) in 28 bits
12124380897c6cdc99486a061b819943e3b290ebcf09Wink Saville * ((const char **)response)[3] indicates the available voice radio technology,
12134380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *                              valid values as defined by RIL_RadioTechnology.
12141b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[4] is Base Station ID if registered on a CDMA
12151b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                              system or NULL if not.  Base Station ID in
121629be25c17885e6c7c32b6aea293d689d5b9fb463jsh *                              decimal format
12171b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[5] is Base Station latitude if registered on a
12181b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                              CDMA system or NULL if not. Base Station
121936b721c2fcbc98885a4ccd04ddf50dd690142d5eNaveen Kalla *                              latitude is a decimal number as specified in
122036b721c2fcbc98885a4ccd04ddf50dd690142d5eNaveen Kalla *                              3GPP2 C.S0005-A v6.0. It is represented in
122136b721c2fcbc98885a4ccd04ddf50dd690142d5eNaveen Kalla *                              units of 0.25 seconds and ranges from -1296000
122236b721c2fcbc98885a4ccd04ddf50dd690142d5eNaveen Kalla *                              to 1296000, both values inclusive (corresponding
12234380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *                              to a range of -90 to +90 degrees).
12241b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[6] is Base Station longitude if registered on a
12251b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                              CDMA system or NULL if not. Base Station
122636b721c2fcbc98885a4ccd04ddf50dd690142d5eNaveen Kalla *                              longitude is a decimal number as specified in
122736b721c2fcbc98885a4ccd04ddf50dd690142d5eNaveen Kalla *                              3GPP2 C.S0005-A v6.0. It is represented in
122836b721c2fcbc98885a4ccd04ddf50dd690142d5eNaveen Kalla *                              units of 0.25 seconds and ranges from -2592000
122936b721c2fcbc98885a4ccd04ddf50dd690142d5eNaveen Kalla *                              to 2592000, both values inclusive (corresponding
12304380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *                              to a range of -180 to +180 degrees).
12311b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[7] is concurrent services support indicator if
12321b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                              registered on a CDMA system 0-1.
12331b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                                   0 - Concurrent services not supported,
12341b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                                   1 - Concurrent services supported
12351b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[8] is System ID if registered on a CDMA system or
12361b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                              NULL if not. Valid System ID are 0 - 32767
12371b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[9] is Network ID if registered on a CDMA system or
12381b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                              NULL if not. Valid System ID are 0 - 65535
12391b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[10] is the TSB-58 Roaming Indicator if registered
124003c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla *                               on a CDMA or EVDO system or NULL if not. Valid values
12411b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                               are 0-255.
12421b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[11] indicates whether the current system is in the
124303c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla *                               PRL if registered on a CDMA or EVDO system or NULL if
12441b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                               not. 0=not in the PRL, 1=in the PRL
12451b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[12] is the default Roaming Indicator from the PRL,
124603c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla *                               if registered on a CDMA or EVDO system or NULL if not.
12471b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                               Valid values are 0-255.
12481b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[13] if registration state is 3 (Registration
12491b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *                               denied) this is an enumerated reason why
1250602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                               registration was denied.  See 3GPP TS 24.008,
1251602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                               10.5.3.6 and Annex G.
1252602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 0 - General
1253602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 1 - Authentication Failure
1254602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 2 - IMSI unknown in HLR
1255602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 3 - Illegal MS
1256602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 4 - Illegal ME
1257602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 5 - PLMN not allowed
1258602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 6 - Location area not allowed
1259602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 7 - Roaming not allowed
1260602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 8 - No Suitable Cells in this Location Area
1261602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                                 9 - Network failure
126229be25c17885e6c7c32b6aea293d689d5b9fb463jsh *                                10 - Persistent location update reject
1263c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                11 - PLMN not allowed
1264c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                12 - Location area not allowed
1265c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                13 - Roaming not allowed in this Location Area
1266c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                15 - No Suitable Cells in this Location Area
1267c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                17 - Network Failure
1268c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                20 - MAC Failure
1269c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                21 - Sync Failure
1270c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                22 - Congestion
1271c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                23 - GSM Authentication unacceptable
1272c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                25 - Not Authorized for this CSG
1273c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                32 - Service option not supported
1274c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                33 - Requested service option not subscribed
1275c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                34 - Service option temporarily out of order
1276c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                38 - Call cannot be identified
1277c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                48-63 - Retry upon entry into a new cell
1278c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                95 - Semantically incorrect message
1279c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                96 - Invalid mandatory information
1280c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                97 - Message type non-existent or not implemented
1281c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                98 - Message not compatible with protocol state
1282c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                                99 - Information element non-existent or not implemented
1283c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                               100 - Conditional IE error
1284c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                               101 - Message not compatible with protocol state
1285c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                               111 - Protocol error, unspecified
1286ca5e347ce4b2b51385c4b7395d51c30498c41a6bjsh * ((const char **)response)[14] is the Primary Scrambling Code of the current
1287ca5e347ce4b2b51385c4b7395d51c30498c41a6bjsh *                               cell as described in TS 25.331, in hexadecimal
1288ca5e347ce4b2b51385c4b7395d51c30498c41a6bjsh *                               format, or NULL if unknown or not registered
1289ca5e347ce4b2b51385c4b7395d51c30498c41a6bjsh *                               to a UMTS network.
12901b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
12911b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Please note that registration state 4 ("unknown") is treated
129200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * as "out of service" in the Android telephony system
129300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
12941b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Registration state 3 can be returned if Location Update Reject
12951b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * (with cause 17 - Network Failure) is received repeatedly from the network,
12961b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * to facilitate "managed roaming"
12971b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
129800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
129900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
130000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
130100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
130200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
1303c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville#define RIL_REQUEST_VOICE_REGISTRATION_STATE 20
130400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
130500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
1306c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_REQUEST_DATA_REGISTRATION_STATE
130700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1308c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Request current DATA registration state
130900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
131000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
131100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a "char **"
13123a63fbc342d031dac10933f7f657902b0ff0fea3Li Zhe * ((const char **)response)[0] is registration state 0-5 from TS 27.007 10.1.20 AT+CGREG
131300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)response)[1] is LAC if registered or NULL if not
131400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)response)[2] is CID if registered or NULL if not
13154380897c6cdc99486a061b819943e3b290ebcf09Wink Saville * ((const char **)response)[3] indicates the available data radio technology,
13164380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *                              valid values as defined by RIL_RadioTechnology.
1317c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)response)[4] if registration state is 3 (Registration
1318c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                               denied) this is an enumerated reason why
1319c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                               registration was denied.  See 3GPP TS 24.008,
1320c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                               Annex G.6 "Additonal cause codes for GMM".
1321c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *      7 == GPRS services not allowed
1322c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *      8 == GPRS services and non-GPRS services not allowed
1323c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *      9 == MS identity cannot be derived by the network
1324c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *      10 == Implicitly detached
1325c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *      14 == GPRS services not allowed in this PLMN
1326c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *      16 == MSC temporarily not reachable
1327c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *      40 == No PDP context activated
1328c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)response)[5] The maximum number of simultaneous Data Calls that can be
1329c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                              established using RIL_REQUEST_SETUP_DATA_CALL.
133000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
133100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * LAC and CID are in hexadecimal format.
133200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * valid LAC are 0x0000 - 0xffff
133300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * valid CID are 0x00000000 - 0x0fffffff
13347f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
13357f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Please note that registration state 4 ("unknown") is treated
133600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * as "out of service" in the Android telephony system
133700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
133800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
133900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
134000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
134100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
134200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
1343c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville#define RIL_REQUEST_DATA_REGISTRATION_STATE 21
134400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
134500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
134600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_OPERATOR
134700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
134800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Request current operator ONS or EONS
134900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
135000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
135100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a "const char **"
13527f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * ((const char **)response)[0] is long alpha ONS or EONS
135300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                                  or NULL if unregistered
135400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
13557f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * ((const char **)response)[1] is short alpha ONS or EONS
135600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                                  or NULL if unregistered
135700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)response)[2] is 5 or 6 digit numeric code (MCC + MNC)
135800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                                  or NULL if unregistered
13597f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
136000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
136100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
136200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
136300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
136400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
136500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_OPERATOR 22
136600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
136700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
136800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_RADIO_POWER
136900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
137000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Toggle radio on and off (for "airplane" mode)
137129487ef2685e5ee38f0348ab031cb96a608296baWink Saville * If the radio is is turned off/on the radio modem subsystem
137229487ef2685e5ee38f0348ab031cb96a608296baWink Saville * is expected return to an initialized state. For instance,
137329487ef2685e5ee38f0348ab031cb96a608296baWink Saville * any voice and data calls will be terminated and all associated
137429487ef2685e5ee38f0348ab031cb96a608296baWink Saville * lists emptied.
137529487ef2685e5ee38f0348ab031cb96a608296baWink Saville *
137600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int *
137700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is > 0 for "Radio On"
137800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 0 for "Radio Off"
137900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
138000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
138100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
138200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Turn radio on if "on" > 0
138300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Turn radio off if "on" == 0
138400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
138500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
138600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
138700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
138800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
138900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
139000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_RADIO_POWER 23
139100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
139200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
139300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_DTMF
139400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
139500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Send a DTMF tone
139600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
139700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * If the implementation is currently playing a tone requested via
139800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_DTMF_START, that tone should be cancelled and the new tone
139900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * should be played instead
140000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1401602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh * "data" is a char * containing a single character with one of 12 values: 0-9,*,#
140200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
14037f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
140400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * FIXME should this block/mute microphone?
140500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * How does this interact with local DTMF feedback?
140600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
140700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
140800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
140900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
141000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
141100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
141200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_REQUEST_DTMF_STOP, RIL_REQUEST_DTMF_START
141300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
141400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
141500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_DTMF 24
141600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
141700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
141800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SEND_SMS
14197f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
142000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Send an SMS message
142100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
142200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
142300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] is SMSC address in GSM BCD format prefixed
142400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      by a length byte (as expected by TS 27.005) or NULL for default SMSC
142500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] is SMS in PDU format as an ASCII hex string
142600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      less the SMSC address
142700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      TP-Layer-Length is be "strlen(((const char **)data)[1])/2"
142800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
142900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const RIL_SMS_Response *
143000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
143100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Based on the return error, caller decides to resend if sending sms
14327f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * fails. SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332)
143300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * and GENERIC_FAILURE means no retry (i.e. error cause is 500)
143400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
143500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
143600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
143700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
143800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SMS_SEND_FAIL_RETRY
1439602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *  FDN_CHECK_FAILURE
144000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
144100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
144200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * FIXME how do we specify TP-Message-Reference if we need to resend?
144300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
144400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SEND_SMS 25
144500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
144600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
144700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
144800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SEND_SMS_EXPECT_MORE
14497f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
145000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Send an SMS message. Identical to RIL_REQUEST_SEND_SMS,
145100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * except that more messages are expected to be sent soon. If possible,
145200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * keep SMS relay protocol link open (eg TS 27.005 AT+CMMS command)
145300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
145400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
145500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] is SMSC address in GSM BCD format prefixed
145600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      by a length byte (as expected by TS 27.005) or NULL for default SMSC
145700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] is SMS in PDU format as an ASCII hex string
145800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      less the SMSC address
145900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      TP-Layer-Length is be "strlen(((const char **)data)[1])/2"
146000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
146100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const RIL_SMS_Response *
146200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
146300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Based on the return error, caller decides to resend if sending sms
14647f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * fails. SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332)
146500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * and GENERIC_FAILURE means no retry (i.e. error cause is 500)
146600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
146700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
146800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
146900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
147000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SMS_SEND_FAIL_RETRY
147100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
147200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
147300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
147400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SEND_SMS_EXPECT_MORE 26
147500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
147600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
147700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
1478f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_SETUP_DATA_CALL
147900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
148029487ef2685e5ee38f0348ab031cb96a608296baWink Saville * Setup a packet data connection. If RIL_Data_Call_Response_v6.status
148129487ef2685e5ee38f0348ab031cb96a608296baWink Saville * return success it is added to the list of data calls and a
148229487ef2685e5ee38f0348ab031cb96a608296baWink Saville * RIL_UNSOL_DATA_CALL_LIST_CHANGED is sent. The call remains in the
148329487ef2685e5ee38f0348ab031cb96a608296baWink Saville * list until RIL_REQUEST_DEACTIVATE_DATA_CALL is issued or the
148429487ef2685e5ee38f0348ab031cb96a608296baWink Saville * radio is powered off/on. This list is returned by RIL_REQUEST_DATA_CALL_LIST
148529487ef2685e5ee38f0348ab031cb96a608296baWink Saville * and RIL_UNSOL_DATA_CALL_LIST_CHANGED.
148600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
14874380897c6cdc99486a061b819943e3b290ebcf09Wink Saville * The RIL is expected to:
14884380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *  - Create one data call context.
14894380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *  - Create and configure a dedicated interface for the context
14904380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *  - The interface must be point to point.
14914380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *  - The interface is configured with one or more addresses and
14924380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *    is capable of sending and receiving packets. The prefix length
14934380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *    of the addresses must be /32 for IPv4 and /128 for IPv6.
14944380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *  - Must NOT change the linux routing table.
1495c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *  - Support up to RIL_REQUEST_DATA_REGISTRATION_STATE response[5]
14964380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *    number of simultaneous data call contexts.
14974380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *
149800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const char **
1499c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[0] Radio technology to use: 0-CDMA, 1-GSM/UMTS, 2...
1500c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                          for values above 2 this is RIL_RadioTechnology + 2.
1501602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh * ((const char **)data)[1] is a RIL_DataProfile (support is optional)
15027f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * ((const char **)data)[2] is the APN to connect to if radio technology is GSM/UMTS. This APN will
1503f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *                          override the one in the profile. NULL indicates no APN overrride.
1504f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((const char **)data)[3] is the username for APN, or NULL
1505f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((const char **)data)[4] is the password for APN, or NULL
1506920c78f166e787dc799bf5df7d6be30034ac0e77Jaikumar Ganesh * ((const char **)data)[5] is the PAP / CHAP auth type. Values:
1507920c78f166e787dc799bf5df7d6be30034ac0e77Jaikumar Ganesh *                          0 => PAP and CHAP is never performed.
1508920c78f166e787dc799bf5df7d6be30034ac0e77Jaikumar Ganesh *                          1 => PAP may be performed; CHAP is never performed.
1509920c78f166e787dc799bf5df7d6be30034ac0e77Jaikumar Ganesh *                          2 => CHAP may be performed; PAP is never performed.
1510920c78f166e787dc799bf5df7d6be30034ac0e77Jaikumar Ganesh *                          3 => PAP / CHAP may be performed - baseband dependent.
1511c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[6] is the connection type to request must be one of the
1512c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *                          PDP_type values in TS 27.007 section 10.1.1.
15134f81dcf2a9bc84cbfbb6d3d658c452c22e9b6e83Lorenzo Colitti *                          For example, "IP", "IPV6", "IPV4V6", or "PPP".
1514c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[7] Optional connection property parameters, format to be defined.
151500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1516c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "response" is a RIL_Data_Call_Response_v6
151700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
151800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * FIXME may need way to configure QoS settings
15193d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *
152000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
15214380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *  SUCCESS should be returned on both success and failure of setup with
1522c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *  the RIL_Data_Call_Response_v6.status containing the actual status.
1523c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *  For all other errors the RIL_Data_Call_Resonse_v6 is ignored.
15244380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *
15254380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *  Other errors could include:
15264380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *    RADIO_NOT_AVAILABLE, GENERIC_FAILURE, OP_NOT_ALLOWED_BEFORE_REG_TO_NW,
15274380897c6cdc99486a061b819943e3b290ebcf09Wink Saville *    OP_NOT_ALLOWED_DURING_VOICE_CALL and REQUEST_NOT_SUPPORTED.
152800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1529f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * See also: RIL_REQUEST_DEACTIVATE_DATA_CALL
153000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
1531f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_SETUP_DATA_CALL 27
153200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
153300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
153400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
153500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SIM_IO
153600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
153700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Request SIM I/O operation.
153800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * This is similar to the TS 27.007 "restricted SIM" operation
153900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * where it assumes all of the EF selection will be done by the
154000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * callee.
154100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1542fd7293711394c422711ff07d15a357955ff2194fWink Saville * "data" is a const RIL_SIM_IO_v6 *
154300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Please note that RIL_SIM_IO has a "PIN2" field which may be NULL,
154400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * or may specify a PIN2 for operations that require a PIN2 (eg
154500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * updating FDN records)
154600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
154700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const RIL_SIM_IO_Response *
154800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
154900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Arguments and responses that are unused for certain
155000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * values of "command" should be ignored or set to NULL
155100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
155200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
155300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
155400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
155500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
155600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SIM_PIN2
155700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SIM_PUK2
155800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
155900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SIM_IO 28
156000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
156100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
156200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SEND_USSD
156300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
156400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Send a USSD message
156500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
156600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * If a USSD session already exists, the message should be sent in the
156700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * context of that session. Otherwise, a new session should be created.
156800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
156900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * The network reply should be reported via RIL_UNSOL_ON_USSD
157000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
157100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Only one USSD session may exist at a time, and the session is assumed
157200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * to exist until:
157300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *   a) The android system invokes RIL_REQUEST_CANCEL_USSD
157400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *   b) The implementation sends a RIL_UNSOL_ON_USSD with a type code
157500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      of "0" (USSD-Notify/no further action) or "2" (session terminated)
157600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
157700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const char * containing the USSD request in UTF-8 format
157800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
157900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
158000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
158100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
158200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
1583602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *  FDN_CHECK_FAILURE
158400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
158500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
158600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_REQUEST_CANCEL_USSD, RIL_UNSOL_ON_USSD
158700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
158800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
158900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SEND_USSD 29
159000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
159100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
159200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_CANCEL_USSD
15937f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
159400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Cancel the current USSD session if one exists
159500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
159600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is null
159700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
159800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
159900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
160000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
160100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
16027f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  GENERIC_FAILURE
160300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
160400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
160500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_CANCEL_USSD 30
160600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
16077f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville/**
160800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_GET_CLIR
160900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
161000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Gets current CLIR status
161100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
161200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is int *
161300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is "n" parameter from TS 27.007 7.7
161400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[1] is "m" parameter from TS 27.007 7.7
161500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
161600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
161700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
161800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
161900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
162000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
162100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_CLIR 31
162200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
162300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
162400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_CLIR
162500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
162600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int *
162700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is "n" parameter from TS 27.007 7.7
162800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
162900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
163000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
163100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
163200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
163300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
163400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
163500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
163600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_CLIR 32
163700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
163800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
163900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_QUERY_CALL_FORWARD_STATUS
164000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
164100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const RIL_CallForwardInfo *
164200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
164300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is const RIL_CallForwardInfo **
164400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" points to an array of RIL_CallForwardInfo *'s, one for
164500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * each distinct registered phone number.
164600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
164700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * For example, if data is forwarded to +18005551212 and voice is forwarded
164800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * to +18005559999, then two separate RIL_CallForwardInfo's should be returned
16497f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
165000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * If, however, both data and voice are forwarded to +18005551212, then
165100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * a single RIL_CallForwardInfo can be returned with the service class
165200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * set to "data + voice = 3")
165300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
165400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
165500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
165600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
165700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
165800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
165900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_QUERY_CALL_FORWARD_STATUS 33
166000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
166100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
166200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
166300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_CALL_FORWARD
166400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
166500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Configure call forward rule
166600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
166700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const RIL_CallForwardInfo *
166800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
16697f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
167000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
167100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
167200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
167300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
167400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
167500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_CALL_FORWARD 34
167600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
167700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
167800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
167900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_QUERY_CALL_WAITING
168000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
168100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Query current call waiting state
168200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
168300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const int *
168400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)data)[0] is the TS 27.007 service class to query.
168500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const int *
168600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)response)[0] is 0 for "disabled" and 1 for "enabled"
168700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
168800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * If ((const int *)response)[0] is = 1, then ((const int *)response)[1]
168900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * must follow, with the TS 27.007 service class bit vector of services
169000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * for which call waiting is enabled.
169100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
16927f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * For example, if ((const int *)response)[0]  is 1 and
169300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)response)[1] is 3, then call waiting is enabled for data
169400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * and voice and disabled for everything else
169500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
169600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
169700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
169800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
169900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
170000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
170100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_QUERY_CALL_WAITING 35
170200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
170300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
170400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
170500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_CALL_WAITING
170600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
170700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Configure current call waiting state
170800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
170900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const int *
171000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)data)[0] is 0 for "disabled" and 1 for "enabled"
171100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)data)[1] is the TS 27.007 service class bit vector of
171200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                           services to modify
171300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
171400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
171500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
171600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
171700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
171800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
171900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
172000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_CALL_WAITING 36
172100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
172200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
172300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SMS_ACKNOWLEDGE
172400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
172500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Acknowledge successful or failed receipt of SMS previously indicated
17267f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * via RIL_UNSOL_RESPONSE_NEW_SMS
172700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
172800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int *
1729b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh * ((int *)data)[0] is 1 on successful receipt
173000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                  (basically, AT+CNMA=1 from TS 27.005
1731b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *                  is 0 on failed receipt
173200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                  (basically, AT+CNMA=2 from TS 27.005)
1733b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh * ((int *)data)[1] if data[0] is 0, this contains the failure cause as defined
1734b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *                  in TS 23.040, 9.2.3.22. Currently only 0xD3 (memory
1735b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *                  capacity exceeded) and 0xFF (unspecified error) are
1736b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *                  reported.
173700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
173800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
173900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
174000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * FIXME would like request that specified RP-ACK/RP-ERROR PDU
174100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
174200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
174300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
174400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
174500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
174600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
174700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SMS_ACKNOWLEDGE  37
174800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
174900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
1750f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_GET_IMEI - DEPRECATED
175100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
175200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Get the device IMEI, including check digit
175300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1754f8bc167551e4a5af4c22dab4855468a166b9ed30johnwang * The request is DEPRECATED, use RIL_REQUEST_DEVICE_IDENTITY
175500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid when RadioState is not RADIO_STATE_UNAVAILABLE
175600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
175700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
175800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const char * containing the IMEI
175900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
176000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
17617f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
176200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
176300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
176400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
176500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
176600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_IMEI 38
176700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
176800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
1769f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_GET_IMEISV - DEPRECATED
177000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
177100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Get the device IMEISV, which should be two decimal digits
177200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1773f8bc167551e4a5af4c22dab4855468a166b9ed30johnwang * The request is DEPRECATED, use RIL_REQUEST_DEVICE_IDENTITY
177400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid when RadioState is not RADIO_STATE_UNAVAILABLE
177500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
177600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
177700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const char * containing the IMEISV
177800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
177900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
17807f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
178100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
178200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
178300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
178400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
178500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_IMEISV 39
178600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
178700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
178800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
178900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_ANSWER
179000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
179100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Answer incoming call
179200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
179300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Will not be called for WAITING calls.
179400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE will be used in this case
179500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * instead
179600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
179700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
179800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
179900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
180000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
18017f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
180200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
180300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
180400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
180500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
180600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_ANSWER 40
180700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
180800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
1809f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_DEACTIVATE_DATA_CALL
181000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
181129487ef2685e5ee38f0348ab031cb96a608296baWink Saville * Deactivate packet data connection and remove from the
181229487ef2685e5ee38f0348ab031cb96a608296baWink Saville * data call list if SUCCESS is returned. Any other return
181329487ef2685e5ee38f0348ab031cb96a608296baWink Saville * values should also try to remove the call from the list,
181429487ef2685e5ee38f0348ab031cb96a608296baWink Saville * but that may not be possible. In any event a
181529487ef2685e5ee38f0348ab031cb96a608296baWink Saville * RIL_REQUEST_RADIO_POWER off/on must clear the list. An
181629487ef2685e5ee38f0348ab031cb96a608296baWink Saville * RIL_UNSOL_DATA_CALL_LIST_CHANGED is not expected to be
181729487ef2685e5ee38f0348ab031cb96a608296baWink Saville * issued because of an RIL_REQUEST_DEACTIVATE_DATA_CALL.
181800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
181900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
1820f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((char**)data)[0] indicating CID
1821d86799a04478e46b49cdf1f82f98b2279be1645cKazuhiro Ondo * ((char**)data)[1] indicating Disconnect Reason
1822d86799a04478e46b49cdf1f82f98b2279be1645cKazuhiro Ondo *                   0 => No specific reason specified
1823d86799a04478e46b49cdf1f82f98b2279be1645cKazuhiro Ondo *                   1 => Radio shutdown requested
18247f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
182500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
182600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
182700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
182800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
182900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
183000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
183100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1832f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * See also: RIL_REQUEST_SETUP_DATA_CALL
183300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
1834f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_DEACTIVATE_DATA_CALL 41
183500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
183600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
183700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_QUERY_FACILITY_LOCK
183800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
183900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Query the status of a facility lock state
184000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
184100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
18427f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * ((const char **)data)[0] is the facility string code from TS 27.007 7.4
184300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                      (eg "AO" for BAOC, "SC" for SIM lock)
184400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] is the password, or "" if not required
184500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[2] is the TS 27.007 service class bit vector of
184600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                           services to query
1847c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[3] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
1848fd7293711394c422711ff07d15a357955ff2194fWink Saville *                            This is only applicable in the case of Fixed Dialing Numbers
1849fd7293711394c422711ff07d15a357955ff2194fWink Saville *                            (FDN) requests.
185000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
185100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is an int *
185200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)response) 0 is the TS 27.007 service class bit vector of
18537f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *                           services for which the specified barring facility
185400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                           is active. "0" means "disabled for all"
18557f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
185600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
185700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
185800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
185900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
186000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
186100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
186200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
186300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_QUERY_FACILITY_LOCK 42
186400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
186500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
186600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_FACILITY_LOCK
186700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
186800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Enable/disable one facility lock
186900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
187000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
187100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
187200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] = facility string code from TS 27.007 7.4
187300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (eg "AO" for BAOC)
187400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] = "0" for "unlock" and "1" for "lock"
187500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[2] = password
187600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[3] = string representation of decimal TS 27.007
187700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                            service class bit vector. Eg, the string
187800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                            "1" means "set this facility for voice services"
1879c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((const char **)data)[4] = AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
1880fd7293711394c422711ff07d15a357955ff2194fWink Saville *                            This is only applicable in the case of Fixed Dialing Numbers
1881fd7293711394c422711ff07d15a357955ff2194fWink Saville *                            (FDN) requests.
188200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
1883593c910c9a98973ff1be5afe39987bafaa546170jsh * "response" is int *
1884593c910c9a98973ff1be5afe39987bafaa546170jsh * ((int *)response)[0] is the number of retries remaining, or -1 if unknown
188500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
188600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
188700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
188800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
188900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
189000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
189100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
189200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_FACILITY_LOCK 43
189300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
189400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
189500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_CHANGE_BARRING_PASSWORD
189600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
189700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Change call barring facility password
189800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
189900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
190000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
190100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[0] = facility string code from TS 27.007 7.4
190200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (eg "AO" for BAOC)
190300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] = old password
190400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[2] = new password
190500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
19067f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * "response" is NULL
190700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
190800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
190900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
191000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
191100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
191200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
191300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
191400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_CHANGE_BARRING_PASSWORD 44
191500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
191600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
191700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE
191800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
191900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Query current network selectin mode
192000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
192100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
192200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
192300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is int *
192400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)response)[0] is
192500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *     0 for automatic selection
192600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *     1 for manual selection
192700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
192800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
192900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
193000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
193100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
193200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
193300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
193400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE 45
193500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
193600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
193700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC
193800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
193900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Specify that the network should be selected automatically
194000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
194100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
194200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
194300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
19447f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * This request must not respond until the new operator is selected
194500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * and registered
194600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
194700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
194800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
194900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
19507553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *  ILLEGAL_SIM_OR_ME
195100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
195200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
19537553447d44bb3f494b00d573215d81398f61cfcdJohn Wang * Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and
19547553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *       no retries needed, such as illegal SIM or ME.
19557553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *       Returns GENERIC_FAILURE for all other causes that might be
19567553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *       fixed by retries.
19577553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *
195800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
195900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC 46
196000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
196100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
196200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL
196300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
196400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Manually select a specified network.
196500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
196600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char * specifying MCCMNC of network to select (eg "310170")
196700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
196800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
19697f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * This request must not respond until the new operator is selected
197000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * and registered
197100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
197200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
197300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
197400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
19757553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *  ILLEGAL_SIM_OR_ME
197600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
197700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
19787553447d44bb3f494b00d573215d81398f61cfcdJohn Wang * Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and
19797553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *       no retries needed, such as illegal SIM or ME.
19807553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *       Returns GENERIC_FAILURE for all other causes that might be
19817553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *       fixed by retries.
19827553447d44bb3f494b00d573215d81398f61cfcdJohn Wang *
198300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
198400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL 47
198500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
198600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
198700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_QUERY_AVAILABLE_NETWORKS
198800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
198900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Scans for available networks
199000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
199100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
199200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is const char ** that should be an array of n*4 strings, where
199300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *    n is the number of available networks
199400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * For each available network:
199500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
19967f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * ((const char **)response)[n+0] is long alpha ONS or EONS
19977f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * ((const char **)response)[n+1] is short alpha ONS or EONS
199800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)response)[n+2] is 5 or 6 digit numeric code (MCC + MNC)
199900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)response)[n+3] is a string value of the status:
200000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *           "unknown"
200100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *           "available"
200200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *           "current"
200300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *           "forbidden"
200400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
20057f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * This request must not respond until the new operator is selected
200600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * and registered
200700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
200800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
200900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
201000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
201100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
201200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
201300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
201400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_QUERY_AVAILABLE_NETWORKS 48
201500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
201600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
201700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_DTMF_START
201800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
20197f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Start playing a DTMF tone. Continue playing DTMF tone until
20207f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * RIL_REQUEST_DTMF_STOP is received
202100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
202200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * If a RIL_REQUEST_DTMF_START is received while a tone is currently playing,
202300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * it should cancel the previous tone and play the new one.
20247f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
202500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a char *
202600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((char *)data)[0] is a single character with one of 12 values: 0-9,*,#
202700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
20287f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
202900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
203000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
203100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
203200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
203300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
203400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_STOP
203500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
203600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_DTMF_START 49
203700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
203800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
203900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_DTMF_STOP
204000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
204100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Stop playing a currently playing DTMF tone.
20427f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
204300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
204400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
20457f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
204600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
204700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
204800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
204900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
205000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
205100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_START
205200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
205300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_DTMF_STOP 50
205400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
205500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
205600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_BASEBAND_VERSION
205700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
205800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Return string value indicating baseband version, eg
205900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * response from AT+CGMR
20607f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
206100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
206200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is const char * containing version string for log reporting
20637f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
206400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
206500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
206600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
206700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
206800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
206900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
207000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_BASEBAND_VERSION 51
207100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
207200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
207300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SEPARATE_CONNECTION
207400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
207500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Separate a party from a multiparty call placing the multiparty call
20767f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * (less the specified party) on hold and leaving the specified party
207700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * as the only other member of the current (active) call
207800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
207900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Like AT+CHLD=2x
208000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
208100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See TS 22.084 1.3.8.2 (iii)
208200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * TS 22.030 6.5.5 "Entering "2X followed by send"
208300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * TS 27.007 "AT+CHLD=2x"
20847f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
20857f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * "data" is an int *
2086f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * (int *)data)[0] contains Connection index (value of 'x' in CHLD above) "response" is NULL
2087f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
208800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
208900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
209000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
20917f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
209200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
209300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
209400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
209500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SEPARATE_CONNECTION 52
209600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
209700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
209800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
209900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_MUTE
210000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
210100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Turn on or off uplink (microphone) mute.
210200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
210300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Will only be sent while voice call is active.
210400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Will always be reset to "disable mute" when a new voice call is initiated
210500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
210600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is an int *
210700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (int *)data)[0] is 1 for "enable mute" and 0 for "disable mute"
210800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
210900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
211000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
211100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
21127f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
211300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
211400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
211500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
211600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
211700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_MUTE 53
211800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
211900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
212000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_GET_MUTE
212100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
212200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Queries the current state of the uplink mute setting
212300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
212400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
212500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is an int *
212600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (int *)response)[0] is 1 for "mute enabled" and 0 for "mute disabled"
212700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
212800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
21297f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
213000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
213100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
213200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
213300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
213400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_MUTE 54
213500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
213600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
213700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_QUERY_CLIP
213800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
213900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Queries the status of the CLIP supplementary service
214000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
214100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (for MMI code "*#30#")
214200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
214300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
214400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is an int *
21457f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * (int *)response)[0] is 1 for "CLIP provisioned"
214600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                           and 0 for "CLIP not provisioned"
21477f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *                           and 2 for "unknown, e.g. no network etc"
214800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
214900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
21507f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
215100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
215200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
215300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
215400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
215500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_QUERY_CLIP 55
215600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
215700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
2158c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE - Deprecated use the status
2159c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * field in RIL_Data_Call_Response_v6.
21607f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
21617f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Requests the failure cause code for the most recently failed PDP
2162f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * context or CDMA data connection active
2163f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * replaces RIL_REQUEST_LAST_PDP_FAIL_CAUSE
216400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
216500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
216600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
216700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a "int *"
216800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)response)[0] is an integer cause code defined in TS 24.008
216900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *   section 6.1.3.1.3 or close approximation
217000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
217100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * If the implementation does not have access to the exact cause codes,
21727f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * then it should return one of the values listed in
21734380897c6cdc99486a061b819943e3b290ebcf09Wink Saville * RIL_DataCallFailCause, as the UI layer needs to distinguish these
217400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * cases for error notification
217500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * and potential retries.
217600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
217700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
217800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
217900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
218000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
218100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
218200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_REQUEST_LAST_CALL_FAIL_CAUSE
2183c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
2184c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Deprecated use the status field in RIL_Data_Call_Response_v6.
21857f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville */
218600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
2187f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE 56
218800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
218900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
2190f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_DATA_CALL_LIST
219100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
219229487ef2685e5ee38f0348ab031cb96a608296baWink Saville * Returns the data call list. An entry is added when a
219329487ef2685e5ee38f0348ab031cb96a608296baWink Saville * RIL_REQUEST_SETUP_DATA_CALL is issued and removed on a
219429487ef2685e5ee38f0348ab031cb96a608296baWink Saville * RIL_REQUEST_DEACTIVATE_DATA_CALL. The list is emptied
219529487ef2685e5ee38f0348ab031cb96a608296baWink Saville * when RIL_REQUEST_RADIO_POWER off/on is issued.
219600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
219700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
2198c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "response" is an array of RIL_Data_Call_Response_v6
219900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
220000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
22017f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
220200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
220300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
220429487ef2685e5ee38f0348ab031cb96a608296baWink Saville *
220529487ef2685e5ee38f0348ab031cb96a608296baWink Saville * See also: RIL_UNSOL_DATA_CALL_LIST_CHANGED
220600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
220700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
2208f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_DATA_CALL_LIST 57
220900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
221000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
2211f8bc167551e4a5af4c22dab4855468a166b9ed30johnwang * RIL_REQUEST_RESET_RADIO - DEPRECATED
221200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
221300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Request a radio reset. The RIL implementation may postpone
221400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * the reset until after this request is responded to if the baseband
221500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * is presently busy.
221600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
2217f8bc167551e4a5af4c22dab4855468a166b9ed30johnwang * The request is DEPRECATED, use RIL_REQUEST_RADIO_POWER
2218f8bc167551e4a5af4c22dab4855468a166b9ed30johnwang *
221900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
222000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
222100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
222200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
22237f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
222400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
222500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
2226f8bc167551e4a5af4c22dab4855468a166b9ed30johnwang *  REQUEST_NOT_SUPPORTED
222700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
222800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
222900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_RESET_RADIO 58
223000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
223100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
223200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_OEM_HOOK_RAW
223300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
223400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * This request reserved for OEM-specific uses. It passes raw byte arrays
223500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * back and forth.
223600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
22377f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * It can be invoked on the Java side from
223800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * com.android.internal.telephony.Phone.invokeOemRilRequestRaw()
223900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
224000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a char * of bytes copied from the byte[] data argument in java
224100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a char * of bytes that will returned via the
22427f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * caller's "response" Message here:
224300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (byte[])(((AsyncResult)response.obj).result)
224400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
22457f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * An error response here will result in
22467f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * (((AsyncResult)response.obj).result) == null and
224700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (((AsyncResult)response.obj).exception) being an instance of
224800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * com.android.internal.telephony.gsm.CommandException
224900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
225000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
225100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  All
225200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
225300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
225400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_OEM_HOOK_RAW 59
225500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
225600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
225700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_OEM_HOOK_STRINGS
225800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
225900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * This request reserved for OEM-specific uses. It passes strings
226000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * back and forth.
226100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
22627f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * It can be invoked on the Java side from
226300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * com.android.internal.telephony.Phone.invokeOemRilRequestStrings()
226400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
226500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const char **, representing an array of null-terminated UTF-8
226600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * strings copied from the "String[] strings" argument to
226700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * invokeOemRilRequestStrings()
226800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
226900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const char **, representing an array of null-terminated UTF-8
227000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * stings that will be returned via the caller's response message here:
227100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
227200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (String[])(((AsyncResult)response.obj).result)
227300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
22747f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * An error response here will result in
22757f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * (((AsyncResult)response.obj).result) == null and
227600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (((AsyncResult)response.obj).exception) being an instance of
227700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * com.android.internal.telephony.gsm.CommandException
227800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
227900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
228000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  All
228100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
228200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
228300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_OEM_HOOK_STRINGS 60
228400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
228500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
228600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SCREEN_STATE
228700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
228800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicates the current state of the screen.  When the screen is off, the
228900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL should notify the baseband to suppress certain notifications (eg,
2290432656105ccc2f4f891fbe8fb5b636f2428f1f4ejsh * signal strength and changes in LAC/CID or BID/SID/NID/latitude/longitude)
2291432656105ccc2f4f891fbe8fb5b636f2428f1f4ejsh * in an effort to conserve power.  These notifications should resume when the
2292432656105ccc2f4f891fbe8fb5b636f2428f1f4ejsh * screen is on.
229300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
229400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int *
229500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 1 for "Screen On"
229600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 0 for "Screen Off"
229700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
229800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
229900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
230000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
230100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
230200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
230300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
230400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SCREEN_STATE 61
230500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
230600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
230700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
230800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION
230900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
231000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Enables/disables supplementary service related notifications
231100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * from the network.
231200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
231300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Notifications are reported via RIL_UNSOL_SUPP_SVC_NOTIFICATION.
231400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
231500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int *
231600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 1 for notifications enabled
231700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 0 for notifications disabled
231800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
231900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
232000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
232100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
232200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
232300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
232400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
232500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
232600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_UNSOL_SUPP_SVC_NOTIFICATION.
232700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
232800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION 62
232900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
233000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
233100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_WRITE_SMS_TO_SIM
233200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
233300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Stores a SMS message to SIM memory.
233400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
233500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is RIL_SMS_WriteArgs *
233600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
233700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is int *
233800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)response)[0] is the record index where the message is stored.
233900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
234000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
234100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
234200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
234300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
234400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
234500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_WRITE_SMS_TO_SIM 63
234600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
234700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
234800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_DELETE_SMS_ON_SIM
234900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
235000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Deletes a SMS message from SIM memory.
235100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
235200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int  *
235300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is the record index of the message to delete.
235400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
235500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
235600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
235700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
235800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
235900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
236000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
236100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
236200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_DELETE_SMS_ON_SIM 64
236300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
236400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
236500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_BAND_MODE
236600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
236700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Assign a specified band for RF configuration.
236800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
236900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int *
237000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 0 for "unspecified" (selected by baseband automatically)
237100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 1 for "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000)
237200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 2 for "US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900)
237300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 3 for "JPN band" (WCDMA-800 / WCDMA-IMT-2000)
237400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 4 for "AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000)
237500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 5 for "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850)
2376f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 6 for "Cellular (800-MHz Band)"
2377f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 7 for "PCS (1900-MHz Band)"
2378f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 8 for "Band Class 3 (JTACS Band)"
2379f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 9 for "Band Class 4 (Korean PCS Band)"
2380f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 10 for "Band Class 5 (450-MHz Band)"
2381f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 11 for "Band Class 6 (2-GMHz IMT2000 Band)"
2382f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 12 for "Band Class 7 (Upper 700-MHz Band)"
2383f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 13 for "Band Class 8 (1800-MHz Band)"
2384f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 14 for "Band Class 9 (900-MHz Band)"
2385f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 15 for "Band Class 10 (Secondary 800-MHz Band)"
2386f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 16 for "Band Class 11 (400-MHz European PAMR Band)"
2387f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 17 for "Band Class 15 (AWS Band)"
2388f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 18 for "Band Class 16 (US 2.5-GHz Band)"
238900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
239000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
239100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
239200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
239300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
239400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
239500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
239600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
239700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_BAND_MODE 65
239800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
239900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
240000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE
240100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
240200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Query the list of band mode supported by RF.
240300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
240400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
240500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
240600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is int *
240700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" points to an array of int's, the int[0] is the size of array, reset is one for
240800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * each available band mode.
240900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
241000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  0 for "unspecified" (selected by baseband automatically)
241100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  1 for "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000)
241200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  2 for "US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900)
241300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  3 for "JPN band" (WCDMA-800 / WCDMA-IMT-2000)
241400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  4 for "AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000)
241500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  5 for "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850)
2416f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  6 for "Cellular (800-MHz Band)"
2417f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  7 for "PCS (1900-MHz Band)"
2418f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  8 for "Band Class 3 (JTACS Band)"
2419f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  9 for "Band Class 4 (Korean PCS Band)"
2420f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  10 for "Band Class 5 (450-MHz Band)"
2421f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  11 for "Band Class 6 (2-GMHz IMT2000 Band)"
2422f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  12 for "Band Class 7 (Upper 700-MHz Band)"
2423f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  13 for "Band Class 8 (1800-MHz Band)"
2424f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  14 for "Band Class 9 (900-MHz Band)"
2425f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  15 for "Band Class 10 (Secondary 800-MHz Band)"
2426f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  16 for "Band Class 11 (400-MHz European PAMR Band)"
2427f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  17 for "Band Class 15 (AWS Band)"
2428f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  18 for "Band Class 16 (US 2.5-GHz Band)"
242900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
243000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
243100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
243200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
243300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
243400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
243500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_REQUEST_SET_BAND_MODE
243600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
243700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE 66
243800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
243900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
244000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_STK_GET_PROFILE
244100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
244200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Requests the profile of SIM tool kit.
244300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * The profile indicates the SAT/USAT features supported by ME.
244400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * The SAT/USAT features refer to 3GPP TS 11.14 and 3GPP TS 31.111
244500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
244600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
244700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
244800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const char * containing SAT/USAT profile
244900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * in hexadecimal format string starting with first byte of terminal profile
245000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
245100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
245200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_SUCCESS
245300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
245400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_GENERIC_FAILURE
245500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
245600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_STK_GET_PROFILE 67
245700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
245800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
245900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_STK_SET_PROFILE
246000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
246100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Download the STK terminal profile as part of SIM initialization
246200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * procedure
246300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
246400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const char * containing SAT/USAT profile
246500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * in hexadecimal format string starting with first byte of terminal profile
246600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
246700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
246800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
246900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
247000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_SUCCESS
247100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
247200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_GENERIC_FAILURE
247300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
247400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_STK_SET_PROFILE 68
247500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
247600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
247700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND
247800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
247900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Requests to send a SAT/USAT envelope command to SIM.
248000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111
248100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
248200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const char * containing SAT/USAT command
248300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * in hexadecimal format string starting with command tag
248400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
248500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is a const char * containing SAT/USAT response
248600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * in hexadecimal format string starting with first byte of response
248700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (May be NULL)
248800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
248900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
249000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_SUCCESS
249100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
249200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_GENERIC_FAILURE
249300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
249400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND 69
249500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
249600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
249700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE
249800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
249900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Requests to send a terminal response to SIM for a received
250000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * proactive command
250100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
250200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const char * containing SAT/USAT response
250300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * in hexadecimal format string starting with first byte of response data
250400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
250500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
250600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
250700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
250800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_SUCCESS
250900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
251000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_GENERIC_FAILURE
251100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
251200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE 70
251300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
251400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
251500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM
251600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
251700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * When STK application gets RIL_UNSOL_STK_CALL_SETUP, the call actually has
251800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * been initialized by ME already. (We could see the call has been in the 'call
251900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * list') So, STK application needs to accept/reject the call according as user
252000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * operations.
252100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
252200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int *
252300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is > 0 for "accept" the call setup
252400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 0 for "reject" the call setup
252500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
252600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
252700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
252800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
252900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_SUCCESS
253000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting)
253100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RIL_E_GENERIC_FAILURE
253200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
253300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM 71
253400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
253500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
253600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_EXPLICIT_CALL_TRANSFER
253700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
253800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Connects the two calls and disconnects the subscriber from both calls.
25397f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
254000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
254100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
254200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
254300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
25447f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  SUCCESS
254500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE (radio resetting)
254600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
254700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
254800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_EXPLICIT_CALL_TRANSFER 72
254900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
255000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
255100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE
255200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
255300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Requests to set the preferred network type for searching and registering
255400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * (CS/PS domain, RAT, and operation mode)
255500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
2556c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "data" is int * which is RIL_PreferredNetworkType
255700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
255800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
255900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
256000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
2561f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2562f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE (radio resetting)
2563f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2564f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  MODE_NOT_SUPPORTED
256500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
256600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE 73
256700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
256800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
256900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE
257000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
257100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Query the preferred network type (CS/PS domain, RAT, and operation mode)
257200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * for searching and registering
257300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
257400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
257500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
257600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is int *
2577c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((int *)reponse)[0] is == RIL_PreferredNetworkType
257800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
257900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
258000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
258100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
258200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
258300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
258400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE
258500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
258600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE 74
258700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
258800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
258900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_NEIGHBORING_CELL_IDS
259000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
259100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Request neighboring cell id in GSM network
259200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
259300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
259400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" must be a " const RIL_NeighboringCell** "
259500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
259600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
259700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
259800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
259900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
260000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
260100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_GET_NEIGHBORING_CELL_IDS 75
260200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
260300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
260400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SET_LOCATION_UPDATES
26053d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *
260600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Enables/disables network state change notifications due to changes in
2607432656105ccc2f4f891fbe8fb5b636f2428f1f4ejsh * LAC and/or CID (for GSM) or BID/SID/NID/latitude/longitude (for CDMA).
2608432656105ccc2f4f891fbe8fb5b636f2428f1f4ejsh * Basically +CREG=2 vs. +CREG=1 (TS 27.007).
260900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
261000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Note:  The RIL implementation should default to "updates enabled"
261100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * when the screen is on and "updates disabled" when the screen is off.
261200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
261300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is int *
261400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 1 for updates enabled (+CREG=2)
261500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is == 0 for updates disabled (+CREG=1)
261600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
261700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "response" is NULL
26183d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *
261900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Valid errors:
262000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  SUCCESS
262100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  RADIO_NOT_AVAILABLE
262200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  GENERIC_FAILURE
262300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
262400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * See also: RIL_REQUEST_SCREEN_STATE, RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED
262500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
262600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_REQUEST_SET_LOCATION_UPDATES 76
262700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
2628f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2629c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE
26307f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2631f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request to set the location where the CDMA subscription shall
2632f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * be retrieved
2633f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2634f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is int *
2635c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((int *)data)[0] is == RIL_CdmaSubscriptionSource
2636f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2637f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
2638f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2639f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2640f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2641f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2642f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2643f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SIM_ABSENT
2644f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUBSCRIPTION_NOT_AVAILABLE
2645c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
2646c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * See also: RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE
2647f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2648c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville#define RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE 77
2649f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2650f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2651f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE
26527f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2653f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request to set the roaming preferences in CDMA
2654f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2655f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is int *
2656f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 0 for Home Networks only, as defined in PRL
2657f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 1 for Roaming on Affiliated networks, as defined in PRL
2658f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 2 for Roaming on Any Network, as defined in the PRL
26597f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2660f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
26617f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2662f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2663f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2664f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2665f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2666f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2667f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE 78
2668f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2669f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2670f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE
26717f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2672f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request the actual setting of the roaming preferences in CDMA in the modem
2673f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2674f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is NULL
26757f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2676f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is int *
2677f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)response)[0] is == 0 for Home Networks only, as defined in PRL
2678f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)response)[0] is == 1 for Roaming on Affiliated networks, as defined in PRL
2679f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)response)[0] is == 2 for Roaming on Any Network, as defined in the PRL
26807f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2681f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
26827f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2683f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2684f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2685f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2686f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2687f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2688f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE 79
2689f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2690f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2691f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_SET_TTY_MODE
26927f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2693f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request to set the TTY mode
2694f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2695f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is int *
2696f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 0 for TTY off
26971b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((int *)data)[0] is == 1 for TTY Full
26981b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((int *)data)[0] is == 2 for TTY HCO (hearing carryover)
26991b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((int *)data)[0] is == 3 for TTY VCO (voice carryover)
27007f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2701f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
27027f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2703f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2704f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2705f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2706f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2707f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2708f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_SET_TTY_MODE 80
2709f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2710f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2711f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_QUERY_TTY_MODE
27127f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2713f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request the setting of TTY mode
2714f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2715f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is NULL
27167f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2717f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is int *
2718f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)response)[0] is == 0 for TTY off
27191b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((int *)response)[0] is == 1 for TTY Full
27201b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((int *)response)[0] is == 2 for TTY HCO (hearing carryover)
27211b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((int *)response)[0] is == 3 for TTY VCO (voice carryover)
2722f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2723f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
27247f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2725f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2726f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2727f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2728f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2729f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2730f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_QUERY_TTY_MODE 81
2731f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2732f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2733f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE
2734f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2735f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request to set the preferred voice privacy mode used in voice
2736f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * scrambling
2737f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2738f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is int *
2739f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 0 for Standard Privacy Mode (Public Long Code Mask)
2740f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is == 1 for Enhanced Privacy Mode (Private Long Code Mask)
27417f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2742f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
27437f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2744f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2745f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2746f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2747f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2748f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2749f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE 82
2750f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2751f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2752f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE
27537f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2754f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request the setting of preferred voice privacy mode
2755f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2756f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is NULL
27577f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2758f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is int *
2759f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)response)[0] is == 0 for Standard Privacy Mode (Public Long Code Mask)
2760f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)response)[0] is == 1 for Enhanced Privacy Mode (Private Long Code Mask)
27617f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2762f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
27637f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2764f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2765f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2766f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2767f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2768f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2769f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE 83
2770f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2771f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2772f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_FLASH
2773f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2774f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Send FLASH
2775f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2776f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is const char *
2777f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((const char *)data)[0] is a FLASH string
27787f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2779f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
27807f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2781f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2782f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2783f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2784f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2785f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2786f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2787f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_CDMA_FLASH 84
2788f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2789f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2790f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_BURST_DTMF
2791f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2792f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Send DTMF string
2793f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2794602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh * "data" is const char **
2795602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh * ((const char **)data)[0] is a DTMF string
2796602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh * ((const char **)data)[1] is the DTMF ON length in milliseconds, or 0 to use
2797602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                          default
2798602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh * ((const char **)data)[2] is the DTMF OFF length in milliseconds, or 0 to use
2799602f80f98a06a8ed009a6c9b9aa3e0bcfc4afb23jsh *                          default
28007f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2801f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
28027f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2803f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2804f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2805f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2806f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2807f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2808f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2809f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_CDMA_BURST_DTMF 85
2810f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2811f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
281203c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla * RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY
2813f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
281403c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla * Takes a 26 digit string (20 digit AKEY + 6 digit checksum).
281503c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla * If the checksum is valid the 20 digit AKEY is written to NV,
281603c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla * replacing the existing AKEY no matter what it was before.
2817f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2818f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is const char *
281903c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla * ((const char *)data)[0] is a 26 digit string (ASCII digits '0'-'9')
282003c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla *                         where the last 6 digits are a checksum of the
282103c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla *                         first 20, as specified in TR45.AHAG
282203c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla *                         "Common Cryptographic Algorithms, Revision D.1
282303c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla *                         Section 2.2"
28247f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2825f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
28267f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2827f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2828f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2829f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2830f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2831f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2832f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
283303c1edf23e76a83b95ac6847e333cb1329bbfa1dNaveen Kalla#define RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY 86
2834f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2835f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2836f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_SEND_SMS
2837f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2838f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Send a CDMA SMS message
2839f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2840f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is const RIL_CDMA_SMS_Message *
28417f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2842f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is a const RIL_SMS_Response *
28437f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2844bfb151ba844bb97d8b21e827c0cb1556082151fajohnwang * Based on the return error, caller decides to resend if sending sms
2845bfb151ba844bb97d8b21e827c0cb1556082151fajohnwang * fails. The CDMA error class is derived as follows,
2846bfb151ba844bb97d8b21e827c0cb1556082151fajohnwang * SUCCESS is error class 0 (no error)
2847bfb151ba844bb97d8b21e827c0cb1556082151fajohnwang * SMS_SEND_FAIL_RETRY is error class 2 (temporary failure)
2848bfb151ba844bb97d8b21e827c0cb1556082151fajohnwang * and GENERIC_FAILURE is error class 3 (permanent and no retry)
2849bfb151ba844bb97d8b21e827c0cb1556082151fajohnwang *
2850f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2851f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2852f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
28531b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *  SMS_SEND_FAIL_RETRY
2854f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2855f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2856f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2857f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_CDMA_SEND_SMS 87
2858f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2859f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2860f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE
2861f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2862f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Acknowledge the success or failure in the receipt of SMS
2863f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * previously indicated via RIL_UNSOL_RESPONSE_CDMA_NEW_SMS
2864f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2865f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is const RIL_CDMA_SMS_Ack *
28667f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2867f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
28687f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
2869f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2870f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2871f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2872f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2873f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2874f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2875f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE 88
2876f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2877f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2878a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG
2879a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2880a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * Request the setting of GSM/WCDMA Cell Broadcast SMS config.
2881f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2882f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is NULL
2883a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2884a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * "response" is a const RIL_GSM_BroadcastSmsConfigInfo **
2885a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * "responselen" is count * sizeof (RIL_GSM_BroadcastSmsConfigInfo *)
2886a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2887f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2888f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2889f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2890f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2891f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2892f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2893a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville#define RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG 89
2894f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2895f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2896a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG
2897f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2898f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Set GSM/WCDMA Cell Broadcast SMS config
2899f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2900a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * "data" is a const RIL_GSM_BroadcastSmsConfigInfo **
2901a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * "datalen" is count * sizeof(RIL_GSM_BroadcastSmsConfigInfo *)
2902a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2903f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
2904a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2905f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2906f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2907f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2908f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2909f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2910f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2911a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville#define RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG 90
2912f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2913f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2914a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION
2915f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2916a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville* Enable or disable the reception of GSM/WCDMA Cell Broadcast SMS
2917f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2918f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is const int *
2919f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * (const int *)data[0] indicates to activate or turn off the
2920f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * reception of GSM/WCDMA Cell Broadcast SMS, 0-1,
2921f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *                       0 - Activate, 1 - Turn off
2922a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2923f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
2924a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2925f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2926f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2927f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2928f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2929f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2930f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2931a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville#define RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION 91
2932f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2933f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2934a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG
2935f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2936f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request the setting of CDMA Broadcast SMS config
2937f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2938f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is NULL
2939a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2940a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * "response" is a const RIL_CDMA_BroadcastSmsConfigInfo **
2941a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * "responselen" is count * sizeof (RIL_CDMA_BroadcastSmsConfigInfo *)
2942a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2943f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2944f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2945f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2946f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2947f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2948f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2949a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville#define RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG 92
2950f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2951f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2952a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG
2953f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2954f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Set CDMA Broadcast SMS config
2955f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2956a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * "data" is an const RIL_CDMA_BroadcastSmsConfigInfo **
2957a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * "datalen" is count * sizeof(const RIL_CDMA_BroadcastSmsConfigInfo *)
2958a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2959f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
2960a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2961f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2962f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2963f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2964f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2965f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2966f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2967a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville#define RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG 93
2968f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2969f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2970a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville * RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION
2971f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2972f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Enable or disable the reception of CDMA Broadcast SMS
2973f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2974f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is const int *
2975f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * (const int *)data[0] indicates to activate or turn off the
2976f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * reception of CDMA Broadcast SMS, 0-1,
2977f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *                       0 - Activate, 1 - Turn off
2978a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2979f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
2980a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville *
2981f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
2982f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
2983f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
2984f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
2985f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2986f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
2987a592eebc476a3d234f47f93e58252f8c822fc772Wink Saville#define RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION 94
2988f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
2989f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
2990f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_SUBSCRIPTION
2991f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2992f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Request the device MDN / H_SID / H_NID.
2993f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2994f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * The request is only allowed when CDMA subscription is available.  When CDMA
2995f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * subscription is changed, application layer should re-issue the request to
2996f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * update the subscription information.
2997f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
2998f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * If a NULL value is returned for any of the device id, it means that error
2999f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * accessing the device.
3000f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3001f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is const char **
3002f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((const char **)response)[0] is MDN if CDMA subscription is available
300329be25c17885e6c7c32b6aea293d689d5b9fb463jsh * ((const char **)response)[1] is a comma separated list of H_SID (Home SID) if
300429be25c17885e6c7c32b6aea293d689d5b9fb463jsh *                              CDMA subscription is available, in decimal format
300529be25c17885e6c7c32b6aea293d689d5b9fb463jsh * ((const char **)response)[2] is a comma separated list of H_NID (Home NID) if
300629be25c17885e6c7c32b6aea293d689d5b9fb463jsh *                              CDMA subscription is available, in decimal format
30071b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * ((const char **)response)[3] is MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
3008d4ee7dc0e98de1aa990e6c8a63f639779f9a86e9Wink Saville * ((const char **)response)[4] is PRL version if CDMA subscription is available
3009f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3010f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
3011f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
3012f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RIL_E_SUBSCRIPTION_NOT_AVAILABLE
3013f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
3014f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
3015eafe79ddae0509f3173274c338e69241f5055111Wink Saville#define RIL_REQUEST_CDMA_SUBSCRIPTION 95
3016f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
3017f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
3018f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM
3019f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3020f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Stores a CDMA SMS message to RUIM memory.
3021f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3022f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is RIL_CDMA_SMS_WriteArgs *
3023f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3024f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is int *
3025f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((const int *)response)[0] is the record index where the message is stored.
3026f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3027f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
3028f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
3029f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
3030f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
3031f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3032f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
3033eafe79ddae0509f3173274c338e69241f5055111Wink Saville#define RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM 96
3034f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
3035f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
3036f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM
3037f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3038f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Deletes a CDMA SMS message from RUIM memory.
3039f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3040f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "data" is int  *
3041f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * ((int *)data)[0] is the record index of the message to delete.
3042f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3043f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is NULL
3044f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3045f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
3046f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
3047f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
3048f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
3049f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
3050f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
3051eafe79ddae0509f3173274c338e69241f5055111Wink Saville#define RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM 97
3052f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
3053f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville/**
3054f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_DEVICE_IDENTITY
3055eafe79ddae0509f3173274c338e69241f5055111Wink Saville *
3056eafe79ddae0509f3173274c338e69241f5055111Wink Saville * Request the device ESN / MEID / IMEI / IMEISV.
3057eafe79ddae0509f3173274c338e69241f5055111Wink Saville *
3058f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * The request is always allowed and contains GSM and CDMA device identity;
3059eafe79ddae0509f3173274c338e69241f5055111Wink Saville * it substitutes the deprecated requests RIL_REQUEST_GET_IMEI and
3060f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_REQUEST_GET_IMEISV.
3061eafe79ddae0509f3173274c338e69241f5055111Wink Saville *
3062eafe79ddae0509f3173274c338e69241f5055111Wink Saville * If a NULL value is returned for any of the device id, it means that error
3063f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * accessing the device.
3064eafe79ddae0509f3173274c338e69241f5055111Wink Saville *
3065eafe79ddae0509f3173274c338e69241f5055111Wink Saville * When CDMA subscription is changed the ESN/MEID may change.  The application
3066f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * layer should re-issue the request to update the device identity in this case.
3067eafe79ddae0509f3173274c338e69241f5055111Wink Saville *
3068f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * "response" is const char **
3069eafe79ddae0509f3173274c338e69241f5055111Wink Saville * ((const char **)response)[0] is IMEI if GSM subscription is available
3070eafe79ddae0509f3173274c338e69241f5055111Wink Saville * ((const char **)response)[1] is IMEISV if GSM subscription is available
3071eafe79ddae0509f3173274c338e69241f5055111Wink Saville * ((const char **)response)[2] is ESN if CDMA subscription is available
3072eafe79ddae0509f3173274c338e69241f5055111Wink Saville * ((const char **)response)[3] is MEID if CDMA subscription is available
3073eafe79ddae0509f3173274c338e69241f5055111Wink Saville *
3074f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * Valid errors:
3075f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  SUCCESS
3076f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  RADIO_NOT_AVAILABLE
3077f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *  GENERIC_FAILURE
3078f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville */
3079eafe79ddae0509f3173274c338e69241f5055111Wink Saville#define RIL_REQUEST_DEVICE_IDENTITY 98
3080f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
30811b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/**
30821b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE
30831b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
30841b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Request the radio's system selection module to exit emergency
30851b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * callback mode.  RIL will not respond with SUCCESS until the modem has
30861b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * completely exited from Emergency Callback Mode.
30871b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
30881b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * "data" is NULL
30897f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
30901b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * "response" is NULL
30917f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
30921b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Valid errors:
30931b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *  SUCCESS
30941b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *  RADIO_NOT_AVAILABLE
30951b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *  GENERIC_FAILURE
30961b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
30971b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville */
30981b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville#define RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE 99
3099f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
3100000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh/**
3101000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * RIL_REQUEST_GET_SMSC_ADDRESS
3102000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3103000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * Queries the default Short Message Service Center address on the device.
3104000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3105000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * "data" is NULL
3106000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3107000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * "response" is const char * containing the SMSC address.
3108000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3109000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * Valid errors:
3110000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *  SUCCESS
3111000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *  RADIO_NOT_AVAILABLE
3112000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *  GENERIC_FAILURE
3113000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3114000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh */
3115000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh#define RIL_REQUEST_GET_SMSC_ADDRESS 100
3116000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh
3117000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh/**
3118000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * RIL_REQUEST_SET_SMSC_ADDRESS
3119000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3120000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * Sets the default Short Message Service Center address on the device.
3121000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3122000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * "data" is const char * containing the SMSC address.
3123000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3124000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * "response" is NULL
3125000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3126000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh * Valid errors:
3127000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *  SUCCESS
3128000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *  RADIO_NOT_AVAILABLE
3129000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *  GENERIC_FAILURE
3130000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh *
3131000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh */
3132000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh#define RIL_REQUEST_SET_SMSC_ADDRESS 101
3133000a9fe96fdf9111387d2bc389d2f6bb3e627d0fjsh
3134b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh/**
3135b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh * RIL_REQUEST_REPORT_SMS_MEMORY_STATUS
3136b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *
3137b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh * Indicates whether there is storage available for new SMS messages.
3138b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *
3139b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh * "data" is int *
3140b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh * ((int *)data)[0] is 1 if memory is available for storing new messages
3141b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *                  is 0 if memory capacity is exceeded
3142b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *
3143b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh * "response" is NULL
3144b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *
3145b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh * Valid errors:
3146b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *  SUCCESS
3147b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *  RADIO_NOT_AVAILABLE
3148b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *  GENERIC_FAILURE
3149b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh *
3150b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh */
3151b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh#define RIL_REQUEST_REPORT_SMS_MEMORY_STATUS 102
3152b60444ef2fe63b372e13f3d38ebf8448d6c127f5jsh
31532641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville/**
31542641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville * RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
31552641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville *
31562641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville * Indicates that the StkSerivce is running and is
31572641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville * ready to receive RIL_UNSOL_STK_XXXXX commands.
31582641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville *
31592641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville * "data" is NULL
31602641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville * "response" is NULL
31612641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville *
31622641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville * Valid errors:
31632641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville *  SUCCESS
31642641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville *  RADIO_NOT_AVAILABLE
31652641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville *  GENERIC_FAILURE
31662641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville *
31672641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville */
31682641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville#define RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING 103
31692641d5b8426beb86870611e5bc7c4eb0a877025bWink Saville
3170c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/**
3171c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE
3172c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3173c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Request to query the location where the CDMA subscription shall
3174c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * be retrieved
3175c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3176c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "data" is NULL
3177c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3178c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "response" is int *
3179c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((int *)data)[0] is == RIL_CdmaSubscriptionSource
3180c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3181c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Valid errors:
3182c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *  SUCCESS
3183c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *  RADIO_NOT_AVAILABLE
3184c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *  GENERIC_FAILURE
3185c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *  SUBSCRIPTION_NOT_AVAILABLE
3186c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3187c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * See also: RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE
3188c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville */
3189c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville#define RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE 104
3190c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
319100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/***********************************************************************/
319200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
3193f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
319400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_RESPONSE_BASE 1000
319500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
319600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
319700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED
319800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
319900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicate when value of RIL_RadioState has changed.
320000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
320100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Callee will invoke RIL_RadioStateRequest method on main thread
320200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
320300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
320400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
320500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
320600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED 1000
320700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
320800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
320900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
321000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED
321100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
321200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicate when call state has changed
321300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
321400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Callee will invoke RIL_REQUEST_GET_CURRENT_CALLS on main thread
321500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
321600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
321700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
32187f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Response should be invoked on, for example,
321900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "RING", "BUSY", "NO CARRIER", and also call state
322000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * transitions (DIALING->ALERTING ALERTING->ACTIVE)
322100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
322200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Redundent or extraneous invocations are tolerated
322300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
322400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED 1001
322500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
322600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
322700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
3228c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
322900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
3230c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Called when the voice network state changed
323100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
323200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Callee will invoke the following requests on main thread:
323300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
3234c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_REQUEST_VOICE_REGISTRATION_STATE
323500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_OPERATOR
323600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
323700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
323800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
323900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * FIXME should this happen when SIM records are loaded? (eg, for
324000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * EONS)
324100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
3242c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville#define RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED 1002
324300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
324400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
324500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_RESPONSE_NEW_SMS
324600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
324700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Called when new SMS is received.
32487f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
324900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char *
325000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * This is a pointer to a string containing the PDU of an SMS-DELIVER
325100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * as an ascii string of hex digits. The PDU starts with the SMSC address
325200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * per TS 27.005 (+CMT:)
325300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
325400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Callee will subsequently confirm the receipt of thei SMS with a
325500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SMS_ACKNOWLEDGE
325600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
32577f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * No new RIL_UNSOL_RESPONSE_NEW_SMS
325800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * or RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT messages should be sent until a
325900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SMS_ACKNOWLEDGE has been received
326000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
326100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
326200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_RESPONSE_NEW_SMS 1003
326300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
326400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
326500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT
326600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
326700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Called when new SMS Status Report is received.
32687f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
326900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char *
327000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * This is a pointer to a string containing the PDU of an SMS-STATUS-REPORT
327100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * as an ascii string of hex digits. The PDU starts with the SMSC address
327200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * per TS 27.005 (+CDS:).
327300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
327400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Callee will subsequently confirm the receipt of the SMS with a
327500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SMS_ACKNOWLEDGE
327600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
32777f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * No new RIL_UNSOL_RESPONSE_NEW_SMS
327800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * or RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT messages should be sent until a
327900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_REQUEST_SMS_ACKNOWLEDGE has been received
328000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
328100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
328200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT 1004
328300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
328400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
328500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM
328600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
328700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Called when new SMS has been stored on SIM card
32887f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
328900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const int *
329000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)data)[0] contains the slot index on the SIM that contains
329100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * the new message
329200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
329300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
329400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM 1005
329500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
329600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
329700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_ON_USSD
329800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
329900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Called when a new USSD message is received.
330000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
330100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char **
33027f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * ((const char **)data)[0] points to a type code, which is
330300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  one of these string values:
330400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      "0"   USSD-Notify -- text in ((const char **)data)[1]
330500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      "1"   USSD-Request -- text in ((const char **)data)[1]
330600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      "2"   Session terminated by network
330700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      "3"   other local client (eg, SIM Toolkit) has responded
330800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      "4"   Operation not supported
330900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *      "5"   Network timeout
331000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
331100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * The USSD session is assumed to persist if the type code is "1", otherwise
331200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * the current session (if any) is assumed to have terminated.
331300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
331400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const char **)data)[1] points to a message string if applicable, which
331500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * should always be in UTF-8.
331600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
331700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_ON_USSD 1006
331800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/* Previously #define RIL_UNSOL_ON_USSD_NOTIFY 1006   */
331900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
332000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
332100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_ON_USSD_REQUEST
332200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
332300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Obsolete. Send via RIL_UNSOL_ON_USSD
332400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
33257f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville#define RIL_UNSOL_ON_USSD_REQUEST 1007
332600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
332700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
332800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
332900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_NITZ_TIME_RECEIVED
333000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
333100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Called when radio has received a NITZ time message
333200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
333300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const char * pointing to NITZ time string
333400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * in the form "yy/mm/dd,hh:mm:ss(+/-)tz,dt"
333500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
333600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_NITZ_TIME_RECEIVED  1008
333700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
333800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
333900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_SIGNAL_STRENGTH
334000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
334100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Radio may report signal strength rather han have it polled.
334200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
33431b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * "data" is a const RIL_SignalStrength *
334400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
334500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_SIGNAL_STRENGTH  1009
334600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
334700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
334800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
3349f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * RIL_UNSOL_DATA_CALL_LIST_CHANGED
335000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
3351c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "data" is an array of RIL_Data_Call_Response_v6 identical to that
335229487ef2685e5ee38f0348ab031cb96a608296baWink Saville * returned by RIL_REQUEST_DATA_CALL_LIST. It is the complete list
335329487ef2685e5ee38f0348ab031cb96a608296baWink Saville * of current data contexts including new contexts that have been
335429487ef2685e5ee38f0348ab031cb96a608296baWink Saville * activated. A data call is only removed from this list when the
335529487ef2685e5ee38f0348ab031cb96a608296baWink Saville * framework sends a RIL_REQUEST_DEACTIVATE_DATA_CALL or the radio
335629487ef2685e5ee38f0348ab031cb96a608296baWink Saville * is powered off/on.
335700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
3358f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville * See also: RIL_REQUEST_DATA_CALL_LIST
335900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
336000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
3361f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_UNSOL_DATA_CALL_LIST_CHANGED 1010
336200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
336300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
336400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_SUPP_SVC_NOTIFICATION
336500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
336600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Reports supplementary service related notification from the network.
336700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
336800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const RIL_SuppSvcNotification *
336900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
337000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
337100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
337200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_SUPP_SVC_NOTIFICATION 1011
337300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
337400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
337500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_STK_SESSION_END
337600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
337700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicate when STK session is terminated by SIM.
337800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
337900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is NULL
338000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
338100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_STK_SESSION_END 1012
338200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
338300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
338400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_STK_PROACTIVE_COMMAND
338500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
338600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicate when SIM issue a STK proactive command to applications
338700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
338800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const char * containing SAT/USAT proactive command
338900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * in hexadecimal format string starting with command tag
339000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
339100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
339200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_STK_PROACTIVE_COMMAND 1013
339300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
339400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
339500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_STK_EVENT_NOTIFY
339600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
339700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicate when SIM notifies applcations some event happens.
339800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Generally, application does not need to have any feedback to
339900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * SIM but shall be able to indicate appropriate messages to users.
340000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
340100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is a const char * containing SAT/USAT commands or responses
340200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * sent by ME to SIM or commands handled by ME, in hexadecimal format string
340300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * starting with first byte of response data or command tag
340400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
340500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
340600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_STK_EVENT_NOTIFY 1014
340700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
340800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
340900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_STK_CALL_SETUP
341000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
341100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicate when SIM wants application to setup a voice call.
341200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
341300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is const int *
341400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((const int *)data)[0] contains timeout value (in milliseconds)
341500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
341600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_STK_CALL_SETUP 1015
341700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
341800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
341900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_SIM_SMS_STORAGE_FULL
342000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
342100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicates that SMS storage on the SIM is full.  Sent when the network
342200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * attempts to deliver a new SMS message.  Messages cannot be saved on the
342300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * SIM until space is freed.  In particular, incoming Class 2 messages
342400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * cannot be stored.
342500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
342600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is null
342700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
342800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
342900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_SIM_SMS_STORAGE_FULL 1016
343000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
343100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
343200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_SIM_REFRESH
343300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
343400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Indicates that file(s) on the SIM have been updated, or the SIM
343500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * has been reinitialized.
343600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
343700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * "data" is an int *
343800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[0] is a RIL_SimRefreshResult.
343900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * ((int *)data)[1] is the EFID of the updated file if the result is
3440c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * SIM_FILE_UPDATE, AID(application ID) of the card application
3441c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * triggering the REFRESH if the result is SIM_INIT, or NULL for any other result.
344200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
344300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Note: If the radio state changes as a result of the SIM refresh (eg,
344400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * SIM_READY -> SIM_LOCKED_OR_ABSENT), RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED
344500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * should be sent.
344600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
344700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_SIM_REFRESH 1017
344800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
344900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
345000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_UNSOL_CALL_RING
345100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
345200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Ring indication for an incoming call (eg, RING or CRING event).
34536453306c90eee1356a14a9e6679d1171ec126173Wink Saville * There must be at least one RIL_UNSOL_CALL_RING at the beginning
34546453306c90eee1356a14a9e6679d1171ec126173Wink Saville * of a call and sending multiple is optional. If the system property
34556453306c90eee1356a14a9e6679d1171ec126173Wink Saville * ro.telephony.call_ring.multiple is false then the upper layers
34566453306c90eee1356a14a9e6679d1171ec126173Wink Saville * will generate the multiple events internally. Otherwise the vendor
34576453306c90eee1356a14a9e6679d1171ec126173Wink Saville * ril must generate multiple RIL_UNSOL_CALL_RING if
34586453306c90eee1356a14a9e6679d1171ec126173Wink Saville * ro.telephony.call_ring.multiple is true or if it is absent.
34596453306c90eee1356a14a9e6679d1171ec126173Wink Saville *
34606453306c90eee1356a14a9e6679d1171ec126173Wink Saville * The rate of these events is controlled by ro.telephony.call_ring.delay
34616453306c90eee1356a14a9e6679d1171ec126173Wink Saville * and has a default value of 3000 (3 seconds) if absent.
346200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
34633d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville * "data" is null for GSM
34643d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville * "data" is const RIL_CDMA_SignalInfoRecord * if CDMA
346500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
346600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#define RIL_UNSOL_CALL_RING 1018
346700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
346834a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/**
346934a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED
347034a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
347134a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * Indicates that SIM state changes.
34723d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *
347334a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * Callee will invoke RIL_REQUEST_GET_SIM_STATUS on main thread
3474f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
347534a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * "data" is null
347634a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project */
347734a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED 1019
347834a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project
347934a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/**
348034a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * RIL_UNSOL_RESPONSE_CDMA_NEW_SMS
348134a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
348234a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * Called when new CDMA SMS is received
34833d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *
348434a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * "data" is const RIL_CDMA_SMS_Message *
34853d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *
348634a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * Callee will subsequently confirm the receipt of the SMS with
348734a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * a RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE
34883d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *
348934a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * No new RIL_UNSOL_RESPONSE_CDMA_NEW_SMS should be sent until
349034a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE has been received
34913d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *
349234a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project */
349334a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_UNSOL_RESPONSE_CDMA_NEW_SMS 1020
349434a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project
349534a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/**
349634a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS
349734a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
349834a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * Called when new Broadcast SMS is received
34997f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
35000eba2026fd78f61e77a6adfece793cfaca92047cHenrik Hall * "data" can be one of the following:
35010eba2026fd78f61e77a6adfece793cfaca92047cHenrik Hall * If received from GSM network, "data" is const char of 88 bytes
35020eba2026fd78f61e77a6adfece793cfaca92047cHenrik Hall * which indicates each page of a CBS Message sent to the MS by the
35030eba2026fd78f61e77a6adfece793cfaca92047cHenrik Hall * BTS as coded in 3GPP 23.041 Section 9.4.1.2.
35040eba2026fd78f61e77a6adfece793cfaca92047cHenrik Hall * If received from UMTS network, "data" is const char of 90 up to 1252
35050eba2026fd78f61e77a6adfece793cfaca92047cHenrik Hall * bytes which contain between 1 and 15 CBS Message pages sent as one
35060eba2026fd78f61e77a6adfece793cfaca92047cHenrik Hall * packet to the MS by the BTS as coded in 3GPP 23.041 Section 9.4.2.2.
3507f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
350834a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project */
350934a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS 1021
3510f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
351134a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/**
351234a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * RIL_UNSOL_CDMA_RUIM_SMS_STORAGE_FULL
351334a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
351434a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * Indicates that SMS storage on the RUIM is full.  Messages
351534a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * cannot be saved on the RUIM until space is freed.
351634a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
351734a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * "data" is null
3518f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville *
351934a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project */
3520f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville#define RIL_UNSOL_CDMA_RUIM_SMS_STORAGE_FULL 1022
3521f4c4d36c410a3501d282dd7de1c7c3350734f27eWink Saville
352234a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project/**
352334a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * RIL_UNSOL_RESTRICTED_STATE_CHANGED
352434a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
352534a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * Indicates a restricted state change (eg, for Domain Specific Access Control).
352634a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
352734a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * Radio need send this msg after radio off/on cycle no matter it is changed or not.
352834a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project *
352934a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * "data" is an int *
353034a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project * ((int *)data)[0] contains a bitmask of RIL_RESTRICTED_STATE_* values.
353134a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project */
353234a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project#define RIL_UNSOL_RESTRICTED_STATE_CHANGED 1023
353334a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project
35341b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/**
35351b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE
35361b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35371b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Indicates that the radio system selection module has
35381b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * autonomously entered emergency callback mode.
35391b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35401b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * "data" is null
35411b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35421b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville */
35431b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville#define RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE 1024
35441b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
35451b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/**
35461b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * RIL_UNSOL_CDMA_CALL_WAITING
35471b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35481b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Called when CDMA radio receives a call waiting indication.
35491b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35501b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * "data" is const RIL_CDMA_CallWaiting *
35517f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
35521b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville */
35531b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville#define RIL_UNSOL_CDMA_CALL_WAITING 1025
355434a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project
35551b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/**
35561b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * RIL_UNSOL_CDMA_OTA_PROVISION_STATUS
35571b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35581b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Called when CDMA radio receives an update of the progress of an
35591b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * OTASP/OTAPA call.
35601b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35611b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * "data" is const int *
35621b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *  For CDMA this is an integer OTASP/OTAPA status listed in
35631b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *  RIL_CDMA_OTA_ProvisionStatus.
35641b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35651b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville */
35661b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville#define RIL_UNSOL_CDMA_OTA_PROVISION_STATUS 1026
35671b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville
35681b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville/**
35691b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * RIL_UNSOL_CDMA_INFO_REC
35701b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35711b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * Called when CDMA radio receives one or more info recs.
35721b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35731b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville * "data" is const RIL_CDMA_InformationRecords *
35741b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville *
35751b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville */
35761b5fd23e2bc82e5bed48125317cf2f9837cf6ae8Wink Saville#define RIL_UNSOL_CDMA_INFO_REC 1027
357734a5108969fbfc6cf8140513b7246da805902b7aThe Android Open Source Project
3578af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh/**
3579af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh * RIL_UNSOL_OEM_HOOK_RAW
3580af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh *
3581af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh * This is for OEM specific use.
3582af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh *
3583af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh * "data" is a byte[]
3584af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh */
3585af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh#define RIL_UNSOL_OEM_HOOK_RAW 1028
3586af6ecbf0fa03379818038459ee1b61ea393ffd4fJaikumar Ganesh
35875d621da539abea83309d77317ede40126f47d5f0John Wang/**
35885d621da539abea83309d77317ede40126f47d5f0John Wang * RIL_UNSOL_RINGBACK_TONE
35895d621da539abea83309d77317ede40126f47d5f0John Wang *
35905d621da539abea83309d77317ede40126f47d5f0John Wang * Indicates that nework doesn't have in-band information,  need to
35915d621da539abea83309d77317ede40126f47d5f0John Wang * play out-band tone.
35925d621da539abea83309d77317ede40126f47d5f0John Wang *
35935d621da539abea83309d77317ede40126f47d5f0John Wang * "data" is an int *
35945d621da539abea83309d77317ede40126f47d5f0John Wang * ((int *)data)[0] == 0 for stop play ringback tone.
35955d621da539abea83309d77317ede40126f47d5f0John Wang * ((int *)data)[0] == 1 for start play ringback tone.
35965d621da539abea83309d77317ede40126f47d5f0John Wang */
35975d621da539abea83309d77317ede40126f47d5f0John Wang#define RIL_UNSOL_RINGBACK_TONE 1029
35985d621da539abea83309d77317ede40126f47d5f0John Wang
35995909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang/**
36005909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang * RIL_UNSOL_RESEND_INCALL_MUTE
36015909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang *
36025909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang * Indicates that framework/application need reset the uplink mute state.
36035909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang *
36045909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang * There may be situations where the mute state becomes out of sync
36055909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang * between the application and device in some GSM infrastructures.
36065909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang *
36075909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang * "data" is null
36085909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang */
36095909cf831f0d687e93164daaecc43a2ff792cc3aJohn Wang#define RIL_UNSOL_RESEND_INCALL_MUTE 1030
3610c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
3611c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/**
3612c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED
3613c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3614c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Called when CDMA subscription source changed.
3615c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3616c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "data" is int *
3617c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((int *)data)[0] is == RIL_CdmaSubscriptionSource
3618c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville */
361929487ef2685e5ee38f0348ab031cb96a608296baWink Saville#define RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED 1031
3620c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
3621c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/**
3622c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_UNSOL_CDMA_PRL_CHANGED
3623c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3624c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Called when PRL (preferred roaming list) changes.
3625c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3626c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "data" is int *
3627c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * ((int *)data)[0] is PRL_VERSION as would be returned by RIL_REQUEST_CDMA_SUBSCRIPTION
3628c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville */
3629c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville#define RIL_UNSOL_CDMA_PRL_CHANGED 1032
3630c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
3631c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville/**
3632c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE
3633c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3634c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Called when Emergency Callback Mode Ends
3635c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3636c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * Indicates that the radio system selection module has
3637c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * proactively exited emergency callback mode.
3638c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3639c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville * "data" is NULL
3640c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville *
3641c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville */
3642c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville#define RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE 1033
3643c0114b325877907fcdf7a5baa24e54a752e7e58bWink Saville
36445b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville/**
36455b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville * RIL_UNSOL_RIL_CONNECTED
36465b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville *
36475b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville * Called the ril connects and returns the version
36485b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville *
36495b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville * "data" is int *
36505b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville * ((int *)data)[0] is RIL_VERSION
36515b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville */
36525b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville#define RIL_UNSOL_RIL_CONNECTED 1034
36535b9df33c53682addaebc0b6073901a8b441d82f9Wink Saville
365400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/***********************************************************************/
365500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
365600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
365700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
365800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_Request Function pointer
365900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
366000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param request is one of RIL_REQUEST_*
366100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param data is pointer to data defined for that RIL_REQUEST_*
366200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *        data is owned by caller, and should not be modified or freed by callee
366300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param t should be used in subsequent call to RIL_onResponse
366400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param datalen the length of data
366500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
366600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
36677f8568086f2ea14885b0091c793e14c2656f0da2Wink Savilletypedef void (*RIL_RequestFunc) (int request, void *data,
366800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                    size_t datalen, RIL_Token t);
366900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
367000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
367100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * This function should return the current radio state synchronously
367200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
367300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef RIL_RadioState (*RIL_RadioStateRequest)();
367400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
367500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
367600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * This function returns "1" if the specified RIL_REQUEST code is
367700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * supported and 0 if it is not
367800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
367900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param requestCode is one of RIL_REQUEST codes
368000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
368100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
368200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef int (*RIL_Supports)(int requestCode);
368300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
368400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
36857f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * This function is called from a separate thread--not the
368600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * thread that calls RIL_RequestFunc--and indicates that a pending
368700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * request should be cancelled.
36887f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *
368900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * On cancel, the callee should do its best to abandon the request and
369000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * call RIL_onRequestComplete with RIL_Errno CANCELLED at some later point.
369100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
369200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Subsequent calls to  RIL_onRequestComplete for this request with
369300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * other results will be tolerated but ignored. (That is, it is valid
369400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * to ignore the cancellation request)
369500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
369600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_Cancel calls should return immediately, and not wait for cancellation
369700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
36987f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Please see ITU v.250 5.6.1 for how one might implement this on a TS 27.007
369900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * interface
370000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
370100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param t token wants to be canceled
370200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
370300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
370400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef void (*RIL_Cancel)(RIL_Token t);
370500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
370600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef void (*RIL_TimedCallback) (void *param);
370700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
370800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
370900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Return a version string for your RIL implementation
371000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
371100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef const char * (*RIL_GetVersion) (void);
371200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
371300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projecttypedef struct {
371400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    int version;        /* set to RIL_VERSION */
371500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_RequestFunc onRequest;
371600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_RadioStateRequest onStateRequest;
371700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_Supports supports;
371800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_Cancel onCancel;
371900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    RIL_GetVersion getVersion;
372000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project} RIL_RadioFunctions;
372100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
372200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#ifdef RIL_SHLIB
372300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projectstruct RIL_Env {
372400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    /**
372500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * "t" is parameter passed in on previous call to RIL_Notification
372600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * routine.
372700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     *
372800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * If "e" != SUCCESS, then response can be null/is ignored
372900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     *
37307f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville     * "response" is owned by caller, and should not be modified or
373100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * freed by callee
373200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     *
373300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * RIL_onRequestComplete will return as soon as possible
373400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     */
37357f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville    void (*OnRequestComplete)(RIL_Token t, RIL_Errno e,
373600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                           void *response, size_t responselen);
373700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
373800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    /**
373900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * "unsolResponse" is one of RIL_UNSOL_RESPONSE_*
374000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * "data" is pointer to data defined for that RIL_UNSOL_RESPONSE_*
374100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     *
374200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * "data" is owned by caller, and should not be modified or freed by callee
374300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     */
374400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
37457f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville    void (*OnUnsolicitedResponse)(int unsolResponse, const void *data,
374600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                    size_t datalen);
374700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
374800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project    /**
37497f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville     * Call user-specifed "callback" function on on the same thread that
375000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * RIL_RequestFunc is called. If "relativeTime" is specified, then it specifies
375100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * a relative time value at which the callback is invoked. If relativeTime is
375200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * NULL or points to a 0-filled structure, the callback will be invoked as
375300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     * soon as possible
375400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project     */
375500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
37560d9f0c0ea45a0239653e04f2c63ccecb1bc62c6bDianne Hackborn    void (*RequestTimedCallback) (RIL_TimedCallback callback,
37577f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville                                   void *param, const struct timeval *relativeTime);
375800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project};
375900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
376000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
37617f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville/**
37627f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville *  RIL implementations must defined RIL_Init
376300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  argc and argv will be command line arguments intended for the RIL implementation
376400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *  Return NULL on error
376500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
376600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param env is environment point defined as RIL_Env
376700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param argc number of arguments
376800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param argv list fo arguments
376900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
377000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
377100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projectconst RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc, char **argv);
377200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
377300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#else /* RIL_SHLIB */
377400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
377500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
377600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * Call this once at startup to register notification routine
377700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
377800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param callbacks user-specifed callback function
377900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
378000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Projectvoid RIL_register (const RIL_RadioFunctions *callbacks);
378100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
378200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
378300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
378400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
378500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_onRequestComplete will return as soon as possible
378600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
378700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param t is parameter passed in on previous call to RIL_Notification
37883d54e74bc450bb40977e3ae6fab6185fe687bdaeWink Saville *          routine.
378900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param e error code
379000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *          if "e" != SUCCESS, then response can be null/is ignored
379100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param response is owned by caller, and should not be modified or
379200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *                 freed by callee
379300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param responselen the length of response in byte
379400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
37957f8568086f2ea14885b0091c793e14c2656f0da2Wink Savillevoid RIL_onRequestComplete(RIL_Token t, RIL_Errno e,
379600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                           void *response, size_t responselen);
379700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
379800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
379900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param unsolResponse is one of RIL_UNSOL_RESPONSE_*
380000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param data is pointer to data defined for that RIL_UNSOL_RESPONSE_*
380100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *     "data" is owned by caller, and should not be modified or freed by callee
380200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param datalen the length of data in byte
380300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
380400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
38057f8568086f2ea14885b0091c793e14c2656f0da2Wink Savillevoid RIL_onUnsolicitedResponse(int unsolResponse, const void *data,
380600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project                                size_t datalen);
380700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
380800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
380900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project/**
38107f8568086f2ea14885b0091c793e14c2656f0da2Wink Saville * Call user-specifed "callback" function on on the same thread that
381100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * RIL_RequestFunc is called. If "relativeTime" is specified, then it specifies
381200f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * a relative time value at which the callback is invoked. If relativeTime is
381300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * NULL or points to a 0-filled structure, the callback will be invoked as
381400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * soon as possible
381500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project *
381600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param callback user-specifed callback function
381700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param param parameter list
381800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project * @param relativeTime a relative time value at which the callback is invoked
381900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project */
382000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
38210d9f0c0ea45a0239653e04f2c63ccecb1bc62c6bDianne Hackbornvoid RIL_requestTimedCallback (RIL_TimedCallback callback,
38220d9f0c0ea45a0239653e04f2c63ccecb1bc62c6bDianne Hackborn                               void *param, const struct timeval *relativeTime);
382300f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
382400f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
382500f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#endif /* RIL_SHLIB */
382600f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
382700f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#ifdef __cplusplus
382800f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project}
382900f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#endif
383000f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project
383100f06fc3fdb05d4276e76091cacb42b6f6862222The Android Open Source Project#endif /*ANDROID_RIL_H*/
3832