Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSettingsFragmentTest.java72 doReturn(false).when(mMockCarUserManagerHelper).canCurrentProcessModifyAccounts(); in cannotModifyUsers_addAccountButtonShouldNotBeVisible()
82 doReturn(true).when(mMockCarUserManagerHelper).canCurrentProcessModifyAccounts(); in canModifyUsers_addAccountButtonShouldBeVisible()
92 doReturn(true).when(mMockCarUserManagerHelper).canCurrentProcessModifyAccounts(); in clickAddAccountButton_shouldOpenChooseAccountFragment()
DAccountDetailsFragmentTest.java94 doReturn(false).when(mMockCarUserManagerHelper).canCurrentProcessModifyAccounts(); in cannotModifyUsers_removeAccountButtonShouldNotBeVisible()
104 doReturn(true).when(mMockCarUserManagerHelper).canCurrentProcessModifyAccounts(); in canModifyUsers_removeAccountButtonShouldBeVisible()
114 doReturn(true).when(mMockCarUserManagerHelper).canCurrentProcessModifyAccounts(); in onRemoveAccountButtonClicked_canModifyUsers_shouldShowConfirmRemoveAccountDialog()
DAccountsEntryPreferenceControllerTest.java66 when(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in getAvailabilityStatus_cannotModifyAccounts_disabledForUser()
73 when(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_canModifyAccounts_available()
DAccountListPreferenceControllerTest.java80 mMockCarUserManagerHelper).canCurrentProcessModifyAccounts(); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java254 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isTrue(); in testCurrentGuestProcessCannotModifyAccounts()
258 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isFalse(); in testCurrentGuestProcessCannotModifyAccounts()
263 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isTrue(); in testCurrentDemoProcessCannotModifyAccounts()
267 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isFalse(); in testCurrentDemoProcessCannotModifyAccounts()
272 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isTrue(); in testCurrentDisallowModifyAccountsProcessIsEnforced()
277 assertThat(mCarUserManagerHelper.canCurrentProcessModifyAccounts()).isFalse(); in testCurrentDisallowModifyAccountsProcessIsEnforced()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUserManagerHelper.java112 protected boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ShadowCarUserManagerHelper
113 return sMockInstance.canCurrentProcessModifyAccounts(); in canCurrentProcessModifyAccounts()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountsEntryPreferenceController.java49 return mCarUserManagerHelper.canCurrentProcessModifyAccounts() ? AVAILABLE in getAvailabilityStatus()
DAccountSettingsFragment.java55 .canCurrentProcessModifyAccounts(); in onCreate()
DAccountDetailsFragment.java118 .canCurrentProcessModifyAccounts(); in onCreate()
DAccountListPreferenceController.java90 return mCarUserManagerHelper.canCurrentProcessModifyAccounts() ? AVAILABLE in getAvailabilityStatus()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java709 public boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in CarUserManagerHelper