/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | SourceShortcutRefresherTest.java | 73 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()
|
D | ResultPromoterTest.java | 89 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()
|
D | MultiSourceCorpusTest.java | 56 ListSuggestionCursor expected = concatSuggestionCursors("foo", in testGetSuggestions() 67 private static ListSuggestionCursor concatSuggestionCursors(String query, in concatSuggestionCursors() 69 ListSuggestionCursor out = new ListSuggestionCursor("foo"); in concatSuggestionCursors()
|
D | SuggestionCursorUtil.java | 126 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) {
|
D | ShortcutRepositoryTest.java | 85 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 …]
|
D | WebPromoterTest.java | 100 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()
|
D | SingleCorpusPromoterTest.java | 43 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY); in testPromotesOnlyGivenCorpus()
|
D | RankAwarePromoterTest.java | 113 ListSuggestionCursor promoted = new ListSuggestionCursor(TEST_QUERY); in testPromotesRightNumberOfSuggestions()
|
D | MockSource.java | 140 ListSuggestionCursor cursor = new ListSuggestionCursor(query); in getSuggestions()
|
D | SuggestionsProviderImplTest.java | 108 ListSuggestionCursor promoted) { in pickPromoted()
|
D | BlendingPromoterTest.java | 161 return new ListSuggestionCursor(mQuery, suggestions);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | RankAwarePromoter.java | 40 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()
|
D | ListSuggestionCursor.java | 31 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
|
D | AbstractPromoter.java | 34 Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted) { in pickPromoted() 42 Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted); in doPickPromoted()
|
D | SingleCorpusPromoter.java | 42 ListSuggestionCursor promoted) { in pickPromoted() 51 private void promoteUntilFull(SuggestionCursor c, int maxSize, ListSuggestionCursor promoted) { in promoteUntilFull()
|
D | ShortcutPromoter.java | 35 ListSuggestionCursor promoted) { in doPickPromoted() 41 ListSuggestionCursor promoted) { in promoteShortcuts()
|
D | Promoter.java | 33 void pickPromoted(Suggestions suggestions, int maxPromoted, ListSuggestionCursor promoted); in pickPromoted()
|
D | ListSuggestionCursorNoDuplicates.java | 27 public class ListSuggestionCursorNoDuplicates extends ListSuggestionCursor {
|
D | ShortcutsProvider.java | 142 ListSuggestionCursor cursor = new ListSuggestionCursor(userQuery); in storeShortcut()
|
D | WebPromoter.java | 34 ListSuggestionCursor promoted) { in pickPromoted()
|
D | ShortcutCursor.java | 30 public class ShortcutCursor extends ListSuggestionCursor {
|
D | MultiSourceCorpus.java | 161 protected class Result extends ListSuggestionCursor implements CorpusResult {
|
D | Suggestions.java | 309 ListSuggestionCursor promoted = new ListSuggestionCursorNoDuplicates(mQuery); in buildPromoted()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | ClusteredSuggestionsAdapter.java | 19 import com.android.quicksearchbox.ListSuggestionCursor; 114 ListSuggestionCursor corpusSuggestions = new ListSuggestionCursor( in buildCorpusGroups()
|