public class SimulatedCommands extends BaseCommands implements CommandsInterface, SimulatedRadioControl
CommandsInterface.RadioState
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PIN1_ATTEMPT |
static int |
DEFAULT_PIN2_ATTEMPT |
static String |
DEFAULT_SIM_PIN_CODE |
static String |
DEFAULT_SIM_PIN2_CODE |
static String |
FAKE_ESN |
static String |
FAKE_IMEI |
static String |
FAKE_IMEISV |
static String |
FAKE_LONG_NAME |
static String |
FAKE_MCC_MNC |
static String |
FAKE_MEID |
static String |
FAKE_SHORT_NAME |
mAvailRegistrants, mCallStateRegistrants, mCallWaitingInfoRegistrants, mCatCallSetUpRegistrant, mCatCcAlphaRegistrant, mCatEventRegistrant, mCatProCmdRegistrant, mCatSessionEndRegistrant, mCdmaPrlChangedRegistrants, mCdmaSmsRegistrant, mCdmaSubscription, mCdmaSubscriptionChangedRegistrants, mContext, mDataNetworkStateRegistrants, mDisplayInfoRegistrants, mEmergencyCallbackModeRegistrant, mExitEmergencyCallbackModeRegistrants, mGsmBroadcastSmsRegistrant, mGsmSmsRegistrant, mHardwareConfigChangeRegistrants, mIccRefreshRegistrants, mIccSmsFullRegistrant, mIccStatusChangedRegistrants, mImsNetworkStateChangedRegistrants, mLceInfoRegistrant, mLineControlInfoRegistrants, mNITZTimeRegistrant, mNotAvailRegistrants, mNumberInfoRegistrants, mOffOrNotAvailRegistrants, mOnRegistrants, mOtaProvisionRegistrants, mPcoDataRegistrants, mPhoneRadioCapabilityChangedRegistrants, mPhoneType, mPreferredNetworkType, mRadioStateChangedRegistrants, mRedirNumInfoRegistrants, mResendIncallMuteRegistrants, mRestrictedStateRegistrant, mRilCellInfoListRegistrants, mRilConnectedRegistrants, mRilVersion, mRingbackToneRegistrants, mRingRegistrant, mSignalInfoRegistrants, mSignalStrengthRegistrant, mSmsOnSimRegistrant, mSmsStatusRegistrant, mSrvccStateRegistrants, mSsnRegistrant, mSsRegistrant, mState, mStateMonitor, mSubscriptionStatusRegistrants, mT53AudCntrlInfoRegistrants, mT53ClirInfoRegistrants, mUnsolOemHookRawRegistrant, mUSSDRegistrant, mVoiceNetworkStateRegistrants, mVoicePrivacyOffRegistrants, mVoicePrivacyOnRegistrants, mVoiceRadioTechChangedRegistrants
CB_FACILITY_BA_ALL, CB_FACILITY_BA_FD, CB_FACILITY_BA_MO, CB_FACILITY_BA_MT, CB_FACILITY_BA_SIM, CB_FACILITY_BAIC, CB_FACILITY_BAICr, CB_FACILITY_BAOC, CB_FACILITY_BAOIC, CB_FACILITY_BAOICxH, CDMA_SMS_FAIL_CAUSE_ENCODING_PROBLEM, CDMA_SMS_FAIL_CAUSE_INVALID_TELESERVICE_ID, CDMA_SMS_FAIL_CAUSE_OTHER_TERMINAL_PROBLEM, CDMA_SMS_FAIL_CAUSE_RESOURCE_SHORTAGE, CF_ACTION_DISABLE, CF_ACTION_ENABLE, CF_ACTION_ERASURE, CF_ACTION_REGISTRATION, CF_REASON_ALL, CF_REASON_ALL_CONDITIONAL, CF_REASON_BUSY, CF_REASON_NO_REPLY, CF_REASON_NOT_REACHABLE, CF_REASON_UNCONDITIONAL, CLIR_DEFAULT, CLIR_INVOCATION, CLIR_SUPPRESSION, GSM_SMS_FAIL_CAUSE_MEMORY_CAPACITY_EXCEEDED, GSM_SMS_FAIL_CAUSE_UNSPECIFIED_ERROR, GSM_SMS_FAIL_CAUSE_USIM_APP_TOOLKIT_BUSY, GSM_SMS_FAIL_CAUSE_USIM_DATA_DOWNLOAD_ERROR, SERVICE_CLASS_DATA, SERVICE_CLASS_DATA_ASYNC, SERVICE_CLASS_DATA_SYNC, SERVICE_CLASS_FAX, SERVICE_CLASS_MAX, SERVICE_CLASS_NONE, SERVICE_CLASS_PACKET, SERVICE_CLASS_PAD, SERVICE_CLASS_SMS, SERVICE_CLASS_VOICE, USSD_MODE_LOCAL_CLIENT, USSD_MODE_NOT_SUPPORTED, USSD_MODE_NOTIFY, USSD_MODE_NW_RELEASE, USSD_MODE_NW_TIMEOUT, USSD_MODE_REQUEST
Constructor and Description |
---|
SimulatedCommands() |
Modifier and Type | Method and Description |
---|---|
void |
acceptCall(Message result)
ar.exception carries exception on failure
ar.userObject contains the original value of result.obj
ar.result is null on success and failure
|
void |
acknowledgeIncomingGsmSmsWithPdu(boolean success,
String ackPdu,
Message result)
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 result) |
void |
acknowledgeLastIncomingGsmSms(boolean success,
int cause,
Message result) |
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 response) |
void |
changeIccPinForApp(String oldPin,
String newPin,
String aidPtr,
Message response) |
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 original 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 original 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 original 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 result)
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 original value of result.obj
ar.result is null on success and failure
|
void |
forceDataDormancy(Message response) |
void |
getAllowedCarriers(Message result)
Get allowed carriers
|
void |
getAvailableNetworks(Message result)
Queries the currently available networks
((AsyncResult)response.obj).result is a List of NetworkInfo objects
|
void |
getBasebandVersion(Message result) |
void |
getCdmaBroadcastConfig(Message response)
Query the current configuration of cdma cell broadcast SMS.
|
void |
getCDMASubscription(Message result)
Request the device MDN / H_SID / H_NID / MIN.
|
void |
getCdmaSubscriptionSource(Message result)
Requests to get the CDMA subscription srouce
|
void |
getCellInfoList(Message response)
Return the current set of CellInfo records
AsyncResult.result is a of Collection
|
void |
getCLIR(Message result)
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 original 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 original value of result.obj
ar.result contains a List of DataCallResponse
|
void |
getDataRegistrationState(Message result)
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.
|
int |
getGetDataRegistrationStateCallCount() |
int |
getGetNetworkSelectionModeCallCount() |
int |
getGetOperatorCallCount() |
int |
getGetVoiceRegistrationStateCallCount() |
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 original 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 original 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 original value of result.obj
ar.result is String containing IMSI on success
|
void |
getImsRegistrationState(Message response)
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 Integer 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.
|
void |
getModemActivityInfo(Message result)
Get modem activity info and stats
|
void |
getMute(Message result) |
void |
getNeighboringCids(Message result)
Query neighboring cell ids
|
void |
getNetworkSelectionMode(Message result)
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 result)
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.
|
void |
getPreferredNetworkType(Message result)
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
|
int |
getRilVersion() |
void |
getSignalStrength(Message result)
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 response)
Get the current Voice Radio Technology.
|
void |
getVoiceRegistrationState(Message result)
response.obj.result is an String[14]
See ril.h for details
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 result)
parameters equivalent to 27.007 AT+CRSM command
response.obj will be an AsyncResult
response.obj.userObj will be a SimIoResult 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) |
boolean |
isDataAllowed() |
void |
notifyEmergencyCallbackMode() |
void |
notifyExitEmergencyCallbackMode() |
void |
notifyGsmBroadcastSms(Object result) |
void |
notifyIccSmsFull() |
void |
notifyImsNetworkStateChanged() |
void |
notifyOtaProvisionStatusChanged() |
void |
notifyRadioOn() |
void |
notifySignalStrength() |
void |
notifySmsStatus(Object result) |
void |
notifyVoiceNetworkStateChanged() |
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 |
pauseResponses()
Pause responses to async requests until (ref-counted) resumeResponses()
|
void |
progressConnectingCallState() |
void |
progressConnectingToActive()
If a call is DIALING or ALERTING, progress it all the way to ACTIVE
|
void |
pullLceData(Message result)
Pull LCE service for capacity data.
|
void |
queryAvailableBandMode(Message result)
Query the list of band mode supported by RF.
|
void |
queryCallForwardStatus(int cfReason,
int serviceClass,
String number,
Message result)
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 pin,
int serviceClass,
Message result)
(AsyncResult)response.obj).result will be an Integer representing
the sum of enabled service classes (sum of SERVICE_CLASS_*)
|
void |
queryFacilityLockForApp(String facility,
String pin,
int serviceClass,
String appId,
Message result)
(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 |
registerForExitEmergencyCallbackMode(Handler h,
int what,
Object obj)
Registers the handler for when Cdma prl changed events
|
void |
registerForPcoData(Handler h,
int what,
Object obj)
Register for unsolicited PCO data.
|
void |
rejectCall(Message result)
also known as UDUB
ar.exception carries exception on failure
ar.userObject contains the original 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 |
resumeResponses()
see pauseResponses
|
void |
sendBurstDtmf(String dtmfString,
int on,
int off,
Message result)
ar.exception carries exception on failure
ar.userObject contains the original 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 original 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 result)
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 result)
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 |
sendStkCcAplha(String alphaString) |
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 result) |
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 |
setAutoProgressConnectingCall(boolean b)
automatically progress mobile originated calls to ACTIVE.
|
void |
setBandMode(int bandMode,
Message result)
Assign a specified band for RF configuration.
|
void |
setCallForward(int action,
int cfReason,
int serviceClass,
String number,
int timeSeconds,
Message result) |
void |
setCallWaiting(boolean enable,
int serviceClass,
Message response) |
void |
setCdmaBroadcastActivation(boolean activate,
Message response)
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 |
setCellInfoList(List<CellInfo> list) |
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 result)
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 |
setDataCallResponse(boolean success,
DataCallResponse dcResponse) |
void |
setDataProfile(DataProfile[] dps,
Message result)
Set data profiles in modem
|
void |
setDataRadioTech(int radioTech) |
void |
setDataRegState(int dataRegState) |
void |
setEmergencyCallbackMode(Handler h,
int what,
Object obj)
Fires on if Modem enters Emergency Callback mode
|
void |
setFacilityLock(String facility,
boolean lockEnabled,
String pin,
int serviceClass,
Message result) |
void |
setFacilityLockForApp(String facility,
boolean lockEnabled,
String pin,
int serviceClass,
String appId,
Message result)
Set the facility lock for the app with this AID on the ICC card.
|
void |
setGsmBroadcastActivation(boolean activate,
Message response)
Activate or deactivate cell broadcast SMS for GSM.
|
void |
setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config,
Message response)
Configure cell broadcast SMS for GSM.
|
void |
setIccCardStatus(IccCardStatus iccCardStatus) |
void |
setIccIoResultForApduLogicalChannel(IccIoResult iccIoResult) |
void |
setIMEI(String imei) |
void |
setIMEISV(String imeisv) |
void |
setImsRegistrationState(int[] regState) |
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 result) |
void |
setNetworkSelectionModeAutomatic(Message result) |
void |
setNetworkSelectionModeManual(String operatorNumeric,
Message result) |
void |
setNextCallFailCause(int gsmCause) |
void |
setNextDialFailImmediately(boolean b) |
void |
setOpenChannelId(int channelId) |
void |
setPhoneType(int phoneType)
Set the Phone type created
|
void |
setPin1RemainingAttempt(int pin1attemptsRemaining) |
void |
setPreferredNetworkType(int networkType,
Message result)
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 |
setRadioPower(boolean on,
Message result) |
void |
setSignalStrength(SignalStrength signalStrength) |
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 |
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 |
setVoiceRadioTech(int voiceRadioTech) |
void |
setVoiceRegState(int voiceRegState) |
void |
shutdown() |
void |
startDtmf(char c,
Message result)
ar.exception carries exception on failure
ar.userObject contains the original value of result.obj
ar.result is null on success and failure
|
void |
startLceService(int report_interval_ms,
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 original 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 response)
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 response)
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 response)
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 response)
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 |
triggerHangupAll()
hangup all
|
void |
triggerHangupBackground()
hangup holding calls
|
void |
triggerHangupForeground() |
void |
triggerIncomingSMS(String message) |
void |
triggerIncomingStkCcAlpha(String alphaString)
Simulates an Stk Call Control Alpha message
|
void |
triggerIncomingUssd(String statusCode,
String message)
Simulates an incoming USSD message
|
void |
triggerNITZupdate(String NITZStr) |
void |
triggerRing(String number)
Start the simulated phone ringing
|
void |
triggerSsn(int type,
int code) |
void |
unregisterForPcoData(Handler h)
Unregister for PCO data.
|
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).
|
getLteOnCdmaMode, getRadioState, onRadioAvailable, registerForAvailable, registerForCallStateChanged, registerForCallWaitingInfo, registerForCdmaOtaProvision, registerForCdmaPrlChanged, registerForCdmaSubscriptionChanged, registerForCellInfoList, registerForDataNetworkStateChanged, registerForDisplayInfo, registerForHardwareConfigChanged, registerForIccRefresh, registerForIccStatusChanged, registerForImsNetworkStateChanged, registerForInCallVoicePrivacyOff, registerForInCallVoicePrivacyOn, registerForLceInfo, registerForLineControlInfo, registerForNotAvailable, registerForNumberInfo, registerForOffOrNotAvailable, registerForOn, registerForRadioCapabilityChanged, registerForRadioStateChanged, registerForRedirectedNumberInfo, registerForResendIncallMute, registerForRilConnected, registerForRingbackTone, registerForSignalInfo, registerForSrvccStateChanged, registerForSubscriptionStatusChanged, registerForT53AudioControlInfo, registerForVoiceNetworkStateChanged, registerForVoiceRadioTechChanged, registerFoT53ClirlInfo, setOnCallRing, setOnCatCallSetUp, setOnCatCcAlphaNotify, setOnCatEvent, setOnCatProactiveCmd, setOnCatSessionEnd, setOnIccRefresh, setOnIccSmsFull, setOnNewCdmaSms, setOnNewGsmBroadcastSms, setOnNewGsmSms, setOnNITZTime, setOnRestrictedStateChanged, setOnSignalStrengthUpdate, setOnSmsOnSim, setOnSmsStatus, setOnSs, setOnSuppServiceNotification, setOnUnsolOemHookRaw, setOnUSSD, setRadioCapability, setRadioState, setUiccSubscription, testingEmergencyCall, unregisterForAvailable, unregisterForCallStateChanged, unregisterForCallWaitingInfo, unregisterForCdmaOtaProvision, unregisterForCdmaPrlChanged, unregisterForCdmaSubscriptionChanged, unregisterForCellInfoList, unregisterForDataNetworkStateChanged, unregisterForDisplayInfo, unregisterForExitEmergencyCallbackMode, unregisterForHardwareConfigChanged, unregisterForIccRefresh, unregisterForIccStatusChanged, unregisterForImsNetworkStateChanged, unregisterForInCallVoicePrivacyOff, unregisterForInCallVoicePrivacyOn, unregisterForLceInfo, unregisterForLineControlInfo, unregisterForNotAvailable, unregisterForNumberInfo, unregisterForOffOrNotAvailable, unregisterForOn, unregisterForRadioCapabilityChanged, unregisterForRadioStateChanged, unregisterForRedirectedNumberInfo, unregisterForResendIncallMute, unregisterForRilConnected, unregisterForRingbackTone, unregisterForSignalInfo, unregisterForSrvccStateChanged, unregisterForSubscriptionStatusChanged, unregisterForT53AudioControlInfo, unregisterForT53ClirInfo, unregisterForVoiceNetworkStateChanged, unregisterForVoiceRadioTechChanged, unSetOnCallRing, unSetOnCatCallSetUp, unSetOnCatCcAlphaNotify, unSetOnCatEvent, unSetOnCatProactiveCmd, unSetOnCatSessionEnd, unsetOnIccRefresh, unSetOnIccSmsFull, unSetOnNewCdmaSms, unSetOnNewGsmBroadcastSms, unSetOnNewGsmSms, unSetOnNITZTime, unSetOnRestrictedStateChanged, unSetOnSignalStrengthUpdate, unSetOnSmsOnSim, unSetOnSmsStatus, unSetOnSs, unSetOnSuppServiceNotification, unSetOnUnsolOemHookRaw, unSetOnUSSD
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLteOnCdmaMode, getRadioState, registerForAvailable, registerForCallStateChanged, registerForCallWaitingInfo, registerForCdmaOtaProvision, registerForCdmaPrlChanged, registerForCdmaSubscriptionChanged, registerForCellInfoList, registerForDataNetworkStateChanged, registerForDisplayInfo, registerForHardwareConfigChanged, registerForIccRefresh, registerForIccStatusChanged, registerForImsNetworkStateChanged, registerForInCallVoicePrivacyOff, registerForInCallVoicePrivacyOn, registerForLceInfo, registerForLineControlInfo, registerForNotAvailable, registerForNumberInfo, registerForOffOrNotAvailable, registerForOn, registerForRadioCapabilityChanged, registerForRadioStateChanged, registerForRedirectedNumberInfo, registerForResendIncallMute, registerForRilConnected, registerForRingbackTone, registerForSignalInfo, registerForSrvccStateChanged, registerForSubscriptionStatusChanged, registerForT53AudioControlInfo, registerForVoiceNetworkStateChanged, registerForVoiceRadioTechChanged, registerFoT53ClirlInfo, setOnCallRing, setOnCatCallSetUp, setOnCatCcAlphaNotify, setOnCatEvent, setOnCatProactiveCmd, setOnCatSessionEnd, setOnIccRefresh, setOnIccSmsFull, setOnNewCdmaSms, setOnNewGsmBroadcastSms, setOnNewGsmSms, setOnNITZTime, setOnRestrictedStateChanged, setOnSignalStrengthUpdate, setOnSmsOnSim, setOnSmsStatus, setOnSs, setOnSuppServiceNotification, setOnUnsolOemHookRaw, setOnUSSD, setRadioCapability, setUiccSubscription, testingEmergencyCall, unregisterForAvailable, unregisterForCallStateChanged, unregisterForCallWaitingInfo, unregisterForCdmaOtaProvision, unregisterForCdmaPrlChanged, unregisterForCdmaSubscriptionChanged, unregisterForCellInfoList, unregisterForDataNetworkStateChanged, unregisterForDisplayInfo, unregisterForExitEmergencyCallbackMode, unregisterForHardwareConfigChanged, unregisterForIccRefresh, unregisterForIccStatusChanged, unregisterForImsNetworkStateChanged, unregisterForInCallVoicePrivacyOff, unregisterForInCallVoicePrivacyOn, unregisterForLceInfo, unregisterForLineControlInfo, unregisterForNotAvailable, unregisterForNumberInfo, unregisterForOffOrNotAvailable, unregisterForOn, unregisterForRadioCapabilityChanged, unregisterForRadioStateChanged, unregisterForRedirectedNumberInfo, unregisterForResendIncallMute, unregisterForRilConnected, unregisterForRingbackTone, unregisterForSignalInfo, unregisterForSrvccStateChanged, unregisterForSubscriptionStatusChanged, unregisterForT53AudioControlInfo, unregisterForT53ClirInfo, unregisterForVoiceNetworkStateChanged, unregisterForVoiceRadioTechChanged, unSetOnCallRing, unSetOnCatCallSetUp, unSetOnCatCcAlphaNotify, unSetOnCatEvent, unSetOnCatProactiveCmd, unSetOnCatSessionEnd, unsetOnIccRefresh, unSetOnIccSmsFull, unSetOnNewCdmaSms, unSetOnNewGsmBroadcastSms, unSetOnNewGsmSms, unSetOnNITZTime, unSetOnRestrictedStateChanged, unSetOnSignalStrengthUpdate, unSetOnSmsOnSim, unSetOnSmsStatus, unSetOnSs, unSetOnSuppServiceNotification, unSetOnUnsolOemHookRaw, unSetOnUSSD
public static final String DEFAULT_SIM_PIN_CODE
public static final String DEFAULT_SIM_PIN2_CODE
public static final String FAKE_LONG_NAME
public static final String FAKE_SHORT_NAME
public static final String FAKE_MCC_MNC
public static final String FAKE_IMEI
public static final String FAKE_IMEISV
public static final String FAKE_ESN
public static final String FAKE_MEID
public static final int DEFAULT_PIN1_ATTEMPT
public static final int DEFAULT_PIN2_ATTEMPT
public void getIccCardStatus(Message result)
CommandsInterface
getIccCardStatus
in interface CommandsInterface
result
- Callback message containing IccCardStatus
structure for the card.public void supplyIccPin(String pin, Message result)
CommandsInterface
supplyIccPin
in interface CommandsInterface
public void supplyIccPuk(String puk, String newPin, Message result)
CommandsInterface
supplyIccPuk
in interface CommandsInterface
public void supplyIccPin2(String pin2, Message result)
CommandsInterface
supplyIccPin2
in interface CommandsInterface
public void supplyIccPuk2(String puk2, String newPin2, Message result)
CommandsInterface
supplyIccPuk2
in interface CommandsInterface
public void changeIccPin(String oldPin, String newPin, Message result)
changeIccPin
in interface CommandsInterface
public void changeIccPin2(String oldPin2, String newPin2, Message result)
changeIccPin2
in interface CommandsInterface
public void changeBarringPassword(String facility, String oldPwd, String newPwd, Message result)
changeBarringPassword
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 queryFacilityLock(String facility, String pin, int serviceClass, Message result)
CommandsInterface
queryFacilityLock
in interface CommandsInterface
facility
- one of CB_FACILTY_*pin
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*result
- is callback messagepublic void queryFacilityLockForApp(String facility, String pin, int serviceClass, String appId, Message result)
CommandsInterface
queryFacilityLockForApp
in interface CommandsInterface
facility
- one of CB_FACILTY_*pin
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*appId
- is application Id or null if noneresult
- is callback messagepublic void setFacilityLock(String facility, boolean lockEnabled, String pin, int serviceClass, Message result)
setFacilityLock
in interface CommandsInterface
facility
- one of CB_FACILTY_*lockEnabled
- true means lock, false means unlockpin
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*result
- is callback messagepublic void setFacilityLockForApp(String facility, boolean lockEnabled, String pin, int serviceClass, String appId, Message result)
CommandsInterface
setFacilityLockForApp
in interface CommandsInterface
facility
- one of CB_FACILTY_*lockEnabled
- true means lock, false means unlockpin
- password or "" if not requiredserviceClass
- is a sum of SERVICE_CLASS_*appId
- is application Id or null if noneresult
- is callback messagepublic void supplyNetworkDepersonalization(String netpin, Message result)
supplyNetworkDepersonalization
in interface CommandsInterface
public void getCurrentCalls(Message result)
getCurrentCalls
in interface CommandsInterface
@Deprecated public void getPDPContextList(Message result)
CommandsInterface
getPDPContextList
in interface CommandsInterface
public void getDataCallList(Message result)
getDataCallList
in interface CommandsInterface
public void dial(String address, int clirMode, Message result)
dial
in interface CommandsInterface
public void dial(String address, int clirMode, UUSInfo uusInfo, Message result)
dial
in interface CommandsInterface
public void getIMSI(Message result)
CommandsInterface
getIMSI
in interface CommandsInterface
public void getIMSIForApp(String aid, Message result)
getIMSIForApp
in interface CommandsInterface
public void setIMEI(String imei)
public void getIMEI(Message result)
getIMEI
in interface CommandsInterface
public void setIMEISV(String imeisv)
public void getIMEISV(Message result)
getIMEISV
in interface CommandsInterface
public void hangupConnection(int gsmIndex, Message result)
hangupConnection
in interface CommandsInterface
public void hangupWaitingOrBackground(Message result)
hangupWaitingOrBackground
in interface CommandsInterface
public void hangupForegroundResumeBackground(Message result)
hangupForegroundResumeBackground
in interface CommandsInterface
public void switchWaitingOrHoldingAndActive(Message result)
switchWaitingOrHoldingAndActive
in interface CommandsInterface
public void conference(Message result)
conference
in interface CommandsInterface
public void explicitCallTransfer(Message result)
explicitCallTransfer
in interface CommandsInterface
public void separateConnection(int gsmIndex, Message result)
separateConnection
in interface CommandsInterface
public void acceptCall(Message result)
acceptCall
in interface CommandsInterface
public void rejectCall(Message result)
rejectCall
in interface CommandsInterface
public void getLastCallFailCause(Message result)
getLastCallFailCause
in interface CommandsInterface
@Deprecated 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 result)
setMute
in interface CommandsInterface
public void getMute(Message result)
getMute
in interface CommandsInterface
public void setSignalStrength(SignalStrength signalStrength)
public void getSignalStrength(Message result)
CommandsInterface
getSignalStrength
in interface CommandsInterface
public void setBandMode(int bandMode, Message result)
setBandMode
in interface CommandsInterface
bandMode
- one of BM_*_BANDresult
- is callback messagepublic void queryAvailableBandMode(Message result)
queryAvailableBandMode
in interface CommandsInterface
result
- 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 sendTerminalResponse(String contents, Message response)
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)
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.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)
handleCallSetupRequestFromSim
in interface CommandsInterface
accept
- true if the call is to be accepted, false otherwise.response
- Callback messagepublic void setVoiceRadioTech(int voiceRadioTech)
public void setVoiceRegState(int voiceRegState)
public void getVoiceRegistrationState(Message result)
getVoiceRegistrationState
in interface CommandsInterface
public int getGetVoiceRegistrationStateCallCount()
public void setDataRadioTech(int radioTech)
public void setDataRegState(int dataRegState)
public void getDataRegistrationState(Message result)
CommandsInterface
getDataRegistrationState
in interface CommandsInterface
public int getGetDataRegistrationStateCallCount()
public void getOperator(Message result)
getOperator
in interface CommandsInterface
public int getGetOperatorCallCount()
public void sendDtmf(char c, Message result)
sendDtmf
in interface CommandsInterface
public void startDtmf(char c, Message result)
startDtmf
in interface CommandsInterface
public void stopDtmf(Message result)
stopDtmf
in interface CommandsInterface
public void sendBurstDtmf(String dtmfString, int on, int off, Message result)
sendBurstDtmf
in interface CommandsInterface
public void sendSMS(String smscPDU, String pdu, Message result)
sendSMS
in interface CommandsInterface
public void sendSMSExpectMore(String smscPDU, String pdu, Message result)
sendSMSExpectMore
in interface CommandsInterface
public 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 setDataCallResponse(boolean success, DataCallResponse dcResponse)
public void triggerNITZupdate(String NITZStr)
public 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 setPreferredNetworkType(int networkType, Message result)
CommandsInterface
setPreferredNetworkType
in interface CommandsInterface
networkType
- one of NT_*_TYPEresult
- is callback messagepublic void getPreferredNetworkType(Message result)
CommandsInterface
getPreferredNetworkType
in interface CommandsInterface
result
- is callback message to report one of NT_*_TYPEpublic void getNeighboringCids(Message result)
CommandsInterface
getNeighboringCids
in interface CommandsInterface
result
- 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 getCdmaSubscriptionSource(Message result)
CommandsInterface
getCdmaSubscriptionSource
in interface CommandsInterface
result
- is callback messagepublic void setRadioPower(boolean on, Message result)
setRadioPower
in interface CommandsInterface
public void acknowledgeLastIncomingGsmSms(boolean success, int cause, Message result)
acknowledgeLastIncomingGsmSms
in interface CommandsInterface
public void acknowledgeLastIncomingCdmaSms(boolean success, int cause, Message result)
acknowledgeLastIncomingCdmaSms
in interface CommandsInterface
public void acknowledgeIncomingGsmSmsWithPdu(boolean success, String ackPdu, Message result)
CommandsInterface
acknowledgeIncomingGsmSmsWithPdu
in interface CommandsInterface
success
- true to send RP-ACK, false to send RP-ERRORackPdu
- the acknowledgement TPDU in hexadecimal formatresult
- 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 result)
iccIOForApp
in interface CommandsInterface
public void queryCLIP(Message response)
queryCLIP
in interface CommandsInterface
response
- is callback messagepublic void getCLIR(Message result)
getCLIR
in interface CommandsInterface
public void setCLIR(int clirMode, Message result)
setCLIR
in interface CommandsInterface
public void queryCallWaiting(int serviceClass, Message response)
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 result)
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 result)
queryCallForwardStatus
in interface CommandsInterface
public void setNetworkSelectionModeAutomatic(Message result)
setNetworkSelectionModeAutomatic
in interface CommandsInterface
public void exitEmergencyCallbackMode(Message result)
CommandsInterface
exitEmergencyCallbackMode
in interface CommandsInterface
result
- callback messagepublic void setNetworkSelectionModeManual(String operatorNumeric, Message result)
setNetworkSelectionModeManual
in interface CommandsInterface
public void getNetworkSelectionMode(Message result)
getNetworkSelectionMode
in interface CommandsInterface
public int getGetNetworkSelectionModeCallCount()
public void getAvailableNetworks(Message result)
getAvailableNetworks
in interface CommandsInterface
public void getBasebandVersion(Message result)
getBasebandVersion
in interface CommandsInterface
public void triggerIncomingStkCcAlpha(String alphaString)
alphaString
- Alpha string to send.public void sendStkCcAplha(String alphaString)
public void triggerIncomingUssd(String statusCode, String message)
triggerIncomingUssd
in interface SimulatedRadioControl
statusCode
- Status code string. See setOnUSSD
in CommandsInterface.javamessage
- Message text to send or null if nonepublic void sendUSSD(String ussdString, Message result)
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 invokeOemRilRequestRaw(byte[] data, Message response)
invokeOemRilRequestRaw
in interface CommandsInterface
public void invokeOemRilRequestStrings(String[] strings, Message response)
invokeOemRilRequestStrings
in interface CommandsInterface
public void triggerRing(String number)
triggerRing
in interface SimulatedRadioControl
public void progressConnectingCallState()
progressConnectingCallState
in interface SimulatedRadioControl
public void progressConnectingToActive()
progressConnectingToActive
in interface SimulatedRadioControl
public void setAutoProgressConnectingCall(boolean b)
setAutoProgressConnectingCall
in interface SimulatedRadioControl
public void setNextDialFailImmediately(boolean b)
setNextDialFailImmediately
in interface SimulatedRadioControl
public void setNextCallFailCause(int gsmCause)
setNextCallFailCause
in interface SimulatedRadioControl
public void triggerHangupForeground()
triggerHangupForeground
in interface SimulatedRadioControl
public void triggerHangupBackground()
triggerHangupBackground
in interface SimulatedRadioControl
public void triggerSsn(int type, int code)
triggerSsn
in interface SimulatedRadioControl
public void shutdown()
shutdown
in interface SimulatedRadioControl
public void triggerHangupAll()
triggerHangupAll
in interface SimulatedRadioControl
public void triggerIncomingSMS(String message)
triggerIncomingSMS
in interface SimulatedRadioControl
public void pauseResponses()
SimulatedRadioControl
pauseResponses
in interface SimulatedRadioControl
public void resumeResponses()
SimulatedRadioControl
resumeResponses
in interface SimulatedRadioControl
public void getDeviceIdentity(Message response)
CommandsInterface
getDeviceIdentity
in interface CommandsInterface
public void getCDMASubscription(Message result)
CommandsInterface
getCDMASubscription
in interface CommandsInterface
public void setCdmaSubscriptionSource(int cdmaSubscriptionType, Message response)
CommandsInterface
setCdmaSubscriptionSource
in interface CommandsInterface
cdmaSubscriptionType
- one of CDMA_SUBSCRIPTION_*response
- is callback messagepublic 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 setPhoneType(int phoneType)
CommandsInterface
setPhoneType
in interface CommandsInterface
public void getPreferredVoicePrivacy(Message result)
CommandsInterface
getPreferredVoicePrivacy
in interface CommandsInterface
result
- is a callback messagepublic 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 setTTYMode(int ttyMode, Message response)
setTTYMode
in interface CommandsInterface
ttyMode
- is 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)
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 sendCDMAFeatureCode(String FeatureCode, Message response)
sendCDMAFeatureCode
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 setCdmaBroadcastActivation(boolean activate, Message response)
CommandsInterface
setCdmaBroadcastActivation
in interface CommandsInterface
activate
- true = activate, false = deactivateresponse
- Callback message is empty on completionpublic void getCdmaBroadcastConfig(Message response)
CommandsInterface
getCdmaBroadcastConfig
in interface CommandsInterface
response
- Callback message contains the configuration from the modem on completionpublic void setCdmaBroadcastConfig(CdmaSmsBroadcastConfigInfo[] configs, Message response)
CommandsInterface
setCdmaBroadcastConfig
in interface CommandsInterface
response
- Callback message is empty on completionpublic void forceDataDormancy(Message response)
public void setGsmBroadcastActivation(boolean activate, Message response)
CommandsInterface
setGsmBroadcastActivation
in interface CommandsInterface
activate
- true = activate, false = deactivateresponse
- 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 supplyIccPinForApp(String pin, String aid, Message response)
CommandsInterface
supplyIccPinForApp
in interface CommandsInterface
public void supplyIccPukForApp(String puk, String newPin, String aid, Message response)
CommandsInterface
supplyIccPukForApp
in interface CommandsInterface
public void supplyIccPin2ForApp(String pin2, String aid, Message response)
CommandsInterface
supplyIccPin2ForApp
in interface CommandsInterface
public void supplyIccPuk2ForApp(String puk2, String newPin2, String aid, Message response)
CommandsInterface
supplyIccPuk2ForApp
in interface CommandsInterface
public void changeIccPinForApp(String oldPin, String newPin, String aidPtr, Message response)
changeIccPinForApp
in interface CommandsInterface
public void changeIccPin2ForApp(String oldPin2, String newPin2, String aidPtr, Message response)
changeIccPin2ForApp
in interface CommandsInterface
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 response)
CommandsInterface
getVoiceRadioTechnology
in interface CommandsInterface
response
- is sent back to handler and result.obj is a AsyncResultpublic void getCellInfoList(Message response)
CommandsInterface
getCellInfoList
in interface CommandsInterface
response
- is sent back to handler and result.obj is a AsyncResultpublic int getRilVersion()
getRilVersion
in interface CommandsInterface
getRilVersion
in class BaseCommands
public void setCellInfoListRate(int rateInMillis, Message response)
CommandsInterface
setCellInfoListRate
in interface CommandsInterface
rateInMillis
- is sent back to handler and result.obj is a AsyncResultpublic 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 setImsRegistrationState(int[] regState)
public void getImsRegistrationState(Message response)
CommandsInterface
getImsRegistrationState
in interface CommandsInterface
public 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 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 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 void requestShutdown(Message result)
CommandsInterface
requestShutdown
in interface CommandsInterface
requestShutdown
in class BaseCommands
result
- Callback message contains the information of SUCCESS/FAILUREpublic void startLceService(int report_interval_ms, boolean pullMode, Message result)
CommandsInterface
startLceService
in interface CommandsInterface
startLceService
in class BaseCommands
report_interval_ms
- 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
stopLceService
in class BaseCommands
result
- Callback message contains the current LCE status:
{byte status, int actualIntervalMs}public void pullLceData(Message result)
CommandsInterface
pullLceData
in interface CommandsInterface
pullLceData
in class BaseCommands
result
- Callback message contains the capacity info:
{int capacityKbps, byte confidenceLevel, byte lceSuspendedTemporarily}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 getRadioCapability(Message result)
CommandsInterface
getRadioCapability
in interface CommandsInterface
getRadioCapability
in class BaseCommands
result
- Callback message.public void notifySmsStatus(Object result)
public void notifyGsmBroadcastSms(Object result)
public void notifyIccSmsFull()
public void notifyEmergencyCallbackMode()
public void setEmergencyCallbackMode(Handler h, int what, Object obj)
CommandsInterface
setEmergencyCallbackMode
in interface CommandsInterface
setEmergencyCallbackMode
in class BaseCommands
public void notifyExitEmergencyCallbackMode()
public void notifyImsNetworkStateChanged()
public void registerForExitEmergencyCallbackMode(Handler h, int what, Object obj)
CommandsInterface
registerForExitEmergencyCallbackMode
in interface CommandsInterface
registerForExitEmergencyCallbackMode
in class BaseCommands
h
- Handler for notification message.what
- User-defined message code.obj
- User object.public void notifyRadioOn()
public void notifyVoiceNetworkStateChanged()
public void notifyOtaProvisionStatusChanged()
public void notifySignalStrength()
public void setIccCardStatus(IccCardStatus iccCardStatus)
public void setIccIoResultForApduLogicalChannel(IccIoResult iccIoResult)
public void setOpenChannelId(int channelId)
public void setPin1RemainingAttempt(int pin1attemptsRemaining)
public void setDataAllowed(boolean allowed, Message result)
CommandsInterface
setDataAllowed
in interface CommandsInterface
setDataAllowed
in class BaseCommands
allowed
- true = allowed, false = not alowedresult
- Callback message contains the information of SUCCESS/FAILURE.public boolean isDataAllowed()
public void registerForPcoData(Handler h, int what, Object obj)
CommandsInterface
registerForPcoData
in interface CommandsInterface
registerForPcoData
in class BaseCommands
h
- Handler for notificaiton message.what
- User-defined message code.obj
- User object.public void unregisterForPcoData(Handler h)
CommandsInterface
unregisterForPcoData
in interface CommandsInterface
unregisterForPcoData
in class BaseCommands
h
- handler to be removed