Searched refs:isMainUser (Results 1 – 7 of 7) sorted by relevance
504 boolean isMainUser, in canProfileOwnerChange() argument513 if (!isMainUser && MAIN_USER_ONLY_RESTRICTIONS.contains(restriction)) { in canProfileOwnerChange()525 && !(!isMainUser && MAIN_USER_ONLY_RESTRICTIONS.contains(restriction)); in canProfileOwnerChange()
5459 final boolean isMainUser = (flags & UserInfo.FLAG_MAIN) != 0;5485 if (isMainUser && getMainUserIdUnchecked() != UserHandle.USER_NULL) {5611 if (isMainUser) {
745 private suspend fun setIsMainUser(isMainUser: Boolean) { in <lambda>()746 whenever(user.isMain).thenReturn(isMainUser) in <lambda>()
1335 assumeTrue("User does not have access to creation time", mUserManager.isMainUser()); in testGetManagedProfileCreationTime()
2902 public boolean isMainUser() { in isMainUser() method in UserManager
8021 boolean isMainUser = userId == getMainUserId();8029 == HEADLESS_DEVICE_OWNER_MODE_SINGLE_USER ? isMainUser : isSystemUser;
11265 …est.permission.CREATE_USERS, android.Manifest.permission.QUERY_USERS}) public boolean isMainUser();