Search in sources :

Example 1 with FlakyTest

use of androidx.test.filters.FlakyTest in project android_frameworks_opt_telephony by LineageOS.

the class GsmCdmaPhoneTest method testVoiceMailCount.

@FlakyTest
@Test
@Ignore
public void testVoiceMailCount() {
    // initial value
    assertEquals(0, mPhoneUT.getVoiceMessageCount());
    // old sharedPreference set (testing upgrade from M to N scenario)
    SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(mContext);
    SharedPreferences.Editor editor = sharedPreferences.edit();
    String imsi = "1234567890";
    editor.putString("vm_id_key", imsi);
    editor.putInt("vm_count_key", 5);
    editor.apply();
    doReturn(imsi).when(mSimRecords).getIMSI();
    // updateVoiceMail should read old shared pref and delete it and new sharedPref should be
    // updated now
    doReturn(-1).when(mSimRecords).getVoiceMessageCount();
    mPhoneUT.updateVoiceMail();
    assertEquals(5, mPhoneUT.getVoiceMessageCount());
    assertEquals(null, sharedPreferences.getString("vm_id_key", null));
    assertEquals(5, sharedPreferences.getInt("vm_count_key" + mPhoneUT.getSubId(), 0));
    // sim records return count as 0, that overrides shared preference
    doReturn(0).when(mSimRecords).getVoiceMessageCount();
    mPhoneUT.updateVoiceMail();
    assertEquals(0, mPhoneUT.getVoiceMessageCount());
    // sim records return count as -1
    doReturn(-1).when(mSimRecords).getVoiceMessageCount();
    mPhoneUT.updateVoiceMail();
    assertEquals(-1, mPhoneUT.getVoiceMessageCount());
    // sim records return count as -1 and sharedPreference says 0
    mPhoneUT.setVoiceMessageCount(0);
    mPhoneUT.updateVoiceMail();
    assertEquals(-1, mPhoneUT.getVoiceMessageCount());
    // sim records return count as -1 and sharedPreference says 2
    mPhoneUT.setVoiceMessageCount(2);
    mPhoneUT.updateVoiceMail();
    assertEquals(2, mPhoneUT.getVoiceMessageCount());
    // sim records return count as 0 and sharedPreference says 2
    doReturn(0).when(mSimRecords).getVoiceMessageCount();
    mPhoneUT.setVoiceMessageCount(2);
    mPhoneUT.updateVoiceMail();
    assertEquals(0, mPhoneUT.getVoiceMessageCount());
}
Also used : SharedPreferences(android.content.SharedPreferences) FlakyTest(androidx.test.filters.FlakyTest) Ignore(org.junit.Ignore) FlakyTest(androidx.test.filters.FlakyTest) SmallTest(android.test.suitebuilder.annotation.SmallTest) Test(org.junit.Test)

Example 2 with FlakyTest

use of androidx.test.filters.FlakyTest in project android_frameworks_opt_telephony by LineageOS.

the class TelephonyNetworkFactoryTest method testActive.

/**
 * Test that phone active changes cause the DcTracker to get poked.
 */
