Home
last modified time | relevance | path

Searched refs:isAdmin (Results 1 – 16 of 16) sorted by relevance

/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/dao/
DUserDao.java96 public abstract List<User> findByAdmin(boolean isAdmin); in findByAdmin() argument
175 public abstract boolean isAdmin(int uid); in isAdmin() method in UserDao
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/vo/
DUser.java86 public boolean isAdmin() { in isAdmin() method in User
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java132 && !user.isAdmin() in testAddUser()
177 assertFalse(userInfo.isAdmin()); in testSetUserAdmin()
190 assertTrue(userInfo.isAdmin()); in testSetUserAdmin()
/frameworks/base/core/java/android/content/pm/
DUserInfo.java136 public boolean isAdmin() { in isAdmin() method in UserInfo
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java186 final boolean isAdmin = UserManager.get(mContext).isUserAdmin(userId); in enforceIsAdmin()
187 if (!isAdmin) { in enforceIsAdmin()
DStorageManagerService.java1371 boolean isAdmin; in enforceAdminUser()
1374 isAdmin = um.getUserInfo(callingUserId).isAdmin(); in enforceAdminUser()
1378 if (!isAdmin) { in enforceAdminUser()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DSimpleEntityReadWriteTest.java278 assertThat(mUserDao.isAdmin(1), is(true)); in returnBoolean()
279 assertThat(mUserDao.isAdmin(2), is(false)); in returnBoolean()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java330 if (userInfo.isAdmin()) { in startConfirmation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java240 && (currentUserInfo.isAdmin() in refreshUsers()
501 if ((userInfo == null || !userInfo.isAdmin()) && record.isRestricted) {
/frameworks/base/core/java/android/os/
DUserManager.java1273 return user != null && user.isAdmin(); in isUserAdmin()
1821 if (user != null && !user.isAdmin() && !user.isDemo()) { in createUser()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionParser.java242 final boolean adminUserConditionMet = userInfo.isAdmin() in satisifesRequiredUserType()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1013 if (info == null || info.isAdmin()) { in setUserAdmin()
1183 if (!userInfo.isAdmin()) { in canHaveRestrictedProfile()
3878 if (user != null && !user.isAdmin() && !user.isDemo()) { in createUserEvenWhenDisallowed()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java1850 return info != null && info.isPrimary() && info.isAdmin() && frpCredentialEnabled(context);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java252 user.isAdmin() ? mAdminRetrieveFlags : mRetrieveFlags, in doResumeIfNeededLocked()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt1801 Landroid/content/pm/UserInfo;->isAdmin()Z
Dboot-image-profile.txt18912 HSPLandroid/content/pm/UserInfo;->isAdmin()Z