Home
last modified time | relevance | path

Searched refs:mNewCards (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardsDiffCallback.java29 private final List<ContextualCard> mNewCards; field in ContextualCardsDiffCallback
34 mNewCards = newCards; in ContextualCardsDiffCallback()
44 return mNewCards.size(); in getNewListSize()
50 mNewCards.get(newCardPosition).getName()); in areItemsTheSame()
57 if (mNewCards.get(newCardPosition).hasInlineAction()) { in areContentsTheSame()
60 return mOldCards.get(oldCardPosition).equals(mNewCards.get(newCardPosition)); in areContentsTheSame()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardsDiffCallbackTest.java39 private List<ContextualCard> mNewCards; field in ContextualCardsDiffCallbackTest
44 mNewCards = new ArrayList<>(); in setUp()
46 mNewCards.add(getContextualCard("test1")); in setUp()
47 mNewCards.add(getContextualCard("test2")); in setUp()
48 mDiffCallback = new ContextualCardsDiffCallback(mOldCards, mNewCards); in setUp()
82 mNewCards.add(0, card); in areContentsTheSame_sliceWithToggle_returnFalse()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCardsDiffCallback.java30 private final List<ContextualCard> mNewCards; field in ContextualCardsDiffCallback
35 mNewCards = newCards; in ContextualCardsDiffCallback()
45 return mNewCards.size(); in getNewListSize()
51 mNewCards.get(newCardPosition).getName()); in areItemsTheSame()
56 return mOldCards.get(oldCardPosition).equals(mNewCards.get(newCardPosition)); in areContentsTheSame()