Searched refs:mStreamCards (Results 1 – 2 of 2) sorted by relevance
50 private final ArrayList<StreamCard> mStreamCards = new ArrayList<>(mMaxItems); field in StreamAdapter85 Log.d(TAG, "Stream Card being bound: " + mStreamCards.get(position)); in onBindViewHolder()87 holder.bindStreamCard(mStreamCards.get(position)); in onBindViewHolder()92 StreamCard card = mStreamCards.get(position); in getItemViewType()111 return mStreamCards.size(); in getItemCount()126 mStreamCards.clear(); in removeAllCards()146 if (mStreamCards.size() >= mMaxItems) { in addCard()147 StreamCard removedCard = mStreamCards.remove(mStreamCards.size() - 1); in addCard()153 int size = mStreamCards.size(); in addCard()155 if (mStreamCards.get(i).getPriority() <= card.getPriority()) { in addCard()[all …]
41 private LinkedHashMap<Pair<Integer, Long>, StreamCard> mStreamCards = new LinkedHashMap<>(); field in StreamService94 Log.d(TAG, "Fetching all stream items, # cards: " + mStreamCards.size());97 List<StreamCard> cards = new ArrayList(mStreamCards.values());125 mStreamCards.put(getStreamCardKey(card), card); in addStreamCard()144 mStreamCards.remove(getStreamCardKey(card)); in removeStreamCard()