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/
DAddAccountPreferenceControllerTest.java87 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in cannotModifyUsers_addAccountButtonShouldBeDisabled()
96 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in canModifyUsers_addAccountButtonShouldBeAvailable()
106 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldOpenChooseAccountFragment()
116 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldNotOpenChooseAccountFragmentWhenOneType()
136 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldOpenChooseAccountFragmentWhenTwoTypes()
DAccountGroupPreferenceControllerTest.java83 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in getAvailabilityStatus_currentUser_cannotModifyAccounts_notAvailable()
96 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_currentUser_canModifyAccounts_available()
109 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_notCurrentUser_canModifyAccounts_notAvailable()
122 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in getAvailabilityStatus_notCurrentUser_cannotModifyAccounts_notAvailable()
DAccountDetailsPreferenceControllerTest.java84 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in cannotModifyUsers_removeAccountButtonShouldNotBeVisible()
93 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in canModifyUsers_removeAccountButtonShouldBeVisible()
102 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in onRemoveAccountButtonClicked_canModifyUsers_shouldShowConfirmRemoveAccountDialog()
DChooseAccountPreferenceControllerTest.java213 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in initMocks()
DAccountListPreferenceControllerTest.java289 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.java100 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isTrue(); in canCurrentProcessModifyAccounts_baseline_returnsTrue()
107 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_hasDisallowModifyAccounts_returnsFalse()
113 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_isDemoUser_returnsFalse()
119 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_isGuestUser_returnsFalse()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountGroupPreferenceController.java49 boolean canModifyAccounts = getProfileHelper().canCurrentProcessModifyAccounts(); in getAvailabilityStatus()
DAddAccountPreferenceController.java90 if (getProfileHelper().canCurrentProcessModifyAccounts()) { in getAvailabilityStatus()
DAccountDetailsPreferenceController.java111 .canCurrentProcessModifyAccounts()); in onCreateInternal()
DAccountListPreferenceController.java98 .canCurrentProcessModifyAccounts(); in getAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java333 public boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ProfileHelper