/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | AddProfilePreferenceControllerTest.java | 80 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()
|
D | ProfileDetailsDeletePreferenceControllerTest.java | 131 when(mMockUserManager.isDemoUser()).thenReturn(true); in onCreate_isDemoUser_deleteButtonHidden()
|
D | RemoveProfileHandlerTest.java | 103 when(mMockUserManager.isDemoUser()).thenReturn(true); in isDemoUser_cannotRemoveProfile()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | FactoryResetEntryPreferenceController.java | 80 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/ |
D | AddProfilePreferenceController.java | 64 if (mUserManager.isDemoUser()) { in onCreateInternal() 90 if (mUserManager.isDemoUser()) { in handlePreferenceClicked() 117 if (mUserManager.isDemoUser() || mAddProfileHandler.canAddProfiles(mUserManager)) { in getAvailabilityStatus()
|
D | RemoveProfileHandler.java | 105 && !mUserManager.isDemoUser(); in canRemoveProfile()
|
D | ProfileDetailsActionButtonsPreferenceController.java | 128 boolean isDemoProfile = mUserManager.isDemoUser(); in onStartInternal()
|
D | ProfileHelper.java | 335 && !mUserManager.isDemoUser() in canCurrentProcessModifyAccounts()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowUtils.java | 76 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/ |
D | BuildNumberPreferenceController.java | 119 if (!(mUm.isAdminUser() || mUm.isDemoUser())) { in handlePreferenceTreeClick() 133 if (mUm.isDemoUser()) { in handlePreferenceTreeClick()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | TopLevelNetworkEntryPreferenceController.java | 37 return Utils.isDemoUser(mContext) ? UNSUPPORTED_ON_DEVICE : AVAILABLE; in getAvailabilityStatus()
|
/packages/apps/Settings/src/com/android/settings/system/ |
D | FactoryResetPreferenceController.java | 45 return mUm.isAdminUser() || Utils.isDemoUser(mContext); in isAvailable()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | DiscoveryBounce.java | 129 || launcher.getSystemService(UserManager.class).isDemoUser() in showForHomeIfNeeded()
|
/packages/apps/Settings/src/com/android/settings/ |
D | MainClear.java | 254 if (Utils.isDemoUser(context)) { 557 if (disallow && !Utils.isDemoUser(context)) { in onCreateView()
|
D | Utils.java | 890 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/ |
D | ProfileHelperTest.java | 85 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/ |
D | BuildNumberPreferenceControllerTest.java | 209 when(mMockUserManager.isDemoUser()).thenReturn(isDemo); in switchToUser()
|
D | FactoryResetEntryPreferenceControllerTest.java | 291 when(mMockUserManager.isDemoUser()).thenReturn(isDemo); in switchToUser()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 630 if (getContext().getSystemService(UserManager.class).isDemoUser() in getDefaultLayoutParser()
|