Methods Summary |
---|
public void | acceptCall(android.os.Message result)
|
public synchronized void | acknowledgeIncomingGsmSmsWithPdu(boolean success, java.lang.String ackPdu, android.os.Message response)
Rlog.d(TAG, "acknowledgeLastIncomingGsmSmsWithPdu: success=" + success
+ ", ackPDU= " + ackPdu);
Assert.assertTrue("unexpected call to acknowledge SMS", mExpectingAcknowledgeGsmSms);
Assert.assertEquals(mExpectingAcknowledgeGsmSmsSuccess, success);
Assert.assertEquals(mExpectingAcknowledgeGsmSmsPdu, ackPdu);
mExpectingAcknowledgeGsmSms = false;
if (response != null) {
AsyncResult.forMessage(response);
response.sendToTarget();
}
notifyAll(); // wake up assertExpectedMethodsCalled()
|
public void | acknowledgeLastIncomingCdmaSms(boolean success, int cause, android.os.Message response)
|
public synchronized void | acknowledgeLastIncomingGsmSms(boolean success, int cause, android.os.Message response)
Rlog.d(TAG, "acknowledgeLastIncomingGsmSms: success=" + success + ", cause=" + cause);
Assert.assertTrue("unexpected call to acknowledge SMS", mExpectingAcknowledgeGsmSms);
Assert.assertEquals(mExpectingAcknowledgeGsmSmsSuccess, success);
Assert.assertEquals(mExpectingAcknowledgeGsmSmsFailureCause, cause);
mExpectingAcknowledgeGsmSms = false;
if (response != null) {
AsyncResult.forMessage(response);
response.sendToTarget();
}
notifyAll(); // wake up assertExpectedMethodsCalled()
|
synchronized void | assertExpectedMethodsCalled()
long stopTime = SystemClock.elapsedRealtime() + 5000;
while ((mExpectingAcknowledgeGsmSms || mExpectingSendEnvelope)
&& SystemClock.elapsedRealtime() < stopTime) {
try {
wait();
} catch (InterruptedException ignored) {}
}
Assert.assertFalse("expecting SMS acknowledge call", mExpectingAcknowledgeGsmSms);
Assert.assertFalse("expecting send envelope call", mExpectingSendEnvelope);
|
public void | cancelPendingUssd(android.os.Message response)
|
public void | changeBarringPassword(java.lang.String facility, java.lang.String oldPwd, java.lang.String newPwd, android.os.Message result)
|
public void | changeIccPin(java.lang.String oldPin, java.lang.String newPin, android.os.Message result)
|
public void | changeIccPin2(java.lang.String oldPin2, java.lang.String newPin2, android.os.Message result)
|
public void | changeIccPin2ForApp(java.lang.String oldPin2, java.lang.String newPin2, java.lang.String aidPtr, android.os.Message result)
|
public void | changeIccPinForApp(java.lang.String oldPin, java.lang.String newPin, java.lang.String aidPtr, android.os.Message result)
|
public void | conference(android.os.Message result)
|
public void | deactivateDataCall(int cid, int reason, android.os.Message result)
|
public void | deleteSmsOnRuim(int index, android.os.Message response)
|
public void | deleteSmsOnSim(int index, android.os.Message response)
|
public void | dial(java.lang.String address, int clirMode, android.os.Message result)
|
public void | dial(java.lang.String address, int clirMode, com.android.internal.telephony.UUSInfo uusInfo, android.os.Message result)
|
public void | exitEmergencyCallbackMode(android.os.Message response)
|
synchronized void | expectAcknowledgeGsmSms(boolean success, int cause)Expect a call to acknowledgeLastIncomingGsmSms with success flag and failure cause.
Assert.assertFalse("expectAcknowledgeGsmSms called twice", mExpectingAcknowledgeGsmSms);
mExpectingAcknowledgeGsmSms = true;
mExpectingAcknowledgeGsmSmsSuccess = success;
mExpectingAcknowledgeGsmSmsFailureCause = cause;
|
synchronized void | expectAcknowledgeGsmSmsWithPdu(boolean success, java.lang.String ackPdu)Expect a call to acknowledgeLastIncomingGsmSmsWithPdu with success flag and PDU.
Assert.assertFalse("expectAcknowledgeGsmSms called twice", mExpectingAcknowledgeGsmSms);
mExpectingAcknowledgeGsmSms = true;
mExpectingAcknowledgeGsmSmsSuccess = success;
mExpectingAcknowledgeGsmSmsPdu = ackPdu;
|
synchronized void | expectSendEnvelope(java.lang.String contents, int sw1, int sw2, java.lang.String response)Expect a call to sendEnvelopeWithStatus().
Assert.assertFalse("expectSendEnvelope called twice", mExpectingSendEnvelope);
mExpectingSendEnvelope = true;
mExpectingSendEnvelopeContents = contents;
mExpectingSendEnvelopeResponseSw1 = sw1;
mExpectingSendEnvelopeResponseSw2 = sw2;
mExpectingSendEnvelopeResponse = response;
|
public void | explicitCallTransfer(android.os.Message result)
|
public void | getAvailableNetworks(android.os.Message response)
|
public void | getBasebandVersion(android.os.Message response)
|
public void | getCDMASubscription(android.os.Message response)
|
public void | getCLIR(android.os.Message response)
|
public void | getCdmaBroadcastConfig(android.os.Message result)
|
public void | getCdmaSubscriptionSource(android.os.Message response)
|
public void | getCellInfoList(android.os.Message result)
|
public void | getCurrentCalls(android.os.Message result)
|
public void | getDataCallList(android.os.Message result)
|
public void | getDataRegistrationState(android.os.Message response)
|
public void | getDeviceIdentity(android.os.Message response)
|
public void | getGsmBroadcastConfig(android.os.Message response)
|
public void | getIMEI(android.os.Message result)
|
public void | getIMEISV(android.os.Message result)
|
public void | getIMSI(android.os.Message result)
|
public void | getIMSIForApp(java.lang.String aid, android.os.Message result)
|
public void | getIccCardStatus(android.os.Message result)
|
public void | getImsRegistrationState(android.os.Message result)
|
public void | getLastCallFailCause(android.os.Message result)
|
public void | getLastDataCallFailCause(android.os.Message result)
|
public void | getLastPdpFailCause(android.os.Message result)
|
public void | getMute(android.os.Message response)
|
public void | getNeighboringCids(android.os.Message response)
|
public void | getNetworkSelectionMode(android.os.Message response)
|
public void | getOperator(android.os.Message response)
|
public void | getPDPContextList(android.os.Message result)
|
public void | getPreferredNetworkType(android.os.Message response)
|
public void | getPreferredVoicePrivacy(android.os.Message result)
|
public void | getSignalStrength(android.os.Message response)
|
public void | getSmscAddress(android.os.Message result)
|
public void | getVoiceRadioTechnology(android.os.Message response)
|
public void | getVoiceRegistrationState(android.os.Message response)
|
public void | handleCallSetupRequestFromSim(boolean accept, android.os.Message response)
|
public void | hangupConnection(int gsmIndex, android.os.Message result)
|
public void | hangupForegroundResumeBackground(android.os.Message result)
|
public void | hangupWaitingOrBackground(android.os.Message result)
|
public void | iccCloseLogicalChannel(int channel, android.os.Message response)
|
public void | iccIO(int command, int fileid, java.lang.String path, int p1, int p2, int p3, java.lang.String data, java.lang.String pin2, android.os.Message response)
|
public void | iccIOForApp(int command, int fileid, java.lang.String path, int p1, int p2, int p3, java.lang.String data, java.lang.String pin2, java.lang.String aid, android.os.Message response)
|
public void | iccOpenLogicalChannel(java.lang.String AID, android.os.Message response)
|
public void | iccTransmitApduBasicChannel(int cla, int instruction, int p1, int p2, int p3, java.lang.String data, android.os.Message response)
|
public void | iccTransmitApduLogicalChannel(int channel, int cla, int instruction, int p1, int p2, int p3, java.lang.String data, android.os.Message response)
|
public void | invokeOemRilRequestRaw(byte[] data, android.os.Message response)
|
public void | invokeOemRilRequestStrings(java.lang.String[] strings, android.os.Message response)
|
public void | nvReadItem(int itemID, android.os.Message response)
|
public void | nvResetConfig(int resetType, android.os.Message response)
|
public void | nvWriteCdmaPrl(byte[] preferredRoamingList, android.os.Message response)
|
public void | nvWriteItem(int itemID, java.lang.String itemValue, android.os.Message response)
|
public void | queryAvailableBandMode(android.os.Message response)
|
public void | queryCLIP(android.os.Message response)
|
public void | queryCallForwardStatus(int cfReason, int serviceClass, java.lang.String number, android.os.Message response)
|
public void | queryCallWaiting(int serviceClass, android.os.Message response)
|
public void | queryCdmaRoamingPreference(android.os.Message response)
|
public void | queryFacilityLock(java.lang.String facility, java.lang.String password, int serviceClass, android.os.Message response)
|
public void | queryFacilityLockForApp(java.lang.String facility, java.lang.String password, int serviceClass, java.lang.String appId, android.os.Message response)
|
public void | queryTTYMode(android.os.Message response)
|
public void | rejectCall(android.os.Message result)
|
public void | reportSmsMemoryStatus(boolean available, android.os.Message result)
|
public void | reportStkServiceIsRunning(android.os.Message result)
|
public void | requestIccSimAuthentication(java.lang.String data, android.os.Message response)
|
public void | requestIsimAuthentication(java.lang.String nonce, android.os.Message response)
|
public void | resetRadio(android.os.Message result)
|
public void | sendBurstDtmf(java.lang.String dtmfString, int on, int off, android.os.Message result)
|
public void | sendCDMAFeatureCode(java.lang.String FeatureCode, android.os.Message response)
|
public void | sendCdmaSms(byte[] pdu, android.os.Message response)
|
public void | sendDtmf(char c, android.os.Message result)
|
public void | sendEnvelope(java.lang.String contents, android.os.Message response)
|
public synchronized void | sendEnvelopeWithStatus(java.lang.String contents, android.os.Message response)
// Add spaces between hex bytes for readability
StringBuilder builder = new StringBuilder();
for (int i = 0; i < contents.length(); i += 2) {
builder.append(contents.charAt(i)).append(contents.charAt(i+1)).append(' ");
}
Rlog.d(TAG, "sendEnvelopeWithStatus: " + builder.toString());
Assert.assertTrue("unexpected call to send envelope", mExpectingSendEnvelope);
Assert.assertEquals(mExpectingSendEnvelopeContents, contents);
mExpectingSendEnvelope = false;
IccIoResult result = new IccIoResult(mExpectingSendEnvelopeResponseSw1,
mExpectingSendEnvelopeResponseSw2, mExpectingSendEnvelopeResponse);
if (response != null) {
AsyncResult.forMessage(response, result, null);
response.sendToTarget();
}
notifyAll(); // wake up assertExpectedMethodsCalled()
|
public void | sendImsCdmaSms(byte[] pdu, int retry, int messageRef, android.os.Message response)
|
public void | sendImsGsmSms(java.lang.String smscPDU, java.lang.String pdu, int retry, int messageRef, android.os.Message response)
|
public void | sendSMS(java.lang.String smscPDU, java.lang.String pdu, android.os.Message response)
|
public void | sendSMSExpectMore(java.lang.String smscPDU, java.lang.String pdu, android.os.Message response)
|
public void | sendTerminalResponse(java.lang.String contents, android.os.Message response)
|
public void | sendUSSD(java.lang.String ussdString, android.os.Message response)
|
public void | separateConnection(int gsmIndex, android.os.Message result)
|
public void | setBandMode(int bandMode, android.os.Message response)
|
public void | setCLIR(int clirMode, android.os.Message response)
|
public void | setCallForward(int action, int cfReason, int serviceClass, java.lang.String number, int timeSeconds, android.os.Message response)
|
public void | setCallWaiting(boolean enable, int serviceClass, android.os.Message response)
|
public void | setCdmaBroadcastActivation(boolean activate, android.os.Message result)
|
public void | setCdmaBroadcastConfig(com.android.internal.telephony.cdma.CdmaSmsBroadcastConfigInfo[] configs, android.os.Message response)
|
public void | setCdmaRoamingPreference(int cdmaRoamingType, android.os.Message response)
|
public void | setCdmaSubscriptionSource(int cdmaSubscriptionType, android.os.Message response)
|
public void | setCellInfoListRate(int rateInMillis, android.os.Message response)
|
public void | setDataProfile(DataProfile[] dps, android.os.Message result)
|
public void | setFacilityLock(java.lang.String facility, boolean lockState, java.lang.String password, int serviceClass, android.os.Message response)
|
public void | setFacilityLockForApp(java.lang.String facility, boolean lockState, java.lang.String password, int serviceClass, java.lang.String appId, android.os.Message response)
|
public void | setGsmBroadcastActivation(boolean activate, android.os.Message result)
|
public void | setGsmBroadcastConfig(SmsBroadcastConfigInfo[] config, android.os.Message response)
|
public void | setInitialAttachApn(java.lang.String apn, java.lang.String protocol, int authType, java.lang.String username, java.lang.String password, android.os.Message result)
|
public void | setLocationUpdates(boolean enable, android.os.Message response)
|
public void | setMute(boolean enableMute, android.os.Message response)
|
public void | setNetworkSelectionModeAutomatic(android.os.Message response)
|
public void | setNetworkSelectionModeManual(java.lang.String operatorNumeric, android.os.Message response)
|
public void | setPhoneType(int phoneType)
|
public void | setPreferredNetworkType(int networkType, android.os.Message response)
|
public void | setPreferredVoicePrivacy(boolean enable, android.os.Message result)
|
public void | setRadioPower(boolean on, android.os.Message response)
|
public void | setSmscAddress(java.lang.String address, android.os.Message result)
|
public void | setSuppServiceNotifications(boolean enable, android.os.Message result)
|
public void | setTTYMode(int ttyMode, android.os.Message response)
|
public void | setupDataCall(java.lang.String radioTechnology, java.lang.String profile, java.lang.String apn, java.lang.String user, java.lang.String password, java.lang.String authType, java.lang.String protocol, android.os.Message result)
|
public void | startDtmf(char c, android.os.Message result)
|
public void | stopDtmf(android.os.Message result)
|
public void | supplyIccPin(java.lang.String pin, android.os.Message result)
|
public void | supplyIccPin2(java.lang.String pin2, android.os.Message result)
|
public void | supplyIccPin2ForApp(java.lang.String pin2, java.lang.String aid, android.os.Message result)
|
public void | supplyIccPinForApp(java.lang.String pin, java.lang.String aid, android.os.Message result)
|
public void | supplyIccPuk(java.lang.String puk, java.lang.String newPin, android.os.Message result)
|
public void | supplyIccPuk2(java.lang.String puk2, java.lang.String newPin2, android.os.Message result)
|
public void | supplyIccPuk2ForApp(java.lang.String puk2, java.lang.String newPin2, java.lang.String aid, android.os.Message result)
|
public void | supplyIccPukForApp(java.lang.String puk, java.lang.String newPin, java.lang.String aid, android.os.Message result)
|
public void | supplyNetworkDepersonalization(java.lang.String netpin, android.os.Message result)
|
public void | switchWaitingOrHoldingAndActive(android.os.Message result)
|
public void | writeSmsToRuim(int status, java.lang.String pdu, android.os.Message response)
|
public void | writeSmsToSim(int status, java.lang.String smsc, java.lang.String pdu, android.os.Message response)
|