Home
last modified time | relevance | path

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

12

/frameworks/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DTelephonyUtilsTest.java51 private SubscriptionManager mSubscriptionManager; field in TelephonyUtilsTest
55 doReturn(mSubscriptionManager).when(mContext) in setup()
63 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(eq(invalidSubId)); in getSubscriptionUserHandle_subId_invalid()
68 verify(mSubscriptionManager, never()).getSubscriptionUserHandle(eq(invalidSubId)); in getSubscriptionUserHandle_subId_invalid()
74 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(eq(activeSubId)); in getSubscriptionUserHandle_subId_valid()
79 verify(mSubscriptionManager, times(1)).getSubscriptionUserHandle(eq(activeSubId)); in getSubscriptionUserHandle_subId_valid()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DPhoneCallStateHandler.java55 private final SubscriptionManager mSubscriptionManager; field in PhoneCallStateHandler
65 mSubscriptionManager = Objects.requireNonNull(subscriptionManager) in PhoneCallStateHandler()
69 mSubscriptionManager.addOnSubscriptionsChangedListener( in PhoneCallStateHandler()
120 List<SubscriptionInfo> infoList = mSubscriptionManager.getActiveSubscriptionInfoList(); in checkCallStatus()
152 List<SubscriptionInfo> infoList = mSubscriptionManager.getActiveSubscriptionInfoList();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DDataConnectionStateTracker.java103 SubscriptionManager mSubscriptionManager = mPhone.getContext() in start() local
105 if (mSubscriptionManager != null) { in start()
106 mSubscriptionManager in start()
116 SubscriptionManager mSubscriptionManager = mPhone.getContext() in stop() local
118 if (mSubscriptionManager != null) { in stop()
119 mSubscriptionManager in stop()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DImsTestBase.java39 protected SubscriptionManager mSubscriptionManager; field in ImsTestBase
47 mSubscriptionManager = (SubscriptionManager) mContext.getSystemService( in setUp()
DContextFixture.java59 private final SubscriptionManager mSubscriptionManager = mock(SubscriptionManager.class); field in ContextFixture
103 return mSubscriptionManager; in getSystemService()
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DTelephonySubscriptionTrackerTest.java145 @NonNull private final SubscriptionManager mSubscriptionManager; field in TelephonySubscriptionTrackerTest
160 mSubscriptionManager = mock(SubscriptionManager.class); in TelephonySubscriptionTrackerTest()
171 doReturn(mSubscriptionManager) in TelephonySubscriptionTrackerTest()
212 .when(mSubscriptionManager) in setUp()
229 verify(mSubscriptionManager).addOnSubscriptionsChangedListener(any(), captor.capture()); in getOnSubscriptionsChangedListener()
319 verify(mSubscriptionManager) in testRegister()
341 verify(mSubscriptionManager).removeOnSubscriptionsChangedListener(eq(listener)); in testUnregister()
466 .when(mSubscriptionManager) in testReceiveBroadcast_ConfigReadyNoSubscriptions()
506 doReturn(Collections.emptyList()).when(mSubscriptionManager).getAllSubscriptionInfoList(); in testSubscriptionsClearedAfterValidTriggersCallbacks()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsControllerTest.java196 doReturn(true).when(mSubscriptionManager) in sendVisualVoicemailSmsForSubscriber_phoneIsNotInEcm()
220 doReturn(true).when(mSubscriptionManager) in sendsendTextForSubscriberTest()
234 doReturn(false).when(mSubscriptionManager) in sendTextForSubscriberTest_InteractAcrossUsers()
250 doReturn(false).when(mSubscriptionManager) in sendTextForSubscriberTestFail()
301 doReturn(true).when(mSubscriptionManager) in sendTextForSubscriberTestEnabledTelephonyFeature()
DTelephonyRegistryTest.java359 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testPhoneCapabilityChanged()
382 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(activeSubs); in testActiveDataSubChanged()
407 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testSrvccStateChanged()
435 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testSrvccStateChangedWithRenouncedLocationAccess()
464 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testSrvccStateChangedWithRenouncedFineLocationAccess()
562 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testDataConnectionStateChanged()
636 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testDataConnectionStateChangedMultipleInternet()
841 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testPreciseDataConnectionStateChanged()
920 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in testPhysicalChannelConfigChanged()
961 doReturn(mMockSubInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in checkBarringInfoWithLocationPermission()
[all …]
DCellBroadcastConfigTrackerTest.java524 verify(mSubscriptionManager, never()).addOnSubscriptionsChangedListener( in testMakeCellBroadcastConfigTracker()
531 verify(mSubscriptionManager, times(1)).addOnSubscriptionsChangedListener( in testMakeCellBroadcastConfigTracker()
538 verify(mSubscriptionManager, times(1)).addOnSubscriptionsChangedListener( in testMakeCellBroadcastConfigTracker()
/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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageControllerTest.java56 private SubscriptionManager mSubscriptionManager; field in DataUsageControllerTest
74 .thenReturn(mSubscriptionManager); in setUp()
183 when(mSubscriptionManager.getActiveSubscriptionIdList()) in getTelephonyManager_noExplicitSubIdOrDefaultSub_shouldCreateWithActiveSub()
/frameworks/base/services/core/java/com/android/server/vcn/
DTelephonySubscriptionTracker.java91 @NonNull private final SubscriptionManager mSubscriptionManager; field in TelephonySubscriptionTracker
134 mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in TelephonySubscriptionTracker()
158 mSubscriptionManager.addOnSubscriptionsChangedListener( in register()
203 mSubscriptionManager.removeOnSubscriptionsChangedListener(mSubscriptionChangedListener); in unregister()
231 final List<SubscriptionInfo> allSubs = mSubscriptionManager.getAllSubscriptionInfoList(); in handleSubscriptionsChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegateControllerTest.java129 private SubscriptionManager mSubscriptionManager; field in InternetDialogDelegateControllerTest
219 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[]{SUB_ID}); in setUp()
222 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(info); in setUp()
232 mSubscriptionManager, mTelephonyManager, mWifiManager, in setUp()
237 mSubscriptionManager.addOnSubscriptionsChangedListener(mExecutor, in setUp()
857 when(mSubscriptionManager.getActiveSubscriptionInfo(anyInt())).thenReturn(info); in getActiveAutoSwitchNonDdsSubId()
870 when(mSubscriptionManager.getActiveSubscriptionInfo(anyInt())).thenReturn(info); in getActiveAutoSwitchNonDdsSubId()
881 when(mSubscriptionManager.getActiveSubscriptionInfo(anyInt())).thenReturn(info); in getActiveAutoSwitchNonDdsSubId_flagOff()
1080 verify(mSubscriptionManager).removeOnSubscriptionsChangedListener(mInternetDialogController in onStop_cleanUp()
1112 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(info); in hasActiveSubIdOnDds_activeDdsAndHasProvisioning_returnFalse()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java124 private final SubscriptionManager mSubscriptionManager; field in EuiccController
171 mSubscriptionManager = (SubscriptionManager) in EuiccController()
1091 && !mSubscriptionManager.canManageSubscription(sub, callingPackage) in deleteSubscription()
1210 if (!mSubscriptionManager.canManageSubscription(sub, callingPackage)) { in switchToSubscription()
1274 List<SubscriptionInfo> subInfoList = mSubscriptionManager in getResolvedPortIndexForDisableSubscription()
1289 || mSubscriptionManager.canManageSubscription(subInfo, callingPackage))) { in getResolvedPortIndexForDisableSubscription()
1340 mSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex( in getResolvedPortIndexForSubscriptionSwitch()
1406 && mSubscriptionManager in isTargetPortIndexValid()
1463 && mSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex( in isRemovalNonEuiccSlotHasActiveSubscription()
1560 && !mSubscriptionManager.canManageSubscription(sub, callingPackage)) { in updateSubscriptionNickname()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogController.java168 private SubscriptionManager mSubscriptionManager; field in InternetDialogController
268 mSubscriptionManager = subscriptionManager; in InternetDialogController()
304 mSubscriptionManager.addOnSubscriptionsChangedListener(mExecutor, in onStart()
339 mSubscriptionManager.removeOnSubscriptionsChangedListener( in onStop()
359 return mSubscriptionManager.getDefaultDataSubscriptionId(); in getDefaultDataSubscriptionId()
534 } else if (mSubscriptionManager != null && shouldInflateSignalStrength(subId)) { in getSignalStrengthDrawableWithLevel()
669 SubscriptionInfo subInfo = mSubscriptionManager.getActiveSubscriptionInfo(
900 return mSubscriptionManager;
922 if (mSubscriptionManager == null) {
933 SubscriptionInfo ddsSubInfo = mSubscriptionManager.getActiveSubscriptionInfo(dds);
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccControllerTest.java1118 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn(subInfos); in testDeleteSubscription_adminOwned_success()
1143 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn(subInfos); in testDeleteSubscription_adminOwned_featureDisabled_success()
1168 when(mSubscriptionManager.getAvailableSubscriptionInfoList()).thenReturn(subInfos); in testDeleteSubscription_adminOwned_noPermissions_error()
1227 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn(null); in testgetResolvedPortIndexForDisableSubscriptionForNoActiveSubscription()
1790 when(mSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex(anyInt())).thenReturn( in testIsSimPortAvailable_port_inActive()
1818 when(mSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex(anyInt())).thenReturn( in testIsSimPortAvailable_port_inActive_disable_compactChange()
1941 when(mSubscriptionManager.canManageSubscription(subInfo, PACKAGE_NAME)).thenReturn( in setHasCarrierPrivilegesOnActiveSubscription()
1943 when(mSubscriptionManager.getActiveSubscriptionInfoList(anyBoolean())).thenReturn( in setHasCarrierPrivilegesOnActiveSubscription()
1978 when(mSubscriptionManager.canManageSubscription(subInfo1, PACKAGE_NAME)).thenReturn( in setCanManageSubscriptionOnTargetSim()
1980 when(mSubscriptionManager.canManageSubscription(subInfo2, PACKAGE_NAME)).thenReturn( in setCanManageSubscriptionOnTargetSim()
[all …]
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DUtilsTest.java146 @Mock private SubscriptionManager mSubscriptionManager; field in UtilsTest
171 .thenReturn(mSubscriptionManager); in setUp()
349 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(new ArrayList<>()); in testCheckSimPresentWithNoSubscription()
359 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(subscriptionInfoList); in testCheckSimPresentWithNoMatchingSubscription()
369 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(subscriptionInfoList); in testCheckSimPresentWithMatchingSubscription()
379 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(subscriptionInfoList); in testCheckSimPresentWithUnknownCarrierId()
427 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(subscriptionInfoList); in testGetSubIdForWifiConfigurationWithMatchingSubscription()
462 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(subscriptionInfoList); in testGetImsiProtectionDescription()
480 when(mSubscriptionManager.getActiveSubscriptionInfoList()).thenReturn(subscriptionInfoList); in testGetImsiProtectionDescription_serverCertNetwork_returnEmptyString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccProvider.java99 private SubscriptionManager mSubscriptionManager; field in IccProvider
107 mSubscriptionManager = SubscriptionManager.from(getContext()); in onCreate()
148 List<SubscriptionInfo> subInfoList = mSubscriptionManager in loadAllSimContacts()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerImpl.java127 private final SubscriptionManager mSubscriptionManager; field in NetworkControllerImpl
316 mSubscriptionManager = subManager; in NetworkControllerImpl()
483 SubscriptionInfo info1 = mSubscriptionManager.getActiveSubscriptionInfo(subId1); in isInGroupDataSwitch()
484 SubscriptionInfo info2 = mSubscriptionManager.getActiveSubscriptionInfo(subId2); in isInGroupDataSwitch()
507 mSubscriptionManager.addOnSubscriptionsChangedListener(mSubscriptionListener); in registerListeners()
557 mSubscriptionManager.removeOnSubscriptionsChangedListener(mSubscriptionListener); in unregisterListeners()
899 List<SubscriptionInfo> subscriptions = mSubscriptionManager in doUpdateMobileControllers()
1296 int start = mSubscriptionManager.getActiveSubscriptionInfoCountMax(); in dispatchDemoCommand()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/
DTelephonyAnalytics.java84 protected SubscriptionManager mSubscriptionManager; field in TelephonyAnalytics
116 mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class); in TelephonyAnalytics()
132 if (mSubscriptionManager != null) { in TelephonyAnalytics()
133 mSubscriptionManager.addOnSubscriptionsChangedListener( in TelephonyAnalytics()
144 mSubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex(mSlotIndex); in getSubId()
/frameworks/libs/gsma_services/satellite_client/src/android/telephony/satellite/wrapper/
DSatelliteManagerWrapper.java114 private final SubscriptionManager mSubscriptionManager; field in SatelliteManagerWrapper
119 mSubscriptionManager = context.getSystemService(SubscriptionManager.class); in SatelliteManagerWrapper()
1025 List<SubscriptionInfo> subInfoList = mSubscriptionManager.getAvailableSubscriptionInfoList(); in isOnlyNonTerrestrialNetworkSubscription()
1385 if (!mSubscriptionManager.isValidSubscriptionId(subId)) { in getServiceStateForSubscriptionId()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DDataCallSessionStatsTest.java364 .setProfileClass(mSubscriptionManager.PROFILE_CLASS_PROVISIONING).build(); in testIsProvisioningProfile()
391 .setProfileClass(mSubscriptionManager.PROFILE_CLASS_OPERATIONAL).build(); in testIsProvisioningProfile()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java232 private SubscriptionManager mSubscriptionManager; field in KeyguardUpdateMonitorTest
461 when(mSubscriptionManager.getSubscriptionIds(anyInt())).thenReturn(new int[]{subId}); in testSimStateInitialized()
1198 when(mSubscriptionManager.getCompleteActiveSubscriptionInfoList()).thenReturn(list); in testGetSubscriptionInfo_whenInGroupedSubWithOpportunistic()
1213 when(mSubscriptionManager.getCompleteActiveSubscriptionInfoList()).thenReturn(list); in testActiveSubscriptionBecomesInactive()
1220 when(mSubscriptionManager.getCompleteActiveSubscriptionInfoList()) in testActiveSubscriptionBecomesInactive()
1236 when(mSubscriptionManager.getCompleteActiveSubscriptionInfoList()).thenReturn(list); in testActiveSubscriptionList_filtersProvisioningNetworks()
1256 when(mSubscriptionManager.getCompleteActiveSubscriptionInfoList()).thenReturn(list); in testActiveSubscriptionList_filtersProvisioningNetworks_untilValid()
2432 mTrustManager, mSubscriptionManager, mUserManager, in TestableKeyguardUpdateMonitor()
DCarrierTextManagerTest.java125 private SubscriptionManager mSubscriptionManager; field in CarrierTextManagerTest
151 mContext.addMockSystemService(SubscriptionManager.class, mSubscriptionManager); in setUp()
323 when(mSubscriptionManager.getCompleteActiveSubscriptionInfoList()).thenReturn( in testMoreSlotsThanSubs()

12