Home
last modified time | relevance | path

Searched refs:subscriptionManager (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageUtilsTest.java51 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getDefaultSubscriptionId_noSubscriptions_returnsInvalidId() local
52 when(subscriptionManager.getDefaultDataSubscriptionInfo()).thenReturn(null); in getDefaultSubscriptionId_noSubscriptions_returnsInvalidId()
53 when(subscriptionManager.getAllSubscriptionInfoList()).thenReturn(Collections.emptyList()); in getDefaultSubscriptionId_noSubscriptions_returnsInvalidId()
55 assertThat(DataUsageUtils.getDefaultSubscriptionId(subscriptionManager)).isEqualTo( in getDefaultSubscriptionId_noSubscriptions_returnsInvalidId()
61 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription() local
62 when(subscriptionManager.getDefaultDataSubscriptionInfo()).thenReturn(null); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
68 when(subscriptionManager.getAllSubscriptionInfoList()).thenReturn( in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
71 assertThat(DataUsageUtils.getDefaultSubscriptionId(subscriptionManager)).isEqualTo(1); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription()
76 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getDefaultSubscriptionId_hasDefaultSubscription_returnsDefaultSubscription() local
79 when(subscriptionManager.getDefaultDataSubscriptionInfo()).thenReturn(info); in getDefaultSubscriptionId_hasDefaultSubscription_returnsDefaultSubscription()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DSubscriptionUtilsTest.java43 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned() local
49 when(subscriptionManager.getSelectableSubscriptionInfoList()).thenReturn(selectable); in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned()
53 subscriptionManager, telephonyManager); in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned()
60 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned() local
70 when(subscriptionManager.getAllSubscriptionInfoList()).thenReturn(allSims); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()
74 subscriptionManager, telephonyManager); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()
81 SubscriptionManager subscriptionManager = mock(SubscriptionManager.class); in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved() local
87 when(subscriptionManager.getSelectableSubscriptionInfoList()).thenReturn(selectable); in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved()
91 subscriptionManager, telephonyManager); in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageUtils.java58 public static int getDefaultSubscriptionId(SubscriptionManager subscriptionManager) { in getDefaultSubscriptionId() argument
59 if (subscriptionManager == null) { in getDefaultSubscriptionId()
62 SubscriptionInfo subscriptionInfo = subscriptionManager.getDefaultDataSubscriptionInfo(); in getDefaultSubscriptionId()
64 List<SubscriptionInfo> list = subscriptionManager.getAllSubscriptionInfoList(); in getDefaultSubscriptionId()
DDataUsageEntryPreferenceController.java59 SubscriptionManager subscriptionManager = getContext().getSystemService( in formatUsedData() local
61 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData()
65 SubscriptionPlan defaultPlan = DataUsageUtils.getPrimaryPlan(subscriptionManager, in formatUsedData()
DAppDataUsageFragment.java86 SubscriptionManager subscriptionManager = context.getSystemService( in onAttach() local
88 subId = DataUsageUtils.getDefaultSubscriptionId(subscriptionManager); in onAttach()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimDialogActivity.java120 final SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in setDefaultDataSubId() local
123 subscriptionManager.setDefaultDataSubId(subId); in setDefaultDataSubId()
129 final SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in setDefaultSmsSubId() local
130 subscriptionManager.setDefaultSmsSubId(subId); in setDefaultSmsSubId()
157 final SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in createDialog() local
159 subscriptionManager.getActiveSubscriptionInfoList(true); in createDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkUtils.java224 final SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled() local
230 subscriptionManager.getActiveSubscriptionInfoList(true); in setMobileDataEnabled()
416 final SubscriptionManager subscriptionManager = context.getSystemService( in getSearchableSubscriptionId() local
418 final int subIds[] = subscriptionManager.getActiveSubscriptionIdList(); in getSearchableSubscriptionId()
435 final SubscriptionManager subscriptionManager = context.getSystemService( in getAvailability() local
442 final int[] subIds = subscriptionManager.getActiveSubscriptionIdList(); in getAvailability()
DMobileDataSlice.java161 protected static int getDefaultSubscriptionId(SubscriptionManager subscriptionManager) { in getDefaultSubscriptionId() argument
163 subscriptionManager.getDefaultDataSubscriptionInfo(); in getDefaultSubscriptionId()
235 final SubscriptionManager subscriptionManager = in onSlicePinned() local
238 getDefaultSubscriptionId(subscriptionManager)); in onSlicePinned()
/packages/apps/Settings/src/com/android/settings/sim/
DSimDialogActivity.java149 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultDataSubId() local
152 subscriptionManager.setDefaultDataSubId(subId); in setDefaultDataSubId()
164 final SubscriptionManager subscriptionManager = getSystemService(SubscriptionManager.class); in setDefaultSmsSubId() local
165 subscriptionManager.setDefaultSmsSubId(subId); in setDefaultSmsSubId()
DCallsSimListDialogFragment.java38 final SubscriptionManager subscriptionManager = context.getSystemService( in getCurrentSubscriptions() local
56 result.add(subscriptionManager.getActiveSubscriptionInfo(subId)); in getCurrentSubscriptions()
DSimSelectNotification.java103 SubscriptionManager subscriptionManager = ((SubscriptionManager) context.getSystemService( in onEnableMmsDataRequest() local
105 if (!subscriptionManager.isActiveSubId(subId)) { in onEnableMmsDataRequest()
109 final SubscriptionInfo info = subscriptionManager.getActiveSubscriptionInfo(subId); in onEnableMmsDataRequest()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkUtils.java241 final SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled() local
247 subscriptionManager.getActiveSubscriptionInfoList(true); in setMobileDataEnabled()
440 final SubscriptionManager subscriptionManager = context.getSystemService( in getSearchableSubscriptionId() local
442 final int subIds[] = subscriptionManager.getActiveSubscriptionIdList(); in getSearchableSubscriptionId()
459 final SubscriptionManager subscriptionManager = context.getSystemService( in getAvailability() local
466 final int[] subIds = subscriptionManager.getActiveSubscriptionIdList(); in getAvailability()
DMobileDataSlice.java149 protected static int getDefaultSubscriptionId(SubscriptionManager subscriptionManager) { in getDefaultSubscriptionId() argument
151 subscriptionManager.getDefaultDataSubscriptionInfo(); in getDefaultSubscriptionId()
223 final SubscriptionManager subscriptionManager = in onSlicePinned() local
226 getDefaultSubscriptionId(subscriptionManager)); in onSlicePinned()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DSubscriptionUtils.java44 SubscriptionManager subscriptionManager, TelephonyManager telephonyManager) { in getAvailableSubscriptions() argument
46 emptyIfNull(subscriptionManager.getSelectableSubscriptionInfoList())); in getAvailableSubscriptions()
66 for (SubscriptionInfo info : subscriptionManager.getAllSubscriptionInfoList()) { in getAvailableSubscriptions()
DNetworkUtils.java65 SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled() local
71 subscriptionManager.getActiveSubscriptionInfoList(); in setMobileDataEnabled()
/packages/services/Telephony/src/com/android/phone/vvm/
DVvmSimStateTracker.java177 SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in checkRemovedSim() local
180 if (!PhoneUtils.isPhoneAccountActive(subscriptionManager, phoneAccountHandle)) { in checkRemovedSim()
188 if (!PhoneUtils.isPhoneAccountActive(subscriptionManager, phoneAccountHandle)) { in checkRemovedSim()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java395 final SubscriptionManager subscriptionManager = SubscriptionManager.from(mContext); in getSelfNumber() local
396 final SubscriptionInfo info = subscriptionManager.getActiveSubscriptionInfo( in getSelfNumber()
416 final SubscriptionManager subscriptionManager = SubscriptionManager.from(mContext); in getSimOrLocaleCountry() local
417 final SubscriptionInfo info = subscriptionManager.getActiveSubscriptionInfo( in getSimOrLocaleCountry()
DUtils.java105 final SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in getMccMnc() local
106 final SubscriptionInfo subInfo = subscriptionManager.getActiveSubscriptionInfo(subId); in getMccMnc()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java293 SubscriptionManager subscriptionManager = (SubscriptionManager) mActivity in formatUsedData() local
295 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData()
300 .getPrimaryPlan(subscriptionManager, defaultSubId); in formatUsedData()
DDataUsageSummaryPreferenceController.java144 SubscriptionManager subscriptionManager, in DataUsageSummaryPreferenceController() argument
157 mSubscriptionManager = subscriptionManager; in DataUsageSummaryPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummary.java304 SubscriptionManager subscriptionManager = (SubscriptionManager) mActivity in formatUsedData() local
306 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData()
311 .getPrimaryPlan(subscriptionManager, defaultSubId); in formatUsedData()
DDataUsageSummaryPreferenceController.java145 SubscriptionManager subscriptionManager, in DataUsageSummaryPreferenceController() argument
158 mSubscriptionManager = subscriptionManager; in DataUsageSummaryPreferenceController()
/packages/services/Telephony/src/com/android/phone/
DSpecialCharSequenceMgr.java209 SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in getNextSubIdForState() local
210 List<SubscriptionInfo> list = subscriptionManager.getActiveSubscriptionInfoList(); in getNextSubIdForState()
/packages/apps/Dialer/java/com/android/dialer/telecom/
DTelecomUtil.java194 SubscriptionManager subscriptionManager = context.getSystemService(SubscriptionManager.class); in getSubscriptionInfo() local
195 List<SubscriptionInfo> subscriptionInfos = subscriptionManager.getActiveSubscriptionInfoList(); in getSubscriptionInfo()
/packages/apps/Contacts/src/com/android/contacts/database/
DSimContactDaoImpl.java254 final SubscriptionManager subscriptionManager = (SubscriptionManager) in getSimCardsFromSubscriptions() local
256 final List<SubscriptionInfo> subscriptions = subscriptionManager in getSimCardsFromSubscriptions()

12