Home
last modified time | relevance | path

Searched refs:isDemoUser (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUtils.java63 public static void setIsDemoUser(boolean isDemoUser) { in setIsDemoUser() argument
64 sIsDemoUser = isDemoUser; in setIsDemoUser()
68 public static boolean isDemoUser(Context context) { in isDemoUser() method in ShadowUtils
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserManager.java42 public boolean isDemoUser = false; field in ShadowUserManager
76 public boolean isDemoUser() { in isDemoUser() method in ShadowUserManager
77 return isDemoUser; in isDemoUser()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DMasterClearEntryPreferenceController.java56 return !(mCarUserManagerHelper.isCurrentProcessAdminUser() || isDemoUser()) in isUserRestricted()
60 private boolean isDemoUser() { in isDemoUser() method in MasterClearEntryPreferenceController
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DUserManagerCompatVNMr1.java92 public boolean isDemoUser() { in isDemoUser() method in UserManagerCompatVNMr1
93 return mUserManager.isDemoUser(); in isDemoUser()
DUserManagerCompat.java57 public abstract boolean isDemoUser(); in isDemoUser() method in UserManagerCompat
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DDiscoveryBounce.java151 || UserManagerCompat.getInstance(launcher).isDemoUser() in showForHomeIfNeeded()
176 || UserManagerCompat.getInstance(launcher).isDemoUser() in showForOverviewIfNeeded()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DBuildNumberPreferenceController.java106 if (!(mUm.isAdminUser() || mUm.isDemoUser())) { in handlePreferenceTreeClick()
120 if (mUm.isDemoUser()) { in handlePreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DBuildNumberPreferenceController.java127 if (!(mUm.isAdminUser() || mUm.isDemoUser())) { in handlePreferenceTreeClick()
141 if (mUm.isDemoUser()) { in handlePreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/system/
DFactoryResetPreferenceController.java41 return mUm.isAdminUser() || Utils.isDemoUser(mContext); in isAvailable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/system/
DFactoryResetPreferenceController.java41 return mUm.isAdminUser() || Utils.isDemoUser(mContext); in isAvailable()
/packages/apps/Settings/src/com/android/settings/network/
DTopLevelNetworkEntryPreferenceController.java49 return Utils.isDemoUser(mContext) ? UNSUPPORTED_ON_DEVICE : AVAILABLE_UNSEARCHABLE; in getAvailabilityStatus()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DTopLevelNetworkEntryPreferenceController.java49 return Utils.isDemoUser(mContext) ? UNSUPPORTED_ON_DEVICE : AVAILABLE_UNSEARCHABLE; in getAvailabilityStatus()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DMasterClear.java248 if (Utils.isDemoUser(context)) {
550 if (disallow && !Utils.isDemoUser(context)) { in onCreateView()
DUtils.java855 public static boolean isDemoUser(Context context) { in isDemoUser() method in Utils
856 return UserManager.isDeviceInDemoMode(context) && getUserManager(context).isDemoUser(); in isDemoUser()
/packages/apps/Settings/src/com/android/settings/
DMasterClear.java247 if (Utils.isDemoUser(context)) {
549 if (disallow && !Utils.isDemoUser(context)) { in onCreateView()
DUtils.java850 public static boolean isDemoUser(Context context) { in isDemoUser() method in Utils
851 return UserManager.isDeviceInDemoMode(context) && getUserManager(context).isDemoUser(); in isDemoUser()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DAllAppsTipView.java154 || UserManagerCompat.getInstance(launcher).isDemoUser() in showAllAppsTipIfNecessary()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java674 return mUserManager.isDemoUser(); in isCurrentProcessDemoUser()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java557 if (um.isDemoUser() && idp.demoModeLayoutId != 0) { in getDefaultLayoutParser()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java265 doReturn(true).when(mUserManager).isDemoUser(); in testCurrentDemoProcessCannotModifyAccounts()