Home
last modified time | relevance | path

Searched refs:ControllerRendererMapping (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardLookupTable.java43 static class ControllerRendererMapping implements Comparable<ControllerRendererMapping> { class in ContextualCardLookupTable
50 ControllerRendererMapping(@CardType int cardType, @LayoutRes int viewType, in ControllerRendererMapping() method in ContextualCardLookupTable.ControllerRendererMapping
60 public int compareTo(ControllerRendererMapping other) { in compareTo()
61 return Comparator.comparingInt((ControllerRendererMapping mapping) -> mapping.mCardType) in compareTo()
68 static final Set<ControllerRendererMapping> LOOKUP_TABLE =
69 new TreeSet<ControllerRendererMapping>() {{
70 add(new ControllerRendererMapping(CardType.CONDITIONAL,
74 add(new ControllerRendererMapping(CardType.CONDITIONAL,
78 add(new ControllerRendererMapping(CardType.LEGACY_SUGGESTION,
82 add(new ControllerRendererMapping(CardType.SLICE,
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/
DContextualCardLookupTableTest.java23 … com.android.settings.homepage.contextualcards.ContextualCardLookupTable.ControllerRendererMapping;
39 private List<ControllerRendererMapping> mOriginalLookupTable;
56 for (ControllerRendererMapping mapping : ContextualCardLookupTable.LOOKUP_TABLE) { in getCardControllerClass_hasSupportedCardType_shouldGetCorrespondingController()
71 for (ControllerRendererMapping mapping : ContextualCardLookupTable.LOOKUP_TABLE) { in getCardRendererClassByViewType_hasSupportedViewType_shouldGetCorrespondingRenderer()
86 final ControllerRendererMapping mapping1 = in getCardRendererClassByViewType_hasDuplicateViewType_shouldThrowsIllegalStateException()
87 new ControllerRendererMapping( in getCardRendererClassByViewType_hasDuplicateViewType_shouldThrowsIllegalStateException()
91 final ControllerRendererMapping mapping2 = in getCardRendererClassByViewType_hasDuplicateViewType_shouldThrowsIllegalStateException()
92 new ControllerRendererMapping( in getCardRendererClassByViewType_hasDuplicateViewType_shouldThrowsIllegalStateException()