From 22b0dffa0d309bcc7d5cac8cabb009172ee7713d Mon Sep 17 00:00:00 2001 From: PythonLimited Date: Mon, 14 Jan 2019 21:05:28 +0100 Subject: [PATCH] update for oreo stable mr1 --- board/radio.mk | 2 +- include/telephony/ril.h | 7359 +++++++++++++++++++++++++++++++++++ ril/libril/RilSapSocket.cpp | 14 +- ril/libril/ril.cpp | 8 +- ril/libril/ril_event.cpp | 4 +- ril/libril/ril_internal.h | 2 +- ril/libril/ril_service.cpp | 662 ++-- ril/libril/sap_service.cpp | 66 +- rootdir/init.qcom.rc | 13 + system.prop | 24 +- 10 files changed, 7757 insertions(+), 397 deletions(-) create mode 100644 include/telephony/ril.h diff --git a/board/radio.mk b/board/radio.mk index ebb7854..b580a93 100644 --- a/board/radio.mk +++ b/board/radio.mk @@ -1,3 +1,3 @@ # Radio -BOARD_PROVIDES_LIBRIL := false +BOARD_PROVIDES_LIBRIL := true TARGET_RIL_VARIANT := caf diff --git a/include/telephony/ril.h b/include/telephony/ril.h new file mode 100644 index 0000000..9c935aa --- /dev/null +++ b/include/telephony/ril.h @@ -0,0 +1,7359 @@ +/* + * Copyright (C) 2006 The Android Open Source Project + * Copyright (C) 2018 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ANDROID_RIL_H +#define ANDROID_RIL_H 1 + +#include +#include +#include +#include +#include + +#ifndef FEATURE_UNIT_TEST +#include +#endif /* !FEATURE_UNIT_TEST */ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef SIM_COUNT +#if defined(ANDROID_SIM_COUNT_2) +#define SIM_COUNT 2 +#elif defined(ANDROID_SIM_COUNT_3) +#define SIM_COUNT 3 +#elif defined(ANDROID_SIM_COUNT_4) +#define SIM_COUNT 4 +#else +#define SIM_COUNT 1 +#endif + +#ifndef ANDROID_MULTI_SIM +#define SIM_COUNT 1 +#endif +#endif + +/* + * RIL version. + * Value of RIL_VERSION should not be changed in future. Here onwards, + * when a new change is supposed to be introduced which could involve new + * schemes added like Wakelocks, data structures added/updated, etc, we would + * just document RIL version associated with that change below. When OEM updates its + * RIL with those changes, they would return that new RIL version during RIL_REGISTER. + * We should make use of the returned version by vendor to identify appropriate scheme + * or data structure version to use. + * + * Documentation of RIL version and associated changes + * RIL_VERSION = 12 : This version corresponds to updated data structures namely + * RIL_Data_Call_Response_v11, RIL_SIM_IO_v6, RIL_CardStatus_v6, + * RIL_SimRefreshResponse_v7, RIL_CDMA_CallWaiting_v6, + * RIL_LTE_SignalStrength_v8, RIL_SignalStrength_v10, RIL_CellIdentityGsm_v12 + * RIL_CellIdentityWcdma_v12, RIL_CellIdentityLte_v12,RIL_CellInfoGsm_v12, + * RIL_CellInfoWcdma_v12, RIL_CellInfoLte_v12, RIL_CellInfo_v12. + * + * RIL_VERSION = 13 : This version includes new wakelock semantics and as the first + * strongly versioned version it enforces structure use. + * + * RIL_VERSION = 14 : New data structures are added, namely RIL_CarrierMatchType, + * RIL_Carrier, RIL_CarrierRestrictions and RIL_PCO_Data. + * New commands added: RIL_REQUEST_SET_CARRIER_RESTRICTIONS, + * RIL_REQUEST_SET_CARRIER_RESTRICTIONS and RIL_UNSOL_PCO_DATA. + * + * RIL_VERSION = 15 : New commands added: + * RIL_UNSOL_MODEM_RESTART, + * RIL_REQUEST_SEND_DEVICE_STATE, + * RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER, + * RIL_REQUEST_SET_SIM_CARD_POWER, + * RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION, + * RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION + * The new parameters for RIL_REQUEST_SETUP_DATA_CALL, + * Updated data structures: RIL_DataProfileInfo_v15, RIL_InitialAttachApn_v15 + * New data structure RIL_DataRegistrationStateResponse, + * RIL_VoiceRegistrationStateResponse same is + * used in RIL_REQUEST_DATA_REGISTRATION_STATE and + * RIL_REQUEST_VOICE_REGISTRATION_STATE respectively. + * New data structure RIL_OpenChannelParams. + * RIL_REQUEST_START_NETWORK_SCAN + * RIL_REQUEST_STOP_NETWORK_SCAN + * RIL_UNSOL_NETWORK_SCAN_RESULT + */ +#define RIL_VERSION 12 +#define LAST_IMPRECISE_RIL_VERSION 12 // Better self-documented name +#define RIL_VERSION_MIN 6 /* Minimum RIL_VERSION supported */ + +#define CDMA_ALPHA_INFO_BUFFER_LENGTH 64 +#define CDMA_NUMBER_INFO_BUFFER_LENGTH 81 + +#define MAX_RILDS 3 +#define MAX_SERVICE_NAME_LENGTH 6 +#define MAX_CLIENT_ID_LENGTH 2 +#define MAX_DEBUG_SOCKET_NAME_LENGTH 12 +#define MAX_QEMU_PIPE_NAME_LENGTH 11 +#define MAX_UUID_LENGTH 64 +#define MAX_BANDS 8 +#define MAX_CHANNELS 32 +#define MAX_RADIO_ACCESS_NETWORKS 8 + + +typedef void * RIL_Token; + +typedef enum { + RIL_SOCKET_1, +#if (SIM_COUNT >= 2) + RIL_SOCKET_2, +#if (SIM_COUNT >= 3) + RIL_SOCKET_3, +#endif +#if (SIM_COUNT >= 4) + RIL_SOCKET_4, +#endif +#endif + RIL_SOCKET_NUM +} RIL_SOCKET_ID; + + +typedef enum { + RIL_E_SUCCESS = 0, + RIL_E_RADIO_NOT_AVAILABLE = 1, /* If radio did not start or is resetting */ + RIL_E_GENERIC_FAILURE = 2, + RIL_E_PASSWORD_INCORRECT = 3, /* for PIN/PIN2 methods only! */ + RIL_E_SIM_PIN2 = 4, /* Operation requires SIM PIN2 to be entered */ + RIL_E_SIM_PUK2 = 5, /* Operation requires SIM PIN2 to be entered */ + RIL_E_REQUEST_NOT_SUPPORTED = 6, + RIL_E_CANCELLED = 7, + RIL_E_OP_NOT_ALLOWED_DURING_VOICE_CALL = 8, /* data ops are not allowed during voice + call on a Class C GPRS device */ + RIL_E_OP_NOT_ALLOWED_BEFORE_REG_TO_NW = 9, /* data ops are not allowed before device + registers in network */ + RIL_E_SMS_SEND_FAIL_RETRY = 10, /* fail to send sms and need retry */ + RIL_E_SIM_ABSENT = 11, /* fail to set the location where CDMA subscription + shall be retrieved because of SIM or RUIM + card absent */ + RIL_E_SUBSCRIPTION_NOT_AVAILABLE = 12, /* fail to find CDMA subscription from specified + location */ + RIL_E_MODE_NOT_SUPPORTED = 13, /* HW does not support preferred network type */ + RIL_E_FDN_CHECK_FAILURE = 14, /* command failed because recipient is not on FDN list */ + RIL_E_ILLEGAL_SIM_OR_ME = 15, /* network selection failed due to + illegal SIM or ME */ + RIL_E_MISSING_RESOURCE = 16, /* no logical channel available */ + RIL_E_NO_SUCH_ELEMENT = 17, /* application not found on SIM */ + RIL_E_DIAL_MODIFIED_TO_USSD = 18, /* DIAL request modified to USSD */ + RIL_E_DIAL_MODIFIED_TO_SS = 19, /* DIAL request modified to SS */ + RIL_E_DIAL_MODIFIED_TO_DIAL = 20, /* DIAL request modified to DIAL with different + data */ + RIL_E_USSD_MODIFIED_TO_DIAL = 21, /* USSD request modified to DIAL */ + RIL_E_USSD_MODIFIED_TO_SS = 22, /* USSD request modified to SS */ + RIL_E_USSD_MODIFIED_TO_USSD = 23, /* USSD request modified to different USSD + request */ + RIL_E_SS_MODIFIED_TO_DIAL = 24, /* SS request modified to DIAL */ + RIL_E_SS_MODIFIED_TO_USSD = 25, /* SS request modified to USSD */ + RIL_E_SUBSCRIPTION_NOT_SUPPORTED = 26, /* Subscription not supported by RIL */ + RIL_E_SS_MODIFIED_TO_SS = 27, /* SS request modified to different SS request */ + RIL_E_LCE_NOT_SUPPORTED = 36, /* LCE service not supported(36 in RILConstants.java) */ + RIL_E_NO_MEMORY = 37, /* Not sufficient memory to process the request */ + RIL_E_INTERNAL_ERR = 38, /* Modem hit unexpected error scenario while handling + this request */ + RIL_E_SYSTEM_ERR = 39, /* Hit platform or system error */ + RIL_E_MODEM_ERR = 40, /* Vendor RIL got unexpected or incorrect response + from modem for this request */ + RIL_E_INVALID_STATE = 41, /* Unexpected request for the current state */ + RIL_E_NO_RESOURCES = 42, /* Not sufficient resource to process the request */ + RIL_E_SIM_ERR = 43, /* Received error from SIM card */ + RIL_E_INVALID_ARGUMENTS = 44, /* Received invalid arguments in request */ + RIL_E_INVALID_SIM_STATE = 45, /* Can not process the request in current SIM state */ + RIL_E_INVALID_MODEM_STATE = 46, /* Can not process the request in current Modem state */ + RIL_E_INVALID_CALL_ID = 47, /* Received invalid call id in request */ + RIL_E_NO_SMS_TO_ACK = 48, /* ACK received when there is no SMS to ack */ + RIL_E_NETWORK_ERR = 49, /* Received error from network */ + RIL_E_REQUEST_RATE_LIMITED = 50, /* Operation denied due to overly-frequent requests */ + RIL_E_SIM_BUSY = 51, /* SIM is busy */ + RIL_E_SIM_FULL = 52, /* The target EF is full */ + RIL_E_NETWORK_REJECT = 53, /* Request is rejected by network */ + RIL_E_OPERATION_NOT_ALLOWED = 54, /* Not allowed the request now */ + RIL_E_EMPTY_RECORD = 55, /* The request record is empty */ + RIL_E_INVALID_SMS_FORMAT = 56, /* Invalid sms format */ + RIL_E_ENCODING_ERR = 57, /* Message not encoded properly */ + RIL_E_INVALID_SMSC_ADDRESS = 58, /* SMSC address specified is invalid */ + RIL_E_NO_SUCH_ENTRY = 59, /* No such entry present to perform the request */ + RIL_E_NETWORK_NOT_READY = 60, /* Network is not ready to perform the request */ + RIL_E_NOT_PROVISIONED = 61, /* Device doesnot have this value provisioned */ + RIL_E_NO_SUBSCRIPTION = 62, /* Device doesnot have subscription */ + RIL_E_NO_NETWORK_FOUND = 63, /* Network cannot be found */ + RIL_E_DEVICE_IN_USE = 64, /* Operation cannot be performed because the device + is currently in use */ + RIL_E_ABORTED = 65, /* Operation aborted */ + RIL_E_INVALID_RESPONSE = 66, /* Invalid response sent by vendor code */ + // OEM specific error codes. To be used by OEM when they don't want to reveal + // specific error codes which would be replaced by Generic failure. + RIL_E_OEM_ERROR_1 = 501, + RIL_E_OEM_ERROR_2 = 502, + RIL_E_OEM_ERROR_3 = 503, + RIL_E_OEM_ERROR_4 = 504, + RIL_E_OEM_ERROR_5 = 505, + RIL_E_OEM_ERROR_6 = 506, + RIL_E_OEM_ERROR_7 = 507, + RIL_E_OEM_ERROR_8 = 508, + RIL_E_OEM_ERROR_9 = 509, + RIL_E_OEM_ERROR_10 = 510, + RIL_E_OEM_ERROR_11 = 511, + RIL_E_OEM_ERROR_12 = 512, + RIL_E_OEM_ERROR_13 = 513, + RIL_E_OEM_ERROR_14 = 514, + RIL_E_OEM_ERROR_15 = 515, + RIL_E_OEM_ERROR_16 = 516, + RIL_E_OEM_ERROR_17 = 517, + RIL_E_OEM_ERROR_18 = 518, + RIL_E_OEM_ERROR_19 = 519, + RIL_E_OEM_ERROR_20 = 520, + RIL_E_OEM_ERROR_21 = 521, + RIL_E_OEM_ERROR_22 = 522, + RIL_E_OEM_ERROR_23 = 523, + RIL_E_OEM_ERROR_24 = 524, + RIL_E_OEM_ERROR_25 = 525 +} RIL_Errno; + +typedef enum { + RIL_CALL_ACTIVE = 0, + RIL_CALL_HOLDING = 1, + RIL_CALL_DIALING = 2, /* MO call only */ + RIL_CALL_ALERTING = 3, /* MO call only */ + RIL_CALL_INCOMING = 4, /* MT call only */ + RIL_CALL_WAITING = 5 /* MT call only */ +} RIL_CallState; + +typedef enum { + RADIO_STATE_OFF = 0, /* Radio explictly powered off (eg CFUN=0) */ + RADIO_STATE_UNAVAILABLE = 1, /* Radio unavailable (eg, resetting or not booted) */ + RADIO_STATE_ON = 10 /* Radio is on */ +} RIL_RadioState; + +typedef enum { + RADIO_TECH_UNKNOWN = 0, + RADIO_TECH_GPRS = 1, + RADIO_TECH_EDGE = 2, + RADIO_TECH_UMTS = 3, + RADIO_TECH_IS95A = 4, + RADIO_TECH_IS95B = 5, + RADIO_TECH_1xRTT = 6, + RADIO_TECH_EVDO_0 = 7, + RADIO_TECH_EVDO_A = 8, + RADIO_TECH_HSDPA = 9, + RADIO_TECH_HSUPA = 10, + RADIO_TECH_HSPA = 11, + RADIO_TECH_EVDO_B = 12, + RADIO_TECH_EHRPD = 13, + RADIO_TECH_LTE = 14, + RADIO_TECH_HSPAP = 15, // HSPA+ + RADIO_TECH_GSM = 16, // Only supports voice + RADIO_TECH_TD_SCDMA = 17, + RADIO_TECH_IWLAN = 18, + RADIO_TECH_LTE_CA = 19 +} RIL_RadioTechnology; + +typedef enum { + RAF_UNKNOWN = (1 << RADIO_TECH_UNKNOWN), + RAF_GPRS = (1 << RADIO_TECH_GPRS), + RAF_EDGE = (1 << RADIO_TECH_EDGE), + RAF_UMTS = (1 << RADIO_TECH_UMTS), + RAF_IS95A = (1 << RADIO_TECH_IS95A), + RAF_IS95B = (1 << RADIO_TECH_IS95B), + RAF_1xRTT = (1 << RADIO_TECH_1xRTT), + RAF_EVDO_0 = (1 << RADIO_TECH_EVDO_0), + RAF_EVDO_A = (1 << RADIO_TECH_EVDO_A), + RAF_HSDPA = (1 << RADIO_TECH_HSDPA), + RAF_HSUPA = (1 << RADIO_TECH_HSUPA), + RAF_HSPA = (1 << RADIO_TECH_HSPA), + RAF_EVDO_B = (1 << RADIO_TECH_EVDO_B), + RAF_EHRPD = (1 << RADIO_TECH_EHRPD), + RAF_LTE = (1 << RADIO_TECH_LTE), + RAF_HSPAP = (1 << RADIO_TECH_HSPAP), + RAF_GSM = (1 << RADIO_TECH_GSM), + RAF_TD_SCDMA = (1 << RADIO_TECH_TD_SCDMA), + RAF_LTE_CA = (1 << RADIO_TECH_LTE_CA) +} RIL_RadioAccessFamily; + +typedef enum { + BAND_MODE_UNSPECIFIED = 0, //"unspecified" (selected by baseband automatically) + BAND_MODE_EURO = 1, //"EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000) + BAND_MODE_USA = 2, //"US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900) + BAND_MODE_JPN = 3, //"JPN band" (WCDMA-800 / WCDMA-IMT-2000) + BAND_MODE_AUS = 4, //"AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000) + BAND_MODE_AUS_2 = 5, //"AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850) + BAND_MODE_CELL_800 = 6, //"Cellular" (800-MHz Band) + BAND_MODE_PCS = 7, //"PCS" (1900-MHz Band) + BAND_MODE_JTACS = 8, //"Band Class 3" (JTACS Band) + BAND_MODE_KOREA_PCS = 9, //"Band Class 4" (Korean PCS Band) + BAND_MODE_5_450M = 10, //"Band Class 5" (450-MHz Band) + BAND_MODE_IMT2000 = 11, //"Band Class 6" (2-GMHz IMT2000 Band) + BAND_MODE_7_700M_2 = 12, //"Band Class 7" (Upper 700-MHz Band) + BAND_MODE_8_1800M = 13, //"Band Class 8" (1800-MHz Band) + BAND_MODE_9_900M = 14, //"Band Class 9" (900-MHz Band) + BAND_MODE_10_800M_2 = 15, //"Band Class 10" (Secondary 800-MHz Band) + BAND_MODE_EURO_PAMR_400M = 16, //"Band Class 11" (400-MHz European PAMR Band) + BAND_MODE_AWS = 17, //"Band Class 15" (AWS Band) + BAND_MODE_USA_2500M = 18 //"Band Class 16" (US 2.5-GHz Band) +} RIL_RadioBandMode; + +typedef enum { + RC_PHASE_CONFIGURED = 0, // LM is configured is initial value and value after FINISH completes + RC_PHASE_START = 1, // START is sent before Apply and indicates that an APPLY will be + // forthcoming with these same parameters + RC_PHASE_APPLY = 2, // APPLY is sent after all LM's receive START and returned + // RIL_RadioCapability.status = 0, if any START's fail no + // APPLY will be sent + RC_PHASE_UNSOL_RSP = 3, // UNSOL_RSP is sent with RIL_UNSOL_RADIO_CAPABILITY + RC_PHASE_FINISH = 4 // FINISH is sent after all commands have completed. If an error + // occurs in any previous command the RIL_RadioAccessesFamily and + // logicalModemUuid fields will be the prior configuration thus + // restoring the configuration to the previous value. An error + // returned by this command will generally be ignored or may + // cause that logical modem to be removed from service. +} RadioCapabilityPhase; + +typedef enum { + RC_STATUS_NONE = 0, // This parameter has no meaning with RC_PHASE_START, + // RC_PHASE_APPLY + RC_STATUS_SUCCESS = 1, // Tell modem the action transaction of set radio + // capability was success with RC_PHASE_FINISH + RC_STATUS_FAIL = 2, // Tell modem the action transaction of set radio + // capability is fail with RC_PHASE_FINISH. +} RadioCapabilityStatus; + +#define RIL_RADIO_CAPABILITY_VERSION 1 +typedef struct { + int version; // Version of structure, RIL_RADIO_CAPABILITY_VERSION + int session; // Unique session value defined by framework returned in all "responses/unsol" + int phase; // CONFIGURED, START, APPLY, FINISH + int rat; // RIL_RadioAccessFamily for the radio + char logicalModemUuid[MAX_UUID_LENGTH]; // A UUID typically "com.xxxx.lmX where X is the logical modem. + int status; // Return status and an input parameter for RC_PHASE_FINISH +} RIL_RadioCapability; + +// Do we want to split Data from Voice and the use +// RIL_RadioTechnology for get/setPreferredVoice/Data ? +typedef enum { + PREF_NET_TYPE_GSM_WCDMA = 0, /* GSM/WCDMA (WCDMA preferred) */ + PREF_NET_TYPE_GSM_ONLY = 1, /* GSM only */ + PREF_NET_TYPE_WCDMA = 2, /* WCDMA */ + PREF_NET_TYPE_GSM_WCDMA_AUTO = 3, /* GSM/WCDMA (auto mode, according to PRL) */ + PREF_NET_TYPE_CDMA_EVDO_AUTO = 4, /* CDMA and EvDo (auto mode, according to PRL) */ + PREF_NET_TYPE_CDMA_ONLY = 5, /* CDMA only */ + PREF_NET_TYPE_EVDO_ONLY = 6, /* EvDo only */ + PREF_NET_TYPE_GSM_WCDMA_CDMA_EVDO_AUTO = 7, /* GSM/WCDMA, CDMA, and EvDo (auto mode, according to PRL) */ + PREF_NET_TYPE_LTE_CDMA_EVDO = 8, /* LTE, CDMA and EvDo */ + PREF_NET_TYPE_LTE_GSM_WCDMA = 9, /* LTE, GSM/WCDMA */ + PREF_NET_TYPE_LTE_CMDA_EVDO_GSM_WCDMA = 10, /* LTE, CDMA, EvDo, GSM/WCDMA */ + PREF_NET_TYPE_LTE_ONLY = 11, /* LTE only */ + PREF_NET_TYPE_LTE_WCDMA = 12, /* LTE/WCDMA */ + PREF_NET_TYPE_TD_SCDMA_ONLY = 13, /* TD-SCDMA only */ + PREF_NET_TYPE_TD_SCDMA_WCDMA = 14, /* TD-SCDMA and WCDMA */ + PREF_NET_TYPE_TD_SCDMA_LTE = 15, /* TD-SCDMA and LTE */ + PREF_NET_TYPE_TD_SCDMA_GSM = 16, /* TD-SCDMA and GSM */ + PREF_NET_TYPE_TD_SCDMA_GSM_LTE = 17, /* TD-SCDMA,GSM and LTE */ + PREF_NET_TYPE_TD_SCDMA_GSM_WCDMA = 18, /* TD-SCDMA, GSM/WCDMA */ + PREF_NET_TYPE_TD_SCDMA_WCDMA_LTE = 19, /* TD-SCDMA, WCDMA and LTE */ + PREF_NET_TYPE_TD_SCDMA_GSM_WCDMA_LTE = 20, /* TD-SCDMA, GSM/WCDMA and LTE */ + PREF_NET_TYPE_TD_SCDMA_GSM_WCDMA_CDMA_EVDO_AUTO = 21, /* TD-SCDMA, GSM/WCDMA, CDMA and EvDo */ + PREF_NET_TYPE_TD_SCDMA_LTE_CDMA_EVDO_GSM_WCDMA = 22 /* TD-SCDMA, LTE, CDMA, EvDo GSM/WCDMA */ +} RIL_PreferredNetworkType; + +/* Source for cdma subscription */ +typedef enum { + CDMA_SUBSCRIPTION_SOURCE_RUIM_SIM = 0, + CDMA_SUBSCRIPTION_SOURCE_NV = 1 +} RIL_CdmaSubscriptionSource; + +/* User-to-User signaling Info activation types derived from 3GPP 23.087 v8.0 */ +typedef enum { + RIL_UUS_TYPE1_IMPLICIT = 0, + RIL_UUS_TYPE1_REQUIRED = 1, + RIL_UUS_TYPE1_NOT_REQUIRED = 2, + RIL_UUS_TYPE2_REQUIRED = 3, + RIL_UUS_TYPE2_NOT_REQUIRED = 4, + RIL_UUS_TYPE3_REQUIRED = 5, + RIL_UUS_TYPE3_NOT_REQUIRED = 6 +} RIL_UUS_Type; + +/* User-to-User Signaling Information data coding schemes. Possible values for + * Octet 3 (Protocol Discriminator field) in the UUIE. The values have been + * specified in section 10.5.4.25 of 3GPP TS 24.008 */ +typedef enum { + RIL_UUS_DCS_USP = 0, /* User specified protocol */ + RIL_UUS_DCS_OSIHLP = 1, /* OSI higher layer protocol */ + RIL_UUS_DCS_X244 = 2, /* X.244 */ + RIL_UUS_DCS_RMCF = 3, /* Reserved for system mangement + convergence function */ + RIL_UUS_DCS_IA5c = 4 /* IA5 characters */ +} RIL_UUS_DCS; + +/* User-to-User Signaling Information defined in 3GPP 23.087 v8.0 + * This data is passed in RIL_ExtensionRecord and rec contains this + * structure when type is RIL_UUS_INFO_EXT_REC */ +typedef struct { + RIL_UUS_Type uusType; /* UUS Type */ + RIL_UUS_DCS uusDcs; /* UUS Data Coding Scheme */ + int uusLength; /* Length of UUS Data */ + char * uusData; /* UUS Data */ +} RIL_UUS_Info; + +/* CDMA Signal Information Record as defined in C.S0005 section 3.7.5.5 */ +typedef struct { + char isPresent; /* non-zero if signal information record is present */ + char signalType; /* as defined 3.7.5.5-1 */ + char alertPitch; /* as defined 3.7.5.5-2 */ + char signal; /* as defined 3.7.5.5-3, 3.7.5.5-4 or 3.7.5.5-5 */ +} RIL_CDMA_SignalInfoRecord; + +typedef struct { + RIL_CallState state; + unsigned char index; /* Connection Index for use with, eg, AT+CHLD */ + unsigned char call_id; /* Samsung field */ + unsigned char pad; /* Unsigned gap padding */ + char pad1; /* Signed gap padding */ + int toa; /* type of address, eg 145 = intl */ + char isMpty; /* nonzero if is mpty call */ + char isMT; /* nonzero if call is mobile terminated */ + char als; /* ALS line indicator if available + (0 = line 1) */ + char isVoice; /* nonzero if this is is a voice call */ + char isVoicePrivacy; /* nonzero if CDMA voice privacy mode is active */ + char * number; /* Remote party number */ + int numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown 3=Payphone */ + char * name; /* Remote party name */ + int namePresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown 3=Payphone */ + long call_details; /* Samsung call detail additions. Just padding, do not use */ + RIL_UUS_Info * uusInfo; /* NULL or Pointer to User-User Signaling Information */ +} RIL_Call; + +/* Deprecated, use RIL_Data_Call_Response_v6 */ +typedef struct { + int cid; /* Context ID, uniquely identifies this call */ + int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */ + char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1. + For example, "IP", "IPV6", "IPV4V6", or "PPP". */ + char * apn; /* ignored */ + char * address; /* An address, e.g., "192.0.1.3" or "2001:db8::1". */ +} RIL_Data_Call_Response_v4; + +/* + * Returned by RIL_REQUEST_SETUP_DATA_CALL, RIL_REQUEST_DATA_CALL_LIST + * and RIL_UNSOL_DATA_CALL_LIST_CHANGED, on error status != 0. + */ +typedef struct { + int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */ + int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry + back-off timer value RIL wants to override the one + pre-configured in FW. + The unit is miliseconds. + The value < 0 means no value is suggested. + The value 0 means retry should be done ASAP. + The value of INT_MAX(0x7fffffff) means no retry. */ + int cid; /* Context ID, uniquely identifies this call */ + int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */ + char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1. + For example, "IP", "IPV6", "IPV4V6", or "PPP". If status is + PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED this is the type supported + such as "IP" or "IPV6" */ + char * ifname; /* The network interface name */ + char * addresses; /* A space-delimited list of addresses with optional "/" prefix length, + e.g., "192.0.1.3" or "192.0.1.11/16 2001:db8::1/64". + May not be empty, typically 1 IPv4 or 1 IPv6 or + one of each. If the prefix length is absent the addresses + are assumed to be point to point with IPv4 having a prefix + length of 32 and IPv6 128. */ + char * dnses; /* A space-delimited list of DNS server addresses, + e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". + May be empty. */ + char * gateways; /* A space-delimited list of default gateway addresses, + e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". + May be empty in which case the addresses represent point + to point connections. */ +} RIL_Data_Call_Response_v6; + +typedef struct { + int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */ + int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry + back-off timer value RIL wants to override the one + pre-configured in FW. + The unit is miliseconds. + The value < 0 means no value is suggested. + The value 0 means retry should be done ASAP. + The value of INT_MAX(0x7fffffff) means no retry. */ + int cid; /* Context ID, uniquely identifies this call */ + int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */ + char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1. + For example, "IP", "IPV6", "IPV4V6", or "PPP". If status is + PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED this is the type supported + such as "IP" or "IPV6" */ + char * ifname; /* The network interface name */ + char * addresses; /* A space-delimited list of addresses with optional "/" prefix length, + e.g., "192.0.1.3" or "192.0.1.11/16 2001:db8::1/64". + May not be empty, typically 1 IPv4 or 1 IPv6 or + one of each. If the prefix length is absent the addresses + are assumed to be point to point with IPv4 having a prefix + length of 32 and IPv6 128. */ + char * dnses; /* A space-delimited list of DNS server addresses, + e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". + May be empty. */ + char * gateways; /* A space-delimited list of default gateway addresses, + e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". + May be empty in which case the addresses represent point + to point connections. */ + char * pcscf; /* the Proxy Call State Control Function address + via PCO(Protocol Configuration Option) for IMS client. */ +} RIL_Data_Call_Response_v9; + +typedef struct { + int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */ + int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry + back-off timer value RIL wants to override the one + pre-configured in FW. + The unit is miliseconds. + The value < 0 means no value is suggested. + The value 0 means retry should be done ASAP. + The value of INT_MAX(0x7fffffff) means no retry. */ + int cid; /* Context ID, uniquely identifies this call */ + int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */ + char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1. + For example, "IP", "IPV6", "IPV4V6", or "PPP". If status is + PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED this is the type supported + such as "IP" or "IPV6" */ + char * ifname; /* The network interface name */ + char * addresses; /* A space-delimited list of addresses with optional "/" prefix length, + e.g., "192.0.1.3" or "192.0.1.11/16 2001:db8::1/64". + May not be empty, typically 1 IPv4 or 1 IPv6 or + one of each. If the prefix length is absent the addresses + are assumed to be point to point with IPv4 having a prefix + length of 32 and IPv6 128. */ + char * dnses; /* A space-delimited list of DNS server addresses, + e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". + May be empty. */ + char * gateways; /* A space-delimited list of default gateway addresses, + e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1". + May be empty in which case the addresses represent point + to point connections. */ + char * pcscf; /* the Proxy Call State Control Function address + via PCO(Protocol Configuration Option) for IMS client. */ + int mtu; /* MTU received from network + Value <= 0 means network has either not sent a value or + sent an invalid value */ +} RIL_Data_Call_Response_v11; + +typedef enum { + RADIO_TECH_3GPP = 1, /* 3GPP Technologies - GSM, WCDMA */ + RADIO_TECH_3GPP2 = 2 /* 3GPP2 Technologies - CDMA */ +} RIL_RadioTechnologyFamily; + +typedef struct { + RIL_RadioTechnologyFamily tech; + unsigned char retry; /* 0 == not retry, nonzero == retry */ + int messageRef; /* Valid field if retry is set to nonzero. + Contains messageRef from RIL_SMS_Response + corresponding to failed MO SMS. + */ + + union { + /* Valid field if tech is RADIO_TECH_3GPP2. See RIL_REQUEST_CDMA_SEND_SMS */ + RIL_CDMA_SMS_Message* cdmaMessage; + + /* Valid field if tech is RADIO_TECH_3GPP. See RIL_REQUEST_SEND_SMS */ + char** gsmMessage; /* This is an array of pointers where pointers + are contiguous but elements pointed by those pointers + are not contiguous + */ + } message; +} RIL_IMS_SMS_Message; + +typedef struct { + int messageRef; /* TP-Message-Reference for GSM, + and BearerData MessageId for CDMA + (See 3GPP2 C.S0015-B, v2.0, table 4.5-1). */ + char *ackPDU; /* or NULL if n/a */ + int errorCode; /* See 3GPP 27.005, 3.2.5 for GSM/UMTS, + 3GPP2 N.S0005 (IS-41C) Table 171 for CDMA, + -1 if unknown or not applicable*/ +} RIL_SMS_Response; + +typedef struct { + RIL_SMS_Response response; + int retryCount; /* Samsung */ +} RIL_SMS_Response_Ext; + +/** Used by RIL_REQUEST_WRITE_SMS_TO_SIM */ +typedef struct { + int status; /* Status of message. See TS 27.005 3.1, "": */ + /* 0 = "REC UNREAD" */ + /* 1 = "REC READ" */ + /* 2 = "STO UNSENT" */ + /* 3 = "STO SENT" */ + char * pdu; /* PDU of message to write, as an ASCII hex string less the SMSC address, + the TP-layer length is "strlen(pdu)/2". */ + char * smsc; /* SMSC address in GSM BCD format prefixed by a length byte + (as expected by TS 27.005) or NULL for default SMSC */ +} RIL_SMS_WriteArgs; + +/** Used by RIL_REQUEST_DIAL */ +typedef struct { + char * address; + int clir; + /* (same as 'n' paremeter in TS 27.007 7.7 "+CLIR" + * clir == 0 on "use subscription default value" + * clir == 1 on "CLIR invocation" (restrict CLI presentation) + * clir == 2 on "CLIR suppression" (allow CLI presentation) + */ + RIL_UUS_Info * uusInfo; /* NULL or Pointer to User-User Signaling Information */ +} RIL_Dial; + +typedef struct { + int command; /* one of the commands listed for TS 27.007 +CRSM*/ + int fileid; /* EF id */ + char *path; /* "pathid" from TS 27.007 +CRSM command. + Path is in hex asciii format eg "7f205f70" + Path must always be provided. + */ + int p1; + int p2; + int p3; + char *data; /* May be NULL*/ + char *pin2; /* May be NULL*/ +} RIL_SIM_IO_v5; + +typedef struct { + int command; /* one of the commands listed for TS 27.007 +CRSM*/ + int fileid; /* EF id */ + char *path; /* "pathid" from TS 27.007 +CRSM command. + Path is in hex asciii format eg "7f205f70" + Path must always be provided. + */ + int p1; + int p2; + int p3; + char *data; /* May be NULL*/ + char *pin2; /* May be NULL*/ + char *aidPtr; /* AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. */ +} RIL_SIM_IO_v6; + +/* Used by RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL and + * RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC. */ +typedef struct { + int sessionid; /* "sessionid" from TS 27.007 +CGLA command. Should be + ignored for +CSIM command. */ + + /* Following fields are used to derive the APDU ("command" and "length" + values in TS 27.007 +CSIM and +CGLA commands). */ + int cla; + int instruction; + int p1; + int p2; + int p3; /* A negative P3 implies a 4 byte APDU. */ + char *data; /* May be NULL. In hex string format. */ +} RIL_SIM_APDU; + +typedef struct { + int sw1; + int sw2; + char *simResponse; /* In hex string format ([a-fA-F0-9]*), except for SIM_AUTHENTICATION + response for which it is in Base64 format, see 3GPP TS 31.102 7.1.2 */ +} RIL_SIM_IO_Response; + +/* See also com.android.internal.telephony.gsm.CallForwardInfo */ + +typedef struct { + int status; /* + * For RIL_REQUEST_QUERY_CALL_FORWARD_STATUS + * status 1 = active, 0 = not active + * + * For RIL_REQUEST_SET_CALL_FORWARD: + * status is: + * 0 = disable + * 1 = enable + * 2 = interrogate + * 3 = registeration + * 4 = erasure + */ + + int reason; /* from TS 27.007 7.11 "reason" */ + int serviceClass;/* From 27.007 +CCFC/+CLCK "class" + See table for Android mapping from + MMI service code + 0 means user doesn't input class */ + int toa; /* "type" from TS 27.007 7.11 */ + char * number; /* "number" from TS 27.007 7.11. May be NULL */ + int timeSeconds; /* for CF no reply only */ +}RIL_CallForwardInfo; + +typedef struct { + char * cid; /* Combination of LAC and Cell Id in 32 bits in GSM. + * Upper 16 bits is LAC and lower 16 bits + * is CID (as described in TS 27.005) + * Primary Scrambling Code (as described in TS 25.331) + * in 9 bits in UMTS + * Valid values are hexadecimal 0x0000 - 0xffffffff. + */ + int rssi; /* Received RSSI in GSM, + * Level index of CPICH Received Signal Code Power in UMTS + */ +} RIL_NeighboringCell; + +typedef struct { + char lce_status; /* LCE service status: + * -1 = not supported; + * 0 = stopped; + * 1 = active. + */ + unsigned int actual_interval_ms; /* actual LCE reporting interval, + * meaningful only if LCEStatus = 1. + */ +} RIL_LceStatusInfo; + +typedef struct { + unsigned int last_hop_capacity_kbps; /* last-hop cellular capacity: kilobits/second. */ + unsigned char confidence_level; /* capacity estimate confidence: 0-100 */ + unsigned char lce_suspended; /* LCE report going to be suspended? (e.g., radio + * moves to inactive state or network type change) + * 1 = suspended; + * 0 = not suspended. + */ +} RIL_LceDataInfo; + +typedef enum { + RIL_MATCH_ALL = 0, /* Apply to all carriers with the same mcc/mnc */ + RIL_MATCH_SPN = 1, /* Use SPN and mcc/mnc to identify the carrier */ + RIL_MATCH_IMSI_PREFIX = 2, /* Use IMSI prefix and mcc/mnc to identify the carrier */ + RIL_MATCH_GID1 = 3, /* Use GID1 and mcc/mnc to identify the carrier */ + RIL_MATCH_GID2 = 4, /* Use GID2 and mcc/mnc to identify the carrier */ +} RIL_CarrierMatchType; + +typedef struct { + const char * mcc; + const char * mnc; + RIL_CarrierMatchType match_type; /* Specify match type for the carrier. + * If it's RIL_MATCH_ALL, match_data is null; + * otherwise, match_data is the value for the match type. + */ + const char * match_data; +} RIL_Carrier; + +typedef struct { + int32_t len_allowed_carriers; /* length of array allowed_carriers */ + int32_t len_excluded_carriers; /* length of array excluded_carriers */ + RIL_Carrier * allowed_carriers; /* whitelist for allowed carriers */ + RIL_Carrier * excluded_carriers; /* blacklist for explicitly excluded carriers + * which match allowed_carriers. Eg. allowed_carriers match + * mcc/mnc, excluded_carriers has same mcc/mnc and gid1 + * is ABCD. It means except the carrier whose gid1 is ABCD, + * all carriers with the same mcc/mnc are allowed. + */ +} RIL_CarrierRestrictions; + +typedef struct { + char * mcc; /* MCC of the Carrier. */ + char * mnc ; /* MNC of the Carrier. */ + uint8_t * carrierKey; /* Public Key from the Carrier used to encrypt the + * IMSI/IMPI. + */ + char * keyIdentifier; /* The keyIdentifier Attribute value pair that helps + * a server locate the private key to decrypt the + * permanent identity. + */ + int64_t expirationTime; /* Date-Time (in UTC) when the key will expire. */ + +} RIL_CarrierInfoForImsiEncryption; + +/* See RIL_REQUEST_LAST_CALL_FAIL_CAUSE */ +typedef enum { + CALL_FAIL_UNOBTAINABLE_NUMBER = 1, + CALL_FAIL_NO_ROUTE_TO_DESTINATION = 3, + CALL_FAIL_CHANNEL_UNACCEPTABLE = 6, + CALL_FAIL_OPERATOR_DETERMINED_BARRING = 8, + CALL_FAIL_NORMAL = 16, + CALL_FAIL_BUSY = 17, + CALL_FAIL_NO_USER_RESPONDING = 18, + CALL_FAIL_NO_ANSWER_FROM_USER = 19, + CALL_FAIL_CALL_REJECTED = 21, + CALL_FAIL_NUMBER_CHANGED = 22, + CALL_FAIL_PREEMPTION = 25, + CALL_FAIL_DESTINATION_OUT_OF_ORDER = 27, + CALL_FAIL_INVALID_NUMBER_FORMAT = 28, + CALL_FAIL_FACILITY_REJECTED = 29, + CALL_FAIL_RESP_TO_STATUS_ENQUIRY = 30, + CALL_FAIL_NORMAL_UNSPECIFIED = 31, + CALL_FAIL_CONGESTION = 34, + CALL_FAIL_NETWORK_OUT_OF_ORDER = 38, + CALL_FAIL_TEMPORARY_FAILURE = 41, + CALL_FAIL_SWITCHING_EQUIPMENT_CONGESTION = 42, + CALL_FAIL_ACCESS_INFORMATION_DISCARDED = 43, + CALL_FAIL_REQUESTED_CIRCUIT_OR_CHANNEL_NOT_AVAILABLE = 44, + CALL_FAIL_RESOURCES_UNAVAILABLE_OR_UNSPECIFIED = 47, + CALL_FAIL_QOS_UNAVAILABLE = 49, + CALL_FAIL_REQUESTED_FACILITY_NOT_SUBSCRIBED = 50, + CALL_FAIL_INCOMING_CALLS_BARRED_WITHIN_CUG = 55, + CALL_FAIL_BEARER_CAPABILITY_NOT_AUTHORIZED = 57, + CALL_FAIL_BEARER_CAPABILITY_UNAVAILABLE = 58, + CALL_FAIL_SERVICE_OPTION_NOT_AVAILABLE = 63, + CALL_FAIL_BEARER_SERVICE_NOT_IMPLEMENTED = 65, + CALL_FAIL_ACM_LIMIT_EXCEEDED = 68, + CALL_FAIL_REQUESTED_FACILITY_NOT_IMPLEMENTED = 69, + CALL_FAIL_ONLY_DIGITAL_INFORMATION_BEARER_AVAILABLE = 70, + CALL_FAIL_SERVICE_OR_OPTION_NOT_IMPLEMENTED = 79, + CALL_FAIL_INVALID_TRANSACTION_IDENTIFIER = 81, + CALL_FAIL_USER_NOT_MEMBER_OF_CUG = 87, + CALL_FAIL_INCOMPATIBLE_DESTINATION = 88, + CALL_FAIL_INVALID_TRANSIT_NW_SELECTION = 91, + CALL_FAIL_SEMANTICALLY_INCORRECT_MESSAGE = 95, + CALL_FAIL_INVALID_MANDATORY_INFORMATION = 96, + CALL_FAIL_MESSAGE_TYPE_NON_IMPLEMENTED = 97, + CALL_FAIL_MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 98, + CALL_FAIL_INFORMATION_ELEMENT_NON_EXISTENT = 99, + CALL_FAIL_CONDITIONAL_IE_ERROR = 100, + CALL_FAIL_MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 101, + CALL_FAIL_RECOVERY_ON_TIMER_EXPIRED = 102, + CALL_FAIL_PROTOCOL_ERROR_UNSPECIFIED = 111, + CALL_FAIL_INTERWORKING_UNSPECIFIED = 127, + CALL_FAIL_CALL_BARRED = 240, + CALL_FAIL_FDN_BLOCKED = 241, + CALL_FAIL_IMSI_UNKNOWN_IN_VLR = 242, + CALL_FAIL_IMEI_NOT_ACCEPTED = 243, + CALL_FAIL_DIAL_MODIFIED_TO_USSD = 244, /* STK Call Control */ + CALL_FAIL_DIAL_MODIFIED_TO_SS = 245, + CALL_FAIL_DIAL_MODIFIED_TO_DIAL = 246, + CALL_FAIL_RADIO_OFF = 247, /* Radio is OFF */ + CALL_FAIL_OUT_OF_SERVICE = 248, /* No cellular coverage */ + CALL_FAIL_NO_VALID_SIM = 249, /* No valid SIM is present */ + CALL_FAIL_RADIO_INTERNAL_ERROR = 250, /* Internal error at Modem */ + CALL_FAIL_NETWORK_RESP_TIMEOUT = 251, /* No response from network */ + CALL_FAIL_NETWORK_REJECT = 252, /* Explicit network reject */ + CALL_FAIL_RADIO_ACCESS_FAILURE = 253, /* RRC connection failure. Eg.RACH */ + CALL_FAIL_RADIO_LINK_FAILURE = 254, /* Radio Link Failure */ + CALL_FAIL_RADIO_LINK_LOST = 255, /* Radio link lost due to poor coverage */ + CALL_FAIL_RADIO_UPLINK_FAILURE = 256, /* Radio uplink failure */ + CALL_FAIL_RADIO_SETUP_FAILURE = 257, /* RRC connection setup failure */ + CALL_FAIL_RADIO_RELEASE_NORMAL = 258, /* RRC connection release, normal */ + CALL_FAIL_RADIO_RELEASE_ABNORMAL = 259, /* RRC connection release, abnormal */ + CALL_FAIL_ACCESS_CLASS_BLOCKED = 260, /* Access class barring */ + CALL_FAIL_NETWORK_DETACH = 261, /* Explicit network detach */ + CALL_FAIL_CDMA_LOCKED_UNTIL_POWER_CYCLE = 1000, + CALL_FAIL_CDMA_DROP = 1001, + CALL_FAIL_CDMA_INTERCEPT = 1002, + CALL_FAIL_CDMA_REORDER = 1003, + CALL_FAIL_CDMA_SO_REJECT = 1004, + CALL_FAIL_CDMA_RETRY_ORDER = 1005, + CALL_FAIL_CDMA_ACCESS_FAILURE = 1006, + CALL_FAIL_CDMA_PREEMPTED = 1007, + CALL_FAIL_CDMA_NOT_EMERGENCY = 1008, /* For non-emergency number dialed + during emergency callback mode */ + CALL_FAIL_CDMA_ACCESS_BLOCKED = 1009, /* CDMA network access probes blocked */ + + /* OEM specific error codes. Used to distinguish error from + * CALL_FAIL_ERROR_UNSPECIFIED and help assist debugging */ + CALL_FAIL_OEM_CAUSE_1 = 0xf001, + CALL_FAIL_OEM_CAUSE_2 = 0xf002, + CALL_FAIL_OEM_CAUSE_3 = 0xf003, + CALL_FAIL_OEM_CAUSE_4 = 0xf004, + CALL_FAIL_OEM_CAUSE_5 = 0xf005, + CALL_FAIL_OEM_CAUSE_6 = 0xf006, + CALL_FAIL_OEM_CAUSE_7 = 0xf007, + CALL_FAIL_OEM_CAUSE_8 = 0xf008, + CALL_FAIL_OEM_CAUSE_9 = 0xf009, + CALL_FAIL_OEM_CAUSE_10 = 0xf00a, + CALL_FAIL_OEM_CAUSE_11 = 0xf00b, + CALL_FAIL_OEM_CAUSE_12 = 0xf00c, + CALL_FAIL_OEM_CAUSE_13 = 0xf00d, + CALL_FAIL_OEM_CAUSE_14 = 0xf00e, + CALL_FAIL_OEM_CAUSE_15 = 0xf00f, + + CALL_FAIL_ERROR_UNSPECIFIED = 0xffff /* This error will be deprecated soon, + vendor code should make sure to map error + code to specific error */ +} RIL_LastCallFailCause; + +typedef struct { + RIL_LastCallFailCause cause_code; + char * vendor_cause; +} RIL_LastCallFailCauseInfo; + +/* See RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE */ +typedef enum { + PDP_FAIL_NONE = 0, /* No error, connection ok */ + + /* an integer cause code defined in TS 24.008 + section 6.1.3.1.3 or TS 24.301 Release 8+ Annex B. + If the implementation does not have access to the exact cause codes, + then it should return one of the following values, + as the UI layer needs to distinguish these + cases for error notification and potential retries. */ + PDP_FAIL_OPERATOR_BARRED = 0x08, /* no retry */ + PDP_FAIL_NAS_SIGNALLING = 0x0E, + PDP_FAIL_LLC_SNDCP = 0x19, + PDP_FAIL_INSUFFICIENT_RESOURCES = 0x1A, + PDP_FAIL_MISSING_UKNOWN_APN = 0x1B, /* no retry */ + PDP_FAIL_UNKNOWN_PDP_ADDRESS_TYPE = 0x1C, /* no retry */ + PDP_FAIL_USER_AUTHENTICATION = 0x1D, /* no retry */ + PDP_FAIL_ACTIVATION_REJECT_GGSN = 0x1E, /* no retry */ + PDP_FAIL_ACTIVATION_REJECT_UNSPECIFIED = 0x1F, + PDP_FAIL_SERVICE_OPTION_NOT_SUPPORTED = 0x20, /* no retry */ + PDP_FAIL_SERVICE_OPTION_NOT_SUBSCRIBED = 0x21, /* no retry */ + PDP_FAIL_SERVICE_OPTION_OUT_OF_ORDER = 0x22, + PDP_FAIL_NSAPI_IN_USE = 0x23, /* no retry */ + PDP_FAIL_REGULAR_DEACTIVATION = 0x24, /* possibly restart radio, + based on framework config */ + PDP_FAIL_QOS_NOT_ACCEPTED = 0x25, + PDP_FAIL_NETWORK_FAILURE = 0x26, + PDP_FAIL_UMTS_REACTIVATION_REQ = 0x27, + PDP_FAIL_FEATURE_NOT_SUPP = 0x28, + PDP_FAIL_TFT_SEMANTIC_ERROR = 0x29, + PDP_FAIL_TFT_SYTAX_ERROR = 0x2A, + PDP_FAIL_UNKNOWN_PDP_CONTEXT = 0x2B, + PDP_FAIL_FILTER_SEMANTIC_ERROR = 0x2C, + PDP_FAIL_FILTER_SYTAX_ERROR = 0x2D, + PDP_FAIL_PDP_WITHOUT_ACTIVE_TFT = 0x2E, + PDP_FAIL_ONLY_IPV4_ALLOWED = 0x32, /* no retry */ + PDP_FAIL_ONLY_IPV6_ALLOWED = 0x33, /* no retry */ + PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED = 0x34, + PDP_FAIL_ESM_INFO_NOT_RECEIVED = 0x35, + PDP_FAIL_PDN_CONN_DOES_NOT_EXIST = 0x36, + PDP_FAIL_MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED = 0x37, + PDP_FAIL_MAX_ACTIVE_PDP_CONTEXT_REACHED = 0x41, + PDP_FAIL_UNSUPPORTED_APN_IN_CURRENT_PLMN = 0x42, + PDP_FAIL_INVALID_TRANSACTION_ID = 0x51, + PDP_FAIL_MESSAGE_INCORRECT_SEMANTIC = 0x5F, + PDP_FAIL_INVALID_MANDATORY_INFO = 0x60, + PDP_FAIL_MESSAGE_TYPE_UNSUPPORTED = 0x61, + PDP_FAIL_MSG_TYPE_NONCOMPATIBLE_STATE = 0x62, + PDP_FAIL_UNKNOWN_INFO_ELEMENT = 0x63, + PDP_FAIL_CONDITIONAL_IE_ERROR = 0x64, + PDP_FAIL_MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE = 0x65, + PDP_FAIL_PROTOCOL_ERRORS = 0x6F, /* no retry */ + PDP_FAIL_APN_TYPE_CONFLICT = 0x70, + PDP_FAIL_INVALID_PCSCF_ADDR = 0x71, + PDP_FAIL_INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN = 0x72, + PDP_FAIL_EMM_ACCESS_BARRED = 0x73, + PDP_FAIL_EMERGENCY_IFACE_ONLY = 0x74, + PDP_FAIL_IFACE_MISMATCH = 0x75, + PDP_FAIL_COMPANION_IFACE_IN_USE = 0x76, + PDP_FAIL_IP_ADDRESS_MISMATCH = 0x77, + PDP_FAIL_IFACE_AND_POL_FAMILY_MISMATCH = 0x78, + PDP_FAIL_EMM_ACCESS_BARRED_INFINITE_RETRY = 0x79, + PDP_FAIL_AUTH_FAILURE_ON_EMERGENCY_CALL = 0x7A, + + // OEM specific error codes. To be used by OEMs when they don't want to + // reveal error code which would be replaced by PDP_FAIL_ERROR_UNSPECIFIED + PDP_FAIL_OEM_DCFAILCAUSE_1 = 0x1001, + PDP_FAIL_OEM_DCFAILCAUSE_2 = 0x1002, + PDP_FAIL_OEM_DCFAILCAUSE_3 = 0x1003, + PDP_FAIL_OEM_DCFAILCAUSE_4 = 0x1004, + PDP_FAIL_OEM_DCFAILCAUSE_5 = 0x1005, + PDP_FAIL_OEM_DCFAILCAUSE_6 = 0x1006, + PDP_FAIL_OEM_DCFAILCAUSE_7 = 0x1007, + PDP_FAIL_OEM_DCFAILCAUSE_8 = 0x1008, + PDP_FAIL_OEM_DCFAILCAUSE_9 = 0x1009, + PDP_FAIL_OEM_DCFAILCAUSE_10 = 0x100A, + PDP_FAIL_OEM_DCFAILCAUSE_11 = 0x100B, + PDP_FAIL_OEM_DCFAILCAUSE_12 = 0x100C, + PDP_FAIL_OEM_DCFAILCAUSE_13 = 0x100D, + PDP_FAIL_OEM_DCFAILCAUSE_14 = 0x100E, + PDP_FAIL_OEM_DCFAILCAUSE_15 = 0x100F, + + /* Not mentioned in the specification */ + PDP_FAIL_VOICE_REGISTRATION_FAIL = -1, + PDP_FAIL_DATA_REGISTRATION_FAIL = -2, + + /* reasons for data call drop - network/modem disconnect */ + PDP_FAIL_SIGNAL_LOST = -3, + PDP_FAIL_PREF_RADIO_TECH_CHANGED = -4,/* preferred technology has changed, should retry + with parameters appropriate for new technology */ + PDP_FAIL_RADIO_POWER_OFF = -5, /* data call was disconnected because radio was resetting, + powered off - no retry */ + PDP_FAIL_TETHERED_CALL_ACTIVE = -6, /* data call was disconnected by modem because tethered + mode was up on same APN/data profile - no retry until + tethered call is off */ + + PDP_FAIL_ERROR_UNSPECIFIED = 0xffff, /* retry silently. Will be deprecated soon as + new error codes are added making this unnecessary */ +} RIL_DataCallFailCause; + +/* See RIL_REQUEST_SETUP_DATA_CALL */ +typedef enum { + RIL_DATA_PROFILE_DEFAULT = 0, + RIL_DATA_PROFILE_TETHERED = 1, + RIL_DATA_PROFILE_IMS = 2, + RIL_DATA_PROFILE_FOTA = 3, + RIL_DATA_PROFILE_CBS = 4, + RIL_DATA_PROFILE_OEM_BASE = 1000, /* Start of OEM-specific profiles */ + RIL_DATA_PROFILE_INVALID = 0xFFFFFFFF +} RIL_DataProfile; + +/* Used by RIL_UNSOL_SUPP_SVC_NOTIFICATION */ +typedef struct { + int notificationType; /* + * 0 = MO intermediate result code + * 1 = MT unsolicited result code + */ + int code; /* See 27.007 7.17 + "code1" for MO + "code2" for MT. */ + int index; /* CUG index. See 27.007 7.17. */ + int type; /* "type" from 27.007 7.17 (MT only). */ + char * number; /* "number" from 27.007 7.17 + (MT only, may be NULL). */ +} RIL_SuppSvcNotification; + +#define RIL_CARD_MAX_APPS 8 + +typedef enum { + RIL_CARDSTATE_ABSENT = 0, + RIL_CARDSTATE_PRESENT = 1, + RIL_CARDSTATE_ERROR = 2, + RIL_CARDSTATE_RESTRICTED = 3 /* card is present but not usable due to carrier restrictions.*/ +} RIL_CardState; + +typedef enum { + RIL_PERSOSUBSTATE_UNKNOWN = 0, /* initial state */ + RIL_PERSOSUBSTATE_IN_PROGRESS = 1, /* in between each lock transition */ + RIL_PERSOSUBSTATE_READY = 2, /* when either SIM or RUIM Perso is finished + since each app can only have 1 active perso + involved */ + RIL_PERSOSUBSTATE_SIM_NETWORK = 3, + RIL_PERSOSUBSTATE_SIM_NETWORK_SUBSET = 4, + RIL_PERSOSUBSTATE_SIM_CORPORATE = 5, + RIL_PERSOSUBSTATE_SIM_SERVICE_PROVIDER = 6, + RIL_PERSOSUBSTATE_SIM_SIM = 7, + RIL_PERSOSUBSTATE_SIM_NETWORK_PUK = 8, /* The corresponding perso lock is blocked */ + RIL_PERSOSUBSTATE_SIM_NETWORK_SUBSET_PUK = 9, + RIL_PERSOSUBSTATE_SIM_CORPORATE_PUK = 10, + RIL_PERSOSUBSTATE_SIM_SERVICE_PROVIDER_PUK = 11, + RIL_PERSOSUBSTATE_SIM_SIM_PUK = 12, + RIL_PERSOSUBSTATE_RUIM_NETWORK1 = 13, + RIL_PERSOSUBSTATE_RUIM_NETWORK2 = 14, + RIL_PERSOSUBSTATE_RUIM_HRPD = 15, + RIL_PERSOSUBSTATE_RUIM_CORPORATE = 16, + RIL_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER = 17, + RIL_PERSOSUBSTATE_RUIM_RUIM = 18, + RIL_PERSOSUBSTATE_RUIM_NETWORK1_PUK = 19, /* The corresponding perso lock is blocked */ + RIL_PERSOSUBSTATE_RUIM_NETWORK2_PUK = 20, + RIL_PERSOSUBSTATE_RUIM_HRPD_PUK = 21, + RIL_PERSOSUBSTATE_RUIM_CORPORATE_PUK = 22, + RIL_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER_PUK = 23, + RIL_PERSOSUBSTATE_RUIM_RUIM_PUK = 24 +} RIL_PersoSubstate; + +typedef enum { + RIL_APPSTATE_UNKNOWN = 0, + RIL_APPSTATE_DETECTED = 1, + RIL_APPSTATE_PIN = 2, /* If PIN1 or UPin is required */ + RIL_APPSTATE_PUK = 3, /* If PUK1 or Puk for UPin is required */ + RIL_APPSTATE_SUBSCRIPTION_PERSO = 4, /* perso_substate should be look at + when app_state is assigned to this value */ + RIL_APPSTATE_READY = 5 +} RIL_AppState; + +typedef enum { + RIL_PINSTATE_UNKNOWN = 0, + RIL_PINSTATE_ENABLED_NOT_VERIFIED = 1, + RIL_PINSTATE_ENABLED_VERIFIED = 2, + RIL_PINSTATE_DISABLED = 3, + RIL_PINSTATE_ENABLED_BLOCKED = 4, + RIL_PINSTATE_ENABLED_PERM_BLOCKED = 5 +} RIL_PinState; + +typedef enum { + RIL_APPTYPE_UNKNOWN = 0, + RIL_APPTYPE_SIM = 1, + RIL_APPTYPE_USIM = 2, + RIL_APPTYPE_RUIM = 3, + RIL_APPTYPE_CSIM = 4, + RIL_APPTYPE_ISIM = 5 +} RIL_AppType; + +/* + * Please note that registration state UNKNOWN is + * treated as "out of service" in the Android telephony. + * Registration state REG_DENIED must be returned if Location Update + * Reject (with cause 17 - Network Failure) is received + * repeatedly from the network, to facilitate + * "managed roaming" + */ +typedef enum { + RIL_NOT_REG_AND_NOT_SEARCHING = 0, // Not registered, MT is not currently searching + // a new operator to register + RIL_REG_HOME = 1, // Registered, home network + RIL_NOT_REG_AND_SEARCHING = 2, // Not registered, but MT is currently searching + // a new operator to register + RIL_REG_DENIED = 3, // Registration denied + RIL_UNKNOWN = 4, // Unknown + RIL_REG_ROAMING = 5, // Registered, roaming + RIL_NOT_REG_AND_EMERGENCY_AVAILABLE_AND_NOT_SEARCHING = 10, // Same as + // RIL_NOT_REG_AND_NOT_SEARCHING but indicates that + // emergency calls are enabled. + RIL_NOT_REG_AND_EMERGENCY_AVAILABLE_AND_SEARCHING = 12, // Same as RIL_NOT_REG_AND_SEARCHING + // but indicates that + // emergency calls are enabled. + RIL_REG_DENIED_AND_EMERGENCY_AVAILABLE = 13, // Same as REG_DENIED but indicates that + // emergency calls are enabled. + RIL_UNKNOWN_AND_EMERGENCY_AVAILABLE = 14, // Same as UNKNOWN but indicates that + // emergency calls are enabled. +} RIL_RegState; + +typedef struct +{ + RIL_AppType app_type; + RIL_AppState app_state; + RIL_PersoSubstate perso_substate; /* applicable only if app_state == + RIL_APPSTATE_SUBSCRIPTION_PERSO */ + char *aid_ptr; /* null terminated string, e.g., from 0xA0, 0x00 -> 0x41, + 0x30, 0x30, 0x30 */ + char *app_label_ptr; /* null terminated string */ + int pin1_replaced; /* applicable to USIM, CSIM & ISIM */ + RIL_PinState pin1; + RIL_PinState pin2; + /* Samsung SIM PIN/Unlock fields */ + int pin1_num_retries; + int puk1_num_retries; + int pin2_num_retries; + int puk2_num_retries; + int perso_unblock_retries; +} RIL_AppStatus; + +/* Deprecated, use RIL_CardStatus_v6 */ +typedef struct +{ + RIL_CardState card_state; + RIL_PinState universal_pin_state; /* applicable to USIM and CSIM: RIL_PINSTATE_xxx */ + int gsm_umts_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ + int cdma_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ + int num_applications; /* value <= RIL_CARD_MAX_APPS */ + RIL_AppStatus applications[RIL_CARD_MAX_APPS]; +} RIL_CardStatus_v5; + +typedef struct +{ + RIL_CardState card_state; + RIL_PinState universal_pin_state; /* applicable to USIM and CSIM: RIL_PINSTATE_xxx */ + int gsm_umts_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ + int cdma_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ + int ims_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ + int num_applications; /* value <= RIL_CARD_MAX_APPS */ + RIL_AppStatus applications[RIL_CARD_MAX_APPS]; +} RIL_CardStatus_v6; + +/** The result of a SIM refresh, returned in data[0] of RIL_UNSOL_SIM_REFRESH + * or as part of RIL_SimRefreshResponse_v7 + */ +typedef enum { + /* A file on SIM has been updated. data[1] contains the EFID. */ + SIM_FILE_UPDATE = 0, + /* SIM initialized. All files should be re-read. */ + SIM_INIT = 1, + /* SIM reset. SIM power required, SIM may be locked and all files should be re-read. */ + SIM_RESET = 2 +} RIL_SimRefreshResult; + +typedef struct { + RIL_SimRefreshResult result; + int ef_id; /* is the EFID of the updated file if the result is */ + /* SIM_FILE_UPDATE or 0 for any other result. */ + char * aid; /* is AID(application ID) of the card application */ + /* See ETSI 102.221 8.1 and 101.220 4 */ + /* For SIM_FILE_UPDATE result it can be set to AID of */ + /* application in which updated EF resides or it can be */ + /* NULL if EF is outside of an application. */ + /* For SIM_INIT result this field is set to AID of */ + /* application that caused REFRESH */ + /* For SIM_RESET result it is NULL. */ +} RIL_SimRefreshResponse_v7; + +/* Deprecated, use RIL_CDMA_CallWaiting_v6 */ +typedef struct { + char * number; /* Remote party number */ + int numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown */ + char * name; /* Remote party name */ + RIL_CDMA_SignalInfoRecord signalInfoRecord; +} RIL_CDMA_CallWaiting_v5; + +typedef struct { + char * number; /* Remote party number */ + int numberPresentation; /* 0=Allowed, 1=Restricted, 2=Not Specified/Unknown */ + char * name; /* Remote party name */ + RIL_CDMA_SignalInfoRecord signalInfoRecord; + /* Number type/Number plan required to support International Call Waiting */ + int number_type; /* 0=Unknown, 1=International, 2=National, + 3=Network specific, 4=subscriber */ + int number_plan; /* 0=Unknown, 1=ISDN, 3=Data, 4=Telex, 8=Nat'l, 9=Private */ +} RIL_CDMA_CallWaiting_v6; + +/** + * Which types of Cell Broadcast Message (CBM) are to be received by the ME + * + * uFromServiceID - uToServiceID defines a range of CBM message identifiers + * whose value is 0x0000 - 0xFFFF as defined in TS 23.041 9.4.1.2.2 for GMS + * and 9.4.4.2.2 for UMTS. All other values can be treated as empty + * CBM message ID. + * + * uFromCodeScheme - uToCodeScheme defines a range of CBM data coding schemes + * whose value is 0x00 - 0xFF as defined in TS 23.041 9.4.1.2.3 for GMS + * and 9.4.4.2.3 for UMTS. + * All other values can be treated as empty CBM data coding scheme. + * + * selected 0 means message types specified in + * and are not accepted, while 1 means accepted. + * + * Used by RIL_REQUEST_GSM_GET_BROADCAST_CONFIG and + * RIL_REQUEST_GSM_SET_BROADCAST_CONFIG. + */ +typedef struct { + int fromServiceId; + int toServiceId; + int fromCodeScheme; + int toCodeScheme; + unsigned char selected; +} RIL_GSM_BroadcastSmsConfigInfo; + +/* No restriction at all including voice/SMS/USSD/SS/AV64 and packet data. */ +#define RIL_RESTRICTED_STATE_NONE 0x00 +/* Block emergency call due to restriction. But allow all normal voice/SMS/USSD/SS/AV64. */ +#define RIL_RESTRICTED_STATE_CS_EMERGENCY 0x01 +/* Block all normal voice/SMS/USSD/SS/AV64 due to restriction. Only Emergency call allowed. */ +#define RIL_RESTRICTED_STATE_CS_NORMAL 0x02 +/* Block all voice/SMS/USSD/SS/AV64 including emergency call due to restriction.*/ +#define RIL_RESTRICTED_STATE_CS_ALL 0x04 +/* Block packet data access due to restriction. */ +#define RIL_RESTRICTED_STATE_PS_ALL 0x10 + +/* The status for an OTASP/OTAPA session */ +typedef enum { + CDMA_OTA_PROVISION_STATUS_SPL_UNLOCKED, + CDMA_OTA_PROVISION_STATUS_SPC_RETRIES_EXCEEDED, + CDMA_OTA_PROVISION_STATUS_A_KEY_EXCHANGED, + CDMA_OTA_PROVISION_STATUS_SSD_UPDATED, + CDMA_OTA_PROVISION_STATUS_NAM_DOWNLOADED, + CDMA_OTA_PROVISION_STATUS_MDN_DOWNLOADED, + CDMA_OTA_PROVISION_STATUS_IMSI_DOWNLOADED, + CDMA_OTA_PROVISION_STATUS_PRL_DOWNLOADED, + CDMA_OTA_PROVISION_STATUS_COMMITTED, + CDMA_OTA_PROVISION_STATUS_OTAPA_STARTED, + CDMA_OTA_PROVISION_STATUS_OTAPA_STOPPED, + CDMA_OTA_PROVISION_STATUS_OTAPA_ABORTED +} RIL_CDMA_OTA_ProvisionStatus; + +typedef struct { + int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ + int bitErrorRate; /* bit error rate (0-7, 99) as defined in TS 27.007 8.5 */ +} RIL_GW_SignalStrength; + +typedef struct { + int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ + int bitErrorRate; /* bit error rate (0-7, 99) as defined in TS 27.007 8.5 */ + int timingAdvance; /* Timing Advance in bit periods. 1 bit period = 48/13 us. + * INT_MAX denotes invalid value */ +} RIL_GSM_SignalStrength_v12; + +typedef struct { + int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ + int bitErrorRate; /* bit error rate (0-7, 99) as defined in TS 27.007 8.5 */ +} RIL_SignalStrengthWcdma; + +typedef struct { + int dbm; /* Valid values are positive integers. This value is the actual RSSI value + * multiplied by -1. Example: If the actual RSSI is -75, then this response + * value will be 75. + */ + int ecio; /* Valid values are positive integers. This value is the actual Ec/Io multiplied + * by -10. Example: If the actual Ec/Io is -12.5 dB, then this response value + * will be 125. + */ +} RIL_CDMA_SignalStrength; + + +typedef struct { + int dbm; /* Valid values are positive integers. This value is the actual RSSI value + * multiplied by -1. Example: If the actual RSSI is -75, then this response + * value will be 75. + */ + int ecio; /* Valid values are positive integers. This value is the actual Ec/Io multiplied + * by -10. Example: If the actual Ec/Io is -12.5 dB, then this response value + * will be 125. + */ + int signalNoiseRatio; /* Valid values are 0-8. 8 is the highest signal to noise ratio. */ +} RIL_EVDO_SignalStrength; + +typedef struct { + int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ + int rsrp; /* The current Reference Signal Receive Power in dBm multipled by -1. + * Range: 44 to 140 dBm + * INT_MAX: 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 36.133 9.1.4 */ + int rsrq; /* The current Reference Signal Receive Quality in dB multiplied by -1. + * Range: 20 to 3 dB. + * INT_MAX: 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 36.133 9.1.7 */ + int rssnr; /* The current reference signal signal-to-noise ratio in 0.1 dB units. + * Range: -200 to +300 (-200 = -20.0 dB, +300 = 30dB). + * INT_MAX : 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 36.101 8.1.1 */ + int cqi; /* The current Channel Quality Indicator. + * Range: 0 to 15. + * INT_MAX : 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 36.101 9.2, 9.3, A.4 */ +} RIL_LTE_SignalStrength; + +typedef struct { + int signalStrength; /* Valid values are (0-31, 99) as defined in TS 27.007 8.5 */ + int rsrp; /* The current Reference Signal Receive Power in dBm multipled by -1. + * Range: 44 to 140 dBm + * INT_MAX: 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 36.133 9.1.4 */ + int rsrq; /* The current Reference Signal Receive Quality in dB multiplied by -1. + * Range: 20 to 3 dB. + * INT_MAX: 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 36.133 9.1.7 */ + int rssnr; /* The current reference signal signal-to-noise ratio in 0.1 dB units. + * Range: -200 to +300 (-200 = -20.0 dB, +300 = 30dB). + * INT_MAX : 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 36.101 8.1.1 */ + int cqi; /* The current Channel Quality Indicator. + * Range: 0 to 15. + * INT_MAX : 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 36.101 9.2, 9.3, A.4 */ + int timingAdvance; /* timing advance in micro seconds for a one way trip from cell to device. + * Approximate distance can be calculated using 300m/us * timingAdvance. + * Range: 0 to 0x7FFFFFFE + * INT_MAX : 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP 36.321 section 6.1.3.5 + * also: http://www.cellular-planningoptimization.com/2010/02/timing-advance-with-calculation.html */ +} RIL_LTE_SignalStrength_v8; + +typedef struct { + int rscp; /* The Received Signal Code Power in dBm multipled by -1. + * Range : 25 to 120 + * INT_MAX: 0x7FFFFFFF denotes invalid value. + * Reference: 3GPP TS 25.123, section 9.1.1.1 */ +} RIL_TD_SCDMA_SignalStrength; + +/* Deprecated, use RIL_SignalStrength_v6 */ +typedef struct { + RIL_GW_SignalStrength GW_SignalStrength; + RIL_CDMA_SignalStrength CDMA_SignalStrength; + RIL_EVDO_SignalStrength EVDO_SignalStrength; +} RIL_SignalStrength_v5; + +typedef struct { + RIL_GW_SignalStrength GW_SignalStrength; + RIL_CDMA_SignalStrength CDMA_SignalStrength; + RIL_EVDO_SignalStrength EVDO_SignalStrength; + RIL_LTE_SignalStrength LTE_SignalStrength; +} RIL_SignalStrength_v6; + +typedef struct { + RIL_GW_SignalStrength GW_SignalStrength; + RIL_CDMA_SignalStrength CDMA_SignalStrength; + RIL_EVDO_SignalStrength EVDO_SignalStrength; + RIL_LTE_SignalStrength_v8 LTE_SignalStrength; +} RIL_SignalStrength_v8; + +typedef struct { + RIL_GW_SignalStrength GW_SignalStrength; + RIL_CDMA_SignalStrength CDMA_SignalStrength; + RIL_EVDO_SignalStrength EVDO_SignalStrength; + RIL_LTE_SignalStrength_v8 LTE_SignalStrength; + RIL_TD_SCDMA_SignalStrength TD_SCDMA_SignalStrength; +} RIL_SignalStrength_v10; + +typedef struct { + int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ + int cid; /* 16-bit GSM Cell Identity described in TS 27.007, 0..65535, INT_MAX if unknown */ +} RIL_CellIdentityGsm; + +typedef struct { + int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ + int cid; /* 16-bit GSM Cell Identity described in TS 27.007, 0..65535, INT_MAX if unknown */ + int arfcn; /* 16-bit GSM Absolute RF channel number; this value must be reported */ + uint8_t bsic; /* 6-bit Base Station Identity Code; 0xFF if unknown */ +} RIL_CellIdentityGsm_v12; + +typedef struct { + int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ + int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */ + int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511, INT_MAX if unknown */ +} RIL_CellIdentityWcdma; + +typedef struct { + int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ + int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */ + int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511; this value must be reported */ + int uarfcn; /* 16-bit UMTS Absolute RF Channel Number; this value must be reported */ +} RIL_CellIdentityWcdma_v12; + +typedef struct { + int networkId; /* Network Id 0..65535, INT_MAX if unknown */ + int systemId; /* CDMA System Id 0..32767, INT_MAX if unknown */ + int basestationId; /* Base Station Id 0..65535, INT_MAX if unknown */ + int longitude; /* Longitude is a decimal number as specified in 3GPP2 C.S0005-A v6.0. + * It is represented in units of 0.25 seconds and ranges from -2592000 + * to 2592000, both values inclusive (corresponding to a range of -180 + * to +180 degrees). INT_MAX if unknown */ + + int latitude; /* Latitude is a decimal number as specified in 3GPP2 C.S0005-A v6.0. + * It is represented in units of 0.25 seconds and ranges from -1296000 + * to 1296000, both values inclusive (corresponding to a range of -90 + * to +90 degrees). INT_MAX if unknown */ +} RIL_CellIdentityCdma; + +typedef struct { + int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int ci; /* 28-bit Cell Identity described in TS ???, INT_MAX if unknown */ + int pci; /* physical cell id 0..503, INT_MAX if unknown */ + int tac; /* 16-bit tracking area code, INT_MAX if unknown */ +} RIL_CellIdentityLte; + +typedef struct { + int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int ci; /* 28-bit Cell Identity described in TS ???, INT_MAX if unknown */ + int pci; /* physical cell id 0..503; this value must be reported */ + int tac; /* 16-bit tracking area code, INT_MAX if unknown */ + int earfcn; /* 18-bit LTE Absolute RF Channel Number; this value must be reported */ +} RIL_CellIdentityLte_v12; + +typedef struct { + int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ + int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */ + int cpid; /* 8-bit Cell Parameters ID described in TS 25.331, 0..127, INT_MAX if unknown */ +} RIL_CellIdentityTdscdma; + +typedef struct { + RIL_CellIdentityGsm cellIdentityGsm; + RIL_GW_SignalStrength signalStrengthGsm; +} RIL_CellInfoGsm; + +typedef struct { + RIL_CellIdentityGsm_v12 cellIdentityGsm; + RIL_GSM_SignalStrength_v12 signalStrengthGsm; +} RIL_CellInfoGsm_v12; + +typedef struct { + RIL_CellIdentityWcdma cellIdentityWcdma; + RIL_SignalStrengthWcdma signalStrengthWcdma; +} RIL_CellInfoWcdma; + +typedef struct { + RIL_CellIdentityWcdma_v12 cellIdentityWcdma; + RIL_SignalStrengthWcdma signalStrengthWcdma; +} RIL_CellInfoWcdma_v12; + +typedef struct { + RIL_CellIdentityCdma cellIdentityCdma; + RIL_CDMA_SignalStrength signalStrengthCdma; + RIL_EVDO_SignalStrength signalStrengthEvdo; +} RIL_CellInfoCdma; + +typedef struct { + RIL_CellIdentityLte cellIdentityLte; + RIL_LTE_SignalStrength_v8 signalStrengthLte; +} RIL_CellInfoLte; + +typedef struct { + RIL_CellIdentityLte_v12 cellIdentityLte; + RIL_LTE_SignalStrength_v8 signalStrengthLte; +} RIL_CellInfoLte_v12; + +typedef struct { + RIL_CellIdentityTdscdma cellIdentityTdscdma; + RIL_TD_SCDMA_SignalStrength signalStrengthTdscdma; +} RIL_CellInfoTdscdma; + +// Must be the same as CellInfo.TYPE_XXX +typedef enum { + RIL_CELL_INFO_TYPE_NONE = 0, /* indicates no cell information */ + RIL_CELL_INFO_TYPE_GSM = 1, + RIL_CELL_INFO_TYPE_CDMA = 2, + RIL_CELL_INFO_TYPE_LTE = 3, + RIL_CELL_INFO_TYPE_WCDMA = 4, + RIL_CELL_INFO_TYPE_TD_SCDMA = 5 +} RIL_CellInfoType; + +// Must be the same as CellInfo.TIMESTAMP_TYPE_XXX +typedef enum { + RIL_TIMESTAMP_TYPE_UNKNOWN = 0, + RIL_TIMESTAMP_TYPE_ANTENNA = 1, + RIL_TIMESTAMP_TYPE_MODEM = 2, + RIL_TIMESTAMP_TYPE_OEM_RIL = 3, + RIL_TIMESTAMP_TYPE_JAVA_RIL = 4, +} RIL_TimeStampType; + +typedef struct { + RIL_CellInfoType cellInfoType; /* cell type for selecting from union CellInfo */ + int registered; /* !0 if this cell is registered 0 if not registered */ + RIL_TimeStampType timeStampType; /* type of time stamp represented by timeStamp */ + uint64_t timeStamp; /* Time in nanos as returned by ril_nano_time */ + union { + RIL_CellInfoGsm gsm; + RIL_CellInfoCdma cdma; + RIL_CellInfoLte lte; + RIL_CellInfoWcdma wcdma; + RIL_CellInfoTdscdma tdscdma; + } CellInfo; +} RIL_CellInfo; + +typedef struct { + RIL_CellInfoType cellInfoType; /* cell type for selecting from union CellInfo */ + int registered; /* !0 if this cell is registered 0 if not registered */ + RIL_TimeStampType timeStampType; /* type of time stamp represented by timeStamp */ + uint64_t timeStamp; /* Time in nanos as returned by ril_nano_time */ + union { + RIL_CellInfoGsm_v12 gsm; + RIL_CellInfoCdma cdma; + RIL_CellInfoLte_v12 lte; + RIL_CellInfoWcdma_v12 wcdma; + RIL_CellInfoTdscdma tdscdma; + } CellInfo; +} RIL_CellInfo_v12; + +typedef struct { + RIL_CellInfoType cellInfoType; /* cell type for selecting from union CellInfo */ + union { + RIL_CellIdentityGsm_v12 cellIdentityGsm; + RIL_CellIdentityWcdma_v12 cellIdentityWcdma; + RIL_CellIdentityLte_v12 cellIdentityLte; + RIL_CellIdentityTdscdma cellIdentityTdscdma; + RIL_CellIdentityCdma cellIdentityCdma; + }; +}RIL_CellIdentity_v16; + +typedef struct { + RIL_RegState regState; // Valid reg states are RIL_NOT_REG_AND_NOT_SEARCHING, + // REG_HOME, RIL_NOT_REG_AND_SEARCHING, REG_DENIED, + // UNKNOWN, REG_ROAMING defined in RegState + RIL_RadioTechnology rat; // indicates the available voice radio technology, + // valid values as defined by RadioTechnology. + int32_t cssSupported; // concurrent services support indicator. if + // registered on a CDMA system. + // 0 - Concurrent services not supported, + // 1 - Concurrent services supported + int32_t roamingIndicator; // TSB-58 Roaming Indicator if registered + // on a CDMA or EVDO system or -1 if not. + // Valid values are 0-255. + int32_t systemIsInPrl; // indicates whether the current system is in the + // PRL if registered on a CDMA or EVDO system or -1 if + // not. 0=not in the PRL, 1=in the PRL + int32_t defaultRoamingIndicator; // default Roaming Indicator from the PRL, + // if registered on a CDMA or EVDO system or -1 if not. + // Valid values are 0-255. + int32_t reasonForDenial; // reasonForDenial if registration state is 3 + // (Registration denied) this is an enumerated reason why + // registration was denied. See 3GPP TS 24.008, + // 10.5.3.6 and Annex G. + // 0 - General + // 1 - Authentication Failure + // 2 - IMSI unknown in HLR + // 3 - Illegal MS + // 4 - Illegal ME + // 5 - PLMN not allowed + // 6 - Location area not allowed + // 7 - Roaming not allowed + // 8 - No Suitable Cells in this Location Area + // 9 - Network failure + // 10 - Persistent location update reject + // 11 - PLMN not allowed + // 12 - Location area not allowed + // 13 - Roaming not allowed in this Location Area + // 15 - No Suitable Cells in this Location Area + // 17 - Network Failure + // 20 - MAC Failure + // 21 - Sync Failure + // 22 - Congestion + // 23 - GSM Authentication unacceptable + // 25 - Not Authorized for this CSG + // 32 - Service option not supported + // 33 - Requested service option not subscribed + // 34 - Service option temporarily out of order + // 38 - Call cannot be identified + // 48-63 - Retry upon entry into a new cell + // 95 - Semantically incorrect message + // 96 - Invalid mandatory information + // 97 - Message type non-existent or not implemented + // 98 - Message type not compatible with protocol state + // 99 - Information element non-existent or + // not implemented + // 100 - Conditional IE error + // 101 - Message not compatible with protocol state; + RIL_CellIdentity_v16 cellIdentity; // current cell information +}RIL_VoiceRegistrationStateResponse; + + +typedef struct { + RIL_RegState regState; // Valid reg states are RIL_NOT_REG_AND_NOT_SEARCHING, + // REG_HOME, RIL_NOT_REG_AND_SEARCHING, REG_DENIED, + // UNKNOWN, REG_ROAMING defined in RegState + RIL_RadioTechnology rat; // indicates the available data radio technology, + // valid values as defined by RadioTechnology. + int32_t reasonDataDenied; // if registration state is 3 (Registration + // denied) this is an enumerated reason why + // registration was denied. See 3GPP TS 24.008, + // Annex G.6 "Additional cause codes for GMM". + // 7 == GPRS services not allowed + // 8 == GPRS services and non-GPRS services not allowed + // 9 == MS identity cannot be derived by the network + // 10 == Implicitly detached + // 14 == GPRS services not allowed in this PLMN + // 16 == MSC temporarily not reachable + // 40 == No PDP context activated + int32_t maxDataCalls; // The maximum number of simultaneous Data Calls that + // must be established using setupDataCall(). + RIL_CellIdentity_v16 cellIdentity; // Current cell information +}RIL_DataRegistrationStateResponse; + +/* Names of the CDMA info records (C.S0005 section 3.7.5) */ +typedef enum { + RIL_CDMA_DISPLAY_INFO_REC, + RIL_CDMA_CALLED_PARTY_NUMBER_INFO_REC, + RIL_CDMA_CALLING_PARTY_NUMBER_INFO_REC, + RIL_CDMA_CONNECTED_NUMBER_INFO_REC, + RIL_CDMA_SIGNAL_INFO_REC, + RIL_CDMA_REDIRECTING_NUMBER_INFO_REC, + RIL_CDMA_LINE_CONTROL_INFO_REC, + RIL_CDMA_EXTENDED_DISPLAY_INFO_REC, + RIL_CDMA_T53_CLIR_INFO_REC, + RIL_CDMA_T53_RELEASE_INFO_REC, + RIL_CDMA_T53_AUDIO_CONTROL_INFO_REC +} RIL_CDMA_InfoRecName; + +/* Display Info Rec as defined in C.S0005 section 3.7.5.1 + Extended Display Info Rec as defined in C.S0005 section 3.7.5.16 + Note: the Extended Display info rec contains multiple records of the + form: display_tag, display_len, and display_len occurrences of the + chari field if the display_tag is not 10000000 or 10000001. + To save space, the records are stored consecutively in a byte buffer. + The display_tag, display_len and chari fields are all 1 byte. +*/ + +typedef struct { + char alpha_len; + char alpha_buf[CDMA_ALPHA_INFO_BUFFER_LENGTH]; +} RIL_CDMA_DisplayInfoRecord; + +/* Called Party Number Info Rec as defined in C.S0005 section 3.7.5.2 + Calling Party Number Info Rec as defined in C.S0005 section 3.7.5.3 + Connected Number Info Rec as defined in C.S0005 section 3.7.5.4 +*/ + +typedef struct { + char len; + char buf[CDMA_NUMBER_INFO_BUFFER_LENGTH]; + char number_type; + char number_plan; + char pi; + char si; +} RIL_CDMA_NumberInfoRecord; + +/* Redirecting Number Information Record as defined in C.S0005 section 3.7.5.11 */ +typedef enum { + RIL_REDIRECTING_REASON_UNKNOWN = 0, + RIL_REDIRECTING_REASON_CALL_FORWARDING_BUSY = 1, + RIL_REDIRECTING_REASON_CALL_FORWARDING_NO_REPLY = 2, + RIL_REDIRECTING_REASON_CALLED_DTE_OUT_OF_ORDER = 9, + RIL_REDIRECTING_REASON_CALL_FORWARDING_BY_THE_CALLED_DTE = 10, + RIL_REDIRECTING_REASON_CALL_FORWARDING_UNCONDITIONAL = 15, + RIL_REDIRECTING_REASON_RESERVED +} RIL_CDMA_RedirectingReason; + +typedef struct { + RIL_CDMA_NumberInfoRecord redirectingNumber; + /* redirectingReason is set to RIL_REDIRECTING_REASON_UNKNOWN if not included */ + RIL_CDMA_RedirectingReason redirectingReason; +} RIL_CDMA_RedirectingNumberInfoRecord; + +/* Line Control Information Record as defined in C.S0005 section 3.7.5.15 */ +typedef struct { + char lineCtrlPolarityIncluded; + char lineCtrlToggle; + char lineCtrlReverse; + char lineCtrlPowerDenial; +} RIL_CDMA_LineControlInfoRecord; + +/* T53 CLIR Information Record */ +typedef struct { + char cause; +} RIL_CDMA_T53_CLIRInfoRecord; + +/* T53 Audio Control Information Record */ +typedef struct { + char upLink; + char downLink; +} RIL_CDMA_T53_AudioControlInfoRecord; + +typedef struct { + + RIL_CDMA_InfoRecName name; + + union { + /* Display and Extended Display Info Rec */ + RIL_CDMA_DisplayInfoRecord display; + + /* Called Party Number, Calling Party Number, Connected Number Info Rec */ + RIL_CDMA_NumberInfoRecord number; + + /* Signal Info Rec */ + RIL_CDMA_SignalInfoRecord signal; + + /* Redirecting Number Info Rec */ + RIL_CDMA_RedirectingNumberInfoRecord redir; + + /* Line Control Info Rec */ + RIL_CDMA_LineControlInfoRecord lineCtrl; + + /* T53 CLIR Info Rec */ + RIL_CDMA_T53_CLIRInfoRecord clir; + + /* T53 Audio Control Info Rec */ + RIL_CDMA_T53_AudioControlInfoRecord audioCtrl; + } rec; +} RIL_CDMA_InformationRecord; + +#define RIL_CDMA_MAX_NUMBER_OF_INFO_RECS 10 + +typedef struct { + char numberOfInfoRecs; + RIL_CDMA_InformationRecord infoRec[RIL_CDMA_MAX_NUMBER_OF_INFO_RECS]; +} RIL_CDMA_InformationRecords; + +/* See RIL_REQUEST_NV_READ_ITEM */ +typedef struct { + RIL_NV_Item itemID; +} RIL_NV_ReadItem; + +/* See RIL_REQUEST_NV_WRITE_ITEM */ +typedef struct { + RIL_NV_Item itemID; + char * value; +} RIL_NV_WriteItem; + +typedef enum { + HANDOVER_STARTED = 0, + HANDOVER_COMPLETED = 1, + HANDOVER_FAILED = 2, + HANDOVER_CANCELED = 3 +} RIL_SrvccState; + +/* hardware configuration reported to RILJ. */ +typedef enum { + RIL_HARDWARE_CONFIG_MODEM = 0, + RIL_HARDWARE_CONFIG_SIM = 1, +} RIL_HardwareConfig_Type; + +typedef enum { + RIL_HARDWARE_CONFIG_STATE_ENABLED = 0, + RIL_HARDWARE_CONFIG_STATE_STANDBY = 1, + RIL_HARDWARE_CONFIG_STATE_DISABLED = 2, +} RIL_HardwareConfig_State; + +typedef struct { + int rilModel; + uint32_t rat; /* bitset - ref. RIL_RadioTechnology. */ + int maxVoice; + int maxData; + int maxStandby; +} RIL_HardwareConfig_Modem; + +typedef struct { + char modemUuid[MAX_UUID_LENGTH]; +} RIL_HardwareConfig_Sim; + +typedef struct { + RIL_HardwareConfig_Type type; + char uuid[MAX_UUID_LENGTH]; + RIL_HardwareConfig_State state; + union { + RIL_HardwareConfig_Modem modem; + RIL_HardwareConfig_Sim sim; + } cfg; +} RIL_HardwareConfig; + +typedef enum { + SS_CFU, + SS_CF_BUSY, + SS_CF_NO_REPLY, + SS_CF_NOT_REACHABLE, + SS_CF_ALL, + SS_CF_ALL_CONDITIONAL, + SS_CLIP, + SS_CLIR, + SS_COLP, + SS_COLR, + SS_WAIT, + SS_BAOC, + SS_BAOIC, + SS_BAOIC_EXC_HOME, + SS_BAIC, + SS_BAIC_ROAMING, + SS_ALL_BARRING, + SS_OUTGOING_BARRING, + SS_INCOMING_BARRING +} RIL_SsServiceType; + +typedef enum { + SS_ACTIVATION, + SS_DEACTIVATION, + SS_INTERROGATION, + SS_REGISTRATION, + SS_ERASURE +} RIL_SsRequestType; + +typedef enum { + SS_ALL_TELE_AND_BEARER_SERVICES, + SS_ALL_TELESEVICES, + SS_TELEPHONY, + SS_ALL_DATA_TELESERVICES, + SS_SMS_SERVICES, + SS_ALL_TELESERVICES_EXCEPT_SMS +} RIL_SsTeleserviceType; + +#define SS_INFO_MAX 4 +#define NUM_SERVICE_CLASSES 7 + +typedef struct { + int numValidIndexes; /* This gives the number of valid values in cfInfo. + For example if voice is forwarded to one number and data + is forwarded to a different one then numValidIndexes will be + 2 indicating total number of valid values in cfInfo. + Similarly if all the services are forwarded to the same + number then the value of numValidIndexes will be 1. */ + + RIL_CallForwardInfo cfInfo[NUM_SERVICE_CLASSES]; /* This is the response data + for SS request to query call + forward status. see + RIL_REQUEST_QUERY_CALL_FORWARD_STATUS */ +} RIL_CfData; + +typedef struct { + RIL_SsServiceType serviceType; + RIL_SsRequestType requestType; + RIL_SsTeleserviceType teleserviceType; + int serviceClass; + RIL_Errno result; + + union { + int ssInfo[SS_INFO_MAX]; /* This is the response data for most of the SS GET/SET + RIL requests. E.g. RIL_REQUSET_GET_CLIR returns + two ints, so first two values of ssInfo[] will be + used for response if serviceType is SS_CLIR and + requestType is SS_INTERROGATION */ + + RIL_CfData cfData; + }; +} RIL_StkCcUnsolSsResponse; + +/** + * Data connection power state + */ +typedef enum { + RIL_DC_POWER_STATE_LOW = 1, // Low power state + RIL_DC_POWER_STATE_MEDIUM = 2, // Medium power state + RIL_DC_POWER_STATE_HIGH = 3, // High power state + RIL_DC_POWER_STATE_UNKNOWN = INT32_MAX // Unknown state +} RIL_DcPowerStates; + +/** + * Data connection real time info + */ +typedef struct { + uint64_t time; // Time in nanos as returned by ril_nano_time + RIL_DcPowerStates powerState; // Current power state +} RIL_DcRtInfo; + +/** + * Data profile to modem + */ +typedef struct { + /* id of the data profile */ + int profileId; + /* the APN to connect to */ + char* apn; + /** one of the PDP_type values in TS 27.007 section 10.1.1. + * For example, "IP", "IPV6", "IPV4V6", or "PPP". + */ + char* protocol; + /** authentication protocol used for this PDP context + * (None: 0, PAP: 1, CHAP: 2, PAP&CHAP: 3) + */ + int authType; + /* the username for APN, or NULL */ + char* user; + /* the password for APN, or NULL */ + char* password; + /* the profile type, TYPE_COMMON-0, TYPE_3GPP-1, TYPE_3GPP2-2 */ + int type; + /* the period in seconds to limit the maximum connections */ + int maxConnsTime; + /* the maximum connections during maxConnsTime */ + int maxConns; + /** the required wait time in seconds after a successful UE initiated + * disconnect of a given PDN connection before the device can send + * a new PDN connection request for that given PDN + */ + int waitTime; + /* true to enable the profile, 0 to disable, 1 to enable */ + int enabled; +} RIL_DataProfileInfo; + +typedef struct { + /* id of the data profile */ + int profileId; + /* the APN to connect to */ + char* apn; + /** one of the PDP_type values in TS 27.007 section 10.1.1. + * For example, "IP", "IPV6", "IPV4V6", or "PPP". + */ + char* protocol; + /** one of the PDP_type values in TS 27.007 section 10.1.1 used on roaming network. + * For example, "IP", "IPV6", "IPV4V6", or "PPP". + */ + char *roamingProtocol; + /** authentication protocol used for this PDP context + * (None: 0, PAP: 1, CHAP: 2, PAP&CHAP: 3) + */ + int authType; + /* the username for APN, or NULL */ + char* user; + /* the password for APN, or NULL */ + char* password; + /* the profile type, TYPE_COMMON-0, TYPE_3GPP-1, TYPE_3GPP2-2 */ + int type; + /* the period in seconds to limit the maximum connections */ + int maxConnsTime; + /* the maximum connections during maxConnsTime */ + int maxConns; + /** the required wait time in seconds after a successful UE initiated + * disconnect of a given PDN connection before the device can send + * a new PDN connection request for that given PDN + */ + int waitTime; + /* true to enable the profile, 0 to disable, 1 to enable */ + int enabled; + /* supported APN types bitmask. See RIL_ApnTypes for the value of each bit. */ + int supportedTypesBitmask; + /** the bearer bitmask. See RIL_RadioAccessFamily for the value of each bit. */ + int bearerBitmask; + /** maximum transmission unit (MTU) size in bytes */ + int mtu; + /** the MVNO type: possible values are "imsi", "gid", "spn" */ + char *mvnoType; + /** MVNO match data. Can be anything defined by the carrier. For example, + * SPN like: "A MOBILE", "BEN NL", etc... + * IMSI like: "302720x94", "2060188", etc... + * GID like: "4E", "33", etc... + */ + char *mvnoMatchData; +} RIL_DataProfileInfo_v15; + +/* Tx Power Levels */ +#define RIL_NUM_TX_POWER_LEVELS 5 + +/** + * Aggregate modem activity information + */ +typedef struct { + + /* total time (in ms) when modem is in a low power or + * sleep state + */ + uint32_t sleep_mode_time_ms; + + /* total time (in ms) when modem is awake but neither + * the transmitter nor receiver are active/awake */ + uint32_t idle_mode_time_ms; + + /* total time (in ms) during which the transmitter is active/awake, + * subdivided by manufacturer-defined device-specific + * contiguous increasing ranges of transmit power between + * 0 and the transmitter's maximum transmit power. + */ + uint32_t tx_mode_time_ms[RIL_NUM_TX_POWER_LEVELS]; + + /* total time (in ms) for which receiver is active/awake and + * the transmitter is inactive */ + uint32_t rx_mode_time_ms; +} RIL_ActivityStatsInfo; + +typedef enum { + RIL_APN_TYPE_UNKNOWN = 0x0, // Unknown + RIL_APN_TYPE_DEFAULT = 0x1, // APN type for default data traffic + RIL_APN_TYPE_MMS = 0x2, // APN type for MMS traffic + RIL_APN_TYPE_SUPL = 0x4, // APN type for SUPL assisted GPS + RIL_APN_TYPE_DUN = 0x8, // APN type for DUN traffic + RIL_APN_TYPE_HIPRI = 0x10, // APN type for HiPri traffic + RIL_APN_TYPE_FOTA = 0x20, // APN type for FOTA + RIL_APN_TYPE_IMS = 0x40, // APN type for IMS + RIL_APN_TYPE_CBS = 0x80, // APN type for CBS + RIL_APN_TYPE_IA = 0x100, // APN type for IA Initial Attach APN + RIL_APN_TYPE_EMERGENCY = 0x200, // APN type for Emergency PDN. This is not an IA apn, + // but is used for access to carrier services in an + // emergency call situation. + RIL_APN_TYPE_ALL = 0xFFFFFFFF // All APN types +} RIL_ApnTypes; + +typedef enum { + RIL_DST_POWER_SAVE_MODE, // Device power save mode (provided by PowerManager) + // True indicates the device is in power save mode. + RIL_DST_CHARGING_STATE, // Device charging state (provided by BatteryManager) + // True indicates the device is charging. + RIL_DST_LOW_DATA_EXPECTED // Low data expected mode. True indicates low data traffic + // is expected, for example, when the device is idle + // (e.g. not doing tethering in the background). Note + // this doesn't mean no data is expected. +} RIL_DeviceStateType; + +typedef enum { + RIL_UR_SIGNAL_STRENGTH = 0x01, // When this bit is set, modem should always send the + // signal strength update through + // RIL_UNSOL_SIGNAL_STRENGTH, otherwise suppress it. + RIL_UR_FULL_NETWORK_STATE = 0x02, // When this bit is set, modem should always send + // RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED + // when any field in + // RIL_REQUEST_VOICE_REGISTRATION_STATE or + // RIL_REQUEST_DATA_REGISTRATION_STATE changes. When + // this bit is not set, modem should suppress + // RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED + // only when insignificant fields change + // (e.g. cell info). + // Modem should continue sending + // RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED + // when significant fields are updated even when this + // bit is not set. The following fields are + // considered significant, registration state and + // radio technology. + RIL_UR_DATA_CALL_DORMANCY_CHANGED = 0x04 // When this bit is set, modem should send the data + // call list changed unsolicited response + // RIL_UNSOL_DATA_CALL_LIST_CHANGED whenever any + // field in RIL_Data_Call_Response changes. + // Otherwise modem should suppress the unsolicited + // response when the only changed field is 'active' + // (for data dormancy). For all other fields change, + // modem should continue sending + // RIL_UNSOL_DATA_CALL_LIST_CHANGED regardless this + // bit is set or not. +} RIL_UnsolicitedResponseFilter; + +typedef struct { + char * aidPtr; /* AID value, See ETSI 102.221 and 101.220*/ + int p2; /* P2 parameter (described in ISO 7816-4) + P2Constants:NO_P2 if to be ignored */ +} RIL_OpenChannelParams; + +typedef enum { + RIL_ONE_SHOT = 0x01, // Performs the scan only once + RIL_PERIODIC = 0x02 // Performs the scan periodically until cancelled +} RIL_ScanType; + +typedef enum { + GERAN = 0x01, // GSM EDGE Radio Access Network + UTRAN = 0x02, // Universal Terrestrial Radio Access Network + EUTRAN = 0x03, // Evolved Universal Terrestrial Radio Access Network +} RIL_RadioAccessNetworks; + +typedef enum { + GERAN_BAND_T380 = 1, + GERAN_BAND_T410 = 2, + GERAN_BAND_450 = 3, + GERAN_BAND_480 = 4, + GERAN_BAND_710 = 5, + GERAN_BAND_750 = 6, + GERAN_BAND_T810 = 7, + GERAN_BAND_850 = 8, + GERAN_BAND_P900 = 9, + GERAN_BAND_E900 = 10, + GERAN_BAND_R900 = 11, + GERAN_BAND_DCS1800 = 12, + GERAN_BAND_PCS1900 = 13, + GERAN_BAND_ER900 = 14, +} RIL_GeranBands; + +typedef enum { + UTRAN_BAND_1 = 1, + UTRAN_BAND_2 = 2, + UTRAN_BAND_3 = 3, + UTRAN_BAND_4 = 4, + UTRAN_BAND_5 = 5, + UTRAN_BAND_6 = 6, + UTRAN_BAND_7 = 7, + UTRAN_BAND_8 = 8, + UTRAN_BAND_9 = 9, + UTRAN_BAND_10 = 10, + UTRAN_BAND_11 = 11, + UTRAN_BAND_12 = 12, + UTRAN_BAND_13 = 13, + UTRAN_BAND_14 = 14, + UTRAN_BAND_19 = 19, + UTRAN_BAND_20 = 20, + UTRAN_BAND_21 = 21, + UTRAN_BAND_22 = 22, + UTRAN_BAND_25 = 25, + UTRAN_BAND_26 = 26, +} RIL_UtranBands; + +typedef enum { + EUTRAN_BAND_1 = 1, + EUTRAN_BAND_2 = 2, + EUTRAN_BAND_3 = 3, + EUTRAN_BAND_4 = 4, + EUTRAN_BAND_5 = 5, + EUTRAN_BAND_6 = 6, + EUTRAN_BAND_7 = 7, + EUTRAN_BAND_8 = 8, + EUTRAN_BAND_9 = 9, + EUTRAN_BAND_10 = 10, + EUTRAN_BAND_11 = 11, + EUTRAN_BAND_12 = 12, + EUTRAN_BAND_13 = 13, + EUTRAN_BAND_14 = 14, + EUTRAN_BAND_17 = 17, + EUTRAN_BAND_18 = 18, + EUTRAN_BAND_19 = 19, + EUTRAN_BAND_20 = 20, + EUTRAN_BAND_21 = 21, + EUTRAN_BAND_22 = 22, + EUTRAN_BAND_23 = 23, + EUTRAN_BAND_24 = 24, + EUTRAN_BAND_25 = 25, + EUTRAN_BAND_26 = 26, + EUTRAN_BAND_27 = 27, + EUTRAN_BAND_28 = 28, + EUTRAN_BAND_30 = 30, + EUTRAN_BAND_31 = 31, + EUTRAN_BAND_33 = 33, + EUTRAN_BAND_34 = 34, + EUTRAN_BAND_35 = 35, + EUTRAN_BAND_36 = 36, + EUTRAN_BAND_37 = 37, + EUTRAN_BAND_38 = 38, + EUTRAN_BAND_39 = 39, + EUTRAN_BAND_40 = 40, + EUTRAN_BAND_41 = 41, + EUTRAN_BAND_42 = 42, + EUTRAN_BAND_43 = 43, + EUTRAN_BAND_44 = 44, + EUTRAN_BAND_45 = 45, + EUTRAN_BAND_46 = 46, + EUTRAN_BAND_47 = 47, + EUTRAN_BAND_48 = 48, + EUTRAN_BAND_65 = 65, + EUTRAN_BAND_66 = 66, + EUTRAN_BAND_68 = 68, + EUTRAN_BAND_70 = 70, +} RIL_EutranBands; + +typedef struct { + RIL_RadioAccessNetworks radio_access_network; // The type of network to scan. + uint32_t bands_length; // Length of bands + union { + RIL_GeranBands geran_bands[MAX_BANDS]; + RIL_UtranBands utran_bands[MAX_BANDS]; + RIL_EutranBands eutran_bands[MAX_BANDS]; + } bands; + uint32_t channels_length; // Length of channels + uint32_t channels[MAX_CHANNELS]; // Frequency channels to scan +} RIL_RadioAccessSpecifier; + +typedef struct { + RIL_ScanType type; // Type of the scan + int32_t interval; // Time interval in seconds + // between periodic scans, only + // valid when type=RIL_PERIODIC + uint32_t specifiers_length; // Length of specifiers + RIL_RadioAccessSpecifier specifiers[MAX_RADIO_ACCESS_NETWORKS]; // Radio access networks + // with bands/channels. +} RIL_NetworkScanRequest; + +typedef enum { + PARTIAL = 0x01, // The result contains a part of the scan results + COMPLETE = 0x02, // The result contains the last part of the scan results +} RIL_ScanStatus; + +typedef struct { + RIL_ScanStatus status; // The status of the scan + uint32_t network_infos_length; // Total length of RIL_CellInfo + RIL_CellInfo_v12* network_infos; // List of network information +} RIL_NetworkScanResult; + +/** + * RIL_REQUEST_GET_SIM_STATUS + * + * Requests status of the SIM interface and the SIM card + * + * "data" is NULL + * + * "response" is const RIL_CardStatus_v6 * + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_GET_SIM_STATUS 1 + +/** + * RIL_REQUEST_ENTER_SIM_PIN + * + * Supplies SIM PIN. Only called if RIL_CardStatus has RIL_APPSTATE_PIN state + * + * "data" is const char ** + * ((const char **)data)[0] is PIN value + * ((const char **)data)[1] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * + * "response" is int * + * ((int *)response)[0] is the number of retries remaining, or -1 if unknown + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * PASSWORD_INCORRECT + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_ENTER_SIM_PIN 2 + +/** + * RIL_REQUEST_ENTER_SIM_PUK + * + * Supplies SIM PUK and new PIN. + * + * "data" is const char ** + * ((const char **)data)[0] is PUK value + * ((const char **)data)[1] is new PIN value + * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * + * "response" is int * + * ((int *)response)[0] is the number of retries remaining, or -1 if unknown + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * PASSWORD_INCORRECT + * (PUK is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_ENTER_SIM_PUK 3 + +/** + * RIL_REQUEST_ENTER_SIM_PIN2 + * + * Supplies SIM PIN2. Only called following operation where SIM_PIN2 was + * returned as a a failure from a previous operation. + * + * "data" is const char ** + * ((const char **)data)[0] is PIN2 value + * ((const char **)data)[1] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * + * "response" is int * + * ((int *)response)[0] is the number of retries remaining, or -1 if unknown + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * PASSWORD_INCORRECT + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_ENTER_SIM_PIN2 4 + +/** + * RIL_REQUEST_ENTER_SIM_PUK2 + * + * Supplies SIM PUK2 and new PIN2. + * + * "data" is const char ** + * ((const char **)data)[0] is PUK2 value + * ((const char **)data)[1] is new PIN2 value + * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * + * "response" is int * + * ((int *)response)[0] is the number of retries remaining, or -1 if unknown + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * PASSWORD_INCORRECT + * (PUK2 is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_ENTER_SIM_PUK2 5 + +/** + * RIL_REQUEST_CHANGE_SIM_PIN + * + * Supplies old SIM PIN and new PIN. + * + * "data" is const char ** + * ((const char **)data)[0] is old PIN value + * ((const char **)data)[1] is new PIN value + * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * + * "response" is int * + * ((int *)response)[0] is the number of retries remaining, or -1 if unknown + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * PASSWORD_INCORRECT + * (old PIN is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_CHANGE_SIM_PIN 6 + + +/** + * RIL_REQUEST_CHANGE_SIM_PIN2 + * + * Supplies old SIM PIN2 and new PIN2. + * + * "data" is const char ** + * ((const char **)data)[0] is old PIN2 value + * ((const char **)data)[1] is new PIN2 value + * ((const char **)data)[2] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * + * "response" is int * + * ((int *)response)[0] is the number of retries remaining, or -1 if unknown + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * PASSWORD_INCORRECT + * (old PIN2 is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED + * + */ + +#define RIL_REQUEST_CHANGE_SIM_PIN2 7 + +/** + * RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION + * + * Requests that network personlization be deactivated + * + * "data" is const char ** + * ((const char **)(data))[0]] is network depersonlization code + * + * "response" is int * + * ((int *)response)[0] is the number of retries remaining, or -1 if unknown + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * PASSWORD_INCORRECT + * (code is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION 8 + +/** + * RIL_REQUEST_GET_CURRENT_CALLS + * + * Requests current call list + * + * "data" is NULL + * + * "response" must be a "const RIL_Call **" + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * (request will be made again in a few hundred msec) + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_GET_CURRENT_CALLS 9 + + +/** + * RIL_REQUEST_DIAL + * + * Initiate voice call + * + * "data" is const RIL_Dial * + * "response" is NULL + * + * This method is never used for supplementary service codes + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * DIAL_MODIFIED_TO_USSD + * DIAL_MODIFIED_TO_SS + * DIAL_MODIFIED_TO_DIAL + * INVALID_ARGUMENTS + * NO_MEMORY + * INVALID_STATE + * NO_RESOURCES + * INTERNAL_ERR + * FDN_CHECK_FAILURE + * MODEM_ERR + * NO_SUBSCRIPTION + * NO_NETWORK_FOUND + * INVALID_CALL_ID + * DEVICE_IN_USE + * OPERATION_NOT_ALLOWED + * ABORTED + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_DIAL 10 + +/** + * RIL_REQUEST_GET_IMSI + * + * Get the SIM IMSI + * + * Only valid when radio state is "RADIO_STATE_ON" + * + * "data" is const char ** + * ((const char **)data)[0] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * "response" is a const char * containing the IMSI + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_GET_IMSI 11 + +/** + * RIL_REQUEST_HANGUP + * + * Hang up a specific line (like AT+CHLD=1x) + * + * After this HANGUP request returns, RIL should show the connection is NOT + * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query. + * + * "data" is an int * + * (int *)data)[0] contains Connection index (value of 'x' in CHLD above) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_ARGUMENTS + * NO_MEMORY + * INVALID_STATE + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * INVALID_CALL_ID + * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_HANGUP 12 + +/** + * RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND + * + * Hang up waiting or held (like AT+CHLD=0) + * + * After this HANGUP request returns, RIL should show the connection is NOT + * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query. + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_STATE + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * INVALID_CALL_ID + * NO_RESOURCES + * OPERATION_NOT_ALLOWED + * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND 13 + +/** + * RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND + * + * Hang up waiting or held (like AT+CHLD=1) + * + * After this HANGUP request returns, RIL should show the connection is NOT + * active anymore in next RIL_REQUEST_GET_CURRENT_CALLS query. + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_STATE + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * OPERATION_NOT_ALLOWED + * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND 14 + +/** + * RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE + * + * Switch waiting or holding call and active call (like AT+CHLD=2) + * + * State transitions should be is follows: + * + * If call 1 is waiting and call 2 is active, then if this re + * + * BEFORE AFTER + * Call 1 Call 2 Call 1 Call 2 + * ACTIVE HOLDING HOLDING ACTIVE + * ACTIVE WAITING HOLDING ACTIVE + * HOLDING WAITING HOLDING ACTIVE + * ACTIVE IDLE HOLDING IDLE + * IDLE IDLE IDLE IDLE + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_STATE + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * INVALID_STATE + * INVALID_ARGUMENTS + * INVALID_CALL_ID + * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE 15 +#define RIL_REQUEST_SWITCH_HOLDING_AND_ACTIVE 15 + +/** + * RIL_REQUEST_CONFERENCE + * + * Conference holding and active (like AT+CHLD=3) + + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * INVALID_STATE + * INVALID_CALL_ID + * INVALID_ARGUMENTS + * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_CONFERENCE 16 + +/** + * RIL_REQUEST_UDUB + * + * Send UDUB (user determined used busy) to ringing or + * waiting call answer)(RIL_BasicRequest r); + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_STATE + * NO_RESOURCES + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * OPERATION_NOT_ALLOWED + * INVALID_ARGUMENTS + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_UDUB 17 + +/** + * RIL_REQUEST_LAST_CALL_FAIL_CAUSE + * + * Requests the failure cause code for the most recently terminated call + * + * "data" is NULL + * "response" is a const RIL_LastCallFailCauseInfo * + * RIL_LastCallFailCauseInfo contains LastCallFailCause and vendor cause. + * The vendor cause code must be used for debugging purpose only. + * The implementation must return one of the values of LastCallFailCause + * as mentioned below. + * + * GSM failure reasons codes for the cause codes defined in TS 24.008 Annex H + * where possible. + * CDMA failure reasons codes for the possible call failure scenarios + * described in the "CDMA IS-2000 Release A (C.S0005-A v6.0)" standard. + * Any of the following reason codes if the call is failed or dropped due to reason + * mentioned with in the braces. + * + * CALL_FAIL_RADIO_OFF (Radio is OFF) + * CALL_FAIL_OUT_OF_SERVICE (No cell coverage) + * CALL_FAIL_NO_VALID_SIM (No valid SIM) + * CALL_FAIL_RADIO_INTERNAL_ERROR (Modem hit unexpected error scenario) + * CALL_FAIL_NETWORK_RESP_TIMEOUT (No response from network) + * CALL_FAIL_NETWORK_REJECT (Explicit network reject) + * CALL_FAIL_RADIO_ACCESS_FAILURE (RRC connection failure. Eg.RACH) + * CALL_FAIL_RADIO_LINK_FAILURE (Radio Link Failure) + * CALL_FAIL_RADIO_LINK_LOST (Radio link lost due to poor coverage) + * CALL_FAIL_RADIO_UPLINK_FAILURE (Radio uplink failure) + * CALL_FAIL_RADIO_SETUP_FAILURE (RRC connection setup failure) + * CALL_FAIL_RADIO_RELEASE_NORMAL (RRC connection release, normal) + * CALL_FAIL_RADIO_RELEASE_ABNORMAL (RRC connection release, abnormal) + * CALL_FAIL_ACCESS_CLASS_BLOCKED (Access class barring) + * CALL_FAIL_NETWORK_DETACH (Explicit network detach) + * + * OEM causes (CALL_FAIL_OEM_CAUSE_XX) must be used for debug purpose only + * + * If the implementation does not have access to the exact cause codes, + * then it should return one of the values listed in RIL_LastCallFailCause, + * as the UI layer needs to distinguish these cases for tone generation or + * error notification. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE + */ +#define RIL_REQUEST_LAST_CALL_FAIL_CAUSE 18 + +/** + * RIL_REQUEST_SIGNAL_STRENGTH + * + * Requests current signal strength and associated information + * + * Must succeed if radio is on. + * + * "data" is NULL + * + * "response" is a const RIL_SignalStrength * + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SIGNAL_STRENGTH 19 + +/** + * RIL_REQUEST_VOICE_REGISTRATION_STATE + * + * Request current registration state + * + * "data" is NULL + * "response" is a const RIL_VoiceRegistrationStateResponse * + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_VOICE_REGISTRATION_STATE 20 + +/** + * RIL_REQUEST_DATA_REGISTRATION_STATE + * + * Request current DATA registration state + * + * "data" is NULL + * "response" is a const RIL_DataRegistrationStateResponse * + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_DATA_REGISTRATION_STATE 21 + +/** + * RIL_REQUEST_OPERATOR + * + * Request current operator ONS or EONS + * + * "data" is NULL + * "response" is a "const char **" + * ((const char **)response)[0] is long alpha ONS or EONS + * or NULL if unregistered + * + * ((const char **)response)[1] is short alpha ONS or EONS + * or NULL if unregistered + * ((const char **)response)[2] is 5 or 6 digit numeric code (MCC + MNC) + * or NULL if unregistered + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_OPERATOR 22 + +/** + * RIL_REQUEST_RADIO_POWER + * + * Toggle radio on and off (for "airplane" mode) + * If the radio is is turned off/on the radio modem subsystem + * is expected return to an initialized state. For instance, + * any voice and data calls will be terminated and all associated + * lists emptied. + * + * "data" is int * + * ((int *)data)[0] is > 0 for "Radio On" + * ((int *)data)[0] is == 0 for "Radio Off" + * + * "response" is NULL + * + * Turn radio on if "on" > 0 + * Turn radio off if "on" == 0 + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * INVALID_STATE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * DEVICE_IN_USE + * OPERATION_NOT_ALLOWED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_RADIO_POWER 23 + +/** + * RIL_REQUEST_DTMF + * + * Send a DTMF tone + * + * If the implementation is currently playing a tone requested via + * RIL_REQUEST_DTMF_START, that tone should be cancelled and the new tone + * should be played instead + * + * "data" is a char * containing a single character with one of 12 values: 0-9,*,# + * "response" is NULL + * + * FIXME should this block/mute microphone? + * How does this interact with local DTMF feedback? + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * NO_RESOURCES + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_REQUEST_DTMF_STOP, RIL_REQUEST_DTMF_START + * + */ +#define RIL_REQUEST_DTMF 24 + +/** + * RIL_REQUEST_SEND_SMS + * + * Send an SMS message + * + * "data" is const char ** + * ((const char **)data)[0] is SMSC address in GSM BCD format prefixed + * by a length byte (as expected by TS 27.005) or NULL for default SMSC + * ((const char **)data)[1] is SMS in PDU format as an ASCII hex string + * less the SMSC address + * TP-Layer-Length is be "strlen(((const char **)data)[1])/2" + * + * "response" is a const RIL_SMS_Response * + * + * Based on the return error, caller decides to resend if sending sms + * fails. SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332) + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SMS_SEND_FAIL_RETRY + * FDN_CHECK_FAILURE + * NETWORK_REJECT + * INVALID_STATE + * INVALID_ARGUMENTS + * NO_MEMORY + * REQUEST_RATE_LIMITED + * INVALID_SMS_FORMAT + * SYSTEM_ERR + * ENCODING_ERR + * INVALID_SMSC_ADDRESS + * MODEM_ERR + * NETWORK_ERR + * OPERATION_NOT_ALLOWED + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + * FIXME how do we specify TP-Message-Reference if we need to resend? + */ +#define RIL_REQUEST_SEND_SMS 25 + + +/** + * RIL_REQUEST_SEND_SMS_EXPECT_MORE + * + * Send an SMS message. Identical to RIL_REQUEST_SEND_SMS, + * except that more messages are expected to be sent soon. If possible, + * keep SMS relay protocol link open (eg TS 27.005 AT+CMMS command) + * + * "data" is const char ** + * ((const char **)data)[0] is SMSC address in GSM BCD format prefixed + * by a length byte (as expected by TS 27.005) or NULL for default SMSC + * ((const char **)data)[1] is SMS in PDU format as an ASCII hex string + * less the SMSC address + * TP-Layer-Length is be "strlen(((const char **)data)[1])/2" + * + * "response" is a const RIL_SMS_Response * + * + * Based on the return error, caller decides to resend if sending sms + * fails. SMS_SEND_FAIL_RETRY means retry (i.e. error cause is 332) + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SMS_SEND_FAIL_RETRY + * NETWORK_REJECT + * INVALID_STATE + * INVALID_ARGUMENTS + * NO_MEMORY + * INVALID_SMS_FORMAT + * SYSTEM_ERR + * REQUEST_RATE_LIMITED + * FDN_CHECK_FAILURE + * MODEM_ERR + * NETWORK_ERR + * ENCODING_ERR + * INVALID_SMSC_ADDRESS + * OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_SEND_SMS_EXPECT_MORE 26 + + +/** + * RIL_REQUEST_SETUP_DATA_CALL + * + * Setup a packet data connection. If RIL_Data_Call_Response_v6.status + * return success it is added to the list of data calls and a + * RIL_UNSOL_DATA_CALL_LIST_CHANGED is sent. The call remains in the + * list until RIL_REQUEST_DEACTIVATE_DATA_CALL is issued or the + * radio is powered off/on. This list is returned by RIL_REQUEST_DATA_CALL_LIST + * and RIL_UNSOL_DATA_CALL_LIST_CHANGED. + * + * The RIL is expected to: + * - Create one data call context. + * - Create and configure a dedicated interface for the context + * - The interface must be point to point. + * - The interface is configured with one or more addresses and + * is capable of sending and receiving packets. The prefix length + * of the addresses must be /32 for IPv4 and /128 for IPv6. + * - Must NOT change the linux routing table. + * - Support up to RIL_REQUEST_DATA_REGISTRATION_STATE response[5] + * number of simultaneous data call contexts. + * + * "data" is a const char ** + * ((const char **)data)[0] Radio technology to use: 0-CDMA, 1-GSM/UMTS, 2... + * for values above 2 this is RIL_RadioTechnology + 2. + * ((const char **)data)[1] is a RIL_DataProfile (support is optional) + * ((const char **)data)[2] is the APN to connect to if radio technology is GSM/UMTS. This APN will + * override the one in the profile. NULL indicates no APN overrride. + * ((const char **)data)[3] is the username for APN, or NULL + * ((const char **)data)[4] is the password for APN, or NULL + * ((const char **)data)[5] is the PAP / CHAP auth type. Values: + * 0 => PAP and CHAP is never performed. + * 1 => PAP may be performed; CHAP is never performed. + * 2 => CHAP may be performed; PAP is never performed. + * 3 => PAP / CHAP may be performed - baseband dependent. + * ((const char **)data)[6] is the non-roaming/home connection type to request. Must be one of the + * PDP_type values in TS 27.007 section 10.1.1. + * For example, "IP", "IPV6", "IPV4V6", or "PPP". + * ((const char **)data)[7] is the roaming connection type to request. Must be one of the + * PDP_type values in TS 27.007 section 10.1.1. + * For example, "IP", "IPV6", "IPV4V6", or "PPP". + * ((const char **)data)[8] is the bitmask of APN type in decimal string format. The + * bitmask will encapsulate the following values: + * ia,mms,agps,supl,hipri,fota,dun,ims,default. + * ((const char **)data)[9] is the bearer bitmask in decimal string format. Each bit is a + * RIL_RadioAccessFamily. "0" or NULL indicates all RATs. + * ((const char **)data)[10] is the boolean in string format indicating the APN setting was + * sent to the modem through RIL_REQUEST_SET_DATA_PROFILE earlier. + * ((const char **)data)[11] is the mtu size in bytes of the mobile interface to which + * the apn is connected. + * ((const char **)data)[12] is the MVNO type: + * possible values are "imsi", "gid", "spn". + * ((const char **)data)[13] is MVNO match data in string. Can be anything defined by the carrier. + * For example, + * SPN like: "A MOBILE", "BEN NL", etc... + * IMSI like: "302720x94", "2060188", etc... + * GID like: "4E", "33", etc... + * ((const char **)data)[14] is the boolean string indicating data roaming is allowed or not. "1" + * indicates data roaming is enabled by the user, "0" indicates disabled. + * + * "response" is a RIL_Data_Call_Response_v11 + * + * FIXME may need way to configure QoS settings + * + * Valid errors: + * SUCCESS should be returned on both success and failure of setup with + * the RIL_Data_Call_Response_v6.status containing the actual status. + * For all other errors the RIL_Data_Call_Resonse_v6 is ignored. + * + * Other errors could include: + * RADIO_NOT_AVAILABLE, OP_NOT_ALLOWED_BEFORE_REG_TO_NW, + * OP_NOT_ALLOWED_DURING_VOICE_CALL, REQUEST_NOT_SUPPORTED, + * INVALID_ARGUMENTS, INTERNAL_ERR, NO_MEMORY, NO_RESOURCES + * and CANCELLED + * + * See also: RIL_REQUEST_DEACTIVATE_DATA_CALL + */ +#define RIL_REQUEST_SETUP_DATA_CALL 27 + + +/** + * RIL_REQUEST_SIM_IO + * + * Request SIM I/O operation. + * This is similar to the TS 27.007 "restricted SIM" operation + * where it assumes all of the EF selection will be done by the + * callee. + * + * "data" is a const RIL_SIM_IO_v6 * + * Please note that RIL_SIM_IO has a "PIN2" field which may be NULL, + * or may specify a PIN2 for operations that require a PIN2 (eg + * updating FDN records) + * + * "response" is a const RIL_SIM_IO_Response * + * + * Arguments and responses that are unused for certain + * values of "command" should be ignored or set to NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SIM_PIN2 + * SIM_PUK2 + * INVALID_SIM_STATE + * SIM_ERR + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SIM_IO 28 + +/** + * RIL_REQUEST_SEND_USSD + * + * Send a USSD message + * + * If a USSD session already exists, the message should be sent in the + * context of that session. Otherwise, a new session should be created. + * + * The network reply should be reported via RIL_UNSOL_ON_USSD + * + * Only one USSD session may exist at a time, and the session is assumed + * to exist until: + * a) The android system invokes RIL_REQUEST_CANCEL_USSD + * b) The implementation sends a RIL_UNSOL_ON_USSD with a type code + * of "0" (USSD-Notify/no further action) or "2" (session terminated) + * + * "data" is a const char * containing the USSD request in UTF-8 format + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * FDN_CHECK_FAILURE + * USSD_MODIFIED_TO_DIAL + * USSD_MODIFIED_TO_SS + * USSD_MODIFIED_TO_USSD + * SIM_BUSY + * OPERATION_NOT_ALLOWED + * INVALID_ARGUMENTS + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * ABORTED + * SYSTEM_ERR + * INVALID_STATE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_REQUEST_CANCEL_USSD, RIL_UNSOL_ON_USSD + */ + +#define RIL_REQUEST_SEND_USSD 29 + +/** + * RIL_REQUEST_CANCEL_USSD + * + * Cancel the current USSD session if one exists + * + * "data" is null + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SIM_BUSY + * OPERATION_NOT_ALLOWED + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * INVALID_STATE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_CANCEL_USSD 30 + +/** + * RIL_REQUEST_GET_CLIR + * + * Gets current CLIR status + * "data" is NULL + * "response" is int * + * ((int *)data)[0] is "n" parameter from TS 27.007 7.7 + * ((int *)data)[1] is "m" parameter from TS 27.007 7.7 + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * FDN_CHECK_FAILURE + * SYSTEM_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_GET_CLIR 31 + +/** + * RIL_REQUEST_SET_CLIR + * + * "data" is int * + * ((int *)data)[0] is "n" parameter from TS 27.007 7.7 + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * INVALID_ARGUMENTS + * SYSTEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SET_CLIR 32 + +/** + * RIL_REQUEST_QUERY_CALL_FORWARD_STATUS + * + * "data" is const RIL_CallForwardInfo * + * + * "response" is const RIL_CallForwardInfo ** + * "response" points to an array of RIL_CallForwardInfo *'s, one for + * each distinct registered phone number. + * + * For example, if data is forwarded to +18005551212 and voice is forwarded + * to +18005559999, then two separate RIL_CallForwardInfo's should be returned + * + * If, however, both data and voice are forwarded to +18005551212, then + * a single RIL_CallForwardInfo can be returned with the service class + * set to "data + voice = 3") + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_QUERY_CALL_FORWARD_STATUS 33 + + +/** + * RIL_REQUEST_SET_CALL_FORWARD + * + * Configure call forward rule + * + * "data" is const RIL_CallForwardInfo * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * INVALID_STATE + * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SET_CALL_FORWARD 34 + + +/** + * RIL_REQUEST_QUERY_CALL_WAITING + * + * Query current call waiting state + * + * "data" is const int * + * ((const int *)data)[0] is the TS 27.007 service class to query. + * "response" is a const int * + * ((const int *)response)[0] is 0 for "disabled" and 1 for "enabled" + * + * If ((const int *)response)[0] is = 1, then ((const int *)response)[1] + * must follow, with the TS 27.007 service class bit vector of services + * for which call waiting is enabled. + * + * For example, if ((const int *)response)[0] is 1 and + * ((const int *)response)[1] is 3, then call waiting is enabled for data + * and voice and disabled for everything else + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * FDN_CHECK_FAILURE + * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_QUERY_CALL_WAITING 35 + + +/** + * RIL_REQUEST_SET_CALL_WAITING + * + * Configure current call waiting state + * + * "data" is const int * + * ((const int *)data)[0] is 0 for "disabled" and 1 for "enabled" + * ((const int *)data)[1] is the TS 27.007 service class bit vector of + * services to modify + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * INVALID_ARGUMENTS + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * INVALID_STATE + * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SET_CALL_WAITING 36 + +/** + * RIL_REQUEST_SMS_ACKNOWLEDGE + * + * Acknowledge successful or failed receipt of SMS previously indicated + * via RIL_UNSOL_RESPONSE_NEW_SMS + * + * "data" is int * + * ((int *)data)[0] is 1 on successful receipt + * (basically, AT+CNMA=1 from TS 27.005 + * is 0 on failed receipt + * (basically, AT+CNMA=2 from TS 27.005) + * ((int *)data)[1] if data[0] is 0, this contains the failure cause as defined + * in TS 23.040, 9.2.3.22. Currently only 0xD3 (memory + * capacity exceeded) and 0xFF (unspecified error) are + * reported. + * + * "response" is NULL + * + * FIXME would like request that specified RP-ACK/RP-ERROR PDU + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SMS_ACKNOWLEDGE 37 + +/** + * RIL_REQUEST_GET_IMEI - DEPRECATED + * + * Get the device IMEI, including check digit + * + * The request is DEPRECATED, use RIL_REQUEST_DEVICE_IDENTITY + * Valid when RadioState is not RADIO_STATE_UNAVAILABLE + * + * "data" is NULL + * "response" is a const char * containing the IMEI + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ + +#define RIL_REQUEST_GET_IMEI 38 + +/** + * RIL_REQUEST_GET_IMEISV - DEPRECATED + * + * Get the device IMEISV, which should be two decimal digits + * + * The request is DEPRECATED, use RIL_REQUEST_DEVICE_IDENTITY + * Valid when RadioState is not RADIO_STATE_UNAVAILABLE + * + * "data" is NULL + * "response" is a const char * containing the IMEISV + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ + +#define RIL_REQUEST_GET_IMEISV 39 + + +/** + * RIL_REQUEST_ANSWER + * + * Answer incoming call + * + * Will not be called for WAITING calls. + * RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE will be used in this case + * instead + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_STATE + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_ANSWER 40 + +/** + * RIL_REQUEST_DEACTIVATE_DATA_CALL + * + * Deactivate packet data connection and remove from the + * data call list if SUCCESS is returned. Any other return + * values should also try to remove the call from the list, + * but that may not be possible. In any event a + * RIL_REQUEST_RADIO_POWER off/on must clear the list. An + * RIL_UNSOL_DATA_CALL_LIST_CHANGED is not expected to be + * issued because of an RIL_REQUEST_DEACTIVATE_DATA_CALL. + * + * "data" is const char ** + * ((char**)data)[0] indicating CID + * ((char**)data)[1] indicating Disconnect Reason + * 0 => No specific reason specified + * 1 => Radio shutdown requested + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_CALL_ID + * INVALID_STATE + * INVALID_ARGUMENTS + * REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * + * See also: RIL_REQUEST_SETUP_DATA_CALL + */ +#define RIL_REQUEST_DEACTIVATE_DATA_CALL 41 + +/** + * RIL_REQUEST_QUERY_FACILITY_LOCK + * + * Query the status of a facility lock state + * + * "data" is const char ** + * ((const char **)data)[0] is the facility string code from TS 27.007 7.4 + * (eg "AO" for BAOC, "SC" for SIM lock) + * ((const char **)data)[1] is the password, or "" if not required + * ((const char **)data)[2] is the TS 27.007 service class bit vector of + * services to query + * ((const char **)data)[3] is AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * This is only applicable in the case of Fixed Dialing Numbers + * (FDN) requests. + * + * "response" is an int * + * ((const int *)response) 0 is the TS 27.007 service class bit vector of + * services for which the specified barring facility + * is active. "0" means "disabled for all" + * + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * INVALID_ARGUMENTS + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_QUERY_FACILITY_LOCK 42 + +/** + * RIL_REQUEST_SET_FACILITY_LOCK + * + * Enable/disable one facility lock + * + * "data" is const char ** + * + * ((const char **)data)[0] = facility string code from TS 27.007 7.4 + * (eg "AO" for BAOC) + * ((const char **)data)[1] = "0" for "unlock" and "1" for "lock" + * ((const char **)data)[2] = password + * ((const char **)data)[3] = string representation of decimal TS 27.007 + * service class bit vector. Eg, the string + * "1" means "set this facility for voice services" + * ((const char **)data)[4] = AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value. + * This is only applicable in the case of Fixed Dialing Numbers + * (FDN) requests. + * + * "response" is int * + * ((int *)response)[0] is the number of retries remaining, or -1 if unknown + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * INVALID_ARGUMENTS + * INTERNAL_ERR + * NO_MEMORY + * MODEM_ERR + * INVALID_STATE + * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_SET_FACILITY_LOCK 43 + +/** + * RIL_REQUEST_CHANGE_BARRING_PASSWORD + * + * Change call barring facility password + * + * "data" is const char ** + * + * ((const char **)data)[0] = facility string code from TS 27.007 7.4 + * (eg "AO" for BAOC) + * ((const char **)data)[1] = old password + * ((const char **)data)[2] = new password + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * INVALID_ARGUMENTS + * NO_MEMORY + * MODEM_ERR + * INTERNAL_ERR + * SYSTEM_ERR + * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CHANGE_BARRING_PASSWORD 44 + +/** + * RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE + * + * Query current network selectin mode + * + * "data" is NULL + * + * "response" is int * + * ((const int *)response)[0] is + * 0 for automatic selection + * 1 for manual selection + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE 45 + +/** + * RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC + * + * Specify that the network should be selected automatically + * + * "data" is NULL + * "response" is NULL + * + * This request must not respond until the new operator is selected + * and registered + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * ILLEGAL_SIM_OR_ME + * OPERATION_NOT_ALLOWED + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + * Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and + * no retries needed, such as illegal SIM or ME. + * + */ +#define RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC 46 + +/** + * RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL + * + * Manually select a specified network. + * + * "data" is const char * specifying MCCMNC of network to select (eg "310170") + * "response" is NULL + * + * This request must not respond until the new operator is selected + * and registered + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * ILLEGAL_SIM_OR_ME + * OPERATION_NOT_ALLOWED + * INVALID_STATE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + * Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and + * no retries needed, such as illegal SIM or ME. + * + */ +#define RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL 47 + +/** + * RIL_REQUEST_QUERY_AVAILABLE_NETWORKS + * + * Scans for available networks + * + * "data" is NULL + * "response" is const char ** that should be an array of n*4 strings, where + * n is the number of available networks + * For each available network: + * + * ((const char **)response)[n+0] is long alpha ONS or EONS + * ((const char **)response)[n+1] is short alpha ONS or EONS + * ((const char **)response)[n+2] is 5 or 6 digit numeric code (MCC + MNC) + * ((const char **)response)[n+3] is a string value of the status: + * "unknown" + * "available" + * "current" + * "forbidden" + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * ABORTED + * DEVICE_IN_USE + * INTERNAL_ERR + * NO_MEMORY + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * CANCELLED + * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_QUERY_AVAILABLE_NETWORKS 48 + +/** + * RIL_REQUEST_DTMF_START + * + * Start playing a DTMF tone. Continue playing DTMF tone until + * RIL_REQUEST_DTMF_STOP is received + * + * If a RIL_REQUEST_DTMF_START is received while a tone is currently playing, + * it should cancel the previous tone and play the new one. + * + * "data" is a char * + * ((char *)data)[0] is a single character with one of 12 values: 0-9,*,# + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * NO_RESOURCES + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_STOP + */ +#define RIL_REQUEST_DTMF_START 49 + +/** + * RIL_REQUEST_DTMF_STOP + * + * Stop playing a currently playing DTMF tone. + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * NO_MEMORY + * INVALID_ARGUMENTS + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_START + */ +#define RIL_REQUEST_DTMF_STOP 50 + +/** + * RIL_REQUEST_BASEBAND_VERSION + * + * Return string value indicating baseband version, eg + * response from AT+CGMR + * + * "data" is NULL + * "response" is const char * containing version string for log reporting + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * EMPTY_RECORD + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_BASEBAND_VERSION 51 + +/** + * RIL_REQUEST_SEPARATE_CONNECTION + * + * Separate a party from a multiparty call placing the multiparty call + * (less the specified party) on hold and leaving the specified party + * as the only other member of the current (active) call + * + * Like AT+CHLD=2x + * + * See TS 22.084 1.3.8.2 (iii) + * TS 22.030 6.5.5 "Entering "2X followed by send" + * TS 27.007 "AT+CHLD=2x" + * + * "data" is an int * + * (int *)data)[0] contains Connection index (value of 'x' in CHLD above) "response" is NULL + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_ARGUMENTS + * INVALID_STATE + * NO_RESOURCES + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * INVALID_STATE + * OPERATION_NOT_ALLOWED + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SEPARATE_CONNECTION 52 + + +/** + * RIL_REQUEST_SET_MUTE + * + * Turn on or off uplink (microphone) mute. + * + * Will only be sent while voice call is active. + * Will always be reset to "disable mute" when a new voice call is initiated + * + * "data" is an int * + * (int *)data)[0] is 1 for "enable mute" and 0 for "disable mute" + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_ARGUMENTS + * NO_MEMORY + * REQUEST_RATE_LIMITED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_SET_MUTE 53 + +/** + * RIL_REQUEST_GET_MUTE + * + * Queries the current state of the uplink mute setting + * + * "data" is NULL + * "response" is an int * + * (int *)response)[0] is 1 for "mute enabled" and 0 for "mute disabled" + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * SS_MODIFIED_TO_DIAL + * SS_MODIFIED_TO_USSD + * SS_MODIFIED_TO_SS + * NO_MEMORY + * REQUEST_RATE_LIMITED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_GET_MUTE 54 + +/** + * RIL_REQUEST_QUERY_CLIP + * + * Queries the status of the CLIP supplementary service + * + * (for MMI code "*#30#") + * + * "data" is NULL + * "response" is an int * + * (int *)response)[0] is 1 for "CLIP provisioned" + * and 0 for "CLIP not provisioned" + * and 2 for "unknown, e.g. no network etc" + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_QUERY_CLIP 55 + +/** + * RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE - Deprecated use the status + * field in RIL_Data_Call_Response_v6. + * + * Requests the failure cause code for the most recently failed PDP + * context or CDMA data connection active + * replaces RIL_REQUEST_LAST_PDP_FAIL_CAUSE + * + * "data" is NULL + * + * "response" is a "int *" + * ((int *)response)[0] is an integer cause code defined in TS 24.008 + * section 6.1.3.1.3 or close approximation + * + * If the implementation does not have access to the exact cause codes, + * then it should return one of the values listed in + * RIL_DataCallFailCause, as the UI layer needs to distinguish these + * cases for error notification + * and potential retries. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_REQUEST_LAST_CALL_FAIL_CAUSE + * + * Deprecated use the status field in RIL_Data_Call_Response_v6. + */ + +#define RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE 56 + +/** + * RIL_REQUEST_DATA_CALL_LIST + * + * Returns the data call list. An entry is added when a + * RIL_REQUEST_SETUP_DATA_CALL is issued and removed on a + * RIL_REQUEST_DEACTIVATE_DATA_CALL. The list is emptied + * when RIL_REQUEST_RADIO_POWER off/on is issued. + * + * "data" is NULL + * "response" is an array of RIL_Data_Call_Response_v6 + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_UNSOL_DATA_CALL_LIST_CHANGED + */ + +#define RIL_REQUEST_DATA_CALL_LIST 57 + +/** + * RIL_REQUEST_RESET_RADIO - DEPRECATED + * + * Request a radio reset. The RIL implementation may postpone + * the reset until after this request is responded to if the baseband + * is presently busy. + * + * The request is DEPRECATED, use RIL_REQUEST_RADIO_POWER + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * REQUEST_NOT_SUPPORTED + */ + +#define RIL_REQUEST_RESET_RADIO 58 + +/** + * RIL_REQUEST_OEM_HOOK_RAW + * + * This request reserved for OEM-specific uses. It passes raw byte arrays + * back and forth. + * + * It can be invoked on the Java side from + * com.android.internal.telephony.Phone.invokeOemRilRequestRaw() + * + * "data" is a char * of bytes copied from the byte[] data argument in java + * "response" is a char * of bytes that will returned via the + * caller's "response" Message here: + * (byte[])(((AsyncResult)response.obj).result) + * + * An error response here will result in + * (((AsyncResult)response.obj).result) == null and + * (((AsyncResult)response.obj).exception) being an instance of + * com.android.internal.telephony.gsm.CommandException + * + * Valid errors: + * All + */ + +#define RIL_REQUEST_OEM_HOOK_RAW 59 + +/** + * RIL_REQUEST_OEM_HOOK_STRINGS + * + * This request reserved for OEM-specific uses. It passes strings + * back and forth. + * + * It can be invoked on the Java side from + * com.android.internal.telephony.Phone.invokeOemRilRequestStrings() + * + * "data" is a const char **, representing an array of null-terminated UTF-8 + * strings copied from the "String[] strings" argument to + * invokeOemRilRequestStrings() + * + * "response" is a const char **, representing an array of null-terminated UTF-8 + * stings that will be returned via the caller's response message here: + * + * (String[])(((AsyncResult)response.obj).result) + * + * An error response here will result in + * (((AsyncResult)response.obj).result) == null and + * (((AsyncResult)response.obj).exception) being an instance of + * com.android.internal.telephony.gsm.CommandException + * + * Valid errors: + * All + */ + +#define RIL_REQUEST_OEM_HOOK_STRINGS 60 + +/** + * RIL_REQUEST_SCREEN_STATE - DEPRECATED + * + * Indicates the current state of the screen. When the screen is off, the + * RIL should notify the baseband to suppress certain notifications (eg, + * signal strength and changes in LAC/CID or BID/SID/NID/latitude/longitude) + * in an effort to conserve power. These notifications should resume when the + * screen is on. + * + * Note this request is deprecated. Use RIL_REQUEST_SEND_DEVICE_STATE to report the device state + * to the modem and use RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER to turn on/off unsolicited + * response from the modem in different scenarios. + * + * "data" is int * + * ((int *)data)[0] is == 1 for "Screen On" + * ((int *)data)[0] is == 0 for "Screen Off" + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SCREEN_STATE 61 + + +/** + * RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION + * + * Enables/disables supplementary service related notifications + * from the network. + * + * Notifications are reported via RIL_UNSOL_SUPP_SVC_NOTIFICATION. + * + * "data" is int * + * ((int *)data)[0] is == 1 for notifications enabled + * ((int *)data)[0] is == 0 for notifications disabled + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SIM_BUSY + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_UNSOL_SUPP_SVC_NOTIFICATION. + */ +#define RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION 62 + +/** + * RIL_REQUEST_WRITE_SMS_TO_SIM + * + * Stores a SMS message to SIM memory. + * + * "data" is RIL_SMS_WriteArgs * + * + * "response" is int * + * ((const int *)response)[0] is the record index where the message is stored. + * + * Valid errors: + * SUCCESS + * SIM_FULL + * INVALID_ARGUMENTS + * INVALID_SMS_FORMAT + * INTERNAL_ERR + * MODEM_ERR + * ENCODING_ERR + * NO_MEMORY + * NO_RESOURCES + * INVALID_MODEM_STATE + * OPERATION_NOT_ALLOWED + * INVALID_SMSC_ADDRESS + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_WRITE_SMS_TO_SIM 63 + +/** + * RIL_REQUEST_DELETE_SMS_ON_SIM + * + * Deletes a SMS message from SIM memory. + * + * "data" is int * + * ((int *)data)[0] is the record index of the message to delete. + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * SIM_FULL + * INVALID_ARGUMENTS + * NO_MEMORY + * REQUEST_RATE_LIMITED + * SYSTEM_ERR + * MODEM_ERR + * NO_SUCH_ENTRY + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_DELETE_SMS_ON_SIM 64 + +/** + * RIL_REQUEST_SET_BAND_MODE + * + * Assign a specified band for RF configuration. + * + * "data" is int * + * ((int *)data)[0] is a RIL_RadioBandMode + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + * See also: RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE + */ +#define RIL_REQUEST_SET_BAND_MODE 65 + +/** + * RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE + * + * Query the list of band mode supported by RF. + * + * "data" is NULL + * + * "response" is int * + * "response" points to an array of int's, the int[0] is the size of array; + * subsequent values are a list of RIL_RadioBandMode listing supported modes. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + * See also: RIL_REQUEST_SET_BAND_MODE + */ +#define RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE 66 + +/** + * RIL_REQUEST_STK_GET_PROFILE + * + * Requests the profile of SIM tool kit. + * The profile indicates the SAT/USAT features supported by ME. + * The SAT/USAT features refer to 3GPP TS 11.14 and 3GPP TS 31.111 + * + * "data" is NULL + * + * "response" is a const char * containing SAT/USAT profile + * in hexadecimal format string starting with first byte of terminal profile + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_STK_GET_PROFILE 67 + +/** + * RIL_REQUEST_STK_SET_PROFILE + * + * Download the STK terminal profile as part of SIM initialization + * procedure + * + * "data" is a const char * containing SAT/USAT profile + * in hexadecimal format string starting with first byte of terminal profile + * + * "response" is NULL + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_STK_SET_PROFILE 68 + +/** + * RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND + * + * Requests to send a SAT/USAT envelope command to SIM. + * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111 + * + * "data" is a const char * containing SAT/USAT command + * in hexadecimal format string starting with command tag + * + * "response" is a const char * containing SAT/USAT response + * in hexadecimal format string starting with first byte of response + * (May be NULL) + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) + * SIM_BUSY + * OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND 69 + +/** + * RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE + * + * Requests to send a terminal response to SIM for a received + * proactive command + * + * "data" is a const char * containing SAT/USAT response + * in hexadecimal format string starting with first byte of response data + * + * "response" is NULL + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) + * RIL_E_OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE 70 + +/** + * RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM + * + * When STK application gets RIL_UNSOL_STK_CALL_SETUP, the call actually has + * been initialized by ME already. (We could see the call has been in the 'call + * list') So, STK application needs to accept/reject the call according as user + * operations. + * + * "data" is int * + * ((int *)data)[0] is > 0 for "accept" the call setup + * ((int *)data)[0] is == 0 for "reject" the call setup + * + * "response" is NULL + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) + * RIL_E_OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM 71 + +/** + * RIL_REQUEST_EXPLICIT_CALL_TRANSFER + * + * Connects the two calls and disconnects the subscriber from both calls. + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * INVALID_STATE + * NO_RESOURCES + * NO_MEMORY + * INVALID_ARGUMENTS + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * INVALID_STATE + * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_EXPLICIT_CALL_TRANSFER 72 + +/** + * RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE + * + * Requests to set the preferred network type for searching and registering + * (CS/PS domain, RAT, and operation mode) + * + * "data" is int * which is RIL_PreferredNetworkType + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * OPERATION_NOT_ALLOWED + * MODE_NOT_SUPPORTED + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE 73 + +/** + * RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE + * + * Query the preferred network type (CS/PS domain, RAT, and operation mode) + * for searching and registering + * + * "data" is NULL + * + * "response" is int * + * ((int *)reponse)[0] is == RIL_PreferredNetworkType + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + * See also: RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE + */ +#define RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE 74 + +/** + * RIL_REQUEST_NEIGHBORING_CELL_IDS + * + * Request neighboring cell id in GSM network + * + * "data" is NULL + * "response" must be a " const RIL_NeighboringCell** " + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * NO_NETWORK_FOUND + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_GET_NEIGHBORING_CELL_IDS 75 + +/** + * RIL_REQUEST_SET_LOCATION_UPDATES + * + * Enables/disables network state change notifications due to changes in + * LAC and/or CID (for GSM) or BID/SID/NID/latitude/longitude (for CDMA). + * Basically +CREG=2 vs. +CREG=1 (TS 27.007). + * + * Note: The RIL implementation should default to "updates enabled" + * when the screen is on and "updates disabled" when the screen is off. + * + * "data" is int * + * ((int *)data)[0] is == 1 for updates enabled (+CREG=2) + * ((int *)data)[0] is == 0 for updates disabled (+CREG=1) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + * See also: RIL_REQUEST_SCREEN_STATE, RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED + */ +#define RIL_REQUEST_SET_LOCATION_UPDATES 76 + +/** + * RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE + * + * Request to set the location where the CDMA subscription shall + * be retrieved + * + * "data" is int * + * ((int *)data)[0] is == RIL_CdmaSubscriptionSource + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SIM_ABSENT + * SUBSCRIPTION_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE + */ +#define RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE 77 + +/** + * RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE + * + * Request to set the roaming preferences in CDMA + * + * "data" is int * + * ((int *)data)[0] is == 0 for Home Networks only, as defined in PRL + * ((int *)data)[0] is == 1 for Roaming on Affiliated networks, as defined in PRL + * ((int *)data)[0] is == 2 for Roaming on Any Network, as defined in the PRL + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE 78 + +/** + * RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE + * + * Request the actual setting of the roaming preferences in CDMA in the modem + * + * "data" is NULL + * + * "response" is int * + * ((int *)response)[0] is == 0 for Home Networks only, as defined in PRL + * ((int *)response)[0] is == 1 for Roaming on Affiliated networks, as defined in PRL + * ((int *)response)[0] is == 2 for Roaming on Any Network, as defined in the PRL + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE 79 + +/** + * RIL_REQUEST_SET_TTY_MODE + * + * Request to set the TTY mode + * + * "data" is int * + * ((int *)data)[0] is == 0 for TTY off + * ((int *)data)[0] is == 1 for TTY Full + * ((int *)data)[0] is == 2 for TTY HCO (hearing carryover) + * ((int *)data)[0] is == 3 for TTY VCO (voice carryover) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * INVALID_ARGUMENTS + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SET_TTY_MODE 80 + +/** + * RIL_REQUEST_QUERY_TTY_MODE + * + * Request the setting of TTY mode + * + * "data" is NULL + * + * "response" is int * + * ((int *)response)[0] is == 0 for TTY off + * ((int *)response)[0] is == 1 for TTY Full + * ((int *)response)[0] is == 2 for TTY HCO (hearing carryover) + * ((int *)response)[0] is == 3 for TTY VCO (voice carryover) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_QUERY_TTY_MODE 81 + +/** + * RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE + * + * Request to set the preferred voice privacy mode used in voice + * scrambling + * + * "data" is int * + * ((int *)data)[0] is == 0 for Standard Privacy Mode (Public Long Code Mask) + * ((int *)data)[0] is == 1 for Enhanced Privacy Mode (Private Long Code Mask) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * INVALID_CALL_ID + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE 82 + +/** + * RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE + * + * Request the setting of preferred voice privacy mode + * + * "data" is NULL + * + * "response" is int * + * ((int *)response)[0] is == 0 for Standard Privacy Mode (Public Long Code Mask) + * ((int *)response)[0] is == 1 for Enhanced Privacy Mode (Private Long Code Mask) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * MODEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE 83 + +/** + * RIL_REQUEST_CDMA_FLASH + * + * Send FLASH + * + * "data" is const char * + * ((const char *)data)[0] is a FLASH string + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * INVALID_STATE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_FLASH 84 + +/** + * RIL_REQUEST_CDMA_BURST_DTMF + * + * Send DTMF string + * + * "data" is const char ** + * ((const char **)data)[0] is a DTMF string + * ((const char **)data)[1] is the DTMF ON length in milliseconds, or 0 to use + * default + * ((const char **)data)[2] is the DTMF OFF length in milliseconds, or 0 to use + * default + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * MODEM_ERR + * INTERNAL_ERR + * INVALID_CALL_ID + * NO_RESOURCES + * CANCELLED + * OPERATION_NOT_ALLOWED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_BURST_DTMF 85 + +/** + * RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY + * + * Takes a 26 digit string (20 digit AKEY + 6 digit checksum). + * If the checksum is valid the 20 digit AKEY is written to NV, + * replacing the existing AKEY no matter what it was before. + * + * "data" is const char * + * ((const char *)data)[0] is a 26 digit string (ASCII digits '0'-'9') + * where the last 6 digits are a checksum of the + * first 20, as specified in TR45.AHAG + * "Common Cryptographic Algorithms, Revision D.1 + * Section 2.2" + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY 86 + +/** + * RIL_REQUEST_CDMA_SEND_SMS + * + * Send a CDMA SMS message + * + * "data" is const RIL_CDMA_SMS_Message * + * + * "response" is a const RIL_SMS_Response * + * + * Based on the return error, caller decides to resend if sending sms + * fails. The CDMA error class is derived as follows, + * SUCCESS is error class 0 (no error) + * SMS_SEND_FAIL_RETRY is error class 2 (temporary failure) + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SMS_SEND_FAIL_RETRY + * NETWORK_REJECT + * INVALID_STATE + * INVALID_ARGUMENTS + * NO_MEMORY + * REQUEST_RATE_LIMITED + * INVALID_SMS_FORMAT + * SYSTEM_ERR + * FDN_CHECK_FAILURE + * MODEM_ERR + * NETWORK_ERR + * ENCODING_ERR + * INVALID_SMSC_ADDRESS + * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_SEND_SMS 87 + +/** + * RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE + * + * Acknowledge the success or failure in the receipt of SMS + * previously indicated via RIL_UNSOL_RESPONSE_CDMA_NEW_SMS + * + * "data" is const RIL_CDMA_SMS_Ack * + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * NO_SMS_TO_ACK + * INVALID_STATE + * NO_MEMORY + * REQUEST_RATE_LIMITED + * SYSTEM_ERR + * MODEM_ERR + * INVALID_STATE + * OPERATION_NOT_ALLOWED + * NETWORK_NOT_READY + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE 88 + +/** + * RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG + * + * Request the setting of GSM/WCDMA Cell Broadcast SMS config. + * + * "data" is NULL + * + * "response" is a const RIL_GSM_BroadcastSmsConfigInfo ** + * "responselen" is count * sizeof (RIL_GSM_BroadcastSmsConfigInfo *) + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_STATE + * NO_MEMORY + * REQUEST_RATE_LIMITED + * SYSTEM_ERR + * NO_RESOURCES + * MODEM_ERR + * SYSTEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG 89 + +/** + * RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG + * + * Set GSM/WCDMA Cell Broadcast SMS config + * + * "data" is a const RIL_GSM_BroadcastSmsConfigInfo ** + * "datalen" is count * sizeof(RIL_GSM_BroadcastSmsConfigInfo *) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_STATE + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * REQUEST_RATE_LIMITED + * MODEM_ERR + * SYSTEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG 90 + +/** + * RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION + * +* Enable or disable the reception of GSM/WCDMA Cell Broadcast SMS + * + * "data" is const int * + * (const int *)data[0] indicates to activate or turn off the + * reception of GSM/WCDMA Cell Broadcast SMS, 0-1, + * 0 - Activate, 1 - Turn off + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_STATE + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * REQUEST_RATE_LIMITED +* MODEM_ERR +* INTERNAL_ERR +* NO_RESOURCES +* CANCELLED +* INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION 91 + +/** + * RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG + * + * Request the setting of CDMA Broadcast SMS config + * + * "data" is NULL + * + * "response" is a const RIL_CDMA_BroadcastSmsConfigInfo ** + * "responselen" is count * sizeof (RIL_CDMA_BroadcastSmsConfigInfo *) + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_STATE + * NO_MEMORY + * REQUEST_RATE_LIMITED + * SYSTEM_ERR + * NO_RESOURCES + * MODEM_ERR + * SYSTEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG 92 + +/** + * RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG + * + * Set CDMA Broadcast SMS config + * + * "data" is a const RIL_CDMA_BroadcastSmsConfigInfo ** + * "datalen" is count * sizeof(const RIL_CDMA_BroadcastSmsConfigInfo *) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_STATE + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * REQUEST_RATE_LIMITED + * MODEM_ERR + * SYSTEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG 93 + +/** + * RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION + * + * Enable or disable the reception of CDMA Broadcast SMS + * + * "data" is const int * + * (const int *)data[0] indicates to activate or turn off the + * reception of CDMA Broadcast SMS, 0-1, + * 0 - Activate, 1 - Turn off + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_STATE + * INVALID_ARGUMENTS + * NO_MEMORY + * SYSTEM_ERR + * REQUEST_RATE_LIMITED + * MODEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION 94 + +/** + * RIL_REQUEST_CDMA_SUBSCRIPTION + * + * Request the device MDN / H_SID / H_NID. + * + * The request is only allowed when CDMA subscription is available. When CDMA + * subscription is changed, application layer should re-issue the request to + * update the subscription information. + * + * If a NULL value is returned for any of the device id, it means that error + * accessing the device. + * + * "response" is const char ** + * ((const char **)response)[0] is MDN if CDMA subscription is available + * ((const char **)response)[1] is a comma separated list of H_SID (Home SID) if + * CDMA subscription is available, in decimal format + * ((const char **)response)[2] is a comma separated list of H_NID (Home NID) if + * CDMA subscription is available, in decimal format + * ((const char **)response)[3] is MIN (10 digits, MIN2+MIN1) if CDMA subscription is available + * ((const char **)response)[4] is PRL version if CDMA subscription is available + * + * Valid errors: + * SUCCESS + * RIL_E_SUBSCRIPTION_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * + */ + +#define RIL_REQUEST_CDMA_SUBSCRIPTION 95 + +/** + * RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM + * + * Stores a CDMA SMS message to RUIM memory. + * + * "data" is RIL_CDMA_SMS_WriteArgs * + * + * "response" is int * + * ((const int *)response)[0] is the record index where the message is stored. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SIM_FULL + * INVALID_ARGUMENTS + * INVALID_SMS_FORMAT + * INTERNAL_ERR + * MODEM_ERR + * ENCODING_ERR + * NO_MEMORY + * NO_RESOURCES + * INVALID_MODEM_STATE + * OPERATION_NOT_ALLOWED + * INVALID_SMSC_ADDRESS + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM 96 + +/** + * RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM + * + * Deletes a CDMA SMS message from RUIM memory. + * + * "data" is int * + * ((int *)data)[0] is the record index of the message to delete. + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * NO_MEMORY + * REQUEST_RATE_LIMITED + * SYSTEM_ERR + * MODEM_ERR + * NO_SUCH_ENTRY + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM 97 + +/** + * RIL_REQUEST_DEVICE_IDENTITY + * + * Request the device ESN / MEID / IMEI / IMEISV. + * + * The request is always allowed and contains GSM and CDMA device identity; + * it substitutes the deprecated requests RIL_REQUEST_GET_IMEI and + * RIL_REQUEST_GET_IMEISV. + * + * If a NULL value is returned for any of the device id, it means that error + * accessing the device. + * + * When CDMA subscription is changed the ESN/MEID may change. The application + * layer should re-issue the request to update the device identity in this case. + * + * "response" is const char ** + * ((const char **)response)[0] is IMEI if GSM subscription is available + * ((const char **)response)[1] is IMEISV if GSM subscription is available + * ((const char **)response)[2] is ESN if CDMA subscription is available + * ((const char **)response)[3] is MEID if CDMA subscription is available + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_DEVICE_IDENTITY 98 + +/** + * RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE + * + * Request the radio's system selection module to exit emergency + * callback mode. RIL will not respond with SUCCESS until the modem has + * completely exited from Emergency Callback Mode. + * + * "data" is NULL + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE 99 + +/** + * RIL_REQUEST_GET_SMSC_ADDRESS + * + * Queries the default Short Message Service Center address on the device. + * + * "data" is NULL + * + * "response" is const char * containing the SMSC address. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * REQUEST_RATE_LIMITED + * SYSTEM_ERR + * INTERNAL_ERR + * MODEM_ERR + * INVALID_ARGUMENTS + * INVALID_MODEM_STATE + * NOT_PROVISIONED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_GET_SMSC_ADDRESS 100 + +/** + * RIL_REQUEST_SET_SMSC_ADDRESS + * + * Sets the default Short Message Service Center address on the device. + * + * "data" is const char * containing the SMSC address. + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * INVALID_SMS_FORMAT + * NO_MEMORY + * SYSTEM_ERR + * REQUEST_RATE_LIMITED + * MODEM_ERR + * NO_RESOURCES + * INTERNAL_ERR + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_SET_SMSC_ADDRESS 101 + +/** + * RIL_REQUEST_REPORT_SMS_MEMORY_STATUS + * + * Indicates whether there is storage available for new SMS messages. + * + * "data" is int * + * ((int *)data)[0] is 1 if memory is available for storing new messages + * is 0 if memory capacity is exceeded + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INVALID_ARGUMENTS + * NO_MEMORY + * INVALID_STATE + * SYSTEM_ERR + * REQUEST_RATE_LIMITED + * MODEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_REPORT_SMS_MEMORY_STATUS 102 + +/** + * RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING + * + * Indicates that the StkSerivce is running and is + * ready to receive RIL_UNSOL_STK_XXXXX commands. + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING 103 + +/** + * RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE + * + * Request to query the location where the CDMA subscription shall + * be retrieved + * + * "data" is NULL + * + * "response" is int * + * ((int *)data)[0] is == RIL_CdmaSubscriptionSource + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SUBSCRIPTION_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + * See also: RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE + */ +#define RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE 104 + +/** + * RIL_REQUEST_ISIM_AUTHENTICATION + * + * Request the ISIM application on the UICC to perform AKA + * challenge/response algorithm for IMS authentication + * + * "data" is a const char * containing the challenge string in Base64 format + * "response" is a const char * containing the response in Base64 format + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_ISIM_AUTHENTICATION 105 + +/** + * RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU + * + * Acknowledge successful or failed receipt of SMS previously indicated + * via RIL_UNSOL_RESPONSE_NEW_SMS, including acknowledgement TPDU to send + * as the RP-User-Data element of the RP-ACK or RP-ERROR PDU. + * + * "data" is const char ** + * ((const char **)data)[0] is "1" on successful receipt (send RP-ACK) + * is "0" on failed receipt (send RP-ERROR) + * ((const char **)data)[1] is the acknowledgement TPDU in hexadecimal format + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU 106 + +/** + * RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS + * + * Requests to send a SAT/USAT envelope command to SIM. + * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111. + * + * This request has one difference from RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND: + * the SW1 and SW2 status bytes from the UICC response are returned along with + * the response data, using the same structure as RIL_REQUEST_SIM_IO. + * + * The RIL implementation shall perform the normal processing of a '91XX' + * response in SW1/SW2 to retrieve the pending proactive command and send it + * as an unsolicited response, as RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND does. + * + * "data" is a const char * containing the SAT/USAT command + * in hexadecimal format starting with command tag + * + * "response" is a const RIL_SIM_IO_Response * + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) + * SIM_BUSY + * OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS 107 + +/** + * RIL_REQUEST_VOICE_RADIO_TECH + * + * Query the radio technology type (3GPP/3GPP2) used for voice. Query is valid only + * when radio state is not RADIO_STATE_UNAVAILABLE + * + * "data" is NULL + * "response" is int * + * ((int *) response)[0] is of type const RIL_RadioTechnology + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_VOICE_RADIO_TECH 108 + +/** + * RIL_REQUEST_GET_CELL_INFO_LIST + * + * Request all of the current cell information known to the radio. The radio + * must a list of all current cells, including the neighboring cells. If for a particular + * cell information isn't known then the appropriate unknown value will be returned. + * This does not cause or change the rate of RIL_UNSOL_CELL_INFO_LIST. + * + * "data" is NULL + * + * "response" is an array of RIL_CellInfo_v12. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * NO_NETWORK_FOUND + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_GET_CELL_INFO_LIST 109 + +/** + * RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE + * + * Sets the minimum time between when RIL_UNSOL_CELL_INFO_LIST should be invoked. + * A value of 0, means invoke RIL_UNSOL_CELL_INFO_LIST when any of the reported + * information changes. Setting the value to INT_MAX(0x7fffffff) means never issue + * a RIL_UNSOL_CELL_INFO_LIST. + * + * "data" is int * + * ((int *)data)[0] is minimum time in milliseconds + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE 110 + +/** + * RIL_REQUEST_SET_INITIAL_ATTACH_APN + * + * Set an apn to initial attach network + * + * "data" is a const char ** + * ((const char **)data)[0] is the APN to connect if radio technology is LTE + * ((const char **)data)[1] is the connection type to request must be one of the + * PDP_type values in TS 27.007 section 10.1.1. + * For example, "IP", "IPV6", "IPV4V6", or "PPP". + * ((const char **)data)[2] is the PAP / CHAP auth type. Values: + * 0 => PAP and CHAP is never performed. + * 1 => PAP may be performed; CHAP is never performed. + * 2 => CHAP may be performed; PAP is never performed. + * 3 => PAP / CHAP may be performed - baseband dependent. + * ((const char **)data)[3] is the username for APN, or NULL + * ((const char **)data)[4] is the password for APN, or NULL + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * SUBSCRIPTION_NOT_AVAILABLE + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_SET_INITIAL_ATTACH_APN 111 + +/** + * RIL_REQUEST_IMS_REGISTRATION_STATE + * + * This message is DEPRECATED and shall be removed in a future release (target: 2018); + * instead, provide IMS registration status via an IMS Service. + * + * Request current IMS registration state + * + * "data" is NULL + * + * "response" is int * + * ((int *)response)[0] is registration state: + * 0 - Not registered + * 1 - Registered + * + * If ((int*)response)[0] is = 1, then ((int *) response)[1] + * must follow with IMS SMS format: + * + * ((int *) response)[1] is of type RIL_RadioTechnologyFamily + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_IMS_REGISTRATION_STATE 112 + +/** + * RIL_REQUEST_IMS_SEND_SMS + * + * Send a SMS message over IMS + * + * "data" is const RIL_IMS_SMS_Message * + * + * "response" is a const RIL_SMS_Response * + * + * Based on the return error, caller decides to resend if sending sms + * fails. SMS_SEND_FAIL_RETRY means retry, and other errors means no retry. + * In case of retry, data is encoded based on Voice Technology available. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * SMS_SEND_FAIL_RETRY + * FDN_CHECK_FAILURE + * NETWORK_REJECT + * INVALID_ARGUMENTS + * INVALID_STATE + * NO_MEMORY + * INVALID_SMS_FORMAT + * SYSTEM_ERR + * REQUEST_RATE_LIMITED + * MODEM_ERR + * NETWORK_ERR + * ENCODING_ERR + * INVALID_SMSC_ADDRESS + * OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_IMS_SEND_SMS 113 + +/** + * RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC + * + * Request APDU exchange on the basic channel. This command reflects TS 27.007 + * "generic SIM access" operation (+CSIM). The modem must ensure proper function + * of GSM/CDMA, and filter commands appropriately. It should filter + * channel management and SELECT by DF name commands. + * + * "data" is a const RIL_SIM_APDU * + * "sessionid" field should be ignored. + * + * "response" is a const RIL_SIM_IO_Response * + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC 114 + +/** + * RIL_REQUEST_SIM_OPEN_CHANNEL + * + * Open a new logical channel and select the given application. This command + * reflects TS 27.007 "open logical channel" operation (+CCHO). This request + * also specifies the P2 parameter (described in ISO 7816-4). + * + * "data" is a const RIL_OpenChannelParam * + * + * "response" is int * + * ((int *)data)[0] contains the session id of the logical channel. + * ((int *)data)[1] onwards may optionally contain the select response for the + * open channel command with one byte per integer. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * MISSING_RESOURCE + * NO_SUCH_ELEMENT + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * SIM_ERR + * INVALID_SIM_STATE + * MISSING_RESOURCE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SIM_OPEN_CHANNEL 115 + +/** + * RIL_REQUEST_SIM_CLOSE_CHANNEL + * + * Close a previously opened logical channel. This command reflects TS 27.007 + * "close logical channel" operation (+CCHC). + * + * "data" is int * + * ((int *)data)[0] is the session id of logical the channel to close. + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SIM_CLOSE_CHANNEL 116 + +/** + * RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL + * + * Exchange APDUs with a UICC over a previously opened logical channel. This + * command reflects TS 27.007 "generic logical channel access" operation + * (+CGLA). The modem should filter channel management and SELECT by DF name + * commands. + * + * "data" is a const RIL_SIM_APDU* + * + * "response" is a const RIL_SIM_IO_Response * + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL 117 + +/** + * RIL_REQUEST_NV_READ_ITEM + * + * Read one of the radio NV items defined in RadioNVItems.java / ril_nv_items.h. + * This is used for device configuration by some CDMA operators. + * + * "data" is a const RIL_NV_ReadItem * + * + * "response" is const char * containing the contents of the NV item + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_NV_READ_ITEM 118 + +/** + * RIL_REQUEST_NV_WRITE_ITEM + * + * Write one of the radio NV items defined in RadioNVItems.java / ril_nv_items.h. + * This is used for device configuration by some CDMA operators. + * + * "data" is a const RIL_NV_WriteItem * + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_NV_WRITE_ITEM 119 + +/** + * RIL_REQUEST_NV_WRITE_CDMA_PRL + * + * Update the CDMA Preferred Roaming List (PRL) in the radio NV storage. + * This is used for device configuration by some CDMA operators. + * + * "data" is a const char * containing the PRL as a byte array + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_NV_WRITE_CDMA_PRL 120 + +/** + * RIL_REQUEST_NV_RESET_CONFIG + * + * Reset the radio NV configuration to the factory state. + * This is used for device configuration by some CDMA operators. + * + * "data" is int * + * ((int *)data)[0] is 1 to reload all NV items + * ((int *)data)[0] is 2 for erase NV reset (SCRTN) + * ((int *)data)[0] is 3 for factory reset (RTN) + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_NV_RESET_CONFIG 121 + + /** RIL_REQUEST_SET_UICC_SUBSCRIPTION + * FIXME This API needs to have more documentation. + * + * Selection/de-selection of a subscription from a SIM card + * "data" is const RIL_SelectUiccSub* + + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * SUBSCRIPTION_NOT_SUPPORTED + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_SET_UICC_SUBSCRIPTION 122 + +/** + * RIL_REQUEST_ALLOW_DATA + * + * Tells the modem whether data calls are allowed or not + * + * "data" is int * + * FIXME slotId and aid will be added. + * ((int *)data)[0] is == 0 to allow data calls + * ((int *)data)[0] is == 1 to disallow data calls + * + * "response" is NULL + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * INVALID_ARGUMENTS + * DEVICE_IN_USE + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_ALLOW_DATA 123 + +/** + * RIL_REQUEST_GET_HARDWARE_CONFIG + * + * Request all of the current hardware (modem and sim) associated + * with the RIL. + * + * "data" is NULL + * + * "response" is an array of RIL_HardwareConfig. + * + * Valid errors: + * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_GET_HARDWARE_CONFIG 124 + +/** + * RIL_REQUEST_SIM_AUTHENTICATION + * + * Returns the response of SIM Authentication through RIL to a + * challenge request. + * + * "data" Base64 encoded string containing challenge: + * int authContext; P2 value of authentication command, see P2 parameter in + * 3GPP TS 31.102 7.1.2 + * char *authData; the challenge string in Base64 format, see 3GPP + * TS 31.102 7.1.2 + * char *aid; AID value, See ETSI 102.221 8.1 and 101.220 4, + * NULL if no value + * + * "response" Base64 encoded strings containing response: + * int sw1; Status bytes per 3GPP TS 31.102 section 7.3 + * int sw2; + * char *simResponse; Response in Base64 format, see 3GPP TS 31.102 7.1.2 + * + * Valid errors: + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * INVALID_ARGUMENTS + * SIM_ERR + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SIM_AUTHENTICATION 125 + +/** + * RIL_REQUEST_GET_DC_RT_INFO + * + * The request is DEPRECATED, use RIL_REQUEST_GET_ACTIVITY_INFO + * Requests the Data Connection Real Time Info + * + * "data" is NULL + * + * "response" is the most recent RIL_DcRtInfo + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * + * See also: RIL_UNSOL_DC_RT_INFO_CHANGED + */ +#define RIL_REQUEST_GET_DC_RT_INFO 126 + +/** + * RIL_REQUEST_SET_DC_RT_INFO_RATE + * + * The request is DEPRECATED + * This is the minimum number of milliseconds between successive + * RIL_UNSOL_DC_RT_INFO_CHANGED messages and defines the highest rate + * at which RIL_UNSOL_DC_RT_INFO_CHANGED's will be sent. A value of + * 0 means send as fast as possible. + * + * "data" The number of milliseconds as an int + * + * "response" is null + * + * Valid errors: + * SUCCESS must not fail + */ +#define RIL_REQUEST_SET_DC_RT_INFO_RATE 127 + +/** + * RIL_REQUEST_SET_DATA_PROFILE + * + * Set data profile in modem + * Modem should erase existed profiles from framework, and apply new profiles + * "data" is a const RIL_DataProfileInfo ** + * "datalen" is count * sizeof(const RIL_DataProfileInfo *) + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * SUBSCRIPTION_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_SET_DATA_PROFILE 128 + +/** + * RIL_REQUEST_SHUTDOWN + * + * Device is shutting down. All further commands are ignored + * and RADIO_NOT_AVAILABLE must be returned. + * + * "data" is null + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SHUTDOWN 129 + +/** + * RIL_REQUEST_GET_RADIO_CAPABILITY + * + * Used to get phone radio capablility. + * + * "data" is the RIL_RadioCapability structure + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * INVALID_STATE + * REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_GET_RADIO_CAPABILITY 130 + +/** + * RIL_REQUEST_SET_RADIO_CAPABILITY + * + * Used to set the phones radio capability. Be VERY careful + * using this request as it may cause some vendor modems to reset. Because + * of the possible modem reset any RIL commands after this one may not be + * processed. + * + * "data" is the RIL_RadioCapability structure + * + * "response" is the RIL_RadioCapability structure, used to feedback return status + * + * Valid errors: + * SUCCESS means a RIL_UNSOL_RADIO_CAPABILITY will be sent within 30 seconds. + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * MODEM_ERR + * INVALID_STATE + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SET_RADIO_CAPABILITY 131 + +/** + * RIL_REQUEST_START_LCE + * + * Start Link Capacity Estimate (LCE) service if supported by the radio. + * + * "data" is const int * + * ((const int*)data)[0] specifies the desired reporting interval (ms). + * ((const int*)data)[1] specifies the LCE service mode. 1: PULL; 0: PUSH. + * + * "response" is the RIL_LceStatusInfo. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * LCE_NOT_SUPPORTED + * INTERNAL_ERR + * REQUEST_NOT_SUPPORTED + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_START_LCE 132 + +/** + * RIL_REQUEST_STOP_LCE + * + * Stop Link Capacity Estimate (LCE) service, the STOP operation should be + * idempotent for the radio modem. + * + * "response" is the RIL_LceStatusInfo. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * LCE_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_STOP_LCE 133 + +/** + * RIL_REQUEST_PULL_LCEDATA + * + * Pull LCE service for capacity information. + * + * "response" is the RIL_LceDataInfo. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * LCE_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_PULL_LCEDATA 134 + +/** + * RIL_REQUEST_GET_ACTIVITY_INFO + * + * Get modem activity information for power consumption estimation. + * + * Request clear-on-read statistics information that is used for + * estimating the per-millisecond power consumption of the cellular + * modem. + * + * "data" is null + * "response" is const RIL_ActivityStatsInfo * + * + * Valid errors: + * + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * MODEM_ERR + * NOT_PROVISIONED + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES CANCELLED + */ +#define RIL_REQUEST_GET_ACTIVITY_INFO 135 + +/** + * RIL_REQUEST_SET_CARRIER_RESTRICTIONS + * + * Set carrier restrictions for this sim slot. Expected modem behavior: + * If never receives this command + * - Must allow all carriers + * Receives this command with data being NULL + * - Must allow all carriers. If a previously allowed SIM is present, modem must not reload + * the SIM. If a previously disallowed SIM is present, reload the SIM and notify Android. + * Receives this command with a list of carriers + * - Only allow specified carriers, persist across power cycles and FDR. If a present SIM + * is in the allowed list, modem must not reload the SIM. If a present SIM is *not* in + * the allowed list, modem must detach from the registered network and only keep emergency + * service, and notify Android SIM refresh reset with new SIM state being + * RIL_CARDSTATE_RESTRICTED. Emergency service must be enabled. + * + * "data" is const RIL_CarrierRestrictions * + * A list of allowed carriers and possibly a list of excluded carriers. + * If data is NULL, means to clear previous carrier restrictions and allow all carriers + * + * "response" is int * + * ((int *)data)[0] contains the number of allowed carriers which have been set correctly. + * On success, it should match the length of list data->allowed_carriers. + * If data is NULL, the value must be 0. + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_INVALID_ARGUMENTS + * RIL_E_RADIO_NOT_AVAILABLE + * RIL_E_REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SET_CARRIER_RESTRICTIONS 136 + +/** + * RIL_REQUEST_GET_CARRIER_RESTRICTIONS + * + * Get carrier restrictions for this sim slot. Expected modem behavior: + * Return list of allowed carriers, or null if all carriers are allowed. + * + * "data" is NULL + * + * "response" is const RIL_CarrierRestrictions *. + * If response is NULL, it means all carriers are allowed. + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE + * RIL_E_REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_GET_CARRIER_RESTRICTIONS 137 + +/** + * RIL_REQUEST_SEND_DEVICE_STATE + * + * Send the updated device state. + * Modem can perform power saving based on the provided device state. + * "data" is const int * + * ((const int*)data)[0] A RIL_DeviceStateType that specifies the device state type. + * ((const int*)data)[1] Specifies the state. See RIL_DeviceStateType for the definition of each + * type. + * + * "datalen" is count * sizeof(const RIL_DeviceState *) + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * INVALID_ARGUMENTS + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SEND_DEVICE_STATE 138 + +/** + * RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER + * + * Set the unsolicited response filter + * This is used to prevent unnecessary application processor + * wake up for power saving purposes by suppressing the + * unsolicited responses in certain scenarios. + * + * "data" is an int * + * + * ((int *)data)[0] is a 32-bit bitmask of RIL_UnsolicitedResponseFilter + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * INVALID_ARGUMENTS (e.g. the requested filter doesn't exist) + * RADIO_NOT_AVAILABLE (radio resetting) + * NO_MEMORY + * INTERNAL_ERR + * SYSTEM_ERR + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER 139 + + /** + * RIL_REQUEST_SET_SIM_CARD_POWER + * + * Set SIM card power up or down + * + * Request is equivalent to inserting and removing the card, with + * an additional effect where the ability to detect card removal/insertion + * is disabled when the SIM card is powered down. + * + * This will generate RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED + * as if the SIM had been inserted or removed. + * + * "data" is int * + * ((int *)data)[0] is 1 for "SIM POWER UP" + * ((int *)data)[0] is 0 for "SIM POWER DOWN" + * + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT + * INVALID_ARGUMENTS + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SET_SIM_CARD_POWER 140 + +/** + * RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION + * + * Provide Carrier specific information to the modem that will be used to + * encrypt the IMSI and IMPI. Sent by the framework during boot, carrier + * switch and everytime we receive a new certificate. + * + * "data" is the RIL_CarrierInfoForImsiEncryption * structure. + * + * "response" is NULL + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE + * SIM_ABSENT + * RIL_E_REQUEST_NOT_SUPPORTED + * INVALID_ARGUMENTS + * MODEM_INTERNAL_FAILURE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION 141 + +/** + * RIL_REQUEST_START_NETWORK_SCAN + * + * Starts a new network scan + * + * Request to start a network scan with specified radio access networks with frequency bands and/or + * channels. + * + * "data" is a const RIL_NetworkScanRequest *. + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * DEVICE_IN_USE + * INTERNAL_ERR + * NO_MEMORY + * MODEM_ERR + * INVALID_ARGUMENTS + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_START_NETWORK_SCAN 142 + +/** + * RIL_REQUEST_STOP_NETWORK_SCAN + * + * Stops an ongoing network scan + * + * Request to stop the ongoing network scan. Since the modem can only perform one scan at a time, + * there is no parameter for this request. + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * INTERNAL_ERR + * MODEM_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_STOP_NETWORK_SCAN 143 + +/** + * RIL_REQUEST_START_KEEPALIVE + * + * Start a keepalive session + * + * Request that the modem begin sending keepalive packets on a particular + * data call, with a specified source, destination, and format. + * + * "data" is a const RIL_RequestKeepalive + * "response" is RIL_KeepaliveStatus with a valid "handle" + * + * Valid errors: + * SUCCESS + * NO_RESOURCES + * INVALID_ARGUMENTS + * + */ +#define RIL_REQUEST_START_KEEPALIVE 144 + +/** + * RIL_REQUEST_STOP_KEEPALIVE + * + * Stops an ongoing keepalive session + * + * Requests that a keepalive session with the given handle be stopped. + * there is no parameter for this request. + * + * "data" is an integer handle + * "response" is NULL + * + * Valid errors: + * SUCCESS + * INVALID_ARGUMENTS + * + */ +#define RIL_REQUEST_STOP_KEEPALIVE 145 + +/***********************************************************************/ + +/** + * RIL_RESPONSE_ACKNOWLEDGEMENT + * + * This is used by Asynchronous solicited messages and Unsolicited messages + * to acknowledge the receipt of those messages in RIL.java so that the ack + * can be used to let ril.cpp to release wakelock. + * + * Valid errors + * SUCCESS + * RADIO_NOT_AVAILABLE + */ + +#define RIL_RESPONSE_ACKNOWLEDGEMENT 800 + +/***********************************************************************/ + + +#define RIL_UNSOL_RESPONSE_BASE 1000 + +/** + * RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED + * + * Indicate when value of RIL_RadioState has changed. + * + * Callee will invoke RIL_RadioStateRequest method on main thread + * + * "data" is NULL + */ + +#define RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED 1000 + + +/** + * RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED + * + * Indicate when call state has changed + * + * Callee will invoke RIL_REQUEST_GET_CURRENT_CALLS on main thread + * + * "data" is NULL + * + * Response should be invoked on, for example, + * "RING", "BUSY", "NO CARRIER", and also call state + * transitions (DIALING->ALERTING ALERTING->ACTIVE) + * + * Redundent or extraneous invocations are tolerated + */ +#define RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED 1001 + + +/** + * RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED + * + * Called when the voice network state changed + * + * Callee will invoke the following requests on main thread: + * + * RIL_REQUEST_VOICE_REGISTRATION_STATE + * RIL_REQUEST_OPERATOR + * + * "data" is NULL + * + * FIXME should this happen when SIM records are loaded? (eg, for + * EONS) + */ +#define RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED 1002 + +/** + * RIL_UNSOL_RESPONSE_NEW_SMS + * + * Called when new SMS is received. + * + * "data" is const char * + * This is a pointer to a string containing the PDU of an SMS-DELIVER + * as an ascii string of hex digits. The PDU starts with the SMSC address + * per TS 27.005 (+CMT:) + * + * Callee will subsequently confirm the receipt of thei SMS with a + * RIL_REQUEST_SMS_ACKNOWLEDGE + * + * No new RIL_UNSOL_RESPONSE_NEW_SMS + * or RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT messages should be sent until a + * RIL_REQUEST_SMS_ACKNOWLEDGE has been received + */ + +#define RIL_UNSOL_RESPONSE_NEW_SMS 1003 + +/** + * RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT + * + * Called when new SMS Status Report is received. + * + * "data" is const char * + * This is a pointer to a string containing the PDU of an SMS-STATUS-REPORT + * as an ascii string of hex digits. The PDU starts with the SMSC address + * per TS 27.005 (+CDS:). + * + * Callee will subsequently confirm the receipt of the SMS with a + * RIL_REQUEST_SMS_ACKNOWLEDGE + * + * No new RIL_UNSOL_RESPONSE_NEW_SMS + * or RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT messages should be sent until a + * RIL_REQUEST_SMS_ACKNOWLEDGE has been received + */ + +#define RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT 1004 + +/** + * RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM + * + * Called when new SMS has been stored on SIM card + * + * "data" is const int * + * ((const int *)data)[0] contains the slot index on the SIM that contains + * the new message + */ + +#define RIL_UNSOL_RESPONSE_NEW_SMS_ON_SIM 1005 + +/** + * RIL_UNSOL_ON_USSD + * + * Called when a new USSD message is received. + * + * "data" is const char ** + * ((const char **)data)[0] points to a type code, which is + * one of these string values: + * "0" USSD-Notify -- text in ((const char **)data)[1] + * "1" USSD-Request -- text in ((const char **)data)[1] + * "2" Session terminated by network + * "3" other local client (eg, SIM Toolkit) has responded + * "4" Operation not supported + * "5" Network timeout + * + * The USSD session is assumed to persist if the type code is "1", otherwise + * the current session (if any) is assumed to have terminated. + * + * ((const char **)data)[1] points to a message string if applicable, which + * should always be in UTF-8. + */ +#define RIL_UNSOL_ON_USSD 1006 +/* Previously #define RIL_UNSOL_ON_USSD_NOTIFY 1006 */ + +/** + * RIL_UNSOL_ON_USSD_REQUEST + * + * Obsolete. Send via RIL_UNSOL_ON_USSD + */ +#define RIL_UNSOL_ON_USSD_REQUEST 1007 + +/** + * RIL_UNSOL_NITZ_TIME_RECEIVED + * + * Called when radio has received a NITZ time message + * + * "data" is const char * pointing to NITZ time string + * in the form "yy/mm/dd,hh:mm:ss(+/-)tz,dt" + */ +#define RIL_UNSOL_NITZ_TIME_RECEIVED 1008 + +/** + * RIL_UNSOL_SIGNAL_STRENGTH + * + * Radio may report signal strength rather han have it polled. + * + * "data" is a const RIL_SignalStrength * + */ +#define RIL_UNSOL_SIGNAL_STRENGTH 1009 + + +/** + * RIL_UNSOL_DATA_CALL_LIST_CHANGED + * + * "data" is an array of RIL_Data_Call_Response_v6 identical to that + * returned by RIL_REQUEST_DATA_CALL_LIST. It is the complete list + * of current data contexts including new contexts that have been + * activated. A data call is only removed from this list when the + * framework sends a RIL_REQUEST_DEACTIVATE_DATA_CALL or the radio + * is powered off/on. + * + * See also: RIL_REQUEST_DATA_CALL_LIST + */ + +#define RIL_UNSOL_DATA_CALL_LIST_CHANGED 1010 + +/** + * RIL_UNSOL_SUPP_SVC_NOTIFICATION + * + * Reports supplementary service related notification from the network. + * + * "data" is a const RIL_SuppSvcNotification * + * + */ + +#define RIL_UNSOL_SUPP_SVC_NOTIFICATION 1011 + +/** + * RIL_UNSOL_STK_SESSION_END + * + * Indicate when STK session is terminated by SIM. + * + * "data" is NULL + */ +#define RIL_UNSOL_STK_SESSION_END 1012 + +/** + * RIL_UNSOL_STK_PROACTIVE_COMMAND + * + * Indicate when SIM issue a STK proactive command to applications + * + * "data" is a const char * containing SAT/USAT proactive command + * in hexadecimal format string starting with command tag + * + */ +#define RIL_UNSOL_STK_PROACTIVE_COMMAND 1013 + +/** + * RIL_UNSOL_STK_EVENT_NOTIFY + * + * Indicate when SIM notifies applcations some event happens. + * Generally, application does not need to have any feedback to + * SIM but shall be able to indicate appropriate messages to users. + * + * "data" is a const char * containing SAT/USAT commands or responses + * sent by ME to SIM or commands handled by ME, in hexadecimal format string + * starting with first byte of response data or command tag + * + */ +#define RIL_UNSOL_STK_EVENT_NOTIFY 1014 + +/** + * RIL_UNSOL_STK_CALL_SETUP + * + * Indicate when SIM wants application to setup a voice call. + * + * "data" is const int * + * ((const int *)data)[0] contains timeout value (in milliseconds) + */ +#define RIL_UNSOL_STK_CALL_SETUP 1015 + +/** + * RIL_UNSOL_SIM_SMS_STORAGE_FULL + * + * Indicates that SMS storage on the SIM is full. Sent when the network + * attempts to deliver a new SMS message. Messages cannot be saved on the + * SIM until space is freed. In particular, incoming Class 2 messages + * cannot be stored. + * + * "data" is null + * + */ +#define RIL_UNSOL_SIM_SMS_STORAGE_FULL 1016 + +/** + * RIL_UNSOL_SIM_REFRESH + * + * Indicates that file(s) on the SIM have been updated, or the SIM + * has been reinitialized. + * + * In the case where RIL is version 6 or older: + * "data" is an int * + * ((int *)data)[0] is a RIL_SimRefreshResult. + * ((int *)data)[1] is the EFID of the updated file if the result is + * SIM_FILE_UPDATE or NULL for any other result. + * + * In the case where RIL is version 7: + * "data" is a RIL_SimRefreshResponse_v7 * + * + * Note: If the SIM state changes as a result of the SIM refresh (eg, + * SIM_READY -> SIM_LOCKED_OR_ABSENT), RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED + * should be sent. + */ +#define RIL_UNSOL_SIM_REFRESH 1017 + +/** + * RIL_UNSOL_CALL_RING + * + * Ring indication for an incoming call (eg, RING or CRING event). + * There must be at least one RIL_UNSOL_CALL_RING at the beginning + * of a call and sending multiple is optional. If the system property + * ro.telephony.call_ring.multiple is false then the upper layers + * will generate the multiple events internally. Otherwise the vendor + * ril must generate multiple RIL_UNSOL_CALL_RING if + * ro.telephony.call_ring.multiple is true or if it is absent. + * + * The rate of these events is controlled by ro.telephony.call_ring.delay + * and has a default value of 3000 (3 seconds) if absent. + * + * "data" is null for GSM + * "data" is const RIL_CDMA_SignalInfoRecord * if CDMA + */ +#define RIL_UNSOL_CALL_RING 1018 + +/** + * RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED + * + * Indicates that SIM state changes. + * + * Callee will invoke RIL_REQUEST_GET_SIM_STATUS on main thread + + * "data" is null + */ +#define RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED 1019 + +/** + * RIL_UNSOL_RESPONSE_CDMA_NEW_SMS + * + * Called when new CDMA SMS is received + * + * "data" is const RIL_CDMA_SMS_Message * + * + * Callee will subsequently confirm the receipt of the SMS with + * a RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE + * + * No new RIL_UNSOL_RESPONSE_CDMA_NEW_SMS should be sent until + * RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE has been received + * + */ +#define RIL_UNSOL_RESPONSE_CDMA_NEW_SMS 1020 + +/** + * RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS + * + * Called when new Broadcast SMS is received + * + * "data" can be one of the following: + * If received from GSM network, "data" is const char of 88 bytes + * which indicates each page of a CBS Message sent to the MS by the + * BTS as coded in 3GPP 23.041 Section 9.4.1.2. + * If received from UMTS network, "data" is const char of 90 up to 1252 + * bytes which contain between 1 and 15 CBS Message pages sent as one + * packet to the MS by the BTS as coded in 3GPP 23.041 Section 9.4.2.2. + * + */ +#define RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS 1021 + +/** + * RIL_UNSOL_CDMA_RUIM_SMS_STORAGE_FULL + * + * Indicates that SMS storage on the RUIM is full. Messages + * cannot be saved on the RUIM until space is freed. + * + * "data" is null + * + */ +#define RIL_UNSOL_CDMA_RUIM_SMS_STORAGE_FULL 1022 + +/** + * RIL_UNSOL_RESTRICTED_STATE_CHANGED + * + * Indicates a restricted state change (eg, for Domain Specific Access Control). + * + * Radio need send this msg after radio off/on cycle no matter it is changed or not. + * + * "data" is an int * + * ((int *)data)[0] contains a bitmask of RIL_RESTRICTED_STATE_* values. + */ +#define RIL_UNSOL_RESTRICTED_STATE_CHANGED 1023 + +/** + * RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE + * + * Indicates that the radio system selection module has + * autonomously entered emergency callback mode. + * + * "data" is null + * + */ +#define RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE 1024 + +/** + * RIL_UNSOL_CDMA_CALL_WAITING + * + * Called when CDMA radio receives a call waiting indication. + * + * "data" is const RIL_CDMA_CallWaiting * + * + */ +#define RIL_UNSOL_CDMA_CALL_WAITING 1025 + +/** + * RIL_UNSOL_CDMA_OTA_PROVISION_STATUS + * + * Called when CDMA radio receives an update of the progress of an + * OTASP/OTAPA call. + * + * "data" is const int * + * For CDMA this is an integer OTASP/OTAPA status listed in + * RIL_CDMA_OTA_ProvisionStatus. + * + */ +#define RIL_UNSOL_CDMA_OTA_PROVISION_STATUS 1026 + +/** + * RIL_UNSOL_CDMA_INFO_REC + * + * Called when CDMA radio receives one or more info recs. + * + * "data" is const RIL_CDMA_InformationRecords * + * + */ +#define RIL_UNSOL_CDMA_INFO_REC 1027 + +/** + * RIL_UNSOL_OEM_HOOK_RAW + * + * This is for OEM specific use. + * + * "data" is a byte[] + */ +#define RIL_UNSOL_OEM_HOOK_RAW 1028 + +/** + * RIL_UNSOL_RINGBACK_TONE + * + * Indicates that nework doesn't have in-band information, need to + * play out-band tone. + * + * "data" is an int * + * ((int *)data)[0] == 0 for stop play ringback tone. + * ((int *)data)[0] == 1 for start play ringback tone. + */ +#define RIL_UNSOL_RINGBACK_TONE 1029 + +/** + * RIL_UNSOL_RESEND_INCALL_MUTE + * + * Indicates that framework/application need reset the uplink mute state. + * + * There may be situations where the mute state becomes out of sync + * between the application and device in some GSM infrastructures. + * + * "data" is null + */ +#define RIL_UNSOL_RESEND_INCALL_MUTE 1030 + +/** + * RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED + * + * Called when CDMA subscription source changed. + * + * "data" is int * + * ((int *)data)[0] is == RIL_CdmaSubscriptionSource + */ +#define RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED 1031 + +/** + * RIL_UNSOL_CDMA_PRL_CHANGED + * + * Called when PRL (preferred roaming list) changes. + * + * "data" is int * + * ((int *)data)[0] is PRL_VERSION as would be returned by RIL_REQUEST_CDMA_SUBSCRIPTION + */ +#define RIL_UNSOL_CDMA_PRL_CHANGED 1032 + +/** + * RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE + * + * Called when Emergency Callback Mode Ends + * + * Indicates that the radio system selection module has + * proactively exited emergency callback mode. + * + * "data" is NULL + * + */ +#define RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE 1033 + +/** + * RIL_UNSOL_RIL_CONNECTED + * + * Called the ril connects and returns the version + * + * "data" is int * + * ((int *)data)[0] is RIL_VERSION + */ +#define RIL_UNSOL_RIL_CONNECTED 1034 + +/** + * RIL_UNSOL_VOICE_RADIO_TECH_CHANGED + * + * Indicates that voice technology has changed. Contains new radio technology + * as a data in the message. + * + * "data" is int * + * ((int *)data)[0] is of type const RIL_RadioTechnology + * + */ +#define RIL_UNSOL_VOICE_RADIO_TECH_CHANGED 1035 + +/** + * RIL_UNSOL_CELL_INFO_LIST + * + * Same information as returned by RIL_REQUEST_GET_CELL_INFO_LIST, but returned + * at the rate no greater than specified by RIL_REQUEST_SET_UNSOL_CELL_INFO_RATE. + * + * "data" is NULL + * + * "response" is an array of RIL_CellInfo_v12. + */ +#define RIL_UNSOL_CELL_INFO_LIST 1036 + +/** + * RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED + * + * This message is DEPRECATED and shall be removed in a future release (target: 2018); + * instead, provide IMS registration status via an IMS Service. + * + * Called when IMS registration state has changed + * + * To get IMS registration state and IMS SMS format, callee needs to invoke the + * following request on main thread: + * + * RIL_REQUEST_IMS_REGISTRATION_STATE + * + * "data" is NULL + * + */ +#define RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED 1037 + +/** + * RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED + * + * Indicated when there is a change in subscription status. + * This event will be sent in the following scenarios + * - subscription readiness at modem, which was selected by telephony layer + * - when subscription is deactivated by modem due to UICC card removal + * - When network invalidates the subscription i.e. attach reject due to authentication reject + * + * "data" is const int * + * ((const int *)data)[0] == 0 for Subscription Deactivated + * ((const int *)data)[0] == 1 for Subscription Activated + * + */ +#define RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED 1038 + +/** + * RIL_UNSOL_SRVCC_STATE_NOTIFY + * + * Called when Single Radio Voice Call Continuity(SRVCC) + * progress state has changed + * + * "data" is int * + * ((int *)data)[0] is of type const RIL_SrvccState + * + */ + +#define RIL_UNSOL_SRVCC_STATE_NOTIFY 1039 + +/** + * RIL_UNSOL_HARDWARE_CONFIG_CHANGED + * + * Called when the hardware configuration associated with the RILd changes + * + * "data" is an array of RIL_HardwareConfig + * + */ +#define RIL_UNSOL_HARDWARE_CONFIG_CHANGED 1040 + +/** + * RIL_UNSOL_DC_RT_INFO_CHANGED + * + * The message is DEPRECATED, use RIL_REQUEST_GET_ACTIVITY_INFO + * Sent when the DC_RT_STATE changes but the time + * between these messages must not be less than the + * value set by RIL_REQUEST_SET_DC_RT_RATE. + * + * "data" is the most recent RIL_DcRtInfo + * + */ +#define RIL_UNSOL_DC_RT_INFO_CHANGED 1041 + +/** + * RIL_UNSOL_RADIO_CAPABILITY + * + * Sent when RIL_REQUEST_SET_RADIO_CAPABILITY completes. + * Returns the phone radio capability exactly as + * RIL_REQUEST_GET_RADIO_CAPABILITY and should be the + * same set as sent by RIL_REQUEST_SET_RADIO_CAPABILITY. + * + * "data" is the RIL_RadioCapability structure + */ +#define RIL_UNSOL_RADIO_CAPABILITY 1042 + +/* + * RIL_UNSOL_ON_SS + * + * Called when SS response is received when DIAL/USSD/SS is changed to SS by + * call control. + * + * "data" is const RIL_StkCcUnsolSsResponse * + * + */ +#define RIL_UNSOL_ON_SS 1043 + +/** + * RIL_UNSOL_STK_CC_ALPHA_NOTIFY + * + * Called when there is an ALPHA from UICC during Call Control. + * + * "data" is const char * containing ALPHA string from UICC in UTF-8 format. + * + */ +#define RIL_UNSOL_STK_CC_ALPHA_NOTIFY 1044 + +/** + * RIL_UNSOL_LCEDATA_RECV + * + * Called when there is an incoming Link Capacity Estimate (LCE) info report. + * + * "data" is the RIL_LceDataInfo structure. + * + */ +#define RIL_UNSOL_LCEDATA_RECV 1045 + + /** + * RIL_UNSOL_PCO_DATA + * + * Called when there is new Carrier PCO data received for a data call. Ideally + * only new data will be forwarded, though this is not required. Multiple + * boxes of carrier PCO data for a given call should result in a series of + * RIL_UNSOL_PCO_DATA calls. + * + * "data" is the RIL_PCO_Data structure. + * + */ +#define RIL_UNSOL_PCO_DATA 1046 + + /** + * RIL_UNSOL_MODEM_RESTART + * + * Called when there is a modem reset. + * + * "reason" is "const char *" containing the reason for the reset. It + * could be a crash signature if the restart was due to a crash or some + * string such as "user-initiated restart" or "AT command initiated + * restart" that explains the cause of the modem restart. + * + * When modem restarts, one of the following radio state transitions will happen + * 1) RADIO_STATE_ON->RADIO_STATE_UNAVAILABLE->RADIO_STATE_ON or + * 2) RADIO_STATE_OFF->RADIO_STATE_UNAVAILABLE->RADIO_STATE_OFF + * This message can be sent either just before the RADIO_STATE changes to RADIO_STATE_UNAVAILABLE + * or just after but should never be sent after the RADIO_STATE changes from UNAVAILABLE to + * AVAILABLE(RADIO_STATE_ON/RADIO_STATE_OFF) again. + * + * It should NOT be sent after the RADIO_STATE changes to AVAILABLE after the + * modem restart as that could be interpreted as a second modem reset by the + * framework. + */ +#define RIL_UNSOL_MODEM_RESTART 1047 + +/** + * RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION + * + * Called when the modem needs Carrier specific information that will + * be used to encrypt IMSI and IMPI. + * + * "data" is NULL + * + */ +#define RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION 1048 + +/** + * RIL_UNSOL_NETWORK_SCAN_RESULT + * + * Returns incremental result for the network scan which is started by + * RIL_REQUEST_START_NETWORK_SCAN, sent to report results, status, or errors. + * + * "data" is NULL + * "response" is a const RIL_NetworkScanResult * + */ +#define RIL_UNSOL_NETWORK_SCAN_RESULT 1049 + +/** + * RIL_UNSOL_KEEPALIVE_STATUS + * + * "data" is NULL + * "response" is a const RIL_KeepaliveStatus * + */ +#define RIL_UNSOL_KEEPALIVE_STATUS 1050 + +/***********************************************************************/ + + +#if defined(ANDROID_MULTI_SIM) +/** + * RIL_Request Function pointer + * + * @param request is one of RIL_REQUEST_* + * @param data is pointer to data defined for that RIL_REQUEST_* + * data is owned by caller, and should not be modified or freed by callee + * structures passed as data may contain pointers to non-contiguous memory + * @param t should be used in subsequent call to RIL_onResponse + * @param datalen is the length of "data" which is defined as other argument. It may or may + * not be equal to sizeof(data). Refer to the documentation of individual structures + * to find if pointers listed in the structure are contiguous and counted in the datalen + * length or not. + * (Eg: RIL_IMS_SMS_Message where we don't have datalen equal to sizeof(data)) + * + */ +typedef void (*RIL_RequestFunc) (int request, void *data, + size_t datalen, RIL_Token t, RIL_SOCKET_ID socket_id); + +/** + * This function should return the current radio state synchronously + */ +typedef RIL_RadioState (*RIL_RadioStateRequest)(RIL_SOCKET_ID socket_id); + +#else +/* Backward compatible */ + +/** + * RIL_Request Function pointer + * + * @param request is one of RIL_REQUEST_* + * @param data is pointer to data defined for that RIL_REQUEST_* + * data is owned by caller, and should not be modified or freed by callee + * structures passed as data may contain pointers to non-contiguous memory + * @param t should be used in subsequent call to RIL_onResponse + * @param datalen is the length of "data" which is defined as other argument. It may or may + * not be equal to sizeof(data). Refer to the documentation of individual structures + * to find if pointers listed in the structure are contiguous and counted in the datalen + * length or not. + * (Eg: RIL_IMS_SMS_Message where we don't have datalen equal to sizeof(data)) + * + */ +typedef void (*RIL_RequestFunc) (int request, void *data, + size_t datalen, RIL_Token t); + +/** + * This function should return the current radio state synchronously + */ +typedef RIL_RadioState (*RIL_RadioStateRequest)(); + +#endif + + +/** + * This function returns "1" if the specified RIL_REQUEST code is + * supported and 0 if it is not + * + * @param requestCode is one of RIL_REQUEST codes + */ + +typedef int (*RIL_Supports)(int requestCode); + +/** + * This function is called from a separate thread--not the + * thread that calls RIL_RequestFunc--and indicates that a pending + * request should be cancelled. + * + * On cancel, the callee should do its best to abandon the request and + * call RIL_onRequestComplete with RIL_Errno CANCELLED at some later point. + * + * Subsequent calls to RIL_onRequestComplete for this request with + * other results will be tolerated but ignored. (That is, it is valid + * to ignore the cancellation request) + * + * RIL_Cancel calls should return immediately, and not wait for cancellation + * + * Please see ITU v.250 5.6.1 for how one might implement this on a TS 27.007 + * interface + * + * @param t token wants to be canceled + */ + +typedef void (*RIL_Cancel)(RIL_Token t); + +typedef void (*RIL_TimedCallback) (void *param); + +/** + * Return a version string for your RIL implementation + */ +typedef const char * (*RIL_GetVersion) (void); + +typedef struct { + int version; /* set to RIL_VERSION */ + RIL_RequestFunc onRequest; + RIL_RadioStateRequest onStateRequest; + RIL_Supports supports; + RIL_Cancel onCancel; + RIL_GetVersion getVersion; +} RIL_RadioFunctions; + +typedef struct { + char *apn; /* the APN to connect to */ + char *protocol; /* one of the PDP_type values in TS 27.007 section 10.1.1 used on + roaming network. For example, "IP", "IPV6", "IPV4V6", or "PPP".*/ + int authtype; /* authentication protocol used for this PDP context + (None: 0, PAP: 1, CHAP: 2, PAP&CHAP: 3) */ + char *username; /* the username for APN, or NULL */ + char *password; /* the password for APN, or NULL */ +} RIL_InitialAttachApn; + +typedef struct { + char *apn; /* the APN to connect to */ + char *protocol; /* one of the PDP_type values in TS 27.007 section 10.1.1 used on + home network. For example, "IP", "IPV6", "IPV4V6", or "PPP". */ + char *roamingProtocol; /* one of the PDP_type values in TS 27.007 section 10.1.1 used on + roaming network. For example, "IP", "IPV6", "IPV4V6", or "PPP".*/ + int authtype; /* authentication protocol used for this PDP context + (None: 0, PAP: 1, CHAP: 2, PAP&CHAP: 3) */ + char *username; /* the username for APN, or NULL */ + char *password; /* the password for APN, or NULL */ + int supportedTypesBitmask; /* supported APN types bitmask. See RIL_ApnTypes for the value of + each bit. */ + int bearerBitmask; /* the bearer bitmask. See RIL_RadioAccessFamily for the value of + each bit. */ + int modemCognitive; /* indicating the APN setting was sent to the modem through + setDataProfile earlier. */ + int mtu; /* maximum transmission unit (MTU) size in bytes */ + char *mvnoType; /* the MVNO type: possible values are "imsi", "gid", "spn" */ + char *mvnoMatchData; /* MVNO match data. Can be anything defined by the carrier. + For example, + SPN like: "A MOBILE", "BEN NL", etc... + IMSI like: "302720x94", "2060188", etc... + GID like: "4E", "33", etc... */ +} RIL_InitialAttachApn_v15; + +typedef struct { + int authContext; /* P2 value of authentication command, see P2 parameter in + 3GPP TS 31.102 7.1.2 */ + char *authData; /* the challenge string in Base64 format, see 3GPP + TS 31.102 7.1.2 */ + char *aid; /* AID value, See ETSI 102.221 8.1 and 101.220 4, + NULL if no value. */ +} RIL_SimAuthentication; + +typedef struct { + int cid; /* Context ID, uniquely identifies this call */ + char *bearer_proto; /* One of the PDP_type values in TS 27.007 section 10.1.1. + For example, "IP", "IPV6", "IPV4V6". */ + int pco_id; /* The protocol ID for this box. Note that only IDs from + FF00H - FFFFH are accepted. If more than one is included + from the network, multiple calls should be made to send all + of them. */ + int contents_length; /* The number of octets in the contents. */ + char *contents; /* Carrier-defined content. It is binary, opaque and + loosely defined in LTE Layer 3 spec 24.008 */ +} RIL_PCO_Data; + +typedef enum { + NATT_IPV4 = 0, /* Keepalive specified by RFC 3948 Sec. 2.3 using IPv4 */ + NATT_IPV6 = 1 /* Keepalive specified by RFC 3948 Sec. 2.3 using IPv6 */ +} RIL_KeepaliveType; + +#define MAX_INADDR_LEN 16 +typedef struct { + RIL_KeepaliveType type; /* Type of keepalive packet */ + char sourceAddress[MAX_INADDR_LEN]; /* Source address in network-byte order */ + int sourcePort; /* Source port if applicable, or 0x7FFFFFFF; + the maximum value is 65535 */ + char destinationAddress[MAX_INADDR_LEN]; /* Destination address in network-byte order */ + int destinationPort; /* Destination port if applicable or 0x7FFFFFFF; + the maximum value is 65535 */ + int maxKeepaliveIntervalMillis; /* Maximum milliseconds between two packets */ + int cid; /* Context ID, uniquely identifies this call */ +} RIL_KeepaliveRequest; + +typedef enum { + KEEPALIVE_ACTIVE, /* Keepalive session is active */ + KEEPALIVE_INACTIVE, /* Keepalive session is inactive */ + KEEPALIVE_PENDING /* Keepalive session status not available */ +} RIL_KeepaliveStatusCode; + +typedef struct { + uint32_t sessionHandle; + RIL_KeepaliveStatusCode code; +} RIL_KeepaliveStatus; + +#ifdef RIL_SHLIB +struct RIL_Env { + /** + * "t" is parameter passed in on previous call to RIL_Notification + * routine. + * + * If "e" != SUCCESS, then response can be null/is ignored + * + * "response" is owned by caller, and should not be modified or + * freed by callee + * + * RIL_onRequestComplete will return as soon as possible + */ + void (*OnRequestComplete)(RIL_Token t, RIL_Errno e, + void *response, size_t responselen); + +#if defined(ANDROID_MULTI_SIM) + /** + * "unsolResponse" is one of RIL_UNSOL_RESPONSE_* + * "data" is pointer to data defined for that RIL_UNSOL_RESPONSE_* + * + * "data" is owned by caller, and should not be modified or freed by callee + */ + void (*OnUnsolicitedResponse)(int unsolResponse, const void *data, size_t datalen, RIL_SOCKET_ID socket_id); +#else + /** + * "unsolResponse" is one of RIL_UNSOL_RESPONSE_* + * "data" is pointer to data defined for that RIL_UNSOL_RESPONSE_* + * + * "data" is owned by caller, and should not be modified or freed by callee + */ + void (*OnUnsolicitedResponse)(int unsolResponse, const void *data, size_t datalen); +#endif + /** + * Call user-specifed "callback" function on on the same thread that + * RIL_RequestFunc is called. If "relativeTime" is specified, then it specifies + * a relative time value at which the callback is invoked. If relativeTime is + * NULL or points to a 0-filled structure, the callback will be invoked as + * soon as possible + */ + + void (*RequestTimedCallback) (RIL_TimedCallback callback, + void *param, const struct timeval *relativeTime); + /** + * "t" is parameter passed in on previous call RIL_Notification routine + * + * RIL_onRequestAck will be called by vendor when an Async RIL request was received + * by them and an ack needs to be sent back to java ril. + */ + void (*OnRequestAck) (RIL_Token t); +}; + + +/** + * RIL implementations must defined RIL_Init + * argc and argv will be command line arguments intended for the RIL implementation + * Return NULL on error + * + * @param env is environment point defined as RIL_Env + * @param argc number of arguments + * @param argv list fo arguments + * + */ +const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc, char **argv); + +/** + * If BT SAP(SIM Access Profile) is supported, then RIL implementations must define RIL_SAP_Init + * for initializing RIL_RadioFunctions used for BT SAP communcations. It is called whenever RILD + * starts or modem restarts. Returns handlers for SAP related request that are made on SAP + * sepecific socket, analogous to the RIL_RadioFunctions returned by the call to RIL_Init + * and used on the general RIL socket. + * argc and argv will be command line arguments intended for the RIL implementation + * Return NULL on error. + * + * @param env is environment point defined as RIL_Env + * @param argc number of arguments + * @param argv list fo arguments + * + */ +const RIL_RadioFunctions *RIL_SAP_Init(const struct RIL_Env *env, int argc, char **argv); + +#else /* RIL_SHLIB */ + +/** + * Call this once at startup to register notification routine + * + * @param callbacks user-specifed callback function + */ +void RIL_register (const RIL_RadioFunctions *callbacks); + +void rilc_thread_pool(); + + +/** + * + * RIL_onRequestComplete will return as soon as possible + * + * @param t is parameter passed in on previous call to RIL_Notification + * routine. + * @param e error code + * if "e" != SUCCESS, then response can be null/is ignored + * @param response is owned by caller, and should not be modified or + * freed by callee + * @param responselen the length of response in byte + */ +void RIL_onRequestComplete(RIL_Token t, RIL_Errno e, + void *response, size_t responselen); + +/** + * RIL_onRequestAck will be called by vendor when an Async RIL request was received by them and + * an ack needs to be sent back to java ril. This doesn't mark the end of the command or it's + * results, just that the command was received and will take a while. After sending this Ack + * its vendor's responsibility to make sure that AP is up whenever needed while command is + * being processed. + * + * @param t is parameter passed in on previous call to RIL_Notification + * routine. + */ +void RIL_onRequestAck(RIL_Token t); + +#if defined(ANDROID_MULTI_SIM) +/** + * @param unsolResponse is one of RIL_UNSOL_RESPONSE_* + * @param data is pointer to data defined for that RIL_UNSOL_RESPONSE_* + * "data" is owned by caller, and should not be modified or freed by callee + * @param datalen the length of data in byte + */ + +void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, + size_t datalen, RIL_SOCKET_ID socket_id); +#else +/** + * @param unsolResponse is one of RIL_UNSOL_RESPONSE_* + * @param data is pointer to data defined for that RIL_UNSOL_RESPONSE_* + * "data" is owned by caller, and should not be modified or freed by callee + * @param datalen the length of data in byte + */ + +void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, + size_t datalen); +#endif + +/** + * Call user-specifed "callback" function on on the same thread that + * RIL_RequestFunc is called. If "relativeTime" is specified, then it specifies + * a relative time value at which the callback is invoked. If relativeTime is + * NULL or points to a 0-filled structure, the callback will be invoked as + * soon as possible + * + * @param callback user-specifed callback function + * @param param parameter list + * @param relativeTime a relative time value at which the callback is invoked + */ + +void RIL_requestTimedCallback (RIL_TimedCallback callback, + void *param, const struct timeval *relativeTime); + +#endif /* RIL_SHLIB */ + +#ifdef __cplusplus +} +#endif + +#endif /*ANDROID_RIL_H*/ diff --git a/ril/libril/RilSapSocket.cpp b/ril/libril/RilSapSocket.cpp index ed7a110..cf99773 100644 --- a/ril/libril/RilSapSocket.cpp +++ b/ril/libril/RilSapSocket.cpp @@ -47,7 +47,7 @@ void RilSapSocket::sOnRequestComplete (RIL_Token t, RilSapSocket *sap_socket; SapSocketRequest *request = (SapSocketRequest*) t; - RLOGE("Socket id:%d", request->socketId); + RLOGD("Socket id:%d", request->socketId); sap_socket = getSocketById(request->socketId); @@ -86,10 +86,10 @@ void RilSapSocket::sOnUnsolicitedResponse(int unsolResponse, void RilSapSocket::printList() { RilSapSocketList *current = head; - RLOGE("Printing socket list"); + RLOGD("Printing socket list"); while(NULL != current) { - RLOGE("SocketName:%s",current->socket->name); - RLOGE("Socket id:%d",current->socket->id); + RLOGD("SocketName:%s",current->socket->name); + RLOGD("Socket id:%d",current->socket->id); current = current->next; } } @@ -98,7 +98,7 @@ RilSapSocket *RilSapSocket::getSocketById(RIL_SOCKET_ID socketId) { RilSapSocket *sap_socket; RilSapSocketList *current = head; - RLOGE("Entered getSocketById"); + RLOGD("Entered getSocketById"); printList(); while(NULL != current) { @@ -161,7 +161,7 @@ void RilSapSocket::addSocketToList(const char *socketName, RIL_SOCKET_ID socketi listItem->socket = socket; listItem->next = NULL; - RLOGE("Adding socket with id: %d", socket->id); + RLOGD("Adding socket with id: %d", socket->id); if(NULL == head) { head = listItem; @@ -287,4 +287,4 @@ void RilSapSocket::onUnsolicitedResponse(int unsolResponse, void *data, size_t d sap::processUnsolResponse(&rsp, this); free(payload); } -} +} \ No newline at end of file diff --git a/ril/libril/ril.cpp b/ril/libril/ril.cpp index caa7830..3abe559 100644 --- a/ril/libril/ril.cpp +++ b/ril/libril/ril.cpp @@ -535,7 +535,7 @@ checkAndDequeueRequestInfoIfAck(struct RequestInfo *pRI, bool isAck) { ret = 1; if (isAck) { // Async ack if (pRI->wasAckSent == 1) { - RLOGE("Ack was already sent for %s", requestToString(pRI->pCI->requestNumber)); + RLOGD("Ack was already sent for %s", requestToString(pRI->pCI->requestNumber)); } else { pRI->wasAckSent = 1; } @@ -567,7 +567,7 @@ RIL_onRequestAck(RIL_Token t) { socket_id = pRI->socket_id; #if VDBG - RLOGE("Request Ack, %s", rilSocketIdToString(socket_id)); + RLOGD("Request Ack, %s", rilSocketIdToString(socket_id)); #endif appendPrintBuf("Ack [%04d]< %s", pRI->token, requestToString(pRI->pCI->requestNumber)); @@ -599,13 +599,13 @@ RIL_onRequestComplete(RIL_Token t, RIL_Errno e, void *response, size_t responsel socket_id = pRI->socket_id; #if VDBG - RLOGE("RequestComplete, %s", rilSocketIdToString(socket_id)); + RLOGD("RequestComplete, %s", rilSocketIdToString(socket_id)); #endif if (pRI->local > 0) { // Locally issued command...void only! // response does not go back up the command socket - RLOGE("C[locl]< %s", requestToString(pRI->pCI->requestNumber)); + RLOGD("C[locl]< %s", requestToString(pRI->pCI->requestNumber)); free(pRI); return; diff --git a/ril/libril/ril_event.cpp b/ril/libril/ril_event.cpp index 386d46e..84b8b72 100644 --- a/ril/libril/ril_event.cpp +++ b/ril/libril/ril_event.cpp @@ -72,10 +72,10 @@ static struct ril_event * watch_table[MAX_FD_EVENTS]; static struct ril_event timer_list; static struct ril_event pending_list; -#define DEBUG 1 +#define DEBUG 0 #if DEBUG -#define dlog(x...) RLOGE( x ) +#define dlog(x...) RLOGD( x ) static void dump_event(struct ril_event * ev) { dlog("~~~~ Event %x ~~~~", (unsigned int)ev); diff --git a/ril/libril/ril_internal.h b/ril/libril/ril_internal.h index f160338..350791b 100644 --- a/ril/libril/ril_internal.h +++ b/ril/libril/ril_internal.h @@ -33,7 +33,7 @@ namespace android { #define RESPONSE_UNSOLICITED_ACK_EXP 4 // Enable verbose logging -#define VDBG 1 +#define VDBG 0 #define MIN(a,b) ((a)<(b) ? (a) : (b)) diff --git a/ril/libril/ril_service.cpp b/ril/libril/ril_service.cpp index 1ff13f8..e5acc60 100644 --- a/ril/libril/ril_service.cpp +++ b/ril/libril/ril_service.cpp @@ -795,7 +795,7 @@ void RadioImpl::checkReturnStatus(Return& ret) { Return RadioImpl::setResponseFunctions( const ::android::sp& radioResponseParam, const ::android::sp& radioIndicationParam) { - RLOGE("setResponseFunctions"); + RLOGD("setResponseFunctions"); pthread_rwlock_t *radioServiceRwlockPtr = radio::getRadioServiceRwlock(mSlotId); int ret = pthread_rwlock_wrlock(radioServiceRwlockPtr); @@ -823,7 +823,7 @@ Return RadioImpl::setResponseFunctions( Return RadioImpl::getIccCardStatus(int32_t serial) { #if VDBG - RLOGE("getIccCardStatus: serial %d", serial); + RLOGD("getIccCardStatus: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_SIM_STATUS); return Void(); @@ -832,7 +832,7 @@ Return RadioImpl::getIccCardStatus(int32_t serial) { Return RadioImpl::supplyIccPinForApp(int32_t serial, const hidl_string& pin, const hidl_string& aid) { #if VDBG - RLOGE("supplyIccPinForApp: serial %d", serial); + RLOGD("supplyIccPinForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_ENTER_SIM_PIN, true, 2, pin.c_str(), aid.c_str()); @@ -842,7 +842,7 @@ Return RadioImpl::supplyIccPinForApp(int32_t serial, const hidl_string& pi Return RadioImpl::supplyIccPukForApp(int32_t serial, const hidl_string& puk, const hidl_string& pin, const hidl_string& aid) { #if VDBG - RLOGE("supplyIccPukForApp: serial %d", serial); + RLOGD("supplyIccPukForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_ENTER_SIM_PUK, true, 3, puk.c_str(), pin.c_str(), aid.c_str()); @@ -852,7 +852,7 @@ Return RadioImpl::supplyIccPukForApp(int32_t serial, const hidl_string& pu Return RadioImpl::supplyIccPin2ForApp(int32_t serial, const hidl_string& pin2, const hidl_string& aid) { #if VDBG - RLOGE("supplyIccPin2ForApp: serial %d", serial); + RLOGD("supplyIccPin2ForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_ENTER_SIM_PIN2, true, 2, pin2.c_str(), aid.c_str()); @@ -862,7 +862,7 @@ Return RadioImpl::supplyIccPin2ForApp(int32_t serial, const hidl_string& p Return RadioImpl::supplyIccPuk2ForApp(int32_t serial, const hidl_string& puk2, const hidl_string& pin2, const hidl_string& aid) { #if VDBG - RLOGE("supplyIccPuk2ForApp: serial %d", serial); + RLOGD("supplyIccPuk2ForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_ENTER_SIM_PUK2, true, 3, puk2.c_str(), pin2.c_str(), aid.c_str()); @@ -872,7 +872,7 @@ Return RadioImpl::supplyIccPuk2ForApp(int32_t serial, const hidl_string& p Return RadioImpl::changeIccPinForApp(int32_t serial, const hidl_string& oldPin, const hidl_string& newPin, const hidl_string& aid) { #if VDBG - RLOGE("changeIccPinForApp: serial %d", serial); + RLOGD("changeIccPinForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_CHANGE_SIM_PIN, true, 3, oldPin.c_str(), newPin.c_str(), aid.c_str()); @@ -882,7 +882,7 @@ Return RadioImpl::changeIccPinForApp(int32_t serial, const hidl_string& ol Return RadioImpl::changeIccPin2ForApp(int32_t serial, const hidl_string& oldPin2, const hidl_string& newPin2, const hidl_string& aid) { #if VDBG - RLOGE("changeIccPin2ForApp: serial %d", serial); + RLOGD("changeIccPin2ForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_CHANGE_SIM_PIN2, true, 3, oldPin2.c_str(), newPin2.c_str(), aid.c_str()); @@ -892,7 +892,7 @@ Return RadioImpl::changeIccPin2ForApp(int32_t serial, const hidl_string& o Return RadioImpl::supplyNetworkDepersonalization(int32_t serial, const hidl_string& netPin) { #if VDBG - RLOGE("supplyNetworkDepersonalization: serial %d", serial); + RLOGD("supplyNetworkDepersonalization: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION, true, 1, netPin.c_str()); @@ -901,7 +901,7 @@ Return RadioImpl::supplyNetworkDepersonalization(int32_t serial, Return RadioImpl::getCurrentCalls(int32_t serial) { #if VDBG - RLOGE("getCurrentCalls: serial %d", serial); + RLOGD("getCurrentCalls: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_CURRENT_CALLS); return Void(); @@ -909,7 +909,7 @@ Return RadioImpl::getCurrentCalls(int32_t serial) { Return RadioImpl::dial(int32_t serial, const Dial& dialInfo) { #if VDBG - RLOGE("dial: serial %d", serial); + RLOGD("dial: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_DIAL); if (pRI == NULL) { @@ -951,7 +951,7 @@ Return RadioImpl::dial(int32_t serial, const Dial& dialInfo) { Return RadioImpl::getImsiForApp(int32_t serial, const hidl_string& aid) { #if VDBG - RLOGE("getImsiForApp: serial %d", serial); + RLOGD("getImsiForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_GET_IMSI, false, 1, aid.c_str()); @@ -960,7 +960,7 @@ Return RadioImpl::getImsiForApp(int32_t serial, const hidl_string& aid) { Return RadioImpl::hangup(int32_t serial, int32_t gsmIndex) { #if VDBG - RLOGE("hangup: serial %d", serial); + RLOGD("hangup: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_HANGUP, 1, gsmIndex); return Void(); @@ -968,7 +968,7 @@ Return RadioImpl::hangup(int32_t serial, int32_t gsmIndex) { Return RadioImpl::hangupWaitingOrBackground(int32_t serial) { #if VDBG - RLOGE("hangupWaitingOrBackground: serial %d", serial); + RLOGD("hangupWaitingOrBackground: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND); return Void(); @@ -976,7 +976,7 @@ Return RadioImpl::hangupWaitingOrBackground(int32_t serial) { Return RadioImpl::hangupForegroundResumeBackground(int32_t serial) { #if VDBG - RLOGE("hangupForegroundResumeBackground: serial %d", serial); + RLOGD("hangupForegroundResumeBackground: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND); return Void(); @@ -984,7 +984,7 @@ Return RadioImpl::hangupForegroundResumeBackground(int32_t serial) { Return RadioImpl::switchWaitingOrHoldingAndActive(int32_t serial) { #if VDBG - RLOGE("switchWaitingOrHoldingAndActive: serial %d", serial); + RLOGD("switchWaitingOrHoldingAndActive: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE); return Void(); @@ -992,7 +992,7 @@ Return RadioImpl::switchWaitingOrHoldingAndActive(int32_t serial) { Return RadioImpl::conference(int32_t serial) { #if VDBG - RLOGE("conference: serial %d", serial); + RLOGD("conference: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_CONFERENCE); return Void(); @@ -1000,7 +1000,7 @@ Return RadioImpl::conference(int32_t serial) { Return RadioImpl::rejectCall(int32_t serial) { #if VDBG - RLOGE("rejectCall: serial %d", serial); + RLOGD("rejectCall: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_UDUB); return Void(); @@ -1008,7 +1008,7 @@ Return RadioImpl::rejectCall(int32_t serial) { Return RadioImpl::getLastCallFailCause(int32_t serial) { #if VDBG - RLOGE("getLastCallFailCause: serial %d", serial); + RLOGD("getLastCallFailCause: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_LAST_CALL_FAIL_CAUSE); return Void(); @@ -1016,7 +1016,7 @@ Return RadioImpl::getLastCallFailCause(int32_t serial) { Return RadioImpl::getSignalStrength(int32_t serial) { #if VDBG - RLOGE("getSignalStrength: serial %d", serial); + RLOGD("getSignalStrength: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_SIGNAL_STRENGTH); return Void(); @@ -1024,7 +1024,7 @@ Return RadioImpl::getSignalStrength(int32_t serial) { Return RadioImpl::getVoiceRegistrationState(int32_t serial) { #if VDBG - RLOGE("getVoiceRegistrationState: serial %d", serial); + RLOGD("getVoiceRegistrationState: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_VOICE_REGISTRATION_STATE); return Void(); @@ -1032,7 +1032,7 @@ Return RadioImpl::getVoiceRegistrationState(int32_t serial) { Return RadioImpl::getDataRegistrationState(int32_t serial) { #if VDBG - RLOGE("getDataRegistrationState: serial %d", serial); + RLOGD("getDataRegistrationState: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_DATA_REGISTRATION_STATE); return Void(); @@ -1040,21 +1040,21 @@ Return RadioImpl::getDataRegistrationState(int32_t serial) { Return RadioImpl::getOperator(int32_t serial) { #if VDBG - RLOGE("getOperator: serial %d", serial); + RLOGD("getOperator: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_OPERATOR); return Void(); } Return RadioImpl::setRadioPower(int32_t serial, bool on) { - RLOGE("setRadioPower: serial %d on %d", serial, on); + RLOGD("setRadioPower: serial %d on %d", serial, on); dispatchInts(serial, mSlotId, RIL_REQUEST_RADIO_POWER, 1, BOOL_TO_INT(on)); return Void(); } Return RadioImpl::sendDtmf(int32_t serial, const hidl_string& s) { #if VDBG - RLOGE("sendDtmf: serial %d", serial); + RLOGD("sendDtmf: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_DTMF, s.c_str()); return Void(); @@ -1062,7 +1062,7 @@ Return RadioImpl::sendDtmf(int32_t serial, const hidl_string& s) { Return RadioImpl::sendSms(int32_t serial, const GsmSmsMessage& message) { #if VDBG - RLOGE("sendSms: serial %d", serial); + RLOGD("sendSms: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_SEND_SMS, false, 2, message.smscPdu.c_str(), message.pdu.c_str()); @@ -1071,7 +1071,7 @@ Return RadioImpl::sendSms(int32_t serial, const GsmSmsMessage& message) { Return RadioImpl::sendSMSExpectMore(int32_t serial, const GsmSmsMessage& message) { #if VDBG - RLOGE("sendSMSExpectMore: serial %d", serial); + RLOGD("sendSMSExpectMore: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_SEND_SMS_EXPECT_MORE, false, 2, message.smscPdu.c_str(), message.pdu.c_str()); @@ -1101,7 +1101,7 @@ Return RadioImpl::setupDataCall(int32_t serial, RadioTechnology radioTechn bool roamingAllowed, bool isRoaming) { #if VDBG - RLOGE("setupDataCall: serial %d", serial); + RLOGD("setupDataCall: serial %d", serial); #endif if (s_vendorFunctions->version >= 4 && s_vendorFunctions->version <= 14) { @@ -1154,7 +1154,7 @@ Return RadioImpl::setupDataCall(int32_t serial, RadioTechnology radioTechn Return RadioImpl::iccIOForApp(int32_t serial, const IccIo& iccIo) { #if VDBG - RLOGE("iccIOForApp: serial %d", serial); + RLOGD("iccIOForApp: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_IO); if (pRI == NULL) { @@ -1196,7 +1196,7 @@ Return RadioImpl::iccIOForApp(int32_t serial, const IccIo& iccIo) { Return RadioImpl::sendUssd(int32_t serial, const hidl_string& ussd) { #if VDBG - RLOGE("sendUssd: serial %d", serial); + RLOGD("sendUssd: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_SEND_USSD, ussd.c_str()); return Void(); @@ -1204,7 +1204,7 @@ Return RadioImpl::sendUssd(int32_t serial, const hidl_string& ussd) { Return RadioImpl::cancelPendingUssd(int32_t serial) { #if VDBG - RLOGE("cancelPendingUssd: serial %d", serial); + RLOGD("cancelPendingUssd: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_CANCEL_USSD); return Void(); @@ -1212,7 +1212,7 @@ Return RadioImpl::cancelPendingUssd(int32_t serial) { Return RadioImpl::getClir(int32_t serial) { #if VDBG - RLOGE("getClir: serial %d", serial); + RLOGD("getClir: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_CLIR); return Void(); @@ -1220,7 +1220,7 @@ Return RadioImpl::getClir(int32_t serial) { Return RadioImpl::setClir(int32_t serial, int32_t status) { #if VDBG - RLOGE("setClir: serial %d", serial); + RLOGD("setClir: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_CLIR, 1, status); return Void(); @@ -1228,7 +1228,7 @@ Return RadioImpl::setClir(int32_t serial, int32_t status) { Return RadioImpl::getCallForwardStatus(int32_t serial, const CallForwardInfo& callInfo) { #if VDBG - RLOGE("getCallForwardStatus: serial %d", serial); + RLOGD("getCallForwardStatus: serial %d", serial); #endif dispatchCallForwardStatus(serial, mSlotId, RIL_REQUEST_QUERY_CALL_FORWARD_STATUS, callInfo); @@ -1237,7 +1237,7 @@ Return RadioImpl::getCallForwardStatus(int32_t serial, const CallForwardIn Return RadioImpl::setCallForward(int32_t serial, const CallForwardInfo& callInfo) { #if VDBG - RLOGE("setCallForward: serial %d", serial); + RLOGD("setCallForward: serial %d", serial); #endif dispatchCallForwardStatus(serial, mSlotId, RIL_REQUEST_SET_CALL_FORWARD, callInfo); @@ -1246,7 +1246,7 @@ Return RadioImpl::setCallForward(int32_t serial, const CallForwardInfo& ca Return RadioImpl::getCallWaiting(int32_t serial, int32_t serviceClass) { #if VDBG - RLOGE("getCallWaiting: serial %d", serial); + RLOGD("getCallWaiting: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_QUERY_CALL_WAITING, 1, serviceClass); return Void(); @@ -1254,7 +1254,7 @@ Return RadioImpl::getCallWaiting(int32_t serial, int32_t serviceClass) { Return RadioImpl::setCallWaiting(int32_t serial, bool enable, int32_t serviceClass) { #if VDBG - RLOGE("setCallWaiting: serial %d", serial); + RLOGD("setCallWaiting: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_CALL_WAITING, 2, BOOL_TO_INT(enable), serviceClass); @@ -1264,7 +1264,7 @@ Return RadioImpl::setCallWaiting(int32_t serial, bool enable, int32_t serv Return RadioImpl::acknowledgeLastIncomingGsmSms(int32_t serial, bool success, SmsAcknowledgeFailCause cause) { #if VDBG - RLOGE("acknowledgeLastIncomingGsmSms: serial %d", serial); + RLOGD("acknowledgeLastIncomingGsmSms: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SMS_ACKNOWLEDGE, 2, BOOL_TO_INT(success), cause); @@ -1273,7 +1273,7 @@ Return RadioImpl::acknowledgeLastIncomingGsmSms(int32_t serial, Return RadioImpl::acceptCall(int32_t serial) { #if VDBG - RLOGE("acceptCall: serial %d", serial); + RLOGD("acceptCall: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_ANSWER); return Void(); @@ -1282,7 +1282,7 @@ Return RadioImpl::acceptCall(int32_t serial) { Return RadioImpl::deactivateDataCall(int32_t serial, int32_t cid, bool reasonRadioShutDown) { #if VDBG - RLOGE("deactivateDataCall: serial %d", serial); + RLOGD("deactivateDataCall: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_DEACTIVATE_DATA_CALL, false, 2, (std::to_string(cid)).c_str(), reasonRadioShutDown ? "1" : "0"); @@ -1293,7 +1293,7 @@ Return RadioImpl::getFacilityLockForApp(int32_t serial, const hidl_string& const hidl_string& password, int32_t serviceClass, const hidl_string& appId) { #if VDBG - RLOGE("getFacilityLockForApp: serial %d", serial); + RLOGD("getFacilityLockForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_QUERY_FACILITY_LOCK, true, 4, facility.c_str(), password.c_str(), @@ -1305,7 +1305,7 @@ Return RadioImpl::setFacilityLockForApp(int32_t serial, const hidl_string& bool lockState, const hidl_string& password, int32_t serviceClass, const hidl_string& appId) { #if VDBG - RLOGE("setFacilityLockForApp: serial %d", serial); + RLOGD("setFacilityLockForApp: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_SET_FACILITY_LOCK, true, 5, facility.c_str(), lockState ? "1" : "0", password.c_str(), @@ -1317,7 +1317,7 @@ Return RadioImpl::setBarringPassword(int32_t serial, const hidl_string& fa const hidl_string& oldPassword, const hidl_string& newPassword) { #if VDBG - RLOGE("setBarringPassword: serial %d", serial); + RLOGD("setBarringPassword: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_CHANGE_BARRING_PASSWORD, true, 3, facility.c_str(), oldPassword.c_str(), newPassword.c_str()); @@ -1326,7 +1326,7 @@ Return RadioImpl::setBarringPassword(int32_t serial, const hidl_string& fa Return RadioImpl::getNetworkSelectionMode(int32_t serial) { #if VDBG - RLOGE("getNetworkSelectionMode: serial %d", serial); + RLOGD("getNetworkSelectionMode: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE); return Void(); @@ -1334,7 +1334,7 @@ Return RadioImpl::getNetworkSelectionMode(int32_t serial) { Return RadioImpl::setNetworkSelectionModeAutomatic(int32_t serial) { #if VDBG - RLOGE("setNetworkSelectionModeAutomatic: serial %d", serial); + RLOGD("setNetworkSelectionModeAutomatic: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC); return Void(); @@ -1343,7 +1343,7 @@ Return RadioImpl::setNetworkSelectionModeAutomatic(int32_t serial) { Return RadioImpl::setNetworkSelectionModeManual(int32_t serial, const hidl_string& operatorNumeric) { #if VDBG - RLOGE("setNetworkSelectionModeManual: serial %d", serial); + RLOGD("setNetworkSelectionModeManual: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL, operatorNumeric.c_str()); @@ -1352,7 +1352,7 @@ Return RadioImpl::setNetworkSelectionModeManual(int32_t serial, Return RadioImpl::getAvailableNetworks(int32_t serial) { #if VDBG - RLOGE("getAvailableNetworks: serial %d", serial); + RLOGD("getAvailableNetworks: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_QUERY_AVAILABLE_NETWORKS); return Void(); @@ -1360,7 +1360,7 @@ Return RadioImpl::getAvailableNetworks(int32_t serial) { Return RadioImpl::startNetworkScan(int32_t serial, const V1_1::NetworkScanRequest& request) { #if VDBG - RLOGE("startNetworkScan: serial %d", serial); + RLOGD("startNetworkScan: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_START_NETWORK_SCAN); @@ -1426,7 +1426,7 @@ Return RadioImpl::startNetworkScan(int32_t serial, const V1_1::NetworkScan Return RadioImpl::stopNetworkScan(int32_t serial) { #if VDBG - RLOGE("stopNetworkScan: serial %d", serial); + RLOGD("stopNetworkScan: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_STOP_NETWORK_SCAN); return Void(); @@ -1434,7 +1434,7 @@ Return RadioImpl::stopNetworkScan(int32_t serial) { Return RadioImpl::startDtmf(int32_t serial, const hidl_string& s) { #if VDBG - RLOGE("startDtmf: serial %d", serial); + RLOGD("startDtmf: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_DTMF_START, s.c_str()); @@ -1443,7 +1443,7 @@ Return RadioImpl::startDtmf(int32_t serial, const hidl_string& s) { Return RadioImpl::stopDtmf(int32_t serial) { #if VDBG - RLOGE("stopDtmf: serial %d", serial); + RLOGD("stopDtmf: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_DTMF_STOP); return Void(); @@ -1451,7 +1451,7 @@ Return RadioImpl::stopDtmf(int32_t serial) { Return RadioImpl::getBasebandVersion(int32_t serial) { #if VDBG - RLOGE("getBasebandVersion: serial %d", serial); + RLOGD("getBasebandVersion: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_BASEBAND_VERSION); return Void(); @@ -1459,7 +1459,7 @@ Return RadioImpl::getBasebandVersion(int32_t serial) { Return RadioImpl::separateConnection(int32_t serial, int32_t gsmIndex) { #if VDBG - RLOGE("separateConnection: serial %d", serial); + RLOGD("separateConnection: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SEPARATE_CONNECTION, 1, gsmIndex); return Void(); @@ -1467,7 +1467,7 @@ Return RadioImpl::separateConnection(int32_t serial, int32_t gsmIndex) { Return RadioImpl::setMute(int32_t serial, bool enable) { #if VDBG - RLOGE("setMute: serial %d", serial); + RLOGD("setMute: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_MUTE, 1, BOOL_TO_INT(enable)); return Void(); @@ -1475,7 +1475,7 @@ Return RadioImpl::setMute(int32_t serial, bool enable) { Return RadioImpl::getMute(int32_t serial) { #if VDBG - RLOGE("getMute: serial %d", serial); + RLOGD("getMute: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_MUTE); return Void(); @@ -1483,7 +1483,7 @@ Return RadioImpl::getMute(int32_t serial) { Return RadioImpl::getClip(int32_t serial) { #if VDBG - RLOGE("getClip: serial %d", serial); + RLOGD("getClip: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_QUERY_CLIP); return Void(); @@ -1491,7 +1491,7 @@ Return RadioImpl::getClip(int32_t serial) { Return RadioImpl::getDataCallList(int32_t serial) { #if VDBG - RLOGE("getDataCallList: serial %d", serial); + RLOGD("getDataCallList: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_DATA_CALL_LIST); return Void(); @@ -1499,7 +1499,7 @@ Return RadioImpl::getDataCallList(int32_t serial) { Return RadioImpl::setSuppServiceNotifications(int32_t serial, bool enable) { #if VDBG - RLOGE("setSuppServiceNotifications: serial %d", serial); + RLOGD("setSuppServiceNotifications: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION, 1, BOOL_TO_INT(enable)); @@ -1508,7 +1508,7 @@ Return RadioImpl::setSuppServiceNotifications(int32_t serial, bool enable) Return RadioImpl::writeSmsToSim(int32_t serial, const SmsWriteArgs& smsWriteArgs) { #if VDBG - RLOGE("writeSmsToSim: serial %d", serial); + RLOGD("writeSmsToSim: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_WRITE_SMS_TO_SIM); if (pRI == NULL) { @@ -1536,7 +1536,7 @@ Return RadioImpl::writeSmsToSim(int32_t serial, const SmsWriteArgs& smsWri Return RadioImpl::deleteSmsOnSim(int32_t serial, int32_t index) { #if VDBG - RLOGE("deleteSmsOnSim: serial %d", serial); + RLOGD("deleteSmsOnSim: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_DELETE_SMS_ON_SIM, 1, index); return Void(); @@ -1544,7 +1544,7 @@ Return RadioImpl::deleteSmsOnSim(int32_t serial, int32_t index) { Return RadioImpl::setBandMode(int32_t serial, RadioBandMode mode) { #if VDBG - RLOGE("setBandMode: serial %d", serial); + RLOGD("setBandMode: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_BAND_MODE, 1, mode); return Void(); @@ -1552,7 +1552,7 @@ Return RadioImpl::setBandMode(int32_t serial, RadioBandMode mode) { Return RadioImpl::getAvailableBandModes(int32_t serial) { #if VDBG - RLOGE("getAvailableBandModes: serial %d", serial); + RLOGD("getAvailableBandModes: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE); return Void(); @@ -1560,7 +1560,7 @@ Return RadioImpl::getAvailableBandModes(int32_t serial) { Return RadioImpl::sendEnvelope(int32_t serial, const hidl_string& command) { #if VDBG - RLOGE("sendEnvelope: serial %d", serial); + RLOGD("sendEnvelope: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND, command.c_str()); @@ -1570,7 +1570,7 @@ Return RadioImpl::sendEnvelope(int32_t serial, const hidl_string& command) Return RadioImpl::sendTerminalResponseToSim(int32_t serial, const hidl_string& commandResponse) { #if VDBG - RLOGE("sendTerminalResponseToSim: serial %d", serial); + RLOGD("sendTerminalResponseToSim: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE, commandResponse.c_str()); @@ -1579,7 +1579,7 @@ Return RadioImpl::sendTerminalResponseToSim(int32_t serial, Return RadioImpl::handleStkCallSetupRequestFromSim(int32_t serial, bool accept) { #if VDBG - RLOGE("handleStkCallSetupRequestFromSim: serial %d", serial); + RLOGD("handleStkCallSetupRequestFromSim: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM, 1, BOOL_TO_INT(accept)); @@ -1588,7 +1588,7 @@ Return RadioImpl::handleStkCallSetupRequestFromSim(int32_t serial, bool ac Return RadioImpl::explicitCallTransfer(int32_t serial) { #if VDBG - RLOGE("explicitCallTransfer: serial %d", serial); + RLOGD("explicitCallTransfer: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_EXPLICIT_CALL_TRANSFER); return Void(); @@ -1596,7 +1596,7 @@ Return RadioImpl::explicitCallTransfer(int32_t serial) { Return RadioImpl::setPreferredNetworkType(int32_t serial, PreferredNetworkType nwType) { #if VDBG - RLOGE("setPreferredNetworkType: serial %d", serial); + RLOGD("setPreferredNetworkType: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE, 1, nwType); return Void(); @@ -1604,7 +1604,7 @@ Return RadioImpl::setPreferredNetworkType(int32_t serial, PreferredNetwork Return RadioImpl::getPreferredNetworkType(int32_t serial) { #if VDBG - RLOGE("getPreferredNetworkType: serial %d", serial); + RLOGD("getPreferredNetworkType: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE); return Void(); @@ -1612,7 +1612,7 @@ Return RadioImpl::getPreferredNetworkType(int32_t serial) { Return RadioImpl::getNeighboringCids(int32_t serial) { #if VDBG - RLOGE("getNeighboringCids: serial %d", serial); + RLOGD("getNeighboringCids: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_NEIGHBORING_CELL_IDS); return Void(); @@ -1620,7 +1620,7 @@ Return RadioImpl::getNeighboringCids(int32_t serial) { Return RadioImpl::setLocationUpdates(int32_t serial, bool enable) { #if VDBG - RLOGE("setLocationUpdates: serial %d", serial); + RLOGD("setLocationUpdates: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_LOCATION_UPDATES, 1, BOOL_TO_INT(enable)); return Void(); @@ -1628,7 +1628,7 @@ Return RadioImpl::setLocationUpdates(int32_t serial, bool enable) { Return RadioImpl::setCdmaSubscriptionSource(int32_t serial, CdmaSubscriptionSource cdmaSub) { #if VDBG - RLOGE("setCdmaSubscriptionSource: serial %d", serial); + RLOGD("setCdmaSubscriptionSource: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE, 1, cdmaSub); return Void(); @@ -1636,7 +1636,7 @@ Return RadioImpl::setCdmaSubscriptionSource(int32_t serial, CdmaSubscripti Return RadioImpl::setCdmaRoamingPreference(int32_t serial, CdmaRoamingType type) { #if VDBG - RLOGE("setCdmaRoamingPreference: serial %d", serial); + RLOGD("setCdmaRoamingPreference: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE, 1, type); return Void(); @@ -1644,7 +1644,7 @@ Return RadioImpl::setCdmaRoamingPreference(int32_t serial, CdmaRoamingType Return RadioImpl::getCdmaRoamingPreference(int32_t serial) { #if VDBG - RLOGE("getCdmaRoamingPreference: serial %d", serial); + RLOGD("getCdmaRoamingPreference: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE); return Void(); @@ -1652,7 +1652,7 @@ Return RadioImpl::getCdmaRoamingPreference(int32_t serial) { Return RadioImpl::setTTYMode(int32_t serial, TtyMode mode) { #if VDBG - RLOGE("setTTYMode: serial %d", serial); + RLOGD("setTTYMode: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_TTY_MODE, 1, mode); return Void(); @@ -1660,7 +1660,7 @@ Return RadioImpl::setTTYMode(int32_t serial, TtyMode mode) { Return RadioImpl::getTTYMode(int32_t serial) { #if VDBG - RLOGE("getTTYMode: serial %d", serial); + RLOGD("getTTYMode: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_QUERY_TTY_MODE); return Void(); @@ -1668,7 +1668,7 @@ Return RadioImpl::getTTYMode(int32_t serial) { Return RadioImpl::setPreferredVoicePrivacy(int32_t serial, bool enable) { #if VDBG - RLOGE("setPreferredVoicePrivacy: serial %d", serial); + RLOGD("setPreferredVoicePrivacy: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE, 1, BOOL_TO_INT(enable)); @@ -1677,7 +1677,7 @@ Return RadioImpl::setPreferredVoicePrivacy(int32_t serial, bool enable) { Return RadioImpl::getPreferredVoicePrivacy(int32_t serial) { #if VDBG - RLOGE("getPreferredVoicePrivacy: serial %d", serial); + RLOGD("getPreferredVoicePrivacy: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE); return Void(); @@ -1685,7 +1685,7 @@ Return RadioImpl::getPreferredVoicePrivacy(int32_t serial) { Return RadioImpl::sendCDMAFeatureCode(int32_t serial, const hidl_string& featureCode) { #if VDBG - RLOGE("sendCDMAFeatureCode: serial %d", serial); + RLOGD("sendCDMAFeatureCode: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_CDMA_FLASH, featureCode.c_str()); @@ -1695,7 +1695,7 @@ Return RadioImpl::sendCDMAFeatureCode(int32_t serial, const hidl_string& f Return RadioImpl::sendBurstDtmf(int32_t serial, const hidl_string& dtmf, int32_t on, int32_t off) { #if VDBG - RLOGE("sendBurstDtmf: serial %d", serial); + RLOGD("sendBurstDtmf: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_CDMA_BURST_DTMF, false, 3, dtmf.c_str(), (std::to_string(on)).c_str(), @@ -1736,7 +1736,7 @@ void constructCdmaSms(RIL_CDMA_SMS_Message &rcsm, const CdmaSmsMessage& sms) { Return RadioImpl::sendCdmaSms(int32_t serial, const CdmaSmsMessage& sms) { #if VDBG - RLOGE("sendCdmaSms: serial %d", serial); + RLOGD("sendCdmaSms: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SEND_SMS); if (pRI == NULL) { @@ -1752,7 +1752,7 @@ Return RadioImpl::sendCdmaSms(int32_t serial, const CdmaSmsMessage& sms) { Return RadioImpl::acknowledgeLastIncomingCdmaSms(int32_t serial, const CdmaSmsAck& smsAck) { #if VDBG - RLOGE("acknowledgeLastIncomingCdmaSms: serial %d", serial); + RLOGD("acknowledgeLastIncomingCdmaSms: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE); if (pRI == NULL) { @@ -1770,7 +1770,7 @@ Return RadioImpl::acknowledgeLastIncomingCdmaSms(int32_t serial, const Cdm Return RadioImpl::getGsmBroadcastConfig(int32_t serial) { #if VDBG - RLOGE("getGsmBroadcastConfig: serial %d", serial); + RLOGD("getGsmBroadcastConfig: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG); return Void(); @@ -1780,7 +1780,7 @@ Return RadioImpl::setGsmBroadcastConfig(int32_t serial, const hidl_vec& configInfo) { #if VDBG - RLOGE("setGsmBroadcastConfig: serial %d", serial); + RLOGD("setGsmBroadcastConfig: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG); @@ -1808,7 +1808,7 @@ Return RadioImpl::setGsmBroadcastConfig(int32_t serial, Return RadioImpl::setGsmBroadcastActivation(int32_t serial, bool activate) { #if VDBG - RLOGE("setGsmBroadcastActivation: serial %d", serial); + RLOGD("setGsmBroadcastActivation: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION, 1, BOOL_TO_INT(!activate)); @@ -1817,7 +1817,7 @@ Return RadioImpl::setGsmBroadcastActivation(int32_t serial, bool activate) Return RadioImpl::getCdmaBroadcastConfig(int32_t serial) { #if VDBG - RLOGE("getCdmaBroadcastConfig: serial %d", serial); + RLOGD("getCdmaBroadcastConfig: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG); return Void(); @@ -1827,7 +1827,7 @@ Return RadioImpl::setCdmaBroadcastConfig(int32_t serial, const hidl_vec& configInfo) { #if VDBG - RLOGE("setCdmaBroadcastConfig: serial %d", serial); + RLOGD("setCdmaBroadcastConfig: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG); @@ -1853,7 +1853,7 @@ Return RadioImpl::setCdmaBroadcastConfig(int32_t serial, Return RadioImpl::setCdmaBroadcastActivation(int32_t serial, bool activate) { #if VDBG - RLOGE("setCdmaBroadcastActivation: serial %d", serial); + RLOGD("setCdmaBroadcastActivation: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION, 1, BOOL_TO_INT(!activate)); @@ -1862,7 +1862,7 @@ Return RadioImpl::setCdmaBroadcastActivation(int32_t serial, bool activate Return RadioImpl::getCDMASubscription(int32_t serial) { #if VDBG - RLOGE("getCDMASubscription: serial %d", serial); + RLOGD("getCDMASubscription: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_CDMA_SUBSCRIPTION); return Void(); @@ -1870,7 +1870,7 @@ Return RadioImpl::getCDMASubscription(int32_t serial) { Return RadioImpl::writeSmsToRuim(int32_t serial, const CdmaSmsWriteArgs& cdmaSms) { #if VDBG - RLOGE("writeSmsToRuim: serial %d", serial); + RLOGD("writeSmsToRuim: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM); @@ -1888,7 +1888,7 @@ Return RadioImpl::writeSmsToRuim(int32_t serial, const CdmaSmsWriteArgs& c Return RadioImpl::deleteSmsOnRuim(int32_t serial, int32_t index) { #if VDBG - RLOGE("deleteSmsOnRuim: serial %d", serial); + RLOGD("deleteSmsOnRuim: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM, 1, index); return Void(); @@ -1896,7 +1896,7 @@ Return RadioImpl::deleteSmsOnRuim(int32_t serial, int32_t index) { Return RadioImpl::getDeviceIdentity(int32_t serial) { #if VDBG - RLOGE("getDeviceIdentity: serial %d", serial); + RLOGD("getDeviceIdentity: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_DEVICE_IDENTITY); return Void(); @@ -1904,7 +1904,7 @@ Return RadioImpl::getDeviceIdentity(int32_t serial) { Return RadioImpl::exitEmergencyCallbackMode(int32_t serial) { #if VDBG - RLOGE("exitEmergencyCallbackMode: serial %d", serial); + RLOGD("exitEmergencyCallbackMode: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE); return Void(); @@ -1912,7 +1912,7 @@ Return RadioImpl::exitEmergencyCallbackMode(int32_t serial) { Return RadioImpl::getSmscAddress(int32_t serial) { #if VDBG - RLOGE("getSmscAddress: serial %d", serial); + RLOGD("getSmscAddress: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_SMSC_ADDRESS); return Void(); @@ -1920,7 +1920,7 @@ Return RadioImpl::getSmscAddress(int32_t serial) { Return RadioImpl::setSmscAddress(int32_t serial, const hidl_string& smsc) { #if VDBG - RLOGE("setSmscAddress: serial %d", serial); + RLOGD("setSmscAddress: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_SET_SMSC_ADDRESS, smsc.c_str()); @@ -1929,7 +1929,7 @@ Return RadioImpl::setSmscAddress(int32_t serial, const hidl_string& smsc) Return RadioImpl::reportSmsMemoryStatus(int32_t serial, bool available) { #if VDBG - RLOGE("reportSmsMemoryStatus: serial %d", serial); + RLOGD("reportSmsMemoryStatus: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_REPORT_SMS_MEMORY_STATUS, 1, BOOL_TO_INT(available)); @@ -1938,7 +1938,7 @@ Return RadioImpl::reportSmsMemoryStatus(int32_t serial, bool available) { Return RadioImpl::reportStkServiceIsRunning(int32_t serial) { #if VDBG - RLOGE("reportStkServiceIsRunning: serial %d", serial); + RLOGD("reportStkServiceIsRunning: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING); return Void(); @@ -1946,7 +1946,7 @@ Return RadioImpl::reportStkServiceIsRunning(int32_t serial) { Return RadioImpl::getCdmaSubscriptionSource(int32_t serial) { #if VDBG - RLOGE("getCdmaSubscriptionSource: serial %d", serial); + RLOGD("getCdmaSubscriptionSource: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE); return Void(); @@ -1954,7 +1954,7 @@ Return RadioImpl::getCdmaSubscriptionSource(int32_t serial) { Return RadioImpl::requestIsimAuthentication(int32_t serial, const hidl_string& challenge) { #if VDBG - RLOGE("requestIsimAuthentication: serial %d", serial); + RLOGD("requestIsimAuthentication: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_ISIM_AUTHENTICATION, challenge.c_str()); @@ -1964,7 +1964,7 @@ Return RadioImpl::requestIsimAuthentication(int32_t serial, const hidl_str Return RadioImpl::acknowledgeIncomingGsmSmsWithPdu(int32_t serial, bool success, const hidl_string& ackPdu) { #if VDBG - RLOGE("acknowledgeIncomingGsmSmsWithPdu: serial %d", serial); + RLOGD("acknowledgeIncomingGsmSmsWithPdu: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU, false, 2, success ? "1" : "0", ackPdu.c_str()); @@ -1973,7 +1973,7 @@ Return RadioImpl::acknowledgeIncomingGsmSmsWithPdu(int32_t serial, bool su Return RadioImpl::sendEnvelopeWithStatus(int32_t serial, const hidl_string& contents) { #if VDBG - RLOGE("sendEnvelopeWithStatus: serial %d", serial); + RLOGD("sendEnvelopeWithStatus: serial %d", serial); #endif dispatchString(serial, mSlotId, RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS, contents.c_str()); @@ -1982,7 +1982,7 @@ Return RadioImpl::sendEnvelopeWithStatus(int32_t serial, const hidl_string Return RadioImpl::getVoiceRadioTechnology(int32_t serial) { #if VDBG - RLOGE("getVoiceRadioTechnology: serial %d", serial); + RLOGD("getVoiceRadioTechnology: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_VOICE_RADIO_TECH); return Void(); @@ -1990,7 +1990,7 @@ Return RadioImpl::getVoiceRadioTechnology(int32_t serial) { Return RadioImpl::getCellInfoList(int32_t serial) { #if VDBG - RLOGE("getCellInfoList: serial %d", serial); + RLOGD("getCellInfoList: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_CELL_INFO_LIST); return Void(); @@ -1998,7 +1998,7 @@ Return RadioImpl::getCellInfoList(int32_t serial) { Return RadioImpl::setCellInfoListRate(int32_t serial, int32_t rate) { #if VDBG - RLOGE("setCellInfoListRate: serial %d", serial); + RLOGD("setCellInfoListRate: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE, 1, rate); return Void(); @@ -2007,7 +2007,7 @@ Return RadioImpl::setCellInfoListRate(int32_t serial, int32_t rate) { Return RadioImpl::setInitialAttachApn(int32_t serial, const DataProfileInfo& dataProfileInfo, bool modemCognitive, bool isRoaming) { #if VDBG - RLOGE("setInitialAttachApn: serial %d", serial); + RLOGD("setInitialAttachApn: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_INITIAL_ATTACH_APN); @@ -2095,7 +2095,7 @@ Return RadioImpl::setInitialAttachApn(int32_t serial, const DataProfileInf Return RadioImpl::getImsRegistrationState(int32_t serial) { #if VDBG - RLOGE("getImsRegistrationState: serial %d", serial); + RLOGD("getImsRegistrationState: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_IMS_REGISTRATION_STATE); return Void(); @@ -2192,7 +2192,7 @@ bool dispatchImsCdmaSms(const ImsSmsMessage& message, RequestInfo *pRI) { Return RadioImpl::sendImsSms(int32_t serial, const ImsSmsMessage& message) { #if VDBG - RLOGE("sendImsSms: serial %d", serial); + RLOGD("sendImsSms: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_IMS_SEND_SMS); if (pRI == NULL) { @@ -2215,7 +2215,7 @@ Return RadioImpl::sendImsSms(int32_t serial, const ImsSmsMessage& message) Return RadioImpl::iccTransmitApduBasicChannel(int32_t serial, const SimApdu& message) { #if VDBG - RLOGE("iccTransmitApduBasicChannel: serial %d", serial); + RLOGD("iccTransmitApduBasicChannel: serial %d", serial); #endif dispatchIccApdu(serial, mSlotId, RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC, message); return Void(); @@ -2223,7 +2223,7 @@ Return RadioImpl::iccTransmitApduBasicChannel(int32_t serial, const SimApd Return RadioImpl::iccOpenLogicalChannel(int32_t serial, const hidl_string& aid, int32_t p2) { #if VDBG - RLOGE("iccOpenLogicalChannel: serial %d", serial); + RLOGD("iccOpenLogicalChannel: serial %d", serial); #endif if (s_vendorFunctions->version < 15) { dispatchString(serial, mSlotId, RIL_REQUEST_SIM_OPEN_CHANNEL, aid.c_str()); @@ -2250,7 +2250,7 @@ Return RadioImpl::iccOpenLogicalChannel(int32_t serial, const hidl_string& Return RadioImpl::iccCloseLogicalChannel(int32_t serial, int32_t channelId) { #if VDBG - RLOGE("iccCloseLogicalChannel: serial %d", serial); + RLOGD("iccCloseLogicalChannel: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SIM_CLOSE_CHANNEL, 1, channelId); return Void(); @@ -2258,7 +2258,7 @@ Return RadioImpl::iccCloseLogicalChannel(int32_t serial, int32_t channelId Return RadioImpl::iccTransmitApduLogicalChannel(int32_t serial, const SimApdu& message) { #if VDBG - RLOGE("iccTransmitApduLogicalChannel: serial %d", serial); + RLOGD("iccTransmitApduLogicalChannel: serial %d", serial); #endif dispatchIccApdu(serial, mSlotId, RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL, message); return Void(); @@ -2266,7 +2266,7 @@ Return RadioImpl::iccTransmitApduLogicalChannel(int32_t serial, const SimA Return RadioImpl::nvReadItem(int32_t serial, NvItem itemId) { #if VDBG - RLOGE("nvReadItem: serial %d", serial); + RLOGD("nvReadItem: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_NV_READ_ITEM); if (pRI == NULL) { @@ -2282,7 +2282,7 @@ Return RadioImpl::nvReadItem(int32_t serial, NvItem itemId) { Return RadioImpl::nvWriteItem(int32_t serial, const NvWriteItem& item) { #if VDBG - RLOGE("nvWriteItem: serial %d", serial); + RLOGD("nvWriteItem: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_NV_WRITE_ITEM); if (pRI == NULL) { @@ -2305,7 +2305,7 @@ Return RadioImpl::nvWriteItem(int32_t serial, const NvWriteItem& item) { Return RadioImpl::nvWriteCdmaPrl(int32_t serial, const hidl_vec& prl) { #if VDBG - RLOGE("nvWriteCdmaPrl: serial %d", serial); + RLOGD("nvWriteCdmaPrl: serial %d", serial); #endif dispatchRaw(serial, mSlotId, RIL_REQUEST_NV_WRITE_CDMA_PRL, prl); return Void(); @@ -2314,7 +2314,7 @@ Return RadioImpl::nvWriteCdmaPrl(int32_t serial, const hidl_vec& Return RadioImpl::nvResetConfig(int32_t serial, ResetNvType resetType) { int rilResetType = -1; #if VDBG - RLOGE("nvResetConfig: serial %d", serial); + RLOGD("nvResetConfig: serial %d", serial); #endif /* Convert ResetNvType to RIL.h values * RIL_REQUEST_NV_RESET_CONFIG @@ -2339,7 +2339,7 @@ Return RadioImpl::nvResetConfig(int32_t serial, ResetNvType resetType) { Return RadioImpl::setUiccSubscription(int32_t serial, const SelectUiccSub& uiccSub) { #if VDBG - RLOGE("setUiccSubscription: serial %d", serial); + RLOGD("setUiccSubscription: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_UICC_SUBSCRIPTION); @@ -2360,7 +2360,7 @@ Return RadioImpl::setUiccSubscription(int32_t serial, const SelectUiccSub& Return RadioImpl::setDataAllowed(int32_t serial, bool allow) { #if VDBG - RLOGE("setDataAllowed: serial %d", serial); + RLOGD("setDataAllowed: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_ALLOW_DATA, 1, BOOL_TO_INT(allow)); return Void(); @@ -2368,7 +2368,7 @@ Return RadioImpl::setDataAllowed(int32_t serial, bool allow) { Return RadioImpl::getHardwareConfig(int32_t serial) { #if VDBG - RLOGE("getHardwareConfig: serial %d", serial); + RLOGD("getHardwareConfig: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_HARDWARE_CONFIG); return Void(); @@ -2377,7 +2377,7 @@ Return RadioImpl::getHardwareConfig(int32_t serial) { Return RadioImpl::requestIccSimAuthentication(int32_t serial, int32_t authContext, const hidl_string& authData, const hidl_string& aid) { #if VDBG - RLOGE("requestIccSimAuthentication: serial %d", serial); + RLOGD("requestIccSimAuthentication: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_AUTHENTICATION); if (pRI == NULL) { @@ -2440,7 +2440,7 @@ void freeSetDataProfileData(int numProfiles, T *dataProfiles, T **dataProfilePtr Return RadioImpl::setDataProfile(int32_t serial, const hidl_vec& profiles, bool isRoaming) { #if VDBG - RLOGE("setDataProfile: serial %d", serial); + RLOGD("setDataProfile: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_DATA_PROFILE); if (pRI == NULL) { @@ -2601,7 +2601,7 @@ Return RadioImpl::setDataProfile(int32_t serial, const hidl_vec RadioImpl::requestShutdown(int32_t serial) { #if VDBG - RLOGE("requestShutdown: serial %d", serial); + RLOGD("requestShutdown: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_SHUTDOWN); return Void(); @@ -2609,7 +2609,7 @@ Return RadioImpl::requestShutdown(int32_t serial) { Return RadioImpl::getRadioCapability(int32_t serial) { #if VDBG - RLOGE("getRadioCapability: serial %d", serial); + RLOGD("getRadioCapability: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_RADIO_CAPABILITY); return Void(); @@ -2617,7 +2617,7 @@ Return RadioImpl::getRadioCapability(int32_t serial) { Return RadioImpl::setRadioCapability(int32_t serial, const RadioCapability& rc) { #if VDBG - RLOGE("setRadioCapability: serial %d", serial); + RLOGD("setRadioCapability: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_RADIO_CAPABILITY); if (pRI == NULL) { @@ -2640,7 +2640,7 @@ Return RadioImpl::setRadioCapability(int32_t serial, const RadioCapability Return RadioImpl::startLceService(int32_t serial, int32_t reportInterval, bool pullMode) { #if VDBG - RLOGE("startLceService: serial %d", serial); + RLOGD("startLceService: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_START_LCE, 2, reportInterval, BOOL_TO_INT(pullMode)); @@ -2649,7 +2649,7 @@ Return RadioImpl::startLceService(int32_t serial, int32_t reportInterval, Return RadioImpl::stopLceService(int32_t serial) { #if VDBG - RLOGE("stopLceService: serial %d", serial); + RLOGD("stopLceService: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_STOP_LCE); return Void(); @@ -2657,7 +2657,7 @@ Return RadioImpl::stopLceService(int32_t serial) { Return RadioImpl::pullLceData(int32_t serial) { #if VDBG - RLOGE("pullLceData: serial %d", serial); + RLOGD("pullLceData: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_PULL_LCEDATA); return Void(); @@ -2665,7 +2665,7 @@ Return RadioImpl::pullLceData(int32_t serial) { Return RadioImpl::getModemActivityInfo(int32_t serial) { #if VDBG - RLOGE("getModemActivityInfo: serial %d", serial); + RLOGD("getModemActivityInfo: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_ACTIVITY_INFO); return Void(); @@ -2674,7 +2674,7 @@ Return RadioImpl::getModemActivityInfo(int32_t serial) { Return RadioImpl::setAllowedCarriers(int32_t serial, bool allAllowed, const CarrierRestrictions& carriers) { #if VDBG - RLOGE("setAllowedCarriers: serial %d", serial); + RLOGD("setAllowedCarriers: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_CARRIER_RESTRICTIONS); @@ -2738,7 +2738,7 @@ Return RadioImpl::setAllowedCarriers(int32_t serial, bool allAllowed, Return RadioImpl::getAllowedCarriers(int32_t serial) { #if VDBG - RLOGE("getAllowedCarriers: serial %d", serial); + RLOGD("getAllowedCarriers: serial %d", serial); #endif dispatchVoid(serial, mSlotId, RIL_REQUEST_GET_CARRIER_RESTRICTIONS); return Void(); @@ -2747,11 +2747,11 @@ Return RadioImpl::getAllowedCarriers(int32_t serial) { Return RadioImpl::sendDeviceState(int32_t serial, DeviceStateType deviceStateType, bool state) { #if VDBG - RLOGE("sendDeviceState: serial %d", serial); + RLOGD("sendDeviceState: serial %d", serial); #endif if (s_vendorFunctions->version < 15) { if (deviceStateType == DeviceStateType::LOW_DATA_EXPECTED) { - RLOGE("sendDeviceState: calling screen state %d", BOOL_TO_INT(!state)); + RLOGD("sendDeviceState: calling screen state %d", BOOL_TO_INT(!state)); dispatchInts(serial, mSlotId, RIL_REQUEST_SCREEN_STATE, 1, BOOL_TO_INT(!state)); } else { RequestInfo *pRI = android::addRequestToList(serial, mSlotId, @@ -2767,7 +2767,7 @@ Return RadioImpl::sendDeviceState(int32_t serial, DeviceStateType deviceSt Return RadioImpl::setIndicationFilter(int32_t serial, int32_t indicationFilter) { #if VDBG - RLOGE("setIndicationFilter: serial %d", serial); + RLOGD("setIndicationFilter: serial %d", serial); #endif if (s_vendorFunctions->version < 15) { RequestInfo *pRI = android::addRequestToList(serial, mSlotId, @@ -2781,7 +2781,7 @@ Return RadioImpl::setIndicationFilter(int32_t serial, int32_t indicationFi Return RadioImpl::setSimCardPower(int32_t serial, bool powerUp) { #if VDBG - RLOGE("setSimCardPower: serial %d", serial); + RLOGD("setSimCardPower: serial %d", serial); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_SIM_CARD_POWER, 1, BOOL_TO_INT(powerUp)); return Void(); @@ -2789,7 +2789,7 @@ Return RadioImpl::setSimCardPower(int32_t serial, bool powerUp) { Return RadioImpl::setSimCardPower_1_1(int32_t serial, const V1_1::CardPowerState state) { #if VDBG - RLOGE("setSimCardPower_1_1: serial %d state %d", serial, state); + RLOGD("setSimCardPower_1_1: serial %d state %d", serial, state); #endif dispatchInts(serial, mSlotId, RIL_REQUEST_SET_SIM_CARD_POWER, 1, state); return Void(); @@ -2798,7 +2798,7 @@ Return RadioImpl::setSimCardPower_1_1(int32_t serial, const V1_1::CardPowe Return RadioImpl::setCarrierInfoForImsiEncryption(int32_t serial, const V1_1::ImsiEncryptionInfo& data) { #if VDBG - RLOGE("setCarrierInfoForImsiEncryption: serial %d", serial); + RLOGD("setCarrierInfoForImsiEncryption: serial %d", serial); #endif RequestInfo *pRI = android::addRequestToList( serial, mSlotId, RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION); @@ -2831,7 +2831,7 @@ Return RadioImpl::setCarrierInfoForImsiEncryption(int32_t serial, Return RadioImpl::startKeepalive(int32_t serial, const V1_1::KeepaliveRequest& keepalive) { #if VDBG - RLOGE("%s(): %d", __FUNCTION__, serial); + RLOGD("%s(): %d", __FUNCTION__, serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_START_KEEPALIVE); if (pRI == NULL) { @@ -2880,7 +2880,7 @@ Return RadioImpl::startKeepalive(int32_t serial, const V1_1::KeepaliveRequ Return RadioImpl::stopKeepalive(int32_t serial, int32_t sessionHandle) { #if VDBG - RLOGE("%s(): %d", __FUNCTION__, serial); + RLOGD("%s(): %d", __FUNCTION__, serial); #endif RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_STOP_KEEPALIVE); if (pRI == NULL) { @@ -2900,7 +2900,7 @@ Return OemHookImpl::setResponseFunctions( const ::android::sp& oemHookResponseParam, const ::android::sp& oemHookIndicationParam) { #if VDBG - RLOGE("OemHookImpl::setResponseFunctions"); + RLOGD("OemHookImpl::setResponseFunctions"); #endif pthread_rwlock_t *radioServiceRwlockPtr = radio::getRadioServiceRwlock(mSlotId); @@ -2919,7 +2919,7 @@ Return OemHookImpl::setResponseFunctions( Return OemHookImpl::sendRequestRaw(int32_t serial, const hidl_vec& data) { #if VDBG - RLOGE("OemHookImpl::sendRequestRaw: serial %d", serial); + RLOGD("OemHookImpl::sendRequestRaw: serial %d", serial); #endif dispatchRaw(serial, mSlotId, RIL_REQUEST_OEM_HOOK_RAW, data); return Void(); @@ -2928,7 +2928,7 @@ Return OemHookImpl::sendRequestRaw(int32_t serial, const hidl_vec Return OemHookImpl::sendRequestStrings(int32_t serial, const hidl_vec& data) { #if VDBG - RLOGE("OemHookImpl::sendRequestStrings: serial %d", serial); + RLOGD("OemHookImpl::sendRequestStrings: serial %d", serial); #endif dispatchStrings(serial, mSlotId, RIL_REQUEST_OEM_HOOK_STRINGS, data); return Void(); @@ -3022,7 +3022,7 @@ int radio::getIccCardStatusResponse(int slotId, cardStatus.applications.resize(p_cur->num_applications); AppStatus *appStatus = cardStatus.applications.data(); #if VDBG - RLOGE("getIccCardStatusResponse: num_applications %d", p_cur->num_applications); + RLOGD("getIccCardStatusResponse: num_applications %d", p_cur->num_applications); #endif for (int i = 0; i < p_cur->num_applications; i++) { appStatus[i].appType = (AppType) rilAppStatus[i].app_type; @@ -3051,7 +3051,7 @@ int radio::supplyIccPinForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("supplyIccPinForAppResponse: serial %d", serial); + RLOGD("supplyIccPinForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3073,7 +3073,7 @@ int radio::supplyIccPukForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("supplyIccPukForAppResponse: serial %d", serial); + RLOGD("supplyIccPukForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3094,7 +3094,7 @@ int radio::supplyIccPin2ForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("supplyIccPin2ForAppResponse: serial %d", serial); + RLOGD("supplyIccPin2ForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3115,7 +3115,7 @@ int radio::supplyIccPuk2ForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("supplyIccPuk2ForAppResponse: serial %d", serial); + RLOGD("supplyIccPuk2ForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3136,7 +3136,7 @@ int radio::changeIccPinForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("changeIccPinForAppResponse: serial %d", serial); + RLOGD("changeIccPinForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3157,7 +3157,7 @@ int radio::changeIccPin2ForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("changeIccPin2ForAppResponse: serial %d", serial); + RLOGD("changeIccPin2ForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3178,7 +3178,7 @@ int radio::supplyNetworkDepersonalizationResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("supplyNetworkDepersonalizationResponse: serial %d", serial); + RLOGD("supplyNetworkDepersonalizationResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3199,7 +3199,7 @@ int radio::getCurrentCallsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getCurrentCallsResponse: serial %d", serial); + RLOGD("getCurrentCallsResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3257,7 +3257,7 @@ int radio::dialResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("dialResponse: serial %d", serial); + RLOGD("dialResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3276,7 +3276,7 @@ int radio::getIMSIForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getIMSIForAppResponse: serial %d", serial); + RLOGD("getIMSIForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3297,7 +3297,7 @@ int radio::hangupConnectionResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("hangupConnectionResponse: serial %d", serial); + RLOGD("hangupConnectionResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3318,7 +3318,7 @@ int radio::hangupWaitingOrBackgroundResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("hangupWaitingOrBackgroundResponse: serial %d", serial); + RLOGD("hangupWaitingOrBackgroundResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3340,7 +3340,7 @@ int radio::hangupForegroundResumeBackgroundResponse(int slotId, int responseType RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("hangupWaitingOrBackgroundResponse: serial %d", serial); + RLOGD("hangupWaitingOrBackgroundResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3362,7 +3362,7 @@ int radio::switchWaitingOrHoldingAndActiveResponse(int slotId, int responseType, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("switchWaitingOrHoldingAndActiveResponse: serial %d", serial); + RLOGD("switchWaitingOrHoldingAndActiveResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3383,7 +3383,7 @@ int radio::switchWaitingOrHoldingAndActiveResponse(int slotId, int responseType, int radio::conferenceResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("conferenceResponse: serial %d", serial); + RLOGD("conferenceResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3403,7 +3403,7 @@ int radio::conferenceResponse(int slotId, int responseType, int radio::rejectCallResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("rejectCallResponse: serial %d", serial); + RLOGD("rejectCallResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3424,7 +3424,7 @@ int radio::getLastCallFailCauseResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getLastCallFailCauseResponse: serial %d", serial); + RLOGD("getLastCallFailCauseResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3463,7 +3463,7 @@ int radio::getSignalStrengthResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getSignalStrengthResponse: serial %d", serial); + RLOGD("getSignalStrengthResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3782,7 +3782,7 @@ int radio::getVoiceRegistrationStateResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getVoiceRegistrationStateResponse: serial %d", serial); + RLOGD("getVoiceRegistrationStateResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3846,7 +3846,7 @@ int radio::getDataRegistrationStateResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getDataRegistrationStateResponse: serial %d", serial); + RLOGD("getDataRegistrationStateResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3902,7 +3902,7 @@ int radio::getOperatorResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getOperatorResponse: serial %d", serial); + RLOGD("getOperatorResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -3936,7 +3936,7 @@ int radio::getOperatorResponse(int slotId, int radio::setRadioPowerResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { - RLOGE("setRadioPowerResponse: serial %d", serial); + RLOGD("setRadioPowerResponse: serial %d", serial); if (radioService[slotId]->mRadioResponse != NULL) { RadioResponseInfo responseInfo = {}; @@ -3956,7 +3956,7 @@ int radio::sendDtmfResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendDtmfResponse: serial %d", serial); + RLOGD("sendDtmfResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4000,7 +4000,7 @@ int radio::sendSmsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendSmsResponse: serial %d", serial); + RLOGD("sendSmsResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4022,7 +4022,7 @@ int radio::sendSMSExpectMoreResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendSMSExpectMoreResponse: serial %d", serial); + RLOGD("sendSMSExpectMoreResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4044,7 +4044,7 @@ int radio::setupDataCallResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setupDataCallResponse: serial %d", serial); + RLOGD("setupDataCallResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4107,7 +4107,7 @@ int radio::iccIOForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("iccIOForAppResponse: serial %d", serial); + RLOGD("iccIOForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4129,7 +4129,7 @@ int radio::sendUssdResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendUssdResponse: serial %d", serial); + RLOGD("sendUssdResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4150,7 +4150,7 @@ int radio::cancelPendingUssdResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("cancelPendingUssdResponse: serial %d", serial); + RLOGD("cancelPendingUssdResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4171,7 +4171,7 @@ int radio::getClirResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getClirResponse: serial %d", serial); + RLOGD("getClirResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4201,7 +4201,7 @@ int radio::setClirResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setClirResponse: serial %d", serial); + RLOGD("setClirResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4221,7 +4221,7 @@ int radio::getCallForwardStatusResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getCallForwardStatusResponse: serial %d", serial); + RLOGD("getCallForwardStatusResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4262,7 +4262,7 @@ int radio::setCallForwardResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setCallForwardResponse: serial %d", serial); + RLOGD("setCallForwardResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4282,7 +4282,7 @@ int radio::getCallWaitingResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getCallWaitingResponse: serial %d", serial); + RLOGD("getCallWaitingResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4313,7 +4313,7 @@ int radio::setCallWaitingResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setCallWaitingResponse: serial %d", serial); + RLOGD("setCallWaitingResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4333,7 +4333,7 @@ int radio::acknowledgeLastIncomingGsmSmsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("acknowledgeLastIncomingGsmSmsResponse: serial %d", serial); + RLOGD("acknowledgeLastIncomingGsmSmsResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4355,7 +4355,7 @@ int radio::acceptCallResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("acceptCallResponse: serial %d", serial); + RLOGD("acceptCallResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4376,7 +4376,7 @@ int radio::deactivateDataCallResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("deactivateDataCallResponse: serial %d", serial); + RLOGD("deactivateDataCallResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4397,7 +4397,7 @@ int radio::getFacilityLockForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getFacilityLockForAppResponse: serial %d", serial); + RLOGD("getFacilityLockForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4418,7 +4418,7 @@ int radio::setFacilityLockForAppResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setFacilityLockForAppResponse: serial %d", serial); + RLOGD("setFacilityLockForAppResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4440,7 +4440,7 @@ int radio::setBarringPasswordResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("acceptCallResponse: serial %d", serial); + RLOGD("acceptCallResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4461,7 +4461,7 @@ int radio::getNetworkSelectionModeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getNetworkSelectionModeResponse: serial %d", serial); + RLOGD("getNetworkSelectionModeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4492,7 +4492,7 @@ int radio::setNetworkSelectionModeAutomaticResponse(int slotId, int responseType RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setNetworkSelectionModeAutomaticResponse: serial %d", serial); + RLOGD("setNetworkSelectionModeAutomaticResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4514,7 +4514,7 @@ int radio::setNetworkSelectionModeManualResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setNetworkSelectionModeManualResponse: serial %d", serial); + RLOGD("setNetworkSelectionModeManualResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4550,7 +4550,7 @@ int radio::getAvailableNetworksResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getAvailableNetworksResponse: serial %d", serial); + RLOGD("getAvailableNetworksResponse: serial %d", serial); #endif int qanRespStrings = property_get_int32("ro.ril.telephony.qan_resp_strings", 4); @@ -4594,7 +4594,7 @@ int radio::startDtmfResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("startDtmfResponse: serial %d", serial); + RLOGD("startDtmfResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4614,7 +4614,7 @@ int radio::stopDtmfResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("stopDtmfResponse: serial %d", serial); + RLOGD("stopDtmfResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4634,7 +4634,7 @@ int radio::getBasebandVersionResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getBasebandVersionResponse: serial %d", serial); + RLOGD("getBasebandVersionResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4655,7 +4655,7 @@ int radio::separateConnectionResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("separateConnectionResponse: serial %d", serial); + RLOGD("separateConnectionResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4676,7 +4676,7 @@ int radio::setMuteResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setMuteResponse: serial %d", serial); + RLOGD("setMuteResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4696,7 +4696,7 @@ int radio::getMuteResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getMuteResponse: serial %d", serial); + RLOGD("getMuteResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4724,7 +4724,7 @@ int radio::getClipResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getClipResponse: serial %d", serial); + RLOGD("getClipResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4744,7 +4744,7 @@ int radio::getDataCallListResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getDataCallListResponse: serial %d", serial); + RLOGD("getDataCallListResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4776,7 +4776,7 @@ int radio::setSuppServiceNotificationsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setSuppServiceNotificationsResponse: serial %d", serial); + RLOGD("setSuppServiceNotificationsResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4798,7 +4798,7 @@ int radio::deleteSmsOnSimResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("deleteSmsOnSimResponse: serial %d", serial); + RLOGD("deleteSmsOnSimResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4818,7 +4818,7 @@ int radio::setBandModeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setBandModeResponse: serial %d", serial); + RLOGD("setBandModeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4838,7 +4838,7 @@ int radio::writeSmsToSimResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("writeSmsToSimResponse: serial %d", serial); + RLOGD("writeSmsToSimResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4858,7 +4858,7 @@ int radio::getAvailableBandModesResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getAvailableBandModesResponse: serial %d", serial); + RLOGD("getAvailableBandModesResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4892,7 +4892,7 @@ int radio::sendEnvelopeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendEnvelopeResponse: serial %d", serial); + RLOGD("sendEnvelopeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4913,7 +4913,7 @@ int radio::sendTerminalResponseToSimResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendTerminalResponseToSimResponse: serial %d", serial); + RLOGD("sendTerminalResponseToSimResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4936,7 +4936,7 @@ int radio::handleStkCallSetupRequestFromSimResponse(int slotId, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("handleStkCallSetupRequestFromSimResponse: serial %d", serial); + RLOGD("handleStkCallSetupRequestFromSimResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4958,7 +4958,7 @@ int radio::explicitCallTransferResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("explicitCallTransferResponse: serial %d", serial); + RLOGD("explicitCallTransferResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -4979,7 +4979,7 @@ int radio::setPreferredNetworkTypeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setPreferredNetworkTypeResponse: serial %d", serial); + RLOGD("setPreferredNetworkTypeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5002,7 +5002,7 @@ int radio::getPreferredNetworkTypeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getPreferredNetworkTypeResponse: serial %d", serial); + RLOGD("getPreferredNetworkTypeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5024,7 +5024,7 @@ int radio::getNeighboringCidsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getNeighboringCidsResponse: serial %d", serial); + RLOGD("getNeighboringCidsResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5062,7 +5062,7 @@ int radio::setLocationUpdatesResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setLocationUpdatesResponse: serial %d", serial); + RLOGD("setLocationUpdatesResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5083,7 +5083,7 @@ int radio::setCdmaSubscriptionSourceResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setCdmaSubscriptionSourceResponse: serial %d", serial); + RLOGD("setCdmaSubscriptionSourceResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5105,7 +5105,7 @@ int radio::setCdmaRoamingPreferenceResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setCdmaRoamingPreferenceResponse: serial %d", serial); + RLOGD("setCdmaRoamingPreferenceResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5127,7 +5127,7 @@ int radio::getCdmaRoamingPreferenceResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getCdmaRoamingPreferenceResponse: serial %d", serial); + RLOGD("getCdmaRoamingPreferenceResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5149,7 +5149,7 @@ int radio::setTTYModeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setTTYModeResponse: serial %d", serial); + RLOGD("setTTYModeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5169,7 +5169,7 @@ int radio::getTTYModeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getTTYModeResponse: serial %d", serial); + RLOGD("getTTYModeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5190,7 +5190,7 @@ int radio::setPreferredVoicePrivacyResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setPreferredVoicePrivacyResponse: serial %d", serial); + RLOGD("setPreferredVoicePrivacyResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5212,7 +5212,7 @@ int radio::getPreferredVoicePrivacyResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getPreferredVoicePrivacyResponse: serial %d", serial); + RLOGD("getPreferredVoicePrivacyResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5243,7 +5243,7 @@ int radio::sendCDMAFeatureCodeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendCDMAFeatureCodeResponse: serial %d", serial); + RLOGD("sendCDMAFeatureCodeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5264,7 +5264,7 @@ int radio::sendBurstDtmfResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendBurstDtmfResponse: serial %d", serial); + RLOGD("sendBurstDtmfResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5284,7 +5284,7 @@ int radio::sendCdmaSmsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendCdmaSmsResponse: serial %d", serial); + RLOGD("sendCdmaSmsResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5306,7 +5306,7 @@ int radio::acknowledgeLastIncomingCdmaSmsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("acknowledgeLastIncomingCdmaSmsResponse: serial %d", serial); + RLOGD("acknowledgeLastIncomingCdmaSmsResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5328,7 +5328,7 @@ int radio::getGsmBroadcastConfigResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getGsmBroadcastConfigResponse: serial %d", serial); + RLOGD("getGsmBroadcastConfigResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5370,7 +5370,7 @@ int radio::setGsmBroadcastConfigResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setGsmBroadcastConfigResponse: serial %d", serial); + RLOGD("setGsmBroadcastConfigResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5391,7 +5391,7 @@ int radio::setGsmBroadcastActivationResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setGsmBroadcastActivationResponse: serial %d", serial); + RLOGD("setGsmBroadcastActivationResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5413,7 +5413,7 @@ int radio::getCdmaBroadcastConfigResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getCdmaBroadcastConfigResponse: serial %d", serial); + RLOGD("getCdmaBroadcastConfigResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5453,7 +5453,7 @@ int radio::setCdmaBroadcastConfigResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setCdmaBroadcastConfigResponse: serial %d", serial); + RLOGD("setCdmaBroadcastConfigResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5475,7 +5475,7 @@ int radio::setCdmaBroadcastActivationResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setCdmaBroadcastActivationResponse: serial %d", serial); + RLOGD("setCdmaBroadcastActivationResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5497,7 +5497,7 @@ int radio::getCDMASubscriptionResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getCDMASubscriptionResponse: serial %d", serial); + RLOGD("getCDMASubscriptionResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5537,7 +5537,7 @@ int radio::writeSmsToRuimResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("writeSmsToRuimResponse: serial %d", serial); + RLOGD("writeSmsToRuimResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5557,7 +5557,7 @@ int radio::deleteSmsOnRuimResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("deleteSmsOnRuimResponse: serial %d", serial); + RLOGD("deleteSmsOnRuimResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5577,7 +5577,7 @@ int radio::getDeviceIdentityResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getDeviceIdentityResponse: serial %d", serial); + RLOGD("getDeviceIdentityResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5615,7 +5615,7 @@ int radio::exitEmergencyCallbackModeResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("exitEmergencyCallbackModeResponse: serial %d", serial); + RLOGD("exitEmergencyCallbackModeResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5637,7 +5637,7 @@ int radio::getSmscAddressResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getSmscAddressResponse: serial %d", serial); + RLOGD("getSmscAddressResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5658,7 +5658,7 @@ int radio::setSmscAddressResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setSmscAddressResponse: serial %d", serial); + RLOGD("setSmscAddressResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5678,7 +5678,7 @@ int radio::reportSmsMemoryStatusResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("reportSmsMemoryStatusResponse: serial %d", serial); + RLOGD("reportSmsMemoryStatusResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5699,7 +5699,7 @@ int radio::reportStkServiceIsRunningResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("reportStkServiceIsRunningResponse: serial %d", serial); + RLOGD("reportStkServiceIsRunningResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5720,7 +5720,7 @@ int radio::getCdmaSubscriptionSourceResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getCdmaSubscriptionSourceResponse: serial %d", serial); + RLOGD("getCdmaSubscriptionSourceResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5742,7 +5742,7 @@ int radio::requestIsimAuthenticationResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("requestIsimAuthenticationResponse: serial %d", serial); + RLOGD("requestIsimAuthenticationResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5766,7 +5766,7 @@ int radio::acknowledgeIncomingGsmSmsWithPduResponse(int slotId, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("acknowledgeIncomingGsmSmsWithPduResponse: serial %d", serial); + RLOGD("acknowledgeIncomingGsmSmsWithPduResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5788,7 +5788,7 @@ int radio::sendEnvelopeWithStatusResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendEnvelopeWithStatusResponse: serial %d", serial); + RLOGD("sendEnvelopeWithStatusResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5812,7 +5812,7 @@ int radio::getVoiceRadioTechnologyResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getVoiceRadioTechnologyResponse: serial %d", serial); + RLOGD("getVoiceRadioTechnologyResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5835,7 +5835,7 @@ int radio::getCellInfoListResponse(int slotId, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getCellInfoListResponse: serial %d", serial); + RLOGD("getCellInfoListResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5866,7 +5866,7 @@ int radio::setCellInfoListRateResponse(int slotId, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setCellInfoListRateResponse: serial %d", serial); + RLOGD("setCellInfoListRateResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5887,7 +5887,7 @@ int radio::setInitialAttachApnResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setInitialAttachApnResponse: serial %d", serial); + RLOGD("setInitialAttachApnResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5908,7 +5908,7 @@ int radio::getImsRegistrationStateResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getImsRegistrationStateResponse: serial %d", serial); + RLOGD("getImsRegistrationStateResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5941,7 +5941,7 @@ int radio::sendImsSmsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendImsSmsResponse: serial %d", serial); + RLOGD("sendImsSmsResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5963,7 +5963,7 @@ int radio::iccTransmitApduBasicChannelResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("iccTransmitApduBasicChannelResponse: serial %d", serial); + RLOGD("iccTransmitApduBasicChannelResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -5987,7 +5987,7 @@ int radio::iccOpenLogicalChannelResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("iccOpenLogicalChannelResponse: serial %d", serial); + RLOGD("iccOpenLogicalChannelResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6025,7 +6025,7 @@ int radio::iccCloseLogicalChannelResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("iccCloseLogicalChannelResponse: serial %d", serial); + RLOGD("iccCloseLogicalChannelResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6047,7 +6047,7 @@ int radio::iccTransmitApduLogicalChannelResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("iccTransmitApduLogicalChannelResponse: serial %d", serial); + RLOGD("iccTransmitApduLogicalChannelResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6071,7 +6071,7 @@ int radio::nvReadItemResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("nvReadItemResponse: serial %d", serial); + RLOGD("nvReadItemResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6092,7 +6092,7 @@ int radio::nvWriteItemResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("nvWriteItemResponse: serial %d", serial); + RLOGD("nvWriteItemResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6112,7 +6112,7 @@ int radio::nvWriteCdmaPrlResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("nvWriteCdmaPrlResponse: serial %d", serial); + RLOGD("nvWriteCdmaPrlResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6132,7 +6132,7 @@ int radio::nvResetConfigResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("nvResetConfigResponse: serial %d", serial); + RLOGD("nvResetConfigResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6152,7 +6152,7 @@ int radio::setUiccSubscriptionResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setUiccSubscriptionResponse: serial %d", serial); + RLOGD("setUiccSubscriptionResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6173,7 +6173,7 @@ int radio::setDataAllowedResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setDataAllowedResponse: serial %d", serial); + RLOGD("setDataAllowedResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6193,7 +6193,7 @@ int radio::getHardwareConfigResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getHardwareConfigResponse: serial %d", serial); + RLOGD("getHardwareConfigResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6223,7 +6223,7 @@ int radio::requestIccSimAuthenticationResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("requestIccSimAuthenticationResponse: serial %d", serial); + RLOGD("requestIccSimAuthenticationResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6247,7 +6247,7 @@ int radio::setDataProfileResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setDataProfileResponse: serial %d", serial); + RLOGD("setDataProfileResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6267,7 +6267,7 @@ int radio::requestShutdownResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("requestShutdownResponse: serial %d", serial); + RLOGD("requestShutdownResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6300,7 +6300,7 @@ int radio::getRadioCapabilityResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getRadioCapabilityResponse: serial %d", serial); + RLOGD("getRadioCapabilityResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6322,7 +6322,7 @@ int radio::setRadioCapabilityResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setRadioCapabilityResponse: serial %d", serial); + RLOGD("setRadioCapabilityResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6360,7 +6360,7 @@ int radio::startLceServiceResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("startLceServiceResponse: serial %d", serial); + RLOGD("startLceServiceResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6383,7 +6383,7 @@ int radio::stopLceServiceResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("stopLceServiceResponse: serial %d", serial); + RLOGD("stopLceServiceResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6406,7 +6406,7 @@ int radio::pullLceDataResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("pullLceDataResponse: serial %d", serial); + RLOGD("pullLceDataResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6435,7 +6435,7 @@ int radio::getModemActivityInfoResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getModemActivityInfoResponse: serial %d", serial); + RLOGD("getModemActivityInfoResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6471,7 +6471,7 @@ int radio::setAllowedCarriersResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setAllowedCarriersResponse: serial %d", serial); + RLOGD("setAllowedCarriersResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6493,7 +6493,7 @@ int radio::getAllowedCarriersResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("getAllowedCarriersResponse: serial %d", serial); + RLOGD("getAllowedCarriersResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6503,7 +6503,7 @@ int radio::getAllowedCarriersResponse(int slotId, bool allAllowed = true; if (response == NULL) { #if VDBG - RLOGE("getAllowedCarriersResponse response is NULL: all allowed"); + RLOGD("getAllowedCarriersResponse response is NULL: all allowed"); #endif carrierInfo.allowedCarriers.resize(0); carrierInfo.excludedCarriers.resize(0); @@ -6553,7 +6553,7 @@ int radio::sendDeviceStateResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responselen) { #if VDBG - RLOGE("sendDeviceStateResponse: serial %d", serial); + RLOGD("sendDeviceStateResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6572,7 +6572,7 @@ int radio::sendDeviceStateResponse(int slotId, int radio::setCarrierInfoForImsiEncryptionResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { - RLOGE("setCarrierInfoForImsiEncryptionResponse: serial %d", serial); + RLOGD("setCarrierInfoForImsiEncryptionResponse: serial %d", serial); if (radioService[slotId]->mRadioResponseV1_1 != NULL) { RadioResponseInfo responseInfo = {}; populateResponseInfo(responseInfo, serial, responseType, e); @@ -6590,7 +6590,7 @@ int radio::setIndicationFilterResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responselen) { #if VDBG - RLOGE("setIndicationFilterResponse: serial %d", serial); + RLOGD("setIndicationFilterResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL) { @@ -6611,7 +6611,7 @@ int radio::setSimCardPowerResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("setSimCardPowerResponse: serial %d", serial); + RLOGD("setSimCardPowerResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponse != NULL @@ -6623,7 +6623,7 @@ int radio::setSimCardPowerResponse(int slotId, setSimCardPowerResponse_1_1(responseInfo); radioService[slotId]->checkReturnStatus(retStatus); } else { - RLOGE("setSimCardPowerResponse: radioService[%d]->mRadioResponseV1_1 == NULL", + RLOGD("setSimCardPowerResponse: radioService[%d]->mRadioResponseV1_1 == NULL", slotId); Return retStatus = radioService[slotId]->mRadioResponse->setSimCardPowerResponse(responseInfo); @@ -6639,7 +6639,7 @@ int radio::setSimCardPowerResponse(int slotId, int radio::startNetworkScanResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("startNetworkScanResponse: serial %d", serial); + RLOGD("startNetworkScanResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponseV1_1 != NULL) { @@ -6658,7 +6658,7 @@ int radio::startNetworkScanResponse(int slotId, int responseType, int serial, RI int radio::stopNetworkScanResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("stopNetworkScanResponse: serial %d", serial); + RLOGD("stopNetworkScanResponse: serial %d", serial); #endif if (radioService[slotId]->mRadioResponseV1_1 != NULL) { @@ -6683,7 +6683,7 @@ void convertRilKeepaliveStatusToHal(const RIL_KeepaliveStatus *rilStatus, int radio::startKeepaliveResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("%s(): %d", __FUNCTION__, serial); + RLOGD("%s(): %d", __FUNCTION__, serial); #endif RadioResponseInfo responseInfo = {}; populateResponseInfo(responseInfo, serial, responseType, e); @@ -6711,7 +6711,7 @@ int radio::startKeepaliveResponse(int slotId, int responseType, int serial, RIL_ int radio::stopKeepaliveResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("%s(): %d", __FUNCTION__, serial); + RLOGD("%s(): %d", __FUNCTION__, serial); #endif RadioResponseInfo responseInfo = {}; populateResponseInfo(responseInfo, serial, responseType, e); @@ -6732,7 +6732,7 @@ int radio::sendRequestRawResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendRequestRawResponse: serial %d", serial); + RLOGD("sendRequestRawResponse: serial %d", serial); #endif if (oemHookService[slotId]->mOemHookResponse != NULL) { @@ -6761,7 +6761,7 @@ int radio::sendRequestStringsResponse(int slotId, int responseType, int serial, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("sendRequestStringsResponse: serial %d", serial); + RLOGD("sendRequestStringsResponse: serial %d", serial); #endif if (oemHookService[slotId]->mOemHookResponse != NULL) { @@ -6809,7 +6809,7 @@ int radio::radioStateChangedInd(int slotId, if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { RadioState radioState = (RadioState) CALL_ONSTATEREQUEST(slotId); - RLOGE("radioStateChangedInd: radioState %d", radioState); + RLOGD("radioStateChangedInd: radioState %d", radioState); Return retStatus = radioService[slotId]->mRadioIndication->radioStateChanged( convertIntToRadioIndicationType(indicationType), radioState); radioService[slotId]->checkReturnStatus(retStatus); @@ -6825,7 +6825,7 @@ int radio::callStateChangedInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("callStateChangedInd"); + RLOGD("callStateChangedInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->callStateChanged( convertIntToRadioIndicationType(indicationType)); @@ -6842,7 +6842,7 @@ int radio::networkStateChangedInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("networkStateChangedInd"); + RLOGD("networkStateChangedInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->networkStateChanged( convertIntToRadioIndicationType(indicationType)); @@ -6908,7 +6908,7 @@ int radio::newSmsInd(int slotId, int indicationType, hidl_vec pdu; pdu.setToExternal(bytes, responseLen/2); #if VDBG - RLOGE("newSmsInd"); + RLOGD("newSmsInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->newSms( convertIntToRadioIndicationType(indicationType), pdu); @@ -6939,7 +6939,7 @@ int radio::newSmsStatusReportInd(int slotId, hidl_vec pdu; pdu.setToExternal(bytes, responseLen/2); #if VDBG - RLOGE("newSmsStatusReportInd"); + RLOGD("newSmsStatusReportInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->newSmsStatusReport( convertIntToRadioIndicationType(indicationType), pdu); @@ -6961,7 +6961,7 @@ int radio::newSmsOnSimInd(int slotId, int indicationType, } int32_t recordNumber = ((int32_t *) response)[0]; #if VDBG - RLOGE("newSmsOnSimInd: slotIndex %d", recordNumber); + RLOGD("newSmsOnSimInd: slotIndex %d", recordNumber); #endif Return retStatus = radioService[slotId]->mRadioIndication->newSmsOnSim( convertIntToRadioIndicationType(indicationType), recordNumber); @@ -6985,7 +6985,7 @@ int radio::onUssdInd(int slotId, int indicationType, hidl_string msg = convertCharPtrToHidlString(strings[1]); UssdModeType modeType = (UssdModeType) atoi(mode); #if VDBG - RLOGE("onUssdInd: mode %s", mode); + RLOGD("onUssdInd: mode %s", mode); #endif Return retStatus = radioService[slotId]->mRadioIndication->onUssd( convertIntToRadioIndicationType(indicationType), modeType, msg); @@ -7025,7 +7025,7 @@ int radio::nitzTimeReceivedInd(int slotId, nitzTime = convertCharPtrToHidlString(resp); memsetAndFreeStrings(1, resp); #if VDBG - RLOGE("nitzTimeReceivedInd: nitzTime %s receivedTime %" PRId64, nitzTime.c_str(), + RLOGD("nitzTimeReceivedInd: nitzTime %s receivedTime %" PRId64, nitzTime.c_str(), timeReceived); #endif Return retStatus = radioService[slotId]->mRadioIndication->nitzTimeReceived( @@ -7148,7 +7148,7 @@ int radio::currentSignalStrengthInd(int slotId, convertRilSignalStrengthToHal(response, responseLen, signalStrength); #if VDBG - RLOGE("currentSignalStrengthInd"); + RLOGD("currentSignalStrengthInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->currentSignalStrength( convertIntToRadioIndicationType(indicationType), signalStrength); @@ -7248,7 +7248,7 @@ int radio::dataCallListChangedInd(int slotId, hidl_vec dcList; convertRilDataCallListToHal(response, responseLen, dcList); #if VDBG - RLOGE("dataCallListChangedInd"); + RLOGD("dataCallListChangedInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->dataCallListChanged( convertIntToRadioIndicationType(indicationType), dcList); @@ -7277,7 +7277,7 @@ int radio::suppSvcNotifyInd(int slotId, int indicationType, suppSvc.number = convertCharPtrToHidlString(ssn->number); #if VDBG - RLOGE("suppSvcNotifyInd: isMT %d code %d index %d type %d", + RLOGD("suppSvcNotifyInd: isMT %d code %d index %d type %d", suppSvc.isMT, suppSvc.code, suppSvc.index, suppSvc.type); #endif Return retStatus = radioService[slotId]->mRadioIndication->suppSvcNotify( @@ -7294,7 +7294,7 @@ int radio::stkSessionEndInd(int slotId, int indicationType, int token, RIL_Errno e, void *response, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("stkSessionEndInd"); + RLOGD("stkSessionEndInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->stkSessionEnd( convertIntToRadioIndicationType(indicationType)); @@ -7315,7 +7315,7 @@ int radio::stkProactiveCommandInd(int slotId, return 0; } #if VDBG - RLOGE("stkProactiveCommandInd"); + RLOGD("stkProactiveCommandInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->stkProactiveCommand( convertIntToRadioIndicationType(indicationType), @@ -7336,7 +7336,7 @@ int radio::stkEventNotifyInd(int slotId, int indicationType, return 0; } #if VDBG - RLOGE("stkEventNotifyInd"); + RLOGD("stkEventNotifyInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->stkEventNotify( convertIntToRadioIndicationType(indicationType), @@ -7358,7 +7358,7 @@ int radio::stkCallSetupInd(int slotId, int indicationType, } int32_t timeout = ((int32_t *) response)[0]; #if VDBG - RLOGE("stkCallSetupInd: timeout %d", timeout); + RLOGD("stkCallSetupInd: timeout %d", timeout); #endif Return retStatus = radioService[slotId]->mRadioIndication->stkCallSetup( convertIntToRadioIndicationType(indicationType), timeout); @@ -7375,7 +7375,7 @@ int radio::simSmsStorageFullInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("simSmsStorageFullInd"); + RLOGD("simSmsStorageFullInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->simSmsStorageFull( convertIntToRadioIndicationType(indicationType)); @@ -7403,7 +7403,7 @@ int radio::simRefreshInd(int slotId, int indicationType, refreshResult.aid = convertCharPtrToHidlString(simRefreshResponse->aid); #if VDBG - RLOGE("simRefreshInd: type %d efId %d", refreshResult.type, refreshResult.efId); + RLOGD("simRefreshInd: type %d efId %d", refreshResult.type, refreshResult.efId); #endif Return retStatus = radioService[slotId]->mRadioIndication->simRefresh( convertIntToRadioIndicationType(indicationType), refreshResult); @@ -7440,7 +7440,7 @@ int radio::callRingInd(int slotId, int indicationType, } #if VDBG - RLOGE("callRingInd: isGsm %d", isGsm); + RLOGD("callRingInd: isGsm %d", isGsm); #endif Return retStatus = radioService[slotId]->mRadioIndication->callRing( convertIntToRadioIndicationType(indicationType), isGsm, record); @@ -7457,7 +7457,7 @@ int radio::simStatusChangedInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("simStatusChangedInd"); + RLOGD("simStatusChangedInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->simStatusChanged( convertIntToRadioIndicationType(indicationType)); @@ -7505,7 +7505,7 @@ int radio::cdmaNewSmsInd(int slotId, int indicationType, msg.bearerData.setToExternal(rilMsg->aBearerData, digitLimit); #if VDBG - RLOGE("cdmaNewSmsInd"); + RLOGD("cdmaNewSmsInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->cdmaNewSms( convertIntToRadioIndicationType(indicationType), msg); @@ -7529,7 +7529,7 @@ int radio::newBroadcastSmsInd(int slotId, hidl_vec data; data.setToExternal((uint8_t *) response, responseLen); #if VDBG - RLOGE("newBroadcastSmsInd"); + RLOGD("newBroadcastSmsInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->newBroadcastSms( convertIntToRadioIndicationType(indicationType), data); @@ -7546,7 +7546,7 @@ int radio::cdmaRuimSmsStorageFullInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("cdmaRuimSmsStorageFullInd"); + RLOGD("cdmaRuimSmsStorageFullInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->cdmaRuimSmsStorageFull( convertIntToRadioIndicationType(indicationType)); @@ -7569,7 +7569,7 @@ int radio::restrictedStateChangedInd(int slotId, } int32_t state = ((int32_t *) response)[0]; #if VDBG - RLOGE("restrictedStateChangedInd: state %d", state); + RLOGD("restrictedStateChangedInd: state %d", state); #endif Return retStatus = radioService[slotId]->mRadioIndication->restrictedStateChanged( convertIntToRadioIndicationType(indicationType), (PhoneRestrictedState) state); @@ -7587,7 +7587,7 @@ int radio::enterEmergencyCallbackModeInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("enterEmergencyCallbackModeInd"); + RLOGD("enterEmergencyCallbackModeInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->enterEmergencyCallbackMode( convertIntToRadioIndicationType(indicationType)); @@ -7621,7 +7621,7 @@ int radio::cdmaCallWaitingInd(int slotId, callWaitingRecord.numberPlan = (CdmaCallWaitingNumberPlan) callWaitingRil->number_plan; #if VDBG - RLOGE("cdmaCallWaitingInd"); + RLOGD("cdmaCallWaitingInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->cdmaCallWaiting( convertIntToRadioIndicationType(indicationType), callWaitingRecord); @@ -7643,7 +7643,7 @@ int radio::cdmaOtaProvisionStatusInd(int slotId, } int32_t status = ((int32_t *) response)[0]; #if VDBG - RLOGE("cdmaOtaProvisionStatusInd: status %d", status); + RLOGD("cdmaOtaProvisionStatusInd: status %d", status); #endif Return retStatus = radioService[slotId]->mRadioIndication->cdmaOtaProvisionStatus( convertIntToRadioIndicationType(indicationType), (CdmaOtaProvisionStatus) status); @@ -7834,7 +7834,7 @@ int radio::cdmaInfoRecInd(int slotId, } #if VDBG - RLOGE("cdmaInfoRecInd"); + RLOGD("cdmaInfoRecInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->cdmaInfoRec( convertIntToRadioIndicationType(indicationType), records); @@ -7856,7 +7856,7 @@ int radio::indicateRingbackToneInd(int slotId, } bool start = ((int32_t *) response)[0]; #if VDBG - RLOGE("indicateRingbackToneInd: start %d", start); + RLOGD("indicateRingbackToneInd: start %d", start); #endif Return retStatus = radioService[slotId]->mRadioIndication->indicateRingbackTone( convertIntToRadioIndicationType(indicationType), start); @@ -7873,7 +7873,7 @@ int radio::resendIncallMuteInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("resendIncallMuteInd"); + RLOGD("resendIncallMuteInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->resendIncallMute( convertIntToRadioIndicationType(indicationType)); @@ -7895,7 +7895,7 @@ int radio::cdmaSubscriptionSourceChangedInd(int slotId, } int32_t cdmaSource = ((int32_t *) response)[0]; #if VDBG - RLOGE("cdmaSubscriptionSourceChangedInd: cdmaSource %d", cdmaSource); + RLOGD("cdmaSubscriptionSourceChangedInd: cdmaSource %d", cdmaSource); #endif Return retStatus = radioService[slotId]->mRadioIndication-> cdmaSubscriptionSourceChanged(convertIntToRadioIndicationType(indicationType), @@ -7919,7 +7919,7 @@ int radio::cdmaPrlChangedInd(int slotId, } int32_t version = ((int32_t *) response)[0]; #if VDBG - RLOGE("cdmaPrlChangedInd: version %d", version); + RLOGD("cdmaPrlChangedInd: version %d", version); #endif Return retStatus = radioService[slotId]->mRadioIndication->cdmaPrlChanged( convertIntToRadioIndicationType(indicationType), version); @@ -7936,7 +7936,7 @@ int radio::exitEmergencyCallbackModeInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("exitEmergencyCallbackModeInd"); + RLOGD("exitEmergencyCallbackModeInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->exitEmergencyCallbackMode( convertIntToRadioIndicationType(indicationType)); @@ -7953,7 +7953,7 @@ int radio::rilConnectedInd(int slotId, int indicationType, int token, RIL_Errno e, void *response, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { - RLOGE("rilConnectedInd"); + RLOGD("rilConnectedInd"); Return retStatus = radioService[slotId]->mRadioIndication->rilConnected( convertIntToRadioIndicationType(indicationType)); radioService[slotId]->checkReturnStatus(retStatus); @@ -7974,7 +7974,7 @@ int radio::voiceRadioTechChangedInd(int slotId, } int32_t rat = ((int32_t *) response)[0]; #if VDBG - RLOGE("voiceRadioTechChangedInd: rat %d", rat); + RLOGD("voiceRadioTechChangedInd: rat %d", rat); #endif Return retStatus = radioService[slotId]->mRadioIndication->voiceRadioTechChanged( convertIntToRadioIndicationType(indicationType), (RadioTechnology) rat); @@ -8145,7 +8145,7 @@ int radio::cellInfoListInd(int slotId, convertRilCellInfoListToHal(response, responseLen, records); #if VDBG - RLOGE("cellInfoListInd"); + RLOGD("cellInfoListInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->cellInfoList( convertIntToRadioIndicationType(indicationType), records); @@ -8162,7 +8162,7 @@ int radio::imsNetworkStateChangedInd(int slotId, size_t responseLen) { if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndication != NULL) { #if VDBG - RLOGE("imsNetworkStateChangedInd"); + RLOGD("imsNetworkStateChangedInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->imsNetworkStateChanged( convertIntToRadioIndicationType(indicationType)); @@ -8185,7 +8185,7 @@ int radio::subscriptionStatusChangedInd(int slotId, } bool activate = ((int32_t *) response)[0]; #if VDBG - RLOGE("subscriptionStatusChangedInd: activate %d", activate); + RLOGD("subscriptionStatusChangedInd: activate %d", activate); #endif Return retStatus = radioService[slotId]->mRadioIndication->subscriptionStatusChanged( convertIntToRadioIndicationType(indicationType), activate); @@ -8208,7 +8208,7 @@ int radio::srvccStateNotifyInd(int slotId, } int32_t state = ((int32_t *) response)[0]; #if VDBG - RLOGE("srvccStateNotifyInd: rat %d", state); + RLOGD("srvccStateNotifyInd: rat %d", state); #endif Return retStatus = radioService[slotId]->mRadioIndication->srvccStateNotify( convertIntToRadioIndicationType(indicationType), (SrvccState) state); @@ -8267,7 +8267,7 @@ int radio::hardwareConfigChangedInd(int slotId, convertRilHardwareConfigListToHal(response, responseLen, configs); #if VDBG - RLOGE("hardwareConfigChangedInd"); + RLOGD("hardwareConfigChangedInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->hardwareConfigChanged( convertIntToRadioIndicationType(indicationType), configs); @@ -8302,7 +8302,7 @@ int radio::radioCapabilityIndicationInd(int slotId, convertRilRadioCapabilityToHal(response, responseLen, rc); #if VDBG - RLOGE("radioCapabilityIndicationInd"); + RLOGD("radioCapabilityIndicationInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->radioCapabilityIndication( convertIntToRadioIndicationType(indicationType), rc); @@ -8347,7 +8347,7 @@ int radio::onSupplementaryServiceIndicationInd(int slotId, if (isServiceTypeCfQuery(rilSsResponse->serviceType, rilSsResponse->requestType)) { #if VDBG - RLOGE("onSupplementaryServiceIndicationInd CF type, num of Cf elements %d", + RLOGD("onSupplementaryServiceIndicationInd CF type, num of Cf elements %d", rilSsResponse->cfData.numValidIndexes); #endif if (rilSsResponse->cfData.numValidIndexes > NUM_SERVICE_CLASSES) { @@ -8373,7 +8373,7 @@ int radio::onSupplementaryServiceIndicationInd(int slotId, cfInfo->number = convertCharPtrToHidlString(cf.number); cfInfo->timeSeconds = cf.timeSeconds; #if VDBG - RLOGE("onSupplementaryServiceIndicationInd: " + RLOGD("onSupplementaryServiceIndicationInd: " "Data: %d,reason=%d,cls=%d,toa=%d,num=%s,tout=%d],", cf.status, cf.reason, cf.serviceClass, cf.toa, (char*)cf.number, cf.timeSeconds); #endif @@ -8386,7 +8386,7 @@ int radio::onSupplementaryServiceIndicationInd(int slotId, ss.ssInfo[0].ssInfo.resize(SS_INFO_MAX); for (int i = 0; i < SS_INFO_MAX; i++) { #if VDBG - RLOGE("onSupplementaryServiceIndicationInd: Data: %d", + RLOGD("onSupplementaryServiceIndicationInd: Data: %d", rilSsResponse->ssInfo[i]); #endif ss.ssInfo[0].ssInfo[i] = rilSsResponse->ssInfo[i]; @@ -8394,7 +8394,7 @@ int radio::onSupplementaryServiceIndicationInd(int slotId, } #if VDBG - RLOGE("onSupplementaryServiceIndicationInd"); + RLOGD("onSupplementaryServiceIndicationInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication-> onSupplementaryServiceIndication(convertIntToRadioIndicationType(indicationType), @@ -8417,7 +8417,7 @@ int radio::stkCallControlAlphaNotifyInd(int slotId, return 0; } #if VDBG - RLOGE("stkCallControlAlphaNotifyInd"); + RLOGD("stkCallControlAlphaNotifyInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->stkCallControlAlphaNotify( convertIntToRadioIndicationType(indicationType), @@ -8450,7 +8450,7 @@ int radio::lceDataInd(int slotId, LceDataInfo lce = {}; convertRilLceDataInfoToHal(response, responseLen, lce); #if VDBG - RLOGE("lceDataInd"); + RLOGD("lceDataInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->lceData( convertIntToRadioIndicationType(indicationType), lce); @@ -8479,7 +8479,7 @@ int radio::pcoDataInd(int slotId, pco.contents.setToExternal((uint8_t *) rilPcoData->contents, rilPcoData->contents_length); #if VDBG - RLOGE("pcoDataInd"); + RLOGD("pcoDataInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->pcoData( convertIntToRadioIndicationType(indicationType), pco); @@ -8500,7 +8500,7 @@ int radio::modemResetInd(int slotId, return 0; } #if VDBG - RLOGE("modemResetInd"); + RLOGD("modemResetInd"); #endif Return retStatus = radioService[slotId]->mRadioIndication->modemReset( convertIntToRadioIndicationType(indicationType), @@ -8517,17 +8517,17 @@ int radio::networkScanResultInd(int slotId, int indicationType, int token, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("networkScanResultInd"); + RLOGD("networkScanResultInd"); #endif if (radioService[slotId] != NULL && radioService[slotId]->mRadioIndicationV1_1 != NULL) { if (response == NULL || responseLen == 0) { RLOGE("networkScanResultInd: invalid response"); return 0; } - RLOGE("networkScanResultInd"); + RLOGD("networkScanResultInd"); #if VDBG - RLOGE("networkScanResultInd"); + RLOGD("networkScanResultInd"); #endif RIL_NetworkScanResult *networkScanResult = (RIL_NetworkScanResult *) response; @@ -8557,7 +8557,7 @@ int radio::carrierInfoForImsiEncryption(int slotId, RLOGE("carrierInfoForImsiEncryption: invalid response"); return 0; } - RLOGE("carrierInfoForImsiEncryption"); + RLOGD("carrierInfoForImsiEncryption"); Return retStatus = radioService[slotId]->mRadioIndicationV1_1-> carrierInfoForImsiEncryption(convertIntToRadioIndicationType(indicationType)); radioService[slotId]->checkReturnStatus(retStatus); @@ -8573,7 +8573,7 @@ int radio::keepaliveStatusInd(int slotId, int indicationType, int token, RIL_Errno e, void *response, size_t responseLen) { #if VDBG - RLOGE("%s(): token=%d", __FUNCTION__, token); + RLOGD("%s(): token=%d", __FUNCTION__, token); #endif if (radioService[slotId] == NULL || radioService[slotId]->mRadioIndication == NULL) { RLOGE("%s: radioService[%d]->mRadioIndication == NULL", __FUNCTION__, slotId); @@ -8614,7 +8614,7 @@ int radio::oemHookRawInd(int slotId, hidl_vec data; data.setToExternal((uint8_t *) response, responseLen); #if VDBG - RLOGE("oemHookRawInd"); + RLOGD("oemHookRawInd"); #endif Return retStatus = oemHookService[slotId]->mOemHookIndication->oemHookRaw( convertIntToRadioIndicationType(indicationType), data); @@ -8656,7 +8656,7 @@ void radio::registerService(RIL_RadioFunctions *callbacks, CommandInfo *commands radioService[i]->mSlotId = i; oemHookService[i] = new OemHookImpl; oemHookService[i]->mSlotId = i; - RLOGE("registerService: starting android::hardware::radio::V1_1::IRadio %s", + RLOGD("registerService: starting android::hardware::radio::V1_1::IRadio %s", serviceNames[i]); android::status_t status = radioService[i]->registerAsService(serviceNames[i]); status = oemHookService[i]->registerAsService(serviceNames[i]); diff --git a/ril/libril/sap_service.cpp b/ril/libril/sap_service.cpp index d2dce73..52ebd6c 100644 --- a/ril/libril/sap_service.cpp +++ b/ril/libril/sap_service.cpp @@ -86,7 +86,7 @@ void SapImpl::checkReturnStatus(Return& ret) { } Return SapImpl::setCallback(const ::android::sp& sapCallbackParam) { - RLOGE("SapImpl::setCallback for slotId %d", slotId); + RLOGD("SapImpl::setCallback for slotId %d", slotId); sapCallback = sapCallbackParam; return Void(); } @@ -117,7 +117,7 @@ Return SapImpl::addPayloadAndDispatchRequest(MsgHeader *msg, uint16_t reqL RilSapSocket *sapSocket = RilSapSocket::getSocketById(rilSocketId); if (sapSocket) { - RLOGE("SapImpl::addPayloadAndDispatchRequest: calling dispatchRequest"); + RLOGD("SapImpl::addPayloadAndDispatchRequest: calling dispatchRequest"); sapSocket->dispatchRequest(msg); } else { RLOGE("SapImpl::addPayloadAndDispatchRequest: sapSocket is null"); @@ -184,7 +184,7 @@ void SapImpl::sendFailedResponse(MsgId msgId, int32_t token, int numPointers, .. } Return SapImpl::connectReq(int32_t token, int32_t maxMsgSize) { - RLOGE("SapImpl::connectReq"); + RLOGD("SapImpl::connectReq"); MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_CONNECT, token); if (msg == NULL) { RLOGE("SapImpl::connectReq: Error allocating memory for msg"); @@ -212,7 +212,7 @@ Return SapImpl::connectReq(int32_t token, int32_t maxMsgSize) { } pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); - RLOGE("SapImpl::connectReq calling pb_encode"); + RLOGD("SapImpl::connectReq calling pb_encode"); if (!pb_encode(&stream, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { RLOGE("SapImpl::connectReq: Error encoding RIL_SIM_SAP_CONNECT_REQ"); sendFailedResponse(MsgId_RIL_SIM_SAP_CONNECT, token, 2, buffer, msg); @@ -225,7 +225,7 @@ Return SapImpl::connectReq(int32_t token, int32_t maxMsgSize) { } Return SapImpl::disconnectReq(int32_t token) { - RLOGE("SapImpl::disconnectReq"); + RLOGD("SapImpl::disconnectReq"); MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_DISCONNECT, token); if (msg == NULL) { RLOGE("SapImpl::disconnectReq: Error allocating memory for msg"); @@ -253,7 +253,7 @@ Return SapImpl::disconnectReq(int32_t token) { pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); - RLOGE("SapImpl::disconnectReq calling pb_encode"); + RLOGD("SapImpl::disconnectReq calling pb_encode"); if (!pb_encode(&stream, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { RLOGE("SapImpl::disconnectReq: Error encoding RIL_SIM_SAP_DISCONNECT_REQ"); sendFailedResponse(MsgId_RIL_SIM_SAP_DISCONNECT, token, 2, buffer, msg); @@ -266,7 +266,7 @@ Return SapImpl::disconnectReq(int32_t token) { } Return SapImpl::apduReq(int32_t token, SapApduType type, const hidl_vec& command) { - RLOGE("SapImpl::apduReq"); + RLOGD("SapImpl::apduReq"); MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_APDU, token); if (msg == NULL) { RLOGE("SapImpl::apduReq: Error allocating memory for msg"); @@ -306,7 +306,7 @@ Return SapImpl::apduReq(int32_t token, SapApduType type, const hidl_vec SapImpl::apduReq(int32_t token, SapApduType type, const hidl_vec SapImpl::transferAtrReq(int32_t token) { - RLOGE("SapImpl::transferAtrReq"); + RLOGD("SapImpl::transferAtrReq"); MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_TRANSFER_ATR, token); if (msg == NULL) { RLOGE("SapImpl::transferAtrReq: Error allocating memory for msg"); @@ -348,7 +348,7 @@ Return SapImpl::transferAtrReq(int32_t token) { pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); - RLOGE("SapImpl::transferAtrReq calling pb_encode"); + RLOGD("SapImpl::transferAtrReq calling pb_encode"); if (!pb_encode(&stream, RIL_SIM_SAP_TRANSFER_ATR_REQ_fields, &req)) { RLOGE("SapImpl::transferAtrReq: Error encoding RIL_SIM_SAP_TRANSFER_ATR_REQ"); sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_ATR, token, 2, buffer, msg); @@ -361,7 +361,7 @@ Return SapImpl::transferAtrReq(int32_t token) { } Return SapImpl::powerReq(int32_t token, bool state) { - RLOGE("SapImpl::powerReq"); + RLOGD("SapImpl::powerReq"); MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_POWER, token); if (msg == NULL) { RLOGE("SapImpl::powerReq: Error allocating memory for msg"); @@ -390,7 +390,7 @@ Return SapImpl::powerReq(int32_t token, bool state) { pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); - RLOGE("SapImpl::powerReq calling pb_encode"); + RLOGD("SapImpl::powerReq calling pb_encode"); if (!pb_encode(&stream, RIL_SIM_SAP_POWER_REQ_fields, &req)) { RLOGE("SapImpl::powerReq: Error encoding RIL_SIM_SAP_POWER_REQ"); sendFailedResponse(MsgId_RIL_SIM_SAP_POWER, token, 2, buffer, msg); @@ -403,7 +403,7 @@ Return SapImpl::powerReq(int32_t token, bool state) { } Return SapImpl::resetSimReq(int32_t token) { - RLOGE("SapImpl::resetSimReq"); + RLOGD("SapImpl::resetSimReq"); MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_RESET_SIM, token); if (msg == NULL) { RLOGE("SapImpl::resetSimReq: Error allocating memory for msg"); @@ -431,7 +431,7 @@ Return SapImpl::resetSimReq(int32_t token) { pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); - RLOGE("SapImpl::resetSimReq calling pb_encode"); + RLOGD("SapImpl::resetSimReq calling pb_encode"); if (!pb_encode(&stream, RIL_SIM_SAP_RESET_SIM_REQ_fields, &req)) { RLOGE("SapImpl::resetSimReq: Error encoding RIL_SIM_SAP_RESET_SIM_REQ"); sendFailedResponse(MsgId_RIL_SIM_SAP_RESET_SIM, token, 2, buffer, msg); @@ -444,7 +444,7 @@ Return SapImpl::resetSimReq(int32_t token) { } Return SapImpl::transferCardReaderStatusReq(int32_t token) { - RLOGE("SapImpl::transferCardReaderStatusReq"); + RLOGD("SapImpl::transferCardReaderStatusReq"); MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS, token); if (msg == NULL) { RLOGE("SapImpl::transferCardReaderStatusReq: Error allocating memory for msg"); @@ -474,7 +474,7 @@ Return SapImpl::transferCardReaderStatusReq(int32_t token) { pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); - RLOGE("SapImpl::transferCardReaderStatusReq calling pb_encode"); + RLOGD("SapImpl::transferCardReaderStatusReq calling pb_encode"); if (!pb_encode(&stream, RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ_fields, &req)) { RLOGE("SapImpl::transferCardReaderStatusReq: Error encoding " "RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ"); @@ -488,7 +488,7 @@ Return SapImpl::transferCardReaderStatusReq(int32_t token) { } Return SapImpl::setTransferProtocolReq(int32_t token, SapTransferProtocol transferProtocol) { - RLOGE("SapImpl::setTransferProtocolReq"); + RLOGD("SapImpl::setTransferProtocolReq"); MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_SET_TRANSFER_PROTOCOL, token); if (msg == NULL) { RLOGE("SapImpl::setTransferProtocolReq: Error allocating memory for msg"); @@ -518,7 +518,7 @@ Return SapImpl::setTransferProtocolReq(int32_t token, SapTransferProtocol pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); - RLOGE("SapImpl::setTransferProtocolReq calling pb_encode"); + RLOGD("SapImpl::setTransferProtocolReq calling pb_encode"); if (!pb_encode(&stream, RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ_fields, &req)) { RLOGE("SapImpl::setTransferProtocolReq: Error encoding " "RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ"); @@ -662,7 +662,7 @@ void *sapDecodeMessage(MsgId msgId, MsgType msgType, uint8_t *payloadPtr, size_t sp getSapImpl(RilSapSocket *sapSocket) { switch (sapSocket->getSocketId()) { case RIL_SOCKET_1: - RLOGE("getSapImpl: returning sapService[0]"); + RLOGD("getSapImpl: returning sapService[0]"); return sapService[0]; #if (SIM_COUNT >= 2) case RIL_SOCKET_2: @@ -783,14 +783,14 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { return; } - RLOGE("processResponse: sapCallback != NULL; msgId = %d; msgType = %d", + RLOGD("processResponse: sapCallback != NULL; msgId = %d; msgType = %d", msgId, msgType); Return retStatus; switch (msgId) { case MsgId_RIL_SIM_SAP_CONNECT: { RIL_SIM_SAP_CONNECT_RSP *connectRsp = (RIL_SIM_SAP_CONNECT_RSP *)messagePtr; - RLOGE("processResponse: calling sapCallback->connectResponse %d %d %d", + RLOGD("processResponse: calling sapCallback->connectResponse %d %d %d", rsp->token, connectRsp->response, connectRsp->max_message_size); @@ -802,12 +802,12 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { case MsgId_RIL_SIM_SAP_DISCONNECT: if (msgType == MsgType_RESPONSE) { - RLOGE("processResponse: calling sapCallback->disconnectResponse %d", rsp->token); + RLOGD("processResponse: calling sapCallback->disconnectResponse %d", rsp->token); retStatus = sapImpl->sapCallback->disconnectResponse(rsp->token); } else { RIL_SIM_SAP_DISCONNECT_IND *disconnectInd = (RIL_SIM_SAP_DISCONNECT_IND *)messagePtr; - RLOGE("processResponse: calling sapCallback->disconnectIndication %d %d", + RLOGD("processResponse: calling sapCallback->disconnectIndication %d %d", rsp->token, disconnectInd->disconnectType); retStatus = sapImpl->sapCallback->disconnectIndication(rsp->token, (SapDisconnectType)disconnectInd->disconnectType); @@ -817,7 +817,7 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { case MsgId_RIL_SIM_SAP_APDU: { RIL_SIM_SAP_APDU_RSP *apduRsp = (RIL_SIM_SAP_APDU_RSP *)messagePtr; SapResultCode apduResponse = convertApduResponseProtoToHal(apduRsp->response); - RLOGE("processResponse: calling sapCallback->apduResponse %d %d", + RLOGD("processResponse: calling sapCallback->apduResponse %d %d", rsp->token, apduResponse); hidl_vec apduRspVec; if (apduRsp->apduResponse != NULL && apduRsp->apduResponse->size > 0) { @@ -832,7 +832,7 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { (RIL_SIM_SAP_TRANSFER_ATR_RSP *)messagePtr; SapResultCode transferAtrResponse = convertTransferAtrResponseProtoToHal(transferAtrRsp->response); - RLOGE("processResponse: calling sapCallback->transferAtrResponse %d %d", + RLOGD("processResponse: calling sapCallback->transferAtrResponse %d %d", rsp->token, transferAtrResponse); hidl_vec transferAtrRspVec; if (transferAtrRsp->atr != NULL && transferAtrRsp->atr->size > 0) { @@ -847,7 +847,7 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { case MsgId_RIL_SIM_SAP_POWER: { SapResultCode powerResponse = convertPowerResponseProtoToHal( ((RIL_SIM_SAP_POWER_RSP *)messagePtr)->response); - RLOGE("processResponse: calling sapCallback->powerResponse %d %d", + RLOGD("processResponse: calling sapCallback->powerResponse %d %d", rsp->token, powerResponse); retStatus = sapImpl->sapCallback->powerResponse(rsp->token, powerResponse); break; @@ -856,7 +856,7 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { case MsgId_RIL_SIM_SAP_RESET_SIM: { SapResultCode resetSimResponse = convertResetSimResponseProtoToHal( ((RIL_SIM_SAP_RESET_SIM_RSP *)messagePtr)->response); - RLOGE("processResponse: calling sapCallback->resetSimResponse %d %d", + RLOGD("processResponse: calling sapCallback->resetSimResponse %d %d", rsp->token, resetSimResponse); retStatus = sapImpl->sapCallback->resetSimResponse(rsp->token, resetSimResponse); break; @@ -864,7 +864,7 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { case MsgId_RIL_SIM_SAP_STATUS: { RIL_SIM_SAP_STATUS_IND *statusInd = (RIL_SIM_SAP_STATUS_IND *)messagePtr; - RLOGE("processResponse: calling sapCallback->statusIndication %d %d", + RLOGD("processResponse: calling sapCallback->statusIndication %d %d", rsp->token, statusInd->statusChange); retStatus = sapImpl->sapCallback->statusIndication(rsp->token, (SapStatus)statusInd->statusChange); @@ -877,7 +877,7 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { SapResultCode transferCardReaderStatusResponse = convertTransferCardReaderStatusResponseProtoToHal( transferStatusRsp->response); - RLOGE("processResponse: calling sapCallback->transferCardReaderStatusResponse %d %d %d", + RLOGD("processResponse: calling sapCallback->transferCardReaderStatusResponse %d %d %d", rsp->token, transferCardReaderStatusResponse, transferStatusRsp->CardReaderStatus); @@ -888,7 +888,7 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { } case MsgId_RIL_SIM_SAP_ERROR_RESP: { - RLOGE("processResponse: calling sapCallback->errorResponse %d", rsp->token); + RLOGD("processResponse: calling sapCallback->errorResponse %d", rsp->token); retStatus = sapImpl->sapCallback->errorResponse(rsp->token); break; } @@ -901,7 +901,7 @@ void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { } else { setTransferProtocolResponse = SapResultCode::NOT_SUPPORTED; } - RLOGE("processResponse: calling sapCallback->transferProtocolResponse %d %d", + RLOGD("processResponse: calling sapCallback->transferProtocolResponse %d %d", rsp->token, setTransferProtocolResponse); retStatus = sapImpl->sapCallback->transferProtocolResponse(rsp->token, setTransferProtocolResponse); @@ -958,8 +958,8 @@ void sap::registerService(RIL_RadioFunctions *callbacks) { sapService[i] = new SapImpl; sapService[i]->slotId = i; sapService[i]->rilSocketId = socketIds[i]; - RLOGE("registerService: starting ISap %s for slotId %d", serviceNames[i], i); + RLOGD("registerService: starting ISap %s for slotId %d", serviceNames[i], i); android::status_t status = sapService[i]->registerAsService(serviceNames[i]); - RLOGE("registerService: started ISap %s status %d", serviceNames[i], status); + RLOGD("registerService: started ISap %s status %d", serviceNames[i], status); } } diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 0346def..8f26913 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -211,6 +211,11 @@ on post-fs-data # Symlink to bugreport storage location symlink /data/data/com.android.shell/files/bugreports /data/bugreports + # Remove symlinks to avoid issues with migrate after nandroid restores + # Will be recreated at end of boot + rm /data/data/com.android.providers.telephony/databases + rm /data/data/com.android.providers.telephony/shared_prefs + setprop vold.post_fs_data_done 1 on early-boot @@ -509,6 +514,14 @@ on boot # Mark wifi driver as unloaded - "ok" indicates loaded setprop wlan.driver.status not_ok + +on property:sys.boot_completed=1 + # Symlink directories to access telephony.db and preferred-apn.xml required by libsec-ril + symlink /data/user_de/0/com.android.providers.telephony/databases /data/data/com.android.providers.telephony/databases + symlink /data/user_de/0/com.android.providers.telephony/shared_prefs /data/data/com.android.providers.telephony/shared_prefs + restorecon /data/data/com.android.providers.telephony/databases + restorecon /data/data/com.android.providers.telephony/shared_pref + on charger wait /dev/block/platform/msm_sdcc.1/by-name/system mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1 diff --git a/system.prop b/system.prop index af12c1d..65968fc 100644 --- a/system.prop +++ b/system.prop @@ -70,24 +70,12 @@ ro.nfc.port=I2C # this prop is only for samsung # ro.debug_level=0x4948 ##### -rild.libpath=/vendor/lib/libril-qc-qmi-1.so -rild.libargs=-d /dev/smd0 -persist.rild.nitz_plmn= -persist.rild.nitz_long_ons_0= -persist.rild.nitz_long_ons_1= -persist.rild.nitz_long_ons_2= -persist.rild.nitz_long_ons_3= -persist.rild.nitz_short_ons_0= -persist.rild.nitz_short_ons_1= -persist.rild.nitz_short_ons_2= -persist.rild.nitz_short_ons_3= -ril.subscription.types=NV,RUIM -DEVICE_PROVISIONED=1 -ro.telephony.default_network=9 -ro.baseband.arch=msm -persist.radio.jbims=1 -persist.rmnet.mux=enabled -persist.data.iwlan.enable=true +persist.data.netmgrd.qos.enable=true +persist.data.qmi.adb_logmask=0 +persist.radio.add_power_save=1 +rild.libpath=/system/vendor/lib/libsec-ril.so +ro.telephony.mms_data_profile=5 +ro.ril.telephony.qan_resp_strings=6 # Ril sends only one RIL_UNSOL_CALL_RING, so set call_ring.multiple to false ro.telephony.call_ring.multiple=0