Searched refs:isAdminUser (Results 1 – 9 of 9) 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()
92 public void setIsAdminUser(boolean isAdminUser) { in setIsAdminUser() argument93 mAdminUser = isAdminUser; in setIsAdminUser()97 public boolean isAdminUser() { in isAdminUser() method in SimStatusImeiInfoPreferenceControllerTest.ShadowUserManager
33 return mContext.getSystemService(UserManager.class).isAdminUser() in isAvailable()
49 final boolean isAdmin = um.isAdminUser(); in isDevelopmentSettingsEnabled()
66 return mContext.getSystemService(UserManager.class).isAdminUser(); in isAvailable()
104 || !mUserManager.isAdminUser(); in checkUserCreationRequirements()
166 if (mDialogInfo.allUsers && !UserManager.get(this).isAdminUser()) { in onCreate()
1986 public boolean isAdminUser() { in isAdminUser() method in UserManager
8635 … method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isAdminUser();