Loading tests/telephonytests/src/com/android/internal/telephony/NetworkScanResultTest.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -42,8 +42,7 @@ public class NetworkScanResultTest { ArrayList<CellInfo> infos = new ArrayList<CellInfo>(); ArrayList<CellInfo> infos = new ArrayList<CellInfo>(); CellIdentityGsm cig = new CellIdentityGsm(310, 310, 1, 2, 3, 4); CellIdentityGsm cig = new CellIdentityGsm(310, 310, 1, 2, 3, 4); CellSignalStrengthGsm cssg = new CellSignalStrengthGsm(); CellSignalStrengthGsm cssg = new CellSignalStrengthGsm(5, 6, 7); cssg.initialize(5, 6, 7); CellInfoGsm gsm = new CellInfoGsm(); CellInfoGsm gsm = new CellInfoGsm(); gsm.setRegistered(true); gsm.setRegistered(true); gsm.setTimeStampType(8); gsm.setTimeStampType(8); Loading @@ -53,8 +52,7 @@ public class NetworkScanResultTest { infos.add(gsm); infos.add(gsm); CellIdentityLte cil = new CellIdentityLte(320, 320, 11, 12, 13, 14); CellIdentityLte cil = new CellIdentityLte(320, 320, 11, 12, 13, 14); CellSignalStrengthLte cssl = new CellSignalStrengthLte(); CellSignalStrengthLte cssl = new CellSignalStrengthLte(15, 16, 17, 18, 19, 20); cssl.initialize(15, 16, 17, 18, 19, 20); CellInfoLte lte = new CellInfoLte(); CellInfoLte lte = new CellInfoLte(); lte.setRegistered(false); lte.setRegistered(false); lte.setTimeStampType(21); lte.setTimeStampType(21); Loading tests/telephonytests/src/com/android/internal/telephony/RILTest.java +8 −8 Original line number Original line Diff line number Diff line Loading @@ -1119,8 +1119,8 @@ public class RILTest extends TelephonyTest { expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); CellIdentityGsm ci = new CellIdentityGsm( CellIdentityGsm ci = new CellIdentityGsm( LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, EMPTY_ALPHA_LONG, EMPTY_ALPHA_SHORT); LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, EMPTY_ALPHA_LONG, EMPTY_ALPHA_SHORT); CellSignalStrengthGsm cs = new CellSignalStrengthGsm(); CellSignalStrengthGsm cs = new CellSignalStrengthGsm( cs.initialize(SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); expected.setCellIdentity(ci); expected.setCellIdentity(ci); expected.setCellSignalStrength(cs); expected.setCellSignalStrength(cs); expected.setCellConnectionStatus(CellInfo.CONNECTION_UNKNOWN); expected.setCellConnectionStatus(CellInfo.CONNECTION_UNKNOWN); Loading Loading @@ -1285,8 +1285,8 @@ public class RILTest extends TelephonyTest { expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); CellIdentityGsm ci = new CellIdentityGsm( CellIdentityGsm ci = new CellIdentityGsm( LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, ALPHA_LONG, ALPHA_SHORT); LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, ALPHA_LONG, ALPHA_SHORT); CellSignalStrengthGsm cs = new CellSignalStrengthGsm(); CellSignalStrengthGsm cs = new CellSignalStrengthGsm( cs.initialize(SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); expected.setCellIdentity(ci); expected.setCellIdentity(ci); expected.setCellSignalStrength(cs); expected.setCellSignalStrength(cs); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); Loading @@ -1306,8 +1306,8 @@ public class RILTest extends TelephonyTest { expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); CellIdentityGsm ci = new CellIdentityGsm( CellIdentityGsm ci = new CellIdentityGsm( LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, EMPTY_ALPHA_LONG, EMPTY_ALPHA_SHORT); LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, EMPTY_ALPHA_LONG, EMPTY_ALPHA_SHORT); CellSignalStrengthGsm cs = new CellSignalStrengthGsm(); CellSignalStrengthGsm cs = new CellSignalStrengthGsm( cs.initialize(SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); expected.setCellIdentity(ci); expected.setCellIdentity(ci); expected.setCellSignalStrength(cs); expected.setCellSignalStrength(cs); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); Loading @@ -1329,8 +1329,8 @@ public class RILTest extends TelephonyTest { expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); CellIdentityGsm ci = new CellIdentityGsm( CellIdentityGsm ci = new CellIdentityGsm( LAC, CID, ARFCN, BSIC, null, null, ALPHA_LONG, ALPHA_SHORT); LAC, CID, ARFCN, BSIC, null, null, ALPHA_LONG, ALPHA_SHORT); CellSignalStrengthGsm cs = new CellSignalStrengthGsm(); CellSignalStrengthGsm cs = new CellSignalStrengthGsm( cs.initialize(SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); expected.setCellIdentity(ci); expected.setCellIdentity(ci); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); expected.setCellSignalStrength(cs); expected.setCellSignalStrength(cs); Loading Loading
tests/telephonytests/src/com/android/internal/telephony/NetworkScanResultTest.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -42,8 +42,7 @@ public class NetworkScanResultTest { ArrayList<CellInfo> infos = new ArrayList<CellInfo>(); ArrayList<CellInfo> infos = new ArrayList<CellInfo>(); CellIdentityGsm cig = new CellIdentityGsm(310, 310, 1, 2, 3, 4); CellIdentityGsm cig = new CellIdentityGsm(310, 310, 1, 2, 3, 4); CellSignalStrengthGsm cssg = new CellSignalStrengthGsm(); CellSignalStrengthGsm cssg = new CellSignalStrengthGsm(5, 6, 7); cssg.initialize(5, 6, 7); CellInfoGsm gsm = new CellInfoGsm(); CellInfoGsm gsm = new CellInfoGsm(); gsm.setRegistered(true); gsm.setRegistered(true); gsm.setTimeStampType(8); gsm.setTimeStampType(8); Loading @@ -53,8 +52,7 @@ public class NetworkScanResultTest { infos.add(gsm); infos.add(gsm); CellIdentityLte cil = new CellIdentityLte(320, 320, 11, 12, 13, 14); CellIdentityLte cil = new CellIdentityLte(320, 320, 11, 12, 13, 14); CellSignalStrengthLte cssl = new CellSignalStrengthLte(); CellSignalStrengthLte cssl = new CellSignalStrengthLte(15, 16, 17, 18, 19, 20); cssl.initialize(15, 16, 17, 18, 19, 20); CellInfoLte lte = new CellInfoLte(); CellInfoLte lte = new CellInfoLte(); lte.setRegistered(false); lte.setRegistered(false); lte.setTimeStampType(21); lte.setTimeStampType(21); Loading
tests/telephonytests/src/com/android/internal/telephony/RILTest.java +8 −8 Original line number Original line Diff line number Diff line Loading @@ -1119,8 +1119,8 @@ public class RILTest extends TelephonyTest { expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); CellIdentityGsm ci = new CellIdentityGsm( CellIdentityGsm ci = new CellIdentityGsm( LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, EMPTY_ALPHA_LONG, EMPTY_ALPHA_SHORT); LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, EMPTY_ALPHA_LONG, EMPTY_ALPHA_SHORT); CellSignalStrengthGsm cs = new CellSignalStrengthGsm(); CellSignalStrengthGsm cs = new CellSignalStrengthGsm( cs.initialize(SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); expected.setCellIdentity(ci); expected.setCellIdentity(ci); expected.setCellSignalStrength(cs); expected.setCellSignalStrength(cs); expected.setCellConnectionStatus(CellInfo.CONNECTION_UNKNOWN); expected.setCellConnectionStatus(CellInfo.CONNECTION_UNKNOWN); Loading Loading @@ -1285,8 +1285,8 @@ public class RILTest extends TelephonyTest { expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); CellIdentityGsm ci = new CellIdentityGsm( CellIdentityGsm ci = new CellIdentityGsm( LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, ALPHA_LONG, ALPHA_SHORT); LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, ALPHA_LONG, ALPHA_SHORT); CellSignalStrengthGsm cs = new CellSignalStrengthGsm(); CellSignalStrengthGsm cs = new CellSignalStrengthGsm( cs.initialize(SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); expected.setCellIdentity(ci); expected.setCellIdentity(ci); expected.setCellSignalStrength(cs); expected.setCellSignalStrength(cs); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); Loading @@ -1306,8 +1306,8 @@ public class RILTest extends TelephonyTest { expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); CellIdentityGsm ci = new CellIdentityGsm( CellIdentityGsm ci = new CellIdentityGsm( LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, EMPTY_ALPHA_LONG, EMPTY_ALPHA_SHORT); LAC, CID, ARFCN, BSIC, MCC_STR, MNC_STR, EMPTY_ALPHA_LONG, EMPTY_ALPHA_SHORT); CellSignalStrengthGsm cs = new CellSignalStrengthGsm(); CellSignalStrengthGsm cs = new CellSignalStrengthGsm( cs.initialize(SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); expected.setCellIdentity(ci); expected.setCellIdentity(ci); expected.setCellSignalStrength(cs); expected.setCellSignalStrength(cs); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); Loading @@ -1329,8 +1329,8 @@ public class RILTest extends TelephonyTest { expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); expected.setTimeStampType(RIL_TIMESTAMP_TYPE_OEM_RIL); CellIdentityGsm ci = new CellIdentityGsm( CellIdentityGsm ci = new CellIdentityGsm( LAC, CID, ARFCN, BSIC, null, null, ALPHA_LONG, ALPHA_SHORT); LAC, CID, ARFCN, BSIC, null, null, ALPHA_LONG, ALPHA_SHORT); CellSignalStrengthGsm cs = new CellSignalStrengthGsm(); CellSignalStrengthGsm cs = new CellSignalStrengthGsm( cs.initialize(SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); SIGNAL_STRENGTH, BIT_ERROR_RATE, TIME_ADVANCE); expected.setCellIdentity(ci); expected.setCellIdentity(ci); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); expected.setCellConnectionStatus(CellInfo.CONNECTION_NONE); expected.setCellSignalStrength(cs); expected.setCellSignalStrength(cs); Loading