Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* /*
- * Copyright (C) 2007 The Android Open Source Project * Copyright (C) 2007 The Android Open Source Project
- * *
- * Licensed under the Apache License, Version 2.0 (the "Licen * Licensed under the Apache License, Version 2.0 (the "Licen
- * you may not use this file except in compliance with the Li * you may not use this file except in compliance with the Li
- * You may obtain a copy of the License at * You may obtain a copy of the License at
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
- * *
- * Unless required by applicable law or agreed to in writing, * Unless required by applicable law or agreed to in writing,
- * distributed under the License is distributed on an "AS IS" * distributed under the License is distributed on an "AS IS"
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre
- * See the License for the specific language governing permis * See the License for the specific language governing permis
- * limitations under the License. * limitations under the License.
- */ */
- package com.android.internal.telephony; package com.android.internal.telephony;
- import android.content.Context; import android.content.Context;
- import android.net.LinkCapabilities; import android.net.LinkCapabilities;
- import android.net.LinkProperties; import android.net.LinkProperties;
- import android.os.Handler; import android.os.Handler;
- import android.os.Message; import android.os.Message;
- import android.os.SystemProperties; import android.os.SystemProperties;
- import android.telephony.CellLocation; import android.telephony.CellLocation;
- import android.telephony.PhoneStateListener; import android.telephony.PhoneStateListener;
- import android.telephony.ServiceState; import android.telephony.ServiceState;
- import android.telephony.SignalStrength; import android.telephony.SignalStrength;
- import com.android.internal.telephony.DataConnection; import com.android.internal.telephony.DataConnection;
- > import com.android.internal.telephony.gsm.UsimServiceTable;
- import com.android.internal.telephony.ims.IsimRecords; import com.android.internal.telephony.ims.IsimRecords;
- import com.android.internal.telephony.test.SimulatedRadioCont import com.android.internal.telephony.test.SimulatedRadioCont
- //MTK-START [mtk04070][111223][ALPS00106134]Merge to ICS 4.0. <
- import com.android.internal.telephony.gsm.UsimServiceTable; <
- //MTK-END [mtk04070][111223][ALPS00106134]Merge to ICS 4.0.3 <
- <
- //MTK-START [mtk04070][111117][ALPS00093395]MTK used <
- import com.android.internal.telephony.gsm.GsmDataConnection; <
- import com.android.internal.telephony.gsm.SmsBroadcastConfigI <
- import com.android.internal.telephony.gsm.NetworkInfoWithAcT; <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK used <
- import java.util.List; import java.util.List;
- /** /**
- * Internal interface used to control the phone; SDK develope * Internal interface used to control the phone; SDK develope
- * obtain this interface. * obtain this interface.
- * *
- * {@hide} * {@hide}
- * *
- */ */
- public interface Phone { public interface Phone {
- /** used to enable additional debug messages */ /** used to enable additional debug messages */
- static final boolean DEBUG_PHONE = true; static final boolean DEBUG_PHONE = true;
- //MTK-START [mtk04070][111117][ALPS00093395]Used in Gemin <
- static final int TOTAL_SIM_COLOR_COUNT = 4; <
- //MTK-END [mtk04070][111117][ALPS00093395]Used in GeminiP <
- /** /**
- * The phone state. One of the following:<p> * The phone state. One of the following:<p>
- * <ul> * <ul>
- * <li>IDLE = no phone activity</li> * <li>IDLE = no phone activity</li>
- * <li>RINGING = a phone call is ringing or call waiting. * <li>RINGING = a phone call is ringing or call waiting.
- * In the latter case, another call is active as well</l * In the latter case, another call is active as well</l
- * <li>OFFHOOK = The phone is off hook. At least one call * <li>OFFHOOK = The phone is off hook. At least one call
- * exists that is dialing, active or holding and no calls * exists that is dialing, active or holding and no calls
- * ringing or waiting.</li> * ringing or waiting.</li>
- * </ul> * </ul>
- */ */
- enum State { enum State {
- IDLE, RINGING, OFFHOOK; IDLE, RINGING, OFFHOOK;
- }; };
- /** /**
- * The state of a data connection. * The state of a data connection.
- * <ul> * <ul>
- * <li>CONNECTED = IP traffic should be available</li> * <li>CONNECTED = IP traffic should be available</li>
- * <li>CONNECTING = Currently setting up data connection< * <li>CONNECTING = Currently setting up data connection<
- * <li>DISCONNECTED = IP not available</li> * <li>DISCONNECTED = IP not available</li>
- * <li>SUSPENDED = connection is created but IP traffic i * <li>SUSPENDED = connection is created but IP traffic i
- * temperately not available. i.e. voice * temperately not available. i.e. voice
- * in 2G network</li> * in 2G network</li>
- * </ul> * </ul>
- */ */
- enum DataState { enum DataState {
- CONNECTED, CONNECTING, DISCONNECTED, SUSPENDED; CONNECTED, CONNECTING, DISCONNECTED, SUSPENDED;
- }; };
- public enum DataActivityState { public enum DataActivityState {
- /** /**
- * The state of a data activity. * The state of a data activity.
- * <ul> * <ul>
- * <li>NONE = No traffic</li> * <li>NONE = No traffic</li>
- * <li>DATAIN = Receiving IP ppp traffic</li> * <li>DATAIN = Receiving IP ppp traffic</li>
- * <li>DATAOUT = Sending IP ppp traffic</li> * <li>DATAOUT = Sending IP ppp traffic</li>
- * <li>DATAINANDOUT = Both receiving and sending IP p * <li>DATAINANDOUT = Both receiving and sending IP p
- * <li>DORMANT = The data connection is still active, * <li>DORMANT = The data connection is still active,
- but physical link is dow but physical link is dow
- * </ul> * </ul>
- */ */
- NONE, DATAIN, DATAOUT, DATAINANDOUT, DORMANT; NONE, DATAIN, DATAOUT, DATAINANDOUT, DORMANT;
- }; };
- enum SuppService { enum SuppService {
- UNKNOWN, SWITCH, SEPARATE, TRANSFER, CONFERENCE, REJECT UNKNOWN, SWITCH, SEPARATE, TRANSFER, CONFERENCE, REJECT
- }; };
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- enum IccServiceStatus { <
- NOT_EXIST_IN_SIM, <
- NOT_EXIST_IN_USIM, <
- ACTIVATED, <
- INACTIVATED, <
- UNKNOWN; <
- }; <
- <
- enum IccService { <
- CHV1_DISABLE_FUNCTION , //0 <
- SPN, <
- PNN, //PLMN Ne <
- OPL, //Operat <
- MWIS, //Message <
- CFIS, //Call F <
- SPDI, //Servic <
- EPLMN, //Equival <
- UNSUPPORTED_SERVICE; //8 <
- <
- public int getIndex() { <
- int nIndex = -1; <
- switch(this) { <
- case CHV1_DISABLE_FUNCTION: <
- nIndex = 0; <
- break; <
- case SPN: <
- nIndex = 1; <
- break; <
- case PNN: <
- nIndex = 2; <
- break; <
- case OPL: <
- nIndex = 3; <
- break; <
- case MWIS: <
- nIndex = 4; <
- break; <
- case CFIS: <
- nIndex = 5; <
- break; <
- case SPDI: <
- nIndex = 6; <
- break; <
- case EPLMN: <
- nIndex = 7; <
- break; <
- case UNSUPPORTED_SERVICE: <
- nIndex = 8; <
- break; <
- default: <
- break; <
- } <
- return nIndex; <
- } <
- }; <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- static final String STATE_KEY = "state"; static final String STATE_KEY = "state";
- static final String PHONE_NAME_KEY = "phoneName"; static final String PHONE_NAME_KEY = "phoneName";
- //MTK-START [mtk04258][20120806][International card support] <
- static final String PHONE_TYPE_KEY = "phoneType"; <
- //MTK-END [mtk04258][20120806][International card support] <
- static final String FAILURE_REASON_KEY = "reason"; static final String FAILURE_REASON_KEY = "reason";
- static final String STATE_CHANGE_REASON_KEY = "reason"; static final String STATE_CHANGE_REASON_KEY = "reason";
- static final String DATA_APN_TYPE_KEY = "apnType"; static final String DATA_APN_TYPE_KEY = "apnType";
- static final String DATA_APN_KEY = "apn"; static final String DATA_APN_KEY = "apn";
- static final String DATA_LINK_PROPERTIES_KEY = "linkPrope static final String DATA_LINK_PROPERTIES_KEY = "linkPrope
- static final String DATA_LINK_CAPABILITIES_KEY = "linkCap static final String DATA_LINK_CAPABILITIES_KEY = "linkCap
- static final String DATA_IFACE_NAME_KEY = "iface"; static final String DATA_IFACE_NAME_KEY = "iface";
- static final String NETWORK_UNAVAILABLE_KEY = "networkUnv static final String NETWORK_UNAVAILABLE_KEY = "networkUnv
- static final String DATA_NETWORK_ROAMING_KEY = "networkRo static final String DATA_NETWORK_ROAMING_KEY = "networkRo
- static final String PHONE_IN_ECM_STATE = "phoneinECMState static final String PHONE_IN_ECM_STATE = "phoneinECMState
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- /* Add by vendor: Multiple PDP Context for MobileDataStat <
- static final String DISCONNECT_DATA_FLAG ="disconnectPdpF <
- /* vt start */ <
- static final String IS_VT_CALL = "isVtCall"; <
- /* vt end */ <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- /** /**
- * APN types for data connections. These are usage categ * APN types for data connections. These are usage categ
- * entry. One APN entry may support multiple APN types, * entry. One APN entry may support multiple APN types,
- * may service regular internet traffic ("default") as we * may service regular internet traffic ("default") as we
- * connections.<br/> * connections.<br/>
- * APN_TYPE_ALL is a special type to indicate that this A * APN_TYPE_ALL is a special type to indicate that this A
- * service all data connections. * service all data connections.
- */ */
- static final String APN_TYPE_ALL = "*"; static final String APN_TYPE_ALL = "*";
- /** APN type for default data traffic */ /** APN type for default data traffic */
- static final String APN_TYPE_DEFAULT = "default"; static final String APN_TYPE_DEFAULT = "default";
- /** APN type for MMS traffic */ /** APN type for MMS traffic */
- static final String APN_TYPE_MMS = "mms"; static final String APN_TYPE_MMS = "mms";
- /** APN type for SUPL assisted GPS */ /** APN type for SUPL assisted GPS */
- static final String APN_TYPE_SUPL = "supl"; static final String APN_TYPE_SUPL = "supl";
- /** APN type for DUN traffic */ /** APN type for DUN traffic */
- static final String APN_TYPE_DUN = "dun"; static final String APN_TYPE_DUN = "dun";
- /** APN type for HiPri traffic */ /** APN type for HiPri traffic */
- static final String APN_TYPE_HIPRI = "hipri"; static final String APN_TYPE_HIPRI = "hipri";
- /** APN type for FOTA */ /** APN type for FOTA */
- static final String APN_TYPE_FOTA = "fota"; static final String APN_TYPE_FOTA = "fota";
- /** APN type for IMS */ /** APN type for IMS */
- static final String APN_TYPE_IMS = "ims"; static final String APN_TYPE_IMS = "ims";
- /** APN type for CBS */ /** APN type for CBS */
- static final String APN_TYPE_CBS = "cbs"; static final String APN_TYPE_CBS = "cbs";
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- static final String APN_TYPE_DM = "dm"; <
- static final String APN_TYPE_WAP = "wap"; <
- static final String APN_TYPE_NET = "net"; <
- static final String APN_TYPE_CMMAIL = "cmmail"; <
- static final String APN_TYPE_TETHERING = "tethering"; <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- <
- // "Features" accessible through the connectivity manager // "Features" accessible through the connectivity manager
- static final String FEATURE_ENABLE_MMS = "enableMMS"; static final String FEATURE_ENABLE_MMS = "enableMMS";
- static final String FEATURE_ENABLE_SUPL = "enableSUPL"; static final String FEATURE_ENABLE_SUPL = "enableSUPL";
- static final String FEATURE_ENABLE_DUN = "enableDUN"; static final String FEATURE_ENABLE_DUN = "enableDUN";
- static final String FEATURE_ENABLE_HIPRI = "enableHIPRI"; static final String FEATURE_ENABLE_HIPRI = "enableHIPRI";
- static final String FEATURE_ENABLE_DUN_ALWAYS = "enableDU static final String FEATURE_ENABLE_DUN_ALWAYS = "enableDU
- static final String FEATURE_ENABLE_FOTA = "enableFOTA"; static final String FEATURE_ENABLE_FOTA = "enableFOTA";
- static final String FEATURE_ENABLE_IMS = "enableIMS"; static final String FEATURE_ENABLE_IMS = "enableIMS";
- static final String FEATURE_ENABLE_CBS = "enableCBS"; static final String FEATURE_ENABLE_CBS = "enableCBS";
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- static final String FEATURE_ENABLE_DM = "enableDM"; <
- static final String FEATURE_ENABLE_WAP = "enableWAP"; <
- static final String FEATURE_ENABLE_NET = "enableNET"; <
- static final String FEATURE_ENABLE_CMMAIL = "enableCMMAIL <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- <
- /** /**
- * Return codes for <code>enableApnType()</code> * Return codes for <code>enableApnType()</code>
- */ */
- static final int APN_ALREADY_ACTIVE = 0; static final int APN_ALREADY_ACTIVE = 0;
- static final int APN_REQUEST_STARTED = 1; static final int APN_REQUEST_STARTED = 1;
- static final int APN_TYPE_NOT_AVAILABLE = 2; static final int APN_TYPE_NOT_AVAILABLE = 2;
- static final int APN_REQUEST_FAILED = 3; static final int APN_REQUEST_FAILED = 3;
- static final int APN_ALREADY_INACTIVE = 4; static final int APN_ALREADY_INACTIVE = 4;
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- /* Add by mtk01411 */ <
- static final int APN_REQUEST_FAILED_DUE_TO_RADIO_OFF = 98 <
- static final int APN_TYPE_NOT_AVAILABLE_DUE_TO_RECORDS_NO <
- static final int APN_TYPE_DISABLE_ONGOING = 100; <
- <
- /* Return codes for enableDataConnectivity() and disableD <
- static final int ENABLE_DATA_CONNECTIVITY_INVALID_SIM_ID <
- static final int ENABLE_DATA_CONNECTIVITY_STARTED = 1; <
- static final int ENABLE_DATA_CONNECTIVITY_SUCCESS = 2; <
- static final int ENABLE_DATA_CONNECTIVITY_FAILED_THIS_SIM <
- static final int ENABLE_DATA_CONNECTIVITY_INVALID_STATE = <
- static final int DISABLE_DATA_CONNECTIVITY_INVALID_SIM_ID <
- static final int DISABLE_DATA_CONNECTIVITY_STARTED = 6; <
- static final int DISABLE_DATA_CONNECTIVITY_SUCCESS = 7; <
- static final int DISABLE_DATA_CONNECTIVITY_INVALID_STATE <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- /** /**
- * Optional reasons for disconnect and connect * Optional reasons for disconnect and connect
- */ */
- static final String REASON_ROAMING_ON = "roamingOn"; static final String REASON_ROAMING_ON = "roamingOn";
- static final String REASON_ROAMING_OFF = "roamingOff"; static final String REASON_ROAMING_OFF = "roamingOff";
- static final String REASON_DATA_DISABLED = "dataDisabled" static final String REASON_DATA_DISABLED = "dataDisabled"
- static final String REASON_DATA_ENABLED = "dataEnabled"; static final String REASON_DATA_ENABLED = "dataEnabled";
- static final String REASON_DATA_ATTACHED = "dataAttached" static final String REASON_DATA_ATTACHED = "dataAttached"
- static final String REASON_DATA_DETACHED = "dataDetached" static final String REASON_DATA_DETACHED = "dataDetached"
- static final String REASON_CDMA_DATA_ATTACHED = "cdmaData static final String REASON_CDMA_DATA_ATTACHED = "cdmaData
- static final String REASON_CDMA_DATA_DETACHED = "cdmaData static final String REASON_CDMA_DATA_DETACHED = "cdmaData
- static final String REASON_APN_CHANGED = "apnChanged"; static final String REASON_APN_CHANGED = "apnChanged";
- static final String REASON_APN_SWITCHED = "apnSwitched"; static final String REASON_APN_SWITCHED = "apnSwitched";
- static final String REASON_APN_FAILED = "apnFailed"; static final String REASON_APN_FAILED = "apnFailed";
- static final String REASON_RESTORE_DEFAULT_APN = "restore static final String REASON_RESTORE_DEFAULT_APN = "restore
- static final String REASON_RADIO_TURNED_OFF = "radioTurne static final String REASON_RADIO_TURNED_OFF = "radioTurne
- static final String REASON_PDP_RESET = "pdpReset"; static final String REASON_PDP_RESET = "pdpReset";
- static final String REASON_VOICE_CALL_ENDED = "2GVoiceCal static final String REASON_VOICE_CALL_ENDED = "2GVoiceCal
- static final String REASON_VOICE_CALL_STARTED = "2GVoiceC static final String REASON_VOICE_CALL_STARTED = "2GVoiceC
- static final String REASON_PS_RESTRICT_ENABLED = "psRestr static final String REASON_PS_RESTRICT_ENABLED = "psRestr
- static final String REASON_PS_RESTRICT_DISABLED = "psRest static final String REASON_PS_RESTRICT_DISABLED = "psRest
- static final String REASON_SIM_LOADED = "simLoaded"; static final String REASON_SIM_LOADED = "simLoaded";
- static final String REASON_NW_TYPE_CHANGED = "nwTypeChang static final String REASON_NW_TYPE_CHANGED = "nwTypeChang
- static final String REASON_DATA_DEPENDENCY_MET = "depende static final String REASON_DATA_DEPENDENCY_MET = "depende
- static final String REASON_DATA_DEPENDENCY_UNMET = "depen static final String REASON_DATA_DEPENDENCY_UNMET = "depen
- static final String REASON_LINK_PROPERTIES_CHANGED = "lin static final String REASON_LINK_PROPERTIES_CHANGED = "lin
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- static final String REASON_GPRS_ATTACHED_TIMEOUT = "gprsA <
- /* Add by mtk01411 */ <
- static final String REASON_ON_RADIO_AVAILABLE = "onRadioA <
- static final String REASON_ON_RECORDS_LOADED = "onRecords <
- static final String REASON_POLL_STATE_DONE = "pollStateDo <
- static final String REASON_NO_SUCH_PDP = "noSuchPdp"; <
- static final String REASON_PDP_NOT_ACTIVE = "pdpNotActive <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- // Used for band mode selection methods // Used for band mode selection methods
- static final int BM_UNSPECIFIED = 0; // selected by baseb static final int BM_UNSPECIFIED = 0; // selected by baseb
- static final int BM_EURO_BAND = 1; // GSM-900 / DCS-180 static final int BM_EURO_BAND = 1; // GSM-900 / DCS-180
- static final int BM_US_BAND = 2; // GSM-850 / PCS-190 static final int BM_US_BAND = 2; // GSM-850 / PCS-190
- static final int BM_JPN_BAND = 3; // WCDMA-800 / WCDMA static final int BM_JPN_BAND = 3; // WCDMA-800 / WCDMA
- static final int BM_AUS_BAND = 4; // GSM-900 / DCS-180 static final int BM_AUS_BAND = 4; // GSM-900 / DCS-180
- static final int BM_AUS2_BAND = 5; // GSM-900 / DCS-180 static final int BM_AUS2_BAND = 5; // GSM-900 / DCS-180
- static final int BM_BOUNDARY = 6; // upper band bounda static final int BM_BOUNDARY = 6; // upper band bounda
- // Radio Type // Radio Type
- static final int PHONE_TYPE_NONE = RILConstants.NO_PHONE; static final int PHONE_TYPE_NONE = RILConstants.NO_PHONE;
- static final int PHONE_TYPE_GSM = RILConstants.GSM_PHONE; static final int PHONE_TYPE_GSM = RILConstants.GSM_PHONE;
- static final int PHONE_TYPE_CDMA = RILConstants.CDMA_PHON static final int PHONE_TYPE_CDMA = RILConstants.CDMA_PHON
- static final int PHONE_TYPE_SIP = RILConstants.SIP_PHONE; static final int PHONE_TYPE_SIP = RILConstants.SIP_PHONE;
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- static final int PHONE_TYPE_GEMINI = RILConstants.GEMINI_ <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- // Modes for LTE_ON_CDMA // Modes for LTE_ON_CDMA
- static final int LTE_ON_CDMA_UNKNOWN = RILConstants.LTE_O static final int LTE_ON_CDMA_UNKNOWN = RILConstants.LTE_O
- static final int LTE_ON_CDMA_FALSE = RILConstants.LTE_ON_ static final int LTE_ON_CDMA_FALSE = RILConstants.LTE_ON_
- static final int LTE_ON_CDMA_TRUE = RILConstants.LTE_ON_C static final int LTE_ON_CDMA_TRUE = RILConstants.LTE_ON_C
- // Used for preferred network type // Used for preferred network type
- // Note NT_* substitute RILConstants.NETWORK_MODE_* above // Note NT_* substitute RILConstants.NETWORK_MODE_* above
- int NT_MODE_WCDMA_PREF = RILConstants.NETWORK_MODE_WCDM int NT_MODE_WCDMA_PREF = RILConstants.NETWORK_MODE_WCDM
- int NT_MODE_GSM_ONLY = RILConstants.NETWORK_MODE_GSM_ int NT_MODE_GSM_ONLY = RILConstants.NETWORK_MODE_GSM_
- int NT_MODE_WCDMA_ONLY = RILConstants.NETWORK_MODE_WCDM int NT_MODE_WCDMA_ONLY = RILConstants.NETWORK_MODE_WCDM
- int NT_MODE_GSM_UMTS = RILConstants.NETWORK_MODE_GSM_ int NT_MODE_GSM_UMTS = RILConstants.NETWORK_MODE_GSM_
- > int NT_MODE_LTE_GSM_WCDMA= RILConstants.NETWORK_MODE_LTE_
- int NT_MODE_CDMA = RILConstants.NETWORK_MODE_CDMA int NT_MODE_CDMA = RILConstants.NETWORK_MODE_CDMA
- int NT_MODE_CDMA_NO_EVDO = RILConstants.NETWORK_MODE_CDMA int NT_MODE_CDMA_NO_EVDO = RILConstants.NETWORK_MODE_CDMA
- int NT_MODE_EVDO_NO_CDMA = RILConstants.NETWORK_MODE_EVDO int NT_MODE_EVDO_NO_CDMA = RILConstants.NETWORK_MODE_EVDO
- int NT_MODE_GLOBAL = RILConstants.NETWORK_MODE_GLOB int NT_MODE_GLOBAL = RILConstants.NETWORK_MODE_GLOB
- > int NT_MODE_LTE_CDMA_EVDO = RILConstants.NETWORK_MODE_LTE
- > int NT_MODE_LTE_CMDA_EVDO_GSM_WCDMA = RILConstants.NETWOR
- int NT_MODE_LTE_ONLY = RILConstants.NETWORK_MODE_LTE_ int NT_MODE_LTE_ONLY = RILConstants.NETWORK_MODE_LTE_
- int PREFERRED_NT_MODE = RILConstants.PREFERRED_NETWORK int PREFERRED_NT_MODE = RILConstants.PREFERRED_NETWORK
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- int NT_MODE_GEMINI = RILConstants.NETWORK_MODE_GEMI <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- // Used for CDMA roaming mode // Used for CDMA roaming mode
- static final int CDMA_RM_HOME = 0; // Home Networ static final int CDMA_RM_HOME = 0; // Home Networ
- static final int CDMA_RM_AFFILIATED = 1; // Roaming an static final int CDMA_RM_AFFILIATED = 1; // Roaming an
- static final int CDMA_RM_ANY = 2; // Roaming on static final int CDMA_RM_ANY = 2; // Roaming on
- // Used for CDMA subscription mode // Used for CDMA subscription mode
- static final int CDMA_SUBSCRIPTION_RUIM_SIM = 0; // RUIM/ static final int CDMA_SUBSCRIPTION_RUIM_SIM = 0; // RUIM/
- static final int CDMA_SUBSCRIPTION_NV = 1; // NV -> static final int CDMA_SUBSCRIPTION_NV = 1; // NV ->
- static final int PREFERRED_CDMA_SUBSCRIPTION = CDMA_SUBSC static final int PREFERRED_CDMA_SUBSCRIPTION = CDMA_SUBSC
- static final int TTY_MODE_OFF = 0; static final int TTY_MODE_OFF = 0;
- static final int TTY_MODE_FULL = 1; static final int TTY_MODE_FULL = 1;
- static final int TTY_MODE_HCO = 2; static final int TTY_MODE_HCO = 2;
- static final int TTY_MODE_VCO = 3; static final int TTY_MODE_VCO = 3;
- /** /**
- * CDMA OTA PROVISION STATUS, the same as RIL_CDMA_OTA_St * CDMA OTA PROVISION STATUS, the same as RIL_CDMA_OTA_St
- */ */
- public static final int CDMA_OTA_PROVISION_STATUS_SPL_UNL public static final int CDMA_OTA_PROVISION_STATUS_SPL_UNL
- public static final int CDMA_OTA_PROVISION_STATUS_SPC_RET public static final int CDMA_OTA_PROVISION_STATUS_SPC_RET
- public static final int CDMA_OTA_PROVISION_STATUS_A_KEY_E public static final int CDMA_OTA_PROVISION_STATUS_A_KEY_E
- public static final int CDMA_OTA_PROVISION_STATUS_SSD_UPD public static final int CDMA_OTA_PROVISION_STATUS_SSD_UPD
- public static final int CDMA_OTA_PROVISION_STATUS_NAM_DOW public static final int CDMA_OTA_PROVISION_STATUS_NAM_DOW
- public static final int CDMA_OTA_PROVISION_STATUS_MDN_DOW public static final int CDMA_OTA_PROVISION_STATUS_MDN_DOW
- public static final int CDMA_OTA_PROVISION_STATUS_IMSI_DO public static final int CDMA_OTA_PROVISION_STATUS_IMSI_DO
- public static final int CDMA_OTA_PROVISION_STATUS_PRL_DOW public static final int CDMA_OTA_PROVISION_STATUS_PRL_DOW
- public static final int CDMA_OTA_PROVISION_STATUS_COMMITT public static final int CDMA_OTA_PROVISION_STATUS_COMMITT
- public static final int CDMA_OTA_PROVISION_STATUS_OTAPA_S public static final int CDMA_OTA_PROVISION_STATUS_OTAPA_S
- public static final int CDMA_OTA_PROVISION_STATUS_OTAPA_S public static final int CDMA_OTA_PROVISION_STATUS_OTAPA_S
- public static final int CDMA_OTA_PROVISION_STATUS_OTAPA_A public static final int CDMA_OTA_PROVISION_STATUS_OTAPA_A
- //MTK-START [mtk04070][111117][ALPS00093395]MTK added <
- /** <
- * SIM ID for GEMINI <
- */ <
- public static final int GEMINI_SIM_1 = 0; <
- public static final int GEMINI_SIM_2 = 1; <
- public static final int GEMINI_SIP_CALL = -1; //MTK added <
- public static final String GEMINI_SIM_ID_KEY = "simId"; <
- public static final String MULTI_SIM_ID_KEY = "simid"; <
- public static final String GEMINI_DEFAULT_SIM_PROP = "per <
- /** UNKNOWN, invalid value */ <
- public static final int SIM_INDICATOR_UNKNOWN = -1; <
- /** ABSENT, no SIM/USIM card inserted for this phone */ <
- public static final int SIM_INDICATOR_ABSENT = 0; <
- /** RADIOOFF, has SIM/USIM inserted but not in use . */ <
- public static final int SIM_INDICATOR_RADIOOFF = 1; <
- /** LOCKED, has SIM/USIM inserted and the SIM/USIM has b <
- public static final int SIM_INDICATOR_LOCKED = 2; <
- /** INVALID : has SIM/USIM inserted and not be locked <
- public static final int SIM_INDICATOR_INVALID = 3; <
- /** SEARCHING : has SIM/USIM inserted and SIM/USIM st <
- public static final int SIM_INDICATOR_SEARCHING = 4; <
- /** NORMAL = has SIM/USIM inserted and in normal serv <
- public static final int SIM_INDICATOR_NORMAL = 5; <
- /** ROAMING : has SIM/USIM inserted and in roaming servic <
- public static final int SIM_INDICATOR_ROAMING = 6; <
- /** CONNECTED : has SIM/USIM inserted and in normal s <
- public static final int SIM_INDICATOR_CONNECTED = 7; <
- /** ROAMINGCONNECTED = has SIM/USIM inserted and in r <
- public static final int SIM_INDICATOR_ROAMINGCONNECTED = <
- <
- public static final String GEMINI_DEFAULT_SIM_MODE = "per <
- <
- public static final String GEMINI_GPRS_TRANSFER_TYPE = "g <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK added <
- <
- //via support start <
- //for uim status <
- static final int UIM_STATUS_NO_CARD_INSERTED = 0; <
- static final int UIM_STATUS_CARD_INSERTED = 1; <
- //via support end <
- /** /**
- * Get the current ServiceState. Use * Get the current ServiceState. Use
- * <code>registerForServiceStateChanged</code> to be info * <code>registerForServiceStateChanged</code> to be info
- * updates. * updates.
- */ */
- ServiceState getServiceState(); ServiceState getServiceState();
- /** /**
- * Get the current CellLocation. * Get the current CellLocation.
- */ */
- CellLocation getCellLocation(); CellLocation getCellLocation();
- /** /**
- * Get the current for the default apn DataState. No chan * Get the current for the default apn DataState. No chan
- * exists at this interface -- use * exists at this interface -- use
- * {@link android.telephony.PhoneStateListener} instead. * {@link android.telephony.PhoneStateListener} instead.
- */ */
- DataState getDataConnectionState(); DataState getDataConnectionState();
- /** /**
- * Get the current DataState. No change notification exis * Get the current DataState. No change notification exis
- * interface -- use * interface -- use
- * {@link android.telephony.PhoneStateListener} instead. * {@link android.telephony.PhoneStateListener} instead.
- * @param apnType specify for which apn to get connection * @param apnType specify for which apn to get connection
- */ */
- DataState getDataConnectionState(String apnType); DataState getDataConnectionState(String apnType);
- /** /**
- * Get the current DataActivityState. No change notificat * Get the current DataActivityState. No change notificat
- * interface -- use * interface -- use
- * {@link android.telephony.TelephonyManager} instead. * {@link android.telephony.TelephonyManager} instead.
- */ */
- DataActivityState getDataActivityState(); DataActivityState getDataActivityState();
- /** /**
- * Gets the context for the phone, as set at initializati * Gets the context for the phone, as set at initializati
- */ */
- Context getContext(); Context getContext();
- /** /**
- * Disables the DNS check (i.e., allows "0.0.0.0"). * Disables the DNS check (i.e., allows "0.0.0.0").
- * Useful for lab testing environment. * Useful for lab testing environment.
- * @param b true disables the check, false enables. * @param b true disables the check, false enables.
- */ */
- void disableDnsCheck(boolean b); void disableDnsCheck(boolean b);
- /** /**
- * Returns true if the DNS check is currently disabled. * Returns true if the DNS check is currently disabled.
- */ */
- boolean isDnsCheckDisabled(); boolean isDnsCheckDisabled();
- /** /**
- * Get current coarse-grained voice call state. * Get current coarse-grained voice call state.
- * Use {@link #registerForPreciseCallStateChanged(Handler * Use {@link #registerForPreciseCallStateChanged(Handler
- * registerForPreciseCallStateChanged()} for change notif * registerForPreciseCallStateChanged()} for change notif
- * If the phone has an active call and call waiting occur * If the phone has an active call and call waiting occur
- * then the phone state is RINGING not OFFHOOK * then the phone state is RINGING not OFFHOOK
- * <strong>Note:</strong> * <strong>Note:</strong>
- * This registration point provides notification of finer * This registration point provides notification of finer
- * changes.<p> * changes.<p>
- * *
- * @return Return the current call state. <
- */ */
- State getState(); State getState();
- /** /**
- * Returns a string identifier for this phone interface f * Returns a string identifier for this phone interface f
- * outside the phone app process. * outside the phone app process.
- * @return The string name. * @return The string name.
- */ */
- String getPhoneName(); String getPhoneName();
- /** /**
- * Return a numerical identifier for the phone radio inte * Return a numerical identifier for the phone radio inte
- * @return PHONE_TYPE_XXX as defined above. * @return PHONE_TYPE_XXX as defined above.
- */ */
- int getPhoneType(); int getPhoneType();
- /** /**
- * Returns an array of string identifiers for the APN typ * Returns an array of string identifiers for the APN typ
- * currently active. * currently active.
- * @return The string array will always return at least * @return The string array will always return at least
- * TODO: Revisit if we always should return at least one * TODO: Revisit if we always should return at least one
- */ */
- String[] getActiveApnTypes(); String[] getActiveApnTypes();
- /** /**
- * Returns string for the active APN host. * Returns string for the active APN host.
- * @return type as a string or null if none. * @return type as a string or null if none.
- */ */
- String getActiveApnHost(String apnType); String getActiveApnHost(String apnType);
- /** /**
- * Return the LinkProperties for the named apn or null if * Return the LinkProperties for the named apn or null if
- */ */
- LinkProperties getLinkProperties(String apnType); LinkProperties getLinkProperties(String apnType);
- /** /**
- * Return the LinkCapabilities * Return the LinkCapabilities
- */ */
- LinkCapabilities getLinkCapabilities(String apnType); LinkCapabilities getLinkCapabilities(String apnType);
- /** /**
- * Get current signal strength. No change notification av * Get current signal strength. No change notification av
- * interface. Use <code>PhoneStateNotifier</code> or an e * interface. Use <code>PhoneStateNotifier</code> or an e
- * An ASU is 0-31 or -1 if unknown (for GSM, dBm = -113 - * An ASU is 0-31 or -1 if unknown (for GSM, dBm = -113 -
- * The following special values are defined:</p> * The following special values are defined:</p>
- * <ul><li>0 means "-113 dBm or less".</li> * <ul><li>0 means "-113 dBm or less".</li>
- * <li>31 means "-51 dBm or greater".</li></ul> * <li>31 means "-51 dBm or greater".</li></ul>
- * *
- * @return Current signal strength as SignalStrength * @return Current signal strength as SignalStrength
- */ */
- SignalStrength getSignalStrength(); SignalStrength getSignalStrength();
- /** /**
- * Notifies when a previously untracked non-ringing/waiti * Notifies when a previously untracked non-ringing/waiti
- * This is likely due to some other entity (eg, SIM card * This is likely due to some other entity (eg, SIM card
- */ */
- void registerForUnknownConnection(Handler h, int what, Ob void registerForUnknownConnection(Handler h, int what, Ob
- /** /**
- * Unregisters for unknown connection notifications. * Unregisters for unknown connection notifications.
- */ */
- void unregisterForUnknownConnection(Handler h); void unregisterForUnknownConnection(Handler h);
- /** /**
- * Register for getting notifications for change in the C * Register for getting notifications for change in the C
- * This is called PreciseCallState because the call state * This is called PreciseCallState because the call state
- * {@link Phone.State} which can be obtained using the {@ * {@link Phone.State} which can be obtained using the {@
- * *
- * Resulting events will have an AsyncResult in <code>Mes * Resulting events will have an AsyncResult in <code>Mes
- * AsyncResult.userData will be set to the obj argument h * AsyncResult.userData will be set to the obj argument h
- * The <em>h</em> parameter is held only by a weak refere * The <em>h</em> parameter is held only by a weak refere
- * <
- * @param h Handler object to receive call state chang <
- * @param what What code of message when delivered. <
- * @param obj Placed in Message.obj. <
- */ */
- void registerForPreciseCallStateChanged(Handler h, int wh void registerForPreciseCallStateChanged(Handler h, int wh
- /** /**
- * Unregisters for voice call state change notifications. * Unregisters for voice call state change notifications.
- * Extraneous calls are tolerated silently. * Extraneous calls are tolerated silently.
- * <
- * @param h Handler to be removed from the registrant lis <
- */ */
- void unregisterForPreciseCallStateChanged(Handler h); void unregisterForPreciseCallStateChanged(Handler h);
- /** /**
- * Notifies when a new ringing or waiting connection has * Notifies when a new ringing or waiting connection has
- * *
- * Messages received from this: * Messages received from this:
- * Message.obj will be an AsyncResult * Message.obj will be an AsyncResult
- * AsyncResult.userObj = obj * AsyncResult.userObj = obj
- * AsyncResult.result = a Connection. <p> * AsyncResult.result = a Connection. <p>
- * Please check Connection.isRinging() to make sure the * Please check Connection.isRinging() to make sure the
- * has not dropped since this message was posted. * has not dropped since this message was posted.
- * If Connection.isRinging() is true, then * If Connection.isRinging() is true, then
- * Connection.getCall() == Phone.getRingingCall() * Connection.getCall() == Phone.getRingingCall()
- * <
- * @param h Handler object to receive call state chang <
- * @param what What code of message when delivered. <
- * @param obj Placed in Message.obj. <
- */ */
- void registerForNewRingingConnection(Handler h, int what, void registerForNewRingingConnection(Handler h, int what,
- /** /**
- * Unregisters for new ringing connection notification. * Unregisters for new ringing connection notification.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * <
- * @param h Handler to be removed from the registrant lis <
- */ */
- void unregisterForNewRingingConnection(Handler h); void unregisterForNewRingingConnection(Handler h);
- /** /**
- * Notifies when an incoming call rings.<p> * Notifies when an incoming call rings.<p>
- * *
- * Messages received from this: * Messages received from this:
- * Message.obj will be an AsyncResult * Message.obj will be an AsyncResult
- * AsyncResult.userObj = obj * AsyncResult.userObj = obj
- * AsyncResult.result = a Connection. <p> * AsyncResult.result = a Connection. <p>
- * <
- * @param h Handler object to receive call state chang <
- * @param what What code of message when delivered. <
- * @param obj Placed in Message.obj. <
- */ */
- void registerForIncomingRing(Handler h, int what, Object void registerForIncomingRing(Handler h, int what, Object
- /** /**
- * Unregisters for ring notification. * Unregisters for ring notification.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * <
- * @param h Handler to be removed from the registrant lis <
- */ */
- void unregisterForIncomingRing(Handler h); void unregisterForIncomingRing(Handler h);
- /** /**
- * Notifies when out-band ringback tone is needed.<p> * Notifies when out-band ringback tone is needed.<p>
- * *
- * Messages received from this: * Messages received from this:
- * Message.obj will be an AsyncResult * Message.obj will be an AsyncResult
- * AsyncResult.userObj = obj * AsyncResult.userObj = obj
- * AsyncResult.result = boolean, true to start play ring * AsyncResult.result = boolean, true to start play ring
- * and false to stop. <p> * and false to stop. <p>
- * <
- * @param h Handler object to receive call state chang <
- * @param what What code of message when delivered. <
- * @param obj Placed in Message.obj. <
- */ */
- void registerForRingbackTone(Handler h, int what, Object void registerForRingbackTone(Handler h, int what, Object
- /** /**
- * Unregisters for ringback tone notification. * Unregisters for ringback tone notification.
- * <
- * @param h Handler to be removed from the registrant lis <
- */ */
- void unregisterForRingbackTone(Handler h); void unregisterForRingbackTone(Handler h);
- /** /**
- * Registers the handler to reset the uplink mute state t * Registers the handler to reset the uplink mute state t
- * uplink audio. * uplink audio.
- * <
- * @param h Handler object to receive call state chang <
- * @param what What code of message when delivered. <
- * @param obj Placed in Message.obj. <
- */ */
- void registerForResendIncallMute(Handler h, int what, Obj void registerForResendIncallMute(Handler h, int what, Obj
- /** /**
- * Unregisters for resend incall mute notifications. * Unregisters for resend incall mute notifications.
- * <
- * @param h Handler to be removed from the registrant lis <
- */ */
- void unregisterForResendIncallMute(Handler h); void unregisterForResendIncallMute(Handler h);
- /** /**
- * Notifies when a voice connection has disconnected, eit * Notifies when a voice connection has disconnected, eit
- * or remote hangup or error. * or remote hangup or error.
- * *
- * Messages received from this will have the following m * Messages received from this will have the following m
- * <ul><li>Message.obj will be an AsyncResult</li> * <ul><li>Message.obj will be an AsyncResult</li>
- * <li>AsyncResult.userObj = obj</li> * <li>AsyncResult.userObj = obj</li>
- * <li>AsyncResult.result = a Connection object that is * <li>AsyncResult.result = a Connection object that is
- * no longer connected.</li></ul> * no longer connected.</li></ul>
- * <
- * @param h Handler object to receive call state chang <
- * @param what What code of message when delivered. <
- * @param obj Placed in Message.obj. <
- */ */
- void registerForDisconnect(Handler h, int what, Object ob void registerForDisconnect(Handler h, int what, Object ob
- /** /**
- * Unregisters for voice disconnection notification. * Unregisters for voice disconnection notification.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * <
- * @param h Handler to be removed from the registrant lis <
- */ */
- void unregisterForDisconnect(Handler h); void unregisterForDisconnect(Handler h);
- /** /**
- * Register for notifications of initiation of a new MMI * Register for notifications of initiation of a new MMI
- * MMI codes for GSM are discussed in 3GPP TS 22.030.<p> * MMI codes for GSM are discussed in 3GPP TS 22.030.<p>
- * *
- * Example: If Phone.dial is called with "*#31#", then th * Example: If Phone.dial is called with "*#31#", then th
- * be notified here.<p> * be notified here.<p>
- * *
- * The returned <code>Message.obj</code> will contain an * The returned <code>Message.obj</code> will contain an
- * *
- * <code>obj.result</code> will be an "MmiCode" object. * <code>obj.result</code> will be an "MmiCode" object.
- * <
- * @param h Handler object to receive call state chang <
- * @param what What code of message when delivered. <
- * @param obj Placed in Message.obj. <
- */ */
- void registerForMmiInitiate(Handler h, int what, Object o void registerForMmiInitiate(Handler h, int what, Object o
- /** /**
- * Unregisters for new MMI initiate notification. * Unregisters for new MMI initiate notification.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * <
- * @param h Handler to be removed from the registrant lis <
- */ */
- void unregisterForMmiInitiate(Handler h); void unregisterForMmiInitiate(Handler h);
- /** /**
- * Register for notifications that an MMI request has com * Register for notifications that an MMI request has com
- * its network activity and is in its final state. This m * its network activity and is in its final state. This m
- * of COMPLETE, FAILED, or CANCELLED. * of COMPLETE, FAILED, or CANCELLED.
- * *
- * <code>Message.obj</code> will contain an AsyncResult. * <code>Message.obj</code> will contain an AsyncResult.
- * <code>obj.result</code> will be an "MmiCode" object * <code>obj.result</code> will be an "MmiCode" object
- * <
- * @param h Handler object to receive call state chang <
- * @param what What code of message when delivered. <
- * @param obj Placed in Message.obj. <
- */ */
- void registerForMmiComplete(Handler h, int what, Object o void registerForMmiComplete(Handler h, int what, Object o
- /** /**
- * Unregisters for MMI complete notification. * Unregisters for MMI complete notification.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * <
- * @param h Handler to be removed from the registrant lis <
- */ */
- void unregisterForMmiComplete(Handler h); void unregisterForMmiComplete(Handler h);
- /** /**
- * Registration point for Ecm timer reset * Registration point for Ecm timer reset
- * @param h handler to notify * @param h handler to notify
- * @param what user-defined message code * @param what user-defined message code
- * @param obj placed in Message.obj * @param obj placed in Message.obj
- */ */
- public void registerForEcmTimerReset(Handler h, int what, public void registerForEcmTimerReset(Handler h, int what,
- /** /**
- * Unregister for notification for Ecm timer reset * Unregister for notification for Ecm timer reset
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- public void unregisterForEcmTimerReset(Handler h); public void unregisterForEcmTimerReset(Handler h);
- /** /**
- * Returns a list of MMI codes that are pending. (They ha * Returns a list of MMI codes that are pending. (They ha
- * but have not yet completed). * but have not yet completed).
- * Presently there is only ever one. * Presently there is only ever one.
- * Use <code>registerForMmiInitiate</code> * Use <code>registerForMmiInitiate</code>
- * and <code>registerForMmiComplete</code> for change not * and <code>registerForMmiComplete</code> for change not
- * <
- * @return Return a list of pended MMI codes <
- */ */
- public List<? extends MmiCode> getPendingMmiCodes(); public List<? extends MmiCode> getPendingMmiCodes();
- /** /**
- * Sends user response to a USSD REQUEST message. An Mmi * Sends user response to a USSD REQUEST message. An Mmi
- * representing this response is sent to handlers registe * representing this response is sent to handlers registe
- * registerForMmiInitiate. * registerForMmiInitiate.
- * *
- * @param ussdMessge Message to send in the response. * @param ussdMessge Message to send in the response.
- */ */
- public void sendUssdResponse(String ussdMessge); public void sendUssdResponse(String ussdMessge);
- /** /**
- * Register for ServiceState changed. * Register for ServiceState changed.
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a ServiceState instance * AsyncResult.result will be a ServiceState instance
- */ */
- void registerForServiceStateChanged(Handler h, int what, void registerForServiceStateChanged(Handler h, int what,
- /** /**
- * Unregisters for ServiceStateChange notification. * Unregisters for ServiceStateChange notification.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- */ */
- void unregisterForServiceStateChanged(Handler h); void unregisterForServiceStateChanged(Handler h);
- /** /**
- * Register for Supplementary Service notifications from * Register for Supplementary Service notifications from
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a SuppServiceNotification i * AsyncResult.result will be a SuppServiceNotification i
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForSuppServiceNotification(Handler h, int wh void registerForSuppServiceNotification(Handler h, int wh
- /** /**
- * Unregisters for Supplementary Service notifications. * Unregisters for Supplementary Service notifications.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForSuppServiceNotification(Handler h); void unregisterForSuppServiceNotification(Handler h);
- /** /**
- * Register for notifications when a supplementary servic * Register for notifications when a supplementary servic
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForSuppServiceFailed(Handler h, int what, Ob void registerForSuppServiceFailed(Handler h, int what, Ob
- /** /**
- * Unregister for notifications when a supplementary serv * Unregister for notifications when a supplementary serv
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForSuppServiceFailed(Handler h); void unregisterForSuppServiceFailed(Handler h);
- /** /**
- * Register for notifications when a sInCall VoicePrivacy * Register for notifications when a sInCall VoicePrivacy
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForInCallVoicePrivacyOn(Handler h, int what, void registerForInCallVoicePrivacyOn(Handler h, int what,
- /** /**
- * Unegister for notifications when a sInCall VoicePrivac * Unegister for notifications when a sInCall VoicePrivac
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForInCallVoicePrivacyOn(Handler h); void unregisterForInCallVoicePrivacyOn(Handler h);
- /** /**
- * Register for notifications when a sInCall VoicePrivacy * Register for notifications when a sInCall VoicePrivacy
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForInCallVoicePrivacyOff(Handler h, int what void registerForInCallVoicePrivacyOff(Handler h, int what
- /** /**
- * Unegister for notifications when a sInCall VoicePrivac * Unegister for notifications when a sInCall VoicePrivac
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForInCallVoicePrivacyOff(Handler h); void unregisterForInCallVoicePrivacyOff(Handler h);
- /** /**
- * Register for notifications when CDMA OTA Provision sta * Register for notifications when CDMA OTA Provision sta
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForCdmaOtaStatusChange(Handler h, int what, void registerForCdmaOtaStatusChange(Handler h, int what,
- /** /**
- * Unegister for notifications when CDMA OTA Provision st * Unegister for notifications when CDMA OTA Provision st
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForCdmaOtaStatusChange(Handler h); void unregisterForCdmaOtaStatusChange(Handler h);
- /** /**
- * Registration point for subscription info ready * Registration point for subscription info ready
- * @param h handler to notify * @param h handler to notify
- * @param what what code of message when delivered * @param what what code of message when delivered
- * @param obj placed in Message.obj * @param obj placed in Message.obj
- */ */
- public void registerForSubscriptionInfoReady(Handler h, i public void registerForSubscriptionInfoReady(Handler h, i
- /** /**
- * Unregister for notifications for subscription info * Unregister for notifications for subscription info
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- public void unregisterForSubscriptionInfoReady(Handler h) public void unregisterForSubscriptionInfoReady(Handler h)
- /** /**
- * Returns SIM record load state. Use * Returns SIM record load state. Use
- * <code>getSimCard().registerForReady()</code> for chang * <code>getSimCard().registerForReady()</code> for chang
- * *
- * @return true if records from the SIM have been loaded * @return true if records from the SIM have been loaded
- * available (if applicable). If not applicable to the un * available (if applicable). If not applicable to the un
- * technology, returns true as well. * technology, returns true as well.
- */ */
- boolean getIccRecordsLoaded(); boolean getIccRecordsLoaded();
- /** /**
- * Returns the ICC card interface for this phone, or null * Returns the ICC card interface for this phone, or null
- * if not applicable to underlying technology. * if not applicable to underlying technology.
- */ */
- IccCard getIccCard(); IccCard getIccCard();
- /** /**
- * Answers a ringing or waiting call. Active calls, if an * Answers a ringing or waiting call. Active calls, if an
- * Answering occurs asynchronously, and final notificatio * Answering occurs asynchronously, and final notificatio
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * *
- * @exception CallStateException when no call is ringing * @exception CallStateException when no call is ringing
- */ */
- void acceptCall() throws CallStateException; void acceptCall() throws CallStateException;
- /** /**
- * Reject (ignore) a ringing call. In GSM, this means UDU * Reject (ignore) a ringing call. In GSM, this means UDU
- * (User Determined User Busy). Reject occurs asynchronou * (User Determined User Busy). Reject occurs asynchronou
- * and final notification occurs via * and final notification occurs via
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * *
- * @exception CallStateException when no call is ringing * @exception CallStateException when no call is ringing
- */ */
- void rejectCall() throws CallStateException; void rejectCall() throws CallStateException;
- /** /**
- * Places any active calls on hold, and makes any held ca * Places any active calls on hold, and makes any held ca
- * active. Switch occurs asynchronously and may fail. * active. Switch occurs asynchronously and may fail.
- * Final notification occurs via * Final notification occurs via
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * *
- * @exception CallStateException if a call is ringing, wa * @exception CallStateException if a call is ringing, wa
- * dialing/alerting. In these cases, this operation may n * dialing/alerting. In these cases, this operation may n
- */ */
- void switchHoldingAndActive() throws CallStateException; void switchHoldingAndActive() throws CallStateException;
- /** /**
- * Whether or not the phone can conference in the current * Whether or not the phone can conference in the current
- * state--that is, one call holding and one call active. * state--that is, one call holding and one call active.
- * @return true if the phone can conference; false otherw * @return true if the phone can conference; false otherw
- */ */
- boolean canConference(); boolean canConference();
- /** /**
- * Conferences holding and active. Conference occurs asyn * Conferences holding and active. Conference occurs asyn
- * and may fail. Final notification occurs via * and may fail. Final notification occurs via
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * *
- * @exception CallStateException if canConference() would * @exception CallStateException if canConference() would
- * In these cases, this operation may not be performed. * In these cases, this operation may not be performed.
- */ */
- void conference() throws CallStateException; void conference() throws CallStateException;
- /** /**
- * Enable or disable enhanced Voice Privacy (VP). If enha * Enable or disable enhanced Voice Privacy (VP). If enha
- * disabled, normal VP is enabled. * disabled, normal VP is enabled.
- * *
- * @param enable whether true or false to enable or disab * @param enable whether true or false to enable or disab
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void enableEnhancedVoicePrivacy(boolean enable, Message o void enableEnhancedVoicePrivacy(boolean enable, Message o
- /** /**
- * Get the currently set Voice Privacy (VP) mode. * Get the currently set Voice Privacy (VP) mode.
- * *
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void getEnhancedVoicePrivacy(Message onComplete); void getEnhancedVoicePrivacy(Message onComplete);
- /** /**
- * Whether or not the phone can do explicit call transfer * Whether or not the phone can do explicit call transfer
- * phone state--that is, one call holding and one call ac * phone state--that is, one call holding and one call ac
- * @return true if the phone can do explicit call transfe * @return true if the phone can do explicit call transfe
- */ */
- boolean canTransfer(); boolean canTransfer();
- /** /**
- * Connects the two calls and disconnects the subscriber * Connects the two calls and disconnects the subscriber
- * Explicit Call Transfer occurs asynchronously * Explicit Call Transfer occurs asynchronously
- * and may fail. Final notification occurs via * and may fail. Final notification occurs via
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * *
- * @exception CallStateException if canTransfer() would r * @exception CallStateException if canTransfer() would r
- * In these cases, this operation may not be performed. * In these cases, this operation may not be performed.
- */ */
- void explicitCallTransfer() throws CallStateException; void explicitCallTransfer() throws CallStateException;
- /** /**
- * Clears all DISCONNECTED connections from Call connecti * Clears all DISCONNECTED connections from Call connecti
- * Calls that were in the DISCONNECTED state become idle. * Calls that were in the DISCONNECTED state become idle.
- * synchronously. * synchronously.
- */ */
- void clearDisconnected(); void clearDisconnected();
- /** /**
- * Gets the foreground call object, which represents all * Gets the foreground call object, which represents all
- * are dialing or active (all connections * are dialing or active (all connections
- * that have their audio path connected).<p> * that have their audio path connected).<p>
- * *
- * The foreground call is a singleton object. It is const * The foreground call is a singleton object. It is const
- * of this phone. It is never null.<p> * of this phone. It is never null.<p>
- * *
- * The foreground call will only ever be in one of these * The foreground call will only ever be in one of these
- * IDLE, ACTIVE, DIALING, ALERTING, or DISCONNECTED. * IDLE, ACTIVE, DIALING, ALERTING, or DISCONNECTED.
- * *
- * State change notification is available via * State change notification is available via
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * <
- * @return Return foreground call object. <
- */ */
- Call getForegroundCall(); Call getForegroundCall();
- /** /**
- * Gets the background call object, which represents all * Gets the background call object, which represents all
- * are holding (all connections that have been accepted o * are holding (all connections that have been accepted o
- * do not have their audio path connected). <p> * do not have their audio path connected). <p>
- * *
- * The background call is a singleton object. It is const * The background call is a singleton object. It is const
- * of this phone object . It is never null.<p> * of this phone object . It is never null.<p>
- * *
- * The background call will only ever be in one of these * The background call will only ever be in one of these
- * IDLE, HOLDING or DISCONNECTED. * IDLE, HOLDING or DISCONNECTED.
- * *
- * State change notification is available via * State change notification is available via
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * <
- * @return Return background call object. <
- */ */
- Call getBackgroundCall(); Call getBackgroundCall();
- /** /**
- * Gets the ringing call object, which represents an inco * Gets the ringing call object, which represents an inco
- * connection (if present) that is pending answer/accept. * connection (if present) that is pending answer/accept.
- * may be RINGING or WAITING, and there may be only one.) * may be RINGING or WAITING, and there may be only one.)
- * The ringing call is a singleton object. It is constant * The ringing call is a singleton object. It is constant
- * of this phone. It is never null.<p> * of this phone. It is never null.<p>
- * *
- * The ringing call will only ever be in one of these sta * The ringing call will only ever be in one of these sta
- * IDLE, INCOMING, WAITING or DISCONNECTED. * IDLE, INCOMING, WAITING or DISCONNECTED.
- * *
- * State change notification is available via * State change notification is available via
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * <
- * @return Return ringing call object. <
- */ */
- Call getRingingCall(); Call getRingingCall();
- /** /**
- * Initiate a new voice connection. This happens asynchro * Initiate a new voice connection. This happens asynchro
- * cannot assume the audio path is connected (or a call i * cannot assume the audio path is connected (or a call i
- * assigned) until PhoneStateChanged notification has occ * assigned) until PhoneStateChanged notification has occ
- * *
- * @exception CallStateException if a new outgoing call i * @exception CallStateException if a new outgoing call i
- * possible because no more call slots exist or a call ex * possible because no more call slots exist or a call ex
- * dialing, alerting, ringing, or waiting. Other errors * dialing, alerting, ringing, or waiting. Other errors
- * handled asynchronously. * handled asynchronously.
- * <
- * @param dialString Phone number to be dialed out. <
- * <
- * @return Return connection object when the call is dial <
- */ */
- Connection dial(String dialString) throws CallStateExcept Connection dial(String dialString) throws CallStateExcept
- /** /**
- * Initiate a new voice connection with supplementary Use * Initiate a new voice connection with supplementary Use
- * Information. This happens asynchronously, so you canno * Information. This happens asynchronously, so you canno
- * path is connected (or a call index has been assigned) * path is connected (or a call index has been assigned)
- * PhoneStateChanged notification has occurred. * PhoneStateChanged notification has occurred.
- * *
- * @exception CallStateException if a new outgoing call i * @exception CallStateException if a new outgoing call i
- * possible because no more call slots exi * possible because no more call slots exi
- * that is dialing, alerting, ringing, or * that is dialing, alerting, ringing, or
- * errors are handled asynchronously. * errors are handled asynchronously.
- * <
- * @param dialString Phone number to be dialed out. <
- * @param uusInfo User to user information. <
- * <
- * @return Return connection object when the call is dial <
- */ */
- Connection dial(String dialString, UUSInfo uusInfo) throw Connection dial(String dialString, UUSInfo uusInfo) throw
- /** /**
- * Handles PIN MMI commands (PIN/PIN2/PUK/PUK2), which ar * Handles PIN MMI commands (PIN/PIN2/PUK/PUK2), which ar
- * without SEND (so <code>dial</code> is not appropriate) * without SEND (so <code>dial</code> is not appropriate)
- * *
- * @param dialString the MMI command to be executed. * @param dialString the MMI command to be executed.
- * @return true if MMI command is executed. * @return true if MMI command is executed.
- */ */
- boolean handlePinMmi(String dialString); boolean handlePinMmi(String dialString);
- /** /**
- * Handles in-call MMI commands. While in a call, or whil * Handles in-call MMI commands. While in a call, or whil
- * call, use this to execute MMI commands. * call, use this to execute MMI commands.
- * see 3GPP 20.030, section 6.5.5.1 for specs on the allo * see 3GPP 20.030, section 6.5.5.1 for specs on the allo
- * *
- * @param command the MMI command to be executed. * @param command the MMI command to be executed.
- * @return true if the MMI command is executed. * @return true if the MMI command is executed.
- * @throws CallStateException * @throws CallStateException
- */ */
- boolean handleInCallMmiCommands(String command) throws Ca boolean handleInCallMmiCommands(String command) throws Ca
- /** /**
- * Play a DTMF tone on the active call. Ignored if there * Play a DTMF tone on the active call. Ignored if there
- * @param c should be one of 0-9, '*' or '#'. Other value * @param c should be one of 0-9, '*' or '#'. Other value
- * silently ignored. * silently ignored.
- */ */
- void sendDtmf(char c); void sendDtmf(char c);
- /** /**
- * Start to paly a DTMF tone on the active call. Ignored * Start to paly a DTMF tone on the active call. Ignored
- * or there is a playing DTMF tone. * or there is a playing DTMF tone.
- * @param c should be one of 0-9, '*' or '#'. Other value * @param c should be one of 0-9, '*' or '#'. Other value
- * silently ignored. * silently ignored.
- */ */
- void startDtmf(char c); void startDtmf(char c);
- /** /**
- * Stop the playing DTMF tone. Ignored if there is no pla * Stop the playing DTMF tone. Ignored if there is no pla
- * tone or no active call. * tone or no active call.
- */ */
- void stopDtmf(); void stopDtmf();
- /** /**
- * send burst DTMF tone, it can send the string as single * send burst DTMF tone, it can send the string as single
- * ignore if there is no active call or not valid digits * ignore if there is no active call or not valid digits
- * Valid digit means only includes characters ISO-LATIN c * Valid digit means only includes characters ISO-LATIN c
- * The difference between sendDtmf and sendBurstDtmf is s * The difference between sendDtmf and sendBurstDtmf is s
- * this api can send single character and multiple charac * this api can send single character and multiple charac
- * back to caller. * back to caller.
- * *
- * @param dtmfString is string representing the dialing d * @param dtmfString is string representing the dialing d
- * @param on the DTMF ON length in milliseconds, or 0 for * @param on the DTMF ON length in milliseconds, or 0 for
- * @param off the DTMF OFF length in milliseconds, or 0 f * @param off the DTMF OFF length in milliseconds, or 0 f
- * @param onComplete is the callback message when the act * @param onComplete is the callback message when the act
- * *
- */ */
- void sendBurstDtmf(String dtmfString, int on, int off, Me void sendBurstDtmf(String dtmfString, int on, int off, Me
- /** /**
- * Sets the radio power on/off state (off is sometimes * Sets the radio power on/off state (off is sometimes
- * called "airplane mode"). Current state can be gotten v * called "airplane mode"). Current state can be gotten v
- * {@link #getServiceState()}.{@link * {@link #getServiceState()}.{@link
- * android.telephony.ServiceState#getState() getState()}. * android.telephony.ServiceState#getState() getState()}.
- * <strong>Note: </strong>This request is asynchronous. * <strong>Note: </strong>This request is asynchronous.
- * getServiceState().getState() will not change immediate * getServiceState().getState() will not change immediate
- * registerForServiceStateChanged() to find out when the * registerForServiceStateChanged() to find out when the
- * request is complete. * request is complete.
- * *
- * @param power true means "on", false means "off". * @param power true means "on", false means "off".
- */ */
- void setRadioPower(boolean power); void setRadioPower(boolean power);
- //MTK-START [mtk80601][111212][ALPS00093395]IPO feature <
- /** <
- * Sets the radio power on after power off for reset. <
- */ <
- void setRadioPowerOn(); <
- //MTK-END [mtk80601][111212][ALPS00093395]IPO feature <
- /** /**
- * Get voice message waiting indicator status. No change * Get voice message waiting indicator status. No change
- * available on this interface. Use PhoneStateNotifier or * available on this interface. Use PhoneStateNotifier or
- * *
- * @return true if there is a voice message waiting * @return true if there is a voice message waiting
- */ */
- boolean getMessageWaitingIndicator(); boolean getMessageWaitingIndicator();
- /** /**
- * Get voice call forwarding indicator status. No change * Get voice call forwarding indicator status. No change
- * available on this interface. Use PhoneStateNotifier or * available on this interface. Use PhoneStateNotifier or
- * *
- * @return true if there is a voice call forwarding * @return true if there is a voice call forwarding
- */ */
- boolean getCallForwardingIndicator(); boolean getCallForwardingIndicator();
- /** /**
- * Get the line 1 phone number (MSISDN). For CDMA phones, * Get the line 1 phone number (MSISDN). For CDMA phones,
- * and {@link #getMsisdn()} will return the MSISDN on CDM * and {@link #getMsisdn()} will return the MSISDN on CDM
- * *
- * @return phone number. May return null if not * @return phone number. May return null if not
- * available or the SIM is not ready * available or the SIM is not ready
- */ */
- String getLine1Number(); String getLine1Number();
- /** /**
- * Returns the alpha tag associated with the msisdn numbe * Returns the alpha tag associated with the msisdn numbe
- * If there is no alpha tag associated or the record is n * If there is no alpha tag associated or the record is n
- * returns a default localized string. <p> * returns a default localized string. <p>
- */ */
- String getLine1AlphaTag(); String getLine1AlphaTag();
- /** /**
- * Sets the MSISDN phone number in the SIM card. * Sets the MSISDN phone number in the SIM card.
- * *
- * @param alphaTag the alpha tag associated with the MSIS * @param alphaTag the alpha tag associated with the MSIS
- * (see getMsisdnAlphaTag) * (see getMsisdnAlphaTag)
- * @param number the new MSISDN phone number to be set on * @param number the new MSISDN phone number to be set on
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void setLine1Number(String alphaTag, String number, Messa void setLine1Number(String alphaTag, String number, Messa
- /** /**
- * Get the voice mail access phone number. Typically dial * Get the voice mail access phone number. Typically dial
- * user holds the "1" key in the phone app. May return nu * user holds the "1" key in the phone app. May return nu
- * available or the SIM is not ready.<p> * available or the SIM is not ready.<p>
- * <
- * @return Return voice mail number or return null if the <
- */ */
- String getVoiceMailNumber(); String getVoiceMailNumber();
- /** /**
- * Returns unread voicemail count. This count is shown wh * Returns unread voicemail count. This count is shown wh
- * notification is expanded.<p> * notification is expanded.<p>
- */ */
- int getVoiceMessageCount(); int getVoiceMessageCount();
- /** /**
- * Returns the alpha tag associated with the voice mail n * Returns the alpha tag associated with the voice mail n
- * If there is no alpha tag associated or the record is n * If there is no alpha tag associated or the record is n
- * returns a default localized string. <p> * returns a default localized string. <p>
- * *
- * Please use this value instead of some other localized * Please use this value instead of some other localized
- * showing a name for this number in the UI. For example, * showing a name for this number in the UI. For example,
- * entries should show this alpha tag. <p> * entries should show this alpha tag. <p>
- * *
- * Usage of this alpha tag in the UI is a common carrier * Usage of this alpha tag in the UI is a common carrier
- */ */
- String getVoiceMailAlphaTag(); String getVoiceMailAlphaTag();
- /** /**
- * setVoiceMailNumber * setVoiceMailNumber
- * sets the voicemail number in the SIM card. * sets the voicemail number in the SIM card.
- * *
- * @param alphaTag the alpha tag associated with the voic * @param alphaTag the alpha tag associated with the voic
- * (see getVoiceMailAlphaTag) * (see getVoiceMailAlphaTag)
- * @param voiceMailNumber the new voicemail number to be * @param voiceMailNumber the new voicemail number to be
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void setVoiceMailNumber(String alphaTag, void setVoiceMailNumber(String alphaTag,
- String voiceMailNumber, String voiceMailNumber,
- Message onComplete); Message onComplete);
- /** /**
- * getCallForwardingOptions * getCallForwardingOptions
- * gets a call forwarding option. The return value of * gets a call forwarding option. The return value of
- * ((AsyncResult)onComplete.obj) is an array of CallForwa * ((AsyncResult)onComplete.obj) is an array of CallForwa
- * *
- * @param commandInterfaceCFReason is one of the valid ca * @param commandInterfaceCFReason is one of the valid ca
- * CF_REASONS, as defined in * CF_REASONS, as defined in
- * <code>com.android.internal.telephony.CommandsIn * <code>com.android.internal.telephony.CommandsIn
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- * @see com.android.internal.telephony.CallForward * @see com.android.internal.telephony.CallForward
- */ */
- void getCallForwardingOption(int commandInterfaceCFReason void getCallForwardingOption(int commandInterfaceCFReason
- Message onComplete); Message onComplete);
- /** /**
- * setCallForwardingOptions * setCallForwardingOptions
- * sets a call forwarding option. * sets a call forwarding option.
- * *
- * @param commandInterfaceCFReason is one of the valid ca * @param commandInterfaceCFReason is one of the valid ca
- * CF_REASONS, as defined in * CF_REASONS, as defined in
- * <code>com.android.internal.telephony.CommandsIn * <code>com.android.internal.telephony.CommandsIn
- * @param commandInterfaceCFAction is one of the valid ca * @param commandInterfaceCFAction is one of the valid ca
- * CF_ACTIONS, as defined in * CF_ACTIONS, as defined in
- * <code>com.android.internal.telephony.CommandsIn * <code>com.android.internal.telephony.CommandsIn
- * @param dialingNumber is the target phone number to for * @param dialingNumber is the target phone number to for
- * @param timerSeconds is used by CFNRy to indicate the t * @param timerSeconds is used by CFNRy to indicate the t
- * forwarding is attempted. * forwarding is attempted.
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void setCallForwardingOption(int commandInterfaceCFReason void setCallForwardingOption(int commandInterfaceCFReason
- int commandInterfaceCFAction int commandInterfaceCFAction
- String dialingNumber, String dialingNumber,
- int timerSeconds, int timerSeconds,
- Message onComplete); Message onComplete);
- /** /**
- * getOutgoingCallerIdDisplay * getOutgoingCallerIdDisplay
- * gets outgoing caller id display. The return value of * gets outgoing caller id display. The return value of
- * ((AsyncResult)onComplete.obj) is an array of int, with * ((AsyncResult)onComplete.obj) is an array of int, with
- * *
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- * @see com.android.internal.telephony.CommandsInt * @see com.android.internal.telephony.CommandsInt
- */ */
- void getOutgoingCallerIdDisplay(Message onComplete); void getOutgoingCallerIdDisplay(Message onComplete);
- /** /**
- * setOutgoingCallerIdDisplay * setOutgoingCallerIdDisplay
- * sets a call forwarding option. * sets a call forwarding option.
- * *
- * @param commandInterfaceCLIRMode is one of the valid ca * @param commandInterfaceCLIRMode is one of the valid ca
- * modes, as defined in * modes, as defined in
- * <code>com.android.internal.telephony.CommandsIn * <code>com.android.internal.telephony.CommandsIn
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void setOutgoingCallerIdDisplay(int commandInterfaceCLIRM void setOutgoingCallerIdDisplay(int commandInterfaceCLIRM
- Message onComplete); Message onComplete);
- /** /**
- * getCallWaiting * getCallWaiting
- * gets call waiting activation state. The return value o * gets call waiting activation state. The return value o
- * ((AsyncResult)onComplete.obj) is an array of int, with * ((AsyncResult)onComplete.obj) is an array of int, with
- * *
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- * @see com.android.internal.telephony.CommandsInt * @see com.android.internal.telephony.CommandsInt
- */ */
- void getCallWaiting(Message onComplete); void getCallWaiting(Message onComplete);
- /** /**
- * setCallWaiting * setCallWaiting
- * sets a call forwarding option. * sets a call forwarding option.
- * *
- * @param enable is a boolean representing the state that * @param enable is a boolean representing the state that
- * requesting, true for enabled, false for disable * requesting, true for enabled, false for disable
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void setCallWaiting(boolean enable, Message onComplete); void setCallWaiting(boolean enable, Message onComplete);
- /** /**
- * Scan available networks. This method is asynchronous; * Scan available networks. This method is asynchronous;
- * On completion, <code>response.obj</code> is set to an * On completion, <code>response.obj</code> is set to an
- * one of the following members:.<p> * one of the following members:.<p>
- *<ul> *<ul>
- * <li><code>response.obj.result</code> will be a <code>L * <li><code>response.obj.result</code> will be a <code>L
- * <code>OperatorInfo</code> objects, or</li> * <code>OperatorInfo</code> objects, or</li>
- * <li><code>response.obj.exception</code> will be set wi * <li><code>response.obj.exception</code> will be set wi
- * on failure.</li> * on failure.</li>
- * </ul> * </ul>
- */ */
- void getAvailableNetworks(Message response); void getAvailableNetworks(Message response);
- /** /**
- * Switches network selection mode to "automatic", re-sca * Switches network selection mode to "automatic", re-sca
- * re-selecting a network if appropriate. * re-selecting a network if appropriate.
- * *
- * @param response The message to dispatch when the netwo * @param response The message to dispatch when the netwo
- * is complete. * is complete.
- * *
- * @see #selectNetworkManually(OperatorInfo, android.os.M * @see #selectNetworkManually(OperatorInfo, android.os.M
- */ */
- void setNetworkSelectionModeAutomatic(Message response); void setNetworkSelectionModeAutomatic(Message response);
- /** /**
- * Manually selects a network. <code>response</code> is * Manually selects a network. <code>response</code> is
- * dispatched when this is complete. <code>response.obj< * dispatched when this is complete. <code>response.obj<
- * an AsyncResult, and <code>response.obj.exception</code * an AsyncResult, and <code>response.obj.exception</code
- * on failure. * on failure.
- * *
- * @see #setNetworkSelectionModeAutomatic(Message) * @see #setNetworkSelectionModeAutomatic(Message)
- */ */
- void selectNetworkManually(OperatorInfo network, void selectNetworkManually(OperatorInfo network,
- Message response); Message response);
- /** /**
- * Requests to set the preferred network type for search * Requests to set the preferred network type for search
- * (CS/PS domain, RAT, and operation mode) * (CS/PS domain, RAT, and operation mode)
- * @param networkType one of NT_*_TYPE * @param networkType one of NT_*_TYPE
- * @param response is callback message * @param response is callback message
- */ */
- void setPreferredNetworkType(int networkType, Message res void setPreferredNetworkType(int networkType, Message res
- /** /**
- * Query the preferred network type setting * Query the preferred network type setting
- * *
- * @param response is callback message to report one of * @param response is callback message to report one of
- */ */
- void getPreferredNetworkType(Message response); void getPreferredNetworkType(Message response);
- /** /**
- * Gets the default SMSC address. * Gets the default SMSC address.
- * *
- * @param result Callback message contains the SMSC addre * @param result Callback message contains the SMSC addre
- */ */
- void getSmscAddress(Message result); void getSmscAddress(Message result);
- /** /**
- * Sets the default SMSC address. * Sets the default SMSC address.
- * *
- * @param address new SMSC address * @param address new SMSC address
- * @param result Callback message is empty on completion * @param result Callback message is empty on completion
- */ */
- void setSmscAddress(String address, Message result); void setSmscAddress(String address, Message result);
- /** /**
- * Query neighboring cell IDs. <code>response</code> is * Query neighboring cell IDs. <code>response</code> is
- * this is complete. <code>response.obj</code> will be a * this is complete. <code>response.obj</code> will be a
- * and <code>response.obj.exception</code> will be non-nu * and <code>response.obj.exception</code> will be non-nu
- * On success, <code>AsyncResult.result</code> will be a * On success, <code>AsyncResult.result</code> will be a
- * containing the neighboring cell IDs. Index 0 will con * containing the neighboring cell IDs. Index 0 will con
- * of available cell IDs. Cell IDs are in hexadecimal fo * of available cell IDs. Cell IDs are in hexadecimal fo
- * *
- * @param response callback message that is dispatched wh * @param response callback message that is dispatched wh
- * completes. * completes.
- */ */
- void getNeighboringCids(Message response); void getNeighboringCids(Message response);
- /** /**
- * Sets an event to be fired when the telephony system pr * Sets an event to be fired when the telephony system pr
- * a post-dial character on an outgoing call.<p> * a post-dial character on an outgoing call.<p>
- * *
- * Messages of type <code>what</code> will be sent to <co * Messages of type <code>what</code> will be sent to <co
- * The <code>obj</code> field of these Message's will be * The <code>obj</code> field of these Message's will be
- * <code>AsyncResult</code>. <code>Message.obj.result</co * <code>AsyncResult</code>. <code>Message.obj.result</co
- * a Connection object.<p> * a Connection object.<p>
- * *
- * Message.arg1 will be the post dial character being pro * Message.arg1 will be the post dial character being pro
- * or 0 ('\0') if end of string.<p> * or 0 ('\0') if end of string.<p>
- * *
- * If Connection.getPostDialState() == WAIT, * If Connection.getPostDialState() == WAIT,
- * the application must call * the application must call
- * {@link com.android.internal.telephony.Connection#proce * {@link com.android.internal.telephony.Connection#proce
- * Connection.proceedAfterWaitChar()} or * Connection.proceedAfterWaitChar()} or
- * {@link com.android.internal.telephony.Connection#cance * {@link com.android.internal.telephony.Connection#cance
- * Connection.cancelPostDial()} * Connection.cancelPostDial()}
- * for the telephony system to continue playing the post- * for the telephony system to continue playing the post-
- * DTMF sequence.<p> * DTMF sequence.<p>
- * *
- * If Connection.getPostDialState() == WILD, * If Connection.getPostDialState() == WILD,
- * the application must call * the application must call
- * {@link com.android.internal.telephony.Connection#proce * {@link com.android.internal.telephony.Connection#proce
- * Connection.proceedAfterWildChar()} * Connection.proceedAfterWildChar()}
- * or * or
- * {@link com.android.internal.telephony.Connection#cance * {@link com.android.internal.telephony.Connection#cance
- * Connection.cancelPostDial()} * Connection.cancelPostDial()}
- * for the telephony system to continue playing the * for the telephony system to continue playing the
- * post-dial DTMF sequence.<p> * post-dial DTMF sequence.<p>
- * *
- * Only one post dial character handler may be set. <p> * Only one post dial character handler may be set. <p>
- * Calling this method with "h" equal to null unsets this * Calling this method with "h" equal to null unsets this
- * <
- * @param h Handler that receives the notification messag <
- * @param what User-defined message code. <
- * @param obj User object. <
- */ */
- void setOnPostDialCharacter(Handler h, int what, Object o void setOnPostDialCharacter(Handler h, int what, Object o
- /** /**
- * Mutes or unmutes the microphone for the active call. T * Mutes or unmutes the microphone for the active call. T
- * is automatically unmuted if a call is answered, dialed * is automatically unmuted if a call is answered, dialed
- * from a holding state. * from a holding state.
- * *
- * @param muted true to mute the microphone, * @param muted true to mute the microphone,
- * false to activate the microphone. * false to activate the microphone.
- */ */
- void setMute(boolean muted); void setMute(boolean muted);
- /** /**
- * Gets current mute status. Use * Gets current mute status. Use
- * {@link #registerForPreciseCallStateChanged(android.os. * {@link #registerForPreciseCallStateChanged(android.os.
- * java.lang.Object) registerForPreciseCallStateChanged() * java.lang.Object) registerForPreciseCallStateChanged()
- * as a change notifcation, although presently phone stat * as a change notifcation, although presently phone stat
- * fired when setMute() is called. * fired when setMute() is called.
- * *
- * @return true is muting, false is unmuting * @return true is muting, false is unmuting
- */ */
- boolean getMute(); boolean getMute();
- /** /**
- * Enables or disables echo suppression. * Enables or disables echo suppression.
- */ */
- void setEchoSuppressionEnabled(boolean enabled); void setEchoSuppressionEnabled(boolean enabled);
- /** /**
- * Invokes RIL_REQUEST_OEM_HOOK_RAW on RIL implementation * Invokes RIL_REQUEST_OEM_HOOK_RAW on RIL implementation
- * *
- * @param data The data for the request. * @param data The data for the request.
- * @param response <strong>On success</strong>, * @param response <strong>On success</strong>,
- * (byte[])(((AsyncResult)response.obj).result) * (byte[])(((AsyncResult)response.obj).result)
- * <strong>On failure</strong>, * <strong>On failure</strong>,
- * (((AsyncResult)response.obj).result) == null and * (((AsyncResult)response.obj).result) == null and
- * (((AsyncResult)response.obj).exception) being an insta * (((AsyncResult)response.obj).exception) being an insta
- * com.android.internal.telephony.gsm.CommandException * com.android.internal.telephony.gsm.CommandException
- * *
- * @see #invokeOemRilRequestRaw(byte[], android.os.Messag * @see #invokeOemRilRequestRaw(byte[], android.os.Messag
- */ */
- void invokeOemRilRequestRaw(byte[] data, Message response void invokeOemRilRequestRaw(byte[] data, Message response
- /** /**
- * Invokes RIL_REQUEST_OEM_HOOK_Strings on RIL implementa * Invokes RIL_REQUEST_OEM_HOOK_Strings on RIL implementa
- * *
- * @param strings The strings to make available as the re * @param strings The strings to make available as the re
- * @param response <strong>On success</strong>, "response * @param response <strong>On success</strong>, "response
- * made available as: * made available as:
- * (String[])(((AsyncResult)response.obj).result). * (String[])(((AsyncResult)response.obj).result).
- * <strong>On failure</strong>, * <strong>On failure</strong>,
- * (((AsyncResult)response.obj).result) == null and * (((AsyncResult)response.obj).result) == null and
- * (((AsyncResult)response.obj).exception) being an insta * (((AsyncResult)response.obj).exception) being an insta
- * com.android.internal.telephony.gsm.CommandException * com.android.internal.telephony.gsm.CommandException
- * *
- * @see #invokeOemRilRequestStrings(java.lang.String[], a * @see #invokeOemRilRequestStrings(java.lang.String[], a
- */ */
- void invokeOemRilRequestStrings(String[] strings, Message void invokeOemRilRequestStrings(String[] strings, Message
- /** /**
- * Get the current active Data Call list * Get the current active Data Call list
- * *
- * @param response <strong>On success</strong>, "response * @param response <strong>On success</strong>, "response
- * made available as: * made available as:
- * (String[])(((AsyncResult)response.obj).result). * (String[])(((AsyncResult)response.obj).result).
- * <strong>On failure</strong>, * <strong>On failure</strong>,
- * (((AsyncResult)response.obj).result) == null and * (((AsyncResult)response.obj).result) == null and
- * (((AsyncResult)response.obj).exception) being an insta * (((AsyncResult)response.obj).exception) being an insta
- * com.android.internal.telephony.gsm.CommandException * com.android.internal.telephony.gsm.CommandException
- */ */
- void getDataCallList(Message response); void getDataCallList(Message response);
- /** /**
- * Update the ServiceState CellLocation for current netwo * Update the ServiceState CellLocation for current netwo
- */ */
- void updateServiceLocation(); void updateServiceLocation();
- /** /**
- * Enable location update notifications. * Enable location update notifications.
- */ */
- void enableLocationUpdates(); void enableLocationUpdates();
- /** /**
- * Disable location update notifications. * Disable location update notifications.
- */ */
- void disableLocationUpdates(); void disableLocationUpdates();
- /** /**
- * For unit tests; don't send notifications to "Phone" * For unit tests; don't send notifications to "Phone"
- * mailbox registrants if true. * mailbox registrants if true.
- */ */
- void setUnitTestMode(boolean f); void setUnitTestMode(boolean f);
- /** /**
- * @return true If unit test mode is enabled * @return true If unit test mode is enabled
- */ */
- boolean getUnitTestMode(); boolean getUnitTestMode();
- /** /**
- * Assign a specified band for RF configuration. * Assign a specified band for RF configuration.
- * *
- * @param bandMode one of BM_*_BAND * @param bandMode one of BM_*_BAND
- * @param response is callback message * @param response is callback message
- */ */
- void setBandMode(int bandMode, Message response); void setBandMode(int bandMode, Message response);
- /** /**
- * Query the list of band mode supported by RF. * Query the list of band mode supported by RF.
- * *
- * @param response is callback message * @param response is callback message
- * ((AsyncResult)response.obj).result is an int[] * ((AsyncResult)response.obj).result is an int[]
- * element representing one avialable BM_*_BAND * element representing one avialable BM_*_BAND
- */ */
- void queryAvailableBandMode(Message response); void queryAvailableBandMode(Message response);
- /** /**
- * @return true if enable data connection on roaming * @return true if enable data connection on roaming
- */ */
- boolean getDataRoamingEnabled(); boolean getDataRoamingEnabled();
- /** /**
- * @param enable set true if enable data connection on ro * @param enable set true if enable data connection on ro
- */ */
- void setDataRoamingEnabled(boolean enable); void setDataRoamingEnabled(boolean enable);
- /** /**
- * Query the CDMA roaming preference setting * Query the CDMA roaming preference setting
- * *
- * @param response is callback message to report one of * @param response is callback message to report one of
- */ */
- void queryCdmaRoamingPreference(Message response); void queryCdmaRoamingPreference(Message response);
- /** /**
- * Requests to set the CDMA roaming preference * Requests to set the CDMA roaming preference
- * @param cdmaRoamingType one of CDMA_RM_* * @param cdmaRoamingType one of CDMA_RM_*
- * @param response is callback message * @param response is callback message
- */ */
- void setCdmaRoamingPreference(int cdmaRoamingType, Messag void setCdmaRoamingPreference(int cdmaRoamingType, Messag
- /** /**
- * Requests to set the CDMA subscription mode * Requests to set the CDMA subscription mode
- * @param cdmaSubscriptionType one of CDMA_SUBSCRIPTION_ * @param cdmaSubscriptionType one of CDMA_SUBSCRIPTION_
- * @param response is callback message * @param response is callback message
- */ */
- void setCdmaSubscription(int cdmaSubscriptionType, Messag void setCdmaSubscription(int cdmaSubscriptionType, Messag
- /** /**
- * If this is a simulated phone interface, returns a Simu * If this is a simulated phone interface, returns a Simu
- * @ return A SimulatedRadioControl if this is a simulate * @ return A SimulatedRadioControl if this is a simulate
- * otherwise, null. * otherwise, null.
- */ */
- SimulatedRadioControl getSimulatedRadioControl(); SimulatedRadioControl getSimulatedRadioControl();
- /** /**
- * Enables the specified APN type. Only works for "specia * Enables the specified APN type. Only works for "specia
- * i.e., not the default APN. * i.e., not the default APN.
- * @param type The desired APN type. Cannot be {@link #AP * @param type The desired APN type. Cannot be {@link #AP
- * @return <code>APN_ALREADY_ACTIVE</code> if the current * @return <code>APN_ALREADY_ACTIVE</code> if the current
- * services the requested type.<br/> * services the requested type.<br/>
- * <code>APN_TYPE_NOT_AVAILABLE</code> if the carrier doe * <code>APN_TYPE_NOT_AVAILABLE</code> if the carrier doe
- * support the requested APN.<br/> * support the requested APN.<br/>
- * <code>APN_REQUEST_STARTED</code> if the request has be * <code>APN_REQUEST_STARTED</code> if the request has be
- * <code>APN_REQUEST_FAILED</code> if the request was inv * <code>APN_REQUEST_FAILED</code> if the request was inv
- * A <code>ACTION_ANY_DATA_CONNECTION_STATE_CHANGED</code * A <code>ACTION_ANY_DATA_CONNECTION_STATE_CHANGED</code
- * indicate connection state progress. * indicate connection state progress.
- */ */
- int enableApnType(String type); int enableApnType(String type);
- /** /**
- * Disables the specified APN type, and switches back to * Disables the specified APN type, and switches back to
- * if necessary. Switching to the default APN will not ha * if necessary. Switching to the default APN will not ha
- * data traffic has been explicitly disabled via a call t * data traffic has been explicitly disabled via a call t
- * <p/>Only works for "special" APN types, * <p/>Only works for "special" APN types,
- * i.e., not the default APN. * i.e., not the default APN.
- * @param type The desired APN type. Cannot be {@link #AP * @param type The desired APN type. Cannot be {@link #AP
- * @return <code>APN_ALREADY_ACTIVE</code> if the default * @return <code>APN_ALREADY_ACTIVE</code> if the default
- * is already active.<br/> * is already active.<br/>
- * <code>APN_REQUEST_STARTED</code> if the request to swi * <code>APN_REQUEST_STARTED</code> if the request to swi
- * APN has been initiated.<br/> * APN has been initiated.<br/>
- * <code>APN_REQUEST_FAILED</code> if the request was inv * <code>APN_REQUEST_FAILED</code> if the request was inv
- * A <code>ACTION_ANY_DATA_CONNECTION_STATE_CHANGED</code * A <code>ACTION_ANY_DATA_CONNECTION_STATE_CHANGED</code
- * indicate connection state progress. * indicate connection state progress.
- */ */
- int disableApnType(String type); int disableApnType(String type);
- /** /**
- * Report on whether data connectivity is allowed. * Report on whether data connectivity is allowed.
- */ */
- boolean isDataConnectivityPossible(); boolean isDataConnectivityPossible();
- /** /**
- * Report on whether data connectivity is allowed for an * Report on whether data connectivity is allowed for an
- */ */
- boolean isDataConnectivityPossible(String apnType); boolean isDataConnectivityPossible(String apnType);
- /** /**
- * Retrieves the unique device ID, e.g., IMEI for GSM pho * Retrieves the unique device ID, e.g., IMEI for GSM pho
- */ */
- String getDeviceId(); String getDeviceId();
- /** /**
- * Retrieves the software version number for the device, * Retrieves the software version number for the device,
- * for GSM phones. * for GSM phones.
- */ */
- String getDeviceSvn(); String getDeviceSvn();
- /** /**
- * Retrieves the unique subscriber ID, e.g., IMSI for GSM * Retrieves the unique subscriber ID, e.g., IMSI for GSM
- */ */
- String getSubscriberId(); String getSubscriberId();
- /** /**
- * Retrieves the serial number of the ICC, if applicable. * Retrieves the serial number of the ICC, if applicable.
- */ */
- String getIccSerialNumber(); String getIccSerialNumber();
- /* CDMA support methods */ /* CDMA support methods */
- /** /**
- * Retrieves the MIN for CDMA phones. * Retrieves the MIN for CDMA phones.
- */ */
- String getCdmaMin(); String getCdmaMin();
- /** /**
- * Check if subscription data has been assigned to mMin * Check if subscription data has been assigned to mMin
- * *
- * return true if MIN info is ready; false otherwise. * return true if MIN info is ready; false otherwise.
- */ */
- boolean isMinInfoReady(); boolean isMinInfoReady();
- /** /**
- * Retrieves PRL Version for CDMA phones * Retrieves PRL Version for CDMA phones
- */ */
- String getCdmaPrlVersion(); String getCdmaPrlVersion();
- /** /**
- * Retrieves the ESN for CDMA phones. * Retrieves the ESN for CDMA phones.
- */ */
- String getEsn(); String getEsn();
- /** /**
- * Retrieves MEID for CDMA phones. * Retrieves MEID for CDMA phones.
- */ */
- String getMeid(); String getMeid();
- /** /**
- * Retrieves the MSISDN from the UICC. For GSM/UMTS phone * Retrieves the MSISDN from the UICC. For GSM/UMTS phone
- * {@link #getLine1Number()}. For CDMA phones, {@link #ge * {@link #getLine1Number()}. For CDMA phones, {@link #ge
- * the MDN, so this method is provided to return the MSIS * the MDN, so this method is provided to return the MSIS
- */ */
- String getMsisdn(); String getMsisdn();
- /** /**
- * Retrieves IMEI for phones. Returns null if IMEI is not * Retrieves IMEI for phones. Returns null if IMEI is not
- */ */
- String getImei(); String getImei();
- /** /**
- * Retrieves the PhoneSubInfo of the Phone * Retrieves the PhoneSubInfo of the Phone
- */ */
- public PhoneSubInfo getPhoneSubInfo(); public PhoneSubInfo getPhoneSubInfo();
- /** /**
- * Retrieves the IccSmsInterfaceManager of the Phone * Retrieves the IccSmsInterfaceManager of the Phone
- */ */
- public IccSmsInterfaceManager getIccSmsInterfaceManager() public IccSmsInterfaceManager getIccSmsInterfaceManager()
- /** /**
- * Retrieves the IccPhoneBookInterfaceManager of the Phon * Retrieves the IccPhoneBookInterfaceManager of the Phon
- */ */
- public IccPhoneBookInterfaceManager getIccPhoneBookInterf public IccPhoneBookInterfaceManager getIccPhoneBookInterf
- /** /**
- * setTTYMode * setTTYMode
- * sets a TTY mode option. * sets a TTY mode option.
- * @param ttyMode is a one of the following: * @param ttyMode is a one of the following:
- * - {@link com.android.internal.telephony.Phone#TTY_MODE * - {@link com.android.internal.telephony.Phone#TTY_MODE
- * - {@link com.android.internal.telephony.Phone#TTY_MODE * - {@link com.android.internal.telephony.Phone#TTY_MODE
- * - {@link com.android.internal.telephony.Phone#TTY_MODE * - {@link com.android.internal.telephony.Phone#TTY_MODE
- * - {@link com.android.internal.telephony.Phone#TTY_MODE * - {@link com.android.internal.telephony.Phone#TTY_MODE
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void setTTYMode(int ttyMode, Message onComplete); void setTTYMode(int ttyMode, Message onComplete);
- /** /**
- * queryTTYMode * queryTTYMode
- * query the status of the TTY mode * query the status of the TTY mode
- * *
- * @param onComplete a callback message when the action i * @param onComplete a callback message when the action i
- */ */
- void queryTTYMode(Message onComplete); void queryTTYMode(Message onComplete);
- /** /**
- * Activate or deactivate cell broadcast SMS. * Activate or deactivate cell broadcast SMS.
- * *
- * @param activate * @param activate
- * 0 = activate, 1 = deactivate * 0 = activate, 1 = deactivate
- * @param response * @param response
- * Callback message is empty on completion * Callback message is empty on completion
- */ */
- void activateCellBroadcastSms(int activate, Message respo void activateCellBroadcastSms(int activate, Message respo
- /** /**
- * Query the current configuration of cdma cell broadcast * Query the current configuration of cdma cell broadcast
- * *
- * @param response * @param response
- * Callback message is empty on completion * Callback message is empty on completion
- */ */
- void getCellBroadcastSmsConfig(Message response); void getCellBroadcastSmsConfig(Message response);
- /** /**
- * Configure cell broadcast SMS. * Configure cell broadcast SMS.
- * *
- * TODO: Change the configValuesArray to a RIL_BroadcastS * TODO: Change the configValuesArray to a RIL_BroadcastS
- * *
- * @param response * @param response
- * Callback message is empty on completion * Callback message is empty on completion
- */ */
- public void setCellBroadcastSmsConfig(int[] configValuesA public void setCellBroadcastSmsConfig(int[] configValuesA
- public void notifyDataActivity(); public void notifyDataActivity();
- /** /**
- * Returns the CDMA ERI icon index to display * Returns the CDMA ERI icon index to display
- */ */
- public int getCdmaEriIconIndex(); public int getCdmaEriIconIndex();
- /** /**
- * Returns the CDMA ERI icon mode, * Returns the CDMA ERI icon mode,
- * 0 - ON * 0 - ON
- * 1 - FLASHING * 1 - FLASHING
- */ */
- public int getCdmaEriIconMode(); public int getCdmaEriIconMode();
- /** /**
- * Returns the CDMA ERI text, * Returns the CDMA ERI text,
- */ */
- public String getCdmaEriText(); public String getCdmaEriText();
- /** /**
- * request to exit emergency call back mode * request to exit emergency call back mode
- * the caller should use setOnECMModeExitResponse * the caller should use setOnECMModeExitResponse
- * to receive the emergency callback mode exit response * to receive the emergency callback mode exit response
- */ */
- void exitEmergencyCallbackMode(); void exitEmergencyCallbackMode();
- /** /**
- * this decides if the dial number is OTA(Over the air pr * this decides if the dial number is OTA(Over the air pr
- * @param dialStr is string representing the dialing digi * @param dialStr is string representing the dialing digi
- * @return true means the dialStr is OTA number, and fal * @return true means the dialStr is OTA number, and fal
- */ */
- boolean isOtaSpNumber(String dialStr); boolean isOtaSpNumber(String dialStr);
- /** /**
- * Returns true if OTA Service Provisioning needs to be p * Returns true if OTA Service Provisioning needs to be p
- */ */
- boolean needsOtaServiceProvisioning(); boolean needsOtaServiceProvisioning();
- /** /**
- * Register for notifications when CDMA call waiting come * Register for notifications when CDMA call waiting come
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForCallWaiting(Handler h, int what, Object o void registerForCallWaiting(Handler h, int what, Object o
- /** /**
- * Unegister for notifications when CDMA Call waiting com * Unegister for notifications when CDMA Call waiting com
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForCallWaiting(Handler h); void unregisterForCallWaiting(Handler h);
- /** /**
- * Register for signal information notifications from the * Register for signal information notifications from the
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a SuppServiceNotification i * AsyncResult.result will be a SuppServiceNotification i
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForSignalInfo(Handler h, int what, Object ob void registerForSignalInfo(Handler h, int what, Object ob
- /** /**
- * Unregisters for signal information notifications. * Unregisters for signal information notifications.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForSignalInfo(Handler h); void unregisterForSignalInfo(Handler h);
- /** /**
- * Register for display information notifications from th * Register for display information notifications from th
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a SuppServiceNotification i * AsyncResult.result will be a SuppServiceNotification i
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForDisplayInfo(Handler h, int what, Object o void registerForDisplayInfo(Handler h, int what, Object o
- /** /**
- * Unregisters for display information notifications. * Unregisters for display information notifications.
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForDisplayInfo(Handler h) ; void unregisterForDisplayInfo(Handler h) ;
- /** /**
- * Register for CDMA number information record notificati * Register for CDMA number information record notificati
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a CdmaInformationRecords.Cd * AsyncResult.result will be a CdmaInformationRecords.Cd
- * instance. * instance.
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForNumberInfo(Handler h, int what, Object ob void registerForNumberInfo(Handler h, int what, Object ob
- /** /**
- * Unregisters for number information record notification * Unregisters for number information record notification
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForNumberInfo(Handler h); void unregisterForNumberInfo(Handler h);
- /** /**
- * Register for CDMA redirected number information record * Register for CDMA redirected number information record
- * from the network. * from the network.
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a CdmaInformationRecords.Cd * AsyncResult.result will be a CdmaInformationRecords.Cd
- * instance. * instance.
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForRedirectedNumberInfo(Handler h, int what, void registerForRedirectedNumberInfo(Handler h, int what,
- /** /**
- * Unregisters for redirected number information record n * Unregisters for redirected number information record n
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForRedirectedNumberInfo(Handler h); void unregisterForRedirectedNumberInfo(Handler h);
- /** /**
- * Register for CDMA line control information record noti * Register for CDMA line control information record noti
- * from the network. * from the network.
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a CdmaInformationRecords.Cd * AsyncResult.result will be a CdmaInformationRecords.Cd
- * instance. * instance.
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForLineControlInfo(Handler h, int what, Obje void registerForLineControlInfo(Handler h, int what, Obje
- /** /**
- * Unregisters for line control information notifications * Unregisters for line control information notifications
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForLineControlInfo(Handler h); void unregisterForLineControlInfo(Handler h);
- /** /**
- * Register for CDMA T53 CLIR information record notifica * Register for CDMA T53 CLIR information record notifica
- * from the network. * from the network.
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a CdmaInformationRecords.Cd * AsyncResult.result will be a CdmaInformationRecords.Cd
- * instance. * instance.
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerFoT53ClirlInfo(Handler h, int what, Object o void registerFoT53ClirlInfo(Handler h, int what, Object o
- /** /**
- * Unregisters for T53 CLIR information record notificati * Unregisters for T53 CLIR information record notificati
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForT53ClirInfo(Handler h); void unregisterForT53ClirInfo(Handler h);
- /** /**
- * Register for CDMA T53 audio control information record * Register for CDMA T53 audio control information record
- * from the network. * from the network.
- * Message.obj will contain an AsyncResult. * Message.obj will contain an AsyncResult.
- * AsyncResult.result will be a CdmaInformationRecords.Cd * AsyncResult.result will be a CdmaInformationRecords.Cd
- * instance. * instance.
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void registerForT53AudioControlInfo(Handler h, int what, void registerForT53AudioControlInfo(Handler h, int what,
- /** /**
- * Unregisters for T53 audio control information record n * Unregisters for T53 audio control information record n
- * Extraneous calls are tolerated silently * Extraneous calls are tolerated silently
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unregisterForT53AudioControlInfo(Handler h); void unregisterForT53AudioControlInfo(Handler h);
- /** /**
- * registers for exit emergency call back mode request re * registers for exit emergency call back mode request re
- * *
- * @param h Handler that receives the notification messag * @param h Handler that receives the notification messag
- * @param what User-defined message code. * @param what User-defined message code.
- * @param obj User object. * @param obj User object.
- */ */
- void setOnEcbModeExitResponse(Handler h, int what, Object void setOnEcbModeExitResponse(Handler h, int what, Object
- /** /**
- * Unregisters for exit emergency call back mode request * Unregisters for exit emergency call back mode request
- * *
- * @param h Handler to be removed from the registrant lis * @param h Handler to be removed from the registrant lis
- */ */
- void unsetOnEcbModeExitResponse(Handler h); void unsetOnEcbModeExitResponse(Handler h);
- /** /**
- * Return if the current radio is LTE on CDMA. This * Return if the current radio is LTE on CDMA. This
- * is a tri-state return value as for a period of time * is a tri-state return value as for a period of time
- * the mode may be unknown. * the mode may be unknown.
- * *
- * @return {@link #LTE_ON_CDMA_UNKNOWN}, {@link #LTE_ON_C * @return {@link #LTE_ON_CDMA_UNKNOWN}, {@link #LTE_ON_C
- */ */
- public int getLteOnCdmaMode(); public int getLteOnCdmaMode();
- /** /**
- > * Return if the current radio is LTE on GSM
- > * @hide
- > */
- > public int getLteOnGsmMode();
- >
- > /**
- * TODO: Adding a function for each property is not good. * TODO: Adding a function for each property is not good.
- * A fucntion of type getPhoneProp(propType) where propTy * A fucntion of type getPhoneProp(propType) where propTy
- * enum of GSM+CDMA+LTE props would be a better approach. * enum of GSM+CDMA+LTE props would be a better approach.
- * *
- * Get "Restriction of menu options for manual PLMN selec * Get "Restriction of menu options for manual PLMN selec
- * status from EF_CSP data, this belongs to "Value Added * status from EF_CSP data, this belongs to "Value Added
- * @return true if this bit is set or EF_CSP data is unav * @return true if this bit is set or EF_CSP data is unav
- * false otherwise * false otherwise
- */ */
- boolean isCspPlmnEnabled(); boolean isCspPlmnEnabled();
- /** /**
- * Return an interface to retrieve the ISIM records for I * Return an interface to retrieve the ISIM records for I
- * @return the interface to retrieve the ISIM records, or * @return the interface to retrieve the ISIM records, or
- */ */
- IsimRecords getIsimRecords(); IsimRecords getIsimRecords();
- /** /**
- * Request the ISIM application on the UICC to perform th * Request the ISIM application on the UICC to perform th
- * challenge/response algorithm for IMS authentication. T * challenge/response algorithm for IMS authentication. T
- * and challenge response are Base64 encoded Strings. * and challenge response are Base64 encoded Strings.
- * *
- * @param nonce the nonce string to pass with the ISIM au * @param nonce the nonce string to pass with the ISIM au
- * @param response a callback message with the String res * @param response a callback message with the String res
- */ */
- void requestIsimAuthentication(String nonce, Message resp void requestIsimAuthentication(String nonce, Message resp
- /** /**
- * Sets the SIM voice message waiting indicator records. * Sets the SIM voice message waiting indicator records.
- * @param line GSM Subscriber Profile Number, one-based. * @param line GSM Subscriber Profile Number, one-based.
- * @param countWaiting The number of messages waiting, if * @param countWaiting The number of messages waiting, if
- * -1 to indicate that an unknown num * -1 to indicate that an unknown num
- * messages are waiting * messages are waiting
- */ */
- void setVoiceMessageWaiting(int line, int countWaiting); void setVoiceMessageWaiting(int line, int countWaiting);
- //MTK-START [mtk04070][111223][ALPS00106134]Merge to ICS <
- /** /**
- * Gets the USIM service table from the UICC, if present * Gets the USIM service table from the UICC, if present
- * @return an interface to the UsimServiceTable record, o * @return an interface to the UsimServiceTable record, o
- */ */
- UsimServiceTable getUsimServiceTable(); UsimServiceTable getUsimServiceTable();
- //MTK-END [mtk04070][111223][ALPS00106134]Merge to ICS 4. <
- <
- <
- //MTK-START [mtk04070][111117][ALPS00093395]MTK proprieta <
- /** <
- * added by vend_am00002 for Multiple PDP Context <
- * @param apnType <
- */ <
- String getActiveApnType(); <
- <
- /* Add by vendor for Multiple PDP Context */ <
- String getApnForType(String type); <
- <
- /** <
- * Register for Supplementary Service CRSS notifications <
- * Message.obj will contain an AsyncResult. <
- * AsyncResult.result will be a SuppCrssNotification inst <
- * <
- * @param h Handler that receives the notification messag <
- * @param what User-defined message code. <
- * @param obj User object. <
- */ <
- public void registerForCrssSuppServiceNotification(Handle <
- <
- /** <
- * Unregisters for Supplementary Service CRSS notificatio <
- * Extraneous calls are tolerated silently <
- * <
- * @param h Handler to be removed from the registrant lis <
- */ <
- public void unregisterForCrssSuppServiceNotification(Hand <
- <
- /* vt start */ <
- /** <
- * Initiate a new video connection. This happens asynchro <
- * cannot assume the audio path is connected (or a call i <
- * assigned) until PhoneStateChanged notification has occ <
- * <
- * @exception CallStateException if a new outgoing call i <
- * possible because no more call slots exist or a call ex <
- * dialing, alerting, ringing, or waiting. Other errors <
- * handled asynchronously. <
- */ <
- Connection vtDial(String dialString) throws CallStateExce <
- <
- /** <
- * Initiate a new video connection with supplementary Use <
- * Information. This happens asynchronously, so you canno <
- * path is connected (or a call index has been assigned) <
- * PhoneStateChanged notification has occurred. <
- * <
- * @exception CallStateException if a new outgoing call i <
- * possible because no more call slots exi <
- * that is dialing, alerting, ringing, or <
- * errors are handled asynchronously. <
- */ <
- Connection vtDial(String dialString, UUSInfo uusInfo) thr <
- <
- void voiceAccept() throws CallStateException; <
- /* vt end */ <
- <
- /** <
- * Sets the radio power on/off state (off is sometimes <
- * called "airplane mode"). Current state can be gotten v <
- * {@link #getServiceState()}.{@link <
- * android.telephony.ServiceState#getState() getState()}. <
- * <strong>Note: </strong>This request is asynchronous. <
- * getServiceState().getState() will not change immediate <
- * registerForServiceStateChanged() to find out when the <
- * request is complete. <
- * <p> <
- * If shutdown is true, will turn off the radio and SIM <
- * Used when shutdown the entire phone <
- * <
- * @param power true means "on", false means "off". <
- * @param shutdown true means turn off entire phone <
- */ <
- void setRadioPower(boolean power, boolean shutdown) <
- <
- /** <
- * Get the current active PDP context list <
- * <
- * @deprecated <
- * @param response <strong>On success</strong>, "response <
- * made available as: <
- * (String[])(((AsyncResult)response.obj).result). <
- * <strong>On failure</strong>, <
- * (((AsyncResult)response.obj).result) == null and <
- * (((AsyncResult)response.obj).exception) being an insta <
- * com.android.internal.telephony.gsm.CommandException <
- */ <
- void getPdpContextList(Message response); <
- <
- /** <
- * Returns the name of the network interface used by the <
- */ <
- String getInterfaceName(String apnType); <
- <
- /** <
- * Returns the IP address of the network interface used b <
- * APN type. <
- */ <
- String getIpAddress(String apnType); <
- <
- /** <
- * Returns the gateway for the network interface used by <
- * type. <
- */ <
- String getGateway(String apnType); <
- <
- /** <
- * Returns the DNS servers for the network interface used <
- * APN type. <
- */ <
- public String[] getDnsServers(String apnType); <
- <
- /** <
- * Configure cell broadcast SMS. <
- * @param chIdList <
- * Channel ID list, fill in the fromServiceId, <
- * in the SmsBroadcastConfigInfo only <
- * @param langList <
- * Channel ID list, fill in the fromCodeScheme <
- * in the SmsBroadcastConfigInfo only <
- * @param response <
- * Callback message is empty on completion <
- */ <
- public void setCellBroadcastSmsConfig(SmsBroadcastConfigI <
- SmsBroadcastConfigInfo[] langList, Message respon <
- <
- /** <
- * Query if the Cell broadcast is adtivated or not <
- * @param response <
- * Callback message is empty on completion <
- */ <
- public void queryCellBroadcastSmsActivation(Message respo <
- <
- /** <
- * getFacilityLock <
- * gets Call Barring States. The return value of <
- * (AsyncResult)response.obj).result will be an Integer r <
- * the sum of enabled serivice classes (sum of SERVICE_CL <
- * <
- * @param facility one of CB_FACILTY_* <
- * @param password password or "" if not required <
- * @param onComplete a callback message when the action i <
- */ <
- void getFacilityLock(String facility, String password, Me <
- <
- /** <
- * setFacilityLock <
- * sets Call Barring options. <
- * <
- * @param facility one of CB_FACILTY_* <
- * @param enable true means lock, false means unlock <
- * @param password password or "" if not required <
- * @param onComplete a callback message when the action i <
- */ <
- void setFacilityLock(String facility, boolean enable, Str <
- <
- /** <
- * changeBarringPassword <
- * changes Call Barring related password. <
- * <
- * @param facility one of CB_FACILTY_* <
- * @param oldPwd old password <
- * @param newPwd new password <
- * @param onComplete a callback message when the action i <
- */ <
- void changeBarringPassword(String facility, String oldPwd <
- <
- /** <
- * changeBarringPassword <
- * changes Call Barring related password. <
- * <
- * @param facility one of CB_FACILTY_* <
- * @param oldPwd old password <
- * @param newPwd new password <
- * @param newCfm <
- * @param onComplete a callback message when the action i <
- */ <
- void changeBarringPassword(String facility, String oldPwd <
- <
- /** <
- * used to release all connections in the MS, <
- * release all connections with one reqeust together, not <
- */ <
- void hangupAll() throws CallStateException; <
- /** /**
- * used to release all connections in the MS, | * Unregister from all events it registered for and dispo
- * release all connections with one reqeust together, not | * created by this object.
- */ */
- void hangupAllEx() throws CallStateException; | void dispose();
- /** /**
- * used to release all connections in the foregrond call. | * Remove references to external object stored in this ob
- */ <
- void hangupActiveCall() throws CallStateException; <
- <
- /** <
- * used to get CCM. <
- * <
- * result.obj = AsyncResult ar <
- * ar.exception carries exception on failure <
- * ar.userObject contains the orignal value of result.o <
- * <
- * ar.result is a String[1] <
- * ar.result[0] contain the value of CCM <
- * the value will be 3 bytes of hexadecimal format, <
- * ex: "00001E" indicates decimal value 30 <
- */ <
- void getCurrentCallMeter(Message result); <
- <
- /** <
- * used to get ACM. <
- * <
- * result.obj = AsyncResult ar <
- * ar.exception carries exception on failure <
- * ar.userObject contains the orignal value of result.ob <
- * <
- * ar.result is a String[1] <
- * ar.result[0] contain the value of ACM <
- * the value will be 3 bytes of hexadecimal format, <
- * ex: "00001E" indicates decimal value 30 <
- */ <
- void getAccumulatedCallMeter(Message result); <
- <
- /** <
- * used to get ACMMAX. <
- * <
- * result.obj = AsyncResult ar <
- * ar.exception carries exception on failure <
- * ar.userObject contains the orignal value of result.ob <
- * <
- * ar.result is a String[1] <
- * ar.result[0] contain the value of ACMMax <
- * the value will be 3 bytes of hexadecimal format, <
- * ex: "00001E" indicates decimal value 30 <
- */ <
- void getAccumulatedCallMeterMaximum(Message result); <
- <
- /** <
- * used to get price per unit and currency. <
- * <
- * result.obj = AsyncResult ar <
- * ar.exception carries exception on failure <
- * ar.userObject contains the orignal value of result.ob <
- * <
- * ar.result is a String[2] <
- * ar.result[0] contain the value of currency, ex: "GBP" <
- * ar.result[1] contain the value of ppu, ex: "2.66" <
- */ <
- void getPpuAndCurrency(Message result); <
- <
- /** <
- * used to set ACMMax. <
- * <
- * result.obj = AsyncResult ar <
- * ar.exception carries exception on failure <
- * ar.userObject contains the orignal value of result.ob <
- * <
- * @param acmmax is the maximum value for ACM. ex: "00001 <
- * @param pin2 is necessary parameter. <
- */ <
- void setAccumulatedCallMeterMaximum(String acmmax, String <
- <
- /** <
- * used to reset ACM. <
- * <
- *result.obj = AsyncResult ar <
- * ar.exception carries exception on failure <
- * ar.userObject contains the orignal value of result.ob <
- * <
- * @param pin2 is necessary parameter. <
- */ <
- void resetAccumulatedCallMeter(String pin2, Message resul <
- <
- /** <
- * used to set price per unit and currency. <
- * <
- *result.obj = AsyncResult ar <
- * ar.exception carries exception on failure <
- * ar.userObject contains the orignal value of result.ob <
- * <
- * @param currency is value of "currency". ex: "GBP" <
- * @param ppu is the value of "price per unit". ex: "2.66 <
- * @param pin2 is necessary parameter. <
- */ <
- void setPpuAndCurrency(String currency, String ppu, Strin <
- <
- /** <
- * Register for Neighboring cell info changed. <
- * Message.obj will contain an AsyncResult. <
- * AsyncResult.result will be a String[ ] instance <
- */ <
- void registerForNeighboringInfo(Handler h, int what, Obje <
- <
- /** <
- * Unregisters for Neighboring cell info changed notifica <
- * Extraneous calls are tolerated silently <
- */ <
- void unregisterForNeighboringInfo(Handler h); <
- <
- /** <
- * Register for Network info changed. <
- * Message.obj will contain an AsyncResult. <
- * AsyncResult.result will be a String[ ] instance <
- */ <
- void registerForNetworkInfo(Handler h, int what, Object o <
- <
- /** <
- * Unregisters for Network info changed notification. <
- * Extraneous calls are tolerated silently <
- */ <
- void unregisterForNetworkInfo(Handler h); <
- <
- /** <
- * Refresh Spn Display due to configuration change <
- */ <
- void refreshSpnDisplay(); <
- <
- /** <
- * Request to get my SIM ID <
- */ <
- int getMySimId(); <
- <
- /** <
- * Register for speech on/off indication. <
- * Message.obj will contain an AsyncResult. <
- * AsyncResult.result will be a String[ ] instance <
- */ <
- void registerForSpeechInfo(Handler h, int what, Object ob <
- <
- /** <
- * Unregister for speech on/off indication <
- */ <
- void unregisterForSpeechInfo(Handler h); <
- <
- /** <
- * Get last call fail cause <
- */ <
- public int getLastCallFailCause(); <
- <
- /* vt start */ <
- /** <
- * Register for VT status indication. <
- * Message.obj will contain an AsyncResult. <
- * AsyncResult.result will be a int[ ] instance <
- */ <
- void registerForVtStatusInfo(Handler h, int what, Object <
- <
- /** <
- * Unregister for VT status indication <
- */ <
- void unregisterForVtStatusInfo(Handler h); <
- <
- /** <
- * Register for MT VT call indication. <
- * Message.obj will contain an AsyncResult. <
- */ <
- void registerForVtRingInfo(Handler h, int what, Object ob <
- <
- /** <
- * Unregister for MT VT call indication. <
- */ <
- void unregisterForVtRingInfo(Handler h); <
- <
- /** <
- * Register for call disconnect message when reject waiti <
- * Message.obj will contain an AsyncResult. <
- */ */
- public void registerForVtReplaceDisconnect(Handler h, int | void removeReferences();
- <
- /** <
- * Unregister for call disconnect message. <
- */ <
- public void unregisterForVtReplaceDisconnect(Handler h); <
- /* vt end */ <
- <
- /** <
- * set GPRS transfer type: data prefer/call prefer <
- */ <
- void setGprsTransferType(int type, Message response); <
- <
- //Add by mtk80372 for Barcode Number <
- /** <
- * Request to get Barcode number. <
- */ <
- void getMobileRevisionAndIMEI(int type,Message result); <
- <
- //Add by mtk80372 for Barcode Number <
- String getSN(); <
- <
- /** <
- *Retrieves the IccServiceStatus for the specic SIM/USIM s <
- */ <
- IccServiceStatus getIccServiceStatus(IccService enService <
- <
- /** <
- *send BT SAP profile <
- */ <
- void sendBTSIMProfile(int nAction, int nType, String str <
- <
- /** <
- * Request 2G context authentication for SIM/USIM <
- */ <
- void doSimAuthentication (String strRand, Message result) <
- <
- /** <
- * Request 3G context authentication for USIM <
- */ <
- void doUSimAuthentication (String strRand, String strAutn <
- <
- /* vt start */ <
- /** <
- * getVtCallForwardingOptions <
- * gets a VT call forwarding option. The return value of <
- * ((AsyncResult)onComplete.obj) is an array of CallForwa <
- * <
- * @param commandInterfaceCFReason is one of the valid ca <
- * CF_REASONS, as defined in <
- * <code>com.android.internal.telephony.CommandsIn <
- * @param onComplete a callback message when the action i <
- * @see com.android.internal.telephony.CallForward <
- */ <
- void getVtCallForwardingOption(int commandInterfaceCFReas <
- Message onComplete); <
- <
- /** <
- * setVtCallForwardingOptions <
- * sets a VT call forwarding option. <
- * <
- * @param commandInterfaceCFReason is one of the valid ca <
- * CF_REASONS, as defined in <
- * <code>com.android.internal.telephony.CommandsIn <
- * @param commandInterfaceCFAction is one of the valid ca <
- * CF_ACTIONS, as defined in <
- * <code>com.android.internal.telephony.CommandsInt <
- * @param dialingNumber is the target phone number to for <
- * @param timerSeconds is used by CFNRy to indicate the t <
- * forwarding is attempted. <
- * @param onComplete a callback message when the action i <
- */ <
- void setVtCallForwardingOption(int commandInterfaceCFReas <
- int commandInterfaceCFActi <
- String dialingNumber, <
- int timerSeconds, <
- Message onComplete); <
- <
- /** <
- * getVtCallWaiting <
- * gets VT call waiting activation state. The return valu <
- * ((AsyncResult)onComplete.obj) is an array of int, with <
- * <
- * @param onComplete a callback message when the action i <
- * @see com.android.internal.telephony.CommandsInt <
- */ <
- void getVtCallWaiting(Message onComplete); <
- <
- /** <
- * setVtCallWaiting <
- * sets VT call waiting state. <
- * <
- * @param enable is a boolean representing the state that <
- * requesting, true for enabled, false for disable <
- * @param onComplete a callback message when the action i <
- */ <
- void setVtCallWaiting(boolean enable, Message onComplete) <
- <
- /** <
- * getVtFacilityLock <
- * gets VT Call Barring States. The return value of <
- * (AsyncResult)response.obj).result will be an Integer r <
- * the sum of enabled serivice classes (sum of SERVICE_CL <
- * <
- * @param facility one of CB_FACILTY_* <
- * @param password password or "" if not required <
- * @param onComplete a callback message when the action i <
- */ <
- void getVtFacilityLock(String facility, String password, <
- <
- /** <
- * setVtFacilityLock <
- * sets VT Call Barring options. <
- * <
- * @param facility one of CB_FACILTY_* <
- * @param enable true means lock, false means unlock <
- * @param password password or "" if not required <
- * @param onComplete a callback message when the action i <
- */ <
- void setVtFacilityLock(String facility, boolean enable, S <
- /* vt end */ <
- void updateSimIndicateState(); <
- int getSimIndicateState(); <
- <
- /** <
- *return true if the slot for this phone has SIM/USIM in <
- */ <
- boolean isSimInsert(); <
- <
- /* 3G Switch start */ <
- /** <
- * get3GCapabilitySIM <
- * get SIM with 3G capability. <
- * <
- * @return the id (slot) with 3G capability (Phone.GEMINI <
- */ <
- int get3GCapabilitySIM(); <
- <
- /** <
- * set3GCapabilitySIM <
- * set 3G capability to the SIM. <
- * <
- * @param the id (slot) of the SIM to have 3G capability. <
- * @return the id (slot) with 3G capability (Phone.GEMINI <
- */ <
- boolean set3GCapabilitySIM(int simId); <
- /* 3G Switch end */ <
- <
- void getPOLCapability(Message onComplete); <
- void getPreferedOperatorList(Message onComplete); <
- void setPOLEntry(NetworkInfoWithAcT networkWithAct, Messa <
- <
- void setCRO(int mode, Message onComplete); //ALPS00279048 <
- //MTK-END [mtk04070][111117][ALPS00093395]MTK proprietary <
- <
- // ALPS00294581 <
- void notifySimMissingStatus(boolean isSimInsert); <
- <
- //via support start <
- void requestSwitchHPF (boolean enableHPF, Message respons <
- void setAvoidSYS (boolean avoidSYS, Message response); <
- void getAvoidSYSList (Message response); <
- void queryCDMANetworkInfo (Message response); <
- //via support end <
- <
- // ALPS00296353 MVNO START <
- String getSpNameInEfSpn(); <
- String getSpNameInEfSpn(int simId); <
- <
- String isOperatorMvnoForImsi(); <
- String isOperatorMvnoForImsi(int simId); <
- <
- boolean isIccCardProviderAsMvno(); <
- boolean isIccCardProviderAsMvno(int simId); <
- // ALPS00296353 MVNO END <
- } }
Add Comment
Please, Sign In to add comment