Home
last modified time | relevance | path

Searched refs:promoted (Results 1 – 12 of 12) sorted by relevance

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DShortcutLimitingPromoterTest.java55 SuggestionCursor promoted = promote(cursor(mS11, mS12, mS21, mS22), 0, 0); in testZeroShortcutsPerSource() local
57 assertSameSuggestions(expected, promoted); in testZeroShortcutsPerSource()
61 SuggestionCursor promoted = promote(cursor(mS11, mS12, mS21, mS22), 1, 1); in testOneShortcutPerSource() local
63 assertSameSuggestions(expected, promoted); in testOneShortcutPerSource()
67 SuggestionCursor promoted = promote(cursor(mS11, mS12, mS21, mS22), 2, 2); in testTwoShortcutsPerSource() local
69 assertSameSuggestions(expected, promoted); in testTwoShortcutsPerSource()
73 SuggestionCursor promoted = promote(cursor(mS11, mS12, mS21, mS22), 3, 3); in testThreeShortcutsPerSource() local
75 assertSameSuggestions(expected, promoted); in testThreeShortcutsPerSource()
79 SuggestionCursor promoted = promote(cursor(mS11, mS12), 0, 0); in testOneSourceZeroPromoted() local
81 assertSameSuggestions(expected, promoted); in testOneSourceZeroPromoted()
[all …]
DShortcutPromoterTest.java83 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); in maxPromotedTestNoNext() local
84 promoter.pickPromoted(mShortcuts, mSuggestions, maxPromoted, promoted); in maxPromotedTestNoNext()
85 assertEquals(expectedCount, promoted.getCount()); in maxPromotedTestNoNext()
87 assertSameSuggestions(slice(promoted, 0, count), slice(mShortcuts, 0, count)); in maxPromotedTestNoNext()
93 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); in maxPromotedTestConcatNext() local
94 promoter.pickPromoted(mShortcuts, mSuggestions, maxPromoted, promoted); in maxPromotedTestConcatNext()
95 assertEquals(expectedCount, promoted.getCount()); in maxPromotedTestConcatNext()
97 assertSameSuggestions(slice(promoted, 0, count), slice(mShortcuts, 0, count)); in maxPromotedTestConcatNext()
100 promoted, mShortcuts.getCount(), mSuggestions.get(0), 0); in maxPromotedTestConcatNext()
DRankAwarePromoterTest.java52 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY); in testPromotesExpectedSuggestions() local
53 mPromoter.pickPromoted(null, suggestions, MAX_PROMOTED_SUGGESTIONS, promoted); in testPromotesExpectedSuggestions()
55 assertEquals(MAX_PROMOTED_SUGGESTIONS, promoted.getCount()); in testPromotesExpectedSuggestions()
60 for (int i = 0; i < promoted.getCount(); i++) { in testPromotesExpectedSuggestions()
61 promoted.moveTo(i); in testPromotesExpectedSuggestions()
64 promoted.getSuggestionSource().getLabel()); in testPromotesExpectedSuggestions()
67 promoted.getSuggestionText1()); in testPromotesExpectedSuggestions()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DRankAwarePromoter.java42 int maxPromoted, ListSuggestionCursor promoted) { in pickPromoted() argument
63 int slotsToFill = Math.min(getSlotsAboveKeyboard() - promoted.getCount(), maxPromoted); in pickPromoted()
66 maxPromoted -= roundRobin(defaultResults, slotsToFill, stripeSize, promoted); in pickPromoted()
73 maxPromoted -= roundRobin(defaultResults, maxPromoted, stripeSize, promoted); in pickPromoted()
75 maxPromoted -= roundRobin(defaultResults, maxPromoted, maxPromoted, promoted); in pickPromoted()
81 maxPromoted -= roundRobin(otherResults, maxPromoted, stripeSize, promoted); in pickPromoted()
83 maxPromoted -= roundRobin(otherResults, maxPromoted, maxPromoted, promoted); in pickPromoted()
86 if (DBG) Log.d(TAG, "Returning " + promoted.toString()); in pickPromoted()
104 ListSuggestionCursor promoted) { in roundRobin() argument
110 count += promote(result, stripeSize, promoted); in roundRobin()
[all …]
DConcatPromoter.java28 ListSuggestionCursor promoted) { in pickPromoted() argument
31 if (promoted.getCount() >= maxPromoted) { in pickPromoted()
34 promoted.add(new SuggestionPosition(c, i)); in pickPromoted()
DPromoterWrapper.java41 ListSuggestionCursor promoted) { in pickPromoted() argument
42 if (promoted.getCount() < maxPromoted && mNextPromoter != null) { in pickPromoted()
43 mNextPromoter.pickPromoted(shortcuts, suggestions, maxPromoted, promoted); in pickPromoted()
DShortcutPromoter.java45 ListSuggestionCursor promoted) { in pickPromoted() argument
54 promoted.add(new SuggestionPosition(shortcuts, i)); in pickPromoted()
57 super.pickPromoted(null, suggestions, maxPromoted, promoted); in pickPromoted()
DRoundRobinPromoter.java40 ListSuggestionCursor promoted) { in pickPromoted() argument
48 while (promoted.getCount() < maxPromoted) { in pickPromoted()
54 promoted.add(new SuggestionPosition(sourceResult, suggestionPos)); in pickPromoted()
DShortcutLimitingPromoter.java53 ListSuggestionCursor promoted) { in pickPromoted() argument
80 super.pickPromoted(filteredShortcuts, suggestions, maxPromoted, promoted); in pickPromoted()
DSuggestions.java241 ListSuggestionCursor promoted = new ListSuggestionCursorNoDuplicates(mQuery); in updatePromoted() local
242 mPromoted = promoted; in updatePromoted()
246 mPromoter.pickPromoted(mShortcuts, mCorpusResults, mMaxPromoted, promoted); in updatePromoted()
DPromoter.java37 ListSuggestionCursor promoted); in pickPromoted() argument
DEventLogTags.logtags22 # TODO: Which are promoted?