Searched refs:canCurrentProcessModifyAccounts (Results 1 – 12 of 12) sorted by relevance
96 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()
141 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in canModifyUsers_addAccountButtonShouldBeAvailable()151 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldOpenChooseAccountFragment()161 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldNotOpenChooseAccountFragmentWhenOneType()181 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in clickAddAccountButton_shouldOpenChooseAccountFragmentWhenTwoTypes()196 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(false); in disabledClick_restrictedByDpm_dialog()
253 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in onAccountPreferenceClicked_shouldLaunchAccountDetailsFragment()319 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_canModifyAccounts_available()
92 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in getAvailabilityStatus_currentUser_noRestriction_available()
213 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()
61 boolean canModifyAccounts = getProfileHelper().canCurrentProcessModifyAccounts(); in getAvailabilityStatus()
101 if (getProfileHelper().canCurrentProcessModifyAccounts()) { in getAvailabilityStatus()
149 if (profileHelper.canCurrentProcessModifyAccounts()) { in getSecondaryActionAvailabilityStatus()
109 boolean canModifyAccounts = profileHelper.canCurrentProcessModifyAccounts(); in getAvailabilityStatus()
349 public boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ProfileHelper