/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 182 final int mainUserId = mainUser.getIdentifier(); in testCloneUser() local 185 mainUserId); in testCloneUser() 189 mainUserId); in testCloneUser() 234 assertThat(mUserManager.getProfileParent(mainUserId)).isNull(); in testCloneUser() 237 assertThat(mainUserId).isEqualTo(parentProfileInfo.id); in testCloneUser() 239 assertThat(mUserManager.getProfileParent(mainUserId)).isNull(); in testCloneUser() 289 int mainUserId = mUserManager.getMainUser().getIdentifier(); in testGetProfilesIncludingCommunal() local 292 UserManager.USER_TYPE_PROFILE_MANAGED, mainUserId); in testGetProfilesIncludingCommunal() 296 final List<UserInfo> mainsActual = mUserManager.getProfilesIncludingCommunal(mainUserId); in testGetProfilesIncludingCommunal() 300 mainsExpected.add(mainUserId); in testGetProfilesIncludingCommunal() [all …]
|
/frameworks/base/services/core/java/com/android/server/testharness/ |
D | TestHarnessModeService.java | 121 int mainUserId = getMainUserId(); in disableLockScreen() local 123 utils.setLockScreenDisabled(true, mainUserId); in disableLockScreen() 197 int mainUserId = getMainUserId(); in configureUser() local 199 ContentResolver.setMasterSyncAutomaticallyAsUser(false, mainUserId); in configureUser() 202 locationManager.setLocationEnabledForUser(true, UserHandle.of(mainUserId)); in configureUser() 207 int mainUserId = umi.getMainUserId(); in getMainUserId() local 208 if (mainUserId >= 0) { in getMainUserId() 209 return mainUserId; in getMainUserId()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/repository/ |
D | UserRepository.kt | 80 val mainUserId: Int constant 164 override var mainUserId: Int = UserHandle.USER_NULL in refreshUsers() variable in com.android.systemui.user.data.repository.UserRepositoryImpl 240 if (mainUserId == UserHandle.USER_NULL) { in refreshUsers() 242 mainUser?.let { mainUserId = it.identifier } in refreshUsers()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/data/repository/ |
D | UserRepositoryImplTest.kt | 122 val mainUserId = 10 in <lambda>() constant 125 whenever(mainUser.identifier).thenReturn(mainUserId) in <lambda>() 165 assertThat(underTest.mainUserId).isEqualTo(mainUserId) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/user/data/repository/ |
D | FakeUserRepository.kt | 70 override var mainUserId: Int = MAIN_USER_ID variable in com.android.systemui.user.data.repository.FakeUserRepository 71 override var lastSelectedNonGuestUserId: Int = mainUserId
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/ |
D | SelectedUserInteractor.kt | 59 return repository.mainUserId in getMainUserId()
|
D | GuestUserInteractor.kt | 144 var newUserId = repository.mainUserId in <lambda>() 148 if (lastSelectedNonGuestUserHandle != repository.mainUserId) { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/ |
D | GuestUserInteractorTest.kt | 224 val mainUserId = 10 in exit_lastNonGuestWasRemoved_returnsToMainUser() constant 226 repository.mainUserId = mainUserId in exit_lastNonGuestWasRemoved_returnsToMainUser() 240 verify(switchUser).invoke(mainUserId) in exit_lastNonGuestWasRemoved_returnsToMainUser()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
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()
|
D | UserManagerService.java | 1114 int mainUserId = getMainUserIdUnchecked(); in systemReady() local 1115 if (mainUserId != UserHandle.USER_NULL) { in systemReady() 1119 mPrivateSpaceAutoLockSettingsObserver, UserHandle.of(mainUserId)); in systemReady() 1125 mainUserId)); in systemReady() local
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/ |
D | KeyguardSecurityContainerControllerTest.kt | 945 val mainUserId = 10 in <lambda>() constant 948 /* userId = */ mainUserId, in <lambda>() 949 /* expiringUserId = */ mainUserId, in <lambda>() 950 /* mainUserId = */ mainUserId, in <lambda>() 963 val mainUserId = 0 in <lambda>() constant 968 /* mainUserId = */ mainUserId, in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pdb/ |
D | PersistentDataBlockService.java | 250 int mainUserId = umInternal.getMainUserId(); in getAllowedUid() local 251 if (mainUserId < 0) { in getAllowedUid() 253 mainUserId = UserHandle.USER_SYSTEM; in getAllowedUid() 261 allowedPackage, PackageManager.MATCH_SYSTEM_ONLY, mainUserId); in getAllowedUid()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/ |
D | BrightnessPolicyRepositoryImplTest.kt | 126 eq(userRepository.mainUserId) in restrictMainUser()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainerController.java | 1142 void showMessageForFailedUnlockAttempt(int userId, int expiringUserId, Integer mainUserId, in showMessageForFailedUnlockAttempt() argument 1148 if (mainUserId != null) { in showMessageForFailedUnlockAttempt() 1149 primaryUser = mainUserId; in showMessageForFailedUnlockAttempt()
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 711 final int mainUserId = LocalServices.getService(UserManagerInternal.class).getMainUserId(); in dreamsEnabledForUser() local 712 return userId == mainUserId; in dreamsEnabledForUser()
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 2920 final int mainUserId = mService.getMainUserId(); in getMainUser() local 2921 if (mainUserId == UserHandle.USER_NULL) { in getMainUser() 2924 return UserHandle.of(mainUserId); in getMainUser()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 1247 final int mainUserId = mInjector.getUserManagerInternal().getMainUserId(); in enforceFrpNotActive() local 1248 if (mainUserId < 0) { in enforceFrpNotActive() 1255 Settings.Secure.USER_SETUP_COMPLETE, 0, mainUserId) == 0; in enforceFrpNotActive()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 9987 int mainUserId = mUserManagerInternal.getMainUserId(); 9988 if (mainUserId == UserHandle.USER_NULL) { 9992 return mainUserId;
|