/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageUtilsTest.java | 51 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/ |
D | SubscriptionUtilsTest.java | 43 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/ |
D | DataUsageUtils.java | 58 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()
|
D | DataUsageEntryPreferenceController.java | 59 SubscriptionManager subscriptionManager = getContext().getSystemService( in formatUsedData() local 61 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData() 65 SubscriptionPlan defaultPlan = DataUsageUtils.getPrimaryPlan(subscriptionManager, in formatUsedData()
|
D | AppDataUsageFragment.java | 86 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/ |
D | SimDialogActivity.java | 120 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/ |
D | MobileNetworkUtils.java | 224 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()
|
D | MobileDataSlice.java | 161 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/ |
D | SimDialogActivity.java | 149 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()
|
D | CallsSimListDialogFragment.java | 38 final SubscriptionManager subscriptionManager = context.getSystemService( in getCurrentSubscriptions() local 56 result.add(subscriptionManager.getActiveSubscriptionInfo(subId)); in getCurrentSubscriptions()
|
D | SimSelectNotification.java | 103 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/ |
D | MobileNetworkUtils.java | 241 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()
|
D | MobileDataSlice.java | 149 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/ |
D | SubscriptionUtils.java | 44 SubscriptionManager subscriptionManager, TelephonyManager telephonyManager) { in getAvailableSubscriptions() argument 46 emptyIfNull(subscriptionManager.getSelectableSubscriptionInfoList())); in getAvailableSubscriptions() 66 for (SubscriptionInfo info : subscriptionManager.getAllSubscriptionInfoList()) { in getAvailableSubscriptions()
|
D | NetworkUtils.java | 65 SubscriptionManager subscriptionManager = context.getSystemService( in setMobileDataEnabled() local 71 subscriptionManager.getActiveSubscriptionInfoList(); in setMobileDataEnabled()
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
D | VvmSimStateTracker.java | 177 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/ |
D | MmsHttpClient.java | 395 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()
|
D | Utils.java | 105 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/ |
D | DataUsageSummary.java | 293 SubscriptionManager subscriptionManager = (SubscriptionManager) mActivity in formatUsedData() local 295 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData() 300 .getPrimaryPlan(subscriptionManager, defaultSubId); in formatUsedData()
|
D | DataUsageSummaryPreferenceController.java | 144 SubscriptionManager subscriptionManager, in DataUsageSummaryPreferenceController() argument 157 mSubscriptionManager = subscriptionManager; in DataUsageSummaryPreferenceController()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | DataUsageSummary.java | 304 SubscriptionManager subscriptionManager = (SubscriptionManager) mActivity in formatUsedData() local 306 int defaultSubId = subscriptionManager.getDefaultSubscriptionId(); in formatUsedData() 311 .getPrimaryPlan(subscriptionManager, defaultSubId); in formatUsedData()
|
D | DataUsageSummaryPreferenceController.java | 145 SubscriptionManager subscriptionManager, in DataUsageSummaryPreferenceController() argument 158 mSubscriptionManager = subscriptionManager; in DataUsageSummaryPreferenceController()
|
/packages/services/Telephony/src/com/android/phone/ |
D | SpecialCharSequenceMgr.java | 209 SubscriptionManager subscriptionManager = SubscriptionManager.from(context); in getNextSubIdForState() local 210 List<SubscriptionInfo> list = subscriptionManager.getActiveSubscriptionInfoList(); in getNextSubIdForState()
|
/packages/apps/Dialer/java/com/android/dialer/telecom/ |
D | TelecomUtil.java | 194 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/ |
D | SimContactDaoImpl.java | 254 final SubscriptionManager subscriptionManager = (SubscriptionManager) in getSimCardsFromSubscriptions() local 256 final List<SubscriptionInfo> subscriptions = subscriptionManager in getSimCardsFromSubscriptions()
|