Searched refs:isAdminUser (Results 1 – 11 of 11) sorted by relevance
72 when(mUserManager.isAdminUser()).thenReturn(false); in displayPreference_isNotAdmin_shouldRemovePreference()81 when(mUserManager.isAdminUser()).thenReturn(true); in displayPreference_isAdmin_shouldNotRemovePreference()90 when(mUserManager.isAdminUser()).thenReturn(true); in resetPreference_shouldUncheck()101 when(mUserManager.isAdminUser()).thenReturn(true); in handlePreferenceTreeClick_shouldUpdateSettings()117 when(mUserManager.isAdminUser()).thenReturn(true); in handlePreferenceTreeClick_isMonkeyUser_shouldBeFalse()127 when(mUserManager.isAdminUser()).thenReturn(true); in updateState_settingsOn_shouldCheck()140 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()
63 return mContext.getSystemService(UserManager.class).isAdminUser(); in isAvailable()
100 || !mUserManager.isAdminUser(); in checkUserCreationRequirements()
163 if (mDialogInfo.allUsers && !UserManager.get(this).isAdminUser()) { in onCreate()
1430 public boolean isAdminUser() { in isAdminUser() method in UserManager
3984 adminUser = mUserManager.isAdminUser(); in isTetheringSupported()
5545 … method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isAdminUser();
12371 HSPLandroid/os/UserManager;->isAdminUser()Z