Home
last modified time | relevance | path

Searched refs:mCardType (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCard.java55 private final int mCardType; field in ContextualCard
82 return mCardType; in getCardType()
176 mCardType = builder.mCardType; in ContextualCard()
202 mCardType = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.TYPE)); in ContextualCard()
203 mBuilder.setCardType(mCardType); in ContextualCard()
239 mViewType = getViewTypeByCardType(mCardType); in ContextualCard()
277 private int mCardType; field in ContextualCard.Builder
305 mCardType = cardType; in setCardType()
DContextualCardLookupTable.java45 final int mCardType; field in ContextualCardLookupTable.ControllerRendererMapping
53 mCardType = cardType; in ControllerRendererMapping()
61 return Comparator.comparingInt((ControllerRendererMapping mapping) -> mapping.mCardType) in compareTo()
107 if (mapping.mCardType == cardType) { in getCardControllerClass()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCard.java55 private final int mCardType; field in ContextualCard
81 return mCardType; in getCardType()
171 mCardType = builder.mCardType; in ContextualCard()
196 mCardType = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.TYPE)); in ContextualCard()
197 mBuilder.setCardType(mCardType); in ContextualCard()
233 mViewType = getViewTypeByCardType(mCardType); in ContextualCard()
269 private int mCardType; field in ContextualCard.Builder
296 mCardType = cardType; in setCardType()
DContextualCardLookupTable.java45 final int mCardType; field in ContextualCardLookupTable.ControllerRendererMapping
53 mCardType = cardType; in ControllerRendererMapping()
61 return Comparator.comparingInt((ControllerRendererMapping mapping) -> mapping.mCardType) in compareTo()
107 if (mapping.mCardType == cardType) { in getCardControllerClass()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DControllerRendererPoolTest.java56 mPool.getController(mContext, mapping.mCardType).getClass()).isEqualTo( in getController_hasSupportedCardType_shouldReturnCorrespondingController()
66 mapping -> mPool.getController(mContext, mapping.mCardType)); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool()
DContextualCardLookupTableTest.java56 assertThat(ContextualCardLookupTable.getCardControllerClass(mapping.mCardType)) in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()