Home
last modified time | relevance | path

Searched refs:isAdminUser (Results 1 – 9 of 9) 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/src/com/android/settingslib/deviceinfo/
DSimStatusImeiInfoPreferenceControllerTest.java92 public void setIsAdminUser(boolean isAdminUser) { in setIsAdminUser() argument
93 mAdminUser = isAdminUser; in setIsAdminUser()
97 public boolean isAdminUser() { in isAdminUser() method in SimStatusImeiInfoPreferenceControllerTest.ShadowUserManager
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractSimStatusImeiInfoPreferenceController.java33 return mContext.getSystemService(UserManager.class).isAdminUser() in isAvailable()
/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/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java104 || !mUserManager.isAdminUser(); in checkUserCreationRequirements()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallerActivity.java166 if (mDialogInfo.allUsers && !UserManager.get(this).isAdminUser()) { in onCreate()
/frameworks/base/core/java/android/os/
DUserManager.java1986 public boolean isAdminUser() { in isAdminUser() method in UserManager
/frameworks/base/core/api/
Dsystem-current.txt8635 … method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isAdminUser();