Home
last modified time | relevance | path

Searched refs:forUser (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/
DFaceSettingsRepositoryImplTest.kt69 val userRepo = repository.forUser(USER_ID) in createsOneRepositoryPerUser()
73 assertThat(repository.forUser(USER_ID)).isSameInstanceAs(userRepo) in createsOneRepositoryPerUser()
74 assertThat(repository.forUser(USER_ID + 1)).isNotSameInstanceAs(userRepo) in createsOneRepositoryPerUser()
80 val userRepo = repository.forUser(USER_ID) in startsRepoImmediatelyWithAllSettingKeys()
98 val userRepo = repository.forUser(USER_ID) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/utils/
DUserScopedService.kt50 fun forUser(user: UserHandle): T in interface() method
57 override fun forUser(user: UserHandle): T { in forUser() method in com.android.systemui.user.utils.UserScopedServiceImpl
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/
DFaceSettingsRepository.kt34 fun forUser(id: Int?): FaceUserSettingsRepository in <lambda>() method
47 override fun forUser(id: Int?): FaceUserSettingsRepository = in forUser() method in com.android.systemui.biometrics.data.repository.FaceSettingsRepositoryImpl
DPromptRepository.kt127 _userId.map { id -> faceSettings.forUser(id) }.distinctUntilChanged() in id()
/frameworks/base/services/tests/servicestests/src/com/android/server/credentials/
DCredentialDescriptionRegistryTest.java78 mCredentialDescriptionRegistry = CredentialDescriptionRegistry.forUser(USER_ID_1); in setUp()
85 .forUser(USER_ID_2); in testForUser_createsUniqueInstanceForEachUserID()
94 .forUser(USER_ID_1); in testForUser_returnsSameInstanceForSameUserID()
104 .forUser(USER_ID_1); in testClearUserSession_removesExistingSessionForUserID()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DTileSpecSettingsRepositoryTest.kt221 private fun TestScope.storeTilesForUser(specs: String, forUser: Int) { in storeTilesForUser()
222 secureSettings.putStringForUser(SETTING, specs, forUser) in storeTilesForUser()
226 private fun loadTilesForUser(forUser: Int): String? { in loadTilesForUser()
227 return secureSettings.getStringForUser(SETTING, forUser) in loadTilesForUser()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/accessibility/data/repository/
DAccessibilityQsShortcutsRepositoryImplTest.kt91 private fun storeA11yQsShortcutTargetsForUser(a11yQsTargets: Set<String>, forUser: Int) { in storeA11yQsShortcutTargetsForUser()
95 forUser in storeA11yQsShortcutTargetsForUser()
DNightDisplayRepositoryTest.kt78 whenever(forUser(eq(testUser))).thenReturn(colorDisplayManager) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/data/repository/
DNightDisplayRepository.kt158 colorDisplayManagerUserScopedService.forUser(user).nightDisplayAutoMode = autoMode in <lambda>()
164 colorDisplayManagerUserScopedService.forUser(user).isNightDisplayActivated = activated in <lambda>()
169 val colorDisplayManager = colorDisplayManagerUserScopedService.forUser(user) in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/data/repository/
DFakeFaceSettingsRepository.kt36 override fun forUser(id: Int?) = userRepositories[id] ?: FaceUserSettingsRepositoryImpl.Empty method in com.android.systemui.biometrics.data.repository.FakeFaceSettingsRepository
/frameworks/base/core/java/com/android/internal/infra/
DPerUser.java44 public @NonNull T forUser(int userId) { in forUser() method in PerUser
/frameworks/base/services/companion/java/com/android/server/companion/devicepresence/
DCompanionAppBinder.java302 public synchronized @NonNull Map<String, List<ComponentName>> forUser( in forUser() method in CompanionAppBinder.CompanionServicesRegister
304 return super.forUser(userId); in forUser()
309 return forUser(userId).getOrDefault(packageName, Collections.emptyList()); in forPackage()
/frameworks/base/services/credentials/java/com/android/server/credentials/
DProviderRegistryGetSession.java124 mCredentialDescriptionRegistry = CredentialDescriptionRegistry.forUser(userId); in ProviderRegistryGetSession()
142 mCredentialDescriptionRegistry = CredentialDescriptionRegistry.forUser(userId); in ProviderRegistryGetSession()
DCredentialDescriptionRegistry.java68 public static CredentialDescriptionRegistry forUser(int userId) { in forUser() method in CredentialDescriptionRegistry
DCredentialManagerService.java231 CredentialDescriptionRegistry.forUser(userId) in handlePackageRemovedMultiModeLocked()
399 CredentialDescriptionRegistry.forUser(UserHandle.getCallingUserId()); in getFilteredResultFromRegistry()
1054 CredentialDescriptionRegistry.forUser(UserHandle.getCallingUserId()); in registerCredentialDescription()
1074 CredentialDescriptionRegistry.forUser(UserHandle.getCallingUserId()); in unregisterCredentialDescription()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DUserTileSpecRepository.kt116 private suspend fun storeTiles(@UserIdInt forUser: Int, tiles: List<TileSpec>) { in <lambda>()
127 forUser, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/night/domain/interactor/
DNightDisplayTileDataInteractorTest.kt75 whenever(forUser(eq(testUser))).thenReturn(colorDisplayManager) in <lambda>()
DNightDisplayTileUserActionInteractorTest.kt75 whenever(forUser(eq(testUser))).thenReturn(colorDisplayManager) in <lambda>()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPersonalAppsSuspensionHelper.java70 public static PersonalAppsSuspensionHelper forUser(Context context, @UserIdInt int userId) { in forUser() method in PersonalAppsSuspensionHelper
DPolicyEnforcerCallbacks.java413 final String[] appsToSuspend = PersonalAppsSuspensionHelper.forUser(context, userId)
DDevicePolicyManagerService.java11295 PersonalAppsSuspensionHelper.forUser(mContext, UserHandle.USER_SYSTEM).dump(pw);
16686 final int forUser = caller.getUserId(); in setPermissionPolicy() local
16688 DevicePolicyData userPolicy = getUserData(forUser); in setPermissionPolicy()
16691 mPolicyCache.setPermissionPolicy(forUser, policy); in setPermissionPolicy()
16692 saveSettingsLocked(forUser); in setPermissionPolicy()