@FlakyTest
@Test
@SmallTest
public void testActive() throws Exception {
    mTestName = "testActive";
    final int phoneId = 0;
    final int subId = 0;
    createMockedTelephonyComponents();
    doReturn(false).when(mPhoneSwitcher).shouldApplyNetworkRequest(any(), anyInt());
    doReturn(subId).when(mSubscriptionController).getSubIdUsingPhoneId(phoneId);
    // fake onSubscriptionChangedListener being triggered.
    mTelephonyNetworkFactoryUT.mInternalHandler.sendEmptyMessage(TelephonyNetworkFactory.EVENT_SUBSCRIPTION_CHANGED);
    log("addDefaultRequest");
    makeDefaultInternetRequest();
    processAllMessages();
    assertEquals(0, mNetworkRequestList.size());
    log("setPhoneActive true: phoneId = " + phoneId);
    activatePhoneInPhoneSwitcher(phoneId, true);
    processAllMessages();
    assertEquals(1, mNetworkRequestList.size());
    log("makeSubSpecificInternetRequest: subId = " + subId);
    NetworkRequest subSpecificDefault = makeSubSpecificInternetRequest(subId);
    processAllMessages();
    assertEquals(2, mNetworkRequestList.size());
    log("setPhoneActive false: phoneId = " + phoneId);
    activatePhoneInPhoneSwitcher(phoneId, false);
    processAllMessages();
    assertEquals(0, mNetworkRequestList.size());
    log("makeSubSpecificInternetRequest: subId = " + subId);
    NetworkRequest subSpecificMms = makeSubSpecificMmsRequest(subId);
    processAllMessages();
    assertEquals(0, mNetworkRequestList.size());
    log("setPhoneActive true: phoneId = " + phoneId);
    activatePhoneInPhoneSwitcher(phoneId, true);
    processAllMessages();
    assertEquals(3, mNetworkRequestList.size());
    log("releaseNetworkRequest: subSpecificDefault = " + subSpecificDefault);
    releaseNetworkRequest(subSpecificDefault);
    processAllMessages();
    assertEquals(2, mNetworkRequestList.size());
    log("setPhoneActive false: phoneId = " + phoneId);
    activatePhoneInPhoneSwitcher(phoneId, false);
    processAllMessages();
    assertEquals(0, mNetworkRequestList.size());
    log("releaseNetworkRequest: subSpecificMms = " + subSpecificMms);
    releaseNetworkRequest(subSpecificMms);
    processAllMessages();
    assertEquals(0, mNetworkRequestList.size());
    log("setPhoneActive true: phoneId = " + phoneId);
    activatePhoneInPhoneSwitcher(phoneId, true);
    processAllMessages();
    assertEquals(1, mNetworkRequestList.size());
}
Also used : NetworkRequest(android.net.NetworkRequest) FlakyTest(androidx.test.filters.FlakyTest) FlakyTest(androidx.test.filters.FlakyTest) SmallTest(android.test.suitebuilder.annotation.SmallTest) TelephonyTest(com.android.internal.telephony.TelephonyTest) Test(org.junit.Test) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 3 with FlakyTest

use of androidx.test.filters.FlakyTest in project android_frameworks_opt_telephony by LineageOS.

the class GsmSmsDispatcherTest method testSendSmsToEmergencyNumber_notifiesBlockedNumberProvider.

@FlakyTest
@Ignore
@Test
@MediumTest
public void testSendSmsToEmergencyNumber_notifiesBlockedNumberProvider() throws Exception {
    setupMockPackagePermissionChecks();
    mContextFixture.setSystemService(Context.COUNTRY_DETECTOR, mCountryDetector);
    when(mCountryDetector.detectCountry()).thenReturn(new Country("US", Country.COUNTRY_SOURCE_SIM));
    mGsmSmsDispatcher.sendText(getEmergencyNumberFromSystemPropertiesOrDefault(), "121", /*scAddr*/
    "test sms", null, null, null, null, false, -1, false, -1, false, 0L);
    verify(mSimulatedCommandsVerifier).sendSMS(anyString(), anyString(), any(Message.class));
    // Blocked number provider is notified about the emergency contact asynchronously.
    TelephonyTestUtils.waitForMs(50);
    assertEquals(1, mFakeBlockedNumberContentProvider.mNumEmergencyContactNotifications);
}
Also used : Message(android.os.Message) Country(android.location.Country) FlakyTest(androidx.test.filters.FlakyTest) Ignore(org.junit.Ignore) FlakyTest(androidx.test.filters.FlakyTest) SmallTest(android.test.suitebuilder.annotation.SmallTest) TelephonyTest(com.android.internal.telephony.TelephonyTest) MediumTest(android.test.suitebuilder.annotation.MediumTest) Test(org.junit.Test) MediumTest(android.test.suitebuilder.annotation.MediumTest)

Example 4 with FlakyTest

use of androidx.test.filters.FlakyTest in project android_frameworks_opt_telephony by LineageOS.

the class GsmSmsDispatcherTest method testSendTextWithInvalidDestAddr.

