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()
336 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()
252 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()
93 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()
209 when(mMockProfileHelper.canCurrentProcessModifyAccounts()).thenReturn(true); in initMocks()
49 protected boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ShadowUserHelper50 return sInstance.canCurrentProcessModifyAccounts(); in canCurrentProcessModifyAccounts()
99 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()
61 boolean canModifyAccounts = getProfileHelper().canCurrentProcessModifyAccounts(); in getDefaultAvailabilityStatus()
138 if (getProfileHelper().canCurrentProcessModifyAccounts()) { in getDefaultAvailabilityStatus()
149 if (profileHelper.canCurrentProcessModifyAccounts()) { in getSecondaryActionAvailabilityStatus()
112 boolean canModifyAccounts = profileHelper.canCurrentProcessModifyAccounts(); in getDefaultAvailabilityStatus()
366 public boolean canCurrentProcessModifyAccounts() { in canCurrentProcessModifyAccounts() method in ProfileHelper