Home
last modified time | relevance | path

Searched refs:subscriptionManager (Results 1 – 25 of 29) 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/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataSlice.java149 protected static int getDefaultSubscriptionId(SubscriptionManager subscriptionManager) { in getDefaultSubscriptionId() argument
150 final SubscriptionInfo defaultSubscription = subscriptionManager.getActiveSubscriptionInfo( in getDefaultSubscriptionId()
151 subscriptionManager.getDefaultDataSubscriptionId()); in getDefaultSubscriptionId()
220 final SubscriptionManager subscriptionManager = in onSlicePinned() local
223 getDefaultSubscriptionId(subscriptionManager)); in onSlicePinned()
DMobileNetworkUtils.java346 final SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled() local
352 subscriptionManager.getActiveSubscriptionInfoList(); in setMobileDataEnabled()
717 final SubscriptionManager subscriptionManager = context.getSystemService( in getActiveSubscriptionIdList() local
720 subscriptionManager.getActiveSubscriptionInfoList(); in getActiveSubscriptionIdList()
/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
55 result.add(subscriptionManager.getActiveSubscriptionInfo(subId)); in getCurrentSubscriptions()
DSimSelectNotification.java104 SubscriptionManager subscriptionManager = ((SubscriptionManager) context.getSystemService( in onEnableMmsDataRequest() local
106 if (!subscriptionManager.isActiveSubId(subId)) { in onEnableMmsDataRequest()
110 final SubscriptionInfo info = subscriptionManager.getActiveSubscriptionInfo(subId); in onEnableMmsDataRequest()
/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/Settings/src/com/android/settings/network/
DSubscriptionUtil.java131 ProxySubscriptionManager subscriptionManager, int subId) { in getAvailableSubscription() argument
132 final SubscriptionInfo subInfo = subscriptionManager.getAccessibleSubscriptionInfo(subId); in getAvailableSubscription()
141 subscriptionManager.getAccessibleSubscriptionsInfo(), subId)) { in getAvailableSubscription()
/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.java148 SubscriptionManager subscriptionManager, in DataUsageSummaryPreferenceController() argument
161 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.java210 SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in getNextSubIdForState() local
211 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()

12