Home
last modified time | relevance | path

Searched refs:isMainUser (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java504 boolean isMainUser, in canProfileOwnerChange() argument
513 if (!isMainUser && MAIN_USER_ONLY_RESTRICTIONS.contains(restriction)) { in canProfileOwnerChange()
525 && !(!isMainUser && MAIN_USER_ONLY_RESTRICTIONS.contains(restriction)); in canProfileOwnerChange()
DUserManagerService.java5459 final boolean isMainUser = (flags & UserInfo.FLAG_MAIN) != 0;
5485 if (isMainUser && getMainUserIdUnchecked() != UserHandle.USER_NULL) {
5611 if (isMainUser) {
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/view/viewmodel/
DCommunalViewModelTest.kt745 private suspend fun setIsMainUser(isMainUser: Boolean) { in <lambda>()
746 whenever(user.isMain).thenReturn(isMainUser) in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java1335 assumeTrue("User does not have access to creation time", mUserManager.isMainUser()); in testGetManagedProfileCreationTime()
/frameworks/base/core/java/android/os/
DUserManager.java2902 public boolean isMainUser() { in isMainUser() method in UserManager
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java8021 boolean isMainUser = userId == getMainUserId();
8029 == HEADLESS_DEVICE_OWNER_MODE_SINGLE_USER ? isMainUser : isSystemUser;
/frameworks/base/core/api/
Dsystem-current.txt11265 …est.permission.CREATE_USERS, android.Manifest.permission.QUERY_USERS}) public boolean isMainUser();