Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DAddProfilePreferenceControllerTest.java80 when(mUserManager.isDemoUser()).thenReturn(true); in onCreate_userInDemoMode_showsExitRetailModeButton()
91 when(mUserManager.isDemoUser()).thenReturn(false); in onCreate_userCanAddNewProfile_showsAddProfileButton()
103 when(mUserManager.isDemoUser()).thenReturn(false); in onCreate_userRestrictedFromAddingNewProfileAndNotInDemo_doesNotShowActionButton()
115 when(mUserManager.isDemoUser()).thenReturn(false); in testCallOnClick_profileLimitReached_showErrorDialog()
DProfileDetailsDeletePreferenceControllerTest.java131 when(mMockUserManager.isDemoUser()).thenReturn(true); in onCreate_isDemoUser_deleteButtonHidden()
DRemoveProfileHandlerTest.java103 when(mMockUserManager.isDemoUser()).thenReturn(true); in isDemoUser_cannotRemoveProfile()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetEntryPreferenceController.java80 if (!mUserManager.isAdminUser() && !isDemoUser()) { in shouldDisable()
88 private boolean isDemoUser() { in isDemoUser() method in FactoryResetEntryPreferenceController
89 return UserManager.isDeviceInDemoMode(getContext()) && mUserManager.isDemoUser(); in isDemoUser()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DAddProfilePreferenceController.java64 if (mUserManager.isDemoUser()) { in onCreateInternal()
90 if (mUserManager.isDemoUser()) { in handlePreferenceClicked()
117 if (mUserManager.isDemoUser() || mAddProfileHandler.canAddProfiles(mUserManager)) { in getAvailabilityStatus()
DRemoveProfileHandler.java105 && !mUserManager.isDemoUser(); in canRemoveProfile()
DProfileDetailsActionButtonsPreferenceController.java128 boolean isDemoProfile = mUserManager.isDemoUser(); in onStartInternal()
DProfileHelper.java335 && !mUserManager.isDemoUser() in canCurrentProcessModifyAccounts()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUtils.java76 public static void setIsDemoUser(boolean isDemoUser) { in setIsDemoUser() argument
77 sIsDemoUser = isDemoUser; in setIsDemoUser()
81 public static boolean isDemoUser(Context context) { in isDemoUser() method in ShadowUtils
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DBuildNumberPreferenceController.java119 if (!(mUm.isAdminUser() || mUm.isDemoUser())) { in handlePreferenceTreeClick()
133 if (mUm.isDemoUser()) { in handlePreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/network/
DTopLevelNetworkEntryPreferenceController.java37 return Utils.isDemoUser(mContext) ? UNSUPPORTED_ON_DEVICE : AVAILABLE; in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/system/
DFactoryResetPreferenceController.java45 return mUm.isAdminUser() || Utils.isDemoUser(mContext); in isAvailable()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DDiscoveryBounce.java129 || launcher.getSystemService(UserManager.class).isDemoUser() in showForHomeIfNeeded()
/packages/apps/Settings/src/com/android/settings/
DMainClear.java254 if (Utils.isDemoUser(context)) {
557 if (disallow && !Utils.isDemoUser(context)) { in onCreateView()
DUtils.java890 public static boolean isDemoUser(Context context) { in isDemoUser() method in Utils
892 && context.getSystemService(UserManager.class).isDemoUser(); in isDemoUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java85 when(mMockUserManager.isDemoUser()).thenReturn(false); in setUp()
112 when(mMockUserManager.isDemoUser()).thenReturn(true); in canCurrentProcessModifyAccounts_isDemoUser_returnsFalse()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DBuildNumberPreferenceControllerTest.java209 when(mMockUserManager.isDemoUser()).thenReturn(isDemo); in switchToUser()
DFactoryResetEntryPreferenceControllerTest.java291 when(mMockUserManager.isDemoUser()).thenReturn(isDemo); in switchToUser()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java630 if (getContext().getSystemService(UserManager.class).isDemoUser() in getDefaultLayoutParser()