Methods Summary |
---|
public void | acceptCall(int videoState)Answers a ringing or waiting call. Active calls, if any, go on hold.
Answering occurs asynchronously, and final notification occurs via
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}.
|
public void | acquireOwnershipOfImsPhone(com.android.internal.telephony.imsphone.ImsPhone imsPhone)Take ownership and wire-up the input ImsPhone
|
public void | activateCellBroadcastSms(int activate, android.os.Message response)Activate or deactivate cell broadcast SMS.
|
public boolean | canConference()Whether or not the phone can conference in the current phone
state--that is, one call holding and one call active.
|
public boolean | canTransfer()Whether or not the phone can do explicit call transfer in the current
phone state--that is, one call holding and one call active.
|
public void | clearDisconnected()Clears all DISCONNECTED connections from Call connection lists.
Calls that were in the DISCONNECTED state become idle. This occurs
synchronously.
|
public void | conference()Conferences holding and active. Conference occurs asynchronously
and may fail. Final notification occurs via
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}.
|
public Connection | dial(java.lang.String dialString, int videoState)Initiate a new voice connection. This happens asynchronously, so you
cannot assume the audio path is connected (or a call index has been
assigned) until PhoneStateChanged notification has occurred.
|
public Connection | dial(java.lang.String dialString, UUSInfo uusInfo, int videoState)Initiate a new voice connection with supplementary User to User
Information. This happens asynchronously, so you cannot assume the audio
path is connected (or a call index has been assigned) until
PhoneStateChanged notification has occurred.
|
public void | disableDnsCheck(boolean b)Disables the DNS check (i.e., allows "0.0.0.0").
Useful for lab testing environment.
|
public void | disableLocationUpdates()Disable location update notifications.
|
public void | dispose()Unregister from all events it registered for and dispose objects
created by this object.
|
public void | enableEnhancedVoicePrivacy(boolean enable, android.os.Message onComplete)Enable or disable enhanced Voice Privacy (VP). If enhanced VP is
disabled, normal VP is enabled.
|
public void | enableLocationUpdates()Enable location update notifications.
|
public void | exitEmergencyCallbackMode()request to exit emergency call back mode
the caller should use setOnECMModeExitResponse
to receive the emergency callback mode exit response
|
public void | explicitCallTransfer()Connects the two calls and disconnects the subscriber from both calls
Explicit Call Transfer occurs asynchronously
and may fail. Final notification occurs via
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}.
|
public java.lang.String | getActiveApnHost(java.lang.String apnType)Returns string for the active APN host.
|
public java.lang.String[] | getActiveApnTypes()Returns an array of string identifiers for the APN types serviced by the
currently active.
|
public java.util.List | getAllCellInfo()
|
public void | getAvailableNetworks(android.os.Message response)Scan available networks. This method is asynchronous; .
On completion, response.obj is set to an AsyncResult with
one of the following members:.
response.obj.result will be a List of
OperatorInfo objects, or
response.obj.exception will be set with an exception
on failure.
|
public Call | getBackgroundCall()Gets the background call object, which represents all connections that
are holding (all connections that have been accepted or connected, but
do not have their audio path connected).
The background call is a singleton object. It is constant for the life
of this phone object . It is never null.
The background call will only ever be in one of these states:
IDLE, HOLDING or DISCONNECTED.
State change notification is available via
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}.
|
public boolean | getCallForwardingIndicator()Get voice call forwarding indicator status. No change notification
available on this interface. Use PhoneStateNotifier or similar instead.
|
public void | getCallForwardingOption(int commandInterfaceCFReason, android.os.Message onComplete)getCallForwardingOptions
gets a call forwarding option. The return value of
((AsyncResult)onComplete.obj) is an array of CallForwardInfo.
|
public void | getCallWaiting(android.os.Message onComplete)getCallWaiting
gets call waiting activation state. The return value of
((AsyncResult)onComplete.obj) is an array of int, with a length of 1.
|
public int | getCdmaEriIconIndex()Returns the CDMA ERI icon index to display
|
public int | getCdmaEriIconMode()Returns the CDMA ERI icon mode,
0 - ON
1 - FLASHING
|
public java.lang.String | getCdmaEriText()Returns the CDMA ERI text,
|
public java.lang.String | getCdmaMin()Retrieves the MIN for CDMA phones.
|
public java.lang.String | getCdmaPrlVersion()Retrieves PRL Version for CDMA phones
|
public void | getCellBroadcastSmsConfig(android.os.Message response)Query the current configuration of cdma cell broadcast SMS.
|
public android.telephony.CellLocation | getCellLocation()Get the current CellLocation.
|
public android.content.Context | getContext()Gets the context for the phone, as set at initialization time.
|
public com.android.internal.telephony.Phone$DataActivityState | getDataActivityState()Get the current DataActivityState. No change notification exists at this
interface -- use
{@link android.telephony.TelephonyManager} instead.
|
public void | getDataCallList(android.os.Message response)Get the current active Data Call list
|
public DataState | getDataConnectionState()Get the current for the default apn DataState. No change notification
exists at this interface -- use
{@link android.telephony.PhoneStateListener} instead.
|
public DataState | getDataConnectionState(java.lang.String apnType)Get the current DataState. No change notification exists at this
interface -- use
{@link android.telephony.PhoneStateListener} instead.
|
public boolean | getDataEnabled()
|
public boolean | getDataRoamingEnabled()
|
public java.lang.String | getDeviceId()Retrieves the unique device ID, e.g., IMEI for GSM phones and MEID for CDMA phones.
|
public java.lang.String | getDeviceSvn()Retrieves the software version number for the device, e.g., IMEI/SV
for GSM phones.
|
public void | getEnhancedVoicePrivacy(android.os.Message onComplete)Get the currently set Voice Privacy (VP) mode.
|
public java.lang.String | getEsn()Retrieves the ESN for CDMA phones.
|
public Call | getForegroundCall()Gets the foreground call object, which represents all connections that
are dialing or active (all connections
that have their audio path connected).
The foreground call is a singleton object. It is constant for the life
of this phone. It is never null.
The foreground call will only ever be in one of these states:
IDLE, ACTIVE, DIALING, ALERTING, or DISCONNECTED.
State change notification is available via
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}.
|
public java.lang.String | getGroupIdLevel1()Retrieves the Group Identifier Level1 for GSM phones.
|
public IccCard | getIccCard()Returns the ICC card interface for this phone, or null
if not applicable to underlying technology.
|
public IccPhoneBookInterfaceManager | getIccPhoneBookInterfaceManager()Retrieves the IccPhoneBookInterfaceManager of the Phone
|
public boolean | getIccRecordsLoaded()Returns SIM record load state. Use
getSimCard().registerForReady() for change notification.
|
public java.lang.String | getIccSerialNumber()Retrieves the serial number of the ICC, if applicable.
|
public java.lang.String | getImei()Retrieves IMEI for phones. Returns null if IMEI is not set.
|
public com.android.internal.telephony.Phone | getImsPhone()Return the ImsPhone phone co-managed with this phone
|
public com.android.internal.telephony.uicc.IsimRecords | getIsimRecords()Return an interface to retrieve the ISIM records for IMS, if available.
|
public java.lang.String | getLine1AlphaTag()Returns the alpha tag associated with the msisdn number.
If there is no alpha tag associated or the record is not yet available,
returns a default localized string.
|
public java.lang.String | getLine1Number()Get the line 1 phone number (MSISDN). For CDMA phones, the MDN is returned
and {@link #getMsisdn()} will return the MSISDN on CDMA/LTE phones.
|
public android.net.LinkProperties | getLinkProperties(java.lang.String apnType)Return the LinkProperties for the named apn or null if not available
|
public int | getLteOnCdmaMode()Return if the current radio is LTE on CDMA. This
is a tri-state return value as for a period of time
the mode may be unknown.
|
public java.lang.String | getMeid()Retrieves MEID for CDMA phones.
|
public boolean | getMessageWaitingIndicator()Get voice message waiting indicator status. No change notification
available on this interface. Use PhoneStateNotifier or similar instead.
|
public java.lang.String | getMsisdn()Retrieves the MSISDN from the UICC. For GSM/UMTS phones, this is equivalent to
{@link #getLine1Number()}. For CDMA phones, {@link #getLine1Number()} returns
the MDN, so this method is provided to return the MSISDN on CDMA/LTE phones.
|
public boolean | getMute()Gets current mute status. Use
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}
as a change notifcation, although presently phone state changed is not
fired when setMute() is called.
|
public java.lang.String | getNai()Retrieves Nai for phones. Returns null if Nai is not set.
|
public void | getNeighboringCids(android.os.Message response)Query neighboring cell IDs. response is dispatched when
this is complete. response.obj will be an AsyncResult,
and response.obj.exception will be non-null on failure.
On success, AsyncResult.result will be a String[]
containing the neighboring cell IDs. Index 0 will contain the count
of available cell IDs. Cell IDs are in hexadecimal format.
|
public android.net.NetworkCapabilities | getNetworkCapabilities(java.lang.String apnType)Return the NetworkCapabilities
|
public void | getNetworkSelectionMode(android.os.Message response)Query the radio for the current network selection mode.
Return values:
0 - automatic.
1 - manual.
|
public void | getOutgoingCallerIdDisplay(android.os.Message onComplete)getOutgoingCallerIdDisplay
gets outgoing caller id display. The return value of
((AsyncResult)onComplete.obj) is an array of int, with a length of 2.
|
public java.lang.String[] | getPcscfAddress(java.lang.String apnType)Get P-CSCF address from PCO after data connection is established or modified.
|
public java.util.List | getPendingMmiCodes()Returns a list of MMI codes that are pending. (They have initiated
but have not yet completed).
Presently there is only ever one.
Use registerForMmiInitiate
and registerForMmiComplete for change notification.
|
public int | getPhoneId()
|
public java.lang.String | getPhoneName()Returns a string identifier for this phone interface for parties
outside the phone app process.
|
public PhoneSubInfo | getPhoneSubInfo()Retrieves the PhoneSubInfo of the Phone
|
public int | getPhoneType()Return a numerical identifier for the phone radio interface.
|
public void | getPreferredNetworkType(android.os.Message response)Query the preferred network type setting
|
public int | getRadioAccessFamily()Get phone radio access family
|
public Call | getRingingCall()Gets the ringing call object, which represents an incoming
connection (if present) that is pending answer/accept. (This connection
may be RINGING or WAITING, and there may be only one.)
The ringing call is a singleton object. It is constant for the life
of this phone. It is never null.
The ringing call will only ever be in one of these states:
IDLE, INCOMING, WAITING or DISCONNECTED.
State change notification is available via
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}.
|
public android.telephony.ServiceState | getServiceState()Get the current ServiceState. Use
registerForServiceStateChanged to be informed of
updates.
|
public android.telephony.SignalStrength | getSignalStrength()Get current signal strength. No change notification available on this
interface. Use PhoneStateNotifier or an equivalent.
An ASU is 0-31 or -1 if unknown (for GSM, dBm = -113 - 2 * asu).
The following special values are defined:
- 0 means "-113 dBm or less".
- 31 means "-51 dBm or greater".
|
public com.android.internal.telephony.test.SimulatedRadioControl | getSimulatedRadioControl()If this is a simulated phone interface, returns a SimulatedRadioControl.
|
public void | getSmscAddress(android.os.Message result)Gets the default SMSC address.
|
public State | getState()Get current coarse-grained voice call state.
Use {@link #registerForPreciseCallStateChanged(Handler, int, Object)
registerForPreciseCallStateChanged()} for change notification.
If the phone has an active call and call waiting occurs,
then the phone state is RINGING not OFFHOOK
Note:
This registration point provides notification of finer-grained
changes.
|
public int | getSubId()
|
public java.lang.String | getSubscriberId()Retrieves the unique subscriber ID, e.g., IMSI for GSM phones.
|
public int | getSupportedRadioAccessFamily()Get supported phone radio access family
|
public com.android.internal.telephony.uicc.UiccCard | getUiccCard()Gets the Uicc card corresponding to this phone.
|
public boolean | getUnitTestMode()
|
public com.android.internal.telephony.uicc.UsimServiceTable | getUsimServiceTable()Gets the USIM service table from the UICC, if present and available.
|
public java.lang.String | getVoiceMailAlphaTag()Returns the alpha tag associated with the voice mail number.
If there is no alpha tag associated or the record is not yet available,
returns a default localized string.
Please use this value instead of some other localized string when
showing a name for this number in the UI. For example, call log
entries should show this alpha tag.
Usage of this alpha tag in the UI is a common carrier requirement.
|
public java.lang.String | getVoiceMailNumber()Get the voice mail access phone number. Typically dialed when the
user holds the "1" key in the phone app. May return null if not
available or the SIM is not ready.
|
public int | getVoiceMessageCount()Returns unread voicemail count. This count is shown when the voicemail
notification is expanded.
|
public int | getVoicePhoneServiceState()Return the service state of mImsPhone if it is STATE_IN_SERVICE
otherwise return the current voice service state
|
public boolean | handleInCallMmiCommands(java.lang.String command)Handles in-call MMI commands. While in a call, or while receiving a
call, use this to execute MMI commands.
see 3GPP 20.030, section 6.5.5.1 for specs on the allowed MMI commands.
|
public boolean | handlePinMmi(java.lang.String dialString)Handles PIN MMI commands (PIN/PIN2/PUK/PUK2), which are initiated
without SEND (so dial is not appropriate).
|
public boolean | hasMatchedTetherApnSetting()Check if TETHER_DUN_APN setting or config_tether_apndata includes APN that matches
current operator.
|
public void | invokeOemRilRequestRaw(byte[] data, android.os.Message response)Invokes RIL_REQUEST_OEM_HOOK_RAW on RIL implementation.
|
public void | invokeOemRilRequestStrings(java.lang.String[] strings, android.os.Message response)Invokes RIL_REQUEST_OEM_HOOK_Strings on RIL implementation.
|
public boolean | isCspPlmnEnabled()TODO: Adding a function for each property is not good.
A fucntion of type getPhoneProp(propType) where propType is an
enum of GSM+CDMA+LTE props would be a better approach.
Get "Restriction of menu options for manual PLMN selection" bit
status from EF_CSP data, this belongs to "Value Added Services Group".
|
public boolean | isDataConnectivityPossible()Report on whether data connectivity is allowed.
|
public boolean | isDataConnectivityPossible(java.lang.String apnType)Report on whether data connectivity is allowed for an APN.
|
public boolean | isDnsCheckDisabled()Returns true if the DNS check is currently disabled.
|
public boolean | isImsRegistered()Query the IMS Registration Status.
|
public boolean | isMinInfoReady()Check if subscription data has been assigned to mMin
return true if MIN info is ready; false otherwise.
|
public boolean | isOtaSpNumber(java.lang.String dialStr)this decides if the dial number is OTA(Over the air provision) number or not
|
public boolean | isRadioAvailable()Is Radio Present on the device and is it accessible
|
public boolean | needsOtaServiceProvisioning()Returns true if OTA Service Provisioning needs to be performed.
|
public void | notifyDataActivity()
|
public void | nvReadItem(int itemID, android.os.Message response)Read one of the NV items defined in {@link RadioNVItems} / {@code ril_nv_items.h}.
Used for device configuration by some CDMA operators.
|
public void | nvResetConfig(int resetType, android.os.Message response)Perform the specified type of NV config reset. The radio will be taken offline
and the device must be rebooted after erasing the NV. Used for device
configuration by some CDMA operators.
|
public void | nvWriteCdmaPrl(byte[] preferredRoamingList, android.os.Message response)Update the CDMA Preferred Roaming List (PRL) in the radio NV storage.
Used for device configuration by some CDMA operators.
|
public void | nvWriteItem(int itemID, java.lang.String itemValue, android.os.Message response)Write one of the NV items defined in {@link RadioNVItems} / {@code ril_nv_items.h}.
Used for device configuration by some CDMA operators.
|
public void | queryAvailableBandMode(android.os.Message response)Query the list of band mode supported by RF.
|
public void | queryCdmaRoamingPreference(android.os.Message response)Query the CDMA roaming preference setting
|
public void | queryTTYMode(android.os.Message onComplete)queryTTYMode
query the status of the TTY mode
|
public void | registerFoT53ClirlInfo(android.os.Handler h, int what, java.lang.Object obj)Register for CDMA T53 CLIR information record notifications
from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a CdmaInformationRecords.CdmaT53ClirInfoRec
instance.
|
public void | registerForCallWaiting(android.os.Handler h, int what, java.lang.Object obj)Register for notifications when CDMA call waiting comes
|
public void | registerForCdmaOtaStatusChange(android.os.Handler h, int what, java.lang.Object obj)Register for notifications when CDMA OTA Provision status change
|
public void | registerForDisconnect(android.os.Handler h, int what, java.lang.Object obj)Notifies when a voice connection has disconnected, either due to local
or remote hangup or error.
Messages received from this will have the following members:
- Message.obj will be an AsyncResult
- AsyncResult.userObj = obj
- AsyncResult.result = a Connection object that is
no longer connected.
|
public void | registerForDisplayInfo(android.os.Handler h, int what, java.lang.Object obj)Register for display information notifications from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a SuppServiceNotification instance.
|
public void | registerForEcmTimerReset(android.os.Handler h, int what, java.lang.Object obj)Registration point for Ecm timer reset
|
public void | registerForHandoverStateChanged(android.os.Handler h, int what, java.lang.Object obj)Notifies when a Handover happens due to SRVCC or Silent Redial
|
public void | registerForInCallVoicePrivacyOff(android.os.Handler h, int what, java.lang.Object obj)Register for notifications when a sInCall VoicePrivacy is disabled
|
public void | registerForInCallVoicePrivacyOn(android.os.Handler h, int what, java.lang.Object obj)Register for notifications when a sInCall VoicePrivacy is enabled
|
public void | registerForIncomingRing(android.os.Handler h, int what, java.lang.Object obj)Notifies when an incoming call rings.
Messages received from this:
Message.obj will be an AsyncResult
AsyncResult.userObj = obj
AsyncResult.result = a Connection.
|
public void | registerForLineControlInfo(android.os.Handler h, int what, java.lang.Object obj)Register for CDMA line control information record notification
from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a CdmaInformationRecords.CdmaLineControlInfoRec
instance.
|
public void | registerForMmiComplete(android.os.Handler h, int what, java.lang.Object obj)Register for notifications that an MMI request has completed
its network activity and is in its final state. This may mean a state
of COMPLETE, FAILED, or CANCELLED.
Message.obj will contain an AsyncResult.
obj.result will be an "MmiCode" object
|
public void | registerForMmiInitiate(android.os.Handler h, int what, java.lang.Object obj)Register for notifications of initiation of a new MMI code request.
MMI codes for GSM are discussed in 3GPP TS 22.030.
Example: If Phone.dial is called with "*#31#", then the app will
be notified here.
The returned Message.obj will contain an AsyncResult.
obj.result will be an "MmiCode" object.
|
public void | registerForNewRingingConnection(android.os.Handler h, int what, java.lang.Object obj)Notifies when a new ringing or waiting connection has appeared.
Messages received from this:
Message.obj will be an AsyncResult
AsyncResult.userObj = obj
AsyncResult.result = a Connection.
Please check Connection.isRinging() to make sure the Connection
has not dropped since this message was posted.
If Connection.isRinging() is true, then
Connection.getCall() == Phone.getRingingCall()
|
public void | registerForNumberInfo(android.os.Handler h, int what, java.lang.Object obj)Register for CDMA number information record notification from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a CdmaInformationRecords.CdmaNumberInfoRec
instance.
|
public void | registerForOnHoldTone(android.os.Handler h, int what, java.lang.Object obj)Notifies when out-band on-hold tone is needed.
Messages received from this:
Message.obj will be an AsyncResult
AsyncResult.userObj = obj
AsyncResult.result = boolean, true to start play on-hold tone
and false to stop.
|
public void | registerForPreciseCallStateChanged(android.os.Handler h, int what, java.lang.Object obj)Register for getting notifications for change in the Call State {@link Call.State}
This is called PreciseCallState because the call state is more precise than the
{@link PhoneConstants.State} which can be obtained using the {@link PhoneStateListener}
Resulting events will have an AsyncResult in Message.obj .
AsyncResult.userData will be set to the obj argument here.
The h parameter is held only by a weak reference.
|
public void | registerForRadioCapabilityChanged(android.os.Handler h, int what, java.lang.Object obj)Registers the handler when phone radio capability is changed.
|
public void | registerForRadioOffOrNotAvailable(android.os.Handler h, int what, java.lang.Object obj)Register for radio off or not available
|
public void | registerForRedirectedNumberInfo(android.os.Handler h, int what, java.lang.Object obj)Register for CDMA redirected number information record notification
from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a CdmaInformationRecords.CdmaRedirectingNumberInfoRec
instance.
|
public void | registerForResendIncallMute(android.os.Handler h, int what, java.lang.Object obj)Registers the handler to reset the uplink mute state to get
uplink audio.
|
public void | registerForRingbackTone(android.os.Handler h, int what, java.lang.Object obj)Notifies when out-band ringback tone is needed.
Messages received from this:
Message.obj will be an AsyncResult
AsyncResult.userObj = obj
AsyncResult.result = boolean, true to start play ringback tone
and false to stop.
|
public void | registerForServiceStateChanged(android.os.Handler h, int what, java.lang.Object obj)Register for ServiceState changed.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a ServiceState instance
|
public void | registerForSignalInfo(android.os.Handler h, int what, java.lang.Object obj)Register for signal information notifications from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a SuppServiceNotification instance.
|
public void | registerForSimRecordsLoaded(android.os.Handler h, int what, java.lang.Object obj)Registration point for Sim records loaded
|
public void | registerForSubscriptionInfoReady(android.os.Handler h, int what, java.lang.Object obj)Registration point for subscription info ready
|
public void | registerForSuppServiceFailed(android.os.Handler h, int what, java.lang.Object obj)Register for notifications when a supplementary service attempt fails.
Message.obj will contain an AsyncResult.
|
public void | registerForSuppServiceNotification(android.os.Handler h, int what, java.lang.Object obj)Register for Supplementary Service notifications from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a SuppServiceNotification instance.
|
public void | registerForT53AudioControlInfo(android.os.Handler h, int what, java.lang.Object obj)Register for CDMA T53 audio control information record notifications
from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be a CdmaInformationRecords.CdmaT53AudioControlInfoRec
instance.
|
public void | registerForTtyModeReceived(android.os.Handler h, int what, java.lang.Object obj)Register for TTY mode change notifications from the network.
Message.obj will contain an AsyncResult.
AsyncResult.result will be an Integer containing new mode.
|
public void | registerForUnknownConnection(android.os.Handler h, int what, java.lang.Object obj)Notifies when a previously untracked non-ringing/waiting connection has appeared.
This is likely due to some other entity (eg, SIM card application) initiating a call.
|
public void | rejectCall()Reject (ignore) a ringing call. In GSM, this means UDUB
(User Determined User Busy). Reject occurs asynchronously,
and final notification occurs via
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}.
|
public com.android.internal.telephony.imsphone.ImsPhone | relinquishOwnershipOfImsPhone()Release the local instance of the ImsPhone and disconnect from
the phone.
|
public void | removeReferences()Remove references to external object stored in this object.
|
public void | selectNetworkManually(OperatorInfo network, android.os.Message response)Manually selects a network. response is
dispatched when this is complete. response.obj will be
an AsyncResult, and response.obj.exception will be non-null
on failure.
|
public void | sendBurstDtmf(java.lang.String dtmfString, int on, int off, android.os.Message onComplete)send burst DTMF tone, it can send the string as single character or multiple character
ignore if there is no active call or not valid digits string.
Valid digit means only includes characters ISO-LATIN characters 0-9, *, #
The difference between sendDtmf and sendBurstDtmf is sendDtmf only sends one character,
this api can send single character and multiple character, also, this api has response
back to caller.
|
public void | sendDtmf(char c)Play a DTMF tone on the active call. Ignored if there is no active call.
|
public void | sendUssdResponse(java.lang.String ussdMessge)Sends user response to a USSD REQUEST message. An MmiCode instance
representing this response is sent to handlers registered with
registerForMmiInitiate.
|
public void | setBandMode(int bandMode, android.os.Message response)Assign a specified band for RF configuration.
|
public void | setCallForwardingOption(int commandInterfaceCFReason, int commandInterfaceCFAction, java.lang.String dialingNumber, int timerSeconds, android.os.Message onComplete)setCallForwardingOptions
sets a call forwarding option.
|
public void | setCallWaiting(boolean enable, android.os.Message onComplete)setCallWaiting
sets a call forwarding option.
|
public void | setCdmaRoamingPreference(int cdmaRoamingType, android.os.Message response)Requests to set the CDMA roaming preference
|
public void | setCdmaSubscription(int cdmaSubscriptionType, android.os.Message response)Requests to set the CDMA subscription mode
|
public void | setCellBroadcastSmsConfig(int[] configValuesArray, android.os.Message response)Configure cell broadcast SMS.
TODO: Change the configValuesArray to a RIL_BroadcastSMSConfig
|
public void | setCellInfoListRate(int rateInMillis)Sets the minimum time in milli-seconds between {@link PhoneStateListener#onCellInfoChanged
PhoneStateListener.onCellInfoChanged} will be invoked.
The default, 0, means invoke onCellInfoChanged when any of the reported
information changes. Setting the value to INT_MAX(0x7fffffff) means never issue
A onCellInfoChanged.
|
public void | setDataEnabled(boolean enable)
|
public void | setDataRoamingEnabled(boolean enable)
|
public void | setEchoSuppressionEnabled()Enables or disables echo suppression.
|
public void | setImsRegistrationState(boolean registered)Set IMS registration state
|
public boolean | setLine1Number(java.lang.String alphaTag, java.lang.String number, android.os.Message onComplete)Sets the MSISDN phone number in the SIM card.
|
public void | setMute(boolean muted)Mutes or unmutes the microphone for the active call. The microphone
is automatically unmuted if a call is answered, dialed, or resumed
from a holding state.
|
public void | setNetworkSelectionModeAutomatic(android.os.Message response)Switches network selection mode to "automatic", re-scanning and
re-selecting a network if appropriate.
|
public void | setOnEcbModeExitResponse(android.os.Handler h, int what, java.lang.Object obj)registers for exit emergency call back mode request response
|
public void | setOnPostDialCharacter(android.os.Handler h, int what, java.lang.Object obj)Sets an event to be fired when the telephony system processes
a post-dial character on an outgoing call.
Messages of type what will be sent to h .
The obj field of these Message's will be instances of
AsyncResult . Message.obj.result will be
a Connection object.
Message.arg1 will be the post dial character being processed,
or 0 ('\0') if end of string.
If Connection.getPostDialState() == WAIT,
the application must call
{@link com.android.internal.telephony.Connection#proceedAfterWaitChar()
Connection.proceedAfterWaitChar()} or
{@link com.android.internal.telephony.Connection#cancelPostDial()
Connection.cancelPostDial()}
for the telephony system to continue playing the post-dial
DTMF sequence.
If Connection.getPostDialState() == WILD,
the application must call
{@link com.android.internal.telephony.Connection#proceedAfterWildChar
Connection.proceedAfterWildChar()}
or
{@link com.android.internal.telephony.Connection#cancelPostDial()
Connection.cancelPostDial()}
for the telephony system to continue playing the
post-dial DTMF sequence.
Only one post dial character handler may be set.
Calling this method with "h" equal to null unsets this handler.
|
public boolean | setOperatorBrandOverride(java.lang.String brand)Override the service provider name and the operator name for the current ICCID.
|
public void | setOutgoingCallerIdDisplay(int commandInterfaceCLIRMode, android.os.Message onComplete)setOutgoingCallerIdDisplay
sets a call forwarding option.
|
public void | setPreferredNetworkType(int networkType, android.os.Message response)Requests to set the preferred network type for searching and registering
(CS/PS domain, RAT, and operation mode)
|
public void | setRadioCapability(com.android.internal.telephony.RadioCapability rc, android.os.Message response)Set phone radio capability
|
public void | setRadioPower(boolean power)Sets the radio power on/off state (off is sometimes
called "airplane mode"). Current state can be gotten via
{@link #getServiceState()}.{@link
android.telephony.ServiceState#getState() getState()}.
Note: This request is asynchronous.
getServiceState().getState() will not change immediately after this call.
registerForServiceStateChanged() to find out when the
request is complete.
|
public boolean | setRoamingOverride(java.util.List gsmRoamingList, java.util.List gsmNonRoamingList, java.util.List cdmaRoamingList, java.util.List cdmaNonRoamingList)Override the roaming indicator for the current ICCID.
|
public void | setSmscAddress(java.lang.String address, android.os.Message result)Sets the default SMSC address.
|
public void | setTTYMode(int ttyMode, android.os.Message onComplete)setTTYMode
sets a TTY mode option.
|
public void | setUiTTYMode(int uiTtyMode, android.os.Message onComplete)setUiTTYMode
sets a TTY mode option.
|
public void | setUnitTestMode(boolean f)For unit tests; don't send notifications to "Phone"
mailbox registrants if true.
|
public void | setVoiceMailNumber(java.lang.String alphaTag, java.lang.String voiceMailNumber, android.os.Message onComplete)setVoiceMailNumber
sets the voicemail number in the SIM card.
|
public void | setVoiceMessageWaiting(int line, int countWaiting)Sets the SIM voice message waiting indicator records.
|
public void | shutdownRadio()shutdown Radio gracefully
|
public void | startDtmf(char c)Start to paly a DTMF tone on the active call. Ignored if there is no active call
or there is a playing DTMF tone.
|
public void | stopDtmf()Stop the playing DTMF tone. Ignored if there is no playing DTMF
tone or no active call.
|
public void | switchHoldingAndActive()Places any active calls on hold, and makes any held calls
active. Switch occurs asynchronously and may fail.
Final notification occurs via
{@link #registerForPreciseCallStateChanged(android.os.Handler, int,
java.lang.Object) registerForPreciseCallStateChanged()}.
|
public void | unregisterForCallWaiting(android.os.Handler h)Unegister for notifications when CDMA Call waiting comes
|
public void | unregisterForCdmaOtaStatusChange(android.os.Handler h)Unregister for notifications when CDMA OTA Provision status change
|
public void | unregisterForDisconnect(android.os.Handler h)Unregisters for voice disconnection notification.
Extraneous calls are tolerated silently
|
public void | unregisterForDisplayInfo(android.os.Handler h)Unregisters for display information notifications.
Extraneous calls are tolerated silently
|
public void | unregisterForEcmTimerReset(android.os.Handler h)Unregister for notification for Ecm timer reset
|
public void | unregisterForHandoverStateChanged(android.os.Handler h)Unregisters for handover state notifications
|
public void | unregisterForInCallVoicePrivacyOff(android.os.Handler h)Unregister for notifications when a sInCall VoicePrivacy is disabled
|
public void | unregisterForInCallVoicePrivacyOn(android.os.Handler h)Unegister for notifications when a sInCall VoicePrivacy is enabled
|
public void | unregisterForIncomingRing(android.os.Handler h)Unregisters for ring notification.
Extraneous calls are tolerated silently
|
public void | unregisterForLineControlInfo(android.os.Handler h)Unregisters for line control information notifications.
Extraneous calls are tolerated silently
|
public void | unregisterForMmiComplete(android.os.Handler h)Unregisters for MMI complete notification.
Extraneous calls are tolerated silently
|
public void | unregisterForMmiInitiate(android.os.Handler h)Unregisters for new MMI initiate notification.
Extraneous calls are tolerated silently
|
public void | unregisterForNewRingingConnection(android.os.Handler h)Unregisters for new ringing connection notification.
Extraneous calls are tolerated silently
|
public void | unregisterForNumberInfo(android.os.Handler h)Unregisters for number information record notifications.
Extraneous calls are tolerated silently
|
public void | unregisterForOnHoldTone(android.os.Handler h)Unregisters for on-hold tone notification.
|
public void | unregisterForPreciseCallStateChanged(android.os.Handler h)Unregisters for voice call state change notifications.
Extraneous calls are tolerated silently.
|
public void | unregisterForRadioCapabilityChanged(android.os.Handler h)Unregister for notifications when phone radio type and access technology is changed.
|
public void | unregisterForRadioOffOrNotAvailable(android.os.Handler h)Unregisters for radio off or not available
|
public void | unregisterForRedirectedNumberInfo(android.os.Handler h)Unregisters for redirected number information record notification.
Extraneous calls are tolerated silently
|
public void | unregisterForResendIncallMute(android.os.Handler h)Unregisters for resend incall mute notifications.
|
public void | unregisterForRingbackTone(android.os.Handler h)Unregisters for ringback tone notification.
|
public void | unregisterForServiceStateChanged(android.os.Handler h)Unregisters for ServiceStateChange notification.
Extraneous calls are tolerated silently
|
public void | unregisterForSignalInfo(android.os.Handler h)Unregisters for signal information notifications.
Extraneous calls are tolerated silently
|
public void | unregisterForSimRecordsLoaded(android.os.Handler h)Unregister for notifications for Sim records loaded
|
public void | unregisterForSubscriptionInfoReady(android.os.Handler h)Unregister for notifications for subscription info
|
public void | unregisterForSuppServiceFailed(android.os.Handler h)Unregister for notifications when a supplementary service attempt fails.
Extraneous calls are tolerated silently
|
public void | unregisterForSuppServiceNotification(android.os.Handler h)Unregisters for Supplementary Service notifications.
Extraneous calls are tolerated silently
|
public void | unregisterForT53AudioControlInfo(android.os.Handler h)Unregisters for T53 audio control information record notifications.
Extraneous calls are tolerated silently
|
public void | unregisterForT53ClirInfo(android.os.Handler h)Unregisters for T53 CLIR information record notification
Extraneous calls are tolerated silently
|
public void | unregisterForTtyModeReceived(android.os.Handler h)Unregisters for TTY mode change notifications.
Extraneous calls are tolerated silently
|
public void | unregisterForUnknownConnection(android.os.Handler h)Unregisters for unknown connection notifications.
|
public void | unsetOnEcbModeExitResponse(android.os.Handler h)Unregisters for exit emergency call back mode request response
|
public void | updatePhoneObject(int voiceRadioTech)Update the phone object if the voice radio technology has changed
|
public void | updateServiceLocation()Update the ServiceState CellLocation for current network registration.
|