public final class RIL extends BaseCommands implements CommandsInterface
CommandsInterface.RadioState
Modifier and Type | Field and Description |
---|---|
static int |
FOR_ACK_WAKELOCK |
static int |
FOR_WAKELOCK |
static int |
INVALID_WAKELOCK |
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 |
---|
RIL(Context context,
int preferredNetworkType,
int cdmaSubscription) |
RIL(Context context,
int preferredNetworkType,
int cdmaSubscription,
Integer instanceId) |
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 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 aid,
Message result) |
void |
changeIccPinForApp(String oldPin,
String newPin,
String aid,
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 |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
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 response)
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 response)
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 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 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 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.
|
void |
getGsmBroadcastConfig(Message response)
Query the current configuration of cell broadcast SMS of GSM.
|
void |
getHardwareConfig(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result contains a List of HardwareConfig
|
void |
getIccCardStatus(Message result)
Request the status of the ICC and UICC cards.
|
void |
getIMEI(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is String containing IMEI on success
|
void |
getIMEISV(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is String containing IMEISV on success
|
void |
getIMSI(Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is String containing IMSI on success
|
void |
getIMSIForApp(String aid,
Message result)
returned message
retMsg.obj = AsyncResult ar
ar.exception carries exception on failure
ar.userObject contains the orignal value of result.obj
ar.result is String containing IMSI on success
|
void |
getImsRegistrationState(Message result)
response.obj.result is an int[2]
response.obj.result[0] is IMS registration state
0 - Not registered
1 - Registered
response.obj.result[1] is of type RILConstants.GSM_PHONE or
RILConstants.CDMA_PHONE
|
void |
getLastCallFailCause(Message result)
cause code returned as int[0] in Message.obj.response
Returns integer cause code defined in TS 24.008
Annex H or closest approximation.
|
void |
getLastDataCallFailCause(Message result)
The preferred new alternative to getLastPdpFailCause
|
void |
getLastPdpFailCause(Message result)
Deprecated.
|
void |
getModemActivityInfo(Message response)
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 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 response)
Query the preferred network type setting
|
void |
getPreferredVoicePrivacy(Message result)
Get currently set preferred Voice Privacy (VP) mode.
|
void |
getRadioCapability(Message response)
Get phone radio capability
|
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.
|
static List<TelephonyHistogram> |
getTelephonyRILTimingHistograms() |
void |
getVoiceRadioTechnology(Message result)
Get the current Voice Radio Technology.
|
void |
getVoiceRegistrationState(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 |
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 result)
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 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 . |
protected void |
onRadioAvailable() |
void |
pullLceData(Message response)
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 |
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 result) |
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 result)
send SMS over IMS with 3GPP2/CDMA SMS format
|
void |
sendImsGsmSms(String smscPDU,
String pdu,
int retry,
int messageRef,
Message result)
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 |
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 response)
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 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 cdmaSubscription,
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 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 |
setDataProfile(DataProfile[] dps,
Message result)
Set data profiles in modem
|
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 response)
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 |
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 |
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 response)
Set phone radio type and access technology.
|
void |
setRadioPower(boolean on,
Message result) |
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 response)
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 response)
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 pin,
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 pin,
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 puk,
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 |
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, getRilVersion, registerForAvailable, registerForCallStateChanged, registerForCallWaitingInfo, registerForCdmaOtaProvision, registerForCdmaPrlChanged, registerForCdmaSubscriptionChanged, registerForCellInfoList, registerForDataNetworkStateChanged, registerForDisplayInfo, registerForExitEmergencyCallbackMode, registerForHardwareConfigChanged, registerForIccRefresh, registerForIccStatusChanged, registerForImsNetworkStateChanged, registerForInCallVoicePrivacyOff, registerForInCallVoicePrivacyOn, registerForLceInfo, registerForLineControlInfo, registerForNotAvailable, registerForNumberInfo, registerForOffOrNotAvailable, registerForOn, registerForPcoData, registerForRadioCapabilityChanged, registerForRadioStateChanged, registerForRedirectedNumberInfo, registerForResendIncallMute, registerForRilConnected, registerForRingbackTone, registerForSignalInfo, registerForSrvccStateChanged, registerForSubscriptionStatusChanged, registerForT53AudioControlInfo, registerForVoiceNetworkStateChanged, registerForVoiceRadioTechChanged, registerFoT53ClirlInfo, setEmergencyCallbackMode, setOnCallRing, setOnCatCallSetUp, setOnCatCcAlphaNotify, setOnCatEvent, setOnCatProactiveCmd, setOnCatSessionEnd, setOnIccRefresh, setOnIccSmsFull, setOnNewCdmaSms, setOnNewGsmBroadcastSms, setOnNewGsmSms, setOnRestrictedStateChanged, setOnSignalStrengthUpdate, setOnSmsOnSim, setOnSmsStatus, setOnSs, setOnSuppServiceNotification, setOnUnsolOemHookRaw, setOnUSSD, setRadioState, unregisterForAvailable, unregisterForCallStateChanged, unregisterForCallWaitingInfo, unregisterForCdmaOtaProvision, unregisterForCdmaPrlChanged, unregisterForCdmaSubscriptionChanged, unregisterForCellInfoList, unregisterForDataNetworkStateChanged, unregisterForDisplayInfo, unregisterForExitEmergencyCallbackMode, unregisterForHardwareConfigChanged, unregisterForIccRefresh, unregisterForIccStatusChanged, unregisterForImsNetworkStateChanged, unregisterForInCallVoicePrivacyOff, unregisterForInCallVoicePrivacyOn, unregisterForLceInfo, unregisterForLineControlInfo, unregisterForNotAvailable, unregisterForNumberInfo, unregisterForOffOrNotAvailable, unregisterForOn, unregisterForPcoData, 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, getRilVersion, registerForAvailable, registerForCallStateChanged, registerForCallWaitingInfo, registerForCdmaOtaProvision, registerForCdmaPrlChanged, registerForCdmaSubscriptionChanged, registerForCellInfoList, registerForDataNetworkStateChanged, registerForDisplayInfo, registerForExitEmergencyCallbackMode, registerForHardwareConfigChanged, registerForIccRefresh, registerForIccStatusChanged, registerForImsNetworkStateChanged, registerForInCallVoicePrivacyOff, registerForInCallVoicePrivacyOn, registerForLceInfo, registerForLineControlInfo, registerForNotAvailable, registerForNumberInfo, registerForOffOrNotAvailable, registerForOn, registerForPcoData, registerForRadioCapabilityChanged, registerForRadioStateChanged, registerForRedirectedNumberInfo, registerForResendIncallMute, registerForRilConnected, registerForRingbackTone, registerForSignalInfo, registerForSrvccStateChanged, registerForSubscriptionStatusChanged, registerForT53AudioControlInfo, registerForVoiceNetworkStateChanged, registerForVoiceRadioTechChanged, registerFoT53ClirlInfo, setEmergencyCallbackMode, setOnCallRing, setOnCatCallSetUp, setOnCatCcAlphaNotify, setOnCatEvent, setOnCatProactiveCmd, setOnCatSessionEnd, setOnIccRefresh, setOnIccSmsFull, setOnNewCdmaSms, setOnNewGsmBroadcastSms, setOnNewGsmSms, setOnRestrictedStateChanged, setOnSignalStrengthUpdate, setOnSmsOnSim, setOnSmsStatus, setOnSs, setOnSuppServiceNotification, setOnUnsolOemHookRaw, setOnUSSD, unregisterForAvailable, unregisterForCallStateChanged, unregisterForCallWaitingInfo, unregisterForCdmaOtaProvision, unregisterForCdmaPrlChanged, unregisterForCdmaSubscriptionChanged, unregisterForCellInfoList, unregisterForDataNetworkStateChanged, unregisterForDisplayInfo, unregisterForExitEmergencyCallbackMode, unregisterForHardwareConfigChanged, unregisterForIccRefresh, unregisterForIccStatusChanged, unregisterForImsNetworkStateChanged, unregisterForInCallVoicePrivacyOff, unregisterForInCallVoicePrivacyOn, unregisterForLceInfo, unregisterForLineControlInfo, unregisterForNotAvailable, unregisterForNumberInfo, unregisterForOffOrNotAvailable, unregisterForOn, unregisterForPcoData, 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 int INVALID_WAKELOCK
public static final int FOR_WAKELOCK
public static final int FOR_ACK_WAKELOCK
public RIL(Context context, int preferredNetworkType, int cdmaSubscription)
public static List<TelephonyHistogram> getTelephonyRILTimingHistograms()
public void getVoiceRadioTechnology(Message result)
CommandsInterface
getVoiceRadioTechnology
in interface CommandsInterface
result
- is sent back to handler and result.obj is a AsyncResultpublic void getImsRegistrationState(Message result)
CommandsInterface
getImsRegistrationState
in interface CommandsInterface
public void setOnNITZTime(Handler h, int what, Object obj)
CommandsInterface
setOnNITZTime
in interface CommandsInterface
setOnNITZTime
in class BaseCommands
public void getIccCardStatus(Message result)
CommandsInterface
getIccCardStatus
in interface CommandsInterface
result
- Callback message containing IccCardStatus
structure for the card.public void setUiccSubscription(int slotId, int appIndex, int subId, int subStatus, Message result)
CommandsInterface
setUiccSubscription
in interface CommandsInterface
setUiccSubscription
in class BaseCommands
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
setDataAllowed
in class BaseCommands
allowed
- true = allowed, false = not alowedresult
- Callback message contains the information of SUCCESS/FAILURE.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 pin, Message result)
CommandsInterface
supplyIccPin2
in interface CommandsInterface
public void supplyIccPin2ForApp(String pin, 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 puk, 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 aid, 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 aid, 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
@Deprecated 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
@Deprecated public void getLastPdpFailCause(Message result)
CommandsInterface
getLastPdpFailCause
in interface CommandsInterface
public void getLastDataCallFailCause(Message result)
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 result)
CommandsInterface
getSignalStrength
in interface CommandsInterface
public void getVoiceRegistrationState(Message result)
CommandsInterface
getVoiceRegistrationState
in interface CommandsInterface
public void getDataRegistrationState(Message result)
CommandsInterface
getDataRegistrationState
in interface CommandsInterface
public void getOperator(Message result)
CommandsInterface
getOperator
in interface CommandsInterface
public void getHardwareConfig(Message result)
CommandsInterface
getHardwareConfig
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 result)
CommandsInterface
sendSMS
in interface CommandsInterface
public void sendSMSExpectMore(String smscPDU, String pdu, Message result)
CommandsInterface
sendSMSExpectMore
in interface CommandsInterface
public void sendCdmaSms(byte[] pdu, Message result)
sendCdmaSms
in interface CommandsInterface
pdu
- is CDMA-SMS in internal pseudo-PDU formatresult
- sent when operation completespublic void sendImsGsmSms(String smscPDU, String pdu, int retry, int messageRef, Message result)
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 SMSresult
- sent when operation completespublic void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, Message result)
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 SMSresult
- 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 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 setRadioPower(boolean on, Message result)
setRadioPower
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 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 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 result)
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)
CommandsInterface
iccIOForApp
in interface CommandsInterface
public void getCLIR(Message result)
CommandsInterface
getCLIR
in interface CommandsInterface
public void setCLIR(int clirMode, Message result)
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 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 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 queryCLIP(Message response)
CommandsInterface
queryCLIP
in interface CommandsInterface
response
- is callback messagepublic 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 invokeOemRilRequestRaw(byte[] data, Message response)
invokeOemRilRequestRaw
in interface CommandsInterface
public void invokeOemRilRequestStrings(String[] strings, Message response)
invokeOemRilRequestStrings
in interface CommandsInterface
public void setBandMode(int bandMode, Message response)
setBandMode
in interface CommandsInterface
bandMode
- one of BM_*_BANDresponse
- is callback messagepublic void queryAvailableBandMode(Message response)
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 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 setPreferredNetworkType(int networkType, Message response)
setPreferredNetworkType
in interface CommandsInterface
networkType
- one of NT_*_TYPEresponse
- is callback messagepublic void getPreferredNetworkType(Message response)
getPreferredNetworkType
in interface CommandsInterface
response
- is callback message to report one of NT_*_TYPEpublic void getNeighboringCids(Message response)
getNeighboringCids
in interface CommandsInterface
response
- s callback message to cell idspublic void setLocationUpdates(boolean enable, Message response)
setLocationUpdates
in interface CommandsInterface
enable
- true to enable, false to disableresponse
- callback messagepublic void getSmscAddress(Message result)
getSmscAddress
in interface CommandsInterface
result
- Callback message contains the SMSC address.public void setSmscAddress(String address, Message result)
setSmscAddress
in interface CommandsInterface
address
- new SMSC addressresult
- Callback message is empty on completionpublic void reportSmsMemoryStatus(boolean available, Message result)
reportSmsMemoryStatus
in interface CommandsInterface
available
- true if storage is availableresult
- callback messagepublic void reportStkServiceIsRunning(Message result)
reportStkServiceIsRunning
in interface CommandsInterface
result
- callback messagepublic void getGsmBroadcastConfig(Message response)
getGsmBroadcastConfig
in interface CommandsInterface
response
- Callback message contains the configuration from the modem
on completionpublic void setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, Message response)
setGsmBroadcastConfig
in interface CommandsInterface
response
- Callback message is empty on completionpublic void setGsmBroadcastActivation(boolean activate, Message response)
setGsmBroadcastActivation
in interface CommandsInterface
activate
- true = activate, false = deactivateresponse
- Callback message is empty on completionprotected void onRadioAvailable()
onRadioAvailable
in class BaseCommands
public void getDeviceIdentity(Message response)
CommandsInterface
getDeviceIdentity
in interface CommandsInterface
public void getCDMASubscription(Message response)
CommandsInterface
getCDMASubscription
in interface CommandsInterface
public void setPhoneType(int phoneType)
CommandsInterface
setPhoneType
in interface CommandsInterface
public void queryCdmaRoamingPreference(Message response)
queryCdmaRoamingPreference
in interface CommandsInterface
response
- is callback message to report one of CDMA_RM_*public void setCdmaRoamingPreference(int cdmaRoamingType, Message response)
setCdmaRoamingPreference
in interface CommandsInterface
cdmaRoamingType
- one of CDMA_RM_*response
- is callback messagepublic void setCdmaSubscriptionSource(int cdmaSubscription, Message response)
setCdmaSubscriptionSource
in interface CommandsInterface
cdmaSubscription
- one of CDMA_SUBSCRIPTION_*response
- is callback messagepublic void getCdmaSubscriptionSource(Message response)
getCdmaSubscriptionSource
in interface CommandsInterface
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 setTTYMode(int ttyMode, Message response)
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 sendCDMAFeatureCode(String FeatureCode, Message response)
sendCDMAFeatureCode
in interface CommandsInterface
public 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 setCdmaBroadcastActivation(boolean activate, Message response)
CommandsInterface
setCdmaBroadcastActivation
in interface CommandsInterface
activate
- true = activate, false = deactivateresponse
- Callback message is empty on completionpublic void exitEmergencyCallbackMode(Message response)
exitEmergencyCallbackMode
in interface CommandsInterface
response
- callback messagepublic 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 getCellInfoList(Message result)
getCellInfoList
in interface CommandsInterface
result
- is sent back to handler and result.obj is a AsyncResultpublic void setCellInfoListRate(int rateInMillis, Message response)
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 testingEmergencyCall()
CommandsInterface
testingEmergencyCall
in interface CommandsInterface
testingEmergencyCall
in class BaseCommands
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
public void iccOpenLogicalChannel(String AID, Message response)
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)
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)
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)
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 setRadioCapability(RadioCapability rc, Message response)
CommandsInterface
setRadioCapability
in interface CommandsInterface
setRadioCapability
in class BaseCommands
rc
- the phone radio capability defined in
RadioCapability. It's a input object used to transfer parameter to logic modemresponse
- Callback message.public void getRadioCapability(Message response)
CommandsInterface
getRadioCapability
in interface CommandsInterface
getRadioCapability
in class BaseCommands
response
- Callback message.public void startLceService(int reportIntervalMs, boolean pullMode, Message response)
CommandsInterface
startLceService
in interface CommandsInterface
startLceService
in class BaseCommands
reportIntervalMs
- LCE info reporting interval (ms).response
- Callback message contains the current LCE status.
{byte status, int actualIntervalMs}public void stopLceService(Message response)
CommandsInterface
stopLceService
in interface CommandsInterface
stopLceService
in class BaseCommands
response
- Callback message contains the current LCE status:
{byte status, int actualIntervalMs}public void pullLceData(Message response)
CommandsInterface
pullLceData
in interface CommandsInterface
pullLceData
in class BaseCommands
response
- Callback message contains the capacity info:
{int capacityKbps, byte confidenceLevel, byte lceSuspendedTemporarily}public void getModemActivityInfo(Message response)
CommandsInterface
getModemActivityInfo
in interface CommandsInterface
response
- Callback message contains the modem activity informationpublic void setAllowedCarriers(List<CarrierIdentifier> carriers, Message response)
CommandsInterface
setAllowedCarriers
in interface CommandsInterface
carriers
- Allowed carriersresponse
- Callback message contains the number of carriers set successfullypublic void getAllowedCarriers(Message response)
CommandsInterface
getAllowedCarriers
in interface CommandsInterface
response
- Callback message contains the allowed carriers