HomeSort by relevance Sort by last modified time
    Searched full:suggestioncursor (Results 1 - 25 of 55) sorted by null

1 2 3

  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
BlendingPromoterTest.java 58 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 0, 0);
59 SuggestionCursor expected = cursor();
64 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 1, 1);
65 SuggestionCursor expected = cursor(mS11, mS21);
70 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 2, 2);
71 SuggestionCursor expected = cursor(mS11, mS12, mS21, mS22);
76 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 3, 3);
77 SuggestionCursor expected = cursor(mS11, mS12, mS21, mS22);
82 SuggestionCursor promoted = limit(cursor(mS11, mS12), 0, 0);
83 SuggestionCursor expected = cursor()
    [all...]
SuggestionCursorUtil.java 34 public static void assertNoSuggestions(SuggestionCursor suggestions) {
38 public static void assertNoSuggestions(String message, SuggestionCursor suggestions) {
44 SuggestionCursor expected, SuggestionCursor observed) {
49 SuggestionCursor expected, int positionExpected,
50 SuggestionCursor observed, int positionObserved) {
58 public static void assertSameSuggestions(SuggestionCursor expected, SuggestionCursor observed) {
63 String message, SuggestionCursor expected, SuggestionCursor observed)
    [all...]
MockLogger.java 35 SuggestionCursor suggestionCursor, Collection<Corpus> queriedCorpora,
45 public void logExit(SuggestionCursor suggestionCursor, int numChars) {
WebPromoterTest.java 49 private SuggestionCursor mShortcuts;
77 SuggestionCursor promoted = promote(mSuggestions, 0, 1);
78 SuggestionCursor expected = slice(mCorpusResultWeb, 0, 1);
85 SuggestionCursor promoted = promote(mSuggestions, 1, 1);
86 SuggestionCursor expected = cursor(mWeb1);
93 SuggestionCursor promoted = promote(mSuggestions, 1, 2);
94 SuggestionCursor expected = concat(cursor(mWeb1), slice(mCorpusResultWeb, 0, 1));
108 private SuggestionCursor cursor(Suggestion... suggestions) {
112 private void assertOnlyWebSuggestions(SuggestionCursor expected) {
SourceShortcutRefresherTest.java 42 private SuggestionCursor mRefreshedCursor;
100 SuggestionCursor expected =
107 SuggestionCursor refreshed) {
120 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) {
126 SuggestionCursor suggestions = getSuggestions(mQuery, 1, true);
ResultPromoterTest.java 49 private SuggestionCursor mShortcuts;
72 SuggestionCursor promoted = promoteShortcuts(mShortcuts);
73 SuggestionCursor expected = cursor(mS11, mS12, mS21, mS22);
78 SuggestionCursor promoted = promoteSuggestions(mCorpusResults);
79 SuggestionCursor expected = concat(mCorpusResult1, mCorpusResult2);
89 private ListSuggestionCursor promoteShortcuts(SuggestionCursor shortcuts) {
108 private SuggestionCursor cursor(Suggestion... suggestions) {
MockShortcutRepository.java 39 public void removeFromHistory(SuggestionCursor suggestions, int position) {
62 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) {
73 public void reportClick(SuggestionCursor suggestions, int position) {
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionPosition.java 21 * A pointer to a suggestion in a {@link SuggestionCursor}.
26 private final SuggestionCursor mCursor;
30 public SuggestionPosition(SuggestionCursor cursor) {
34 public SuggestionPosition(SuggestionCursor cursor, int suggestionPos) {
39 public SuggestionCursor getCursor() {
ShortcutCursor.java 27 * A SuggestionCursor that allows shortcuts to be updated by overlaying
36 private final SuggestionCursor mShortcuts;
39 private final HashSet<SuggestionCursor> mRefreshed;
47 private ShortcutCursor(String query, SuggestionCursor shortcuts, Handler uiThread,
54 mRefreshed = new HashSet<SuggestionCursor>();
64 ShortcutCursor(SuggestionCursor suggestions) {
68 public ShortcutCursor(SuggestionCursor suggestions, boolean allowWebSearchShortcuts,
98 final String shortcutId, final SuggestionCursor refreshed) {
111 * Updates this SuggestionCursor with a refreshed result from another.
115 private void refresh(Source source, String shortcutId, SuggestionCursor refreshed)
    [all...]
SuggestionCursorWrapper.java 24 * A suggestion cursor that delegates all methods to another SuggestionCursor.
28 private final SuggestionCursor mCursor;
30 public SuggestionCursorWrapper(String userQuery, SuggestionCursor cursor) {
76 protected SuggestionCursor current() {
Logger.java 48 * @param suggestionCursor all the suggestions shown in the UI.
50 * {@code suggestionCursor}, ordered by rank.
53 void logSuggestionClick(long suggestionId, SuggestionCursor suggestionCursor,
72 * @param suggestionCursor all the suggestions shown in the UI when the user left
75 void logExit(SuggestionCursor suggestionCursor, int numChars);
AbstractSuggestionCursorWrapper.java 19 * A SuggestionCursor that delegates all calls to other suggestions.
22 implements SuggestionCursor {
EventLogLogger.java 70 public void logSuggestionClick(long id, SuggestionCursor suggestionCursor,
72 String suggestions = getSuggestions(suggestionCursor);
74 int numChars = suggestionCursor.getUserQuery().length();
89 public void logExit(SuggestionCursor suggestionCursor, int numChars) {
90 String suggestions = getSuggestions(suggestionCursor);
112 private String getSuggestions(SuggestionCursor cursor) {
SuggestionCursorProvider.java 21 * Interface for objects that can produce a SuggestionCursor given a query.
23 public interface SuggestionCursorProvider<C extends SuggestionCursor> {
CorpusResult.java 23 public interface CorpusResult extends SuggestionCursor {
SourceResult.java 22 public interface SourceResult extends SuggestionCursor {
SingleCorpusPromoter.java 44 SuggestionCursor shortcuts = suggestions.getShortcuts();
51 private void promoteUntilFull(SuggestionCursor c, int maxSize, ListSuggestionCursor promoted) {
QueryTask.java 30 public class QueryTask<C extends SuggestionCursor> implements NamedTask {
77 public static <C extends SuggestionCursor> void startQueries(String query,
89 public static <C extends SuggestionCursor> void startQuery(String query,
ShortcutRepository.java 43 void removeFromHistory(SuggestionCursor suggestions, int position);
59 void reportClick(SuggestionCursor suggestions, int position);
85 void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed);
  /packages/apps/Contacts/src/com/android/contacts/list/
JoinContactLoader.java 29 * {@code ((JoinContactLoaderResult) result).suggestionCursor }
45 public final Cursor suggestionCursor;
47 public JoinContactLoaderResult(Cursor baseCursor, Cursor suggestionCursor) {
49 this.suggestionCursor = suggestionCursor;
55 suggestionCursor.close();
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
ClusteredSuggestionsAdapter.java 22 import com.android.quicksearchbox.SuggestionCursor;
93 private ArrayList<SuggestionCursor> mCorpusGroups;
97 SuggestionCursor promoted = getCurrentPromotedSuggestions();
109 mCorpusGroups = new ArrayList<SuggestionCursor>();
154 SuggestionCursor c = getGroup(groupPosition);
163 SuggestionCursor groupCursor = getGroup(getGroupPosition(childId));
180 SuggestionCursor cursor = getGroup(groupPosition);
188 SuggestionCursor group = getGroup(groupPosition);
193 public SuggestionCursor getGroup(int groupPosition) {
204 SuggestionCursor promoted = getCurrentPromotedSuggestions()
    [all...]
SuggestionsAdapterBase.java 20 import com.android.quicksearchbox.SuggestionCursor;
46 private SuggestionCursor mPromotedSuggestions;
154 protected int getSuggestionViewType(SuggestionCursor cursor, int position) {
166 protected View getView(SuggestionCursor suggestions, int position, long suggestionId,
185 SuggestionCursor cursor = getPromoted(mSuggestions);
193 public SuggestionCursor getCurrentPromotedSuggestions() {
200 protected SuggestionCursor getPromoted(Suggestions suggestions) {
211 private void changePromoted(SuggestionCursor newCursor) {
DefaultSuggestionViewFactory.java 19 import com.android.quicksearchbox.SuggestionCursor;
63 public View getView(SuggestionCursor suggestion, String userQuery,
DelayingSuggestionsAdapter.java 21 import com.android.quicksearchbox.SuggestionCursor;
76 SuggestionCursor cursor = mDelayedAdapter.getPromoted(suggestions);
141 public SuggestionCursor getCurrentPromotedSuggestions() {
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
GoogleSource.java 20 import com.android.quicksearchbox.SuggestionCursor;
27 SuggestionCursor refreshShortcut(String shortcutId, String extraData);

Completed in 142 milliseconds

1 2 3