public class SimulatedCommandsVerifier extends Object implements CommandsInterface
CommandsInterface.RadioState
CB_FACILITY_BA_ALL, CB_FACILITY_BA_FD, CB_FACILITY_BA_MO, CB_FACILITY_BA_MT, CB_FACILITY_BA_SIM, CB_FACILITY_BAIC, CB_FACILITY_BAICr, CB_FACILITY_BAOC, CB_FACILITY_BAOIC, CB_FACILITY_BAOICxH, CDMA_SMS_FAIL_CAUSE_ENCODING_PROBLEM, CDMA_SMS_FAIL_CAUSE_INVALID_TELESERVICE_ID, CDMA_SMS_FAIL_CAUSE_OTHER_TERMINAL_PROBLEM, CDMA_SMS_FAIL_CAUSE_RESOURCE_SHORTAGE, CF_ACTION_DISABLE, CF_ACTION_ENABLE, CF_ACTION_ERASURE, CF_ACTION_REGISTRATION, CF_REASON_ALL, CF_REASON_ALL_CONDITIONAL, CF_REASON_BUSY, CF_REASON_NO_REPLY, CF_REASON_NOT_REACHABLE, CF_REASON_UNCONDITIONAL, CLIR_DEFAULT, CLIR_INVOCATION, CLIR_SUPPRESSION, GSM_SMS_FAIL_CAUSE_MEMORY_CAPACITY_EXCEEDED, GSM_SMS_FAIL_CAUSE_UNSPECIFIED_ERROR, GSM_SMS_FAIL_CAUSE_USIM_APP_TOOLKIT_BUSY, GSM_SMS_FAIL_CAUSE_USIM_DATA_DOWNLOAD_ERROR, SERVICE_CLASS_DATA, SERVICE_CLASS_DATA_ASYNC, SERVICE_CLASS_DATA_SYNC, SERVICE_CLASS_FAX, SERVICE_CLASS_MAX, SERVICE_CLASS_NONE, SERVICE_CLASS_PACKET, SERVICE_CLASS_PAD, SERVICE_CLASS_SMS, SERVICE_CLASS_VOICE, USSD_MODE_LOCAL_CLIENT, USSD_MODE_NOT_SUPPORTED, USSD_MODE_NOTIFY, USSD_MODE_NW_RELEASE, USSD_MODE_NW_TIMEOUT, USSD_MODE_REQUEST
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
|
static SimulatedCommandsVerifier |
getInstance() |
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)
Reason for last PDP context deactivate or failure to activate
cause code returned as int[0] in Message.obj.response
returns an integer cause code defined in TS 24.008
section 6.1.3.1.3 or close approximation
|
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)
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 |
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)
Request the ISIM application on the UICC to perform the AKA
challenge/response algorithm for IMS authentication.
|
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).
|
public static SimulatedCommandsVerifier getInstance()
public CommandsInterface.RadioState getRadioState()
getRadioState
in interface CommandsInterface
public void getImsRegistrationState(Message result)
CommandsInterface
getImsRegistrationState
in interface CommandsInterface
public void registerForRadioStateChanged(Handler h, int what, Object obj)
CommandsInterface
registerForRadioStateChanged
in interface CommandsInterface
public void unregisterForRadioStateChanged(Handler h)
unregisterForRadioStateChanged
in interface CommandsInterface
public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj)
registerForVoiceRadioTechChanged
in interface CommandsInterface
public void unregisterForVoiceRadioTechChanged(Handler h)
unregisterForVoiceRadioTechChanged
in interface CommandsInterface
public void registerForImsNetworkStateChanged(Handler h, int what, Object obj)
registerForImsNetworkStateChanged
in interface CommandsInterface
public void unregisterForImsNetworkStateChanged(Handler h)
unregisterForImsNetworkStateChanged
in interface CommandsInterface
public void registerForOn(Handler h, int what, Object obj)
CommandsInterface
registerForOn
in interface CommandsInterface
public void unregisterForOn(Handler h)
unregisterForOn
in interface CommandsInterface
public void registerForAvailable(Handler h, int what, Object obj)
CommandsInterface
registerForAvailable
in interface CommandsInterface
public void unregisterForAvailable(Handler h)
unregisterForAvailable
in interface CommandsInterface
public void registerForNotAvailable(Handler h, int what, Object obj)
CommandsInterface
registerForNotAvailable
in interface CommandsInterface
public void unregisterForNotAvailable(Handler h)
unregisterForNotAvailable
in interface CommandsInterface
public void registerForOffOrNotAvailable(Handler h, int what, Object obj)
CommandsInterface
registerForOffOrNotAvailable
in interface CommandsInterface
public void unregisterForOffOrNotAvailable(Handler h)
unregisterForOffOrNotAvailable
in interface CommandsInterface
public void registerForIccStatusChanged(Handler h, int what, Object obj)
CommandsInterface
registerForIccStatusChanged
in interface CommandsInterface
public void unregisterForIccStatusChanged(Handler h)
unregisterForIccStatusChanged
in interface CommandsInterface
public void registerForCallStateChanged(Handler h, int what, Object obj)
registerForCallStateChanged
in interface CommandsInterface
public void unregisterForCallStateChanged(Handler h)
unregisterForCallStateChanged
in interface CommandsInterface
public void registerForVoiceNetworkStateChanged(Handler h, int what, Object obj)
registerForVoiceNetworkStateChanged
in interface CommandsInterface
public void unregisterForVoiceNetworkStateChanged(Handler h)
unregisterForVoiceNetworkStateChanged
in interface CommandsInterface
public void registerForDataNetworkStateChanged(Handler h, int what, Object obj)
registerForDataNetworkStateChanged
in interface CommandsInterface
public void unregisterForDataNetworkStateChanged(Handler h)
unregisterForDataNetworkStateChanged
in interface CommandsInterface
public void registerForInCallVoicePrivacyOn(Handler h, int what, Object obj)
CommandsInterface
registerForInCallVoicePrivacyOn
in interface CommandsInterface
public void unregisterForInCallVoicePrivacyOn(Handler h)
unregisterForInCallVoicePrivacyOn
in interface CommandsInterface
public void registerForInCallVoicePrivacyOff(Handler h, int what, Object obj)
registerForInCallVoicePrivacyOff
in interface CommandsInterface
public void unregisterForInCallVoicePrivacyOff(Handler h)
unregisterForInCallVoicePrivacyOff
in interface CommandsInterface
public void registerForSrvccStateChanged(Handler h, int what, Object obj)
CommandsInterface
registerForSrvccStateChanged
in interface CommandsInterface
public void unregisterForSrvccStateChanged(Handler h)
unregisterForSrvccStateChanged
in interface CommandsInterface
public void registerForSubscriptionStatusChanged(Handler h, int what, Object obj)
CommandsInterface
registerForSubscriptionStatusChanged
in interface CommandsInterface
h
- Handler for subscription status change messages.what
- User-defined message code.obj
- User object.public void unregisterForSubscriptionStatusChanged(Handler h)
unregisterForSubscriptionStatusChanged
in interface CommandsInterface
public void registerForHardwareConfigChanged(Handler h, int what, Object obj)
CommandsInterface
registerForHardwareConfigChanged
in interface CommandsInterface
public void unregisterForHardwareConfigChanged(Handler h)
unregisterForHardwareConfigChanged
in interface CommandsInterface
public void setOnNewGsmSms(Handler h, int what, Object obj)
CommandsInterface
setOnNewGsmSms
in interface CommandsInterface
public void unSetOnNewGsmSms(Handler h)
unSetOnNewGsmSms
in interface CommandsInterface
public void setOnNewCdmaSms(Handler h, int what, Object obj)
CommandsInterface
setOnNewCdmaSms
in interface CommandsInterface
public void unSetOnNewCdmaSms(Handler h)
unSetOnNewCdmaSms
in interface CommandsInterface
public void setOnNewGsmBroadcastSms(Handler h, int what, Object obj)
CommandsInterface
setOnNewGsmBroadcastSms
in interface CommandsInterface
public void unSetOnNewGsmBroadcastSms(Handler h)
unSetOnNewGsmBroadcastSms
in interface CommandsInterface
public void setOnSmsOnSim(Handler h, int what, Object obj)
CommandsInterface
setOnSmsOnSim
in interface CommandsInterface
public void unSetOnSmsOnSim(Handler h)
unSetOnSmsOnSim
in interface CommandsInterface
public void setOnSmsStatus(Handler h, int what, Object obj)
CommandsInterface
setOnSmsStatus
in interface CommandsInterface
public void unSetOnSmsStatus(Handler h)
unSetOnSmsStatus
in interface CommandsInterface
public void setOnNITZTime(Handler h, int what, Object obj)
CommandsInterface
setOnNITZTime
in interface CommandsInterface
public void unSetOnNITZTime(Handler h)
unSetOnNITZTime
in interface CommandsInterface
public void setOnUSSD(Handler h, int what, Object obj)
CommandsInterface
setOnUSSD
in interface CommandsInterface
public void unSetOnUSSD(Handler h)
unSetOnUSSD
in interface CommandsInterface
public void setOnSignalStrengthUpdate(Handler h, int what, Object obj)
CommandsInterface
setOnSignalStrengthUpdate
in interface CommandsInterface
public void unSetOnSignalStrengthUpdate(Handler h)
unSetOnSignalStrengthUpdate
in interface CommandsInterface
public void setOnIccSmsFull(Handler h, int what, Object obj)
CommandsInterface
setOnIccSmsFull
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnIccSmsFull(Handler h)
unSetOnIccSmsFull
in interface CommandsInterface
public void registerForIccRefresh(Handler h, int what, Object obj)
CommandsInterface
registerForIccRefresh
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForIccRefresh(Handler h)
unregisterForIccRefresh
in interface CommandsInterface
public void setOnIccRefresh(Handler h, int what, Object obj)
setOnIccRefresh
in interface CommandsInterface
public void unsetOnIccRefresh(Handler h)
unsetOnIccRefresh
in interface CommandsInterface
public void setOnCallRing(Handler h, int what, Object obj)
CommandsInterface
setOnCallRing
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCallRing(Handler h)
unSetOnCallRing
in interface CommandsInterface
public void setOnRestrictedStateChanged(Handler h, int what, Object obj)
CommandsInterface
setOnRestrictedStateChanged
in interface CommandsInterface
public void unSetOnRestrictedStateChanged(Handler h)
unSetOnRestrictedStateChanged
in interface CommandsInterface
public void setOnSuppServiceNotification(Handler h, int what, Object obj)
CommandsInterface
setOnSuppServiceNotification
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnSuppServiceNotification(Handler h)
unSetOnSuppServiceNotification
in interface CommandsInterface
public void setOnCatSessionEnd(Handler h, int what, Object obj)
CommandsInterface
setOnCatSessionEnd
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatSessionEnd(Handler h)
unSetOnCatSessionEnd
in interface CommandsInterface
public void setOnCatProactiveCmd(Handler h, int what, Object obj)
CommandsInterface
setOnCatProactiveCmd
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatProactiveCmd(Handler h)
unSetOnCatProactiveCmd
in interface CommandsInterface
public void setOnCatEvent(Handler h, int what, Object obj)
CommandsInterface
setOnCatEvent
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatEvent(Handler h)
unSetOnCatEvent
in interface CommandsInterface
public void setOnCatCallSetUp(Handler h, int what, Object obj)
CommandsInterface
setOnCatCallSetUp
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatCallSetUp(Handler h)
unSetOnCatCallSetUp
in interface CommandsInterface
public void setSuppServiceNotifications(boolean enable, Message result)
CommandsInterface
setSuppServiceNotifications
in interface CommandsInterface
enable
- true to enable notifications, false to disable.result
- Message to be posted when command completes.public void setOnCatCcAlphaNotify(Handler h, int what, Object obj)
CommandsInterface
setOnCatCcAlphaNotify
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnCatCcAlphaNotify(Handler h)
unSetOnCatCcAlphaNotify
in interface CommandsInterface
public void setOnSs(Handler h, int what, Object obj)
CommandsInterface
setOnSs
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unSetOnSs(Handler h)
unSetOnSs
in interface CommandsInterface
public void registerForDisplayInfo(Handler h, int what, Object obj)
CommandsInterface
registerForDisplayInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForDisplayInfo(Handler h)
unregisterForDisplayInfo
in interface CommandsInterface
public void registerForCallWaitingInfo(Handler h, int what, Object obj)
CommandsInterface
registerForCallWaitingInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForCallWaitingInfo(Handler h)
unregisterForCallWaitingInfo
in interface CommandsInterface
public void registerForSignalInfo(Handler h, int what, Object obj)
CommandsInterface
registerForSignalInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForSignalInfo(Handler h)
unregisterForSignalInfo
in interface CommandsInterface
public void registerForNumberInfo(Handler h, int what, Object obj)
CommandsInterface
registerForNumberInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForNumberInfo(Handler h)
unregisterForNumberInfo
in interface CommandsInterface
public void registerForRedirectedNumberInfo(Handler h, int what, Object obj)
CommandsInterface
registerForRedirectedNumberInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForRedirectedNumberInfo(Handler h)
unregisterForRedirectedNumberInfo
in interface CommandsInterface
public void registerForLineControlInfo(Handler h, int what, Object obj)
CommandsInterface
registerForLineControlInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForLineControlInfo(Handler h)
unregisterForLineControlInfo
in interface CommandsInterface
public void registerFoT53ClirlInfo(Handler h, int what, Object obj)
CommandsInterface
registerFoT53ClirlInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForT53ClirInfo(Handler h)
unregisterForT53ClirInfo
in interface CommandsInterface
public void registerForT53AudioControlInfo(Handler h, int what, Object obj)
CommandsInterface
registerForT53AudioControlInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForT53AudioControlInfo(Handler h)
unregisterForT53AudioControlInfo
in interface CommandsInterface
public void setEmergencyCallbackMode(Handler h, int what, Object obj)
CommandsInterface
setEmergencyCallbackMode
in interface CommandsInterface
public void registerForCdmaOtaProvision(Handler h, int what, Object obj)
CommandsInterface
registerForCdmaOtaProvision
in interface CommandsInterface
public void unregisterForCdmaOtaProvision(Handler h)
unregisterForCdmaOtaProvision
in interface CommandsInterface
public void registerForRingbackTone(Handler h, int what, Object obj)
CommandsInterface
Messages received from this: Message.obj will be an AsyncResult AsyncResult.userObj = obj AsyncResult.result = boolean.
registerForRingbackTone
in interface CommandsInterface
public void unregisterForRingbackTone(Handler h)
unregisterForRingbackTone
in interface CommandsInterface
public void registerForResendIncallMute(Handler h, int what, Object obj)
CommandsInterface
registerForResendIncallMute
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForResendIncallMute(Handler h)
unregisterForResendIncallMute
in interface CommandsInterface
public void registerForCdmaSubscriptionChanged(Handler h, int what, Object obj)
CommandsInterface
registerForCdmaSubscriptionChanged
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForCdmaSubscriptionChanged(Handler h)
unregisterForCdmaSubscriptionChanged
in interface CommandsInterface
public void registerForCdmaPrlChanged(Handler h, int what, Object obj)
CommandsInterface
registerForCdmaPrlChanged
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForCdmaPrlChanged(Handler h)
unregisterForCdmaPrlChanged
in interface CommandsInterface
public void registerForExitEmergencyCallbackMode(Handler h, int what, Object obj)
CommandsInterface
registerForExitEmergencyCallbackMode
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForExitEmergencyCallbackMode(Handler h)
unregisterForExitEmergencyCallbackMode
in interface CommandsInterface
public void registerForRilConnected(Handler h, int what, Object obj)
CommandsInterface
registerForRilConnected
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForRilConnected(Handler h)
unregisterForRilConnected
in interface CommandsInterface
public void supplyIccPin(String pin, Message result)
CommandsInterface
supplyIccPin
in interface CommandsInterface
public void supplyIccPinForApp(String pin, String aid, Message result)
CommandsInterface
supplyIccPinForApp
in interface CommandsInterface
public void supplyIccPuk(String puk, String newPin, Message result)
CommandsInterface
supplyIccPuk
in interface CommandsInterface
public void supplyIccPukForApp(String puk, String newPin, String aid, Message result)
CommandsInterface
supplyIccPukForApp
in interface CommandsInterface
public void supplyIccPin2(String pin2, Message result)
CommandsInterface
supplyIccPin2
in interface CommandsInterface
public void supplyIccPin2ForApp(String pin2, String aid, Message result)
CommandsInterface
supplyIccPin2ForApp
in interface CommandsInterface
public void supplyIccPuk2(String puk2, String newPin2, Message result)
CommandsInterface
supplyIccPuk2
in interface CommandsInterface
public void supplyIccPuk2ForApp(String puk2, String newPin2, String aid, Message result)
CommandsInterface
supplyIccPuk2ForApp
in interface CommandsInterface
public void changeIccPin(String oldPin, String newPin, Message result)
changeIccPin
in interface CommandsInterface
public void changeIccPinForApp(String oldPin, String newPin, String aidPtr, Message result)
changeIccPinForApp
in interface CommandsInterface
public void changeIccPin2(String oldPin2, String newPin2, Message result)
changeIccPin2
in interface CommandsInterface
public void changeIccPin2ForApp(String oldPin2, String newPin2, String aidPtr, Message result)
changeIccPin2ForApp
in interface CommandsInterface
public void changeBarringPassword(String facility, String oldPwd, String newPwd, Message result)
changeBarringPassword
in interface CommandsInterface
public void supplyNetworkDepersonalization(String netpin, Message result)
supplyNetworkDepersonalization
in interface CommandsInterface
public void getCurrentCalls(Message result)
CommandsInterface
getCurrentCalls
in interface CommandsInterface
public void getPDPContextList(Message result)
CommandsInterface
getPDPContextList
in interface CommandsInterface
public void getDataCallList(Message result)
CommandsInterface
getDataCallList
in interface CommandsInterface
public void dial(String address, int clirMode, Message result)
CommandsInterface
dial
in interface CommandsInterface
public void dial(String address, int clirMode, UUSInfo uusInfo, Message result)
CommandsInterface
dial
in interface CommandsInterface
public void getIMSI(Message result)
CommandsInterface
getIMSI
in interface CommandsInterface
public void getIMSIForApp(String aid, Message result)
CommandsInterface
getIMSIForApp
in interface CommandsInterface
public void getIMEI(Message result)
CommandsInterface
getIMEI
in interface CommandsInterface
public void getIMEISV(Message result)
CommandsInterface
getIMEISV
in interface CommandsInterface
public void hangupConnection(int gsmIndex, Message result)
CommandsInterface
hangupConnection
in interface CommandsInterface
public void hangupWaitingOrBackground(Message result)
CommandsInterface
hangupWaitingOrBackground
in interface CommandsInterface
public void hangupForegroundResumeBackground(Message result)
CommandsInterface
hangupForegroundResumeBackground
in interface CommandsInterface
public void switchWaitingOrHoldingAndActive(Message result)
CommandsInterface
switchWaitingOrHoldingAndActive
in interface CommandsInterface
public void conference(Message result)
CommandsInterface
conference
in interface CommandsInterface
public void setPreferredVoicePrivacy(boolean enable, Message result)
CommandsInterface
setPreferredVoicePrivacy
in interface CommandsInterface
enable
- true is enhanced and false is normal VPresult
- is a callback messagepublic void getPreferredVoicePrivacy(Message result)
CommandsInterface
getPreferredVoicePrivacy
in interface CommandsInterface
result
- is a callback messagepublic void separateConnection(int gsmIndex, Message result)
CommandsInterface
separateConnection
in interface CommandsInterface
public void acceptCall(Message result)
CommandsInterface
acceptCall
in interface CommandsInterface
public void rejectCall(Message result)
CommandsInterface
rejectCall
in interface CommandsInterface
public void explicitCallTransfer(Message result)
CommandsInterface
explicitCallTransfer
in interface CommandsInterface
public void getLastCallFailCause(Message result)
CommandsInterface
getLastCallFailCause
in interface CommandsInterface
public void getLastPdpFailCause(Message result)
CommandsInterface
getLastPdpFailCause
in interface CommandsInterface
public void getLastDataCallFailCause(Message result)
CommandsInterface
getLastDataCallFailCause
in interface CommandsInterface
public void setMute(boolean enableMute, Message response)
setMute
in interface CommandsInterface
public void getMute(Message response)
getMute
in interface CommandsInterface
public void getSignalStrength(Message response)
CommandsInterface
getSignalStrength
in interface CommandsInterface
public void getVoiceRegistrationState(Message response)
CommandsInterface
getVoiceRegistrationState
in interface CommandsInterface
public void getDataRegistrationState(Message response)
CommandsInterface
getDataRegistrationState
in interface CommandsInterface
public void getOperator(Message response)
CommandsInterface
getOperator
in interface CommandsInterface
public void sendDtmf(char c, Message result)
CommandsInterface
sendDtmf
in interface CommandsInterface
public void startDtmf(char c, Message result)
CommandsInterface
startDtmf
in interface CommandsInterface
public void stopDtmf(Message result)
CommandsInterface
stopDtmf
in interface CommandsInterface
public void sendBurstDtmf(String dtmfString, int on, int off, Message result)
CommandsInterface
sendBurstDtmf
in interface CommandsInterface
public void sendSMS(String smscPDU, String pdu, Message response)
CommandsInterface
sendSMS
in interface CommandsInterface
public void sendSMSExpectMore(String smscPDU, String pdu, Message response)
CommandsInterface
sendSMSExpectMore
in interface CommandsInterface
public void sendCdmaSms(byte[] pdu, Message response)
sendCdmaSms
in interface CommandsInterface
pdu
- is CDMA-SMS in internal pseudo-PDU formatresponse
- sent when operation completespublic void sendImsGsmSms(String smscPDU, String pdu, int retry, int messageRef, Message response)
CommandsInterface
sendImsGsmSms
in interface CommandsInterface
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 completespublic void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, Message response)
CommandsInterface
sendImsCdmaSms
in interface CommandsInterface
pdu
- is CDMA-SMS in internal pseudo-PDU formatretry
- 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 completespublic void deleteSmsOnSim(int index, Message response)
CommandsInterface
deleteSmsOnSim
in interface CommandsInterface
index
- index of the SMS record to deleteresponse
- sent when operation completespublic void deleteSmsOnRuim(int index, Message response)
CommandsInterface
deleteSmsOnRuim
in interface CommandsInterface
index
- index of the SMS record to deleteresponse
- sent when operation completespublic void writeSmsToSim(int status, String smsc, String pdu, Message response)
CommandsInterface
writeSmsToSim
in interface CommandsInterface
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).public void writeSmsToRuim(int status, String pdu, Message response)
writeSmsToRuim
in interface CommandsInterface
public void setRadioPower(boolean on, Message response)
setRadioPower
in interface CommandsInterface
public void acknowledgeLastIncomingGsmSms(boolean success, int cause, Message response)
acknowledgeLastIncomingGsmSms
in interface CommandsInterface
public void acknowledgeLastIncomingCdmaSms(boolean success, int cause, Message response)
acknowledgeLastIncomingCdmaSms
in interface CommandsInterface
public void acknowledgeIncomingGsmSmsWithPdu(boolean success, String ackPdu, Message response)
CommandsInterface
acknowledgeIncomingGsmSmsWithPdu
in interface CommandsInterface
success
- true to send RP-ACK, false to send RP-ERRORackPdu
- the acknowledgement TPDU in hexadecimal formatresponse
- sent when operation completes.public void iccIO(int command, int fileid, String path, int p1, int p2, int p3, String data, String pin2, Message response)
CommandsInterface
iccIO
in interface CommandsInterface
public void iccIOForApp(int command, int fileid, String path, int p1, int p2, int p3, String data, String pin2, String aid, Message response)
CommandsInterface
iccIOForApp
in interface CommandsInterface
public void queryCLIP(Message response)
CommandsInterface
queryCLIP
in interface CommandsInterface
response
- is callback messagepublic void getCLIR(Message response)
CommandsInterface
getCLIR
in interface CommandsInterface
public void setCLIR(int clirMode, Message response)
CommandsInterface
setCLIR
in interface CommandsInterface
public void queryCallWaiting(int serviceClass, Message response)
CommandsInterface
queryCallWaiting
in interface CommandsInterface
serviceClass
- is a sum of SERVICE_CLASS_*response
- is callback messagepublic void setCallWaiting(boolean enable, int serviceClass, Message response)
setCallWaiting
in interface CommandsInterface
enable
- is true to enable, false to disableserviceClass
- is a sum of SERVICE_CLASS_*response
- is callback messagepublic void setCallForward(int action, int cfReason, int serviceClass, String number, int timeSeconds, Message response)
setCallForward
in interface CommandsInterface
action
- is one of CF_ACTION_*cfReason
- is one of CF_REASON_*serviceClass
- is a sum of SERVICE_CLASSS_*public void queryCallForwardStatus(int cfReason, int serviceClass, String number, Message response)
CommandsInterface
queryCallForwardStatus
in interface CommandsInterface
public void setNetworkSelectionModeAutomatic(Message response)
setNetworkSelectionModeAutomatic
in interface CommandsInterface
public void setNetworkSelectionModeManual(String operatorNumeric, Message response)
setNetworkSelectionModeManual
in interface CommandsInterface
public void getNetworkSelectionMode(Message response)
CommandsInterface
getNetworkSelectionMode
in interface CommandsInterface
public void getAvailableNetworks(Message response)
CommandsInterface
getAvailableNetworks
in interface CommandsInterface
public void getBasebandVersion(Message response)
getBasebandVersion
in interface CommandsInterface
public void queryFacilityLock(String facility, String password, int serviceClass, Message response)
CommandsInterface
queryFacilityLock
in interface CommandsInterface
facility
- one of CB_FACILTY_*password
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*response
- is callback messagepublic void queryFacilityLockForApp(String facility, String password, int serviceClass, String appId, Message response)
CommandsInterface
queryFacilityLockForApp
in interface CommandsInterface
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 messagepublic void setFacilityLock(String facility, boolean lockState, String password, int serviceClass, Message response)
setFacilityLock
in interface CommandsInterface
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 messagepublic void setFacilityLockForApp(String facility, boolean lockState, String password, int serviceClass, String appId, Message response)
CommandsInterface
setFacilityLockForApp
in interface CommandsInterface
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 messagepublic void sendUSSD(String ussdString, Message response)
sendUSSD
in interface CommandsInterface
public void cancelPendingUssd(Message response)
CommandsInterface
cancelPendingUssd
in interface CommandsInterface
response
- callback messagepublic void resetRadio(Message result)
resetRadio
in interface CommandsInterface
public void setBandMode(int bandMode, Message response)
CommandsInterface
setBandMode
in interface CommandsInterface
bandMode
- one of BM_*_BANDresponse
- is callback messagepublic void queryAvailableBandMode(Message response)
CommandsInterface
queryAvailableBandMode
in interface CommandsInterface
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_*_BANDpublic void setPreferredNetworkType(int networkType, Message response)
CommandsInterface
setPreferredNetworkType
in interface CommandsInterface
networkType
- one of NT_*_TYPEresponse
- is callback messagepublic void getPreferredNetworkType(Message response)
CommandsInterface
getPreferredNetworkType
in interface CommandsInterface
response
- is callback message to report one of NT_*_TYPEpublic void getNeighboringCids(Message response)
CommandsInterface
getNeighboringCids
in interface CommandsInterface
response
- s callback message to cell idspublic void setLocationUpdates(boolean enable, Message response)
CommandsInterface
setLocationUpdates
in interface CommandsInterface
enable
- true to enable, false to disableresponse
- callback messagepublic void getSmscAddress(Message result)
CommandsInterface
getSmscAddress
in interface CommandsInterface
result
- Callback message contains the SMSC address.public void setSmscAddress(String address, Message result)
CommandsInterface
setSmscAddress
in interface CommandsInterface
address
- new SMSC addressresult
- Callback message is empty on completionpublic void reportSmsMemoryStatus(boolean available, Message result)
CommandsInterface
reportSmsMemoryStatus
in interface CommandsInterface
available
- true if storage is availableresult
- callback messagepublic void reportStkServiceIsRunning(Message result)
CommandsInterface
reportStkServiceIsRunning
in interface CommandsInterface
result
- callback messagepublic void invokeOemRilRequestRaw(byte[] data, Message response)
invokeOemRilRequestRaw
in interface CommandsInterface
public void invokeOemRilRequestStrings(String[] strings, Message response)
invokeOemRilRequestStrings
in interface CommandsInterface
public void setOnUnsolOemHookRaw(Handler h, int what, Object obj)
CommandsInterface
setOnUnsolOemHookRaw
in interface CommandsInterface
public void unSetOnUnsolOemHookRaw(Handler h)
unSetOnUnsolOemHookRaw
in interface CommandsInterface
public void sendTerminalResponse(String contents, Message response)
CommandsInterface
sendTerminalResponse
in interface CommandsInterface
contents
- String containing SAT/USAT response in hexadecimal
format starting with first byte of response data. See
TS 102 223 for details.response
- Callback messagepublic void sendEnvelope(String contents, Message response)
CommandsInterface
sendEnvelope
in interface CommandsInterface
contents
- String containing SAT/USAT response in hexadecimal
format starting with command tag. See TS 102 223 for
details.response
- Callback messagepublic void sendEnvelopeWithStatus(String contents, Message response)
CommandsInterface
CommandsInterface.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 successsendEnvelopeWithStatus
in interface CommandsInterface
contents
- String containing SAT/USAT response in hexadecimal
format starting with command tag. See TS 102 223 for
details.response
- Callback messagepublic void handleCallSetupRequestFromSim(boolean accept, Message response)
CommandsInterface
handleCallSetupRequestFromSim
in interface CommandsInterface
accept
- true if the call is to be accepted, false otherwise.response
- Callback messagepublic void setGsmBroadcastActivation(boolean activate, Message result)
CommandsInterface
setGsmBroadcastActivation
in interface CommandsInterface
activate
- true = activate, false = deactivateresult
- Callback message is empty on completionpublic void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, Message response)
CommandsInterface
setGsmBroadcastConfig
in interface CommandsInterface
response
- Callback message is empty on completionpublic void getGsmBroadcastConfig(Message response)
CommandsInterface
getGsmBroadcastConfig
in interface CommandsInterface
response
- Callback message contains the configuration from the modem
on completionpublic void getDeviceIdentity(Message response)
CommandsInterface
getDeviceIdentity
in interface CommandsInterface
public void getCDMASubscription(Message response)
CommandsInterface
getCDMASubscription
in interface CommandsInterface
public void sendCDMAFeatureCode(String FeatureCode, Message response)
CommandsInterface
sendCDMAFeatureCode
in interface CommandsInterface
public void setPhoneType(int phoneType)
CommandsInterface
setPhoneType
in interface CommandsInterface
public void queryCdmaRoamingPreference(Message response)
CommandsInterface
queryCdmaRoamingPreference
in interface CommandsInterface
response
- is callback message to report one of CDMA_RM_*public void setCdmaRoamingPreference(int cdmaRoamingType, Message response)
CommandsInterface
setCdmaRoamingPreference
in interface CommandsInterface
cdmaRoamingType
- one of CDMA_RM_*response
- is callback messagepublic void setCdmaSubscriptionSource(int cdmaSubscriptionType, Message response)
CommandsInterface
setCdmaSubscriptionSource
in interface CommandsInterface
cdmaSubscriptionType
- one of CDMA_SUBSCRIPTION_*response
- is callback messagepublic void getCdmaSubscriptionSource(Message response)
CommandsInterface
getCdmaSubscriptionSource
in interface CommandsInterface
response
- is callback messagepublic void setTTYMode(int ttyMode, Message response)
CommandsInterface
setTTYMode
in interface CommandsInterface
ttyMode
- one of the following:
- PhoneInternalInterface.TTY_MODE_OFF
- PhoneInternalInterface.TTY_MODE_FULL
- PhoneInternalInterface.TTY_MODE_HCO
- PhoneInternalInterface.TTY_MODE_VCO
response
- is callback messagepublic void queryTTYMode(Message response)
CommandsInterface
PhoneInternalInterface.TTY_MODE_OFF
- PhoneInternalInterface.TTY_MODE_FULL
- PhoneInternalInterface.TTY_MODE_HCO
- PhoneInternalInterface.TTY_MODE_VCO
queryTTYMode
in interface CommandsInterface
response
- is callback messagepublic void setupDataCall(int radioTechnology, int profile, String apn, String user, String password, int authType, String protocol, Message result)
CommandsInterface
DataCallResponse
object containing the connection information.setupDataCall
in interface CommandsInterface
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 messagepublic void deactivateDataCall(int cid, int reason, Message result)
CommandsInterface
deactivateDataCall
in interface CommandsInterface
cid
- The connection IDreason
- Data disconnect reason.result
- Callback message is empty on completionpublic void setCdmaBroadcastActivation(boolean activate, Message result)
CommandsInterface
setCdmaBroadcastActivation
in interface CommandsInterface
activate
- true = activate, false = deactivateresult
- Callback message is empty on completionpublic void setCdmaBroadcastConfig(CdmaSmsBroadcastConfigInfo[] configs, Message response)
CommandsInterface
setCdmaBroadcastConfig
in interface CommandsInterface
response
- Callback message is empty on completionpublic void getCdmaBroadcastConfig(Message result)
CommandsInterface
getCdmaBroadcastConfig
in interface CommandsInterface
result
- Callback message contains the configuration from the modem on completionpublic void exitEmergencyCallbackMode(Message response)
CommandsInterface
exitEmergencyCallbackMode
in interface CommandsInterface
response
- callback messagepublic void getIccCardStatus(Message result)
CommandsInterface
getIccCardStatus
in interface CommandsInterface
result
- Callback message containing IccCardStatus
structure for the card.public int getLteOnCdmaMode()
CommandsInterface
getLteOnCdmaMode
in interface CommandsInterface
PhoneConstants.LTE_ON_CDMA_UNKNOWN
, PhoneConstants.LTE_ON_CDMA_FALSE
or PhoneConstants.LTE_ON_CDMA_TRUE
public void requestIsimAuthentication(String nonce, Message response)
CommandsInterface
requestIsimAuthentication
in interface CommandsInterface
nonce
- the nonce string to pass with the ISIM authentication requestresponse
- a callback message with the String response in the obj fieldrequestIccSimAuthentication
public void requestIccSimAuthentication(int authContext, String data, String aid, Message response)
CommandsInterface
requestIccSimAuthentication
in interface CommandsInterface
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 fieldpublic void getVoiceRadioTechnology(Message result)
CommandsInterface
getVoiceRadioTechnology
in interface CommandsInterface
result
- is sent back to handler and result.obj is a AsyncResultpublic void getCellInfoList(Message result)
CommandsInterface
getCellInfoList
in interface CommandsInterface
result
- is sent back to handler and result.obj is a AsyncResultpublic void setCellInfoListRate(int rateInMillis, Message response)
CommandsInterface
setCellInfoListRate
in interface CommandsInterface
rateInMillis
- is sent back to handler and result.obj is a AsyncResultpublic void registerForCellInfoList(Handler h, int what, Object obj)
CommandsInterface
registerForCellInfoList
in interface CommandsInterface
public void unregisterForCellInfoList(Handler h)
unregisterForCellInfoList
in interface CommandsInterface
public void setInitialAttachApn(String apn, String protocol, int authType, String username, String password, Message result)
CommandsInterface
setInitialAttachApn
in interface CommandsInterface
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/FAILUREpublic void setDataProfile(DataProfile[] dps, Message result)
CommandsInterface
setDataProfile
in interface CommandsInterface
dps
- Array of the data profiles set to modemresult
- callback message contains the information of SUCCESS/FAILUREpublic void testingEmergencyCall()
CommandsInterface
testingEmergencyCall
in interface CommandsInterface
public void iccOpenLogicalChannel(String AID, Message response)
CommandsInterface
iccOpenLogicalChannel
in interface CommandsInterface
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.public void iccCloseLogicalChannel(int channel, Message response)
CommandsInterface
iccCloseLogicalChannel
in interface CommandsInterface
channel
- Channel id. Id of the channel to be closed.response
- Callback message.public void iccTransmitApduLogicalChannel(int channel, int cla, int instruction, int p1, int p2, int p3, String data, Message response)
CommandsInterface
iccTransmitApduLogicalChannel
in interface CommandsInterface
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.public void iccTransmitApduBasicChannel(int cla, int instruction, int p1, int p2, int p3, String data, Message response)
CommandsInterface
iccTransmitApduBasicChannel
in interface CommandsInterface
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.public void nvReadItem(int itemID, Message response)
CommandsInterface
RadioNVItems
/ ril_nv_items.h
.
Used for device configuration by some CDMA operators.nvReadItem
in interface CommandsInterface
itemID
- the ID of the item to readresponse
- callback message with the String response in the obj fieldpublic void nvWriteItem(int itemID, String itemValue, Message response)
CommandsInterface
RadioNVItems
/ ril_nv_items.h
.
Used for device configuration by some CDMA operators.nvWriteItem
in interface CommandsInterface
itemID
- the ID of the item to readitemValue
- the value to write, as a Stringresponse
- Callback message.public void nvWriteCdmaPrl(byte[] preferredRoamingList, Message response)
CommandsInterface
nvWriteCdmaPrl
in interface CommandsInterface
preferredRoamingList
- byte array containing the new PRLresponse
- Callback message.public void nvResetConfig(int resetType, Message response)
CommandsInterface
nvResetConfig
in interface CommandsInterface
resetType
- reset type: 1: reload NV reset, 2: erase NV reset, 3: factory NV resetresponse
- Callback message.public void getHardwareConfig(Message result)
CommandsInterface
getHardwareConfig
in interface CommandsInterface
public int getRilVersion()
getRilVersion
in interface CommandsInterface
public void setUiccSubscription(int slotId, int appIndex, int subId, int subStatus, Message result)
CommandsInterface
setUiccSubscription
in interface CommandsInterface
slotId
- Slot.appIndex
- Application index in the card.subId
- Indicates subscription 0 or subscription 1.subStatus
- Activation status, 1 = activate and 0 = deactivate.result
- Callback message contains the information of SUCCESS/FAILURE.public void setDataAllowed(boolean allowed, Message result)
CommandsInterface
setDataAllowed
in interface CommandsInterface
allowed
- true = allowed, false = not alowedresult
- Callback message contains the information of SUCCESS/FAILURE.public void requestShutdown(Message result)
CommandsInterface
requestShutdown
in interface CommandsInterface
result
- Callback message contains the information of SUCCESS/FAILUREpublic void setRadioCapability(RadioCapability rc, Message result)
CommandsInterface
setRadioCapability
in interface CommandsInterface
rc
- the phone radio capability defined in
RadioCapability. It's a input object used to transfer parameter to logic modemresult
- Callback message.public void getRadioCapability(Message result)
CommandsInterface
getRadioCapability
in interface CommandsInterface
result
- Callback message.public void registerForRadioCapabilityChanged(Handler h, int what, Object obj)
CommandsInterface
registerForRadioCapabilityChanged
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForRadioCapabilityChanged(Handler h)
CommandsInterface
unregisterForRadioCapabilityChanged
in interface CommandsInterface
h
- Handler to be removed from the registrant list.public void startLceService(int reportIntervalMs, boolean pullMode, Message result)
CommandsInterface
startLceService
in interface CommandsInterface
reportIntervalMs
- LCE info reporting interval (ms).result
- Callback message contains the current LCE status.
{byte status, int actualIntervalMs}public void stopLceService(Message result)
CommandsInterface
stopLceService
in interface CommandsInterface
result
- Callback message contains the current LCE status:
{byte status, int actualIntervalMs}public void pullLceData(Message result)
CommandsInterface
pullLceData
in interface CommandsInterface
result
- Callback message contains the capacity info:
{int capacityKbps, byte confidenceLevel, byte lceSuspendedTemporarily}public void registerForLceInfo(Handler h, int what, Object obj)
CommandsInterface
registerForLceInfo
in interface CommandsInterface
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void unregisterForLceInfo(Handler h)
CommandsInterface
unregisterForLceInfo
in interface CommandsInterface
h
- handle to be removed.public void getModemActivityInfo(Message result)
CommandsInterface
getModemActivityInfo
in interface CommandsInterface
result
- Callback message contains the modem activity informationpublic void setAllowedCarriers(List<CarrierIdentifier> carriers, Message result)
CommandsInterface
setAllowedCarriers
in interface CommandsInterface
carriers
- Allowed carriersresult
- Callback message contains the number of carriers set successfullypublic void getAllowedCarriers(Message result)
CommandsInterface
getAllowedCarriers
in interface CommandsInterface
result
- Callback message contains the allowed carrierspublic void registerForPcoData(Handler h, int what, Object obj)
CommandsInterface
registerForPcoData
in interface CommandsInterface
h
- Handler for notificaiton message.what
- User-defined message code.obj
- User object.public void unregisterForPcoData(Handler h)
CommandsInterface
unregisterForPcoData
in interface CommandsInterface
h
- handler to be removed