Home
last modified time | relevance | path

Searched refs:SubscriptionUtil (Results 1 – 25 of 89) sorted by relevance

1234

/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionUtilTest.java19 import static com.android.settings.network.SubscriptionUtil.KEY_UNIQUE_SUBSCRIPTION_DISPLAYNAME;
20 import static com.android.settings.network.SubscriptionUtil.SUB_ID;
100 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
111 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_oneSubscription_oneResult()
124 assertTrue(SubscriptionUtil.hasSubscriptionWithRacCarrier(mContext)); in hasSubscriptionWithRacCarrier_containsRac_returnTrue()
134 assertFalse(SubscriptionUtil.hasSubscriptionWithRacCarrier(mContext)); in hasSubscriptionWithRacCarrier_doesNotContainsRac_returnFalse()
141 assertTrue(SubscriptionUtil.isCarrierRac(mContext, RAC_CARRIER_ID)); in isCarrierRac_returnTrue()
148 assertFalse(SubscriptionUtil.isCarrierRac(mContext, NO_RAC_CARRIER_ID)); in isCarrierRac_returnFalse()
160 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_twoSubscriptions_twoResults()
170 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mSubMgr); in getActiveSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DMobileNetworkPhoneNumberPreferenceControllerTest.kt30 import com.android.settings.network.SubscriptionUtil
62 .mockStatic(SubscriptionUtil::class.java) in setUp()
69 … whenever(SubscriptionUtil.getBidiFormattedPhoneNumber(any(),any())).thenReturn(mockPhoneNumber) in setUp()
79 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(true) in <lambda>()
80 whenever(SubscriptionUtil.getActiveSubscriptions(any())).thenReturn( in <lambda>()
98 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(true) in <lambda>()
99 whenever(SubscriptionUtil.getActiveSubscriptions(any())).thenReturn( in <lambda>()
108 … whenever(SubscriptionUtil.getBidiFormattedPhoneNumber(any(),any())).thenReturn(mockPhoneNumber) in <lambda>()
117 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(false) in getAvailabilityStatus_notSimHardwareVisible()
DMobileNetworkImeiPreferenceControllerTest.kt31 import com.android.settings.network.SubscriptionUtil
79 .mockStatic(SubscriptionUtil::class.java) in setUp()
94 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(true) in <lambda>()
95 whenever(SubscriptionUtil.getActiveSubscriptions(any())).thenReturn( in <lambda>()
115 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(true) in <lambda>()
116 whenever(SubscriptionUtil.getActiveSubscriptions(any())).thenReturn( in <lambda>()
137 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(true) in <lambda>()
138 whenever(SubscriptionUtil.getActiveSubscriptions(any())).thenReturn( in <lambda>()
159 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(false) in getAvailabilityStatus_notSimHardwareVisible()
DMobileNetworkEidPreferenceControllerTest.kt32 import com.android.settings.network.SubscriptionUtil
83 .mockStatic(SubscriptionUtil::class.java) in setUp()
98 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(true) in <lambda>()
99 whenever(SubscriptionUtil.getActiveSubscriptions(any())).thenReturn( in <lambda>()
116 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(true) in <lambda>()
117 whenever(SubscriptionUtil.getActiveSubscriptions(any())).thenReturn( in <lambda>()
137 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(false) in getAvailabilityStatus_notSimHardwareVisible()
DDeleteSimProfilePreferenceControllerTest.kt27 import com.android.settings.network.SubscriptionUtil
65 SubscriptionUtil.setAvailableSubscriptionsForTesting(listOf(subscriptionInfo)) in setUp()
70 SubscriptionUtil.setAvailableSubscriptionsForTesting(null) in tearDown()
75 SubscriptionUtil.setAvailableSubscriptionsForTesting(emptyList()) in getAvailabilityStatus_noSubs_notAvailable()
DMobileNetworkSpnPreferenceControllerTest.kt31 import com.android.settings.network.SubscriptionUtil
64 .mockStatic(SubscriptionUtil::class.java) in setUp()
83 whenever(SubscriptionUtil.getActiveSubscriptions(any())).thenReturn(testList) in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionUtilRoboTest.java73 assertTrue(SubscriptionUtil.isConnectedToMobileDataWithDifferentSubId(mContext, SUBID_1)); in isConnectedToMobileDataWithDifferentSubId_hasDataOnSubId2_returnTrue()
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()
104 SubscriptionUtil.shouldShowRacDialogWhenErasingEsim( in carrierIsRAC_isConnectedToDataOnSubId2_showRacDialogForEsim_returnFalse()
113 SubscriptionUtil.shouldShowRacDialogWhenErasingEsim( in carrierIsRAC_hasWifi_showRacDialogForEsim_returnFalse()
123 SubscriptionUtil.shouldShowRacDialogWhenErasingEsim( in carrierIsRAC_isConnectedToDataOnSubId1_noWifi_showRacDialogForEsim_returnTrue()
132 SubscriptionUtil.shouldShowRacDialogWhenErasingEsim( in carrierIsRAC_noData_noWifi_showRacDialogForEsim_returnTrue()
DMobileNetworkSummaryControllerTest.java117 SubscriptionUtil.setActiveSubscriptionsForTesting(null); in tearDown()
118 SubscriptionUtil.setAvailableSubscriptionsForTesting(null); in tearDown()
158 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneSubscription_correctSummaryAndClickHandler()
159 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneSubscription_correctSummaryAndClickHandler()
180 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler()
199 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler()
200 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler()
231 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in addButton_oneSubscriptionNoEuiccMgr_noAddClickListener()
248 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in addButton_oneSubscription_hasAddClickListener()
259 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in addButton_twoSubscriptions_hasAddClickListener()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DPreferredSimDialogFragmentTest.java36 import com.android.settings.network.SubscriptionUtil;
82 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSim1, mSim2)); in onCreateDialog_twoSimsSelectFirst_correctMessage()
83 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(mSim1, mSim2)); in onCreateDialog_twoSimsSelectFirst_correctMessage()
96 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSim1, mSim2)); in onCreateDialog_twoSimsSelectSecond_correctMessage()
97 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(mSim1, mSim2)); in onCreateDialog_twoSimsSelectSecond_correctMessage()
110 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSim1, mSim2)); in onClick_yesClicked_callsOnSubscriptionSelected()
126 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSim1, mSim2)); in onClick_noClicked_doesNotCallOnSubscriptionSelected()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DToggleSubscriptionDialogActivity.java35 import com.android.settings.network.SubscriptionUtil;
113 mActiveSubInfos = SubscriptionUtil.getActiveSubscriptions(mSubscriptionManager); in onCreate()
114 mSubInfo = SubscriptionUtil.getSubById(mSubscriptionManager, subId); in onCreate()
221 SubscriptionUtil.getUniqueSubscriptionDisplayName(mSubInfo, this)), in onConfirm()
368 final CharSequence displayName = SubscriptionUtil.getUniqueSubscriptionDisplayName( in showDisableSimConfirmDialog()
454 final CharSequence displayName = SubscriptionUtil.getUniqueSubscriptionDisplayName( in showMepSwitchSimConfirmDialog()
482 SubscriptionUtil.getUniqueSubscriptionDisplayName(mSubInfo, this)) in getSwitchDialogPosBtnText()
487 final CharSequence displayName = SubscriptionUtil.getUniqueSubscriptionDisplayName( in getEnableSubscriptionTitle()
499 SubscriptionUtil.getUniqueSubscriptionDisplayName(mSubInfo, this)); in getSwitchSubscriptionTitle()
505 final CharSequence subInfoName = SubscriptionUtil.getUniqueSubscriptionDisplayName( in getSwitchDialogBodyMsg()
[all …]
DDeleteEuiccSubscriptionDialogActivity.java28 import com.android.settings.network.SubscriptionUtil;
63 mSubscriptionToBeDeleted = SubscriptionUtil.getSubById(mSubscriptionManager, subId); in onCreate()
65 SubscriptionUtil.findAllSubscriptionsInGroup(mSubscriptionManager, subId); in onCreate()
144 SubscriptionUtil.getUniqueSubscriptionDisplayName( in showDeleteSimConfirmDialog()
DDeleteSimProfilePreferenceController.kt27 import com.android.settings.network.SubscriptionUtil
40 subscriptionInfo = SubscriptionUtil.getAvailableSubscriptions(mContext) in init()
73 SubscriptionUtil.startDeleteEuiccSubscriptionDialogActivity(mContext, subscriptionId, in deleteSim()
DDataSubscriptionRepository.kt27 import com.android.settings.network.SubscriptionUtil in <lambda>()
41 SubscriptionUtil.getUniqueSubscriptionDisplayName(subId, context).toString() in <lambda>()
85 if (!SubscriptionUtil.isSubscriptionVisible(subscriptionManager, context, activeSubInfo)) { in getDataSummary()
DMobileNetworkPhoneNumberPreferenceController.kt33 import com.android.settings.network.SubscriptionUtil in <lambda>()
60 && SubscriptionUtil.isSimHardwareVisible(mContext) -> AVAILABLE in <lambda>()
108 val phoneNumber = SubscriptionUtil.getBidiFormattedPhoneNumber( in <lambda>()
DSubscriptionRepository.kt24 import com.android.settings.network.SubscriptionUtil in <lambda>()
79 SubscriptionUtil.getBidiFormattedPhoneNumber(this, subscriptionInfo) in Context()
110 SubscriptionUtil.isSubscriptionVisible(subscriptionManager, this, subInfo) in Context()
DContactDiscoveryPreferenceController.java39 import com.android.settings.network.SubscriptionUtil;
143 for (SubscriptionInfo info : SubscriptionUtil.getAvailableSubscriptions(context)) { in getCarrierDisplayName()
145 result = SubscriptionUtil.getUniqueSubscriptionDisplayName(info, context); in getCarrierDisplayName()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/deviceinfo/simstatus/
DSimEidPreferenceControllerTest.kt24 import com.android.settings.network.SubscriptionUtil
46 .mockStatic(SubscriptionUtil::class.java) in setUp()
58 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(true) in getAvailabilityStatus_isSimHardwareVisible()
67 whenever(SubscriptionUtil.isSimHardwareVisible(context)).thenReturn(false) in getAvailabilityStatus_notSimHardwareVisible()
/packages/apps/Settings/src/com/android/settings/network/
DNetworkProviderSimListController.java108 if (SubscriptionUtil.isConvertedPsimSubscription(mContext, subId)) { in update()
114 && !SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in update()
115 SubscriptionUtil.startToggleSubscriptionDialogActivity(mContext, subId, in update()
132 && SubscriptionUtil.isConvertedPsimSubscription(mContext, subInfo.getSubId())) { in getSummary()
136 CharSequence config = SubscriptionUtil.getDefaultSimConfig(mContext, in getSummary()
148 if (!subInfo.isEmbedded && !SubscriptionUtil.showToggleForPhysicalSim( in getSummary()
DNetworkResetPreferenceController.java22 import com.android.settings.network.SubscriptionUtil;
37 return (SubscriptionUtil.isSimHardwareVisible(mContext) && in isAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsTest.java36 import com.android.settings.network.SubscriptionUtil;
94 SubscriptionUtil.setActiveSubscriptionsForTesting(null); in setupFragment_noSubscriptions_noCrash()
105 SubscriptionUtil.setActiveSubscriptionsForTesting(new ArrayList<>( in setupFragment_oneSubscription_noCrash()
132 SubscriptionUtil.setAvailableSubscriptionsForTesting(new ArrayList<>( in setupFragment_twoSubscriptions_correctSelection()
134 SubscriptionUtil.setActiveSubscriptionsForTesting(new ArrayList<>( in setupFragment_twoSubscriptions_correctSelection()
159 SubscriptionUtil.setActiveSubscriptionsForTesting(new ArrayList<>( in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
/packages/apps/Settings/src/com/android/settings/sim/
DChooseSimActivity.java33 import com.android.settings.network.SubscriptionUtil;
181 SubscriptionUtil.getFirstRemovableSubscription(this); in onStateChange()
240 SubscriptionUtil.getUniqueSubscriptionDisplayName( in displaySubscriptions()
250 SubscriptionUtil.getFormattedPhoneNumber(this, mRemovableSubscription); in displaySubscriptions()
264 SubscriptionUtil.getUniqueSubscriptionDisplayName( in displaySubscriptions()
270 String phoneNumber = SubscriptionUtil.getFormattedPhoneNumber(this, sub); in displaySubscriptions()
280 SubscriptionUtil.getSelectableSubscriptionInfoList(this); in updateSubscriptions()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceController.java32 import com.android.settings.network.SubscriptionUtil;
54 return SubscriptionUtil.isSimHardwareVisible(mContext) ? in getAvailabilityStatus()
61 if (!SubscriptionUtil.isSimHardwareVisible(mContext)) { in displayPreference()
138 final String phoneNumber = SubscriptionUtil.getBidiFormattedPhoneNumber(mContext, in getFormattedPhoneNumber()
/packages/apps/Settings/src/com/android/settings/system/
DResetDashboardFragment.java30 import com.android.settings.network.SubscriptionUtil;
70 if (SubscriptionUtil.isSimHardwareVisible(context)) { in onAttach()
96 if (SubscriptionUtil.isSimHardwareVisible(context)) { in buildPreferenceControllers()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DResetNetworkTest.java30 import com.android.settings.network.SubscriptionUtil;
57 SubscriptionUtil.setEnableRacDialogForTesting(true); in showFinalConfirmation_checkboxVisible_eraseEsimChecked()
70 SubscriptionUtil.setEnableRacDialogForTesting(true); in showFinalConfirmation_checkboxVisible_eraseEsimChecked_showRacWarningDialog()
/packages/apps/Settings/src/com/android/settings/
DResetNetwork.java51 import com.android.settings.network.SubscriptionUtil;
160 if (resetSims && SubscriptionUtil.shouldShowRacDialogWhenErasingAllEsims(context)) { in showFinalConfirmation()
224 String name = SubscriptionUtil.getUniqueSubscriptionDisplayName( in establishInitialState()
268 if (!SubscriptionUtil.isSimHardwareVisible(getActivity())) { in getActiveSubscriptionInfoList()
300 if (!SubscriptionUtil.isSimHardwareVisible(context)) { in showEuiccSettings()

1234