Loading tests/telephonytests/src/com/android/internal/telephony/RILTest.java +63 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,7 @@ import android.os.IPowerManager; import android.os.Message; import android.os.PowerManager; import android.os.WorkSource; import android.support.test.filters.FlakyTest; import android.telephony.CellIdentityCdma; import android.telephony.CellIdentityGsm; import android.telephony.CellIdentityLte; Loading Loading @@ -252,6 +253,7 @@ public class RILTest extends TelephonyTest { mTestHandler.quit(); } @FlakyTest @Test public void testGetIccCardStatus() throws Exception { mRILUnderTest.getIccCardStatus(obtainMessage()); Loading @@ -260,6 +262,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_SIM_STATUS); } @FlakyTest @Test public void testSupplyIccPinForApp() throws Exception { String pin = "1234"; Loading @@ -269,6 +272,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ENTER_SIM_PIN); } @FlakyTest @Test public void testSupplyIccPukForApp() throws Exception { String puk = "pukcode"; Loading @@ -280,6 +284,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ENTER_SIM_PUK); } @FlakyTest @Test public void testSupplyIccPin2ForApp() throws Exception { String pin = "1234"; Loading @@ -291,6 +296,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ENTER_SIM_PIN2); } @FlakyTest @Test public void testSupplyIccPuk2ForApp() throws Exception { String puk = "pukcode"; Loading @@ -303,6 +309,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ENTER_SIM_PUK2); } @FlakyTest @Test public void testChangeIccPinForApp() throws Exception { String oldPin = "1234"; Loading @@ -315,6 +322,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_CHANGE_SIM_PIN); } @FlakyTest @Test public void testChangeIccPin2ForApp() throws Exception { String oldPin2 = "1234"; Loading @@ -327,6 +335,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_CHANGE_SIM_PIN2); } @FlakyTest @Test public void testSupplyNetworkDepersonalization() throws Exception { String netpin = "1234"; Loading @@ -339,6 +348,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION); } @FlakyTest @Test public void testGetCurrentCalls() throws Exception { mRILUnderTest.getCurrentCalls(obtainMessage()); Loading @@ -347,6 +357,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_CURRENT_CALLS); } @FlakyTest @Test public void testGetIMSIForApp() throws Exception { String aid = "1234"; Loading @@ -355,6 +366,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_IMSI); } @FlakyTest @Test public void testHangupWaitingOrBackground() throws Exception { mRILUnderTest.hangupWaitingOrBackground(obtainMessage()); Loading @@ -365,6 +377,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND); } @FlakyTest @Test public void testHangupForegroundResumeBackground() throws Exception { mRILUnderTest.hangupForegroundResumeBackground(obtainMessage()); Loading @@ -375,6 +388,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND); } @FlakyTest @Test public void testHangupConnection() throws Exception { int gsmIndex = 0; Loading @@ -383,6 +397,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_HANGUP); } @FlakyTest @Test public void testSwitchWaitingOrHoldingAndActive() throws Exception { mRILUnderTest.switchWaitingOrHoldingAndActive(obtainMessage()); Loading @@ -393,6 +408,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE); } @FlakyTest @Test public void testConference() throws Exception { mRILUnderTest.conference(obtainMessage()); Loading @@ -401,6 +417,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_CONFERENCE); } @FlakyTest @Test public void testRejectCall() throws Exception { mRILUnderTest.rejectCall(obtainMessage()); Loading @@ -409,6 +426,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_UDUB); } @FlakyTest @Test public void testGetLastCallFailCause() throws Exception { mRILUnderTest.getLastCallFailCause(obtainMessage()); Loading @@ -417,6 +435,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_LAST_CALL_FAIL_CAUSE); } @FlakyTest @Test public void testGetSignalStrength() throws Exception { mRILUnderTest.getSignalStrength(obtainMessage()); Loading @@ -425,6 +444,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SIGNAL_STRENGTH); } @FlakyTest @Test public void testGetVoiceRegistrationState() throws Exception { mRILUnderTest.getVoiceRegistrationState(obtainMessage()); Loading @@ -435,6 +455,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_VOICE_REGISTRATION_STATE); } @FlakyTest @Test public void testGetDataRegistrationState() throws Exception { mRILUnderTest.getDataRegistrationState(obtainMessage()); Loading @@ -443,6 +464,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_DATA_REGISTRATION_STATE); } @FlakyTest @Test public void testGetOperator() throws Exception { mRILUnderTest.getOperator(obtainMessage()); Loading @@ -450,6 +472,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_OPERATOR); } @FlakyTest @Test public void testSetRadioPower() throws Exception { boolean on = true; Loading @@ -458,6 +481,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_RADIO_POWER); } @FlakyTest @Test public void testSendDtmf() throws Exception { char c = 'c'; Loading @@ -466,6 +490,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_DTMF); } @FlakyTest @Test public void testSendSMS() throws Exception { String smscPdu = "smscPdu"; Loading @@ -478,6 +503,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SEND_SMS); } @FlakyTest @Test public void testSendSMSExpectMore() throws Exception { String smscPdu = "smscPdu"; Loading @@ -491,6 +517,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SEND_SMS_EXPECT_MORE); } @FlakyTest @Test public void testWriteSmsToSim() throws Exception { String smscPdu = "smscPdu"; Loading @@ -506,6 +533,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_WRITE_SMS_TO_SIM); } @FlakyTest @Test public void testDeleteSmsOnSim() throws Exception { int index = 0; Loading @@ -515,6 +543,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_DELETE_SMS_ON_SIM); } @FlakyTest @Test public void testGetDeviceIdentity() throws Exception { mRILUnderTest.getDeviceIdentity(obtainMessage()); Loading @@ -523,6 +552,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_DEVICE_IDENTITY); } @FlakyTest @Test public void testExitEmergencyCallbackMode() throws Exception { mRILUnderTest.exitEmergencyCallbackMode(obtainMessage()); Loading @@ -533,6 +563,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE); } @FlakyTest @Test public void testGetSmscAddress() throws Exception { mRILUnderTest.getSmscAddress(obtainMessage()); Loading @@ -541,6 +572,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_SMSC_ADDRESS); } @FlakyTest @Test public void testSetSmscAddress() throws Exception { String address = "address"; Loading @@ -550,6 +582,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SET_SMSC_ADDRESS); } @FlakyTest @Test public void testReportSmsMemoryStatus() throws Exception { boolean available = true; Loading @@ -561,6 +594,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_REPORT_SMS_MEMORY_STATUS); } @FlakyTest @Test public void testReportStkServiceIsRunning() throws Exception { mRILUnderTest.reportStkServiceIsRunning(obtainMessage()); Loading @@ -571,6 +605,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING); } @FlakyTest @Test public void testGetCdmaSubscriptionSource() throws Exception { mRILUnderTest.getCdmaSubscriptionSource(obtainMessage()); Loading @@ -581,6 +616,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE); } @FlakyTest @Test public void testRequestIsimAuthentication() throws Exception { String nonce = "nonce"; Loading @@ -590,6 +626,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ISIM_AUTHENTICATION); } @FlakyTest @Test public void testAcknowledgeIncomingGsmSmsWithPdu() throws Exception { boolean success = true; Loading @@ -603,6 +640,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU); } @FlakyTest @Test public void testGetVoiceRadioTechnology() throws Exception { mRILUnderTest.getVoiceRadioTechnology(obtainMessage()); Loading @@ -611,6 +649,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_VOICE_RADIO_TECH); } @FlakyTest @Test public void testGetCellInfoList() throws Exception { mRILUnderTest.getCellInfoList(obtainMessage(), null); Loading @@ -619,6 +658,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_CELL_INFO_LIST); } @FlakyTest @Test public void testSetCellInfoListRate() throws Exception { int rateInMillis = 1000; Loading @@ -630,6 +670,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE); } @FlakyTest @Test public void testSetInitialAttachApn() throws Exception { ApnSetting apnSetting = new ApnSetting( Loading @@ -653,6 +694,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SET_INITIAL_ATTACH_APN); } @FlakyTest @Test public void testGetImsRegistrationState() throws Exception { mRILUnderTest.getImsRegistrationState(obtainMessage()); Loading @@ -661,6 +703,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_IMS_REGISTRATION_STATE); } @FlakyTest @Test public void testIccOpenLogicalChannel() throws Exception { String aid = "aid"; Loading @@ -671,6 +714,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SIM_OPEN_CHANNEL); } @FlakyTest @Test public void testIccCloseLogicalChannel() throws Exception { int channel = 1; Loading @@ -680,6 +724,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SIM_CLOSE_CHANNEL); } @FlakyTest @Test public void testNvWriteItem() throws Exception { int itemId = 1; Loading @@ -693,6 +738,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_NV_WRITE_ITEM); } @FlakyTest @Test public void testNvReadItem() throws Exception { int itemId = 1; Loading @@ -702,6 +748,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_NV_READ_ITEM); } @FlakyTest @Test public void testNvResetConfig() throws Exception { int resetType = 1; Loading @@ -717,6 +764,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_NV_RESET_CONFIG); } @FlakyTest @Test public void testSetDataAllowed() throws Exception { boolean allowed = true; Loading @@ -725,6 +773,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ALLOW_DATA); } @FlakyTest @Test public void testGetHardwareConfig() throws Exception { mRILUnderTest.getHardwareConfig(obtainMessage()); Loading @@ -733,6 +782,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_HARDWARE_CONFIG); } @FlakyTest @Test public void testRequestIccSimAuthentication() throws Exception { int authContext = 1; Loading @@ -745,6 +795,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SIM_AUTHENTICATION); } @FlakyTest @Test public void testRequestShutdown() throws Exception { mRILUnderTest.requestShutdown(obtainMessage()); Loading @@ -752,6 +803,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SHUTDOWN); } @FlakyTest @Test public void testGetRadioCapability() throws Exception { mRILUnderTest.getRadioCapability(obtainMessage()); Loading @@ -760,6 +812,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_RADIO_CAPABILITY); } @FlakyTest @Test public void testStartLceService() throws Exception { int reportIntervalMs = 1000; Loading @@ -770,6 +823,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_START_LCE); } @FlakyTest @Test public void testStopLceService() throws Exception { mRILUnderTest.stopLceService(obtainMessage()); Loading @@ -777,6 +831,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_STOP_LCE); } @FlakyTest @Test public void testPullLceData() throws Exception { mRILUnderTest.pullLceData(obtainMessage()); Loading @@ -784,6 +839,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_PULL_LCEDATA); } @FlakyTest @Test public void testGetModemActivityInfo() throws Exception { mRILUnderTest.getModemActivityInfo(obtainMessage()); Loading @@ -792,6 +848,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_ACTIVITY_INFO); } @FlakyTest @Test public void testGetModemActivityInfoTimeout() { mRILUnderTest.getModemActivityInfo(obtainMessage()); Loading @@ -800,6 +857,7 @@ public class RILTest extends TelephonyTest { assertEquals(0, mRILUnderTest.getRilRequestList().size()); } @FlakyTest @Test public void testSendDeviceState() throws Exception { int stateType = 1; Loading @@ -811,6 +869,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SEND_DEVICE_STATE); } @FlakyTest @Test public void testSetUnsolResponseFilter() throws Exception { int filter = 1; Loading @@ -822,6 +881,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER); } @FlakyTest @Test public void testSetSimCardPowerForPowerDownState() throws Exception { mRILUnderTest.setSimCardPower(TelephonyManager.CARD_POWER_DOWN, obtainMessage()); Loading @@ -830,6 +890,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SET_SIM_CARD_POWER); } @FlakyTest @Test public void testSetSimCardPowerForPowerUpState() throws Exception { mRILUnderTest.setSimCardPower(TelephonyManager.CARD_POWER_UP, obtainMessage()); Loading @@ -838,6 +899,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SET_SIM_CARD_POWER); } @FlakyTest @Test public void testHandleCallSetupRequestFromSim() throws Exception { boolean accept = true; Loading @@ -850,6 +912,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM); } @FlakyTest @Test public void testWakeLockTimeout() throws Exception { invokeMethod( Loading Loading
tests/telephonytests/src/com/android/internal/telephony/RILTest.java +63 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,7 @@ import android.os.IPowerManager; import android.os.Message; import android.os.PowerManager; import android.os.WorkSource; import android.support.test.filters.FlakyTest; import android.telephony.CellIdentityCdma; import android.telephony.CellIdentityGsm; import android.telephony.CellIdentityLte; Loading Loading @@ -252,6 +253,7 @@ public class RILTest extends TelephonyTest { mTestHandler.quit(); } @FlakyTest @Test public void testGetIccCardStatus() throws Exception { mRILUnderTest.getIccCardStatus(obtainMessage()); Loading @@ -260,6 +262,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_SIM_STATUS); } @FlakyTest @Test public void testSupplyIccPinForApp() throws Exception { String pin = "1234"; Loading @@ -269,6 +272,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ENTER_SIM_PIN); } @FlakyTest @Test public void testSupplyIccPukForApp() throws Exception { String puk = "pukcode"; Loading @@ -280,6 +284,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ENTER_SIM_PUK); } @FlakyTest @Test public void testSupplyIccPin2ForApp() throws Exception { String pin = "1234"; Loading @@ -291,6 +296,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ENTER_SIM_PIN2); } @FlakyTest @Test public void testSupplyIccPuk2ForApp() throws Exception { String puk = "pukcode"; Loading @@ -303,6 +309,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ENTER_SIM_PUK2); } @FlakyTest @Test public void testChangeIccPinForApp() throws Exception { String oldPin = "1234"; Loading @@ -315,6 +322,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_CHANGE_SIM_PIN); } @FlakyTest @Test public void testChangeIccPin2ForApp() throws Exception { String oldPin2 = "1234"; Loading @@ -327,6 +335,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_CHANGE_SIM_PIN2); } @FlakyTest @Test public void testSupplyNetworkDepersonalization() throws Exception { String netpin = "1234"; Loading @@ -339,6 +348,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION); } @FlakyTest @Test public void testGetCurrentCalls() throws Exception { mRILUnderTest.getCurrentCalls(obtainMessage()); Loading @@ -347,6 +357,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_CURRENT_CALLS); } @FlakyTest @Test public void testGetIMSIForApp() throws Exception { String aid = "1234"; Loading @@ -355,6 +366,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_IMSI); } @FlakyTest @Test public void testHangupWaitingOrBackground() throws Exception { mRILUnderTest.hangupWaitingOrBackground(obtainMessage()); Loading @@ -365,6 +377,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND); } @FlakyTest @Test public void testHangupForegroundResumeBackground() throws Exception { mRILUnderTest.hangupForegroundResumeBackground(obtainMessage()); Loading @@ -375,6 +388,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND); } @FlakyTest @Test public void testHangupConnection() throws Exception { int gsmIndex = 0; Loading @@ -383,6 +397,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_HANGUP); } @FlakyTest @Test public void testSwitchWaitingOrHoldingAndActive() throws Exception { mRILUnderTest.switchWaitingOrHoldingAndActive(obtainMessage()); Loading @@ -393,6 +408,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE); } @FlakyTest @Test public void testConference() throws Exception { mRILUnderTest.conference(obtainMessage()); Loading @@ -401,6 +417,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_CONFERENCE); } @FlakyTest @Test public void testRejectCall() throws Exception { mRILUnderTest.rejectCall(obtainMessage()); Loading @@ -409,6 +426,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_UDUB); } @FlakyTest @Test public void testGetLastCallFailCause() throws Exception { mRILUnderTest.getLastCallFailCause(obtainMessage()); Loading @@ -417,6 +435,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_LAST_CALL_FAIL_CAUSE); } @FlakyTest @Test public void testGetSignalStrength() throws Exception { mRILUnderTest.getSignalStrength(obtainMessage()); Loading @@ -425,6 +444,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SIGNAL_STRENGTH); } @FlakyTest @Test public void testGetVoiceRegistrationState() throws Exception { mRILUnderTest.getVoiceRegistrationState(obtainMessage()); Loading @@ -435,6 +455,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_VOICE_REGISTRATION_STATE); } @FlakyTest @Test public void testGetDataRegistrationState() throws Exception { mRILUnderTest.getDataRegistrationState(obtainMessage()); Loading @@ -443,6 +464,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_DATA_REGISTRATION_STATE); } @FlakyTest @Test public void testGetOperator() throws Exception { mRILUnderTest.getOperator(obtainMessage()); Loading @@ -450,6 +472,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_OPERATOR); } @FlakyTest @Test public void testSetRadioPower() throws Exception { boolean on = true; Loading @@ -458,6 +481,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_RADIO_POWER); } @FlakyTest @Test public void testSendDtmf() throws Exception { char c = 'c'; Loading @@ -466,6 +490,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_DTMF); } @FlakyTest @Test public void testSendSMS() throws Exception { String smscPdu = "smscPdu"; Loading @@ -478,6 +503,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SEND_SMS); } @FlakyTest @Test public void testSendSMSExpectMore() throws Exception { String smscPdu = "smscPdu"; Loading @@ -491,6 +517,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SEND_SMS_EXPECT_MORE); } @FlakyTest @Test public void testWriteSmsToSim() throws Exception { String smscPdu = "smscPdu"; Loading @@ -506,6 +533,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_WRITE_SMS_TO_SIM); } @FlakyTest @Test public void testDeleteSmsOnSim() throws Exception { int index = 0; Loading @@ -515,6 +543,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_DELETE_SMS_ON_SIM); } @FlakyTest @Test public void testGetDeviceIdentity() throws Exception { mRILUnderTest.getDeviceIdentity(obtainMessage()); Loading @@ -523,6 +552,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_DEVICE_IDENTITY); } @FlakyTest @Test public void testExitEmergencyCallbackMode() throws Exception { mRILUnderTest.exitEmergencyCallbackMode(obtainMessage()); Loading @@ -533,6 +563,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE); } @FlakyTest @Test public void testGetSmscAddress() throws Exception { mRILUnderTest.getSmscAddress(obtainMessage()); Loading @@ -541,6 +572,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_SMSC_ADDRESS); } @FlakyTest @Test public void testSetSmscAddress() throws Exception { String address = "address"; Loading @@ -550,6 +582,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SET_SMSC_ADDRESS); } @FlakyTest @Test public void testReportSmsMemoryStatus() throws Exception { boolean available = true; Loading @@ -561,6 +594,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_REPORT_SMS_MEMORY_STATUS); } @FlakyTest @Test public void testReportStkServiceIsRunning() throws Exception { mRILUnderTest.reportStkServiceIsRunning(obtainMessage()); Loading @@ -571,6 +605,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING); } @FlakyTest @Test public void testGetCdmaSubscriptionSource() throws Exception { mRILUnderTest.getCdmaSubscriptionSource(obtainMessage()); Loading @@ -581,6 +616,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE); } @FlakyTest @Test public void testRequestIsimAuthentication() throws Exception { String nonce = "nonce"; Loading @@ -590,6 +626,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ISIM_AUTHENTICATION); } @FlakyTest @Test public void testAcknowledgeIncomingGsmSmsWithPdu() throws Exception { boolean success = true; Loading @@ -603,6 +640,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU); } @FlakyTest @Test public void testGetVoiceRadioTechnology() throws Exception { mRILUnderTest.getVoiceRadioTechnology(obtainMessage()); Loading @@ -611,6 +649,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_VOICE_RADIO_TECH); } @FlakyTest @Test public void testGetCellInfoList() throws Exception { mRILUnderTest.getCellInfoList(obtainMessage(), null); Loading @@ -619,6 +658,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_CELL_INFO_LIST); } @FlakyTest @Test public void testSetCellInfoListRate() throws Exception { int rateInMillis = 1000; Loading @@ -630,6 +670,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE); } @FlakyTest @Test public void testSetInitialAttachApn() throws Exception { ApnSetting apnSetting = new ApnSetting( Loading @@ -653,6 +694,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SET_INITIAL_ATTACH_APN); } @FlakyTest @Test public void testGetImsRegistrationState() throws Exception { mRILUnderTest.getImsRegistrationState(obtainMessage()); Loading @@ -661,6 +703,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_IMS_REGISTRATION_STATE); } @FlakyTest @Test public void testIccOpenLogicalChannel() throws Exception { String aid = "aid"; Loading @@ -671,6 +714,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SIM_OPEN_CHANNEL); } @FlakyTest @Test public void testIccCloseLogicalChannel() throws Exception { int channel = 1; Loading @@ -680,6 +724,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SIM_CLOSE_CHANNEL); } @FlakyTest @Test public void testNvWriteItem() throws Exception { int itemId = 1; Loading @@ -693,6 +738,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_NV_WRITE_ITEM); } @FlakyTest @Test public void testNvReadItem() throws Exception { int itemId = 1; Loading @@ -702,6 +748,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_NV_READ_ITEM); } @FlakyTest @Test public void testNvResetConfig() throws Exception { int resetType = 1; Loading @@ -717,6 +764,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_NV_RESET_CONFIG); } @FlakyTest @Test public void testSetDataAllowed() throws Exception { boolean allowed = true; Loading @@ -725,6 +773,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_ALLOW_DATA); } @FlakyTest @Test public void testGetHardwareConfig() throws Exception { mRILUnderTest.getHardwareConfig(obtainMessage()); Loading @@ -733,6 +782,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_HARDWARE_CONFIG); } @FlakyTest @Test public void testRequestIccSimAuthentication() throws Exception { int authContext = 1; Loading @@ -745,6 +795,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SIM_AUTHENTICATION); } @FlakyTest @Test public void testRequestShutdown() throws Exception { mRILUnderTest.requestShutdown(obtainMessage()); Loading @@ -752,6 +803,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SHUTDOWN); } @FlakyTest @Test public void testGetRadioCapability() throws Exception { mRILUnderTest.getRadioCapability(obtainMessage()); Loading @@ -760,6 +812,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_RADIO_CAPABILITY); } @FlakyTest @Test public void testStartLceService() throws Exception { int reportIntervalMs = 1000; Loading @@ -770,6 +823,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_START_LCE); } @FlakyTest @Test public void testStopLceService() throws Exception { mRILUnderTest.stopLceService(obtainMessage()); Loading @@ -777,6 +831,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_STOP_LCE); } @FlakyTest @Test public void testPullLceData() throws Exception { mRILUnderTest.pullLceData(obtainMessage()); Loading @@ -784,6 +839,7 @@ public class RILTest extends TelephonyTest { verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_PULL_LCEDATA); } @FlakyTest @Test public void testGetModemActivityInfo() throws Exception { mRILUnderTest.getModemActivityInfo(obtainMessage()); Loading @@ -792,6 +848,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_GET_ACTIVITY_INFO); } @FlakyTest @Test public void testGetModemActivityInfoTimeout() { mRILUnderTest.getModemActivityInfo(obtainMessage()); Loading @@ -800,6 +857,7 @@ public class RILTest extends TelephonyTest { assertEquals(0, mRILUnderTest.getRilRequestList().size()); } @FlakyTest @Test public void testSendDeviceState() throws Exception { int stateType = 1; Loading @@ -811,6 +869,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SEND_DEVICE_STATE); } @FlakyTest @Test public void testSetUnsolResponseFilter() throws Exception { int filter = 1; Loading @@ -822,6 +881,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER); } @FlakyTest @Test public void testSetSimCardPowerForPowerDownState() throws Exception { mRILUnderTest.setSimCardPower(TelephonyManager.CARD_POWER_DOWN, obtainMessage()); Loading @@ -830,6 +890,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SET_SIM_CARD_POWER); } @FlakyTest @Test public void testSetSimCardPowerForPowerUpState() throws Exception { mRILUnderTest.setSimCardPower(TelephonyManager.CARD_POWER_UP, obtainMessage()); Loading @@ -838,6 +899,7 @@ public class RILTest extends TelephonyTest { mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_SET_SIM_CARD_POWER); } @FlakyTest @Test public void testHandleCallSetupRequestFromSim() throws Exception { boolean accept = true; Loading @@ -850,6 +912,7 @@ public class RILTest extends TelephonyTest { RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM); } @FlakyTest @Test public void testWakeLockTimeout() throws Exception { invokeMethod( Loading