Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java40 import com.android.settings.network.SubscriptionUtil;
77 SubscriptionUtil.setActiveSubscriptionsForTesting(null); in tearDown()
82 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList( in getAvailabilityStatus_onlyOneSubscription_notAvailable()
89 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList( in getAvailabilityStatus_twoSubscriptions_isAvailable()
113 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
141 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
174 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2, sub3)); in displayPreference_threeSubsOneIsOpportunistic_correctListPreferenceValues()
197 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly()
210 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly()
227 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1)); in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull()
[all …]
DMobileNetworkSwitchControllerTest.java34 import com.android.settings.network.SubscriptionUtil;
87 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSubscription, sub2)); in setUp()
100 SubscriptionUtil.setAvailableSubscriptionsForTesting(null); in cleanUp()
117 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSubscription)); in displayPreference_oneEnabledSubscription_switchBarNotHidden()
125 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSubscription)); in displayPreference_oneDisabledSubscription_switchBarNotHidden()
DDeleteSimProfilePreferenceControllerTest.java37 import com.android.settings.network.SubscriptionUtil;
76 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSubscriptionInfo)); in setUp()
89 SubscriptionUtil.setAvailableSubscriptionsForTesting(null); in tearDown()
94 SubscriptionUtil.setAvailableSubscriptionsForTesting(new ArrayList<>()); in getAvailabilityStatus_noSubs_notAvailable()
DDisableSimFooterPreferenceControllerTest.java29 import com.android.settings.network.SubscriptionUtil;
60 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mInfo)); in setUp()
DContactDiscoveryPreferenceControllerTest.java51 import com.android.settings.network.SubscriptionUtil;
106 SubscriptionUtil.setAvailableSubscriptionsForTesting(Collections.emptyList()); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.java105 SubscriptionUtil.setAvailableSubscriptionsForTesting(null); in tearDown()
155 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneSubscription_correctSummaryAndClickHandler()
175 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler()
193 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler()
219 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in getSummary_twoSubscriptions_correctSummaryAndFragment()
235 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
243 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
263 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment()
275 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment()
294 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in addButton_oneSubscriptionNoEuiccMgr_noAddClickListener()
[all …]
DSubscriptionUtilTest.java61 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
70 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_oneSubscription_oneResult()
80 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_twoSubscriptions_twoResults()
88 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mSubMgr); in getActiveSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
97 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mSubMgr); in getActiveSubscriptions_oneSubscription_oneResult()
108 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mSubMgr); in getActiveSubscriptions_twoSubscriptions_twoResults()
115 assertThat(SubscriptionUtil.isInactiveInsertedPSim(null)).isFalse(); in isInactiveInsertedPSim_nullSubInfo_doesNotCrash()
DMobileNetworkListControllerTest.java95 SubscriptionUtil.setAvailableSubscriptionsForTesting(null); in tearDown()
131 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in displayPreference_twoSubscriptions_correctlySetup()
166 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup()
197 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in onSubscriptionsChanged_twoSubscriptionsOneChangesName_preferenceUpdated()
215 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2, sub3)); in onSubscriptionsChanged_startWithThreeSubsAndRemoveOne_correctPreferenceRemoved()
223 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub3)); in onSubscriptionsChanged_startWithThreeSubsAndRemoveOne_correctPreferenceRemoved()
DSubscriptionsPreferenceControllerTest.java134 SubscriptionUtil.setActiveSubscriptionsForTesting(null); in tearDown()
195 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 1)); in onSubscriptionsChanged_countBecameTwo_eventFired()
201 SubscriptionUtil.setActiveSubscriptionsForTesting(subs); in onSubscriptionsChanged_countBecameTwo_eventFired()
216 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 1)); in onSubscriptionsChanged_countBecameOne_eventFiredAndPrefsRemoved()
229 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 2)); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
241 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(subs.get(0), subs.get(2))); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
518 SubscriptionUtil.setActiveSubscriptionsForTesting(infos); in setupMockSubscriptions()
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkSummaryController.java108 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions( in getSummary()
120 && !SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in getSummary()
122 SubscriptionUtil.getDisplayName(info)); in getSummary()
149 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions( in update()
182 && !SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in update()
DMobileNetworkListController.java100 final List<SubscriptionInfo> subscriptions = SubscriptionUtil.getAvailableSubscriptions( in update()
120 } else if (SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in update()
124 SubscriptionUtil.getDisplayName(info))); in update()
130 && !SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in update()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDisableSimFooterPreferenceController.java23 import com.android.settings.network.SubscriptionUtil;
52 for (SubscriptionInfo info : SubscriptionUtil.getAvailableSubscriptions(mContext)) { in getAvailabilityStatus()
54 if (info.isEmbedded() || SubscriptionUtil.showToggleForPhysicalSim(subManager)) { in getAvailabilityStatus()
DMobileNetworkSwitchController.java33 import com.android.settings.network.SubscriptionUtil;
96 for (SubscriptionInfo info : SubscriptionUtil.getAvailableSubscriptions(mContext)) { in update()
105 if (subInfo == null || (!subInfo.isEmbedded() && !SubscriptionUtil.showToggleForPhysicalSim( in update()
DDefaultSubscriptionController.java39 import com.android.settings.network.SubscriptionUtil;
88 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mManager); in getAvailabilityStatus()
145 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mManager); in updateEntries()
DDeleteSimProfilePreferenceController.java31 import com.android.settings.network.SubscriptionUtil;
53 for (SubscriptionInfo info : SubscriptionUtil.getAvailableSubscriptions(mContext)) { in init()
DContactDiscoveryPreferenceController.java38 import com.android.settings.network.SubscriptionUtil;
143 for (SubscriptionInfo info : SubscriptionUtil.getAvailableSubscriptions(context)) { in getCarrierDisplayName()
DMobileDataSlice.java42 import com.android.settings.network.SubscriptionUtil;
184 SubscriptionUtil.getSelectableSubscriptionInfoList(mContext); in isMobileDataAvailable()
DMobileNetworkActivity.java42 import com.android.settings.network.SubscriptionUtil;
240 return SubscriptionUtil.getAvailableSubscription(this, in getSubscriptionForSubId()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSettingsTest.java36 import com.android.settings.network.SubscriptionUtil;
99 SubscriptionUtil.setActiveSubscriptionsForTesting(new ArrayList<>( in setupFragment_oneSubscription_noCrash()
123 SubscriptionUtil.setActiveSubscriptionsForTesting(new ArrayList<>( in setupFragment_twoSubscriptions_correctSelection()
147 SubscriptionUtil.setActiveSubscriptionsForTesting(new ArrayList<>( in setupFragment_twoSubscriptionsOneNotProvisionedOnDevice_oneResult()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DDefaultSubscriptionController.java28 import com.android.car.developeroptions.network.SubscriptionUtil;
78 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mManager); in getAvailabilityStatus()
124 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mManager); in updateEntries()
DMobileNetworkSwitchController.java31 import com.android.car.developeroptions.network.SubscriptionUtil;
96 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions( in update()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DMobileNetworkSummaryController.java98 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions( in getSummary()
131 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions( in update()
DSubscriptionsPreferenceController.java132 for (SubscriptionInfo info : SubscriptionUtil.getActiveSubscriptions(mManager)) { in update()
219 return SubscriptionUtil.getActiveSubscriptions(mManager).size() >= 2; in isAvailable()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettings.java38 import com.android.settings.network.SubscriptionUtil;
197 mSil = SubscriptionUtil.getActiveSubscriptions( in updateSubList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSettings.java39 import com.android.car.developeroptions.network.SubscriptionUtil;
203 mSil = SubscriptionUtil.getActiveSubscriptions( in updateSubList()

12