OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:maxPromoted
(Results
1 - 3
of
3
) sorted by null
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
ShortcutPromoter.java
34
public void doPickPromoted(Suggestions suggestions, int
maxPromoted
,
36
promoteShortcuts(suggestions.getShortcuts(),
maxPromoted
, promoted);
40
void promoteShortcuts(SuggestionCursor shortcuts, int
maxPromoted
,
45
for (int i = 0; i < shortcutCount && promoted.getCount() <
maxPromoted
; i++) {
RankAwarePromoter.java
40
int
maxPromoted
, ListSuggestionCursor promoted) {
41
promoteSuggestions(suggestions.getCorpusResults(),
maxPromoted
, promoted);
45
void promoteSuggestions(Iterable<CorpusResult> suggestions, int
maxPromoted
,
56
promoteTopSuggestions(highRankingSuggestions, promoted,
maxPromoted
);
60
promoteEquallyFromEachCorpus(highRankingSuggestions, promoted,
maxPromoted
);
61
promoteEquallyFromEachCorpus(lowRankingSuggestions, promoted,
maxPromoted
);
73
ListSuggestionCursor promoted, int
maxPromoted
) {
75
int slotsLeft = getSlotsLeft(promoted,
maxPromoted
);
93
ListSuggestionCursor promoted, int
maxPromoted
) {
95
int slotsLeft = getSlotsLeft(promoted,
maxPromoted
);
[
all
...]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
BlendingPromoterTest.java
117
private void maxPromotedTest(int
maxPromoted
) {
119
ListSuggestionCursorNoDuplicates promoted = promote(config(), shortcuts,
maxPromoted
);
120
int expectedCount = Math.min(
maxPromoted
, shortcuts.getCount());
122
int count = Math.min(
maxPromoted
, shortcuts.getCount());
129
int
maxPromoted
= 10;
130
return promote(config, shortcuts,
maxPromoted
);
134
int
maxPromoted
) {
138
promoter.promoteShortcuts(shortcuts,
maxPromoted
, promoted);
Completed in 3017 milliseconds