public abstract class BaseCommands extends Object implements CommandsInterface
CommandsInterface.RadioState
CB_FACILITY_BA_ALL, CB_FACILITY_BA_FD, CB_FACILITY_BA_MO, CB_FACILITY_BA_MT, CB_FACILITY_BA_SIM, CB_FACILITY_BAIC, CB_FACILITY_BAICr, CB_FACILITY_BAOC, CB_FACILITY_BAOIC, CB_FACILITY_BAOICxH, CDMA_SMS_FAIL_CAUSE_ENCODING_PROBLEM, CDMA_SMS_FAIL_CAUSE_INVALID_TELESERVICE_ID, CDMA_SMS_FAIL_CAUSE_OTHER_TERMINAL_PROBLEM, CDMA_SMS_FAIL_CAUSE_RESOURCE_SHORTAGE, CF_ACTION_DISABLE, CF_ACTION_ENABLE, CF_ACTION_ERASURE, CF_ACTION_REGISTRATION, CF_REASON_ALL, CF_REASON_ALL_CONDITIONAL, CF_REASON_BUSY, CF_REASON_NO_REPLY, CF_REASON_NOT_REACHABLE, CF_REASON_UNCONDITIONAL, CLIR_DEFAULT, CLIR_INVOCATION, CLIR_SUPPRESSION, GSM_SMS_FAIL_CAUSE_MEMORY_CAPACITY_EXCEEDED, GSM_SMS_FAIL_CAUSE_UNSPECIFIED_ERROR, GSM_SMS_FAIL_CAUSE_USIM_APP_TOOLKIT_BUSY, GSM_SMS_FAIL_CAUSE_USIM_DATA_DOWNLOAD_ERROR, SERVICE_CLASS_DATA, SERVICE_CLASS_DATA_ASYNC, SERVICE_CLASS_DATA_SYNC, SERVICE_CLASS_FAX, SERVICE_CLASS_MAX, SERVICE_CLASS_NONE, SERVICE_CLASS_PACKET, SERVICE_CLASS_PAD, SERVICE_CLASS_SMS, SERVICE_CLASS_VOICE, USSD_MODE_LOCAL_CLIENT, USSD_MODE_NOT_SUPPORTED, USSD_MODE_NOTIFY, USSD_MODE_NW_RELEASE, USSD_MODE_NW_TIMEOUT, USSD_MODE_REQUEST
Constructor and Description |
---|
BaseCommands(Context context) |
Modifier and Type | Method and Description |
---|---|
int |
getLteOnCdmaMode()
Return if the current radio is LTE on CDMA.
|
void |
getRadioCapability(Message result)
Get phone radio capability
|
CommandsInterface.RadioState |
getRadioState() |
int |
getRilVersion() |
protected void |
onRadioAvailable() |
void |
pullLceData(Message result)
Pull LCE service for capacity data.
|
void |
registerForAvailable(Handler h,
int what,
Object obj)
Fires on any transition out of RadioState.isAvailable()
Fires immediately if currently in that state
In general, actions should be idempotent.
|
void |
registerForCallStateChanged(Handler h,
int what,
Object obj) |
void |
registerForCallWaitingInfo(Handler h,
int what,
Object obj)
Sets the handler for Event Notifications for CallWaiting Info.
|
void |
registerForCdmaOtaProvision(Handler h,
int what,
Object obj)
Fires on any CDMA OTA provision status change
|
void |
registerForCdmaPrlChanged(Handler h,
int what,
Object obj)
Registers the handler for when Cdma prl changed events
|
void |
registerForCdmaSubscriptionChanged(Handler h,
int what,
Object obj)
Registers the handler for when Cdma subscription changed events
|
void |
registerForCellInfoList(Handler h,
int what,
Object obj)
Fires when RIL_UNSOL_CELL_INFO_LIST is received from the RIL.
|
void |
registerForDataNetworkStateChanged(Handler h,
int what,
Object obj) |
void |
registerForDisplayInfo(Handler h,
int what,
Object obj)
Sets the handler for Event Notifications for CDMA Display Info.
|
void |
registerForExitEmergencyCallbackMode(Handler h,
int what,
Object obj)
Registers the handler for when Cdma prl changed events
|
void |
registerForHardwareConfigChanged(Handler h,
int what,
Object obj)
fires on any change in hardware configuration.
|
void |
registerForIccRefresh(Handler h,
int what,
Object obj)
Sets the handler for SIM Refresh notifications.
|
void |
registerForIccStatusChanged(Handler h,
int what,
Object obj)
Fires on any change in ICC status
|
void |
registerForImsNetworkStateChanged(Handler h,
int what,
Object obj) |
void |
registerForInCallVoicePrivacyOff(Handler h,
int what,
Object obj) |
void |
registerForInCallVoicePrivacyOn(Handler h,
int what,
Object obj)
InCall voice privacy notifications
|
void |
registerForLceInfo(Handler h,
int what,
Object obj)
Register a LCE info listener.
|
void |
registerForLineControlInfo(Handler h,
int what,
Object obj)
Registers the handler for CDMA line control information record
Unlike the register* methods, there's only one notification handler
|
void |
registerForNotAvailable(Handler h,
int what,
Object obj)
Fires on any transition into !
|
void |
registerForNumberInfo(Handler h,
int what,
Object obj)
Registers the handler for CDMA number information record
Unlike the register* methods, there's only one notification handler
|
void |
registerForOffOrNotAvailable(Handler h,
int what,
Object obj)
Fires on any transition into RADIO_OFF or !
|
void |
registerForOn(Handler h,
int what,
Object obj)
Fires on any transition into RadioState.isOn()
Fires immediately if currently in that state
In general, actions should be idempotent.
|
void |
registerForPcoData(Handler h,
int what,
Object obj)
Register for unsolicited PCO data.
|
void |
registerForRadioCapabilityChanged(Handler h,
int what,
Object obj)
Registers the handler when phone radio capability is changed.
|
void |
registerForRadioStateChanged(Handler h,
int what,
Object obj)
Fires on any RadioState transition
Always fires immediately as well
do not attempt to calculate transitions by storing getRadioState() values
on previous invocations of this notification.
|
void |
registerForRedirectedNumberInfo(Handler h,
int what,
Object obj)
Registers the handler for CDMA redirected number Information record
Unlike the register* methods, there's only one notification handler
|
void |
registerForResendIncallMute(Handler h,
int what,
Object obj)
Registers the handler when mute/unmute need to be resent to get
uplink audio during a call.
|
void |
registerForRilConnected(Handler h,
int what,
Object obj)
Registers the handler for RIL_UNSOL_RIL_CONNECT events.
|
void |
registerForRingbackTone(Handler h,
int what,
Object obj)
Registers the handler when out-band ringback tone is needed.
|
void |
registerForSignalInfo(Handler h,
int what,
Object obj)
Sets the handler for Event Notifications for Signal Info.
|
void |
registerForSrvccStateChanged(Handler h,
int what,
Object obj)
Single Radio Voice Call State progress notifications
|
void |
registerForSubscriptionStatusChanged(Handler h,
int what,
Object obj)
Handlers for subscription status change indications.
|
void |
registerForT53AudioControlInfo(Handler h,
int what,
Object obj)
Registers the handler for CDMA T53 audio control information record
Unlike the register* methods, there's only one notification handler
|
void |
registerForVoiceNetworkStateChanged(Handler h,
int what,
Object obj) |
void |
registerForVoiceRadioTechChanged(Handler h,
int what,
Object obj) |
void |
registerFoT53ClirlInfo(Handler h,
int what,
Object obj)
Registers the handler for CDMA T53 CLIR information record
Unlike the register* methods, there's only one notification handler
|
void |
requestShutdown(Message result)
Inform RIL that the device is shutting down
|
void |
setDataAllowed(boolean allowed,
Message response)
Tells the modem if data is allowed or not.
|
void |
setEmergencyCallbackMode(Handler h,
int what,
Object obj)
Fires on if Modem enters Emergency Callback mode
|
void |
setOnCallRing(Handler h,
int what,
Object obj)
Sets the handler for RING notifications.
|
void |
setOnCatCallSetUp(Handler h,
int what,
Object obj)
Sets the handler for Call Set Up Notifications for CAT.
|
void |
setOnCatCcAlphaNotify(Handler h,
int what,
Object obj)
Sets the handler for Alpha Notification during STK Call Control.
|
void |
setOnCatEvent(Handler h,
int what,
Object obj)
Sets the handler for Event Notifications for CAT.
|
void |
setOnCatProactiveCmd(Handler h,
int what,
Object obj)
Sets the handler for Proactive Commands for CAT.
|
void |
setOnCatSessionEnd(Handler h,
int what,
Object obj)
Sets the handler for Session End Notifications for CAT.
|
void |
setOnIccRefresh(Handler h,
int what,
Object obj) |
void |
setOnIccSmsFull(Handler h,
int what,
Object obj)
Sets the handler for SIM/RUIM SMS storage full unsolicited message.
|
void |
setOnNewCdmaSms(Handler h,
int what,
Object obj)
unlike the register* methods, there's only one new 3GPP2 format SMS handler.
|
void |
setOnNewGsmBroadcastSms(Handler h,
int what,
Object obj)
Set the handler for SMS Cell Broadcast messages.
|
void |
setOnNewGsmSms(Handler h,
int what,
Object obj)
unlike the register* methods, there's only one new 3GPP format SMS handler.
|
void |
setOnNITZTime(Handler h,
int what,
Object obj)
unlike the register* methods, there's only one NITZ time handler
AsyncResult.result is an Object[]
((Object[])AsyncResult.result)[0] is a String containing the NITZ time string
((Object[])AsyncResult.result)[1] is a Long containing the milliseconds since boot as
returned by elapsedRealtime() when this NITZ time
was posted.
|
void |
setOnRestrictedStateChanged(Handler h,
int what,
Object obj)
Sets the handler for RESTRICTED_STATE changed notification,
eg, for Domain Specific Access Control
unlike the register* methods, there's only one signal strength handler
AsyncResult.result is an int[1]
response.obj.result[0] is a bitmask of RIL_RESTRICTED_STATE_* values
|
void |
setOnSignalStrengthUpdate(Handler h,
int what,
Object obj)
unlike the register* methods, there's only one signal strength handler
AsyncResult.result is an int[2]
response.obj.result[0] is received signal strength (0-31, 99)
response.obj.result[1] is bit error rate (0-7, 99)
as defined in TS 27.007 8.5
|
void |
setOnSmsOnSim(Handler h,
int what,
Object obj)
Register for NEW_SMS_ON_SIM unsolicited message
AsyncResult.result is an int array containing the index of new SMS
|
void |
setOnSmsStatus(Handler h,
int what,
Object obj)
Register for NEW_SMS_STATUS_REPORT unsolicited message
AsyncResult.result is a String containing the status report PDU
|
void |
setOnSs(Handler h,
int what,
Object obj)
Sets the handler for notifying Suplementary Services (SS)
Data during STK Call Control.
|
void |
setOnSuppServiceNotification(Handler h,
int what,
Object obj)
Sets the handler for Supplementary Service Notifications.
|
void |
setOnUnsolOemHookRaw(Handler h,
int what,
Object obj)
Fires when RIL_UNSOL_OEM_HOOK_RAW is received from the RIL.
|
void |
setOnUSSD(Handler h,
int what,
Object obj)
unlike the register* methods, there's only one USSD notify handler
Represents the arrival of a USSD "notify" message, which may
or may not have been triggered by a previous USSD send
AsyncResult.result is a String[]
((String[])(AsyncResult.result))[0] contains status code
"0" USSD-Notify -- text in ((const char **)data)[1]
"1" USSD-Request -- text in ((const char **)data)[1]
"2" Session terminated by network
"3" other local client (eg, SIM Toolkit) has responded
"4" Operation not supported
"5" Network timeout
((String[])(AsyncResult.result))[1] contains the USSD message
The numeric representations of these are in USSD_MODE_*
|
void |
setRadioCapability(RadioCapability rc,
Message response)
Set phone radio type and access technology.
|
protected void |
setRadioState(CommandsInterface.RadioState newState)
Store new RadioState and send notification based on the changes
This function is called only by RIL.java when receiving unsolicited
RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED
RadioState has 3 values : RADIO_OFF, RADIO_UNAVAILABLE, RADIO_ON.
|
void |
setUiccSubscription(int slotId,
int appIndex,
int subId,
int subStatus,
Message response)
Sets user selected subscription at Modem.
|
void |
startLceService(int reportIntervalMs,
boolean pullMode,
Message result)
Start LCE (Link Capacity Estimation) service with a desired reporting interval.
|
void |
stopLceService(Message result)
Stop LCE service.
|
void |
testingEmergencyCall()
Notifiy that we are testing an emergency call
|
void |
unregisterForAvailable(Handler h) |
void |
unregisterForCallStateChanged(Handler h) |
void |
unregisterForCallWaitingInfo(Handler h) |
void |
unregisterForCdmaOtaProvision(Handler h) |
void |
unregisterForCdmaPrlChanged(Handler h) |
void |
unregisterForCdmaSubscriptionChanged(Handler h) |
void |
unregisterForCellInfoList(Handler h) |
void |
unregisterForDataNetworkStateChanged(Handler h) |
void |
unregisterForDisplayInfo(Handler h) |
void |
unregisterForExitEmergencyCallbackMode(Handler h) |
void |
unregisterForHardwareConfigChanged(Handler h) |
void |
unregisterForIccRefresh(Handler h) |
void |
unregisterForIccStatusChanged(Handler h) |
void |
unregisterForImsNetworkStateChanged(Handler h) |
void |
unregisterForInCallVoicePrivacyOff(Handler h) |
void |
unregisterForInCallVoicePrivacyOn(Handler h) |
void |
unregisterForLceInfo(Handler h)
Unregister the LCE Info listener.
|
void |
unregisterForLineControlInfo(Handler h) |
void |
unregisterForNotAvailable(Handler h) |
void |
unregisterForNumberInfo(Handler h) |
void |
unregisterForOffOrNotAvailable(Handler h) |
void |
unregisterForOn(Handler h) |
void |
unregisterForPcoData(Handler h)
Unregister for PCO data.
|
void |
unregisterForRadioCapabilityChanged(Handler h)
Unregister for notifications when phone radio capability is changed.
|
void |
unregisterForRadioStateChanged(Handler h) |
void |
unregisterForRedirectedNumberInfo(Handler h) |
void |
unregisterForResendIncallMute(Handler h) |
void |
unregisterForRilConnected(Handler h) |
void |
unregisterForRingbackTone(Handler h) |
void |
unregisterForSignalInfo(Handler h) |
void |
unregisterForSrvccStateChanged(Handler h) |
void |
unregisterForSubscriptionStatusChanged(Handler h) |
void |
unregisterForT53AudioControlInfo(Handler h) |
void |
unregisterForT53ClirInfo(Handler h) |
void |
unregisterForVoiceNetworkStateChanged(Handler h) |
void |
unregisterForVoiceRadioTechChanged(Handler h) |
void |
unSetOnCallRing(Handler h) |
void |
unSetOnCatCallSetUp(Handler h) |
void |
unSetOnCatCcAlphaNotify(Handler h) |
void |
unSetOnCatEvent(Handler h) |
void |
unSetOnCatProactiveCmd(Handler h) |
void |
unSetOnCatSessionEnd(Handler h) |
void |
unsetOnIccRefresh(Handler h) |
void |
unSetOnIccSmsFull(Handler h) |
void |
unSetOnNewCdmaSms(Handler h) |
void |
unSetOnNewGsmBroadcastSms(Handler h) |
void |
unSetOnNewGsmSms(Handler h) |
void |
unSetOnNITZTime(Handler h) |
void |
unSetOnRestrictedStateChanged(Handler h) |
void |
unSetOnSignalStrengthUpdate(Handler h) |
void |
unSetOnSmsOnSim(Handler h) |
void |
unSetOnSmsStatus(Handler h) |
void |
unSetOnSs(Handler h) |
void |
unSetOnSuppServiceNotification(Handler h) |
void |
unSetOnUnsolOemHookRaw(Handler h) |
void |
unSetOnUSSD(Handler h) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptCall, acknowledgeIncomingGsmSmsWithPdu, acknowledgeLastIncomingCdmaSms, acknowledgeLastIncomingGsmSms, cancelPendingUssd, changeBarringPassword, changeIccPin, changeIccPin2, changeIccPin2ForApp, changeIccPinForApp, conference, deactivateDataCall, deleteSmsOnRuim, deleteSmsOnSim, dial, dial, exitEmergencyCallbackMode, explicitCallTransfer, getAllowedCarriers, getAvailableNetworks, getBasebandVersion, getCdmaBroadcastConfig, getCDMASubscription, getCdmaSubscriptionSource, getCellInfoList, getCLIR, getCurrentCalls, getDataCallList, getDataRegistrationState, getDeviceIdentity, getGsmBroadcastConfig, getHardwareConfig, getIccCardStatus, getIMEI, getIMEISV, getIMSI, getIMSIForApp, getImsRegistrationState, getLastCallFailCause, getLastDataCallFailCause, getLastPdpFailCause, getModemActivityInfo, getMute, getNeighboringCids, getNetworkSelectionMode, getOperator, getPDPContextList, getPreferredNetworkType, getPreferredVoicePrivacy, getSignalStrength, getSmscAddress, getVoiceRadioTechnology, getVoiceRegistrationState, handleCallSetupRequestFromSim, hangupConnection, hangupForegroundResumeBackground, hangupWaitingOrBackground, iccCloseLogicalChannel, iccIO, iccIOForApp, iccOpenLogicalChannel, iccTransmitApduBasicChannel, iccTransmitApduLogicalChannel, invokeOemRilRequestRaw, invokeOemRilRequestStrings, nvReadItem, nvResetConfig, nvWriteCdmaPrl, nvWriteItem, queryAvailableBandMode, queryCallForwardStatus, queryCallWaiting, queryCdmaRoamingPreference, queryCLIP, queryFacilityLock, queryFacilityLockForApp, queryTTYMode, rejectCall, reportSmsMemoryStatus, reportStkServiceIsRunning, requestIccSimAuthentication, requestIsimAuthentication, resetRadio, sendBurstDtmf, sendCDMAFeatureCode, sendCdmaSms, sendDtmf, sendEnvelope, sendEnvelopeWithStatus, sendImsCdmaSms, sendImsGsmSms, sendSMS, sendSMSExpectMore, sendTerminalResponse, sendUSSD, separateConnection, setAllowedCarriers, setBandMode, setCallForward, setCallWaiting, setCdmaBroadcastActivation, setCdmaBroadcastConfig, setCdmaRoamingPreference, setCdmaSubscriptionSource, setCellInfoListRate, setCLIR, setDataProfile, setFacilityLock, setFacilityLockForApp, setGsmBroadcastActivation, setGsmBroadcastConfig, setInitialAttachApn, setLocationUpdates, setMute, setNetworkSelectionModeAutomatic, setNetworkSelectionModeManual, setPhoneType, setPreferredNetworkType, setPreferredVoicePrivacy, setRadioPower, setSmscAddress, setSuppServiceNotifications, setTTYMode, setupDataCall, startDtmf, stopDtmf, supplyIccPin, supplyIccPin2, supplyIccPin2ForApp, supplyIccPinForApp, supplyIccPuk, supplyIccPuk2, supplyIccPuk2ForApp, supplyIccPukForApp, supplyNetworkDepersonalization, switchWaitingOrHoldingAndActive, writeSmsToRuim, writeSmsToSim
protected Context mContext
protected CommandsInterface.RadioState mState
protected Object mStateMonitor
protected RegistrantList mRadioStateChangedRegistrants
protected RegistrantList mOnRegistrants
protected RegistrantList mAvailRegistrants
protected RegistrantList mOffOrNotAvailRegistrants
protected RegistrantList mNotAvailRegistrants
protected RegistrantList mCallStateRegistrants
protected RegistrantList mVoiceNetworkStateRegistrants
protected RegistrantList mDataNetworkStateRegistrants
protected RegistrantList mVoiceRadioTechChangedRegistrants
protected RegistrantList mImsNetworkStateChangedRegistrants
protected RegistrantList mIccStatusChangedRegistrants
protected RegistrantList mVoicePrivacyOnRegistrants
protected RegistrantList mVoicePrivacyOffRegistrants
protected Registrant mUnsolOemHookRawRegistrant
protected RegistrantList mOtaProvisionRegistrants
protected RegistrantList mCallWaitingInfoRegistrants
protected RegistrantList mDisplayInfoRegistrants
protected RegistrantList mSignalInfoRegistrants
protected RegistrantList mNumberInfoRegistrants
protected RegistrantList mRedirNumInfoRegistrants
protected RegistrantList mLineControlInfoRegistrants
protected RegistrantList mT53ClirInfoRegistrants
protected RegistrantList mT53AudCntrlInfoRegistrants
protected RegistrantList mRingbackToneRegistrants
protected RegistrantList mResendIncallMuteRegistrants
protected RegistrantList mCdmaSubscriptionChangedRegistrants
protected RegistrantList mCdmaPrlChangedRegistrants
protected RegistrantList mExitEmergencyCallbackModeRegistrants
protected RegistrantList mRilConnectedRegistrants
protected RegistrantList mIccRefreshRegistrants
protected RegistrantList mRilCellInfoListRegistrants
protected RegistrantList mSubscriptionStatusRegistrants
protected RegistrantList mSrvccStateRegistrants
protected RegistrantList mHardwareConfigChangeRegistrants
protected RegistrantList mPhoneRadioCapabilityChangedRegistrants
protected RegistrantList mPcoDataRegistrants
protected Registrant mGsmSmsRegistrant
protected Registrant mCdmaSmsRegistrant
protected Registrant mNITZTimeRegistrant
protected Registrant mSignalStrengthRegistrant
protected Registrant mUSSDRegistrant
protected Registrant mSmsOnSimRegistrant
protected Registrant mSmsStatusRegistrant
protected Registrant mSsnRegistrant
protected Registrant mCatSessionEndRegistrant
protected Registrant mCatProCmdRegistrant
protected Registrant mCatEventRegistrant
protected Registrant mCatCallSetUpRegistrant
protected Registrant mIccSmsFullRegistrant
protected Registrant mEmergencyCallbackModeRegistrant
protected Registrant mRingRegistrant
protected Registrant mRestrictedStateRegistrant
protected Registrant mGsmBroadcastSmsRegistrant
protected Registrant mCatCcAlphaRegistrant
protected Registrant mSsRegistrant
protected Registrant mLceInfoRegistrant
protected int mPreferredNetworkType
protected int mCdmaSubscription
protected int mPhoneType
protected int mRilVersion
public BaseCommands(Context context)
public CommandsInterface.RadioState getRadioState()
getRadioState
in interface CommandsInterface
public void registerForRadioStateChanged(Handler h, int what, Object obj)
CommandsInterface
registerForRadioStateChanged
in interface CommandsInterface
public void unregisterForRadioStateChanged(Handler h)
unregisterForRadioStateChanged
in interface CommandsInterface
public void registerForImsNetworkStateChanged(Handler h, int what, Object obj)
registerForImsNetworkStateChanged
in interface CommandsInterface
public void unregisterForImsNetworkStateChanged(Handler h)
unregisterForImsNetworkStateChanged
in interface CommandsInterface
public void registerForOn(Handler h, int what, Object obj)
CommandsInterface
registerForOn
in interface CommandsInterface
public void unregisterForOn(Handler h)
unregisterForOn
in interface CommandsInterface
public void registerForAvailable(Handler h, int what, Object obj)
CommandsInterface
registerForAvailable
in interface CommandsInterface
public void unregisterForAvailable(Handler h)
unregisterForAvailable
in interface CommandsInterface
public void registerForNotAvailable(Handler h, int what, Object obj)
CommandsInterface
registerForNotAvailable
in interface CommandsInterface
public void unregisterForNotAvailable(Handler h)
unregisterForNotAvailable
in interface CommandsInterface
public void registerForOffOrNotAvailable(Handler h, int what, Object obj)
CommandsInterface
registerForOffOrNotAvailable
in interface CommandsInterface
public void unregisterForOffOrNotAvailable(Handler h)
unregisterForOffOrNotAvailable
in interface CommandsInterface
public void registerForCallStateChanged(Handler h, int what, Object obj)
registerForCallStateChanged
in interface CommandsInterface
public void unregisterForCallStateChanged(Handler h)
unregisterForCallStateChanged
in interface CommandsInterface
public void registerForVoiceNetworkStateChanged(Handler h, int what, Object obj)
registerForVoiceNetworkStateChanged
in interface CommandsInterface
public void unregisterForVoiceNetworkStateChanged(Handler h)
unregisterForVoiceNetworkStateChanged
in interface CommandsInterface
public void registerForDataNetworkStateChanged(Handler h, int what, Object obj)
registerForDataNetworkStateChanged
in interface CommandsInterface
public void unregisterForDataNetworkStateChanged(Handler h)
unregisterForDataNetworkStateChanged
in interface CommandsInterface
public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj)
registerForVoiceRadioTechChanged
in interface CommandsInterface
public void unregisterForVoiceRadioTechChanged(Handler h)
unregisterForVoiceRadioTechChanged
in interface CommandsInterface
public void registerForIccStatusChanged(Handler h, int what, Object obj)
CommandsInterface
registerForIccStatusChanged
in interface CommandsInterface
public void unregisterForIccStatusChanged(Handler h)
unregisterForIccStatusChanged
in interface CommandsInterface
public void setOnNewGsmSms(Handler h, int what, Object obj)
CommandsInterface
setOnNewGsmSms
in interface CommandsInterface
public void unSetOnNewGsmSms(Handler h)
unSetOnNewGsmSms
in interface CommandsInterface
public void setOnNewCdmaSms(Handler h, int what, Object obj)
CommandsInterface
setOnNewCdmaSms
in interface CommandsInterface
public void unSetOnNewCdmaSms(Handler h)
unSetOnNewCdmaSms
in interface CommandsInterface
public void setOnNewGsmBroadcastSms(Handler h, int what, Object obj)
CommandsInterface
setOnNewGsmBroadcastSms
in interface CommandsInterface
public void unSetOnNewGsmBroadcastSms(Handler h)
unSetOnNewGsmBroadcastSms
in interface CommandsInterface
public void setOnSmsOnSim(Handler h, int what, Object obj)
CommandsInterface
setOnSmsOnSim
in interface CommandsInterface
public void unSetOnSmsOnSim(Handler h)
unSetOnSmsOnSim
in interface CommandsInterface
public void setOnSmsStatus(Handler h, int what, Object obj)
CommandsInterface
setOnSmsStatus
in interface CommandsInterface
public void unSetOnSmsStatus(Handler h)
unSetOnSmsStatus
in interface CommandsInterface
public void setOnSignalStrengthUpdate(Handler h, int what, Object obj)
CommandsInterface
setOnSignalStrengthUpdate
in interface CommandsInterface
public void unSetOnSignalStrengthUpdate(Handler h)
unSetOnSignalStrengthUpdate
in interface CommandsInterface
public void setOnNITZTime(Handler h, int what, Object obj)
CommandsInterface
setOnNITZTime
in interface CommandsInterface
public void unSetOnNITZTime(Handler h)
unSetOnNITZTime
in interface CommandsInterface
public void setOnUSSD(Handler h, int what, Object obj)
CommandsInterface
setOnUSSD
in interface CommandsInterface
public void unSetOnUSSD(Handler h)
unSetOnUSSD
in interface CommandsInterface
public void setOnSuppServiceNotification(Handler h, int what, Object obj)
CommandsInterface
setOnSuppServiceNotification
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnSuppServiceNotification(Handler h)
unSetOnSuppServiceNotification
in interface CommandsInterface
public void setOnCatSessionEnd(Handler h, int what, Object obj)
CommandsInterface
setOnCatSessionEnd
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatSessionEnd(Handler h)
unSetOnCatSessionEnd
in interface CommandsInterface
public void setOnCatProactiveCmd(Handler h, int what, Object obj)
CommandsInterface
setOnCatProactiveCmd
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatProactiveCmd(Handler h)
unSetOnCatProactiveCmd
in interface CommandsInterface
public void setOnCatEvent(Handler h, int what, Object obj)
CommandsInterface
setOnCatEvent
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatEvent(Handler h)
unSetOnCatEvent
in interface CommandsInterface
public void setOnCatCallSetUp(Handler h, int what, Object obj)
CommandsInterface
setOnCatCallSetUp
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatCallSetUp(Handler h)
unSetOnCatCallSetUp
in interface CommandsInterface
public void setOnIccSmsFull(Handler h, int what, Object obj)
CommandsInterface
setOnIccSmsFull
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnIccSmsFull(Handler h)
unSetOnIccSmsFull
in interface CommandsInterface
public void registerForIccRefresh(Handler h, int what, Object obj)
CommandsInterface
registerForIccRefresh
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void setOnIccRefresh(Handler h, int what, Object obj)
setOnIccRefresh
in interface CommandsInterface
public void setEmergencyCallbackMode(Handler h, int what, Object obj)
CommandsInterface
setEmergencyCallbackMode
in interface CommandsInterface
public void unregisterForIccRefresh(Handler h)
unregisterForIccRefresh
in interface CommandsInterface
public void unsetOnIccRefresh(Handler h)
unsetOnIccRefresh
in interface CommandsInterface
public void setOnCallRing(Handler h, int what, Object obj)
CommandsInterface
setOnCallRing
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCallRing(Handler h)
unSetOnCallRing
in interface CommandsInterface
public void setOnSs(Handler h, int what, Object obj)
CommandsInterface
setOnSs
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnSs(Handler h)
unSetOnSs
in interface CommandsInterface
public void setOnCatCcAlphaNotify(Handler h, int what, Object obj)
CommandsInterface
setOnCatCcAlphaNotify
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatCcAlphaNotify(Handler h)
unSetOnCatCcAlphaNotify
in interface CommandsInterface
public void registerForInCallVoicePrivacyOn(Handler h, int what, Object obj)
CommandsInterface
registerForInCallVoicePrivacyOn
in interface CommandsInterface
public void unregisterForInCallVoicePrivacyOn(Handler h)
unregisterForInCallVoicePrivacyOn
in interface CommandsInterface
public void registerForInCallVoicePrivacyOff(Handler h, int what, Object obj)
registerForInCallVoicePrivacyOff
in interface CommandsInterface
public void unregisterForInCallVoicePrivacyOff(Handler h)
unregisterForInCallVoicePrivacyOff
in interface CommandsInterface
public void setOnRestrictedStateChanged(Handler h, int what, Object obj)
CommandsInterface
setOnRestrictedStateChanged
in interface CommandsInterface
public void unSetOnRestrictedStateChanged(Handler h)
unSetOnRestrictedStateChanged
in interface CommandsInterface
public void registerForDisplayInfo(Handler h, int what, Object obj)
CommandsInterface
registerForDisplayInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForDisplayInfo(Handler h)
unregisterForDisplayInfo
in interface CommandsInterface
public void registerForCallWaitingInfo(Handler h, int what, Object obj)
CommandsInterface
registerForCallWaitingInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForCallWaitingInfo(Handler h)
unregisterForCallWaitingInfo
in interface CommandsInterface
public void registerForSignalInfo(Handler h, int what, Object obj)
CommandsInterface
registerForSignalInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void setOnUnsolOemHookRaw(Handler h, int what, Object obj)
CommandsInterface
setOnUnsolOemHookRaw
in interface CommandsInterface
public void unSetOnUnsolOemHookRaw(Handler h)
unSetOnUnsolOemHookRaw
in interface CommandsInterface
public void unregisterForSignalInfo(Handler h)
unregisterForSignalInfo
in interface CommandsInterface
public void registerForCdmaOtaProvision(Handler h, int what, Object obj)
CommandsInterface
registerForCdmaOtaProvision
in interface CommandsInterface
public void unregisterForCdmaOtaProvision(Handler h)
unregisterForCdmaOtaProvision
in interface CommandsInterface
public void registerForNumberInfo(Handler h, int what, Object obj)
CommandsInterface
registerForNumberInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForNumberInfo(Handler h)
unregisterForNumberInfo
in interface CommandsInterface
public void registerForRedirectedNumberInfo(Handler h, int what, Object obj)
CommandsInterface
registerForRedirectedNumberInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForRedirectedNumberInfo(Handler h)
unregisterForRedirectedNumberInfo
in interface CommandsInterface
public void registerForLineControlInfo(Handler h, int what, Object obj)
CommandsInterface
registerForLineControlInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForLineControlInfo(Handler h)
unregisterForLineControlInfo
in interface CommandsInterface
public void registerFoT53ClirlInfo(Handler h, int what, Object obj)
CommandsInterface
registerFoT53ClirlInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForT53ClirInfo(Handler h)
unregisterForT53ClirInfo
in interface CommandsInterface
public void registerForT53AudioControlInfo(Handler h, int what, Object obj)
CommandsInterface
registerForT53AudioControlInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForT53AudioControlInfo(Handler h)
unregisterForT53AudioControlInfo
in interface CommandsInterface
public void registerForRingbackTone(Handler h, int what, Object obj)
CommandsInterface
Messages received from this: Message.obj will be an AsyncResult AsyncResult.userObj = obj AsyncResult.result = boolean.
registerForRingbackTone
in interface CommandsInterface
public void unregisterForRingbackTone(Handler h)
unregisterForRingbackTone
in interface CommandsInterface
public void registerForResendIncallMute(Handler h, int what, Object obj)
CommandsInterface
registerForResendIncallMute
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForResendIncallMute(Handler h)
unregisterForResendIncallMute
in interface CommandsInterface
public void registerForCdmaSubscriptionChanged(Handler h, int what, Object obj)
CommandsInterface
registerForCdmaSubscriptionChanged
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForCdmaSubscriptionChanged(Handler h)
unregisterForCdmaSubscriptionChanged
in interface CommandsInterface
public void registerForCdmaPrlChanged(Handler h, int what, Object obj)
CommandsInterface
registerForCdmaPrlChanged
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForCdmaPrlChanged(Handler h)
unregisterForCdmaPrlChanged
in interface CommandsInterface
public void registerForExitEmergencyCallbackMode(Handler h, int what, Object obj)
CommandsInterface
registerForExitEmergencyCallbackMode
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForExitEmergencyCallbackMode(Handler h)
unregisterForExitEmergencyCallbackMode
in interface CommandsInterface
public void registerForHardwareConfigChanged(Handler h, int what, Object obj)
CommandsInterface
registerForHardwareConfigChanged
in interface CommandsInterface
public void unregisterForHardwareConfigChanged(Handler h)
unregisterForHardwareConfigChanged
in interface CommandsInterface
public void registerForRilConnected(Handler h, int what, Object obj)
registerForRilConnected
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForRilConnected(Handler h)
unregisterForRilConnected
in interface CommandsInterface
public void registerForSubscriptionStatusChanged(Handler h, int what, Object obj)
CommandsInterface
registerForSubscriptionStatusChanged
in interface CommandsInterface
h
- Handler for subscription status change messages.what
- User-defined message code.obj
- User object.public void unregisterForSubscriptionStatusChanged(Handler h)
unregisterForSubscriptionStatusChanged
in interface CommandsInterface
protected void setRadioState(CommandsInterface.RadioState newState)
newState
- new RadioState decoded from RIL_UNSOL_RADIO_STATE_CHANGEDprotected void onRadioAvailable()
public int getLteOnCdmaMode()
getLteOnCdmaMode
in interface CommandsInterface
PhoneConstants.LTE_ON_CDMA_UNKNOWN
, PhoneConstants.LTE_ON_CDMA_FALSE
or PhoneConstants.LTE_ON_CDMA_TRUE
public void registerForCellInfoList(Handler h, int what, Object obj)
registerForCellInfoList
in interface CommandsInterface
public void unregisterForCellInfoList(Handler h)
unregisterForCellInfoList
in interface CommandsInterface
public void registerForSrvccStateChanged(Handler h, int what, Object obj)
CommandsInterface
registerForSrvccStateChanged
in interface CommandsInterface
public void unregisterForSrvccStateChanged(Handler h)
unregisterForSrvccStateChanged
in interface CommandsInterface
public void testingEmergencyCall()
CommandsInterface
testingEmergencyCall
in interface CommandsInterface
public int getRilVersion()
getRilVersion
in interface CommandsInterface
public void setUiccSubscription(int slotId, int appIndex, int subId, int subStatus, Message response)
CommandsInterface
setUiccSubscription
in interface CommandsInterface
slotId
- Slot.appIndex
- Application index in the card.subId
- Indicates subscription 0 or subscription 1.subStatus
- Activation status, 1 = activate and 0 = deactivate.response
- Callback message contains the information of SUCCESS/FAILURE.public void setDataAllowed(boolean allowed, Message response)
CommandsInterface
setDataAllowed
in interface CommandsInterface
allowed
- true = allowed, false = not alowedresponse
- Callback message contains the information of SUCCESS/FAILURE.public void requestShutdown(Message result)
CommandsInterface
requestShutdown
in interface CommandsInterface
result
- Callback message contains the information of SUCCESS/FAILUREpublic void getRadioCapability(Message result)
CommandsInterface
getRadioCapability
in interface CommandsInterface
result
- Callback message.public void setRadioCapability(RadioCapability rc, Message response)
CommandsInterface
setRadioCapability
in interface CommandsInterface
rc
- the phone radio capability defined in
RadioCapability. It's a input object used to transfer parameter to logic modemresponse
- Callback message.public void registerForRadioCapabilityChanged(Handler h, int what, Object obj)
CommandsInterface
registerForRadioCapabilityChanged
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForRadioCapabilityChanged(Handler h)
CommandsInterface
unregisterForRadioCapabilityChanged
in interface CommandsInterface
h
- Handler to be removed from the registrant list.public void startLceService(int reportIntervalMs, boolean pullMode, Message result)
CommandsInterface
startLceService
in interface CommandsInterface
reportIntervalMs
- LCE info reporting interval (ms).result
- Callback message contains the current LCE status.
{byte status, int actualIntervalMs}public void stopLceService(Message result)
CommandsInterface
stopLceService
in interface CommandsInterface
result
- Callback message contains the current LCE status:
{byte status, int actualIntervalMs}public void pullLceData(Message result)
CommandsInterface
pullLceData
in interface CommandsInterface
result
- Callback message contains the capacity info:
{int capacityKbps, byte confidenceLevel, byte lceSuspendedTemporarily}public void registerForLceInfo(Handler h, int what, Object obj)
CommandsInterface
registerForLceInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForLceInfo(Handler h)
CommandsInterface
unregisterForLceInfo
in interface CommandsInterface
h
- handle to be removed.public void registerForPcoData(Handler h, int what, Object obj)
CommandsInterface
registerForPcoData
in interface CommandsInterface
h
- Handler for notificaiton message.what
- User-defined message code.obj
- User object.public void unregisterForPcoData(Handler h)
CommandsInterface
unregisterForPcoData
in interface CommandsInterface
h
- handler to be removed