Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCardsDiffCallback.java29 private final List<ContextualCard> mOldCards; field in ContextualCardsDiffCallback
34 mOldCards = oldCards; in ContextualCardsDiffCallback()
40 return mOldCards.size(); in getOldListSize()
50 return mOldCards.get(oldCardPosition).getName().equals( in areItemsTheSame()
56 return mOldCards.get(oldCardPosition).equals(mNewCards.get(newCardPosition)); in areContentsTheSame()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardsDiffCallback.java28 private final List<ContextualCard> mOldCards; field in ContextualCardsDiffCallback
33 mOldCards = oldCards; in ContextualCardsDiffCallback()
39 return mOldCards.size(); in getOldListSize()
49 return mOldCards.get(oldCardPosition).getName().equals( in areItemsTheSame()
60 return mOldCards.get(oldCardPosition).equals(mNewCards.get(newCardPosition)); in areContentsTheSame()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardsDiffCallbackTest.java38 private List<ContextualCard> mOldCards; field in ContextualCardsDiffCallbackTest
43 mOldCards = new ArrayList<>(); in setUp()
45 mOldCards.add(getContextualCard("test1")); in setUp()
48 mDiffCallback = new ContextualCardsDiffCallback(mOldCards, mNewCards); in setUp()
68 mOldCards.add(getContextualCard("test3")); in areItemsTheSame_differentItems_returnFalse()