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

  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
Promoter.java 27 * Gets the promoted suggestions.
31 * @param promoted List to add the promoted suggestions to.
33 void pickPromoted(Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted);
RankAwarePromoter.java 40 int maxPromoted, ListSuggestionCursor promoted) {
41 promoteSuggestions(suggestions.getCorpusResults(), maxPromoted, promoted); local
46 ListSuggestionCursor promoted) {
56 promoteTopSuggestions(highRankingSuggestions, promoted, maxPromoted);
58 // Then try to fill promoted list with the remaining high-ranking suggestions,
60 promoteEquallyFromEachCorpus(highRankingSuggestions, promoted, maxPromoted);
61 promoteEquallyFromEachCorpus(lowRankingSuggestions, promoted, maxPromoted);
63 if (DBG) Log.d(TAG, "Returning " + promoted.toString());
69 * The corpora will appear in the promoted list in the order they are listed
73 ListSuggestionCursor promoted, int maxPromoted)
    [all...]
AbstractPromoter.java 34 Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted) {
35 doPickPromoted(suggestions, maxPromoted, promoted);
37 mNext.pickPromoted(suggestions, maxPromoted, promoted);
42 Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted);
SingleCorpusPromoter.java 42 ListSuggestionCursor promoted) {
45 promoteUntilFull(shortcuts, mMaxShortcuts, promoted);
48 promoteUntilFull(corpusResult, maxPromoted, promoted);
51 private void promoteUntilFull(SuggestionCursor c, int maxSize, ListSuggestionCursor promoted) {
54 for (int i = 0; i < count && promoted.getCount() < maxSize; i++) {
57 promoted.add(new SuggestionPosition(c, i));
ShortcutPromoter.java 35 ListSuggestionCursor promoted) {
36 promoteShortcuts(suggestions.getShortcuts(), maxPromoted, promoted); local
41 ListSuggestionCursor promoted) {
45 for (int i = 0; i < shortcutCount && promoted.getCount() < maxPromoted; i++) {
52 promoted.add(new SuggestionPosition(shortcuts));
WebPromoter.java 34 ListSuggestionCursor promoted) {
40 for (int i = 0; i < shortcutCount && promoted.getCount() < maxShortcutCount; i++) {
44 promoted.add(new SuggestionPosition(shortcuts, i));
54 for (int i = 0; i < webCount && promoted.getCount() < maxPromoted; i++) {
58 promoted.add(new SuggestionPosition(webResult, i));
Suggestions.java 281 private void refreshShortcuts(SuggestionCursor promoted) {
282 if (DBG) Log.d(TAG, "refreshShortcuts(" + promoted + ")");
283 for (int i = 0; i < promoted.getCount(); ++i) {
284 promoted.moveTo(i);
285 if (promoted.isSuggestionShortcut()) {
286 getShortcuts().refresh(promoted);
303 SuggestionCursor promoted = buildPromoted(promoter, maxPromoted); local
304 refreshShortcuts(promoted);
305 return promoted;
309 ListSuggestionCursor promoted = new ListSuggestionCursorNoDuplicates(mQuery) local
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
RankAwarePromoterTest.java 51 ListSuggestionCursorNoDuplicates promoted = local
53 mPromoter.promoteSuggestions(suggestions, MAX_PROMOTED_SUGGESTIONS, promoted);
58 assertRightSuggestionsWerePromoted(promoted, expectedSource, expectedSuggestion);
63 ListSuggestionCursorNoDuplicates promoted = local
67 // (e.g. a shortcut) into the promoted suggestions list, and the current
75 promoted.add(shortcut);
77 mPromoter.promoteSuggestions(suggestions, MAX_PROMOTED_SUGGESTIONS, promoted);
82 // The promoted results. There's just one result from corpus
90 // The promoted results.
93 assertRightSuggestionsWerePromoted(promoted, expectedSource, expectedSuggestion)
113 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY); local
    [all...]
BlendingPromoterTest.java 58 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 0, 0); local
60 assertSameSuggestions(expected, promoted);
64 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 1, 1); local
66 assertSameSuggestions(expected, promoted);
70 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 2, 2); local
72 assertSameSuggestions(expected, promoted);
76 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 3, 3); local
78 assertSameSuggestions(expected, promoted);
82 SuggestionCursor promoted = limit(cursor(mS11, mS12), 0, 0); local
84 assertSameSuggestions(expected, promoted);
88 SuggestionCursor promoted = limit(cursor(mS11, mS12), 1, 1); local
94 SuggestionCursor promoted = limit(cursor(mS11, mS12), 2, 2); local
100 SuggestionCursor promoted = limit(cursor(), 2, 2); local
106 SuggestionCursor promoted = limit(cursor(mS11, mS12, mWeb1, mWeb2), 0, 2); local
112 SuggestionCursor promoted = limit(cursor(mS11, mS12, mWeb1, mWeb2), 2, 2); local
119 ListSuggestionCursorNoDuplicates promoted = promote(config(), shortcuts, maxPromoted); local
137 ListSuggestionCursorNoDuplicates promoted = new ListSuggestionCursorNoDuplicates(mQuery); local
    [all...]
SingleCorpusPromoterTest.java 43 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY); local
44 mPromoter.pickPromoted(suggestions, 4, promoted);
46 assertEquals(2, promoted.getCount());
50 for (int i = 0; i < promoted.getCount(); i++) {
51 promoted.moveTo(i);
53 expectedSource[i], promoted.getSuggestionSource());
ResultPromoterTest.java 72 SuggestionCursor promoted = promoteShortcuts(mShortcuts); local
74 assertSameSuggestions(expected, promoted);
78 SuggestionCursor promoted = promoteSuggestions(mCorpusResults); local
80 assertSameSuggestionsNoOrder(expected, promoted);
91 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); local
92 promoter.promoteShortcuts(shortcuts, MAX_PROMOTED_SUGGESTIONS, promoted);
93 return promoted;
99 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); local
100 promoter.promoteSuggestions(suggestions, MAX_PROMOTED_SUGGESTIONS, promoted);
101 return promoted;
    [all...]
WebPromoterTest.java 77 SuggestionCursor promoted = promote(mSuggestions, 0, 1); local
81 assertSameSuggestions(expected, promoted);
85 SuggestionCursor promoted = promote(mSuggestions, 1, 1); local
89 assertSameSuggestions(expected, promoted);
93 SuggestionCursor promoted = promote(mSuggestions, 1, 2); local
97 assertSameSuggestions(expected, promoted);
103 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); local
104 promoter.pickPromoted(suggestions, maxSuggestions, promoted);
105 return promoted;
SuggestionsProviderImplTest.java 90 assertEquals("Incorrect promoted: " + promote(suggestions),
94 assertEquals("Incorrect promoted: " + promote(suggestions),
108 ListSuggestionCursor promoted) {
112 if (promoted.getCount() >= maxPromoted) {
115 promoted.add(new SuggestionPosition(c, i));
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
ClusteredSuggestionsAdapter.java 97 SuggestionCursor promoted = getCurrentPromotedSuggestions(); local
99 if (promoted != null && promoted.getCount() > 0) {
100 promoted.moveTo(0);
102 promotedSuggestions.add(SuggestionUtils.getSuggestionKey(promoted));
103 } while (promoted.moveToNext());
204 SuggestionCursor promoted = getCurrentPromotedSuggestions(); local
205 return (promoted == null ? 0 : promoted.getCount());
  /external/v8/test/mjsunit/regress/
regress-1708.js 46 // At this point "array" should have been promoted to old-space and be
  /external/clang/include/clang/AST/
Decl.h     [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.core.resources_3.6.1.R36x_v20101007-1215.jar 

Completed in 2955 milliseconds