Home
last modified time | relevance | path

Searched refs:isCurrentProcessDemoUser (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserDetailsBaseFragmentTest.java97 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in testRemoveUserButtonVisible_whenAllowedToRemoveUsers()
107 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in testRemoveUserButtonHidden_whenNotAllowedToRemoveUSers()
117 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in testRemoveUserButtonHidden_whenUserCannotBeRemoved()
127 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(true); in testRemoveUserButtonHidden_demoUser()
137 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in testRemoveUserButtonClick_createsRemovalDialog()
DUsersListFragmentTest.java88 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(true); in onCreate_userInDemoMode_showsExitRetailModeButton()
110 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in onCreate_userRestrictedFromAddingNewUserAndNotInDemo_doesNotShowActionButton()
131 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(true); in testCallOnClick_demoUser_exitRetailMode()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/development/
DDevelopmentSettingsUtilTest.java54 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in setUp()
86 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in isEnabled_settingsOn_notAdmin_notDemo_shouldReturnFalse()
97 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(true); in isEnabled_settingsOn_notAdmin_isDemo_shouldReturnTrue()
108 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(true); in isEnabled_settingsOff_notAdmin_isDemo_shouldReturnFalse()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUsersListFragment.java77 .setTitle(mCarUserManagerHelper.isCurrentProcessDemoUser() in onCreate()
79 .setVisible(mCarUserManagerHelper.isCurrentProcessDemoUser() in onCreate()
161 if (mCarUserManagerHelper.isCurrentProcessDemoUser()) { in handleAddUserClicked()
DUserDetailsBaseFragment.java91 && !mCarUserManagerHelper.isCurrentProcessDemoUser(); in onCreate()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DBuildNumberPreferenceControllerTest.java74 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in setUp()
106 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in testHandlePreferenceClicked_nonAdmin_returnFalse()
114 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(true); in testHandlePreferenceClicked_demoUser_returnsTrue()
DMasterClearEntryPreferenceControllerTest.java101 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(true); in getAvailabilityStatus_demoMode_demoUser_available()
111 when(mCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(true); in getAvailabilityStatus_demoMode_demoUser_restricted_disabledForUser()
DDeveloperOptionsEntryPreferenceControllerTest.java69 when(mShadowCarUserManagerHelper.isCurrentProcessDemoUser()).thenReturn(false); in setUp()
/packages/apps/Car/Settings/src/com/android/car/settings/development/
DDevelopmentSettingsUtil.java69 || carUserManagerHelper.isCurrentProcessDemoUser(); in isDevelopmentSettingsEnabled()
84 || carUserManagerHelper.isCurrentProcessDemoUser(); in showDeveloperOptions()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUserManagerHelper.java142 protected boolean isCurrentProcessDemoUser() { in isCurrentProcessDemoUser() method in ShadowCarUserManagerHelper
143 return sMockInstance.isCurrentProcessDemoUser(); in isCurrentProcessDemoUser()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DMasterClearEntryPreferenceController.java62 && mCarUserManagerHelper.isCurrentProcessDemoUser(); in isDemoUser()
DBuildNumberPreferenceController.java69 && !mCarUserManagerHelper.isCurrentProcessDemoUser()) { in handlePreferenceClicked()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java667 public boolean isCurrentProcessDemoUser() { in isCurrentProcessDemoUser() method in CarUserManagerHelper
711 && !isCurrentProcessDemoUser() in canCurrentProcessModifyAccounts()