Home
last modified time | relevance | path

Searched refs:isAdminUser (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DEnableAdbPreferenceControllerTest.java86 when(mUserManager.isAdminUser()).thenReturn(false); in displayPreference_isNotAdmin_shouldRemovePreference()
95 when(mUserManager.isAdminUser()).thenReturn(true); in displayPreference_isAdmin_shouldNotRemovePreference()
104 when(mUserManager.isAdminUser()).thenReturn(true); in resetPreference_shouldUncheck()
115 when(mUserManager.isAdminUser()).thenReturn(true); in handlePreferenceTreeClick_shouldUpdateSettings()
131 when(mUserManager.isAdminUser()).thenReturn(true); in handlePreferenceTreeClick_isMonkeyUser_shouldBeFalse()
141 when(mUserManager.isAdminUser()).thenReturn(true); in updateState_settingsOn_shouldCheck()
157 when(mUserManager.isAdminUser()).thenReturn(true); in updateState_settingsOff_shouldUncheck()
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowUserManager.java77 public boolean isAdminUser() { in isAdminUser() method in ShadowUserManager
85 public void setIsAdminUser(boolean isAdminUser) { in setIsAdminUser() argument
87 if (isAdminUser) { in setIsAdminUser()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/development/
DDevelopmentSettingsEnabler.java49 final boolean isAdmin = um.isAdminUser(); in isDevelopmentSettingsEnabled()
DAbstractEnableAdbPreferenceController.java66 return mContext.getSystemService(UserManager.class).isAdminUser(); in isAvailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/
DUserCreator.kt91 return userManager.isAdminUser in isUserAdmin()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java106 || !mUserManager.isAdminUser(); in checkUserCreationRequirements()
/frameworks/base/services/core/java/com/android/server/os/
DBugreportManagerServiceImpl.java726 boolean isAdminUser = false; in ensureUserCanTakeBugReport()
732 isAdminUser = mInjector.getUserManager().isUserAdmin(effectiveCallingUserId); in ensureUserCanTakeBugReport()
737 isAdminUser = profileParent.isAdmin(); in ensureUserCanTakeBugReport()
742 if (!isAdminUser) { in ensureUserCanTakeBugReport()
/frameworks/base/core/java/android/os/
DIUserManager.aidl122 boolean isAdminUser(int userId); in isAdminUser() method
DUserManager.java2994 public boolean isAdminUser() { in isAdminUser() method in UserManager
2996 return mService.isAdminUser(getContextUserIfAppropriate()); in isAdminUser()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallerActivity.java176 if (mDialogInfo.allUsers && !userManager.isAdminUser()) { in onCreate()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DUninstallRepository.kt131 if (uninstallFromAllUsers && !userManager!!.isAdminUser) { in performPreUninstallChecks()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2705 public boolean isAdminUser(@UserIdInt int userId) { in isAdminUser() method in UserManagerService
/frameworks/base/core/api/
Dcurrent.txt34020 method public boolean isAdminUser();