Searched refs:SUBID_1 (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | SubscriptionUtilTest.java | 63 private static final int SUBID_1 = 1; field in SubscriptionUtilTest 206 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_uniqueCarriers_originalUsed() 217 when(mSubMgr.getPhoneNumber(SUBID_1)).thenReturn("1112223333"); in getUniqueDisplayNames_uniqueCarriers_originalUsed() 219 when(mTelMgr.createForSubscriptionId(SUBID_1)).thenReturn(sub1Telmgr); in getUniqueDisplayNames_uniqueCarriers_originalUsed() 227 assertEquals(CARRIER_1, idNames.get(SUBID_1)); in getUniqueDisplayNames_uniqueCarriers_originalUsed() 237 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() 247 when(mSubMgr.getPhoneNumber(SUBID_1)).thenReturn("1112223333"); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() 249 when(mTelMgr.createForSubscriptionId(SUBID_1)).thenReturn(sub1Telmgr); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() 257 assertEquals(CARRIER_1 + " 3333", idNames.get(SUBID_1)); in getUniqueDisplayNames_identicalCarriers_fourDigitsUsed() 267 when(info1.getSubscriptionId()).thenReturn(SUBID_1); in getUniqueDisplayNames_identicalCarriersAfterTrim_fourDigitsUsed() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | ResetNetworkSubscriptionPreferenceControllerTest.java | 66 private static final int SUBID_1 = MIN_SUBSCRIPTION_ID_VALUE; field in ResetNetworkSubscriptionPreferenceControllerTest 67 private static final int SUBID_2 = SUBID_1 + 1; 223 createSubInfo(SUBID_1, "sub1")); in refreshUi_oneSubscription_hidesPreference() 235 createSubInfo(SUBID_1, "sub1")); in refreshUi_oneSubscription_setsValue() 241 assertThat(mPreference.getValue()).isEqualTo(String.valueOf(SUBID_1)); in refreshUi_oneSubscription_setsValue() 246 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList(createSubInfo(SUBID_1, "sub1"), in refreshUi_multipleSubscriptions_showsPreference() 261 createSubInfo(SUBID_1, displayName1), createSubInfo(SUBID_2, displayName2)); in refreshUi_multipleSubscriptions_populatesEntries() 270 String.valueOf(SUBID_1), in refreshUi_multipleSubscriptions_populatesEntries() 277 createSubInfo(SUBID_1, "sub1"), createSubInfo(SUBID_2, "sub2"), in refreshUi_defaultSelection_fourthPriority_system() 290 List<SubscriptionInfo> subscriptionInfoList = Arrays.asList(createSubInfo(SUBID_1, "sub1"), in refreshUi_defaultSelection_thirdPriority_sms() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | SubscriptionUtilRoboTest.java | 45 private static final int SUBID_1 = 1; field in SubscriptionUtilRoboTest 73 assertTrue(SubscriptionUtil.isConnectedToMobileDataWithDifferentSubId(mContext, SUBID_1)); in isConnectedToMobileDataWithDifferentSubId_hasDataOnSubId2_returnTrue() 79 mShadowSubscriptionManager.setActiveDataSubscriptionId(SUBID_1); in isConnectedToMobileDataWithDifferentSubId_hasDataOnSubId1_returnFalse() 81 assertFalse(SubscriptionUtil.isConnectedToMobileDataWithDifferentSubId(mContext, SUBID_1)); in isConnectedToMobileDataWithDifferentSubId_hasDataOnSubId1_returnFalse() 87 SubscriptionUtil.shouldShowRacDialogWhenErasingEsim(mContext, SUBID_1, CARRIER_ID)); in carrierIsNotRAC_showRacDialogForEsim_returnFalse() 95 SubscriptionUtil.shouldShowRacDialogWhenErasingEsim(mContext, SUBID_1, CARRIER_ID)); in carrierIsNotRAC_noWifi_noDataConnection_showRacDialogForEsimreturnFalse() 105 mContext, SUBID_1, RAC_CARRIER_ID)); in carrierIsRAC_isConnectedToDataOnSubId2_showRacDialogForEsim_returnFalse() 114 mContext, SUBID_1, RAC_CARRIER_ID)); in carrierIsRAC_hasWifi_showRacDialogForEsim_returnFalse() 120 mShadowSubscriptionManager.setActiveDataSubscriptionId(SUBID_1); in carrierIsRAC_isConnectedToDataOnSubId1_noWifi_showRacDialogForEsim_returnTrue() 124 mContext, SUBID_1, RAC_CARRIER_ID)); in carrierIsRAC_isConnectedToDataOnSubId1_noWifi_showRacDialogForEsim_returnTrue() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsObserversTest.java | 87 private static final int SUBID_1 = 1; field in NetworkStatsObserversTest 304 true /* defaultNetwork */, OEM_NONE, SUBID_1)); in makeTestIdentSet()
|