Searched refs:isAdmin (Results 1 – 12 of 12) sorted by relevance
49 final boolean isAdmin = um.isAdminUser(); in isDevelopmentSettingsEnabled()50 return isAdmin && !hasRestriction && settingEnabled; in isDevelopmentSettingsEnabled()
132 && !user.isAdmin() in testAddUser()212 assertFalse(userInfo.isAdmin()); in testSetUserAdmin()225 assertTrue(userInfo.isAdmin()); in testSetUserAdmin()
187 public boolean isAdmin() { in isAdmin() method in UserInfo
226 final boolean isAdmin = UserManager.get(mContext).isUserAdmin(userId); in enforceIsAdmin()227 if (!isAdmin) { in enforceIsAdmin()
1482 boolean isAdmin; in enforceAdminUser()1485 isAdmin = um.getUserInfo(callingUserId).isAdmin(); in enforceAdminUser()1489 if (!isAdmin) { in enforceAdminUser()
243 && (currentUserInfo.isAdmin() in refreshUsers()504 if ((userInfo == null || !userInfo.isAdmin()) && record.isRestricted) {
1456 return user != null && user.isAdmin(); in isUserAdmin()2039 if (user != null && !user.isAdmin() && !user.isDemo()) { in createUser()
1433 if (userInfo.isAdmin()) { in startConfirmationForNetwork()1457 if (userInfo.isAdmin()) { in startConfirmationForKey()
1099 if (info == null || info.isAdmin()) { in setUserAdmin()1282 if (!userInfo.isAdmin()) { in canHaveRestrictedProfile()4266 if (user != null && !user.isAdmin() && !user.isDemo()) { in createUserEvenWhenDisallowed()
2076 return info != null && info.isPrimary() && info.isAdmin() && frpCredentialEnabled(context);
278 user.isAdmin() ? mAdminRetrieveFlags : mRetrieveFlags, in doResumeIfNeededLocked()
4612 HSPLandroid/content/pm/UserInfo;->isAdmin()Z