Home | History | Annotate | Download | only in quicksearchbox

Lines Matching refs:promoted

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.
100 * @return the number of suggestions actually promoted.
103 ListSuggestionCursor promoted) {
109 count += promote(result, stripeSize, promoted);
119 * Copies suggestions from a SuggestionCursor to the list of promoted suggestions.
123 * @param promoted the list to which to add the suggestions
126 private int promote(SuggestionCursor cursor, int count, ListSuggestionCursor promoted) {
132 promoted.add(new SuggestionPosition(cursor));