Home
last modified time | relevance | path

Searched refs:cards (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardManager.java158 List<ContextualCard> sortCards(List<ContextualCard> cards) { in sortCards() argument
160 return cards.stream() in sortCards()
211 public void onFinishCardLoading(List<ContextualCard> cards) { in onFinishCardLoading() argument
215 final List<ContextualCard> cardsToKeep = getCardsToKeep(cards); in onFinishCardLoading()
232 onContextualCardUpdated(cards.stream() in onFinishCardLoading()
236 ContextualCardLogUtils.buildCardListLog(cards)); in onFinishCardLoading()
254 final ArrayList<String> cards = mContextualCards.stream() in onSaveInstanceState() local
258 outState.putStringArrayList(KEY_CONTEXTUAL_CARDS, cards); in onSaveInstanceState()
263 final List<ContextualCard> cards = new ArrayList<>(mContextualCards); in onWindowFocusChanged() local
265 for (ContextualCard card : cards) { in onWindowFocusChanged()
[all …]
DContextualCardLoader.java159 final List<ContextualCard> cards = new ArrayList<>(); in filterEligibleCards() local
172 cards.add(card); in filterEligibleCards()
178 return cards; in filterEligibleCards()
DSettingsContextualCardProvider.java87 final ContextualCardList cards = ContextualCardList.newBuilder() in getContextualCards() local
98 return cards; in getContextualCards()
DContextualCardsAdapter.java119 public void onContextualCardUpdated(Map<Integer, List<ContextualCard>> cards) { in onContextualCardUpdated() argument
120 final List<ContextualCard> contextualCards = cards.get(ContextualCard.CardType.DEFAULT); in onContextualCardUpdated()
DContextualCardUpdateListener.java37 void onContextualCardUpdated(Map<Integer, List<ContextualCard>> cards); in onContextualCardUpdated() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCardManager.java150 List<ContextualCard> sortCards(List<ContextualCard> cards) { in sortCards() argument
152 return cards.stream() in sortCards()
203 public void onFinishCardLoading(List<ContextualCard> cards) { in onFinishCardLoading() argument
207 final List<ContextualCard> cardsToKeep = getCardsToKeep(cards); in onFinishCardLoading()
220 onContextualCardUpdated(cards.stream() in onFinishCardLoading()
241 final ArrayList<String> cards = mContextualCards.stream() in onSaveInstanceState() local
245 outState.putStringArrayList(KEY_CONTEXTUAL_CARDS, cards); in onSaveInstanceState()
250 final List<ContextualCard> cards = new ArrayList<>(mContextualCards); in onWindowFocusChanged() local
251 for (ContextualCard card : cards) { in onWindowFocusChanged()
272 List<ContextualCard> getCardsWithViewType(List<ContextualCard> cards) { in getCardsWithViewType() argument
[all …]
DContextualCardLoader.java189 final List<ContextualCard> cards = new ArrayList<>(); in filterEligibleCards() local
202 cards.add(card); in filterEligibleCards()
208 return cards; in filterEligibleCards()
211 private int getNumberOfLargeCard(List<ContextualCard> cards) { in getNumberOfLargeCard() argument
212 return (int) cards.stream() in getNumberOfLargeCard()
DSettingsContextualCardProvider.java64 final ContextualCardList cards = ContextualCardList.newBuilder() in getContextualCards() local
72 return cards; in getContextualCards()
DContextualCardsAdapter.java121 public void onContextualCardUpdated(Map<Integer, List<ContextualCard>> cards) { in onContextualCardUpdated() argument
122 final List<ContextualCard> contextualCards = cards.get(ContextualCard.CardType.DEFAULT); in onContextualCardUpdated()
DContextualCardFeatureProviderImpl.java166 byte[] serialize(List<ContextualCard> cards) { in serialize() argument
168 cards.stream().forEach(card -> builder.addCard( in serialize()
DContextualCardUpdateListener.java37 void onContextualCardUpdated(Map<Integer, List<ContextualCard>> cards); in onContextualCardUpdated() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java102 final ArrayList<String> cards = getContextualCardList().stream() in constructor_hasSavedInstanceState_shouldContainExpectedSavedCards() local
105 outState.putStringArrayList(KEY_CONTEXTUAL_CARDS, cards); in constructor_hasSavedInstanceState_shouldContainExpectedSavedCards()
140 final List<ContextualCard> cards = new ArrayList<>(); in sortCards_shouldBeDescendingOrder() local
145 cards.add(card1); in sortCards_shouldBeDescendingOrder()
146 cards.add(card2); in sortCards_shouldBeDescendingOrder()
148 final List<ContextualCard> sortedCards = mManager.sortCards(cards); in sortCards_shouldBeDescendingOrder()
155 final List<ContextualCard> cards = new ArrayList<>(); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast() local
156 cards.add(new ConditionalContextualCard.Builder().build()); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast()
157 cards.add(buildContextualCard(TEST_SLICE_URI)); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast()
159 final List<ContextualCard> sortedCards = mManager.sortCards(cards); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast()
[all …]
DContextualCardLoaderTest.java73 final List<ContextualCard> cards = getContextualCardList().stream().limit(2) in getDisplayableCards_twoEligibleCards_shouldShowAll() local
75 doReturn(cards).when(mContextualCardLoader).filterEligibleCards(anyList()); in getDisplayableCards_twoEligibleCards_shouldShowAll()
77 final List<ContextualCard> result = mContextualCardLoader.getDisplayableCards(cards); in getDisplayableCards_twoEligibleCards_shouldShowAll()
79 assertThat(result).hasSize(cards.size()); in getDisplayableCards_twoEligibleCards_shouldShowAll()
114 final List<ContextualCard> cards = new ArrayList<>(); in getContextualCardList() local
115 cards.add(new ContextualCard.Builder() in getContextualCardList()
120 cards.add(new ContextualCard.Builder() in getContextualCardList()
126 cards.add(new ContextualCard.Builder() in getContextualCardList()
131 cards.add(new ContextualCard.Builder() in getContextualCardList()
137 return cards; in getContextualCardList()
DContextualCardsAdapterTest.java85 final List<ContextualCard> cards = getContextualCardList(); in getItemCount_cardList_shouldReturnListSize() local
86 mAdapter.mContextualCards.addAll(cards); in getItemCount_cardList_shouldReturnListSize()
90 assertThat(count).isEqualTo(cards.size()); in getItemCount_cardList_shouldReturnListSize()
154 final List<ContextualCard> cards = new ArrayList<>(); in getContextualCardList() local
155 cards.add(new ContextualCard.Builder() in getContextualCardList()
161 cards.add(new ContextualCard.Builder() in getContextualCardList()
167 return cards; in getContextualCardList()
DCardDatabaseHelperTest.java97 final List<ContextualCard> cards = new ArrayList<>(); in getContextualCards_shouldSortByScore() local
99 cards.add(new ContextualCard(cursor)); in getContextualCards_shouldSortByScore()
101 assertThat(cards.get(0).getName()).isEqualTo("card3"); in getContextualCards_shouldSortByScore()
102 assertThat(cards.get(1).getName()).isEqualTo("card1"); in getContextualCards_shouldSortByScore()
103 assertThat(cards.get(2).getName()).isEqualTo("card2"); in getContextualCards_shouldSortByScore()
DSettingsContextualCardProviderTest.java66 final ContextualCardList cards = in contentProviderCall_returnCorrectSize() local
69 assertThat(cards.getCardCount()).isEqualTo(actualNo); in contentProviderCall_returnCorrectSize()
74 final ContextualCardList cards = mProvider.getContextualCards(); in getContextualCards_wifiSlice_shouldGetImportantCategory() local
76 for (ContextualCard card : cards.getCardList()) { in getContextualCards_wifiSlice_shouldGetImportantCategory()
/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/
DContextualCardLoaderTest.java59 final List<ContextualCard> cards = new ArrayList<>(); in filterEligibleCards_twoInvalidCards_shouldReturnOneCard() local
60 cards.add(getContextualCard(Uri.parse(sliceUri1))); in filterEligibleCards_twoInvalidCards_shouldReturnOneCard()
61 cards.add(getContextualCard(Uri.parse(sliceUri2))); in filterEligibleCards_twoInvalidCards_shouldReturnOneCard()
62 cards.add(getContextualCard(Uri.parse(sliceUri3))); in filterEligibleCards_twoInvalidCards_shouldReturnOneCard()
64 final List<ContextualCard> result = mContextualCardLoader.filterEligibleCards(cards); in filterEligibleCards_twoInvalidCards_shouldReturnOneCard()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DConditionManager.java60 final List<ContextualCard> cards = new ArrayList<>(); in getDisplayableCards() local
73 cards.add(card); in getDisplayableCards()
79 return cards; in getDisplayableCards()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DConditionManager.java63 final List<ContextualCard> cards = new ArrayList<>(); in getDisplayableCards() local
76 cards.add(card); in getDisplayableCards()
82 return cards; in getDisplayableCards()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardController.java136 final List<ContextualCard> cards = new ArrayList<>(); in loadSuggestions() local
152 cards.add(cardBuilder.build()); in loadSuggestions()
158 suggestionCards.put(ContextualCard.CardType.LEGACY_SUGGESTION, cards); in loadSuggestions()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardController.java143 final List<ContextualCard> cards = new ArrayList<>(); in loadSuggestions() local
160 cards.add(cardBuilder.build()); in loadSuggestions()
165 mSuggestions.addAll(cards); in loadSuggestions()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/logging/
DContextualCardLogUtils.java216 public static String buildCardListLog(List<ContextualCard> cards) { in buildCardListLog() argument
218 log.append(cards.size()); in buildCardListLog()
219 for (ContextualCard card : cards) { in buildCardListLog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/logging/
DContextualCardLogUtils.java216 public static String buildCardListLog(List<ContextualCard> cards) { in buildCardListLog() argument
218 log.append(cards.size()); in buildCardListLog()
219 for (ContextualCard card : cards) { in buildCardListLog()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...

12