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());
}
Aggregations