Home
last modified time | relevance | path

Searched refs:mainUser (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java562 UserInfo mainUser = mUms.createUserWithThrow("main user", USER_TYPE_FULL_SECONDARY, in testMainUser_hasNoCallsOrSMSRestrictionsByDefault() local
565 assertThat(mUms.hasUserRestriction(DISALLOW_OUTGOING_CALLS, mainUser.id)) in testMainUser_hasNoCallsOrSMSRestrictionsByDefault()
567 assertThat(mUms.hasUserRestriction(DISALLOW_SMS, mainUser.id)) in testMainUser_hasNoCallsOrSMSRestrictionsByDefault()
590 int mainUser = mUms.getMainUserId(); in testAutoLockPrivateProfile() local
591 assumeTrue(mUms.canAddPrivateProfile(mainUser)); in testAutoLockPrivateProfile()
595 USER_TYPE_PROFILE_PRIVATE, 0, mainUser, null); in testAutoLockPrivateProfile()
612 int mainUser = mUms.getMainUserId(); in testAutoLockOnDeviceLockForPrivateProfile() local
613 assumeTrue(mUms.canAddPrivateProfile(mainUser)); in testAutoLockOnDeviceLockForPrivateProfile()
617 USER_TYPE_PROFILE_PRIVATE, 0, mainUser, null); in testAutoLockOnDeviceLockForPrivateProfile()
655 int mainUser = mUms.getMainUserId(); in testAutoLockOnDeviceLockForPrivateProfile_flagDisabled() local
[all …]
/frameworks/base/services/java/com/android/server/
DHsumBootUserInitializer.java109 final int mainUser = mUmi.getMainUserId(); in createMainUserIfNeeded() local
110 if (mainUser != UserHandle.USER_NULL) { in createMainUserIfNeeded()
111 Slogf.d(TAG, "Found existing MainUser, userId=%d", mainUser); in createMainUserIfNeeded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/repository/
DUserRepository.kt241 val mainUser = withContext(backgroundDispatcher) { manager.mainUser } in refreshUsers() constant
242 mainUser?.let { mainUserId = it.identifier } in refreshUsers()
260 return withContext(backgroundDispatcher) { manager.mainUser?.identifier } in refreshUsers()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/data/repository/
DUserRepositoryImplTest.kt123 val mainUser = mock(UserHandle::class.java) in <lambda>() constant
124 whenever(manager.mainUser).thenReturn(mainUser) in <lambda>()
125 whenever(mainUser.identifier).thenReturn(mainUserId) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DGuestUserInteractor.kt221 val mainUser = withContext(backgroundDispatcher) { manager.mainUser?.identifier } in <lambda>() constant
223 mainUser?.let { switchUser(it) } in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/domain/interactor/
DCommunalInteractorTest.kt109 @Mock private lateinit var mainUser: UserInfo in <lambda>() variable in com.android.systemui.communal.domain.interactor.CommunalInteractorTest
151 whenever(mainUser.isMain).thenReturn(true) in <lambda>()
155 userRepository.setUserInfos(listOf(mainUser, secondaryUser)) in <lambda>()
166 userRepository.setSelectedUserInfo(mainUser) in <lambda>()
178 userRepository.setSelectedUserInfo(mainUser) in <lambda>()
191 userRepository.setSelectedUserInfo(mainUser) in <lambda>()
217 userRepository.setSelectedUserInfo(mainUser) in <lambda>()
232 userRepository.setSelectedUserInfo(mainUser) in <lambda>()
914 mainUser.id in <lambda>()
981 mainUser.id in <lambda>()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserLifecycleStressTest.java109 UserHandle mainUser = mUserManager.getMainUser(); in stopManagedProfileStressTest() local
110 assumeFalse("There is no main user", mainUser == null); in stopManagedProfileStressTest()
111 switchUser(mainUser.getIdentifier()); in stopManagedProfileStressTest()
DUserManagerTest.java172 UserHandle mainUser = mUserManager.getMainUser(); in testCloneUser() local
173 assumeTrue("Main user is null", mainUser != null); in testCloneUser()
182 final int mainUserId = mainUser.getIdentifier(); in testCloneUser()
316 UserHandle mainUser = mUserManager.getMainUser(); in testPrivateProfile() local
317 assumeTrue("Main user is null", mainUser != null); in testPrivateProfile()
330 final int mainUserId = mainUser.getIdentifier(); in testPrivateProfile()
612 UserHandle mainUser = mUserManager.getMainUser(); in testRemoveUserWhenPossible_permanentAdminMainUserReturnsError() local
616 assertThat(mUserManager.removeUserWhenPossible(mainUser, in testRemoveUserWhenPossible_permanentAdminMainUserReturnsError()
621 assertThat(hasUser(mainUser.getIdentifier())).isTrue(); in testRemoveUserWhenPossible_permanentAdminMainUserReturnsError()
1693 UserHandle mainUser = mUserManager.getMainUser(); in testCannotCreateAdditionalMainUser() local
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java187 UserHandle mainUser = getUserManager().getMainUser(); in BackupManagerService() local
188 mDefaultBackupUserId = mainUser == null ? UserHandle.USER_SYSTEM : mainUser.getIdentifier(); in BackupManagerService()
1753 UserHandle mainUser = getUserManager().getMainUser(); in updateDefaultBackupUserIdIfNeeded() local
1754 if (mainUser == null) { in updateDefaultBackupUserIdIfNeeded()
1758 if (mDefaultBackupUserId != mainUser.getIdentifier()) { in updateDefaultBackupUserIdIfNeeded()
1760 mDefaultBackupUserId = mainUser.getIdentifier(); in updateDefaultBackupUserIdIfNeeded()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainerController.java1127 Integer mainUser = mSelectedUserInteractor.getMainUserId(); in reportFailedUnlockAttempt() local
1129 userId, expiringUser, mainUser, remainingBeforeWipe, failedAttempts); in reportFailedUnlockAttempt()
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java1020 UserHandle mainUser = mUserManager.getMainUser(); in onStartOrUnlockUser() local
1021 if ((mainUser == null) in onStartOrUnlockUser()
1022 || (user.getUserIdentifier() == mainUser.getIdentifier())) { in onStartOrUnlockUser()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java14601 UserHandle mainUser = mUserManager.getMainUser(); in getManagedUserId() local
14602 if (mainUser == null) return UserHandle.USER_NULL; in getManagedUserId()
14603 return getManagedUserId(mainUser.getIdentifier()); in getManagedUserId()