Home
last modified time | relevance | path

Searched refs:CONDITIONAL (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardControllerTest.java138 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(1); in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
139 assertThat(conditionalCards.get(CardType.CONDITIONAL).get(0).getViewType()).isEqualTo( in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
152 assertThat(conditionalCards.get(CardType.CONDITIONAL)).isEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
164 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(2); in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
165 for (ContextualCard card : conditionalCards.get(CardType.CONDITIONAL)) { in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
180 assertThat(conditionalCards.get(CardType.CONDITIONAL)).isEmpty(); in getConditionalCards_hasTwoConditionCardsAndCollapsed_shouldGetConditionalHeader()
192 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(3); in getConditionalCards_hasThreeCardsAndExpanded_shouldGetThreeCardsWithFooter()
204 assertThat(conditionalCards.get(CardType.CONDITIONAL)).isEmpty(); in getConditionalCards_hasThreeCardsAndCollapsed_shouldGetOneConditionalHeader()
DConditionContextualCardRendererTest.java77 ContextualCard.CardType.CONDITIONAL)).thenReturn(mController); in bindView_shouldSetListener()
96 ContextualCard.CardType.CONDITIONAL)).thenReturn(mController); in viewClick_shouldInvokeControllerPrimaryClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java149 final List<Integer> expected = Arrays.asList(ContextualCard.CardType.CONDITIONAL, in constructor_hasSettingsCustomCards_shouldSetUpCustomControllers()
178 final int[] expected = {ContextualCard.CardType.CONDITIONAL, in getSettingsCards_conditionalsEnabled_shouldContainLegacyAndConditionals()
231 .isEqualTo(ContextualCard.CardType.CONDITIONAL); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast()
264 .isEqualTo(ContextualCard.CardType.CONDITIONAL); in onContextualCardUpdated_emptyMapWithExistingCards_shouldOnlyKeepConditionalCard()
413 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard()
416 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard()
432 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_hasFocusAndHasConditionals_startMonitoringConditionCard()
435 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_hasFocusAndHasConditionals_startMonitoringConditionCard()
451 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_loseFocusAndHasConditionals_stopMonitoringConditionCard()
454 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_loseFocusAndHasConditionals_stopMonitoringConditionCard()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardLookupTable.java68 new ControllerRendererMapping(CardType.CONDITIONAL,
72 new ControllerRendererMapping(CardType.CONDITIONAL,
DContextualCardManager.java153 {ContextualCard.CardType.CONDITIONAL, ContextualCard.CardType.LEGACY_SUGGESTION}; in getSettingsCards()
199 ContextualCard.CardType.CONDITIONAL, in onContextualCardUpdated()
302 .getController(mContext, ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged()
DContextualCard.java41 @IntDef({CardType.DEFAULT, CardType.SLICE, CardType.LEGACY_SUGGESTION, CardType.CONDITIONAL,
48 int CONDITIONAL = 3; field
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardController.java73 return ContextualCard.CardType.CONDITIONAL; in getCardType()
150 conditionalCards.put(ContextualCard.CardType.CONDITIONAL, in buildConditionalCardsWithFooterOrHeader()
DConditionalContextualCard.java48 return CardType.CONDITIONAL; in getCardType()
/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/conditional/
DConditionalContextualCardTest.java44 .isEqualTo(ContextualCard.CardType.CONDITIONAL); in getCardType_shouldAlwaysBeConditional()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardTest.java38 .setCardType(ContextualCard.CardType.CONDITIONAL) in newInstance_changeCardType_shouldCrash()