Searched refs:mContextualCards (Results 1 – 4 of 4) sorted by relevance
48 final List<ContextualCard> mContextualCards; field in ContextualCardsAdapter59 mContextualCards = new ArrayList<>(); in ContextualCardsAdapter()67 return mContextualCards.get(position).hashCode(); in getItemId()72 final ContextualCard card = mContextualCards.get(position); in getItemViewType()86 final ContextualCard card = mContextualCards.get(position); in onBindViewHolder()94 return mContextualCards.size(); in getItemCount()107 final int viewType = mContextualCards.get(position).getViewType(); in onAttachedToRecyclerView()121 final boolean previouslyEmpty = mContextualCards.isEmpty(); in onContextualCardUpdated()124 mContextualCards.clear(); in onContextualCardUpdated()128 new ContextualCardsDiffCallback(mContextualCards, contextualCards)); in onContextualCardUpdated()[all …]
92 final List<ContextualCard> mContextualCards; field in ContextualCardManager103 mContextualCards = new ArrayList<>(); in ContextualCardManager()142 for (ContextualCard card : mContextualCards) { in loadCardControllers()202 cardsToKeep = mContextualCards.stream() in onContextualCardUpdated()206 cardsToKeep = mContextualCards.stream() in onContextualCardUpdated()217 mContextualCards.clear(); in onContextualCardUpdated()219 mContextualCards.addAll(getCardsWithViewType(sortedCards)); in onContextualCardUpdated()225 cardsToUpdate.put(ContextualCard.CardType.DEFAULT, mContextualCards); in onContextualCardUpdated()274 final ArrayList<String> cards = mContextualCards.stream() in onSaveInstanceState()283 final List<ContextualCard> cards = new ArrayList<>(mContextualCards); in onWindowFocusChanged()[all …]
72 mAdapter.mContextualCards.addAll(getContextualCardList()); in getItemViewType_sliceFullWidth_shouldReturnSliceFullWidthViewType()82 mAdapter.mContextualCards.addAll(cards); in getItemCount_cardList_shouldReturnListSize()102 mAdapter.mContextualCards.add(buildConditionContextualCard()); in onBindViewHolder_conditionalCard_shouldSetTestTitle()116 mAdapter.mContextualCards.addAll(getContextualCardList()); in onContextualCardUpdated_emptyList_shouldClearCardList()123 assertThat(mAdapter.mContextualCards).isEmpty(); in onContextualCardUpdated_emptyList_shouldClearCardList()128 mAdapter.mContextualCards.addAll(getContextualCardList()); in onContextualCardUpdated_newCardList_shouldUpdateCardList()136 assertThat(mAdapter.mContextualCards).isEqualTo(newCardList); in onContextualCardUpdated_newCardList_shouldUpdateCardList()141 mAdapter.mContextualCards.addAll(getContextualCardList()); in onSwiped_shouldSetIsPendingDismissToTrue()142 assertThat(mAdapter.mContextualCards.get(0).isPendingDismiss()).isFalse(); in onSwiped_shouldSetIsPendingDismissToTrue()146 assertThat(mAdapter.mContextualCards.get(0).isPendingDismiss()).isTrue(); in onSwiped_shouldSetIsPendingDismissToTrue()
254 mManager.mContextualCards.add(new ConditionalContextualCard.Builder().build()); in onContextualCardUpdated_emptyMapWithExistingCards_shouldOnlyKeepConditionalCard()255 mManager.mContextualCards.add( in onContextualCardUpdated_emptyMapWithExistingCards_shouldOnlyKeepConditionalCard()262 assertThat(mManager.mContextualCards).hasSize(1); in onContextualCardUpdated_emptyMapWithExistingCards_shouldOnlyKeepConditionalCard()263 assertThat(mManager.mContextualCards.get(0).getCardType()) in onContextualCardUpdated_emptyMapWithExistingCards_shouldOnlyKeepConditionalCard()269 mManager.mContextualCards.add(new ConditionHeaderContextualCard.Builder().build()); in onContextualCardUpdated_hasEmptyMap_shouldKeepConditionalHeaderCard()274 assertThat(mManager.mContextualCards).hasSize(1); in onContextualCardUpdated_hasEmptyMap_shouldKeepConditionalHeaderCard()275 assertThat(mManager.mContextualCards.get(0).getCardType()) in onContextualCardUpdated_hasEmptyMap_shouldKeepConditionalHeaderCard()281 mManager.mContextualCards.add(new ConditionFooterContextualCard.Builder().build()); in onContextualCardUpdated_hasEmptyMap_shouldKeepConditionalFooterCard()286 assertThat(mManager.mContextualCards).hasSize(1); in onContextualCardUpdated_hasEmptyMap_shouldKeepConditionalFooterCard()287 assertThat(mManager.mContextualCards.get(0).getCardType()) in onContextualCardUpdated_hasEmptyMap_shouldKeepConditionalFooterCard()[all …]