HomeSort by relevance Sort by last modified time
    Searched refs:Suggestion (Results 1 - 25 of 29) sorted by null

1 2

  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionFilter.java 23 * Determines if a suggestion should be added to the promoted suggestion list.
25 * @param s The suggestion in question
28 boolean accept(Suggestion s);
ResultFilter.java 26 public boolean accept(Suggestion s) {
ListSuggestionCursor.java 48 public ListSuggestionCursor(String userQuery, Suggestion...suggestions) {
50 for (Suggestion suggestion : suggestions) {
51 add(suggestion);
61 * Adds a suggestion from another suggestion cursor.
63 * @return {@code true} if the suggestion was added.
65 public boolean add(Suggestion suggestion) {
66 mSuggestions.add(new Entry(suggestion));
    [all...]
Suggestion.java 23 public interface Suggestion {
26 * Gets the source that produced the current suggestion.
31 * Gets the shortcut ID of the current suggestion.
49 * Gets the first text line for the current suggestion.
54 * Gets the second text line for the current suggestion.
59 * Gets the second text line URL for the current suggestion.
64 * Gets the left-hand-side icon for the current suggestion.
71 * Gets the right-hand-side icon for the current suggestion.
78 * Gets the intent action for the current suggestion.
83 * Gets the name of the activity that the intent for the current suggestion will be sent to
    [all...]
SuggestionCursor.java 27 public interface SuggestionCursor extends Suggestion, QuietlyCloseable {
30 * Gets the query that the user typed to get this suggestion.
42 * Moves to a given suggestion.
50 * Moves to the next suggestion, if there is one.
52 * @return {@code false} if there is no next suggestion.
SuggestionPosition.java 21 * A pointer to a suggestion in a {@link SuggestionCursor}.
44 * Gets the suggestion cursor, moved to point to the right suggestion.
47 protected Suggestion current() {
ListSuggestionCursorNoDuplicates.java 40 public boolean add(Suggestion suggestion) {
41 String key = SuggestionUtils.getSuggestionKey(suggestion);
43 return super.add(suggestion);
AbstractSuggestionWrapper.java 21 * A Suggestion that delegates all calls to other suggestions.
23 public abstract class AbstractSuggestionWrapper implements Suggestion {
26 * Gets the current suggestion.
28 protected abstract Suggestion current();
SuggestionUtils.java 34 public static Intent getSuggestionIntent(SuggestionCursor suggestion, Bundle appSearchData) {
35 String action = suggestion.getSuggestionIntentAction();
37 String data = suggestion.getSuggestionIntentDataString();
38 String query = suggestion.getSuggestionQuery();
39 String userQuery = suggestion.getUserQuery();
40 String extraData = suggestion.getSuggestionIntentExtraData();
62 intent.setComponent(suggestion.getSuggestionIntentComponent());
67 * Gets a unique key that identifies a suggestion. This is used to avoid
70 public static String getSuggestionKey(Suggestion suggestion) {
    [all...]
SuggestionCursorBackedCursor.java 93 private Suggestion get() {
SuggestionData.java 29 public class SuggestionData implements Suggestion {
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
SuggestionView.java 19 import com.android.quicksearchbox.Suggestion;
26 * Set the view's contents based on the given suggestion.
28 void bindAsSuggestion(Suggestion suggestion, String userQuery);
SuggestionViewFactory.java 19 import com.android.quicksearchbox.Suggestion;
28 * Factory interface for suggestion views.
37 * View types must be unique across all suggestion view factories.
42 * Returns the view type to be used for displaying the given suggestion. This MUST correspond to
45 String getViewType(Suggestion suggestion);
48 * Gets a view corresponding to the current suggestion in the given cursor.
54 * @return A View corresponding to the data within this suggestion.
56 View getView(SuggestionCursor suggestion, String userQuery, View convertView, ViewGroup parent);
59 * Checks whether this factory can create views for the given suggestion
    [all...]
SuggestionViewInflater.java 19 import com.android.quicksearchbox.Suggestion;
31 * Suggestion view factory that inflates views from XML.
62 public View getView(SuggestionCursor suggestion, String userQuery,
71 ((SuggestionView) convertView).bindAsSuggestion(suggestion, userQuery);
75 public String getViewType(Suggestion suggestion) {
79 public boolean canCreateView(Suggestion suggestion) {
BaseSuggestionView.java 20 import com.android.quicksearchbox.Suggestion;
31 * Base class for suggestion views.
64 public void bindAsSuggestion(Suggestion suggestion, String userQuery) {
74 protected boolean isFromHistory(Suggestion suggestion) {
75 return suggestion.isSuggestionShortcut() || suggestion.isHistorySuggestion();
DefaultSuggestionViewFactory.java 22 import com.android.quicksearchbox.Suggestion;
30 * Suggestion view factory for Google suggestions.
64 public View getView(SuggestionCursor suggestion, String userQuery,
67 if (factory.canCreateView(suggestion)) {
68 return factory.getView(suggestion, userQuery, convertView, parent);
71 return mDefaultFactory.getView(suggestion, userQuery, convertView, parent);
75 public String getViewType(Suggestion suggestion) {
77 if (factory.canCreateView(suggestion)) {
78 return factory.getViewType(suggestion);
    [all...]
WebSearchSuggestionView.java 21 import com.android.quicksearchbox.Suggestion;
58 public void bindAsSuggestion(Suggestion suggestion, String userQuery) {
59 super.bindAsSuggestion(suggestion, userQuery);
62 suggestion.getSuggestionText1());
64 setIsHistorySuggestion(suggestion.isHistorySuggestion());
97 public boolean canCreateView(Suggestion suggestion) {
98 return suggestion.isWebSearchSuggestion();
SuggestionsAdapterBase.java 18 import com.android.quicksearchbox.Suggestion;
131 private String suggestionViewType(Suggestion suggestion) {
132 String viewType = mViewFactory.getViewType(suggestion);
DefaultSuggestionView.java 21 import com.android.quicksearchbox.Suggestion;
87 public void bindAsSuggestion(Suggestion suggestion, String userQuery) {
88 super.bindAsSuggestion(suggestion, userQuery);
90 CharSequence text1 = formatText(suggestion.getSuggestionText1(), suggestion);
91 CharSequence text2 = suggestion.getSuggestionText2Url();
95 text2 = formatText(suggestion.getSuggestionText2(), suggestion);
109 mAsyncIcon1.set(suggestion.getSuggestionSource(), suggestion.getSuggestionIcon1())
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
SuggestionCursorUtil.java 81 for (Suggestion expectedSuggestion : iterable(expected)) {
84 for (Suggestion observedSuggestion : iterable(observed)) {
89 public static void assertContainsSuggestion(Suggestion expected, SuggestionCursor observed) {
90 for (Suggestion observedSuggestion : iterable(observed)) {
98 public static Iterable<Suggestion> iterable(final SuggestionCursor cursor) {
99 return new Iterable<Suggestion>() {
101 public Iterator<Suggestion> iterator() {
107 public static UnmodifiableIterator<Suggestion> iterator(final SuggestionCursor cursor) {
108 return new UnmodifiableIterator<Suggestion>() {
116 public Suggestion next()
    [all...]
  /external/clang/lib/Frontend/
Warnings.cpp 39 StringRef Suggestion = DiagnosticIDs::getNearestWarningOption(Opt);
40 if (!Suggestion.empty())
43 << (Prefix.str() += Opt) << (Prefix.str() += Suggestion);
  /external/chromium_org/chrome/browser/metrics/
metrics_log.cc 109 OmniboxEventProto::Suggestion::ResultType AsOmniboxEventResultType(
113 return OmniboxEventProto::Suggestion::URL_WHAT_YOU_TYPED;
115 return OmniboxEventProto::Suggestion::HISTORY_URL;
117 return OmniboxEventProto::Suggestion::HISTORY_TITLE;
119 return OmniboxEventProto::Suggestion::HISTORY_BODY;
121 return OmniboxEventProto::Suggestion::HISTORY_KEYWORD;
123 return OmniboxEventProto::Suggestion::NAVSUGGEST;
125 return OmniboxEventProto::Suggestion::SEARCH_WHAT_YOU_TYPED;
127 return OmniboxEventProto::Suggestion::SEARCH_HISTORY;
129 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST
873 OmniboxEventProto::Suggestion* suggestion = omnibox_event->add_suggestion(); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionEngine.java 70 public static final class Suggestion {
373 public List<Suggestion> getSuggestions() {
374 ArrayList<Suggestion> list = Lists.newArrayList();
376 Suggestion suggestion = null; local
382 suggestion = new Suggestion();
383 suggestion.contactId = contactId;
384 suggestion.name = mDataCursor.getString(DataQuery.DISPLAY_NAME);
385 suggestion.lookupKey = mDataCursor.getString(DataQuery.LOOKUP_KEY)
    [all...]
AggregationSuggestionView.java 30 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion;
39 * A view that contains a name, picture and other data for a contact aggregation suggestion.
80 public void bindSuggestion(Suggestion suggestion) {
81 mContactId = suggestion.contactId;
82 mLookupKey = suggestion.lookupKey;
83 mRawContacts = suggestion.rawContacts;
85 if (suggestion.photo != null) {
87 suggestion.photo, 0, suggestion.photo.length))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/web/
PopupContainer.h 49 Suggestion, // Autocomplete/autofill popup.

Completed in 521 milliseconds

1 2