Search in sources :

Example 11 with CellIdentityTdscdma

use of android.telephony.CellIdentityTdscdma in project android_frameworks_opt_telephony by LineageOS.

the class CellIdentityTdscdmaTest method testConstructorWithEmptyMccMnc.

@SmallTest
public void testConstructorWithEmptyMccMnc() {
    CellIdentityTdscdma ci = new CellIdentityTdscdma(null, null, LAC, CID, CPID, UARFCN, "", "", Collections.emptyList(), null);
    assertNull(ci.getMccString());
    assertNull(ci.getMncString());
    ci = new CellIdentityTdscdma(MCC_STR, null, LAC, CID, CPID, UARFCN, "", "", Collections.emptyList(), null);
    assertEquals(MCC_STR, ci.getMccString());
    assertNull(ci.getMncString());
    ci = new CellIdentityTdscdma(null, MNC_STR, LAC, CID, CPID, UARFCN, "", "", Collections.emptyList(), null);
    assertEquals(MNC_STR, ci.getMncString());
    assertNull(ci.getMccString());
    ci = new CellIdentityTdscdma("", "", LAC, CID, CPID, UARFCN, "", "", Collections.emptyList(), null);
    assertNull(ci.getMccString());
    assertNull(ci.getMncString());
}
Also used : CellIdentityTdscdma(android.telephony.CellIdentityTdscdma) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Aggregations

CellIdentityTdscdma (android.telephony.CellIdentityTdscdma)11 SmallTest (android.test.suitebuilder.annotation.SmallTest)8 FlakyTest (androidx.test.filters.FlakyTest)4 Test (org.junit.Test)4 Parcel (android.os.Parcel)3 CellIdentity (android.telephony.CellIdentity)2 CellIdentityGsm (android.telephony.CellIdentityGsm)2 CellIdentityLte (android.telephony.CellIdentityLte)2 CellIdentityNr (android.telephony.CellIdentityNr)2 CellIdentityWcdma (android.telephony.CellIdentityWcdma)2 ArrayList (java.util.ArrayList)2 CellIdentityCdma (android.telephony.CellIdentityCdma)1 CellInfo (android.telephony.CellInfo)1 CellInfoTdscdma (android.telephony.CellInfoTdscdma)1 CellSignalStrengthTdscdma (android.telephony.CellSignalStrengthTdscdma)1 MediumTest (android.test.suitebuilder.annotation.MediumTest)1 Method (java.lang.reflect.Method)1 HashSet (java.util.HashSet)1