/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | ONSProfileSelectorTest.java | 96 this.mSubscriptionManager = ONSProfileSelectorTest.this.mSubscriptionManager; in init() 153 doReturn(new ArrayList<>()).when(mSubscriptionManager) in testStartProfileSelectionWithNoOpportunisticSub() 212 doReturn(subscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionSuccess() 214 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionSuccess() 297 doReturn(subscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionWithDifferentPrioritySubInfo() 299 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionWithDifferentPrioritySubInfo() 355 doReturn(opportunisticSubscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionWithActivePrimarySimOnESim() 357 doReturn(false).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionWithActivePrimarySimOnESim() 358 doReturn(activeSubscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionWithActivePrimarySimOnESim() 401 doReturn(new ArrayList<>()).when(mSubscriptionManager).getOpportunisticSubscriptions(); in testselectProfileForDataWithNoOpportunsticSub() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | MobileNetworkSwitchControllerTest.java | 56 private SubscriptionManager mSubscriptionManager; field in MobileNetworkSwitchControllerTest 75 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp() 76 when(mSubscriptionManager.setSubscriptionEnabled(eq(mSubId), anyBoolean())) in setUp() 112 doReturn(true).when(mSubscriptionManager).isActiveSubId(mSubId); in displayPreference_oneEnabledSubscription_switchBarNotHidden() 120 doReturn(false).when(mSubscriptionManager).isActiveSubId(mSubId); in displayPreference_oneDisabledSubscription_switchBarNotHidden() 128 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(true); in displayPreference_subscriptionEnabled_switchIsOn() 136 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(false); in displayPreference_subscriptionDisabled_switchIsOff() 144 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(true); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly() 149 verify(mSubscriptionManager).setSubscriptionEnabled(eq(mSubId), eq(false)); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly() 154 when(mSubscriptionManager.setSubscriptionEnabled(eq(mSubId), anyBoolean())) in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed() [all …]
|
D | DisabledSubscriptionControllerTest.java | 48 private SubscriptionManager mSubscriptionManager; field in DisabledSubscriptionControllerTest 63 doReturn(mSubscriptionManager).when(mContext).getSystemService(SubscriptionManager.class); in setUp() 72 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in displayPreference_subscriptionEnabled_categoryIsVisible() 79 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in displayPreference_subscriptionDisabled_categoryIsNotVisible() 86 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesDisabled_categoryIsNotVisible() 88 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesDisabled_categoryIsNotVisible() 95 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesEnabled_categoryIsVisible() 97 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID); in onSubscriptionsChanged_subscriptionBecomesEnabled_categoryIsVisible()
|
D | MobileDataSliceTest.java | 65 private SubscriptionManager mSubscriptionManager; field in MobileDataSliceTest 78 doReturn(mSubscriptionManager).when(mContext).getSystemService(SubscriptionManager.class); in setUp() 80 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in setUp() 83 .when(mSubscriptionManager).getSelectableSubscriptionInfoList(); in setUp() 112 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOn_updatesMobileData() 124 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOff_updatesMobileData() 136 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOff_airplaneModeOn_mobileDataDoesNotUpdate() 175 doReturn(new ArrayList<>()).when(mSubscriptionManager).getSelectableSubscriptionInfoList(); in isMobileDataAvailable_noSubscriptions_slicePrimaryActionIsEmpty() 183 doReturn(null).when(mSubscriptionManager).getSelectableSubscriptionInfoList(); in isMobileDataAvailable_nullSubscriptions_slicePrimaryActionIsEmpty() 192 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in airplaneModeEnabled_slicePrimaryActionIsEmpty()
|
D | MobileDataPreferenceControllerTest.java | 61 private SubscriptionManager mSubscriptionManager; field in MobileDataPreferenceControllerTest 77 doReturn(mSubscriptionManager).when(mContext).getSystemService(SubscriptionManager.class); in setUp() 100 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in isDialogNeeded_disableSingleSim_returnFalse() 109 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue() 110 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(SUB_ID_OTHER); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue() 131 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in onPreferenceChange_singleSim_On_shouldEnableData() 142 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in onPreferenceChange_multiSim_On_shouldEnableData() 161 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in updateState_opportunistic_disabled() 173 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in updateState_notOpportunistic_enabled()
|
D | NrDisabledInDsdsFooterPreferenceControllerTest.java | 47 private SubscriptionManager mSubscriptionManager; field in NrDisabledInDsdsFooterPreferenceControllerTest 55 doReturn(mSubscriptionManager).when(mContext).getSystemService( in setUp() 70 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_dataOnAndDsdsAnd5GSupported_Available() 80 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_5gNotSupported_notAvailable() 90 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_mobileDataOff_notAvailable() 100 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); in isAvailable_singleSimMode_notAvailable()
|
D | MobileNetworkActivityTest.java | 84 private SubscriptionManager mSubscriptionManager; field in MobileNetworkActivityTest 108 mMobileNetworkActivity.mSubscriptionManager = mSubscriptionManager; in setUp() 112 doReturn(mSubscriptionManager).when(mMobileNetworkActivity).getSystemService( in setUp() 133 doReturn(mSubscriptionInfos).when(mSubscriptionManager).getActiveSubscriptionInfoList( in updateBottomNavigationView_oneSubscription_shouldBeGone() 146 doReturn(mSubscriptionInfos).when(mSubscriptionManager).getActiveSubscriptionInfoList( in updateBottomNavigationView_twoSubscription_updateMenu() 229 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(CURRENT_SUB_ID); in getSubscriptionId_hasIntent_getIdFromIntent()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | CellDataPreference.java | 57 SubscriptionManager mSubscriptionManager; field in CellDataPreference 92 if (mSubscriptionManager!= null) { in onAttached() 93 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onAttached() 100 if (mSubscriptionManager!= null) { in onDetached() 101 mSubscriptionManager.removeOnSubscriptionsChangedListener( in onDetached() 112 mSubscriptionManager = SubscriptionManager.from(getContext()); in setTemplate() 115 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in setTemplate() 132 setEnabled(mSubscriptionManager.getActiveSubscriptionInfo(mSubId) != null); in updateEnabled() 140 final SubscriptionInfo currentSir = mSubscriptionManager.getActiveSubscriptionInfo( in performClick() 142 final SubscriptionInfo nextSir = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in performClick() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | CellDataPreference.java | 57 SubscriptionManager mSubscriptionManager; field in CellDataPreference 92 if (mSubscriptionManager!= null) { in onAttached() 93 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onAttached() 100 if (mSubscriptionManager!= null) { in onDetached() 101 mSubscriptionManager.removeOnSubscriptionsChangedListener( in onDetached() 112 mSubscriptionManager = SubscriptionManager.from(getContext()); in setTemplate() 115 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in setTemplate() 132 setEnabled(mSubscriptionManager.getActiveSubscriptionInfo(mSubId) != null); in updateEnabled() 140 final SubscriptionInfo currentSir = mSubscriptionManager.getActiveSubscriptionInfo( in performClick() 142 final SubscriptionInfo nextSir = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in performClick() [all …]
|
D | DataUsageSummaryPreferenceController.java | 74 private final SubscriptionManager mSubscriptionManager; field in DataUsageSummaryPreferenceController 133 mSubscriptionManager = (SubscriptionManager) in DataUsageSummaryPreferenceController() 158 mSubscriptionManager = subscriptionManager; in DataUsageSummaryPreferenceController() 223 if (mSubscriptionManager != null) { in updateState() 271 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(mSubscriptionId); in refreshDataplanInfo() 273 subInfo = mSubscriptionManager.getAllSubscriptionInfoList().stream().filter( in refreshDataplanInfo() 278 List<SubscriptionPlan> plans = mSubscriptionManager.getSubscriptionPlans( in refreshDataplanInfo() 280 final SubscriptionPlan primaryPlan = getPrimaryPlan(mSubscriptionManager, in refreshDataplanInfo() 301 mSubscriptionManager.createManageSubscriptionIntent(mSubscriptionId); in refreshDataplanInfo()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | ONSProfileSelector.java | 93 protected SubscriptionManager mSubscriptionManager; field in ONSProfileSelector 169 if (mSubscriptionManager.isActiveSubId(subId)) { 342 return mSubscriptionManager.isActiveSubscriptionId(subId); in isAvtiveSub() 356 mSubscriptionManager.switchToSubscription(subId, replyIntent); in switchToSubscription() 451 mSubscriptionManager.getActiveSubscriptionInfoList(false); in isPrimaryActiveOnOpportunisticSlot() 532 … if (!mSubscriptionManager.isActiveSubId(filteredAvailableNetworks.get(0).getSubId())) { in checkProfileUpdate() 575 mSubscriptionManager.getActiveSubscriptionInfoList(false); in isActiveSub() 615 mSubscriptionManager.getOpportunisticSubscriptions(); in isOpportunisticSubEmbedded() 633 mSubscriptionManager.getActiveSubscriptionInfoList(false); in getActiveOpportunisticSubId() 675 if (!mSubscriptionManager.isActiveSubId(subId)) { in enableModem() [all …]
|
D | OpportunisticNetworkService.java | 58 @VisibleForTesting protected SubscriptionManager mSubscriptionManager; field in OpportunisticNetworkService 130 mSubscriptionManager.getActiveSubscriptionInfoList(false); in handleSimStateChange() 157 || mSubscriptionManager.canManageSubscription( in hasOpportunisticSubPrivilege() 180 mContext, mSubscriptionManager.getDefaultSubscriptionId(), "setEnable"); 210 mContext, mSubscriptionManager.getDefaultSubscriptionId(), "isEnabled"); 234 … mSubscriptionManager.getDefaultSubscriptionId(), "setPreferredDataSubscriptionId"); 273 mSubscriptionManager.getDefaultSubscriptionId(), 310 mSubscriptionManager.getDefaultSubscriptionId(), "updateAvailableNetworks"); 376 mSubscriptionManager = (SubscriptionManager) mContext.getSystemService( in initialize() 419 () -> mSubscriptionManager.isActiveSubId( in handleCarrierAppAvailableNetworks() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileNetworkUpdateManager.java | 50 private final SubscriptionManager mSubscriptionManager; field in MobileNetworkUpdateManager 60 mSubscriptionManager.getActiveSubscriptionInfoList( 69 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in MobileNetworkUpdateManager() 70 mSubscriptionInfos = mSubscriptionManager.getActiveSubscriptionInfoList(); in MobileNetworkUpdateManager() 108 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onStart() 114 mSubscriptionManager.removeOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onStop() 119 mSubscriptionInfos = mSubscriptionManager.getActiveSubscriptionInfoList(); in updateSubscriptions() 148 mSubscriptionManager.getSelectableSubscriptionInfoList()) { in getSubscription()
|
D | MobileDataTogglePreferenceController.java | 52 private final SubscriptionManager mSubscriptionManager; field in MobileDataTogglePreferenceController 77 mSubscriptionManager = getContext().getSystemService(SubscriptionManager.class); in MobileDataTogglePreferenceController() 135 int defaultSubId = mSubscriptionManager.getDefaultDataSubscriptionId(); in handlePreferenceChanged() 136 boolean needToDisableOthers = mSubscriptionManager.isActiveSubscriptionId(defaultSubId) in handlePreferenceChanged() 162 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in isOpportunistic() 184 mSubscriptionManager.getDefaultDataSubscriptionInfo(); in getConfirmMultisimEnableDialog() 186 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in getConfirmMultisimEnableDialog()
|
D | MobileNetworkFragment.java | 42 private SubscriptionManager mSubscriptionManager; field in MobileNetworkFragment 67 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in onAttach() 100 mSubscriptionManager.getSelectableSubscriptionInfoList()) { in onMobileNetworkUpdated() 108 mSubscriptionManager.getActiveSubscriptionInfoList())) { in onMobileNetworkUpdated() 109 info = mSubscriptionManager.getActiveSubscriptionInfoList().get(0); in onMobileNetworkUpdated()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | MobileNetworkActivity.java | 59 SubscriptionManager mSubscriptionManager; field in MobileNetworkActivity 72 mSubscriptionManager.getActiveSubscriptionInfoList(true))) { 96 mSubscriptionManager = getSystemService(SubscriptionManager.class); in onCreate() 97 mSubscriptionInfos = mSubscriptionManager.getActiveSubscriptionInfoList(true); in onCreate() 114 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onStart() 121 mSubscriptionManager.removeOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onStop() 145 mSubscriptionInfos = mSubscriptionManager.getActiveSubscriptionInfoList(true); in updateSubscriptions() 168 mSubscriptionManager.getSelectableSubscriptionInfoList()) { in getSubscription()
|
D | MobileNetworkSwitchController.java | 50 private SubscriptionManager mSubscriptionManager; field in MobileNetworkSwitchController 55 mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in MobileNetworkSwitchController() 84 if (mSubscriptionManager.isSubscriptionEnabled(mSubId) != isChecked in displayPreference() 85 && (!mSubscriptionManager.setSubscriptionEnabled(mSubId, isChecked))) { in displayPreference() 97 mSubscriptionManager); in update() 106 mSwitchBar.setChecked(mSubscriptionManager.isSubscriptionEnabled(mSubId)); in update()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileDataDialogFragment.java | 49 private SubscriptionManager mSubscriptionManager; field in MobileDataDialogFragment 67 mSubscriptionManager = getContext().getSystemService(SubscriptionManager.class); in onCreate() 87 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in onCreateDialog() 89 mSubscriptionManager.getActiveSubscriptionInfo( in onCreateDialog() 90 mSubscriptionManager.getDefaultDataSubscriptionId()); in onCreateDialog() 129 mSubscriptionManager.setDefaultDataSubId(mSubId); in onClick()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceController.java | 63 private final SubscriptionManager mSubscriptionManager; field in DataUsageSummaryPreferenceController 91 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in DataUsageSummaryPreferenceController() 95 int defaultSubId = DataUsageUtils.getDefaultSubscriptionId(mSubscriptionManager); in DataUsageSummaryPreferenceController() 120 if (mSubscriptionManager != null) { in updateState() 234 SubscriptionInfo subInfo = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in refreshDataplanInfo() 237 List<SubscriptionPlan> plans = mSubscriptionManager.getSubscriptionPlans(defaultSubId); in refreshDataplanInfo() 238 SubscriptionPlan primaryPlan = DataUsageUtils.getPrimaryPlan(mSubscriptionManager, in refreshDataplanInfo() 256 mManageSubscriptionIntent = mSubscriptionManager.createManageSubscriptionIntent( in refreshDataplanInfo()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | MobileNetworkListController.java | 56 private SubscriptionManager mSubscriptionManager; field in MobileNetworkListController 63 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in MobileNetworkListController() 112 if (mSubscriptionManager.isActiveSubscriptionId(subId)) { in update() 118 if (mSubscriptionManager.isActiveSubscriptionId(subId)) { in update() 127 if (!info.isEmbedded() && !mSubscriptionManager.isActiveSubscriptionId(subId)) { in update() 128 mSubscriptionManager.setSubscriptionEnabled(subId, true); in update()
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimSettings.java | 73 private SubscriptionManager mSubscriptionManager; field in SimSettings 95 mSubscriptionManager = SubscriptionManager.from(getActivity()); in onCreate() 117 mSubInfoList = mSubscriptionManager.getActiveSubscriptionInfoList(true); in updateSubscriptions() 128 final SubscriptionInfo sir = mSubscriptionManager in updateSubscriptions() 164 final SubscriptionInfo sir = mSubscriptionManager.getDefaultSmsSubscriptionInfo(); in updateSmsValues() 179 final SubscriptionInfo sir = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in updateCellularDataValues() 215 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onResume() 232 mSubscriptionManager.removeOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onPause()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/ |
D | SimSettings.java | 73 private SubscriptionManager mSubscriptionManager; field in SimSettings 95 mSubscriptionManager = SubscriptionManager.from(getActivity()); in onCreate() 117 mSubInfoList = mSubscriptionManager.getActiveSubscriptionInfoList(true); in updateSubscriptions() 128 final SubscriptionInfo sir = mSubscriptionManager in updateSubscriptions() 164 final SubscriptionInfo sir = mSubscriptionManager.getDefaultSmsSubscriptionInfo(); in updateSmsValues() 179 final SubscriptionInfo sir = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in updateCellularDataValues() 215 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onResume() 232 mSubscriptionManager.removeOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onPause()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | ActiveSubsciptionsListenerTest.java | 70 private SubscriptionManager mSubscriptionManager; field in ActiveSubsciptionsListenerTest 85 mSubscriptionManager = spy(mContext.getSystemService(SubscriptionManager.class)); in setUp() 86 mShadowSubscriptionManager = shadowOf(mSubscriptionManager); in setUp() 96 doReturn(mSubscriptionManager).when(mListener).getSubscriptionManager(); in setUp() 190 verify(mSubscriptionManager, times(numberOfAccess)).getActiveSubscriptionInfoList(); in start_alwaysFetchAndCacheResult() 202 verify(mSubscriptionManager, times(numberOfAccess)).getActiveSubscriptionInfoList(); in start_alwaysFetchAndCacheResult()
|
D | MobileNetworkListControllerTest.java | 65 private SubscriptionManager mSubscriptionManager; field in MobileNetworkListControllerTest 83 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp() 128 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(eq(1)); in displayPreference_twoSubscriptions_correctlySetup() 129 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(eq(2)); in displayPreference_twoSubscriptions_correctlySetup() 160 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(eq(1)); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup() 161 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(eq(2)); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup() 179 verify(mSubscriptionManager).setSubscriptionEnabled(eq(2), eq(true)); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | PhoneUtils.java | 411 private final SubscriptionManager mSubscriptionManager; field in PhoneUtils.PhoneUtilsLMR1 415 mSubscriptionManager = SubscriptionManager.from(Factory.get().getApplicationContext()); in PhoneUtilsLMR1() 433 return mSubscriptionManager.getActiveSubscriptionInfoCountMax(); in getSimSlotCount() 454 return mSubscriptionManager.getActiveSubscriptionInfoCount() > 0; in hasSim() 459 return mSubscriptionManager.isNetworkRoaming(mSubId); in isRoaming() 505 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in getActiveSubscriptionInfo() 524 mSubscriptionManager.getActiveSubscriptionInfoList(); in getActiveSubscriptionInfoList() 542 mSubscriptionManager.addOnSubscriptionsChangedListener(listener); in registerOnSubscriptionsChangedListener() 567 return mSubscriptionManager.getActiveSubscriptionInfoCount(); in getActiveSubscriptionCount() 578 if (mSubscriptionManager.getActiveSubscriptionInfoCount() > 1) { in getEffectiveIncomingSubIdFromSystem()
|