@Test
@SmallTest
@FlakyTest
@Ignore
public void testSendTextWithInvalidDestAddr() throws Exception {
    // unmock ActivityManager to be able to register receiver, create real PendingIntent and
    // receive TEST_INTENT
    restoreInstance(Singleton.class, "mInstance", mIActivityManagerSingleton);
    restoreInstance(ActivityManager.class, "IActivityManagerSingleton", null);
    Context realContext = TestApplication.getAppContext();
    realContext.registerReceiver(mTestReceiver, new IntentFilter(TEST_INTENT));
    PendingIntent pendingIntent = PendingIntent.getBroadcast(realContext, 0, new Intent(TEST_INTENT), 0);
    // send invalid dest address: +
    mReceivedTestIntent = false;
    mGsmSmsDispatcher.sendText("+", "222", /*scAddr*/
    TAG, pendingIntent, null, null, null, false, -1, false, -1, false, 0L);
    waitForMs(500);
    verify(mSimulatedCommandsVerifier, times(0)).sendSMS(anyString(), anyString(), any(Message.class));
    synchronized (mLock) {
        assertEquals(true, mReceivedTestIntent);
        assertEquals(SmsManager.RESULT_ERROR_NULL_PDU, mTestReceiver.getResultCode());
    }
}
Also used : Context(android.content.Context) IntentFilter(android.content.IntentFilter) Message(android.os.Message) Intent(android.content.Intent) PendingIntent(android.app.PendingIntent) PendingIntent(android.app.PendingIntent) FlakyTest(androidx.test.filters.FlakyTest) Ignore(org.junit.Ignore) FlakyTest(androidx.test.filters.FlakyTest) SmallTest(android.test.suitebuilder.annotation.SmallTest) TelephonyTest(com.android.internal.telephony.TelephonyTest) MediumTest(android.test.suitebuilder.annotation.MediumTest) Test(org.junit.Test) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 5 with FlakyTest

use of androidx.test.filters.FlakyTest in project android_frameworks_opt_telephony by LineageOS.

the class RILTest method testStartNetworkScanWithUnsupportedResponse.

