/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 | 54 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()
|
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/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 67 @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/ |
D | NetworkStatsSubscriptionsMonitor.java | 74 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/ |
D | SubscriptionInfoUpdaterTest.java | 154 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 …]
|
D | TelephonyRegistryTest.java | 183 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/ |
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 | 74 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/ |
D | EmergencyAffordanceServiceTest.java | 79 @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/ |
D | EuiccController.java | 97 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/ |
D | PasspointNetworkEvaluator.java | 58 private SubscriptionManager mSubscriptionManager; field in PasspointNetworkEvaluator 83 mSubscriptionManager = subscriptionManager; in PasspointNetworkEvaluator() 139 && !TelephonyUtil.isSimPresent(mSubscriptionManager)) { in evaluateNetworks()
|
D | PasspointManager.java | 132 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/ |
D | NetworkControllerImpl.java | 101 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/ |
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 | 190 @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/ |
D | SubscriptionInfoUpdater.java | 116 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()
|
D | IccProvider.java | 81 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/ |
D | EuiccControllerTest.java | 1158 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/ |
D | CarrierTextControllerTest.java | 102 private SubscriptionManager mSubscriptionManager; field in CarrierTextControllerTest 116 mContext.addMockSystemService(SubscriptionManager.class, mSubscriptionManager); in setUp() 214 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn( in testMoreSlotsThanSubs()
|
D | KeyguardUpdateMonitorTest.java | 112 private SubscriptionManager mSubscriptionManager; field in KeyguardUpdateMonitorTest 140 context.addMockSystemService(SubscriptionManager.class, mSubscriptionManager); in setup() 468 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn(list); in testGetSubscriptionInfo_whenInGroupedSubWithOpportunistic()
|