/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardLoaderTest.java | 75 final List<ContextualCard> cards = getContextualCardList().stream().limit(2) in getDisplayableCards_twoEligibleCards_shouldShowAll() local 77 doReturn(cards).when(mContextualCardLoader).filterEligibleCards(anyList()); in getDisplayableCards_twoEligibleCards_shouldShowAll() 79 final List<ContextualCard> result = mContextualCardLoader.getDisplayableCards(cards); in getDisplayableCards_twoEligibleCards_shouldShowAll() 81 assertThat(result).hasSize(cards.size()); in getDisplayableCards_twoEligibleCards_shouldShowAll() 86 final List<ContextualCard> cards = getContextualCardList().stream().limit(4) in getDisplayableCards_fourEligibleCards_shouldShowDefaultCardCount() local 88 doReturn(cards).when(mContextualCardLoader).filterEligibleCards(anyList()); in getDisplayableCards_fourEligibleCards_shouldShowDefaultCardCount() 90 final List<ContextualCard> result = mContextualCardLoader.getDisplayableCards(cards); in getDisplayableCards_fourEligibleCards_shouldShowDefaultCardCount() 97 final List<ContextualCard> cards = getContextualCardList().stream().limit(5) in getDisplayableCards_oneStickyCard_shouldShowOneStickyCardAtTheTail() local 99 doReturn(cards).when(mContextualCardLoader).filterEligibleCards(anyList()); in getDisplayableCards_oneStickyCard_shouldShowOneStickyCardAtTheTail() 101 final List<ContextualCard> result = mContextualCardLoader.getDisplayableCards(cards); in getDisplayableCards_oneStickyCard_shouldShowOneStickyCardAtTheTail() [all …]
|
D | ContextualCardManagerTest.java | 129 final ArrayList<String> cards = getContextualCardList().stream() in constructor_hasSavedInstanceState_shouldContainExpectedSavedCards() local 132 outState.putStringArrayList(KEY_CONTEXTUAL_CARDS, cards); in constructor_hasSavedInstanceState_shouldContainExpectedSavedCards() 209 final List<ContextualCard> cards = new ArrayList<>(); in sortCards_shouldBeDescendingOrder() local 214 cards.add(card1); in sortCards_shouldBeDescendingOrder() 215 cards.add(card2); in sortCards_shouldBeDescendingOrder() 217 final List<ContextualCard> sortedCards = mManager.sortCards(cards); in sortCards_shouldBeDescendingOrder() 224 final List<ContextualCard> cards = new ArrayList<>(); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast() local 225 cards.add(new ConditionalContextualCard.Builder().build()); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast() 226 cards.add(buildContextualCard(TEST_SLICE_URI)); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast() 228 final List<ContextualCard> sortedCards = mManager.sortCards(cards); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast() [all …]
|
D | ContextualCardsAdapterTest.java | 81 final List<ContextualCard> cards = getContextualCardList(); in getItemCount_cardList_shouldReturnListSize() local 82 mAdapter.mContextualCards.addAll(cards); in getItemCount_cardList_shouldReturnListSize() 86 assertThat(count).isEqualTo(cards.size()); in getItemCount_cardList_shouldReturnListSize() 150 final List<ContextualCard> cards = new ArrayList<>(); in getContextualCardList() local 151 cards.add(new ContextualCard.Builder() in getContextualCardList() 157 cards.add(new ContextualCard.Builder() in getContextualCardList() 163 return cards; in getContextualCardList()
|
D | ContextualCardFeatureProviderImplTest.java | 76 final List<ContextualCard> cards = new ArrayList<>(); in getContextualCards_shouldSortByScore() local 78 cards.add(new ContextualCard(cursor)); in getContextualCards_shouldSortByScore() 80 assertThat(cards.get(0).getName()).isEqualTo("card3"); in getContextualCards_shouldSortByScore() 81 assertThat(cards.get(1).getName()).isEqualTo("card1"); in getContextualCards_shouldSortByScore() 82 assertThat(cards.get(2).getName()).isEqualTo("card2"); in getContextualCards_shouldSortByScore()
|
D | SettingsContextualCardProviderTest.java | 66 final ContextualCardList cards = in contentProviderCall_returnCorrectSize() local 69 assertThat(cards.getCardCount()).isEqualTo(actualNo); in contentProviderCall_returnCorrectSize() 74 final ContextualCardList cards = mProvider.getContextualCards(); in getContextualCards_darkThemeSlice_shouldGetImportantCategory() local 76 for (ContextualCard card : cards.getCardList()) { in getContextualCards_darkThemeSlice_shouldGetImportantCategory()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardManager.java | 172 List<ContextualCard> sortCards(List<ContextualCard> cards) { in sortCards() argument 174 final List<ContextualCard> result = cards.stream() in sortCards() 231 public void onFinishCardLoading(List<ContextualCard> cards) { in onFinishCardLoading() argument 235 final List<ContextualCard> cardsToKeep = getCardsToKeep(cards); in onFinishCardLoading() 252 onContextualCardUpdated(cards.stream() in onFinishCardLoading() 256 ContextualCardLogUtils.buildCardListLog(cards)); in onFinishCardLoading() 274 final ArrayList<String> cards = mContextualCards.stream() in onSaveInstanceState() local 278 outState.putStringArrayList(KEY_CONTEXTUAL_CARDS, cards); in onSaveInstanceState() 283 final List<ContextualCard> cards = new ArrayList<>(mContextualCards); in onWindowFocusChanged() local 285 for (ContextualCard card : cards) { in onWindowFocusChanged() [all …]
|
D | SettingsContextualCardProvider.java | 67 final ContextualCardList cards = ContextualCardList.newBuilder() in getContextualCards() local 75 return cards; in getContextualCards()
|
D | ContextualCardLoader.java | 191 final List<ContextualCard> cards = new ArrayList<>(); in filterEligibleCards() local 217 cards.add(card); in filterEligibleCards() 223 return cards; in filterEligibleCards()
|
D | ContextualCardsAdapter.java | 119 public void onContextualCardUpdated(Map<Integer, List<ContextualCard>> cards) { in onContextualCardUpdated() argument 120 final List<ContextualCard> contextualCards = cards.get(ContextualCard.CardType.DEFAULT); in onContextualCardUpdated()
|
D | ContextualCardUpdateListener.java | 37 void onContextualCardUpdated(Map<Integer, List<ContextualCard>> cards); in onContextualCardUpdated() argument
|
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPanelViewControllerTest.java | 155 List<WalletCard> cards = Collections.singletonList(createWalletCard("c1")); in init_doesNotShowEmptyStateViewIfCardsReturnedLastTime() local 156 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in init_doesNotShowEmptyStateViewIfCardsReturnedLastTime() 301 List<WalletCard> cards = Arrays.asList(createWalletCard("c1"), createWalletCard("c2")); in onWalletCardsRetrieved_showsCards() local 302 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in onWalletCardsRetrieved_showsCards() 320 List<WalletCard> cards = Arrays.asList(createWalletCard("c1"), createWalletCard("c2")); in onWalletCardsRetrieved_showsOverflowButton_startWalletActivity() local 321 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in onWalletCardsRetrieved_showsOverflowButton_startWalletActivity() 353 List<WalletCard> cards = Arrays.asList(createWalletCard("c1"), createWalletCard("c2")); in onWalletCardsRetrieved_noShortLabel_showsOnlySettingsInOverflowMenu() local 354 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in onWalletCardsRetrieved_noShortLabel_showsOnlySettingsInOverflowMenu() 382 List<WalletCard> cards = Arrays.asList(createWalletCard("c1"), createWalletCard("c2")); in onWalletCardsRetrieved_noWalletIntent_showsOnlySettingsInOverflowMenu() local 383 GetWalletCardsResponse response = new GetWalletCardsResponse(cards, 0); in onWalletCardsRetrieved_noWalletIntent_showsOnlySettingsInOverflowMenu() [all …]
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardLoaderTest.java | 59 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/ |
D | ConditionManager.java | 60 final List<ContextualCard> cards = new ArrayList<>(); in getDisplayableCards() local 73 cards.add(card); in getDisplayableCards() 79 return cards; in getDisplayableCards()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/legacysuggestion/ |
D | LegacySuggestionContextualCardController.java | 143 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/ |
D | ContextualCardLogUtils.java | 216 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/modules/Connectivity/ |
D | TEST_MAPPING | 405 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
|
/packages/inputmethods/LatinIME/dictionaries/ |
D | en_GB_wordlist.combined.gz |
|
D | en_US_wordlist.combined.gz |
|
D | en_wordlist.combined.gz |
|