HomeSort by relevance Sort by last modified time
    Searched defs:promoted (Results 1 - 6 of 6) sorted by null

  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
ConcatPromoter.java 30 ListSuggestionCursor promoted) {
33 if (promoted.getCount() >= maxPromoted) {
36 promoted.add(new SuggestionPosition(c, i));
RankAwarePromoterTest.java 48 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY); local
49 mPromoter.pickPromoted(null, suggestions, MAX_PROMOTED_SUGGESTIONS, promoted);
51 assertEquals(MAX_PROMOTED_SUGGESTIONS, promoted.getCount());
56 for (int i = 0; i < promoted.getCount(); i++) {
57 promoted.moveTo(i);
60 promoted.getSuggestionSource().getLabel());
63 promoted.getSuggestionText1());
ShortcutPromoterTest.java 81 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); local
82 promoter.pickPromoted(mShortcuts, mSuggestions, maxPromoted, promoted);
83 assertEquals(expectedCount, promoted.getCount());
85 assertSuggestionEquals(new SuggestionPosition(promoted, i),
93 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); local
94 promoter.pickPromoted(mShortcuts, mSuggestions, maxPromoted, promoted);
95 assertEquals(expectedCount, promoted.getCount());
97 assertSuggestionEquals(new SuggestionPosition(promoted, i),
101 assertSuggestionEquals(new SuggestionPosition(promoted, mShortcuts.getCount()),
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
ShortcutPromoter.java 48 ListSuggestionCursor promoted) {
57 promoted.add(new SuggestionPosition(shortcuts, i));
60 if (promoted.getCount() < maxPromoted && mNextPromoter != null) {
61 mNextPromoter.pickPromoted(null, suggestions, maxPromoted, promoted);
RoundRobinPromoter.java 40 ListSuggestionCursor promoted) {
48 while (promoted.getCount() < maxPromoted) {
54 promoted.add(new SuggestionPosition(sourceResult, suggestionPos));
RankAwarePromoter.java 42 int maxPromoted, ListSuggestionCursor promoted) {
62 int slotsToFill = Math.min(getSlotsAboveKeyboard() - promoted.getCount(), maxPromoted);
65 maxPromoted -= roundRobin(defaultResults, slotsToFill, stripeSize, promoted);
69 // Then try to fill with the remaining promoted results
72 maxPromoted -= roundRobin(defaultResults, maxPromoted, stripeSize, promoted);
74 maxPromoted -= roundRobin(defaultResults, maxPromoted, maxPromoted, promoted);
80 maxPromoted -= roundRobin(otherResults, maxPromoted, stripeSize, promoted);
82 maxPromoted -= roundRobin(otherResults, maxPromoted, maxPromoted, promoted);
85 if (DBG) Log.d(TAG, "Returning " + promoted.toString());
99 * @param promoted the list to which promoted suggestions are added
    [all...]

Completed in 105 milliseconds