/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerTest.java | 171 final int mainUserId = mainUser.getIdentifier(); in testCloneUser() local 174 mainUserId); in testCloneUser() 178 mainUserId); in testCloneUser() 218 assertThat(mainUserId).isEqualTo(parentProfileInfo.id); in testCloneUser() 795 UserManager.USER_TYPE_PROFILE_MANAGED, mainUserId); in testGetProfileParent() 800 assertThat(mainUserId).isEqualTo(parentProfileInfo.id); in testGetProfileParent() 994 final int mainUserId = ActivityManager.getCurrentUser(); in testCreateUser_disallowAddClonedUserProfile() local 995 final UserHandle mainUserHandle = asHandle(mainUserId); in testCreateUser_disallowAddClonedUserProfile() 1014 final UserHandle mainUserHandle = asHandle(mainUserId); in testCreateProfileForUser_disallowAddManagedProfile() 1033 final UserHandle mainUserHandle = asHandle(mainUserId); in testCreateProfileForUserEvenWhenDisallowed() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/testharness/ |
H A D | TestHarnessModeService.java | 120 int mainUserId = getMainUserId(); in disableLockScreen() local 122 utils.setLockScreenDisabled(true, mainUserId); in disableLockScreen() 196 int mainUserId = getMainUserId(); in configureUser() local 198 ContentResolver.setMasterSyncAutomaticallyAsUser(false, mainUserId); in configureUser() 201 locationManager.setLocationEnabledForUser(true, UserHandle.of(mainUserId)); in configureUser() 206 int mainUserId = umi.getMainUserId(); in getMainUserId() local 207 if (mainUserId >= 0) { in getMainUserId() 208 return mainUserId; in getMainUserId()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/repository/ |
H A D | UserRepository.kt | 84 val mainUserId: Int 154 override var mainUserId: Int = UserHandle.USER_NULL 243 if (mainUserId == UserHandle.USER_NULL) { 245 mainUser?.let { mainUserId = it.identifier }
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/user/data/repository/ |
H A D | FakeUserRepository.kt | 63 override var mainUserId: Int = MAIN_USER_ID 64 override var lastSelectedNonGuestUserId: Int = mainUserId
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/data/repository/ |
H A D | UserRepositoryImplTest.kt | 122 val mainUserId = 10 regex 125 whenever(mainUser.identifier).thenReturn(mainUserId) 165 assertThat(underTest.mainUserId).isEqualTo(mainUserId)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/ |
H A D | GuestUserInteractorTest.kt | 210 val mainUserId = 10 regex 212 repository.mainUserId = mainUserId 226 verify(switchUser).invoke(mainUserId)
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserManagerServiceShellCommand.java | 531 final int mainUserId = mService.getMainUserId(); in runGetMainUserId() local 532 if (mainUserId == UserHandle.USER_NULL) { in runGetMainUserId() 536 pw.println(mainUserId); in runGetMainUserId()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | PersistentDataBlockService.java | 162 int mainUserId = umInternal.getMainUserId(); in getAllowedUid() local 163 if (mainUserId < 0) { in getAllowedUid() 165 mainUserId = UserHandle.USER_SYSTEM; in getAllowedUid() 173 allowedPackage, PackageManager.MATCH_SYSTEM_ONLY, mainUserId); in getAllowedUid()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/ |
H A D | GuestUserInteractor.kt | 142 var newUserId = repository.mainUserId 146 if (lastSelectedNonGuestUserHandle != repository.mainUserId) {
|
/aosp14/frameworks/base/services/core/java/com/android/server/dreams/ |
H A D | DreamManagerService.java | 672 final int mainUserId = LocalServices.getService(UserManagerInternal.class).getMainUserId(); in dreamsEnabledForUser() local 673 return userId == mainUserId; in dreamsEnabledForUser()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | UserManager.java | 2700 final int mainUserId = mService.getMainUserId(); in getMainUser() local 2701 if (mainUserId == UserHandle.USER_NULL) { in getMainUser() 2704 return UserHandle.of(mainUserId); in getMainUser()
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | LockSettingsService.java | 1066 final int mainUserId = mInjector.getUserManagerInternal().getMainUserId(); in enforceFrpResolved() local 1067 if (mainUserId < 0) { in enforceFrpResolved() 1074 Settings.Secure.USER_SETUP_COMPLETE, 0, mainUserId) == 0; in enforceFrpResolved()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 9943 int mainUserId = mUserManagerInternal.getMainUserId(); 9944 if (mainUserId == UserHandle.USER_NULL) { 9948 return mainUserId;
|