Home
last modified time | relevance | path

Searched refs:maxPromoted (Results 1 – 14 of 14) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DRankAwarePromoter.java40 int maxPromoted, ListSuggestionCursor promoted) { in doPickPromoted() argument
41 promoteSuggestions(suggestions.getCorpusResults(), maxPromoted, promoted); in doPickPromoted() local
45 void promoteSuggestions(Iterable<CorpusResult> suggestions, int maxPromoted, in promoteSuggestions() argument
56 promoteTopSuggestions(highRankingSuggestions, promoted, maxPromoted); in promoteSuggestions()
60 promoteEquallyFromEachCorpus(highRankingSuggestions, promoted, maxPromoted); in promoteSuggestions()
61 promoteEquallyFromEachCorpus(lowRankingSuggestions, promoted, maxPromoted); in promoteSuggestions()
73 ListSuggestionCursor promoted, int maxPromoted) { in promoteTopSuggestions() argument
75 int slotsLeft = getSlotsLeft(promoted, maxPromoted); in promoteTopSuggestions()
93 ListSuggestionCursor promoted, int maxPromoted) { in promoteEquallyFromEachCorpus() argument
95 int slotsLeft = getSlotsLeft(promoted, maxPromoted); in promoteEquallyFromEachCorpus()
[all …]
DAbstractPromoter.java34 Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted) { in pickPromoted() argument
35 doPickPromoted(suggestions, maxPromoted, promoted); in pickPromoted()
37 mNext.pickPromoted(suggestions, maxPromoted, promoted); in pickPromoted()
42 Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted); in doPickPromoted() argument
DShortcutPromoter.java34 public void doPickPromoted(Suggestions suggestions, int maxPromoted, in doPickPromoted() argument
36 promoteShortcuts(suggestions.getShortcuts(), maxPromoted, promoted); in doPickPromoted() local
40 void promoteShortcuts(SuggestionCursor shortcuts, int maxPromoted, in promoteShortcuts() argument
45 for (int i = 0; i < shortcutCount && promoted.getCount() < maxPromoted; i++) { in promoteShortcuts()
DWebPromoter.java33 public void pickPromoted(Suggestions suggestions, int maxPromoted, in pickPromoted() argument
39 int maxShortcutCount = Math.min(mMaxShortcuts, maxPromoted); in pickPromoted()
54 for (int i = 0; i < webCount && promoted.getCount() < maxPromoted; i++) { in pickPromoted()
DSuggestions.java302 public SuggestionCursor getPromoted(Promoter promoter, int maxPromoted) { in getPromoted() argument
303 SuggestionCursor promoted = buildPromoted(promoter, maxPromoted); in getPromoted()
308 protected SuggestionCursor buildPromoted(Promoter promoter, int maxPromoted) { in buildPromoted() argument
313 promoter.pickPromoted(this, maxPromoted, promoted); in buildPromoted()
316 + maxPromoted + ") = " + promoted); in buildPromoted()
DSingleCorpusPromoter.java41 public void pickPromoted(Suggestions suggestions, int maxPromoted, in pickPromoted() argument
48 promoteUntilFull(corpusResult, maxPromoted, promoted); in pickPromoted()
DPromoter.java33 void pickPromoted(Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted); in pickPromoted() argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DBlendingPromoterTest.java117 private void maxPromotedTest(int maxPromoted) { in maxPromotedTest() argument
119 ListSuggestionCursorNoDuplicates promoted = promote(config(), shortcuts, maxPromoted); in maxPromotedTest()
120 int expectedCount = Math.min(maxPromoted, shortcuts.getCount()); in maxPromotedTest()
122 int count = Math.min(maxPromoted, shortcuts.getCount()); in maxPromotedTest()
129 int maxPromoted = 10; in limit() local
130 return promote(config, shortcuts, maxPromoted); in limit()
134 int maxPromoted) { in promote() argument
138 promoter.promoteShortcuts(shortcuts, maxPromoted, promoted); in promote()
DSuggestionsProviderImplTest.java107 public void pickPromoted(Suggestions suggestions, int maxPromoted, in pickPromoted() argument
112 if (promoted.getCount() >= maxPromoted) { in pickPromoted()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsAdapterBase.java74 public void setMaxPromoted(int maxPromoted) { in setMaxPromoted() argument
75 if (DBG) Log.d(TAG, "setMaxPromoted " + maxPromoted); in setMaxPromoted()
76 mMaxPromoted = maxPromoted; in setMaxPromoted()
DDelayingSuggestionsAdapter.java169 public void setMaxPromoted(int maxPromoted) { in setMaxPromoted() argument
170 mDelayedAdapter.setMaxPromoted(maxPromoted); in setMaxPromoted()
DSuggestionsAdapter.java38 void setMaxPromoted(int maxPromoted); in setMaxPromoted() argument
DSearchActivityViewTwoPane.java236 public void setMaxPromotedResults(int maxPromoted) { in setMaxPromotedResults() argument
238 mResultsAdapter.setMaxPromoted(maxPromoted); in setMaxPromotedResults()
DSearchActivityView.java227 public void setMaxPromotedSuggestions(int maxPromoted) { in setMaxPromotedSuggestions() argument
229 mSuggestionsAdapter.setMaxPromoted(maxPromoted); in setMaxPromotedSuggestions()
236 public void setMaxPromotedResults(int maxPromoted) { in setMaxPromotedResults() argument