Searched refs:ContextualCardLookupTable (Results 1 – 6 of 6) sorted by relevance
21 import com.android.settings.homepage.contextualcards.ContextualCardLookupTable.ControllerRendererMa…43 ContextualCardLookupTable.LOOKUP_TABLE.stream() in setUp()49 ContextualCardLookupTable.LOOKUP_TABLE.clear(); in reset()50 ContextualCardLookupTable.LOOKUP_TABLE.addAll(mOriginalLookupTable); in reset()55 for (ControllerRendererMapping mapping : ContextualCardLookupTable.LOOKUP_TABLE) { in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()56 assertThat(ContextualCardLookupTable.getCardControllerClass(mapping.mCardType)) in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()63 assertThat(ContextualCardLookupTable.getCardControllerClass(UNSUPPORTED_CARD_TYPE)) in getCardControllerClass_hasUnsupportedCardType_shouldAlwaysGetNull()70 for (ControllerRendererMapping mapping : ContextualCardLookupTable.LOOKUP_TABLE) { in getCardRendererClassByViewType_hasSupportedViewType_shouldGetCorrespondingRenderer()71 assertThat(ContextualCardLookupTable.getCardRendererClassByViewType(mapping.mViewType)) in getCardRendererClassByViewType_hasSupportedViewType_shouldGetCorrespondingRenderer()78 assertThat(ContextualCardLookupTable.getCardRendererClassByViewType( in getCardRendererClassByViewType_hasUnsupportedViewType_shouldAlwaysGetNull()[all …]
82 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()
57 ContextualCardLookupTable.getCardControllerClass(cardType); in getController()85 ContextualCardLookupTable.getCardRendererClassByViewType(viewType); in getRendererByViewType()
40 public class ContextualCardLookupTable { class