/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | MmTelFeatureConnectionTest.java | 111 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/ |
D | DataUsageUtilsTest.java | 53 private SubscriptionManager mSubscriptionManager; field in DataUsageUtilsTest 70 when(mContext.getSystemService(SubscriptionManager.class)).thenReturn(mSubscriptionManager); in setUp() 78 when(mSubscriptionManager.getSubscriptionsInGroup(mParcelUuid)).thenReturn(mInfos); in setUp() 83 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(null); in getMobileTemplate_infoNull_returnMobileAll() 92 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(mInfo1); in getMobileTemplate_infoExisted_returnMobileMerged()
|
D | DataUsageControllerTest.java | 61 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/ |
D | SIMAccessor.java | 12 private final SubscriptionManager mSubscriptionManager; field in SIMAccessor 18 mSubscriptionManager = SubscriptionManager.from(context); in SIMAccessor() 26 for (int subId : mSubscriptionManager.getActiveSubscriptionIdList()) { in getMatchingImsis()
|
D | SavedNetworkEvaluator.java | 42 private final SubscriptionManager mSubscriptionManager; field in SavedNetworkEvaluator 68 mSubscriptionManager = subscriptionManager; in SavedNetworkEvaluator() 234 && !TelephonyUtil.isSimPresent(mSubscriptionManager)) { in evaluateNetworks()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SubscriptionInfoUpdaterTest.java | 159 doReturn(new int[]{FAKE_SUB_ID_1}).when(mSubscriptionManager).getActiveSubscriptionIdList(); in setUp() 309 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoaded() local 311 verify(mSubscriptionManager, times(1)).addSubscriptionInfoRecord( in testSimLoaded() 356 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoadedEmptyOperatorNumeric() local 358 verify(mSubscriptionManager, times(1)).addSubscriptionInfoRecord( in testSimLoadedEmptyOperatorNumeric() 384 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockedWithOutIccId() local 385 verify(mSubscriptionManager, times(1)).addSubscriptionInfoRecord( in testSimLockedWithOutIccId() 410 doReturn(new int[]{FAKE_SUB_ID_1, FAKE_SUB_ID_2}).when(mSubscriptionManager) in testDualSimLoaded() 419 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testDualSimLoaded() local 420 verify(mSubscriptionManager, times(0)).addSubscriptionInfoRecord(anyString(), anyInt()); in testDualSimLoaded() [all …]
|
D | TelephonyRegistryTest.java | 129 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(activeSubs); in testActiveDataSubChanged()
|
D | ContextFixture.java | 233 return mSubscriptionManager; in getSystemService() 560 private final SubscriptionManager mSubscriptionManager = mock(SubscriptionManager.class); field in ContextFixture
|
D | TelephonyTest.java | 250 protected SubscriptionManager mSubscriptionManager; field in TelephonyTest 375 mSubscriptionManager = (SubscriptionManager) mContext.getSystemService( in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | CarrierNetworkConfigTest.java | 67 @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()
|
D | SavedNetworkEvaluatorTest.java | 80 mClock, mLocalLog, mWifiConnectivityHelper, mSubscriptionManager); in setUp() 82 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[0]); in setUp() 98 @Mock private SubscriptionManager mSubscriptionManager; field in SavedNetworkEvaluatorTest
|
D | CellularLinkLayerStatsCollectorTest.java | 79 @Mock SubscriptionManager mSubscriptionManager; field in CellularLinkLayerStatsCollectorTest 87 .thenReturn(mSubscriptionManager); in setUp()
|
/frameworks/base/services/core/java/com/android/server/emergency/ |
D | EmergencyAffordanceService.java | 71 private SubscriptionManager mSubscriptionManager; field in EmergencyAffordanceService 166 mSubscriptionManager = SubscriptionManager.from(mContext); in onBootPhase() 174 mSubscriptionManager.addOnSubscriptionsChangedListener(mSubscriptionChangedListener); in onBootPhase() 220 mSubscriptionManager.getActiveSubscriptionInfoList(); in handleUpdateSimSubscriptionInfo()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/ |
D | EuiccController.java | 87 private final SubscriptionManager mSubscriptionManager; field in EuiccController 125 mSubscriptionManager = (SubscriptionManager) in EuiccController() 725 && !mSubscriptionManager.canManageSubscription(sub, callingPackage)) { in deleteSubscription() 814 if (!mSubscriptionManager.canManageSubscription(sub, callingPackage)) { in switchToSubscription() 925 && !mSubscriptionManager.canManageSubscription(sub, callingPackage)) { in updateSubscriptionNickname() 1111 List<SubscriptionInfo> subs = mSubscriptionManager.getAvailableSubscriptionInfoList(); in getSubscriptionForSubscriptionId() 1227 List<SubscriptionInfo> subInfoList = mSubscriptionManager in canManageActiveSubscriptionOnTargetSim() 1240 && mSubscriptionManager.canManageSubscription(subInfo, callingPackage)) { in canManageActiveSubscriptionOnTargetSim() 1255 List<SubscriptionInfo> subInfoList = mSubscriptionManager in canManageSubscriptionOnTargetSim() 1289 return mSubscriptionManager.canManageSubscription(subInfo, callingPackage); in canManageSubscriptionOnTargetSim() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluator.java | 58 private SubscriptionManager mSubscriptionManager; field in PasspointNetworkEvaluator 83 mSubscriptionManager = subscriptionManager; in PasspointNetworkEvaluator() 139 && !TelephonyUtil.isSimPresent(mSubscriptionManager)) { in evaluateNetworks()
|
D | PasspointManager.java | 119 private final SubscriptionManager mSubscriptionManager; field in PasspointManager 316 mSubscriptionManager = subscriptionManager; in PasspointManager() 416 if (!TelephonyUtil.isSimPresent(mSubscriptionManager)) { in findEapMethodFromNAIRealmMatchedWithCarrier() 579 if (!TelephonyUtil.isSimPresent(mSubscriptionManager)) { in installEphemeralPasspointConfigForCarrier()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | CarrierTextControllerTest.java | 94 private SubscriptionManager mSubscriptionManager; field in CarrierTextControllerTest 108 mContext.addMockSystemService(SubscriptionManager.class, mSubscriptionManager); in setUp() 146 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn( in testMoreSlotsThanSubs() 363 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn(list); in testCarrierText_GroupedSubWithOpportunisticCarrierText()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluatorTest.java | 89 @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()
|
D | PasspointManagerTest.java | 178 @Mock SubscriptionManager mSubscriptionManager; field in PasspointManagerTest 209 mWifiConfigStore, mWifiMetrics, mTelephonyManager, mSubscriptionManager); in setUp() 225 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[0]); in setUp() 1520 mSubscriptionManager); in verifyCreateEphemeralPasspointConfigurationWithNonCarrierEapMethod() 1538 mSubscriptionManager); in verifyCreateEphemeralPasspointConfigurationWithCarrierEapMethod() 1556 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in verifyInstallEphemeralPasspointConfigurationWithNonCarrierEapMethod() 1571 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in verifyInstallEphemeralPasspointConfiguration() 1617 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch() 1639 mSubscriptionManager); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithMatch() 1661 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[1]); in verifyFindEapMethodFromNAIRealmMatchedWithCarrierWithNoMatch() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionInfoUpdater.java | 111 private SubscriptionManager mSubscriptionManager = null; field in SubscriptionInfoUpdater 151 mSubscriptionManager = SubscriptionManager.from(mContext); in SubscriptionInfoUpdater() 620 mSubscriptionManager.addSubscriptionInfoRecord(mIccId[slotIndex], slotIndex); in updateSubscriptionInfoByIccId() 650 if (mSubscriptionManager.isActiveSubId( in updateSubscriptionInfoByIccId() 651 mSubscriptionManager.getDefaultDataSubscriptionId())) { in updateSubscriptionInfoByIccId() 652 mSubscriptionManager.setDefaultDataSubId( in updateSubscriptionInfoByIccId() 653 mSubscriptionManager.getDefaultDataSubscriptionId()); in updateSubscriptionInfoByIccId()
|
D | IccProvider.java | 82 private SubscriptionManager mSubscriptionManager; field in IccProvider 86 mSubscriptionManager = SubscriptionManager.from(getContext()); in onCreate() 127 List<SubscriptionInfo> subInfoList = mSubscriptionManager in loadAllSimContacts()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/ |
D | EuiccControllerTest.java | 1056 when(mSubscriptionManager.canManageSubscription(subInfo, PACKAGE_NAME)).thenReturn( in setHasCarrierPrivilegesOnActiveSubscription() 1058 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn( in setHasCarrierPrivilegesOnActiveSubscription() 1081 when(mSubscriptionManager.canManageSubscription(subInfo1, PACKAGE_NAME)).thenReturn( in setCanManageSubscriptionOnTargetSim() 1083 when(mSubscriptionManager.canManageSubscription(subInfo2, PACKAGE_NAME)).thenReturn( in setCanManageSubscriptionOnTargetSim() 1086 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn(subInfos); in setCanManageSubscriptionOnTargetSim() 1094 when(mSubscriptionManager.canManageSubscription(subInfo, PACKAGE_NAME)).thenReturn( in prepareOperationSubscription() 1096 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn( in prepareOperationSubscription()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerImpl.java | 107 private final SubscriptionManager mSubscriptionManager; field in NetworkControllerImpl 201 mSubscriptionManager = subManager; in NetworkControllerImpl() 299 mSubscriptionManager.addOnSubscriptionsChangedListener(mSubscriptionListener); in registerListeners() 328 mSubscriptionManager.removeOnSubscriptionsChangedListener(mSubscriptionListener); in unregisterListeners() 590 List<SubscriptionInfo> subscriptions = mSubscriptionManager in doUpdateMobileControllers() 951 int start = mSubscriptionManager.getActiveSubscriptionInfoCountMax(); in dispatchDemoCommand()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 230 private SubscriptionManager mSubscriptionManager; field in KeyguardUpdateMonitor 426 List<SubscriptionInfo> sil = mSubscriptionManager.getActiveSubscriptionInfoList(); in handleSimSubscriptionInfoChanged() 478 sil = mSubscriptionManager.getActiveSubscriptionInfoList(); in getSubscriptionInfo() 1435 mSubscriptionManager = SubscriptionManager.from(context); in KeyguardUpdateMonitor() 1477 mSubscriptionManager.addOnSubscriptionsChangedListener(mSubscriptionListener); in KeyguardUpdateMonitor()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 234 private @Mock SubscriptionManager mSubscriptionManager; field in NetworkPolicyManagerServiceTest 338 return mSubscriptionManager; in callSystemReady() 1388 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[]{FAKE_SUB_ID}); 1399 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[]{FAKE_SUB_ID}); 1853 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn( in expectMobileDefaults()
|