@FlakyTest
@Test
public void testStartNetworkScanWithUnsupportedResponse() throws Exception {
    // Use Radio HAL v1.5
    try {
        replaceInstance(RIL.class, "mRadioVersion", mRILUnderTest, mRadioVersionV15);
    } catch (Exception e) {
    }
    NetworkScanRequest nsr = getNetworkScanRequestForTesting();
    mRILUnderTest.startNetworkScan(nsr, obtainMessage());
    // Verify the v1.5 HAL methed is called firstly
    verify(mRadioProxy).startNetworkScan_1_5(mSerialNumberCaptor.capture(), any());
    // Before we find a way to trigger real RadioResponse method, emulate the behaivor.
    Consumer<RILRequest> unsupportedResponseEmulator = rr -> {
        mRILUnderTest.setCompatVersion(rr.getRequest(), RIL.RADIO_HAL_VERSION_1_4);
        mRILUnderTest.startNetworkScan(nsr, Message.obtain(rr.getResult()));
    };
    verifyRILUnsupportedResponse(mRILUnderTest, mSerialNumberCaptor.getValue(), RIL_REQUEST_START_NETWORK_SCAN, unsupportedResponseEmulator);
    // Verify the fallback method is invoked
    verify(mRadioProxy).startNetworkScan_1_4(eq(mSerialNumberCaptor.getValue() + 1), any());
}
Also used : RIL_REQUEST_SIM_CLOSE_CHANNEL(com.android.internal.telephony.RILConstants.RIL_REQUEST_SIM_CLOSE_CHANNEL) RIL_REQUEST_GET_CURRENT_CALLS(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_CURRENT_CALLS) FlakyTest(androidx.test.filters.FlakyTest) Arrays(java.util.Arrays) RIL_REQUEST_SIM_AUTHENTICATION(com.android.internal.telephony.RILConstants.RIL_REQUEST_SIM_AUTHENTICATION) RIL_REQUEST_START_LCE(com.android.internal.telephony.RILConstants.RIL_REQUEST_START_LCE) CellInfoNr(android.telephony.CellInfoNr) RadioError(android.hardware.radio.V1_0.RadioError) SmsManager(android.telephony.SmsManager) DataProfile(android.telephony.data.DataProfile) InetAddresses(android.net.InetAddresses) RIL_REQUEST_GET_HARDWARE_CONFIG(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_HARDWARE_CONFIG) RIL_REQUEST_SET_INITIAL_ATTACH_APN(com.android.internal.telephony.RILConstants.RIL_REQUEST_SET_INITIAL_ATTACH_APN) CellInfo(android.telephony.CellInfo) CellSignalStrengthNr(android.telephony.CellSignalStrengthNr) RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND(com.android.internal.telephony.RILConstants.RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND) RIL_REQUEST_SETUP_DATA_CALL(com.android.internal.telephony.RILConstants.RIL_REQUEST_SETUP_DATA_CALL) RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND(com.android.internal.telephony.RILConstants.RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND) DataProfileInfo(android.hardware.radio.V1_0.DataProfileInfo) IPowerManager(android.os.IPowerManager) RadioResponseType(android.hardware.radio.V1_0.RadioResponseType) Handler(android.os.Handler) Looper(android.os.Looper) RIL_REQUEST_GET_IMSI(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_IMSI) CarrierIdentifier(android.service.carrier.CarrierIdentifier) Mockito.doReturn(org.mockito.Mockito.doReturn) ConnectivityManager(android.net.ConnectivityManager) NvWriteItem(android.hardware.radio.V1_0.NvWriteItem) RIL_REQUEST_REPORT_SMS_MEMORY_STATUS(com.android.internal.telephony.RILConstants.RIL_REQUEST_REPORT_SMS_MEMORY_STATUS) RIL_REQUEST_START_NETWORK_SCAN(com.android.internal.telephony.RILConstants.RIL_REQUEST_START_NETWORK_SCAN) RIL_REQUEST_SIGNAL_STRENGTH(com.android.internal.telephony.RILConstants.RIL_REQUEST_SIGNAL_STRENGTH) Set(java.util.Set) RIL_REQUEST_SHUTDOWN(com.android.internal.telephony.RILConstants.RIL_REQUEST_SHUTDOWN) IRadio(android.hardware.radio.V1_5.IRadio) CellIdentityWcdma(android.telephony.CellIdentityWcdma) RIL_REQUEST_OPERATOR(com.android.internal.telephony.RILConstants.RIL_REQUEST_OPERATOR) Matchers.any(org.mockito.Matchers.any) RIL_REQUEST_VOICE_RADIO_TECH(com.android.internal.telephony.RILConstants.RIL_REQUEST_VOICE_RADIO_TECH) Message(android.os.Message) RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE(com.android.internal.telephony.RILConstants.RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE) RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE(com.android.internal.telephony.RILConstants.RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE) Mockito.mock(org.mockito.Mockito.mock) RadioAccessSpecifier(android.telephony.RadioAccessSpecifier) Assert.assertEquals(junit.framework.Assert.assertEquals) ApnSetting(android.telephony.data.ApnSetting) RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER(com.android.internal.telephony.RILConstants.RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER) RIL_REQUEST_GET_CELL_INFO_LIST(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_CELL_INFO_LIST) RIL_REQUEST_ALLOW_DATA(com.android.internal.telephony.RILConstants.RIL_REQUEST_ALLOW_DATA) Mock(org.mockito.Mock) RIL_REQUEST_RADIO_POWER(com.android.internal.telephony.RILConstants.RIL_REQUEST_RADIO_POWER) RunWith(org.junit.runner.RunWith) RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE(com.android.internal.telephony.RILConstants.RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE) RIL_REQUEST_ENTER_SIM_PUK2(com.android.internal.telephony.RILConstants.RIL_REQUEST_ENTER_SIM_PUK2) ArgumentMatchers.anyBoolean(org.mockito.ArgumentMatchers.anyBoolean) Mockito.spy(org.mockito.Mockito.spy) RIL_REQUEST_GET_BARRING_INFO(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_BARRING_INFO) ArrayList(java.util.ArrayList) Assert.assertTrue(junit.framework.Assert.assertTrue) RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU(com.android.internal.telephony.RILConstants.RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU) DataCallResponse(android.telephony.data.DataCallResponse) Carrier(android.hardware.radio.V1_0.Carrier) CellSignalStrengthLte(android.telephony.CellSignalStrengthLte) RIL_REQUEST_SEND_SMS(com.android.internal.telephony.RILConstants.RIL_REQUEST_SEND_SMS) Assert.assertNull(junit.framework.Assert.assertNull) RIL_REQUEST_UDUB(com.android.internal.telephony.RILConstants.RIL_REQUEST_UDUB) Before(org.junit.Before) RIL_REQUEST_NV_RESET_CONFIG(com.android.internal.telephony.RILConstants.RIL_REQUEST_NV_RESET_CONFIG) Mockito.times(org.mockito.Mockito.times) IOemHook(android.hardware.radio.deprecated.V1_0.IOemHook) Test(org.junit.Test) WorkSource(android.os.WorkSource) CdmaSmsMessage(android.hardware.radio.V1_0.CdmaSmsMessage) Mockito.never(org.mockito.Mockito.never) SignalStrength(android.telephony.SignalStrength) CellIdentityNr(android.telephony.CellIdentityNr) ImsSmsMessage(android.hardware.radio.V1_0.ImsSmsMessage) RIL_REQUEST_ENTER_SIM_PIN(com.android.internal.telephony.RILConstants.RIL_REQUEST_ENTER_SIM_PIN) CellInfoLte(android.telephony.CellInfoLte) CellSignalStrengthGsm(android.telephony.CellSignalStrengthGsm) CellSignalStrengthCdma(android.telephony.CellSignalStrengthCdma) RIL_REQUEST_DATA_REGISTRATION_STATE(com.android.internal.telephony.RILConstants.RIL_REQUEST_DATA_REGISTRATION_STATE) RIL_REQUEST_SEND_SMS_EXPECT_MORE(com.android.internal.telephony.RILConstants.RIL_REQUEST_SEND_SMS_EXPECT_MORE) RIL_REQUEST_IMS_SEND_SMS(com.android.internal.telephony.RILConstants.RIL_REQUEST_IMS_SEND_SMS) RIL_REQUEST_SET_SMSC_ADDRESS(com.android.internal.telephony.RILConstants.RIL_REQUEST_SET_SMSC_ADDRESS) PowerManager(android.os.PowerManager) RIL_REQUEST_DTMF(com.android.internal.telephony.RILConstants.RIL_REQUEST_DTMF) Assert.assertNotNull(junit.framework.Assert.assertNotNull) Matchers.eq(org.mockito.Matchers.eq) RadioResponseInfo(android.hardware.radio.V1_0.RadioResponseInfo) After(org.junit.After) RIL_REQUEST_GET_RADIO_CAPABILITY(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_RADIO_CAPABILITY) Mockito.atLeast(org.mockito.Mockito.atLeast) RIL_REQUEST_GET_ACTIVITY_INFO(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_ACTIVITY_INFO) SmsWriteArgs(android.hardware.radio.V1_0.SmsWriteArgs) RIL_REQUEST_ENTER_SIM_PIN2(com.android.internal.telephony.RILConstants.RIL_REQUEST_ENTER_SIM_PIN2) RIL_REQUEST_HANGUP(com.android.internal.telephony.RILConstants.RIL_REQUEST_HANGUP) RIL_REQUEST_IMS_REGISTRATION_STATE(com.android.internal.telephony.RILConstants.RIL_REQUEST_IMS_REGISTRATION_STATE) RIL_REQUEST_STOP_LCE(com.android.internal.telephony.RILConstants.RIL_REQUEST_STOP_LCE) CellInfoCdma(android.telephony.CellInfoCdma) CellInfoGsm(android.telephony.CellInfoGsm) ServiceState(android.telephony.ServiceState) RIL_REQUEST_NV_WRITE_ITEM(com.android.internal.telephony.RILConstants.RIL_REQUEST_NV_WRITE_ITEM) CellIdentityTdscdma(android.telephony.CellIdentityTdscdma) AndroidTestingRunner(android.testing.AndroidTestingRunner) RIL_REQUEST_WRITE_SMS_TO_SIM(com.android.internal.telephony.RILConstants.RIL_REQUEST_WRITE_SMS_TO_SIM) CellIdentityCdma(android.telephony.CellIdentityCdma) RIL_REQUEST_ENABLE_UICC_APPLICATIONS(com.android.internal.telephony.RILConstants.RIL_REQUEST_ENABLE_UICC_APPLICATIONS) List(java.util.List) RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING(com.android.internal.telephony.RILConstants.RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING) ApplicationInfo(android.content.pm.ApplicationInfo) Context(android.content.Context) RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM(com.android.internal.telephony.RILConstants.RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM) AccessNetworkConstants(android.telephony.AccessNetworkConstants) RIL_REQUEST_CHANGE_SIM_PIN2(com.android.internal.telephony.RILConstants.RIL_REQUEST_CHANGE_SIM_PIN2) RIL_REQUEST_DELETE_SMS_ON_SIM(com.android.internal.telephony.RILConstants.RIL_REQUEST_DELETE_SMS_ON_SIM) RIL_REQUEST_CHANGE_SIM_PIN(com.android.internal.telephony.RILConstants.RIL_REQUEST_CHANGE_SIM_PIN) RIL_REQUEST_VOICE_REGISTRATION_STATE(com.android.internal.telephony.RILConstants.RIL_REQUEST_VOICE_REGISTRATION_STATE) CellInfoWcdma(android.telephony.CellInfoWcdma) RIL_REQUEST_SEND_DEVICE_STATE(com.android.internal.telephony.RILConstants.RIL_REQUEST_SEND_DEVICE_STATE) HashSet(java.util.HashSet) IThermalService(android.os.IThermalService) ArgumentCaptor(org.mockito.ArgumentCaptor) RIL_REQUEST_GET_SIM_STATUS(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_SIM_STATUS) TelephonyManager(android.telephony.TelephonyManager) RIL_REQUEST_GET_UICC_APPLICATIONS_ENABLEMENT(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_UICC_APPLICATIONS_ENABLEMENT) RIL_REQUEST_NV_READ_ITEM(com.android.internal.telephony.RILConstants.RIL_REQUEST_NV_READ_ITEM) CellIdentityGsm(android.telephony.CellIdentityGsm) RIL_REQUEST_CONFERENCE(com.android.internal.telephony.RILConstants.RIL_REQUEST_CONFERENCE) RIL_REQUEST_GET_SMSC_ADDRESS(com.android.internal.telephony.RILConstants.RIL_REQUEST_GET_SMSC_ADDRESS) ArgumentMatchers.anyInt(org.mockito.ArgumentMatchers.anyInt) RIL_REQUEST_PULL_LCEDATA(com.android.internal.telephony.RILConstants.RIL_REQUEST_PULL_LCEDATA) RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE(com.android.internal.telephony.RILConstants.RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE) CellInfoTdscdma(android.telephony.CellInfoTdscdma) DcTracker(com.android.internal.telephony.dataconnection.DcTracker) RIL_REQUEST_LAST_CALL_FAIL_CAUSE(com.android.internal.telephony.RILConstants.RIL_REQUEST_LAST_CALL_FAIL_CAUSE) TestableLooper(android.testing.TestableLooper) RIL_REQUEST_ENTER_SIM_PUK(com.android.internal.telephony.RILConstants.RIL_REQUEST_ENTER_SIM_PUK) NetworkScanRequest(android.telephony.NetworkScanRequest) RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION(com.android.internal.telephony.RILConstants.RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION) RIL_REQUEST_SIM_OPEN_CHANNEL(com.android.internal.telephony.RILConstants.RIL_REQUEST_SIM_OPEN_CHANNEL) LinkAddress(android.net.LinkAddress) RIL_REQUEST_DEVICE_IDENTITY(com.android.internal.telephony.RILConstants.RIL_REQUEST_DEVICE_IDENTITY) Mockito.verify(org.mockito.Mockito.verify) Consumer(java.util.function.Consumer) GsmSmsMessage(android.hardware.radio.V1_0.GsmSmsMessage) CellSignalStrengthTdscdma(android.telephony.CellSignalStrengthTdscdma) RIL_REQUEST_SET_SIM_CARD_POWER(com.android.internal.telephony.RILConstants.RIL_REQUEST_SET_SIM_CARD_POWER) CellSignalStrengthWcdma(android.telephony.CellSignalStrengthWcdma) CellIdentityLte(android.telephony.CellIdentityLte) Collections(java.util.Collections) Assert.assertFalse(junit.framework.Assert.assertFalse) NetworkScanRequest(android.telephony.NetworkScanRequest) FlakyTest(androidx.test.filters.FlakyTest) FlakyTest(androidx.test.filters.FlakyTest) Test(org.junit.Test)

Aggregations

FlakyTest (androidx.test.filters.FlakyTest)32 Test (org.junit.Test)32 SmallTest (android.test.suitebuilder.annotation.SmallTest)13 TelephonyTest (com.android.internal.telephony.TelephonyTest)13 Ignore (org.junit.Ignore)11 MediumTest (android.test.suitebuilder.annotation.MediumTest)10 Message (android.os.Message)9 WorkSource (android.os.WorkSource)9 AsyncResult (android.os.AsyncResult)6 Intent (android.content.Intent)5 DataProfile (android.telephony.data.DataProfile)5 Context (android.content.Context)4 GsmSmsMessage (android.hardware.radio.V1_0.GsmSmsMessage)4 CdmaSmsMessage (android.hardware.radio.V1_0.CdmaSmsMessage)3 ImsSmsMessage (android.hardware.radio.V1_0.ImsSmsMessage)3 ContentResolver (android.content.ContentResolver)2 DataProfileInfo (android.hardware.radio.V1_0.DataProfileInfo)2 NvWriteItem (android.hardware.radio.V1_0.NvWriteItem)2 SmsWriteArgs (android.hardware.radio.V1_0.SmsWriteArgs)2 CellIdentityCdma (android.telephony.CellIdentityCdma)2