Home
last modified time | relevance | path

Searched refs:ListSuggestionCursor (Results 1 – 24 of 24) sorted by relevance

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSourceShortcutRefresherTest.java73 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); in testRefreshNull()
84 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); in testRefreshEmpty()
95 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); in testRefreshSuccess()
124 return new ListSuggestionCursor(mQuery); in refreshShortcut()
DResultPromoterTest.java89 private ListSuggestionCursor promoteShortcuts(SuggestionCursor shortcuts) { in promoteShortcuts()
91 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); in promoteShortcuts()
96 private ListSuggestionCursor promoteSuggestions(List<CorpusResult> suggestions) { in promoteSuggestions()
99 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); in promoteSuggestions()
109 return new ListSuggestionCursor(mQuery, suggestions); in cursor()
DMultiSourceCorpusTest.java56 ListSuggestionCursor expected = concatSuggestionCursors("foo", in testGetSuggestions()
67 private static ListSuggestionCursor concatSuggestionCursors(String query, in concatSuggestionCursors()
69 ListSuggestionCursor out = new ListSuggestionCursor("foo"); in concatSuggestionCursors()
DSuggestionCursorUtil.java126 public static ListSuggestionCursor slice(SuggestionCursor cursor, int start) {
130 public static ListSuggestionCursor slice(SuggestionCursor cursor, int start, int length) {
131 ListSuggestionCursor out = new ListSuggestionCursor(cursor.getUserQuery());
138 public static ListSuggestionCursor concat(SuggestionCursor... cursors) {
139 ListSuggestionCursor out = new ListSuggestionCursor(cursors[0].getUserQuery());
190 public static void addAll(ListSuggestionCursor to, SuggestionCursor from) {
DShortcutRepositoryTest.java85 protected ListSuggestionCursor mAppSuggestions;
86 protected ListSuggestionCursor mContactSuggestions;
121 mAppSuggestions = new ListSuggestionCursor("foo", mApp1, mApp2, mApp3); in setUp()
139 mContactSuggestions = new ListSuggestionCursor("foo", mContact1, mContact2); in setUp()
186 removeFromHistory(new ListSuggestionCursor("j", jane, john), 1); in testRemoveFromHistory()
201 removeFromHistory(new ListSuggestionCursor("j", jane), 0); in testRemoveFromHistoryNonExisting()
687 ListSuggestionCursor expected = new ListSuggestionCursor("a"); in testAppUpgradePromotesLowerRanked()
773 protected ListSuggestionCursor makeCursor(String query, SuggestionData... suggestions) { in makeCursor()
774 ListSuggestionCursor cursor = new ListSuggestionCursor(query); in makeCursor()
782 reportClick(new ListSuggestionCursor(query, suggestion), 0); in reportClick()
[all …]
DWebPromoterTest.java100 private ListSuggestionCursor promote(Suggestions suggestions, int maxShortcuts, in promote()
103 ListSuggestionCursor promoted = new ListSuggestionCursor(mQuery); in promote()
109 return new ListSuggestionCursor(mQuery, suggestions); in cursor()
DSingleCorpusPromoterTest.java43 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY); in testPromotesOnlyGivenCorpus()
DRankAwarePromoterTest.java113 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY); in testPromotesRightNumberOfSuggestions()
DMockSource.java140 ListSuggestionCursor cursor = new ListSuggestionCursor(query); in getSuggestions()
DSuggestionsProviderImplTest.java108 ListSuggestionCursor promoted) { in pickPromoted()
DBlendingPromoterTest.java161 return new ListSuggestionCursor(mQuery, suggestions);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DRankAwarePromoter.java40 int maxPromoted, ListSuggestionCursor promoted) { in doPickPromoted()
46 ListSuggestionCursor promoted) { in promoteSuggestions()
73 ListSuggestionCursor promoted, int maxPromoted) { in promoteTopSuggestions()
93 ListSuggestionCursor promoted, int maxPromoted) { in promoteEquallyFromEachCorpus()
148 private int getSlotsLeft(ListSuggestionCursor promoted, int maxPromoted) { in getSlotsLeft()
169 ListSuggestionCursor promoted) { in roundRobin()
192 private int promote(SuggestionCursor cursor, int count, ListSuggestionCursor promoted) { in promote()
DListSuggestionCursor.java31 public class ListSuggestionCursor extends AbstractSuggestionCursorWrapper { class
43 public ListSuggestionCursor(String userQuery) { in ListSuggestionCursor() method in ListSuggestionCursor
48 public ListSuggestionCursor(String userQuery, Suggestion...suggestions) { in ListSuggestionCursor() method in ListSuggestionCursor
55 public ListSuggestionCursor(String userQuery, int capacity) { in ListSuggestionCursor() method in ListSuggestionCursor
DAbstractPromoter.java34 Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted) { in pickPromoted()
42 Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted); in doPickPromoted()
DSingleCorpusPromoter.java42 ListSuggestionCursor promoted) { in pickPromoted()
51 private void promoteUntilFull(SuggestionCursor c, int maxSize, ListSuggestionCursor promoted) { in promoteUntilFull()
DShortcutPromoter.java35 ListSuggestionCursor promoted) { in doPickPromoted()
41 ListSuggestionCursor promoted) { in promoteShortcuts()
DPromoter.java33 void pickPromoted(Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted); in pickPromoted()
DListSuggestionCursorNoDuplicates.java27 public class ListSuggestionCursorNoDuplicates extends ListSuggestionCursor {
DShortcutsProvider.java142 ListSuggestionCursor cursor = new ListSuggestionCursor(userQuery); in storeShortcut()
DWebPromoter.java34 ListSuggestionCursor promoted) { in pickPromoted()
DShortcutCursor.java30 public class ShortcutCursor extends ListSuggestionCursor {
DMultiSourceCorpus.java161 protected class Result extends ListSuggestionCursor implements CorpusResult {
DSuggestions.java309 ListSuggestionCursor promoted = new ListSuggestionCursorNoDuplicates(mQuery); in buildPromoted()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DClusteredSuggestionsAdapter.java19 import com.android.quicksearchbox.ListSuggestionCursor;
114 ListSuggestionCursor corpusSuggestions = new ListSuggestionCursor( in buildCorpusGroups()