Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/
DContextualCardLookupTableTest.java23 import com.android.settings.homepage.contextualcards.ContextualCardLookupTable.ControllerRendererMa…
46 ContextualCardLookupTable.LOOKUP_TABLE.stream() in setUp()
52 ContextualCardLookupTable.LOOKUP_TABLE.clear(); in reset()
53 ContextualCardLookupTable.LOOKUP_TABLE.addAll(mOriginalLookupTable); in reset()
58 for (ControllerRendererMapping mapping : ContextualCardLookupTable.LOOKUP_TABLE) { in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()
59 assertThat(ContextualCardLookupTable.getCardControllerClass(mapping.mCardType)) in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()
66 assertThat(ContextualCardLookupTable.getCardControllerClass(UNSUPPORTED_CARD_TYPE)) in getCardControllerClass_hasUnsupportedCardType_shouldAlwaysGetNull()
73 for (ControllerRendererMapping mapping : ContextualCardLookupTable.LOOKUP_TABLE) { in getCardRendererClassByViewType_hasSupportedViewType_shouldGetCorrespondingRenderer()
74 assertThat(ContextualCardLookupTable.getCardRendererClassByViewType(mapping.mViewType)) in getCardRendererClassByViewType_hasSupportedViewType_shouldGetCorrespondingRenderer()
81 assertThat(ContextualCardLookupTable.getCardRendererClassByViewType( in getCardRendererClassByViewType_hasUnsupportedViewType_shouldAlwaysGetNull()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DControllerRendererPoolTest.java82 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach(mapping -> assertThat( in getController_hasSupportedCardType_shouldReturnCorrespondingController()
89 final long count = ContextualCardLookupTable.LOOKUP_TABLE.stream().map( in getController_hasSupportedCardType_shouldHaveTwoControllersInPool()
92 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach( in getController_hasSupportedCardType_shouldHaveTwoControllersInPool()
109 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach(mapping -> assertThat( in getRenderer_hasSupportedViewType_shouldReturnCorrespondingRenderer()
116 final long count = ContextualCardLookupTable.LOOKUP_TABLE.stream().map( in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool()
119 ContextualCardLookupTable.LOOKUP_TABLE.stream().forEach( in getRenderer_hasSupportedViewType_shouldHaveDistinctRenderersInPool()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DControllerRendererPool.java57 ContextualCardLookupTable.getCardControllerClass(cardType); in getController()
85 ContextualCardLookupTable.getCardRendererClassByViewType(viewType); in getRendererByViewType()
DContextualCardLookupTable.java39 public class ContextualCardLookupTable { class