Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DMmTelFeatureConnectionTest.java111 verify(mSubscriptionManager, never()).addOnSubscriptionsChangedListener( in testCallbackAdapter_addAndRemoveCallback()
118 verify(mSubscriptionManager, never()).removeOnSubscriptionsChangedListener( in testCallbackAdapter_addAndRemoveCallback()
133 verify(mSubscriptionManager, times(1)).addOnSubscriptionsChangedListener( in testCallbackAdapter_addAndRemoveCallbackForSub()
138 verify(mSubscriptionManager, times(1)).removeOnSubscriptionsChangedListener( in testCallbackAdapter_addAndRemoveCallbackForSub()
160 verify(mSubscriptionManager, times(1)).addOnSubscriptionsChangedListener( in testCallbackAdapter_addAndRemoveCallbackForMultipleSubs()
166 verify(mSubscriptionManager, never()).removeOnSubscriptionsChangedListener( in testCallbackAdapter_addAndRemoveCallbackForMultipleSubs()
171 verify(mSubscriptionManager, times(1)).removeOnSubscriptionsChangedListener( in testCallbackAdapter_addAndRemoveCallbackForMultipleSubs()
192 verify(mSubscriptionManager, times(1)).addOnSubscriptionsChangedListener( in testCallbackAdapter_onSubscriptionsChangedMultipleSubs()
197 .when(mSubscriptionManager).getActiveSubscriptionInfoList(anyBoolean()); in testCallbackAdapter_onSubscriptionsChangedMultipleSubs()
202 verify(mSubscriptionManager, never()).removeOnSubscriptionsChangedListener( in testCallbackAdapter_onSubscriptionsChangedMultipleSubs()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageUtilsTest.java54 private SubscriptionManager mSubscriptionManager; field in DataUsageUtilsTest
70 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp()
74 when(mSubscriptionManager.isActiveSubId(anyInt())).thenReturn(true); in setUp()
79 when(mSubscriptionManager.isActiveSubId(SUB_ID)).thenReturn(false); in getMobileTemplate_infoNull_returnMobileAll()
88 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_groupUuidNull_returnMobileAll()
100 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_groupUuidExist_returnMobileMerged()
DDataUsageControllerTest.java61 private SubscriptionManager mSubscriptionManager; field in DataUsageControllerTest
80 .thenReturn(mSubscriptionManager); in setUp()
189 when(mSubscriptionManager.getActiveSubscriptionIdList()) in getTelephonyManager_noExplicitSubIdOrDefaultSub_shouldCreateWithActiveSub()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSIMAccessor.java12 private final SubscriptionManager mSubscriptionManager; field in SIMAccessor
18 mSubscriptionManager = SubscriptionManager.from(context); in SIMAccessor()
26 for (int subId : mSubscriptionManager.getActiveSubscriptionIdList()) { in getMatchingImsis()
DSavedNetworkEvaluator.java42 private final SubscriptionManager mSubscriptionManager; field in SavedNetworkEvaluator
68 mSubscriptionManager = subscriptionManager; in SavedNetworkEvaluator()
234 && !TelephonyUtil.isSimPresent(mSubscriptionManager)) { in evaluateNetworks()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java67 @Mock private SubscriptionManager mSubscriptionManager; field in NetworkStatsSubscriptionsMonitorTest
83 .thenReturn(mSubscriptionManager); in setUp()
94 verify(mSubscriptionManager, never()) in testStartStop()
97 verify(mSubscriptionManager).addOnSubscriptionsChangedListener(mExecutor, mMonitor); in testStartStop()
100 verify(mSubscriptionManager, never()).removeOnSubscriptionsChangedListener(mMonitor); in testStartStop()
102 verify(mSubscriptionManager).removeOnSubscriptionsChangedListener(mMonitor); in testStartStop()
133 when(mSubscriptionManager.getCompleteActiveSubscriptionIdList()).thenReturn(subList); in addTestSub()
142 when(mSubscriptionManager.getCompleteActiveSubscriptionIdList()).thenReturn(subList); in removeTestSub()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java74 private final SubscriptionManager mSubscriptionManager; field in NetworkStatsSubscriptionsMonitor
84 mSubscriptionManager = (SubscriptionManager) context.getSystemService( in NetworkStatsSubscriptionsMonitor()
95 final List<Integer> newSubs = getActiveSubIdList(mSubscriptionManager); in onSubscriptionsChanged()
151 mSubscriptionManager.addOnSubscriptionsChangedListener(mExecutor, this); in start()
158 mSubscriptionManager.removeOnSubscriptionsChangedListener(this); in stop()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java154 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionManager).getActiveSubscriptionIdList(); in setUp()
267 verify(mSubscriptionManager, never()).addSubscriptionInfoRecord(any(), anyInt()); in testSimNotReadyEmptyProfile()
294 verify(mSubscriptionManager, never()).addSubscriptionInfoRecord(any(), anyInt()); in testSimNotReadyDisabledUiccApps()
409 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoaded() local
411 verify(mSubscriptionManager, times(1)).addSubscriptionInfoRecord( in testSimLoaded()
456 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoadedEmptyOperatorNumeric() local
458 verify(mSubscriptionManager, times(1)).addSubscriptionInfoRecord( in testSimLoadedEmptyOperatorNumeric()
483 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockedWithOutIccId() local
484 verify(mSubscriptionManager, times(1)).addSubscriptionInfoRecord( in testSimLockedWithOutIccId()
508 doReturn(new int[]{FAKE_SUB_ID_1, FAKE_SUB_ID_2}).when(mSubscriptionManager) in testDualSimLoaded()
[all …]
DTelephonyRegistryTest.java183 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testPhoneCapabilityChanged()
206 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(activeSubs); in testActiveDataSubChanged()
231 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testSrvccStateChanged()
307 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testPreciseDataConnectionStateChanged()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCarrierNetworkConfigTest.java67 @Mock SubscriptionManager mSubscriptionManager; field in CarrierNetworkConfigTest
105 .thenReturn(mSubscriptionManager); in setUp()
110 when(mSubscriptionManager.getActiveSubscriptionInfoList()) in setUp()
154 when(mSubscriptionManager.getActiveSubscriptionInfoList()) in getExistingCarrierNetworkInfo_nullDisplayName_shouldNotThrowNpe()
221 when(mSubscriptionManager.getActiveSubscriptionInfoList()) in receivedCarrierConfigChangedIntent()
DSavedNetworkEvaluatorTest.java80 mClock, mLocalLog, mWifiConnectivityHelper, mSubscriptionManager); in setUp()
82 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[0]); in setUp()
98 @Mock private SubscriptionManager mSubscriptionManager; field in SavedNetworkEvaluatorTest
DCellularLinkLayerStatsCollectorTest.java79 @Mock SubscriptionManager mSubscriptionManager; field in CellularLinkLayerStatsCollectorTest
87 .thenReturn(mSubscriptionManager); in setUp()
/frameworks/base/services/core/java/com/android/server/emergency/
DEmergencyAffordanceService.java74 private SubscriptionManager mSubscriptionManager; field in EmergencyAffordanceService
192 mSubscriptionManager = SubscriptionManager.from(mContext); in handleThirdPartyBootPhase()
193 mSubscriptionManager.addOnSubscriptionsChangedListener(mSubscriptionChangedListener); in handleThirdPartyBootPhase()
210 mSubscriptionManager.getActiveSubscriptionInfoList(); in handleUpdateSimSubscriptionInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/emergency/
DEmergencyAffordanceServiceTest.java79 @Mock private SubscriptionManager mSubscriptionManager; field in EmergencyAffordanceServiceTest
107 return mSubscriptionManager; in getSystemService()
413 doReturn(subInfos).when(mSubscriptionManager).getActiveSubscriptionInfoList(); in setUpSim()
431 verify(mSubscriptionManager).addOnSubscriptionsChangedListener( in captureSubscriptionChangeListener()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java97 private final SubscriptionManager mSubscriptionManager; field in EuiccController
140 mSubscriptionManager = (SubscriptionManager) in EuiccController()
903 && !mSubscriptionManager.canManageSubscription(sub, callingPackage)) { in deleteSubscription()
990 if (!mSubscriptionManager.canManageSubscription(sub, callingPackage)) { in switchToSubscription()
1099 && !mSubscriptionManager.canManageSubscription(sub, callingPackage)) { in updateSubscriptionNickname()
1345 List<SubscriptionInfo> subs = mSubscriptionManager.getAvailableSubscriptionInfoList(); in getSubscriptionForSubscriptionId()
1462 List<SubscriptionInfo> subInfoList = mSubscriptionManager in canManageActiveSubscriptionOnTargetSim()
1475 && mSubscriptionManager.canManageSubscription(subInfo, callingPackage)) { in canManageActiveSubscriptionOnTargetSim()
1490 List<SubscriptionInfo> subInfoList = mSubscriptionManager in canManageSubscriptionOnTargetSim()
1524 return mSubscriptionManager.canManageSubscription(subInfo, callingPackage); in canManageSubscriptionOnTargetSim()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java58 private SubscriptionManager mSubscriptionManager; field in PasspointNetworkEvaluator
83 mSubscriptionManager = subscriptionManager; in PasspointNetworkEvaluator()
139 && !TelephonyUtil.isSimPresent(mSubscriptionManager)) { in evaluateNetworks()
DPasspointManager.java132 private final SubscriptionManager mSubscriptionManager; field in PasspointManager
356 mSubscriptionManager = subscriptionManager; in PasspointManager()
460 if (!TelephonyUtil.isSimPresent(mSubscriptionManager)) { in findEapMethodFromNAIRealmMatchedWithCarrier()
623 if (!TelephonyUtil.isSimPresent(mSubscriptionManager)) { in installEphemeralPasspointConfigForCarrier()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java101 private final SubscriptionManager mSubscriptionManager; field in NetworkControllerImpl
204 mSubscriptionManager = subManager; in NetworkControllerImpl()
309 SubscriptionInfo info1 = mSubscriptionManager.getActiveSubscriptionInfo(subId1); in isInGroupDataSwitch()
310 SubscriptionInfo info2 = mSubscriptionManager.getActiveSubscriptionInfo(subId2); in isInGroupDataSwitch()
332 mSubscriptionManager.addOnSubscriptionsChangedListener(mSubscriptionListener); in registerListeners()
361 mSubscriptionManager.removeOnSubscriptionsChangedListener(mSubscriptionListener); in unregisterListeners()
629 List<SubscriptionInfo> subscriptions = mSubscriptionManager in doUpdateMobileControllers()
993 int start = mSubscriptionManager.getActiveSubscriptionInfoCountMax(); in dispatchDemoCommand()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluatorTest.java89 @Mock SubscriptionManager mSubscriptionManager; field in PasspointNetworkEvaluatorTest
155 mCarrierNetworkConfig, mWifiInjector, mSubscriptionManager); in setUp()
159 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in setUp()
390 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[0]); in evaluateScanMatchingSIMProviderWithoutSIMCard()
419 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in evaluateSIMProviderWithNetworkSupportingEncryptedIMSI()
459 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[0]); in skipCreateEphemeralPasspointConfigurationWithoutSIMCard()
DPasspointManagerTest.java190 @Mock SubscriptionManager mSubscriptionManager; field in PasspointManagerTest
221 mWifiConfigStore, mWifiMetrics, mTelephonyManager, mSubscriptionManager); in setUp()
237 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[0]); in setUp()
1636 mSubscriptionManager); in verifyCreateEphemeralPasspointConfigurationWithNonCarrierEapMethod()
1654 mSubscriptionManager); in verifyCreateEphemeralPasspointConfigurationWithCarrierEapMethod()
1672 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in verifyInstallEphemeralPasspointConfigurationWithNonCarrierEapMethod()
1687 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in verifyInstallEphemeralPasspointConfiguration()
1733 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch()
1755 mSubscriptionManager); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch()
1777 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionInfoUpdater.java116 private SubscriptionManager mSubscriptionManager = null; field in SubscriptionInfoUpdater
154 mSubscriptionManager = SubscriptionManager.from(sContext); in SubscriptionInfoUpdater()
742 mSubscriptionManager.addSubscriptionInfoRecord(sIccId[phoneId], phoneId); in updateSubscriptionInfoByIccId()
772 if (mSubscriptionManager.isActiveSubId( in updateSubscriptionInfoByIccId()
773 mSubscriptionManager.getDefaultDataSubscriptionId())) { in updateSubscriptionInfoByIccId()
774 mSubscriptionManager.setDefaultDataSubId( in updateSubscriptionInfoByIccId()
775 mSubscriptionManager.getDefaultDataSubscriptionId()); in updateSubscriptionInfoByIccId()
DIccProvider.java81 private SubscriptionManager mSubscriptionManager; field in IccProvider
89 mSubscriptionManager = SubscriptionManager.from(getContext()); in onCreate()
130 List<SubscriptionInfo> subInfoList = mSubscriptionManager in loadAllSimContacts()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccControllerTest.java1158 when(mSubscriptionManager.canManageSubscription(subInfo, PACKAGE_NAME)).thenReturn( in setHasCarrierPrivilegesOnActiveSubscription()
1160 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn( in setHasCarrierPrivilegesOnActiveSubscription()
1183 when(mSubscriptionManager.canManageSubscription(subInfo1, PACKAGE_NAME)).thenReturn( in setCanManageSubscriptionOnTargetSim()
1185 when(mSubscriptionManager.canManageSubscription(subInfo2, PACKAGE_NAME)).thenReturn( in setCanManageSubscriptionOnTargetSim()
1188 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn(subInfos); in setCanManageSubscriptionOnTargetSim()
1196 when(mSubscriptionManager.canManageSubscription(subInfo, PACKAGE_NAME)).thenReturn( in prepareOperationSubscription()
1198 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn( in prepareOperationSubscription()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextControllerTest.java102 private SubscriptionManager mSubscriptionManager; field in CarrierTextControllerTest
116 mContext.addMockSystemService(SubscriptionManager.class, mSubscriptionManager); in setUp()
214 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn( in testMoreSlotsThanSubs()
DKeyguardUpdateMonitorTest.java112 private SubscriptionManager mSubscriptionManager; field in KeyguardUpdateMonitorTest
140 context.addMockSystemService(SubscriptionManager.class, mSubscriptionManager); in setup()
468 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn(list); in testGetSubscriptionInfo_whenInGroupedSubWithOpportunistic()

12