Searched refs:canRemoveProfile (Results 1 – 6 of 6) sorted by relevance
84 when(mRemoveProfileHandler.canRemoveProfile(any())).thenReturn(true); in onCreate_canRemoveProfile_preferenceEnabled()92 when(mRemoveProfileHandler.canRemoveProfile(any())).thenReturn(false); in onCreate_cannotRemoveProfile_preferenceDisabled()105 when(mRemoveProfileHandler.canRemoveProfile(any())).thenReturn(false); in onClick_preferenceDisabled_showsToast()120 when(mRemoveProfileHandler.canRemoveProfile(any())).thenReturn(true); in onClick_preferenceEnabled_showsDialog()
83 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isTrue(); in userNotRestricted_canRemoveProfile()91 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in userRestricted_cannotRemoveProfile()98 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in viewingSystemUser_cannotRemoveProfile()106 assertThat(mRemoveProfileHandler.canRemoveProfile(userInfo)).isFalse(); in isDemoUser_cannotRemoveProfile()
166 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_isAdminViewingSelf_makeManageOtherProfilesButtonShown()229 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_profileIsRemovable_deleteButtonShown()258 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_userIsViewingSelf_deleteButtonHidden()273 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onStart_userIsNotViewingSelf_deleteButtonShown()329 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onDeleteButtonClicked_showsConfirmationDialog()
134 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onCreate_userIsViewingSelf_deleteButtonHidden()146 when(mRemoveProfileHandler.canRemoveProfile(userInfo)).thenReturn(true); in onCreate_userIsNotViewingSelf_deleteButtonHidden()
114 public boolean canRemoveProfile(UserInfo userInfo) { in canRemoveProfile() method in RemoveProfileHandler143 if (canRemoveProfile(userInfo) && allowCurrentProcess) { in getAvailabilityStatus()
83 return mRemoveProfileHandler.canRemoveProfile(mUserInfo) ? AVAILABLE in getAvailabilityStatus()