Home
last modified time | relevance | path

Searched refs:isDemoOrGuest (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountGroupPreferenceControllerTest.java206 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_currentUser_restricedByUserType_notAvailable()
219 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_currentUser_restricedByUserType_notAvailable_zoneWrite()
234 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_currentUser_restricedByUserType_notAvailable_zoneRead()
249 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_currentUser_restricedByUserType_notAvailable_zoneHidden()
326 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(false); in getAvailabilityStatus_currentUser_restricedByDpm_availableForViewing()
343 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(false); in getAvailabilityStatus_currentUser_restricedByDpm_availableForViewing_zoneWrite()
362 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(false); in getAvailabilityStatus_currentUser_restricedByDpm_availableForViewing_zoneRead()
381 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(false); in getAvailabilityStatus_currentUser_restricedByDpm_availableForViewing_zoneHidden()
400 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_currentUser_restricedByUserTypeAndDpm_notAvailable()
415 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_currentUser_notAvailable_zoneWrite()
[all …]
DAddAccountPreferenceControllerTest.java244 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_demoOrGuestAndRestricedByDpm_addAccountButtonShouldBeDisabled()
255 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_addAccountButtonShouldBeDisabled_zoneWrite()
268 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_addAccountButtonShouldBeDisabled_zoneRead()
281 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_addAccountButtonShouldBeDisabled_zoneHidden()
294 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_demoOrGuestUser_addAccountButtonShouldBeDisabled()
303 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_demoOrGuestUser_addAccountButtonShouldBeDisabled_zoneWrite()
314 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_demoOrGuestUser_addAccountButtonShouldBeDisabled_zoneRead()
325 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_demoOrGuestUser_addAccountButtonShouldBeDisabled_zoneHidden()
DAccountListPreferenceControllerTest.java278 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_demoOrGuest_notAvailable()
287 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_demoOrGuest_notAvailable_zoneWrite()
298 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_demoOrGuest_notAvailable_zoneRead()
309 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_demoOrGuest_notAvailable_zoneHidden()
368 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_demoOrGuest_restrictedByDpm_notAvailable()
379 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_demoOrGuest_restrictedByDpm_notAvailable_zoneWrite()
392 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_demoOrGuest_restrictedByDpm_notAvailable_zoneRead()
405 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in getAvailabilityStatus_demoOrGuest_restrictedByDpm_notAvailable_zoneHidden()
DAccountDetailsPreferenceControllerTest.java97 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_demoOrGuestUser_removeAccountButtonShouldNotBeVisible()
117 when(mMockProfileHelper.isDemoOrGuest()).thenReturn(true); in cannotModifyUsers_demoOrGuestAndRestrictedByUm_removeAccountButtonNotVisible()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountGroupPreferenceController.java66 if (!isCurrentUser || profileHelper.isDemoOrGuest() in getDefaultAvailabilityStatus()
DAddAccountPreferenceController.java141 if (getProfileHelper().isDemoOrGuest() in getDefaultAvailabilityStatus()
DAccountDetailsPreferenceController.java152 if (profileHelper.isDemoOrGuest() in getSecondaryActionAvailabilityStatus()
DAccountListPreferenceController.java118 if (profileHelper.isDemoOrGuest() in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java368 && !isDemoOrGuest(); in canCurrentProcessModifyAccounts()
374 public boolean isDemoOrGuest() { in isDemoOrGuest() method in ProfileHelper