Home | History | Annotate | Download | only in quicksearchbox

Lines Matching defs:promoted

51         ListSuggestionCursorNoDuplicates promoted = 
53 mPromoter.promoteSuggestions(suggestions, MAX_PROMOTED_SUGGESTIONS, promoted);
58 assertRightSuggestionsWerePromoted(promoted, expectedSource, expectedSuggestion);
63 ListSuggestionCursorNoDuplicates promoted =
67 // (e.g. a shortcut) into the promoted suggestions list, and the current
75 promoted.add(shortcut);
77 mPromoter.promoteSuggestions(suggestions, MAX_PROMOTED_SUGGESTIONS, promoted);
82 // The promoted results. There's just one result from corpus
90 // The promoted results.
93 assertRightSuggestionsWerePromoted(promoted, expectedSource, expectedSuggestion);
96 private void assertRightSuggestionsWerePromoted(ListSuggestionCursorNoDuplicates promoted,
98 assertEquals(MAX_PROMOTED_SUGGESTIONS, promoted.getCount());
100 for (int i = 0; i < promoted.getCount(); i++) {
101 promoted.moveTo(i);
104 promoted.getSuggestionSource().getLabel());
107 promoted.getSuggestionText1());
113 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY);
117 promoted.add(new SuggestionPosition(shortcuts, 1));
119 mPromoter.promoteSuggestions(suggestions, MAX_PROMOTED_SUGGESTIONS, promoted);
120 assertEquals(MAX_PROMOTED_SUGGESTIONS, promoted.getCount());