/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | RankAwarePromoter.java | 40 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 …]
|
D | AbstractPromoter.java | 34 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
|
D | ShortcutPromoter.java | 34 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()
|
D | WebPromoter.java | 33 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()
|
D | Suggestions.java | 302 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()
|
D | SingleCorpusPromoter.java | 41 public void pickPromoted(Suggestions suggestions, int maxPromoted, in pickPromoted() argument 48 promoteUntilFull(corpusResult, maxPromoted, promoted); in pickPromoted()
|
D | Promoter.java | 33 void pickPromoted(Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted); in pickPromoted() argument
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | BlendingPromoterTest.java | 117 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()
|
D | SuggestionsProviderImplTest.java | 107 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/ |
D | SuggestionsAdapterBase.java | 74 public void setMaxPromoted(int maxPromoted) { in setMaxPromoted() argument 75 if (DBG) Log.d(TAG, "setMaxPromoted " + maxPromoted); in setMaxPromoted() 76 mMaxPromoted = maxPromoted; in setMaxPromoted()
|
D | DelayingSuggestionsAdapter.java | 169 public void setMaxPromoted(int maxPromoted) { in setMaxPromoted() argument 170 mDelayedAdapter.setMaxPromoted(maxPromoted); in setMaxPromoted()
|
D | SuggestionsAdapter.java | 38 void setMaxPromoted(int maxPromoted); in setMaxPromoted() argument
|
D | SearchActivityViewTwoPane.java | 236 public void setMaxPromotedResults(int maxPromoted) { in setMaxPromotedResults() argument 238 mResultsAdapter.setMaxPromoted(maxPromoted); in setMaxPromotedResults()
|
D | SearchActivityView.java | 227 public void setMaxPromotedSuggestions(int maxPromoted) { in setMaxPromotedSuggestions() argument 229 mSuggestionsAdapter.setMaxPromoted(maxPromoted); in setMaxPromotedSuggestions() 236 public void setMaxPromotedResults(int maxPromoted) { in setMaxPromotedResults() argument
|