/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/ |
D | ConditionContextualCardControllerTest.java | 33 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 …]
|
D | ConditionFooterContextualCardRendererTest.java | 70 ContextualCard.CardType.CONDITIONAL_FOOTER)).thenReturn(mController); in bindView_shouldSetClickListener() 88 ContextualCard.CardType.CONDITIONAL_FOOTER)).thenReturn(mController); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
|
D | ConditionContextualCardRendererTest.java | 77 ContextualCard.CardType.CONDITIONAL)).thenReturn(mController); in bindView_shouldSetListener() 96 ContextualCard.CardType.CONDITIONAL)).thenReturn(mController); in viewClick_shouldInvokeControllerPrimaryClick()
|
D | ConditionHeaderContextualCardRendererTest.java | 78 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/ |
D | ContextualCardLookupTable.java | 24 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 …]
|
D | ContextualCard.java | 41 @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()
|
D | ContextualCardManager.java | 114 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()
|
D | ContextualCardController.java | 24 @ContextualCard.CardType
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardManagerTest.java | 149 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 …]
|
D | ContextualCardLoaderTest.java | 158 .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()
|
D | ContextualCardsAdapterTest.java | 119 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()
|
D | EligibleCardCheckerTest.java | 97 .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/ |
D | ConditionContextualCardController.java | 73 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()
|
D | ConditionFooterContextualCard.java | 35 return CardType.CONDITIONAL_FOOTER; in getCardType()
|
D | ConditionalContextualCard.java | 48 return CardType.CONDITIONAL; in getCardType()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/ |
D | LegacySuggestionContextualCardRendererTest.java | 77 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()
|
D | LegacySuggestionContextualCardTest.java | 38 .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/ |
D | ConditionHeaderContextualCardTest.java | 34 .setCardType(ContextualCard.CardType.LEGACY_SUGGESTION) in newInstance_changeCardType_shouldCrash() 41 .isEqualTo(ContextualCard.CardType.CONDITIONAL_HEADER); in getCardType_shouldAlwaysBeConditionalHeader()
|
D | ConditionFooterContextualCardTest.java | 34 .setCardType(ContextualCard.CardType.LEGACY_SUGGESTION) in newInstance_changeCardType_shouldCrash() 41 .isEqualTo(ContextualCard.CardType.CONDITIONAL_FOOTER); in getCardType_shouldAlwaysBeConditionalFooter()
|
D | ConditionalContextualCardTest.java | 37 .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/ |
D | LegacySuggestionContextualCardController.java | 76 return ContextualCard.CardType.LEGACY_SUGGESTION; in getCardType() 172 suggestionCards.put(ContextualCard.CardType.LEGACY_SUGGESTION, mSuggestions); in updateAdapter()
|
D | LegacySuggestionContextualCard.java | 37 return CardType.LEGACY_SUGGESTION; in getCardType()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | SliceContextualCardRendererTest.java | 238 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/ |
D | QuickContactActivity.java | 127 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/ |
D | QuickContactEvent.java | 49 public static final class CardType { class in QuickContactEvent
|