Home
last modified time | relevance | path

Searched refs:CardType (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardControllerTest.java33 import com.android.settings.homepage.contextualcards.ContextualCard.CardType;
126 for (@CardType int cardType : conditionalCards.keySet()) { in getConditionalCards_hasEmptyConditionCards_shouldReturnThreeEmptyList()
138 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()
141 assertThat(conditionalCards.get(CardType.CONDITIONAL_HEADER)).isEmpty(); in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
142 assertThat(conditionalCards.get(CardType.CONDITIONAL_FOOTER)).isNotEmpty(); in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
152 assertThat(conditionalCards.get(CardType.CONDITIONAL)).isEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
153 assertThat(conditionalCards.get(CardType.CONDITIONAL_HEADER)).isNotEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
154 assertThat(conditionalCards.get(CardType.CONDITIONAL_FOOTER)).isEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
164 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(2); in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
[all …]
DConditionFooterContextualCardRendererTest.java70 ContextualCard.CardType.CONDITIONAL_FOOTER)).thenReturn(mController); in bindView_shouldSetClickListener()
88 ContextualCard.CardType.CONDITIONAL_FOOTER)).thenReturn(mController); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
DConditionContextualCardRendererTest.java77 ContextualCard.CardType.CONDITIONAL)).thenReturn(mController); in bindView_shouldSetListener()
96 ContextualCard.CardType.CONDITIONAL)).thenReturn(mController); in viewClick_shouldInvokeControllerPrimaryClick()
DConditionHeaderContextualCardRendererTest.java78 ContextualCard.CardType.CONDITIONAL_HEADER)).thenReturn(mController); in bindView_shouldSetClickListener()
96 ContextualCard.CardType.CONDITIONAL_HEADER)).thenReturn(mController); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardLookupTable.java24 import com.android.settings.homepage.contextualcards.ContextualCard.CardType;
43 @CardType
49 ControllerRendererMapping(@CardType int cardType, @LayoutRes int viewType, in ControllerRendererMapping()
68 new ControllerRendererMapping(CardType.CONDITIONAL,
72 new ControllerRendererMapping(CardType.CONDITIONAL,
76 new ControllerRendererMapping(CardType.LEGACY_SUGGESTION,
80 new ControllerRendererMapping(CardType.SLICE,
84 new ControllerRendererMapping(CardType.SLICE,
88 new ControllerRendererMapping(CardType.SLICE,
92 new ControllerRendererMapping(CardType.CONDITIONAL_FOOTER,
[all …]
DContextualCard.java41 @IntDef({CardType.DEFAULT, CardType.SLICE, CardType.LEGACY_SUGGESTION, CardType.CONDITIONAL,
42 CardType.CONDITIONAL_HEADER, CardType.CONDITIONAL_FOOTER})
44 public @interface CardType { annotation in ContextualCard
55 @CardType
215 if (cardType == CardType.SLICE) { in getViewTypeByCardType()
DContextualCardManager.java114 for (@ContextualCard.CardType int cardType : getSettingsCards()) { in ContextualCardManager()
150 return new int[] {ContextualCard.CardType.LEGACY_SUGGESTION}; in getSettingsCards()
153 {ContextualCard.CardType.CONDITIONAL, ContextualCard.CardType.LEGACY_SUGGESTION}; in getSettingsCards()
157 void setupController(@ContextualCard.CardType int cardType) { in setupController()
199 ContextualCard.CardType.CONDITIONAL, in onContextualCardUpdated()
200 ContextualCard.CardType.CONDITIONAL_HEADER, in onContextualCardUpdated()
201 ContextualCard.CardType.CONDITIONAL_FOOTER); in onContextualCardUpdated()
225 cardsToUpdate.put(ContextualCard.CardType.DEFAULT, mContextualCards); in onContextualCardUpdated()
302 .getController(mContext, ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged()
DContextualCardController.java24 @ContextualCard.CardType
/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()
150 ContextualCard.CardType.LEGACY_SUGGESTION); in constructor_hasSettingsCustomCards_shouldSetUpCustomControllers()
178 final int[] expected = {ContextualCard.CardType.CONDITIONAL, in getSettingsCards_conditionalsEnabled_shouldContainLegacyAndConditionals()
179 ContextualCard.CardType.LEGACY_SUGGESTION}; in getSettingsCards_conditionalsEnabled_shouldContainLegacyAndConditionals()
189 final int[] expected = {ContextualCard.CardType.LEGACY_SUGGESTION}; in getSettingsCards_conditionalsDisabled_shouldContainLegacy()
201 mManager.setupController(ContextualCard.CardType.SLICE); in setupController_notLifecycleObserverInstance_shouldNotAttachToLifecycle()
231 .isEqualTo(ContextualCard.CardType.CONDITIONAL); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast()
264 .isEqualTo(ContextualCard.CardType.CONDITIONAL); in onContextualCardUpdated_emptyMapWithExistingCards_shouldOnlyKeepConditionalCard()
276 .isEqualTo(ContextualCard.CardType.CONDITIONAL_HEADER); in onContextualCardUpdated_hasEmptyMap_shouldKeepConditionalHeaderCard()
288 .isEqualTo(ContextualCard.CardType.CONDITIONAL_FOOTER); in onContextualCardUpdated_hasEmptyMap_shouldKeepConditionalFooterCard()
[all …]
DContextualCardLoaderTest.java158 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
163 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
169 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
175 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
181 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
187 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
DContextualCardsAdapterTest.java119 cardsToUpdate.put(ContextualCard.CardType.DEFAULT, newCardList); in onContextualCardUpdated_emptyList_shouldClearCardList()
132 cardsToUpdate.put(ContextualCard.CardType.DEFAULT, newCardList); in onContextualCardUpdated_newCardList_shouldUpdateCardList()
153 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
159 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
169 .setCardType(ContextualCard.CardType.SLICE) in buildContextualCard()
DEligibleCardCheckerTest.java97 .setCardType(ContextualCard.CardType.SLICE) in isCardEligibleToDisplay_invalidRankingScore_returnFalse()
138 .setCardType(ContextualCard.CardType.SLICE) in getContextualCard()
/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()
152 conditionalCards.put(ContextualCard.CardType.CONDITIONAL_FOOTER, in buildConditionalCardsWithFooterOrHeader()
154 conditionalCards.put(ContextualCard.CardType.CONDITIONAL_HEADER, in buildConditionalCardsWithFooterOrHeader()
DConditionFooterContextualCard.java35 return CardType.CONDITIONAL_FOOTER; in getCardType()
DConditionalContextualCard.java48 return CardType.CONDITIONAL; in getCardType()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardRendererTest.java77 ContextualCard.CardType.LEGACY_SUGGESTION)).thenReturn(mController); in bindView_shouldSetListener()
96 ContextualCard.CardType.LEGACY_SUGGESTION)).thenReturn(mController); in bindView_closeButton_shouldSetListener()
114 ContextualCard.CardType.LEGACY_SUGGESTION)).thenReturn(mController); in viewClick_shouldInvokeControllerPrimaryClick()
135 ContextualCard.CardType.LEGACY_SUGGESTION)).thenReturn(mController); in viewClick_closeButton_shouldInvokeControllerDismissClick()
DLegacySuggestionContextualCardTest.java38 .setCardType(ContextualCard.CardType.CONDITIONAL) in newInstance_changeCardType_shouldCrash()
45 .isEqualTo(ContextualCard.CardType.LEGACY_SUGGESTION); in getCardType_shouldAlwaysBeSuggestionType()
/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/conditional/
DConditionHeaderContextualCardTest.java34 .setCardType(ContextualCard.CardType.LEGACY_SUGGESTION) in newInstance_changeCardType_shouldCrash()
41 .isEqualTo(ContextualCard.CardType.CONDITIONAL_HEADER); in getCardType_shouldAlwaysBeConditionalHeader()
DConditionFooterContextualCardTest.java34 .setCardType(ContextualCard.CardType.LEGACY_SUGGESTION) in newInstance_changeCardType_shouldCrash()
41 .isEqualTo(ContextualCard.CardType.CONDITIONAL_FOOTER); in getCardType_shouldAlwaysBeConditionalFooter()
DConditionalContextualCardTest.java37 .setCardType(ContextualCard.CardType.LEGACY_SUGGESTION) in newInstance_changeCardType_shouldCrash()
44 .isEqualTo(ContextualCard.CardType.CONDITIONAL); in getCardType_shouldAlwaysBeConditional()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardController.java76 return ContextualCard.CardType.LEGACY_SUGGESTION; in getCardType()
172 suggestionCards.put(ContextualCard.CardType.LEGACY_SUGGESTION, mSuggestions); in updateAdapter()
DLegacySuggestionContextualCard.java37 return CardType.LEGACY_SUGGESTION; in getCardType()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRendererTest.java238 ContextualCard.CardType.SLICE); in viewClick_removeCard_shouldRemoveViewHolderFromSet()
253 ContextualCard.CardType.SLICE); in viewClick_removeCard_sliceLiveDataShouldRemoveObservers()
298 .setCardType(ContextualCard.CardType.SLICE) in buildContextualCard()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java127 import com.android.contacts.logging.QuickContactEvent.CardType;
389 CardType.UNKNOWN_CARD, actionType, thirdPartyAction);
942 Logger.logQuickContactEvent(mReferrer, newContactType, CardType.UNKNOWN_CARD, in bindContactData()
1076 Logger.logQuickContactEvent(mReferrer, mContactType, CardType.CONTACT, in populateContactAndAboutCard()
1147 Logger.logQuickContactEvent(mReferrer, mContactType, CardType.ABOUT, in populateContactAndAboutCard()
1208 Logger.logQuickContactEvent(mReferrer, mContactType, CardType.NO_CONTACT, in initializeNoContactDetailCard()
2397 Logger.logQuickContactEvent(mReferrer, mContactType, CardType.UNKNOWN_CARD,
2404 Logger.logQuickContactEvent(mReferrer, mContactType, CardType.UNKNOWN_CARD,
2455 Logger.logQuickContactEvent(mReferrer, mContactType, CardType.UNKNOWN_CARD,
2459 Logger.logQuickContactEvent(mReferrer, mContactType, CardType.UNKNOWN_CARD,
[all …]
/packages/apps/Contacts/src/com/android/contacts/logging/
DQuickContactEvent.java49 public static final class CardType { class in QuickContactEvent

12