Home
last modified time | relevance | path

Searched refs:canCurrentProcessModifyAccounts (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountDetailsPreferenceControllerTest.java96 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in cannotModifyUsers_demoOrGuestUser_removeAccountButtonShouldNotBeVisible()
106 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in cannotModifyUsers_restrictedByUm_removeAccountButtonShouldNotBeVisible()
116 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in cannotModifyUsers_demoOrGuestAndRestrictedByUm_removeAccountButtonNotVisible()
128 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in cannotModifyUsers_restrictedByDpm_removeAccountButtonAvailableForViewing()
139 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in canModifyUsers_removeAccountButtonShouldBeVisible()
149 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in onRemoveAccountButtonClicked_canModifyUsers_shouldShowConfirmRemoveAccountDialog()
162 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in onRemoveAccountButtonClicked_canModifyUsers_restrictedByDpm_showAdminDialog()
DAddAccountPreferenceControllerTest.java336 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in canModifyUsers_addAccountButtonShouldBeAvailable()
345 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in canModifyUsers_addAccountButtonShouldBeAvailable_zoneWrite()
356 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in canModifyUsers_addAccountButtonShouldBeAvailable_zoneRead()
367 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in canModifyUsers_addAccountButtonShouldBeAvailable_zoneHidden()
379 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldOpenChooseAccountFragment()
390 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldNotOpenChooseAccountFragmentWhenOneTypeAndUnmanaged()
412 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldOpenChooseAccountFragmentWhenOneTypeAndManaged()
426 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldOpenChooseAccountFragmentWhenTwoTypes()
441 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in disabledClick_restrictedByDpm_dialog()
DAccountListPreferenceControllerTest.java252 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in onAccountPreferenceClicked_shouldLaunchAccountDetailsFragment()
462 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_canModifyAccounts_available()
472 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_canModifyAccounts_available_zoneWrite()
484 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_canModifyAccounts_available_zoneRead()
496 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_canModifyAccounts_available_zoneHidden()
DAccountGroupPreferenceControllerTest.java93 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available()
106 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available_zoneWrite()
121 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available_zoneRead()
136 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available_zoneHidden()
DChooseAccountPreferenceControllerTest.java209 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in initMocks()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserHelper.java49 protected boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ShadowUserHelper
50 return sInstance.canCurrentProcessModifyAccounts(); in canCurrentProcessModifyAccounts()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java99 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isTrue(); in canCurrentProcessModifyAccounts_baseline_returnsTrue()
106 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_hasDisallowModifyAccounts_returnsFalse()
112 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_isDemoUser_returnsFalse()
118 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_isGuestUser_returnsFalse()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountGroupPreferenceController.java61 boolean canModifyAccounts = getProfileHelper().canCurrentProcessModifyAccounts(); in getDefaultAvailabilityStatus()
DAddAccountPreferenceController.java138 if (getProfileHelper().canCurrentProcessModifyAccounts()) { in getDefaultAvailabilityStatus()
DAccountDetailsPreferenceController.java149 if (profileHelper.canCurrentProcessModifyAccounts()) { in getSecondaryActionAvailabilityStatus()
DAccountListPreferenceController.java112 boolean canModifyAccounts = profileHelper.canCurrentProcessModifyAccounts(); in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java366 public boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ProfileHelper