Home
last modified time | relevance | path

Searched refs:mSubscriptionManager (Results 1 – 25 of 102) sorted by relevance

12345

/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileSelectorTest.java107 this.mSubscriptionManager = ONSProfileSelectorTest.this.mSubscriptionManager; in init()
179 doReturn(new ArrayList<>()).when(mSubscriptionManager) in testStartProfileSelectionWithNoOpportunisticSub()
212 doReturn(subscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(subId); in testStartProfileSelectionSuccess()
239 doReturn(subscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionSuccess()
241 doReturn(true).when(mSubscriptionManager).isActiveSubId(subId); in testStartProfileSelectionSuccess()
288 doReturn(subscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testStartProfileSelectionWithDifferentPrioritySubInfo()
289 doReturn(subscriptionInfo_2).when(mSubscriptionManager).getActiveSubscriptionInfo(8); in testStartProfileSelectionWithDifferentPrioritySubInfo()
326 doReturn(subscriptionInfoList).when(mSubscriptionManager) in testStartProfileSelectionWithDifferentPrioritySubInfo()
328 doReturn(true).when(mSubscriptionManager).isActiveSubId(anyInt()); in testStartProfileSelectionWithDifferentPrioritySubInfo()
363 doReturn(subscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(5); in testStartProfileSelectionWithActivePrimarySimOnESim()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileNetworkSwitchControllerTest.java56 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()
109 when(mSubscriptionManager.canDisablePhysicalSubscription()).thenReturn(true); in isAvailable_pSIM_isNotAvailable()
116 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(mSubId); in displayPreference_oneEnabledSubscription_switchBarNotHidden()
124 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(mSubId); in displayPreference_oneDisabledSubscription_switchBarNotHidden()
132 when(mSubscriptionManager.isActiveSubscriptionId(mSubId)).thenReturn(true); in displayPreference_subscriptionEnabled_switchIsOn()
140 when(mSubscriptionManager.isActiveSubscriptionId(mSubId)).thenReturn(false); in displayPreference_subscriptionDisabled_switchIsOff()
148 when(mSubscriptionManager.isActiveSubscriptionId(mSubId)).thenReturn(true); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
153 verify(mSubscriptionManager).setSubscriptionEnabled(eq(mSubId), eq(false)); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
[all …]
DDisabledSubscriptionControllerTest.java48 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()
DMobileDataSliceTest.java65 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()
82 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn( in setUp()
111 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOn_updatesMobileData()
123 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOff_updatesMobileData()
135 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOff_airplaneModeOn_mobileDataDoesNotUpdate()
174 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn(new ArrayList<>()); in isMobileDataAvailable_noSubscriptions_slicePrimaryActionIsEmpty()
182 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn(null); in isMobileDataAvailable_nullSubscriptions_slicePrimaryActionIsEmpty()
191 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in airplaneModeEnabled_slicePrimaryActionIsEmpty()
DMobileDataPreferenceControllerTest.java61 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()
DNrDisabledInDsdsFooterPreferenceControllerTest.java48 private SubscriptionManager mSubscriptionManager; field in NrDisabledInDsdsFooterPreferenceControllerTest
56 doReturn(mSubscriptionManager).when(mContext).getSystemService( in setUp()
72 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_dataOnAndDsdsAnd5GSupported_Available()
82 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_5gNotSupported_notAvailable()
92 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1, 2}); in isAvailable_mobileDataOff_notAvailable()
102 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[] {1}); in isAvailable_singleSimMode_notAvailable()
DMobileNetworkActivityTest.java72 private ShadowSubscriptionManager mSubscriptionManager; field in MobileNetworkActivityTest
93 mSubscriptionManager = shadowOf(mContext.getSystemService(SubscriptionManager.class)); in setUp()
139 mSubscriptionManager.setActiveSubscriptionInfos(mSubscriptionInfo1); in updateBottomNavigationView_oneSubscription_shouldNotCrash()
148 mSubscriptionManager.setActiveSubscriptionInfos(mSubscriptionInfo1, mSubscriptionInfo2); in updateBottomNavigationView_twoSubscription_shouldNotCrash()
157 mSubscriptionManager.setActiveSubscriptionInfos(mSubscriptionInfo1, mSubscriptionInfo2); in switchFragment_switchBetweenTwoSubscriptions()
173 mSubscriptionManager.setActiveSubscriptionInfos(mSubscriptionInfo1, mSubscriptionInfo2); in switchFragment_subscriptionsUpdate_notifyByIntent()
201 mSubscriptionManager.setActiveSubscriptionInfos(mSubscriptionInfo1, mSubscriptionInfo2); in onSaveInstanceState_saveCurrentSubId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DCellDataPreference.java57 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 …]
DDataUsageSummaryPreferenceController.java77 private final SubscriptionManager mSubscriptionManager; field in DataUsageSummaryPreferenceController
136 mSubscriptionManager = (SubscriptionManager) in DataUsageSummaryPreferenceController()
161 mSubscriptionManager = subscriptionManager; in DataUsageSummaryPreferenceController()
226 if (mSubscriptionManager != null) { in updateState()
274 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(mSubscriptionId); in refreshDataplanInfo()
276 subInfo = mSubscriptionManager.getAllSubscriptionInfoList().stream().filter( in refreshDataplanInfo()
281 List<SubscriptionPlan> plans = mSubscriptionManager.getSubscriptionPlans( in refreshDataplanInfo()
283 final SubscriptionPlan primaryPlan = getPrimaryPlan(mSubscriptionManager, in refreshDataplanInfo()
331 List<SubscriptionPlan> plans = mSubscriptionManager.getSubscriptionPlans(subId); in createManageSubscriptionIntent()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkUpdateManager.java50 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()
DMobileDataTogglePreferenceController.java52 private final SubscriptionManager mSubscriptionManager; field in MobileDataTogglePreferenceController
77 mSubscriptionManager = getContext().getSystemService(SubscriptionManager.class); in MobileDataTogglePreferenceController()
140 int defaultSubId = mSubscriptionManager.getDefaultDataSubscriptionId(); in handlePreferenceChanged()
141 boolean needToDisableOthers = mSubscriptionManager.isActiveSubscriptionId(defaultSubId) in handlePreferenceChanged()
167 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in isOpportunistic()
189 mSubscriptionManager.getDefaultDataSubscriptionInfo(); in getConfirmMultisimEnableDialog()
191 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in getConfirmMultisimEnableDialog()
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkListController.java56 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()
120 } else if (SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in update()
129 if (!info.isEmbedded() && !mSubscriptionManager.isActiveSubscriptionId(subId) in update()
130 && !SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in update()
131 mSubscriptionManager.setSubscriptionEnabled(subId, true); in update()
DMobileNetworkSummaryController.java58 private SubscriptionManager mSubscriptionManager; field in MobileNetworkSummaryController
81 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in MobileNetworkSummaryController()
119 if (!info.isEmbedded() && !mSubscriptionManager.isActiveSubscriptionId(subId) in getSummary()
120 && !SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in getSummary()
181 if (!info.isEmbedded() && !mSubscriptionManager.isActiveSubscriptionId(subId) in update()
182 && !SubscriptionUtil.showToggleForPhysicalSim(mSubscriptionManager)) { in update()
183 mSubscriptionManager.setSubscriptionEnabled(subId, true); in update()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileSelector.java93 protected SubscriptionManager mSubscriptionManager; field in ONSProfileSelector
170 if (mSubscriptionManager.isActiveSubId(subId)) {
343 return mSubscriptionManager.isActiveSubscriptionId(subId); in isAvtiveSub()
357 mSubscriptionManager.switchToSubscription(subId, replyIntent); in switchToSubscription()
452 mSubscriptionManager.getActiveSubscriptionInfoList(false); in isPrimaryActiveOnOpportunisticSlot()
533 … 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 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(subId); in enableModem()
[all …]
DOpportunisticNetworkService.java62 @VisibleForTesting protected SubscriptionManager mSubscriptionManager; field in OpportunisticNetworkService
141 mSubscriptionManager.getActiveSubscriptionInfoList(false); in handleSimStateChange()
168 || mSubscriptionManager.canManageSubscription( in hasOpportunisticSubPrivilege()
191 mContext, mSubscriptionManager.getDefaultSubscriptionId(), "setEnable");
221 mContext, mSubscriptionManager.getDefaultSubscriptionId(), "isEnabled");
245mSubscriptionManager.getDefaultSubscriptionId(), "setPreferredDataSubscriptionId");
284 mSubscriptionManager.getDefaultSubscriptionId(),
321 mSubscriptionManager.getDefaultSubscriptionId(), "updateAvailableNetworks");
390 mSubscriptionManager = (SubscriptionManager) mContext.getSystemService( in initialize()
434 mSubscriptionManager.isActiveSubId(availableNetworkInfo.getSubId()); in handleCarrierAppAvailableNetworks()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkListControllerTest.java66 private SubscriptionManager mSubscriptionManager; field in MobileNetworkListControllerTest
84 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp()
129 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(eq(1)); in displayPreference_twoSubscriptions_correctlySetup()
130 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(eq(2)); in displayPreference_twoSubscriptions_correctlySetup()
161 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(eq(1)); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup()
162 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(eq(2)); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup()
163 doReturn(false).when(mSubscriptionManager).canDisablePhysicalSubscription(); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup()
181 verify(mSubscriptionManager).setSubscriptionEnabled(eq(2), eq(true)); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup()
185 clearInvocations(mSubscriptionManager); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup()
186 doReturn(true).when(mSubscriptionManager).canDisablePhysicalSubscription(); in displayPreference_oneActiveESimOneInactivePSim_correctlySetup()
DActiveSubsciptionsListenerTest.java70 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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkActivity.java59 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()
DMobileNetworkSwitchController.java50 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/
DMobileNetworkSwitchController.java45 private SubscriptionManager mSubscriptionManager; field in MobileNetworkSwitchController
50 mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in MobileNetworkSwitchController()
81 if (mSubscriptionManager.isActiveSubscriptionId(mSubId) != isChecked in displayPreference()
82 && (!mSubscriptionManager.setSubscriptionEnabled(mSubId, isChecked))) { in displayPreference()
106 mSubscriptionManager))) { in update()
110 mSwitchBar.setCheckedInternal(mSubscriptionManager.isActiveSubscriptionId(mSubId)); in update()
DMobileDataDialogFragment.java49 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/Settings/tests/robotests/src/com/android/settings/datausage/lib/
DDataUsageLibTest.java55 private SubscriptionManager mSubscriptionManager; field in DataUsageLibTest
71 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp()
75 when(mSubscriptionManager.isActiveSubscriptionId(anyInt())).thenReturn(true); in setUp()
81 when(mSubscriptionManager.isActiveSubscriptionId(SUB_ID)).thenReturn(false); in getMobileTemplate_infoNull_returnMobileAll()
91 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_groupUuidNull_returnMobileAll()
104 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_groupUuidExist_returnMobileMerged()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java68 private final SubscriptionManager mSubscriptionManager; field in DataUsageSummaryPreferenceController
96 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in DataUsageSummaryPreferenceController()
100 int defaultSubId = DataUsageUtils.getDefaultSubscriptionId(mSubscriptionManager); in DataUsageSummaryPreferenceController()
125 if (mSubscriptionManager != null) { in updateState()
239 SubscriptionInfo subInfo = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in refreshDataplanInfo()
242 List<SubscriptionPlan> plans = mSubscriptionManager.getSubscriptionPlans(defaultSubId); in refreshDataplanInfo()
243 SubscriptionPlan primaryPlan = DataUsageUtils.getPrimaryPlan(mSubscriptionManager, in refreshDataplanInfo()
287 List<SubscriptionPlan> plans = mSubscriptionManager.getSubscriptionPlans(subId); in createManageSubscriptionIntent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimSettings.java72 private SubscriptionManager mSubscriptionManager; field in SimSettings
94 mSubscriptionManager = SubscriptionManager.from(getActivity()); in onCreate()
116 mSubInfoList = mSubscriptionManager.getActiveSubscriptionInfoList(true); in updateSubscriptions()
127 final SubscriptionInfo sir = mSubscriptionManager in updateSubscriptions()
163 final SubscriptionInfo sir = mSubscriptionManager.getDefaultSmsSubscriptionInfo(); in updateSmsValues()
178 final SubscriptionInfo sir = mSubscriptionManager.getDefaultDataSubscriptionInfo(); in updateCellularDataValues()
213 mSubscriptionManager.addOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onResume()
230 mSubscriptionManager.removeOnSubscriptionsChangedListener(mOnSubscriptionsChangeListener); in onPause()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java411 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()

12345