Searched refs:isAdminUser (Results 1 – 13 of 13) sorted by relevance
86 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()
77 public boolean isAdminUser() { in isAdminUser() method in ShadowUserManager85 public void setIsAdminUser(boolean isAdminUser) { in setIsAdminUser() argument87 if (isAdminUser) { in setIsAdminUser()
49 final boolean isAdmin = um.isAdminUser(); in isDevelopmentSettingsEnabled()
66 return mContext.getSystemService(UserManager.class).isAdminUser(); in isAvailable()
91 return userManager.isAdminUser in isUserAdmin()
106 || !mUserManager.isAdminUser(); in checkUserCreationRequirements()
726 boolean isAdminUser = false; in ensureUserCanTakeBugReport()732 isAdminUser = mInjector.getUserManager().isUserAdmin(effectiveCallingUserId); in ensureUserCanTakeBugReport()737 isAdminUser = profileParent.isAdmin(); in ensureUserCanTakeBugReport()742 if (!isAdminUser) { in ensureUserCanTakeBugReport()
122 boolean isAdminUser(int userId); in isAdminUser() method
2994 public boolean isAdminUser() { in isAdminUser() method in UserManager2996 return mService.isAdminUser(getContextUserIfAppropriate()); in isAdminUser()
176 if (mDialogInfo.allUsers && !userManager.isAdminUser()) { in onCreate()
131 if (uninstallFromAllUsers && !userManager!!.isAdminUser) { in performPreUninstallChecks()
2705 public boolean isAdminUser(@UserIdInt int userId) { in isAdminUser() method in UserManagerService
34020 method public boolean isAdminUser();