Searched refs:canCurrentProcessModifyAccounts (Results 1 – 12 of 12) sorted by relevance
87 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()
83 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()
84 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()
213 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in initMocks()
289 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in initMocks()
49 protected boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ShadowUserHelper50 return sInstance.canCurrentProcessModifyAccounts(); in canCurrentProcessModifyAccounts()
100 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()
49 boolean canModifyAccounts = getProfileHelper().canCurrentProcessModifyAccounts(); in getAvailabilityStatus()
90 if (getProfileHelper().canCurrentProcessModifyAccounts()) { in getAvailabilityStatus()
111 .canCurrentProcessModifyAccounts()); in onCreateInternal()
98 .canCurrentProcessModifyAccounts(); in getAvailabilityStatus()
333 public boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ProfileHelper