/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | ShortcutLimitingPromoterTest.java | 55 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 …]
|
D | ShortcutPromoterTest.java | 83 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()
|
D | RankAwarePromoterTest.java | 52 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/ |
D | RankAwarePromoter.java | 42 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 …]
|
D | ConcatPromoter.java | 28 ListSuggestionCursor promoted) { in pickPromoted() argument 31 if (promoted.getCount() >= maxPromoted) { in pickPromoted() 34 promoted.add(new SuggestionPosition(c, i)); in pickPromoted()
|
D | PromoterWrapper.java | 41 ListSuggestionCursor promoted) { in pickPromoted() argument 42 if (promoted.getCount() < maxPromoted && mNextPromoter != null) { in pickPromoted() 43 mNextPromoter.pickPromoted(shortcuts, suggestions, maxPromoted, promoted); in pickPromoted()
|
D | ShortcutPromoter.java | 45 ListSuggestionCursor promoted) { in pickPromoted() argument 54 promoted.add(new SuggestionPosition(shortcuts, i)); in pickPromoted() 57 super.pickPromoted(null, suggestions, maxPromoted, promoted); in pickPromoted()
|
D | RoundRobinPromoter.java | 40 ListSuggestionCursor promoted) { in pickPromoted() argument 48 while (promoted.getCount() < maxPromoted) { in pickPromoted() 54 promoted.add(new SuggestionPosition(sourceResult, suggestionPos)); in pickPromoted()
|
D | ShortcutLimitingPromoter.java | 53 ListSuggestionCursor promoted) { in pickPromoted() argument 80 super.pickPromoted(filteredShortcuts, suggestions, maxPromoted, promoted); in pickPromoted()
|
D | Suggestions.java | 241 ListSuggestionCursor promoted = new ListSuggestionCursorNoDuplicates(mQuery); in updatePromoted() local 242 mPromoted = promoted; in updatePromoted() 246 mPromoter.pickPromoted(mShortcuts, mCorpusResults, mMaxPromoted, promoted); in updatePromoted()
|
D | Promoter.java | 37 ListSuggestionCursor promoted); in pickPromoted() argument
|
D | EventLogTags.logtags | 22 # TODO: Which are promoted?
|