Home
last modified time | relevance | path

Searched refs:getEnabledProfiles (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentBackend.java98 List<UserHandle> userHandles = um.getEnabledProfiles(); in refresh()
184 List<UserHandle> userHandles = um.getEnabledProfiles(); in setForegroundMode()
195 List<UserHandle> userHandles = um.getEnabledProfiles(); in getDefaultPaymentApp()
229 List<UserHandle> userHandles = um.getEnabledProfiles(); in setDefaultPaymentApp()
DAppStateNfcTagAppsBridge.java57 List<UserHandle> luh = um.getEnabledProfiles(); in AppStateNfcTagAppsBridge()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/
DFakeUserManagerTest.kt36 val personal = userManager.getEnabledProfiles(state.primaryUserHandle.identifier).single() in <lambda>()
77 val enabledProfiles = userManager.getEnabledProfiles(personal.identifier) in <lambda>()
90 val enabledProfiles = userManager.getEnabledProfiles(clone.identifier) in <lambda>()
/packages/services/Car/service/src/com/android/car/user/
DUserHandleHelper.java60 public List<UserHandle> getEnabledProfiles(@UserIdInt int userId) { in getEnabledProfiles() method in UserHandleHelper
61 return getUserContextAwareUserManager(userId).getEnabledProfiles(); in getEnabledProfiles()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserHandleHelperUnitTest.java85 when(mUserManager.getEnabledProfiles()).thenReturn(users); in testGetEnabledProfiles()
87 assertThat(mUserHandleHelper.getEnabledProfiles( in testGetEnabledProfiles()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DUserRepositoryImplTest.kt210 on { getEnabledProfiles(any()) } doReturn listOf(info) in mockUserManager()
212 on { getEnabledProfiles(invalidUser) } doReturn listOf() in mockUserManager()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java166 when(mUserManager.getEnabledProfiles()).thenReturn(getUserHandles()); in setUp()
191 verify(mUserManager).getEnabledProfiles(); in testConstructorWhenWalletRoleFeatureIsNotEnabled()
208 verify(mUserManager).getEnabledProfiles(); in testConstructorWhenWalletRoleFeatureIsEnabled()
553 when(mUserManager.getEnabledProfiles()).thenReturn(getUserHandles()); in testOnUserSwitchedWithNoChange()
DRegisteredServicesCacheTest.java184 when(mUserManager.getEnabledProfiles()).thenReturn(enabledProfiles); in setUp()
435 when(mUserManager.getEnabledProfiles()).thenReturn(enabledProfiles); in testOnUserSwitched()
440 when(mUserManager.getEnabledProfiles()).thenReturn(enabledProfiles); in testOnUserSwitched()
454 when(mUserManager.getEnabledProfiles()).thenReturn(enabledProfiles); in testOnManagedProfileChanged()
459 when(mUserManager.getEnabledProfiles()).thenReturn(enabledProfiles); in testOnManagedProfileChanged()
DRegisteredNfcFServicesCacheTest.java167 when(mUserManager.getEnabledProfiles()).thenReturn(userHandles); in setUp()
/packages/apps/Nfc/src/com/android/nfc/
DNfcPermissions.java72 List<UserHandle> luh = um.getEnabledProfiles(); in validateProfileId()
DNfcService.java961 List<UserHandle> luh = um.getEnabledProfiles(); in initTagAppPrefList()
996 List<UserHandle> luh = um.getEnabledProfiles(); in storeTagAppPrefList()
1033 List<UserHandle> luh = um.getEnabledProfiles(); in renewTagAppPrefList()
1095 List<UserHandle> luh = um.getEnabledProfiles(); in updatePackageCache()
4568 List<UserHandle> luh = um.getEnabledProfiles(); in dumpTagAppPreference()
DNfcDispatcher.java486 List<UserHandle> luh = um.getEnabledProfiles(); in getCurrentActiveUserHandles()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DResetAppsHelper.java125 for (UserHandle userHandle : mUm.getEnabledProfiles()) { in resetApps()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DUserCache.java85 List<UserHandle> profiles = mUserManager.getEnabledProfiles(); in update()
/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java156 List<UserInfo> userInfoProfiles = um.getEnabledProfiles(userHandle.getIdentifier()); in getWorkProfileContextForUser()
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/platform/
DFakeUserManager.kt86 override fun getEnabledProfiles(userId: Int): List<UserInfo> { in <lambda>() method in com.android.intentresolver.platform.FakeUserManager
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/
DUserRepository.kt259 @Suppress("DEPRECATION") userManager.getEnabledProfiles(member.identifier) in readProfileGroup()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java538 when(mUserHandleHelper.getEnabledProfiles(101)) in onUserSwitchToUserWithEnabledProfile_noChangeInRunningActivities()
665 when(mUserHandleHelper.getEnabledProfiles(userId)).thenReturn(new ArrayList<UserHandle>()); in expectNoProfileUser()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java207 List<UserHandle> userHandles = um.getEnabledProfiles(); in loadDefaultsFromSettings()
DRegisteredNfcFServicesCache.java764 mUserHandles = um.getEnabledProfiles(); in refreshUserProfilesLocked()
DCardEmulationManager.java386 List<UserHandle> luh = um.getEnabledProfiles(); in verifyDefaults()
DRegisteredServicesCache.java341 mUserHandles = um.getEnabledProfiles(); in refreshUserProfilesLocked()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java582 List<UserHandle> profiles = mUserHandleHelper.getEnabledProfiles(currentUser); in isUserAllowedToLaunchActivity()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java409 doReturn(profileUsers).when(mUserHandleHelper).getEnabledProfiles(CURRENT_USER); in setUpServiceWithProfileSupportEnabled()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DUtils.java1381 return !userManager.getEnabledProfiles().contains(user) in isUserDisabledOrWorkProfile()

12