Searched refs:ContextualCardLookupTable (Results 1 – 4 of 4) sorted by relevance
23 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 …]
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()
39 public class ContextualCardLookupTable { class