Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DEnableAdbPreferenceControllerTest.java72 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()
/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.java63 return mContext.getSystemService(UserManager.class).isAdminUser(); in isAvailable()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java100 || !mUserManager.isAdminUser(); in checkUserCreationRequirements()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallerActivity.java163 if (mDialogInfo.allUsers && !UserManager.get(this).isAdminUser()) { in onCreate()
/frameworks/base/core/java/android/os/
DUserManager.java1430 public boolean isAdminUser() { in isAdminUser() method in UserManager
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java3984 adminUser = mUserManager.isAdminUser(); in isTetheringSupported()
/frameworks/base/api/
Dsystem-current.txt5545 … method @RequiresPermission(android.Manifest.permission.MANAGE_USERS) public boolean isAdminUser();
/frameworks/base/config/
Dboot-image-profile.txt12371 HSPLandroid/os/UserManager;->isAdminUser()Z