Home
last modified time | relevance | path

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

/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
H A DContextualCard.java56 private final int mCardType; field in ContextualCard
77 return mCardType; in getCardType()
143 mCardType = builder.mCardType; in ContextualCard()
163 mCardType = c.getInt(c.getColumnIndex(CardDatabaseHelper.CardColumns.TYPE)); in ContextualCard()
164 mBuilder.setCardType(mCardType); in ContextualCard()
183 mViewType = getViewTypeByCardType(mCardType); in ContextualCard()
223 private int mCardType; field in ContextualCard.Builder
245 mCardType = cardType; in setCardType()
H A 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()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
H A DControllerRendererPoolTest.java83 mPool.getController(mContext, mapping.mCardType).getClass()).isEqualTo( in getController_hasSupportedCardType_shouldReturnCorrespondingController()
93 mapping -> mPool.getController(mContext, mapping.mCardType)); in getController_hasSupportedCardType_shouldHaveTwoControllersInPool()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/
H A DContextualCardLookupTableTest.java57 assertThat(ContextualCardLookupTable.getCardControllerClass(mapping.mCardType)) in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()