public interface CommandsInterface
Modifier and Type | Interface and Description |
---|---|
static class |
CommandsInterface.RadioState |
Modifier and Type | Method and Description |
---|---|
void |
acceptCall(Message result)
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
|
void |
acknowledgeIncomingGsmSmsWithPdu(boolean success,
String ackPdu,
Message response)
Acknowledge successful or failed receipt of last incoming SMS,
including acknowledgement TPDU to send as the RP-User-Data element
of the RP-ACK or RP-ERROR PDU.
|
void |
acknowledgeLastIncomingCdmaSms(boolean success,
int cause,
Message response) |
void |
acknowledgeLastIncomingGsmSms(boolean success,
int cause,
Message response) |
void |
cancelPendingUssd(Message response)
Cancels a pending USSD session if one exists.
|
void |
changeBarringPassword(String facility,
String oldPwd,
String newPwd,
Message result) |
void |
changeIccPin(String oldPin,
String newPin,
Message result) |
void |
changeIccPin2(String oldPin2,
String newPin2,
Message result) |
void |
changeIccPin2ForApp(String oldPin2,
String newPin2,
String aidPtr,
Message result) |
void |
changeIccPinForApp(String oldPin,
String newPin,
String aidPtr,
Message result) |
void |
conference(Message result)
3GPP 22.030 6.5.5
"Adds a held call to the conversation"
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
|
void |
deactivateDataCall(int cid,
int reason,
Message result)
Deactivate packet data connection
|
void |
deleteSmsOnRuim(int index,
Message response)
Deletes the specified SMS record from RUIM memory (EF_SMS in DF_CDMA).
|
void |
deleteSmsOnSim(int index,
Message response)
Deletes the specified SMS record from SIM memory (EF_SMS).
|
void |
dial(String address,
int clirMode,
Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
CLIR_DEFAULT == on "use subscription default value"
CLIR_SUPPRESSION == on "CLIR suppression" (allow CLI presentation)
CLIR_INVOCATION == on "CLIR invocation" (restrict CLI presentation)
|
void |
dial(String address,
int clirMode,
UUSInfo uusInfo,
Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
CLIR_DEFAULT == on "use subscription default value"
CLIR_SUPPRESSION == on "CLIR suppression" (allow CLI presentation)
CLIR_INVOCATION == on "CLIR invocation" (restrict CLI presentation)
|
void |
exitEmergencyCallbackMode(Message response)
Requests the radio's system selection module to exit emergency callback mode.
|
void |
explicitCallTransfer(Message result)
3GPP 22.030 6.5.5
"Connects the two calls and disconnects the subscriber from both calls"
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
|
void |
getAllowedCarriers(Message result)
Get allowed carriers
|
void |
getAvailableNetworks(Message response)
Queries the currently available networks
((AsyncResult)response.obj).result is a List of NetworkInfo objects
|
void |
getBasebandVersion(Message response) |
void |
getCdmaBroadcastConfig(Message result)
Query the current configuration of cdma cell broadcast SMS.
|
void |
getCDMASubscription(Message response)
Request the device MDN / H_SID / H_NID / MIN.
|
void |
getCdmaSubscriptionSource(Message response)
Requests to get the CDMA subscription srouce
|
void |
getCellInfoList(Message result)
Return the current set of CellInfo records
AsyncResult.result is a of Collection
|
void |
getCLIR(Message response)
response.obj will be a an int[2]
response.obj[0] will be TS 27.007 +CLIR parameter 'n'
0 presentation indicator is used according to the subscription of the CLIR service
1 CLIR invocation
2 CLIR suppression
response.obj[1] will be TS 27.007 +CLIR parameter 'm'
0 CLIR not provisioned
1 CLIR provisioned in permanent mode
2 unknown (e.g. no network, etc.)
3 CLIR temporary mode presentation restricted
4 CLIR temporary mode presentation allowed
|
void |
getCurrentCalls(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result contains a List of DriverCall
The ar.result List is sorted by DriverCall.index
|
void |
getDataCallList(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result contains a List of DataCallResponse
|
void |
getDataRegistrationState(Message response)
response.obj.result is an int[3]
response.obj.result[0] is registration state 0-5 from TS 27.007 7.2
response.obj.result[1] is LAC if registered or -1 if not
response.obj.result[2] is CID if registered or -1 if not
valid LAC and CIDs are 0x0000 - 0xffff
Please note that registration state 4 ("unknown") is treated
as "out of service" above
|
void |
getDeviceIdentity(Message response)
Request the device ESN / MEID / IMEI / IMEISV.
|
void |
getGsmBroadcastConfig(Message response)
Query the current configuration of cell broadcast SMS of GSM.
|
void |
getHardwareConfig(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result contains a List of HardwareConfig
|
void |
getIccCardStatus(Message result)
Request the status of the ICC and UICC cards.
|
void |
getIMEI(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is String containing IMEI on success
|
void |
getIMEISV(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is String containing IMEISV on success
|
void |
getIMSI(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is String containing IMSI on success
|
void |
getIMSIForApp(String aid,
Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is String containing IMSI on success
|
void |
getImsRegistrationState(Message result)
response.obj.result is an int[2]
response.obj.result[0] is IMS registration state
0 - Not registered
1 - Registered
response.obj.result[1] is of type RILConstants.GSM_PHONE or
RILConstants.CDMA_PHONE
|
void |
getLastCallFailCause(Message result)
cause code returned as int[0] in Message.obj.response
Returns integer cause code defined in TS 24.008
Annex H or closest approximation.
|
void |
getLastDataCallFailCause(Message result)
The preferred new alternative to getLastPdpFailCause
that is also CDMA-compatible.
|
void |
getLastPdpFailCause(Message result)
Deprecated.
Do not use.
|
int |
getLteOnCdmaMode()
Return if the current radio is LTE on CDMA.
|
void |
getModemActivityInfo(Message result)
Get modem activity info and stats
|
void |
getMute(Message response) |
void |
getNeighboringCids(Message response)
Query neighboring cell ids
|
void |
getNetworkSelectionMode(Message response)
Queries whether the current network selection mode is automatic
or manual
((AsyncResult)response.obj).result is an int[] with element [0] being
a 0 for automatic selection and a 1 for manual selection
|
void |
getOperator(Message response)
response.obj.result is a String[3]
response.obj.result[0] is long alpha or null if unregistered
response.obj.result[1] is short alpha or null if unregistered
response.obj.result[2] is numeric or null if unregistered
|
void |
getPDPContextList(Message result)
Deprecated.
Do not use.
|
void |
getPreferredNetworkType(Message response)
Query the preferred network type setting
|
void |
getPreferredVoicePrivacy(Message result)
Get currently set preferred Voice Privacy (VP) mode.
|
void |
getRadioCapability(Message result)
Get phone radio capability
|
CommandsInterface.RadioState |
getRadioState() |
int |
getRilVersion() |
void |
getSignalStrength(Message response)
response.obj is an AsyncResult
response.obj.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 |
getSmscAddress(Message result)
Gets the default SMSC address.
|
void |
getVoiceRadioTechnology(Message result)
Get the current Voice Radio Technology.
|
void |
getVoiceRegistrationState(Message response)
response.obj.result is an int[3]
response.obj.result[0] is registration state 0-5 from TS 27.007 7.2
response.obj.result[1] is LAC if registered or -1 if not
response.obj.result[2] is CID if registered or -1 if not
valid LAC and CIDs are 0x0000 - 0xffff
Please note that registration state 4 ("unknown") is treated
as "out of service" above
|
void |
handleCallSetupRequestFromSim(boolean accept,
Message response)
Accept or reject the call setup request from SIM.
|
void |
hangupConnection(int gsmIndex,
Message result)
Hang up one individual connection.
|
void |
hangupForegroundResumeBackground(Message result)
3GPP 22.030 6.5.5
"Releases all active calls (if any exist) and accepts
the other (held or waiting) call."
|
void |
hangupWaitingOrBackground(Message result)
3GPP 22.030 6.5.5
"Releases all held calls or sets User Determined User Busy (UDUB)
for a waiting call."
|
void |
iccCloseLogicalChannel(int channel,
Message response)
Close a previously opened logical channel to the SIM.
|
void |
iccIO(int command,
int fileid,
String path,
int p1,
int p2,
int p3,
String data,
String pin2,
Message response)
parameters equivalent to 27.007 AT+CRSM command
response.obj will be an AsyncResult
response.obj.result will be an IccIoResult on success
|
void |
iccIOForApp(int command,
int fileid,
String path,
int p1,
int p2,
int p3,
String data,
String pin2,
String aid,
Message response)
parameters equivalent to 27.007 AT+CRSM command
response.obj will be an AsyncResult
response.obj.userObj will be a IccIoResult on success
|
void |
iccOpenLogicalChannel(String AID,
Message response)
Open a logical channel to the SIM.
|
void |
iccTransmitApduBasicChannel(int cla,
int instruction,
int p1,
int p2,
int p3,
String data,
Message response)
Exchange APDUs with the SIM on a basic channel.
|
void |
iccTransmitApduLogicalChannel(int channel,
int cla,
int instruction,
int p1,
int p2,
int p3,
String data,
Message response)
Exchange APDUs with the SIM on a logical channel.
|
void |
invokeOemRilRequestRaw(byte[] data,
Message response) |
void |
invokeOemRilRequestStrings(String[] strings,
Message response) |
void |
nvReadItem(int itemID,
Message response)
Read one of the NV items defined in
RadioNVItems / ril_nv_items.h . |
void |
nvResetConfig(int resetType,
Message response)
Perform the specified type of NV config reset.
|
void |
nvWriteCdmaPrl(byte[] preferredRoamingList,
Message response)
Update the CDMA Preferred Roaming List (PRL) in the radio NV storage.
|
void |
nvWriteItem(int itemID,
String itemValue,
Message response)
Write one of the NV items defined in
RadioNVItems / ril_nv_items.h . |
void |
pullLceData(Message result)
Pull LCE service for capacity data.
|
void |
queryAvailableBandMode(Message response)
Query the list of band mode supported by RF.
|
void |
queryCallForwardStatus(int cfReason,
int serviceClass,
String number,
Message response)
cfReason is one of CF_REASON_*
((AsyncResult)response.obj).result will be an array of
CallForwardInfo's
An array of length 0 means "disabled for all codes"
|
void |
queryCallWaiting(int serviceClass,
Message response)
(AsyncResult)response.obj).result is an int[] with element [0] set to
0 for disabled, 1 for enabled.
|
void |
queryCdmaRoamingPreference(Message response)
Query the CDMA roaming preference setting
|
void |
queryCLIP(Message response)
(AsyncResult)response.obj).result is an int[] with element [0] set to
1 for "CLIP is provisioned", and 0 for "CLIP is not provisioned".
|
void |
queryFacilityLock(String facility,
String password,
int serviceClass,
Message response)
(AsyncResult)response.obj).result will be an Integer representing
the sum of enabled service classes (sum of SERVICE_CLASS_*)
|
void |
queryFacilityLockForApp(String facility,
String password,
int serviceClass,
String appId,
Message response)
(AsyncResult)response.obj).result will be an Integer representing
the sum of enabled service classes (sum of SERVICE_CLASS_*) for the
application with appId.
|
void |
queryTTYMode(Message response)
Query the TTY mode
(AsyncResult)response.obj).result is an int[] with element [0] set to
tty mode:
-
PhoneInternalInterface.TTY_MODE_OFF
- PhoneInternalInterface.TTY_MODE_FULL
- PhoneInternalInterface.TTY_MODE_HCO
- PhoneInternalInterface.TTY_MODE_VCO |
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 |
rejectCall(Message result)
also known as UDUB
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
|
void |
reportSmsMemoryStatus(boolean available,
Message result)
Indicates whether there is storage available for new SMS messages.
|
void |
reportStkServiceIsRunning(Message result)
Indicates to the vendor ril that StkService is running
and is ready to receive RIL_UNSOL_STK_XXXX commands.
|
void |
requestIccSimAuthentication(int authContext,
String data,
String aid,
Message response)
Request the SIM application on the UICC to perform authentication
challenge/response algorithm.
|
void |
requestIsimAuthentication(String nonce,
Message response)
Deprecated.
|
void |
requestShutdown(Message result)
Inform RIL that the device is shutting down
|
void |
resetRadio(Message result) |
void |
sendBurstDtmf(String dtmfString,
int on,
int off,
Message result)
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
|
void |
sendCDMAFeatureCode(String FeatureCode,
Message response)
Send Flash Code.
|
void |
sendCdmaSms(byte[] pdu,
Message response) |
void |
sendDtmf(char c,
Message result)
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
|
void |
sendEnvelope(String contents,
Message response)
Send ENVELOPE to the SIM, after processing a proactive command sent by
the SIM.
|
void |
sendEnvelopeWithStatus(String contents,
Message response)
Send ENVELOPE to the SIM, such as an SMS-PP data download envelope
for a SIM data download message.
|
void |
sendImsCdmaSms(byte[] pdu,
int retry,
int messageRef,
Message response)
send SMS over IMS with 3GPP2/CDMA SMS format
|
void |
sendImsGsmSms(String smscPDU,
String pdu,
int retry,
int messageRef,
Message response)
send SMS over IMS with 3GPP/GSM SMS format
|
void |
sendSMS(String smscPDU,
String pdu,
Message response)
smscPDU is smsc address in PDU form GSM BCD format prefixed
by a length byte (as expected by TS 27.005) or NULL for default SMSC
pdu is SMS in PDU format as an ASCII hex string
less the SMSC address
|
void |
sendSMSExpectMore(String smscPDU,
String pdu,
Message response)
Send an SMS message, Identical to sendSMS,
except that more messages are expected to be sent soon
smscPDU is smsc address in PDU form GSM BCD format prefixed
by a length byte (as expected by TS 27.005) or NULL for default SMSC
pdu is SMS in PDU format as an ASCII hex string
less the SMSC address
|
void |
sendTerminalResponse(String contents,
Message response)
Send TERMINAL RESPONSE to the SIM, after processing a proactive command
sent by the SIM.
|
void |
sendUSSD(String ussdString,
Message response) |
void |
separateConnection(int gsmIndex,
Message result)
3GPP 22.030 6.5.5
"Places all active calls on hold except call X with which
communication shall be supported."
|
void |
setAllowedCarriers(List<CarrierIdentifier> carriers,
Message result)
Set allowed carriers
|
void |
setBandMode(int bandMode,
Message response)
Assign a specified band for RF configuration.
|
void |
setCallForward(int action,
int cfReason,
int serviceClass,
String number,
int timeSeconds,
Message response) |
void |
setCallWaiting(boolean enable,
int serviceClass,
Message response) |
void |
setCdmaBroadcastActivation(boolean activate,
Message result)
Activate or deactivate cell broadcast SMS for CDMA.
|
void |
setCdmaBroadcastConfig(CdmaSmsBroadcastConfigInfo[] configs,
Message response)
Configure cdma cell broadcast SMS.
|
void |
setCdmaRoamingPreference(int cdmaRoamingType,
Message response)
Requests to set the CDMA roaming preference
|
void |
setCdmaSubscriptionSource(int cdmaSubscriptionType,
Message response)
Requests to set the CDMA subscription mode
|
void |
setCellInfoListRate(int rateInMillis,
Message response)
Sets the minimum time in milli-seconds between when RIL_UNSOL_CELL_INFO_LIST
should be invoked.
|
void |
setCLIR(int clirMode,
Message response)
clirMode is one of the CLIR_* constants above
response.obj is null
|
void |
setDataAllowed(boolean allowed,
Message result)
Tells the modem if data is allowed or not.
|
void |
setDataProfile(DataProfile[] dps,
Message result)
Set data profiles in modem
|
void |
setEmergencyCallbackMode(Handler h,
int what,
Object obj)
Fires on if Modem enters Emergency Callback mode
|
void |
setFacilityLock(String facility,
boolean lockState,
String password,
int serviceClass,
Message response) |
void |
setFacilityLockForApp(String facility,
boolean lockState,
String password,
int serviceClass,
String appId,
Message response)
Set the facility lock for the app with this AID on the ICC card.
|
void |
setGsmBroadcastActivation(boolean activate,
Message result)
Activate or deactivate cell broadcast SMS for GSM.
|
void |
setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config,
Message response)
Configure cell broadcast SMS for GSM.
|
void |
setInitialAttachApn(String apn,
String protocol,
int authType,
String username,
String password,
Message result)
Set Initial Attach Apn
|
void |
setLocationUpdates(boolean enable,
Message response)
Request to enable/disable network state change notifications when
location information (lac and/or cid) has changed.
|
void |
setMute(boolean enableMute,
Message response) |
void |
setNetworkSelectionModeAutomatic(Message response) |
void |
setNetworkSelectionModeManual(String operatorNumeric,
Message response) |
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 |
setPhoneType(int phoneType)
Set the Phone type created
|
void |
setPreferredNetworkType(int networkType,
Message response)
Requests to set the preferred network type for searching and registering
(CS/PS domain, RAT, and operation mode)
|
void |
setPreferredVoicePrivacy(boolean enable,
Message result)
Set preferred Voice Privacy (VP).
|
void |
setRadioCapability(RadioCapability rc,
Message result)
Set phone radio type and access technology.
|
void |
setRadioPower(boolean on,
Message response) |
void |
setSmscAddress(String address,
Message result)
Sets the default SMSC address.
|
void |
setSuppServiceNotifications(boolean enable,
Message result)
Enables/disbables supplementary service related notifications from
the network.
|
void |
setTTYMode(int ttyMode,
Message response)
Set the TTY mode
|
void |
setUiccSubscription(int slotId,
int appIndex,
int subId,
int subStatus,
Message result)
Sets user selected subscription at Modem.
|
void |
setupDataCall(int radioTechnology,
int profile,
String apn,
String user,
String password,
int authType,
String protocol,
Message result)
Setup a packet data connection On successful completion, the result
message will return a
DataCallResponse
object containing the connection information. |
void |
startDtmf(char c,
Message result)
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
|
void |
startLceService(int reportIntervalMs,
boolean pullMode,
Message result)
Start LCE (Link Capacity Estimation) service with a desired reporting interval.
|
void |
stopDtmf(Message result)
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is null on success and failure
|
void |
stopLceService(Message result)
Stop LCE service.
|
void |
supplyIccPin(String pin,
Message result)
Supply the ICC PIN to the ICC card
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
This exception is CommandException with an error of PASSWORD_INCORRECT
if the password is incorrect
ar.result is an optional array of integers where the first entry
is the number of attempts remaining before the ICC will be PUK locked.
|
void |
supplyIccPin2(String pin2,
Message result)
Supply the ICC PIN2 to the ICC card
Only called following operation where ICC_PIN2 was
returned as a a failure from a previous operation
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
This exception is CommandException with an error of PASSWORD_INCORRECT
if the password is incorrect
ar.result is an optional array of integers where the first entry
is the number of attempts remaining before the ICC will be PUK locked.
|
void |
supplyIccPin2ForApp(String pin2,
String aid,
Message result)
Supply the PIN2 for the app with this AID on the ICC card
Only called following operation where ICC_PIN2 was
returned as a a failure from a previous operation
AID (Application ID), See ETSI 102.221 8.1 and 101.220 4
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
This exception is CommandException with an error of PASSWORD_INCORRECT
if the password is incorrect
ar.result is an optional array of integers where the first entry
is the number of attempts remaining before the ICC will be PUK locked.
|
void |
supplyIccPinForApp(String pin,
String aid,
Message result)
Supply the PIN for the app with this AID on the ICC card
AID (Application ID), See ETSI 102.221 8.1 and 101.220 4
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
This exception is CommandException with an error of PASSWORD_INCORRECT
if the password is incorrect
ar.result is an optional array of integers where the first entry
is the number of attempts remaining before the ICC will be PUK locked.
|
void |
supplyIccPuk(String puk,
String newPin,
Message result)
Supply the ICC PUK and newPin to the ICC card
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
This exception is CommandException with an error of PASSWORD_INCORRECT
if the password is incorrect
ar.result is an optional array of integers where the first entry
is the number of attempts remaining before the ICC is permanently disabled.
|
void |
supplyIccPuk2(String puk2,
String newPin2,
Message result)
Supply the SIM PUK2 to the SIM card
Only called following operation where SIM_PUK2 was
returned as a a failure from a previous operation
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
This exception is CommandException with an error of PASSWORD_INCORRECT
if the password is incorrect
ar.result is an optional array of integers where the first entry
is the number of attempts remaining before the ICC is permanently disabled.
|
void |
supplyIccPuk2ForApp(String puk2,
String newPin2,
String aid,
Message result)
Supply the PUK2, newPin2 for the app with this AID on the ICC card
Only called following operation where SIM_PUK2 was
returned as a a failure from a previous operation
AID (Application ID), See ETSI 102.221 8.1 and 101.220 4
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
This exception is CommandException with an error of PASSWORD_INCORRECT
if the password is incorrect
ar.result is an optional array of integers where the first entry
is the number of attempts remaining before the ICC is permanently disabled.
|
void |
supplyIccPukForApp(String puk,
String newPin,
String aid,
Message result)
Supply the PUK, new pin for the app with this AID on the ICC card
AID (Application ID), See ETSI 102.221 8.1 and 101.220 4
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
This exception is CommandException with an error of PASSWORD_INCORRECT
if the password is incorrect
ar.result is an optional array of integers where the first entry
is the number of attempts remaining before the ICC is permanently disabled.
|
void |
supplyNetworkDepersonalization(String netpin,
Message result) |
void |
switchWaitingOrHoldingAndActive(Message result)
3GPP 22.030 6.5.5
"Places all active calls (if any exist) on hold and accepts
the other (held or waiting) call."
|
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) |
void |
writeSmsToRuim(int status,
String pdu,
Message response) |
void |
writeSmsToSim(int status,
String smsc,
String pdu,
Message response)
Writes an SMS message to SIM memory (EF_SMS).
|
static final int CLIR_DEFAULT
static final int CLIR_INVOCATION
static final int CLIR_SUPPRESSION
static final int CF_ACTION_DISABLE
static final int CF_ACTION_ENABLE
static final int CF_ACTION_REGISTRATION
static final int CF_ACTION_ERASURE
static final int CF_REASON_UNCONDITIONAL
static final int CF_REASON_BUSY
static final int CF_REASON_NO_REPLY
static final int CF_REASON_NOT_REACHABLE
static final int CF_REASON_ALL
static final int CF_REASON_ALL_CONDITIONAL
static final String CB_FACILITY_BAOC
static final String CB_FACILITY_BAOIC
static final String CB_FACILITY_BAOICxH
static final String CB_FACILITY_BAIC
static final String CB_FACILITY_BAICr
static final String CB_FACILITY_BA_ALL
static final String CB_FACILITY_BA_MO
static final String CB_FACILITY_BA_MT
static final String CB_FACILITY_BA_SIM
static final String CB_FACILITY_BA_FD
static final int SERVICE_CLASS_NONE
static final int SERVICE_CLASS_VOICE
static final int SERVICE_CLASS_DATA
static final int SERVICE_CLASS_FAX
static final int SERVICE_CLASS_SMS
static final int SERVICE_CLASS_DATA_SYNC
static final int SERVICE_CLASS_DATA_ASYNC
static final int SERVICE_CLASS_PACKET
static final int SERVICE_CLASS_PAD
static final int SERVICE_CLASS_MAX
static final int USSD_MODE_NOTIFY
static final int USSD_MODE_REQUEST
static final int USSD_MODE_NW_RELEASE
static final int USSD_MODE_LOCAL_CLIENT
static final int USSD_MODE_NOT_SUPPORTED
static final int USSD_MODE_NW_TIMEOUT
static final int GSM_SMS_FAIL_CAUSE_MEMORY_CAPACITY_EXCEEDED
static final int GSM_SMS_FAIL_CAUSE_USIM_APP_TOOLKIT_BUSY
static final int GSM_SMS_FAIL_CAUSE_USIM_DATA_DOWNLOAD_ERROR
static final int GSM_SMS_FAIL_CAUSE_UNSPECIFIED_ERROR
static final int CDMA_SMS_FAIL_CAUSE_INVALID_TELESERVICE_ID
static final int CDMA_SMS_FAIL_CAUSE_RESOURCE_SHORTAGE
static final int CDMA_SMS_FAIL_CAUSE_OTHER_TERMINAL_PROBLEM
static final int CDMA_SMS_FAIL_CAUSE_ENCODING_PROBLEM
CommandsInterface.RadioState getRadioState()
void getImsRegistrationState(Message result)
void registerForRadioStateChanged(Handler h, int what, Object obj)
void unregisterForRadioStateChanged(Handler h)
void registerForVoiceRadioTechChanged(Handler h, int what, Object obj)
void unregisterForVoiceRadioTechChanged(Handler h)
void registerForImsNetworkStateChanged(Handler h, int what, Object obj)
void unregisterForImsNetworkStateChanged(Handler h)
void registerForOn(Handler h, int what, Object obj)
void unregisterForOn(Handler h)
void registerForAvailable(Handler h, int what, Object obj)
void unregisterForAvailable(Handler h)
void registerForNotAvailable(Handler h, int what, Object obj)
void unregisterForNotAvailable(Handler h)
void registerForOffOrNotAvailable(Handler h, int what, Object obj)
void unregisterForOffOrNotAvailable(Handler h)
void registerForIccStatusChanged(Handler h, int what, Object obj)
void unregisterForIccStatusChanged(Handler h)
void unregisterForCallStateChanged(Handler h)
void registerForVoiceNetworkStateChanged(Handler h, int what, Object obj)
void unregisterForVoiceNetworkStateChanged(Handler h)
void registerForDataNetworkStateChanged(Handler h, int what, Object obj)
void unregisterForDataNetworkStateChanged(Handler h)
void registerForInCallVoicePrivacyOn(Handler h, int what, Object obj)
void unregisterForInCallVoicePrivacyOn(Handler h)
void registerForInCallVoicePrivacyOff(Handler h, int what, Object obj)
void unregisterForInCallVoicePrivacyOff(Handler h)
void registerForSrvccStateChanged(Handler h, int what, Object obj)
void unregisterForSrvccStateChanged(Handler h)
void registerForSubscriptionStatusChanged(Handler h, int what, Object obj)
h
- Handler for subscription status change messages.what
- User-defined message code.obj
- User object.void unregisterForSubscriptionStatusChanged(Handler h)
void registerForHardwareConfigChanged(Handler h, int what, Object obj)
void unregisterForHardwareConfigChanged(Handler h)
void setOnNewGsmSms(Handler h, int what, Object obj)
void unSetOnNewGsmSms(Handler h)
void setOnNewCdmaSms(Handler h, int what, Object obj)
void unSetOnNewCdmaSms(Handler h)
void setOnNewGsmBroadcastSms(Handler h, int what, Object obj)
void unSetOnNewGsmBroadcastSms(Handler h)
void setOnSmsOnSim(Handler h, int what, Object obj)
void unSetOnSmsOnSim(Handler h)
void setOnSmsStatus(Handler h, int what, Object obj)
void unSetOnSmsStatus(Handler h)
void setOnNITZTime(Handler h, int what, Object obj)
void unSetOnNITZTime(Handler h)
void setOnUSSD(Handler h, int what, Object obj)
void unSetOnUSSD(Handler h)
void setOnSignalStrengthUpdate(Handler h, int what, Object obj)
void unSetOnSignalStrengthUpdate(Handler h)
void setOnIccSmsFull(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnIccSmsFull(Handler h)
void registerForIccRefresh(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForIccRefresh(Handler h)
void unsetOnIccRefresh(Handler h)
void setOnCallRing(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnCallRing(Handler h)
void setOnRestrictedStateChanged(Handler h, int what, Object obj)
void unSetOnRestrictedStateChanged(Handler h)
void setOnSuppServiceNotification(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnSuppServiceNotification(Handler h)
void setOnCatSessionEnd(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnCatSessionEnd(Handler h)
void setOnCatProactiveCmd(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnCatProactiveCmd(Handler h)
void setOnCatEvent(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnCatEvent(Handler h)
void setOnCatCallSetUp(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnCatCallSetUp(Handler h)
void setSuppServiceNotifications(boolean enable, Message result)
enable
- true to enable notifications, false to disable.result
- Message to be posted when command completes.void setOnCatCcAlphaNotify(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnCatCcAlphaNotify(Handler h)
void setOnSs(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unSetOnSs(Handler h)
void registerForDisplayInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForDisplayInfo(Handler h)
void registerForCallWaitingInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForCallWaitingInfo(Handler h)
void registerForSignalInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForSignalInfo(Handler h)
void registerForNumberInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForNumberInfo(Handler h)
void registerForRedirectedNumberInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForRedirectedNumberInfo(Handler h)
void registerForLineControlInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForLineControlInfo(Handler h)
void registerFoT53ClirlInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForT53ClirInfo(Handler h)
void registerForT53AudioControlInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForT53AudioControlInfo(Handler h)
void setEmergencyCallbackMode(Handler h, int what, Object obj)
void registerForCdmaOtaProvision(Handler h, int what, Object obj)
void unregisterForCdmaOtaProvision(Handler h)
void registerForRingbackTone(Handler h, int what, Object obj)
Messages received from this: Message.obj will be an AsyncResult AsyncResult.userObj = obj AsyncResult.result = boolean.
void unregisterForRingbackTone(Handler h)
void registerForResendIncallMute(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForResendIncallMute(Handler h)
void registerForCdmaSubscriptionChanged(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForCdmaSubscriptionChanged(Handler h)
void registerForCdmaPrlChanged(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForCdmaPrlChanged(Handler h)
void registerForExitEmergencyCallbackMode(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForExitEmergencyCallbackMode(Handler h)
void registerForRilConnected(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForRilConnected(Handler h)
void supplyIccPin(String pin, Message result)
void supplyIccPinForApp(String pin, String aid, Message result)
void supplyIccPuk(String puk, String newPin, Message result)
void supplyIccPukForApp(String puk, String newPin, String aid, Message result)
void supplyIccPin2(String pin2, Message result)
void supplyIccPin2ForApp(String pin2, String aid, Message result)
void supplyIccPuk2(String puk2, String newPin2, Message result)
void supplyIccPuk2ForApp(String puk2, String newPin2, String aid, Message result)
void changeIccPinForApp(String oldPin, String newPin, String aidPtr, Message result)
void changeIccPin2ForApp(String oldPin2, String newPin2, String aidPtr, Message result)
void changeBarringPassword(String facility, String oldPwd, String newPwd, Message result)
void getCurrentCalls(Message result)
@Deprecated void getPDPContextList(Message result)
void getDataCallList(Message result)
void dial(String address, int clirMode, Message result)
void dial(String address, int clirMode, UUSInfo uusInfo, Message result)
void getIMSI(Message result)
void getIMSIForApp(String aid, Message result)
void getIMEI(Message result)
void getIMEISV(Message result)
void hangupConnection(int gsmIndex, Message result)
void hangupWaitingOrBackground(Message result)
void hangupForegroundResumeBackground(Message result)
void switchWaitingOrHoldingAndActive(Message result)
void conference(Message result)
void setPreferredVoicePrivacy(boolean enable, Message result)
enable
- true is enhanced and false is normal VPresult
- is a callback messagevoid getPreferredVoicePrivacy(Message result)
result
- is a callback messagevoid separateConnection(int gsmIndex, Message result)
void acceptCall(Message result)
void rejectCall(Message result)
void explicitCallTransfer(Message result)
void getLastCallFailCause(Message result)
@Deprecated void getLastPdpFailCause(Message result)
void getLastDataCallFailCause(Message result)
void setMute(boolean enableMute, Message response)
void getMute(Message response)
void getSignalStrength(Message response)
void getVoiceRegistrationState(Message response)
void getDataRegistrationState(Message response)
void getOperator(Message response)
void sendDtmf(char c, Message result)
void startDtmf(char c, Message result)
void stopDtmf(Message result)
void sendBurstDtmf(String dtmfString, int on, int off, Message result)
void sendSMS(String smscPDU, String pdu, Message response)
void sendSMSExpectMore(String smscPDU, String pdu, Message response)
void sendCdmaSms(byte[] pdu, Message response)
pdu
- is CDMA-SMS in internal pseudo-PDU formatresponse
- sent when operation completesvoid sendImsGsmSms(String smscPDU, String pdu, int retry, int messageRef, Message response)
smscPDU
- is smsc address in PDU form GSM BCD format prefixed
by a length byte (as expected by TS 27.005) or NULL for default SMSCpdu
- is SMS in PDU format as an ASCII hex string
less the SMSC addressretry
- indicates if this is a retry; 0 == not retry, nonzero = retrymessageRef
- valid field if retry is set to nonzero.
Contains messageRef from RIL_SMS_Response corresponding to failed MO SMSresponse
- sent when operation completesvoid sendImsCdmaSms(byte[] pdu, int retry, int messageRef, Message response)
pdu
- is CDMA-SMS in internal pseudo-PDU formatresponse
- sent when operation completesretry
- indicates if this is a retry; 0 == not retry, nonzero = retrymessageRef
- valid field if retry is set to nonzero.
Contains messageRef from RIL_SMS_Response corresponding to failed MO SMSresponse
- sent when operation completesvoid deleteSmsOnSim(int index, Message response)
index
- index of the SMS record to deleteresponse
- sent when operation completesvoid deleteSmsOnRuim(int index, Message response)
index
- index of the SMS record to deleteresponse
- sent when operation completesvoid writeSmsToSim(int status, String smsc, String pdu, Message response)
status
- status of message on SIM. One of:
SmsManger.STATUS_ON_ICC_READ
SmsManger.STATUS_ON_ICC_UNREAD
SmsManger.STATUS_ON_ICC_SENT
SmsManger.STATUS_ON_ICC_UNSENTpdu
- message PDU, as hex stringresponse
- sent when operation completes.
response.obj will be an AsyncResult, and will indicate
any error that may have occurred (eg, out of memory).void setRadioPower(boolean on, Message response)
void acknowledgeLastIncomingGsmSms(boolean success, int cause, Message response)
void acknowledgeLastIncomingCdmaSms(boolean success, int cause, Message response)
void acknowledgeIncomingGsmSmsWithPdu(boolean success, String ackPdu, Message response)
success
- true to send RP-ACK, false to send RP-ERRORackPdu
- the acknowledgement TPDU in hexadecimal formatresponse
- sent when operation completes.void iccIO(int command, int fileid, String path, int p1, int p2, int p3, String data, String pin2, Message response)
void iccIOForApp(int command, int fileid, String path, int p1, int p2, int p3, String data, String pin2, String aid, Message response)
void queryCLIP(Message response)
response
- is callback messagevoid getCLIR(Message response)
void setCLIR(int clirMode, Message response)
void queryCallWaiting(int serviceClass, Message response)
serviceClass
- is a sum of SERVICE_CLASS_*response
- is callback messagevoid setCallWaiting(boolean enable, int serviceClass, Message response)
enable
- is true to enable, false to disableserviceClass
- is a sum of SERVICE_CLASS_*response
- is callback messagevoid setCallForward(int action, int cfReason, int serviceClass, String number, int timeSeconds, Message response)
action
- is one of CF_ACTION_*cfReason
- is one of CF_REASON_*serviceClass
- is a sum of SERVICE_CLASSS_*void queryCallForwardStatus(int cfReason, int serviceClass, String number, Message response)
void setNetworkSelectionModeAutomatic(Message response)
void setNetworkSelectionModeManual(String operatorNumeric, Message response)
void getNetworkSelectionMode(Message response)
void getAvailableNetworks(Message response)
void getBasebandVersion(Message response)
void queryFacilityLock(String facility, String password, int serviceClass, Message response)
facility
- one of CB_FACILTY_*password
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*response
- is callback messagevoid queryFacilityLockForApp(String facility, String password, int serviceClass, String appId, Message response)
facility
- one of CB_FACILTY_*password
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*appId
- is application Id or null if noneresponse
- is callback messagevoid setFacilityLock(String facility, boolean lockState, String password, int serviceClass, Message response)
facility
- one of CB_FACILTY_*lockState
- true means lock, false means unlockpassword
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*response
- is callback messagevoid setFacilityLockForApp(String facility, boolean lockState, String password, int serviceClass, String appId, Message response)
facility
- one of CB_FACILTY_*lockState
- true means lock, false means unlockpassword
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*appId
- is application Id or null if noneresponse
- is callback messagevoid cancelPendingUssd(Message response)
response
- callback messagevoid resetRadio(Message result)
void setBandMode(int bandMode, Message response)
bandMode
- one of BM_*_BANDresponse
- is callback messagevoid queryAvailableBandMode(Message response)
response
- is callback message
((AsyncResult)response.obj).result is an int[] where int[0] is
the size of the array and the rest of each element representing
one available BM_*_BANDvoid setPreferredNetworkType(int networkType, Message response)
networkType
- one of NT_*_TYPEresponse
- is callback messagevoid getPreferredNetworkType(Message response)
response
- is callback message to report one of NT_*_TYPEvoid getNeighboringCids(Message response)
response
- s callback message to cell idsvoid setLocationUpdates(boolean enable, Message response)
enable
- true to enable, false to disableresponse
- callback messagevoid getSmscAddress(Message result)
result
- Callback message contains the SMSC address.void setSmscAddress(String address, Message result)
address
- new SMSC addressresult
- Callback message is empty on completionvoid reportSmsMemoryStatus(boolean available, Message result)
available
- true if storage is availableresult
- callback messagevoid reportStkServiceIsRunning(Message result)
result
- callback messagevoid invokeOemRilRequestRaw(byte[] data, Message response)
void setOnUnsolOemHookRaw(Handler h, int what, Object obj)
void unSetOnUnsolOemHookRaw(Handler h)
void sendTerminalResponse(String contents, Message response)
contents
- String containing SAT/USAT response in hexadecimal
format starting with first byte of response data. See
TS 102 223 for details.response
- Callback messagevoid sendEnvelope(String contents, Message response)
contents
- String containing SAT/USAT response in hexadecimal
format starting with command tag. See TS 102 223 for
details.response
- Callback messagevoid sendEnvelopeWithStatus(String contents, Message response)
sendEnvelope(java.lang.String, android.os.Message)
: The SW1 and SW2 status bytes from the UICC response
are returned along with the response data.
response.obj will be an AsyncResult
response.obj.result will be an IccIoResult on successcontents
- String containing SAT/USAT response in hexadecimal
format starting with command tag. See TS 102 223 for
details.response
- Callback messagevoid handleCallSetupRequestFromSim(boolean accept, Message response)
accept
- true if the call is to be accepted, false otherwise.response
- Callback messagevoid setGsmBroadcastActivation(boolean activate, Message result)
activate
- true = activate, false = deactivateresult
- Callback message is empty on completionvoid setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, Message response)
response
- Callback message is empty on completionvoid getGsmBroadcastConfig(Message response)
response
- Callback message contains the configuration from the modem
on completionvoid getDeviceIdentity(Message response)
void getCDMASubscription(Message response)
void sendCDMAFeatureCode(String FeatureCode, Message response)
void setPhoneType(int phoneType)
void queryCdmaRoamingPreference(Message response)
response
- is callback message to report one of CDMA_RM_*void setCdmaRoamingPreference(int cdmaRoamingType, Message response)
cdmaRoamingType
- one of CDMA_RM_*response
- is callback messagevoid setCdmaSubscriptionSource(int cdmaSubscriptionType, Message response)
cdmaSubscriptionType
- one of CDMA_SUBSCRIPTION_*response
- is callback messagevoid getCdmaSubscriptionSource(Message response)
response
- is callback messagevoid setTTYMode(int ttyMode, Message response)
ttyMode
- one of the following:
- PhoneInternalInterface.TTY_MODE_OFF
- PhoneInternalInterface.TTY_MODE_FULL
- PhoneInternalInterface.TTY_MODE_HCO
- PhoneInternalInterface.TTY_MODE_VCO
response
- is callback messagevoid queryTTYMode(Message response)
PhoneInternalInterface.TTY_MODE_OFF
- PhoneInternalInterface.TTY_MODE_FULL
- PhoneInternalInterface.TTY_MODE_HCO
- PhoneInternalInterface.TTY_MODE_VCO
response
- is callback messagevoid setupDataCall(int radioTechnology, int profile, String apn, String user, String password, int authType, String protocol, Message result)
DataCallResponse
object containing the connection information.radioTechnology
- Radio technology to use. Values is one of RIL_RADIO_TECHNOLOGY_*profile
- Profile Number. Values is one of DATA_PROFILE_*apn
- the APN to connect to if radio technology is GSM/UMTS.
Otherwise null for CDMA.user
- the username for APN, or NULLpassword
- the password for APN, or NULLauthType
- the PAP / CHAP auth type. Values is one of SETUP_DATA_AUTH_*protocol
- one of the PDP_type values in TS 27.007 section 10.1.1.
For example, "IP", "IPV6", "IPV4V6", or "PPP".result
- Callback messagevoid deactivateDataCall(int cid, int reason, Message result)
cid
- The connection IDreason
- Data disconnect reason.result
- Callback message is empty on completionvoid setCdmaBroadcastActivation(boolean activate, Message result)
activate
- true = activate, false = deactivateresult
- Callback message is empty on completionvoid setCdmaBroadcastConfig(CdmaSmsBroadcastConfigInfo[] configs, Message response)
response
- Callback message is empty on completionvoid getCdmaBroadcastConfig(Message result)
result
- Callback message contains the configuration from the modem on completionvoid exitEmergencyCallbackMode(Message response)
response
- callback messagevoid getIccCardStatus(Message result)
result
- Callback message containing IccCardStatus
structure for the card.int getLteOnCdmaMode()
void requestIsimAuthentication(String nonce, Message response)
nonce
- the nonce string to pass with the ISIM authentication requestresponse
- a callback message with the String response in the obj fieldrequestIccSimAuthentication
void requestIccSimAuthentication(int authContext, String data, String aid, Message response)
authContext
- is the P2 parameter that specifies the authentication context per 3GPP TS
31.102 (Section 7.1.2)data
- authentication challenge dataaid
- used to determine which application/slot to send the auth command to. See ETSI
102.221 8.1 and 101.220 4response
- a callback message with the String response in the obj fieldvoid getVoiceRadioTechnology(Message result)
result
- is sent back to handler and result.obj is a AsyncResultvoid getCellInfoList(Message result)
result
- is sent back to handler and result.obj is a AsyncResultvoid setCellInfoListRate(int rateInMillis, Message response)
rateInMillis
- is sent back to handler and result.obj is a AsyncResultresponse.obj
- is AsyncResult ar when sent to associated handler
ar.exception carries exception on failure or null on success
otherwise the error.void registerForCellInfoList(Handler h, int what, Object obj)
void unregisterForCellInfoList(Handler h)
void setInitialAttachApn(String apn, String protocol, int authType, String username, String password, Message result)
apn
- the APN to connect to if radio technology is GSM/UMTS.protocol
- one of the PDP_type values in TS 27.007 section 10.1.1.
For example, "IP", "IPV6", "IPV4V6", or "PPP".authType
- authentication protocol used for this PDP context
(None: 0, PAP: 1, CHAP: 2, PAP&CHAP: 3)username
- the username for APN, or NULLpassword
- the password for APN, or NULLresult
- callback message contains the information of SUCCESS/FAILUREvoid setDataProfile(DataProfile[] dps, Message result)
dps
- Array of the data profiles set to modemresult
- callback message contains the information of SUCCESS/FAILUREvoid testingEmergencyCall()
void iccOpenLogicalChannel(String AID, Message response)
AID
- Application id. See ETSI 102.221 and 101.220.response
- Callback message. response.obj will be an int [1] with
element [0] set to the id of the logical channel.void iccCloseLogicalChannel(int channel, Message response)
channel
- Channel id. Id of the channel to be closed.response
- Callback message.void iccTransmitApduLogicalChannel(int channel, int cla, int instruction, int p1, int p2, int p3, String data, Message response)
channel
- Channel id of the channel to use for communication. Has to
be greater than zero.cla
- Class of the APDU command.instruction
- Instruction of the APDU command.p1
- P1 value of the APDU command.p2
- P2 value of the APDU command.p3
- P3 value of the APDU command. If p3 is negative a 4 byte APDU
is sent to the SIM.data
- Data to be sent with the APDU.response
- Callback message. response.obj.userObj will be
an IccIoResult on success.void iccTransmitApduBasicChannel(int cla, int instruction, int p1, int p2, int p3, String data, Message response)
cla
- Class of the APDU command.instruction
- Instruction of the APDU command.p1
- P1 value of the APDU command.p2
- P2 value of the APDU command.p3
- P3 value of the APDU command. If p3 is negative a 4 byte APDU
is sent to the SIM.data
- Data to be sent with the APDU.response
- Callback message. response.obj.userObj will be
an IccIoResult on success.void nvReadItem(int itemID, Message response)
RadioNVItems
/ ril_nv_items.h
.
Used for device configuration by some CDMA operators.itemID
- the ID of the item to readresponse
- callback message with the String response in the obj fieldvoid nvWriteItem(int itemID, String itemValue, Message response)
RadioNVItems
/ ril_nv_items.h
.
Used for device configuration by some CDMA operators.itemID
- the ID of the item to readitemValue
- the value to write, as a Stringresponse
- Callback message.void nvWriteCdmaPrl(byte[] preferredRoamingList, Message response)
preferredRoamingList
- byte array containing the new PRLresponse
- Callback message.void nvResetConfig(int resetType, Message response)
resetType
- reset type: 1: reload NV reset, 2: erase NV reset, 3: factory NV resetresponse
- Callback message.void getHardwareConfig(Message result)
int getRilVersion()
void setUiccSubscription(int slotId, int appIndex, int subId, int subStatus, Message result)
slotId
- Slot.appIndex
- Application index in the card.subId
- Indicates subscription 0 or subscription 1.subStatus
- Activation status, 1 = activate and 0 = deactivate.result
- Callback message contains the information of SUCCESS/FAILURE.void setDataAllowed(boolean allowed, Message result)
allowed
- true = allowed, false = not alowedresult
- Callback message contains the information of SUCCESS/FAILURE.void requestShutdown(Message result)
result
- Callback message contains the information of SUCCESS/FAILUREvoid setRadioCapability(RadioCapability rc, Message result)
rc
- the phone radio capability defined in
RadioCapability. It's a input object used to transfer parameter to logic modemresult
- Callback message.void getRadioCapability(Message result)
result
- Callback message.void registerForRadioCapabilityChanged(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForRadioCapabilityChanged(Handler h)
h
- Handler to be removed from the registrant list.void startLceService(int reportIntervalMs, boolean pullMode, Message result)
reportIntervalMs
- LCE info reporting interval (ms).result
- Callback message contains the current LCE status.
{byte status, int actualIntervalMs}void stopLceService(Message result)
result
- Callback message contains the current LCE status:
{byte status, int actualIntervalMs}void pullLceData(Message result)
result
- Callback message contains the capacity info:
{int capacityKbps, byte confidenceLevel, byte lceSuspendedTemporarily}void registerForLceInfo(Handler h, int what, Object obj)
h
- Handler for notification message.what
- User-defined message code.obj
- User object.void unregisterForLceInfo(Handler h)
h
- handle to be removed.void getModemActivityInfo(Message result)
result
- Callback message contains the modem activity informationvoid setAllowedCarriers(List<CarrierIdentifier> carriers, Message result)
carriers
- Allowed carriersresult
- Callback message contains the number of carriers set successfullyvoid getAllowedCarriers(Message result)
result
- Callback message contains the allowed carriersvoid registerForPcoData(Handler h, int what, Object obj)
h
- Handler for notificaiton message.what
- User-defined message code.obj
- User object.void unregisterForPcoData(Handler h)
h
- handler to be removed