HomeSort by relevance Sort by last modified time
    Searched refs:Suggestion (Results 1 - 25 of 35) 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();
  /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();
  /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...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionView.java 31 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion;
34 * A view that contains a name, picture and other data for a contact aggregation suggestion.
47 private Suggestion mSuggestion;
61 public void bindSuggestion(Suggestion suggestion) {
62 mSuggestion = suggestion;
65 suggestion.name, String.valueOf(suggestion.rawContactId), /* isCircular = */ false);
69 suggestion.photoId,
75 name.setText(suggestion.name)
    [all...]
AggregationSuggestionEngine.java 60 public static final class Suggestion {
72 return MoreObjects.toStringHelper(Suggestion.class)
378 public List<Suggestion> getSuggestions() {
379 final ArrayList<Suggestion> list = Lists.newArrayList();
382 Suggestion suggestion = null; local
388 suggestion = new Suggestion();
389 suggestion.rawContactId = rawContactId;
390 suggestion.contactId = mDataCursor.getLong(DataQuery.CONTACT_ID)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/Analysis/
CloneDetection.h 369 /// If Suggestion is a nullptr then it's not possible to fix the pattern
371 const VarDecl *Suggestion;
373 const VarDecl *Suggestion)
374 : Variable(Variable), Mention(Mention), Suggestion(Suggestion) {}
  /prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/Analysis/
CloneDetection.h 369 /// If Suggestion is a nullptr then it's not possible to fix the pattern
371 const VarDecl *Suggestion;
373 const VarDecl *Suggestion)
374 : Variable(Variable), Mention(Mention), Suggestion(Suggestion) {}
  /prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/Analysis/
CloneDetection.h 369 /// If Suggestion is a nullptr then it's not possible to fix the pattern
371 const VarDecl *Suggestion;
373 const VarDecl *Suggestion)
374 : Variable(Variable), Mention(Mention), Suggestion(Suggestion) {}
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/Analysis/
CloneDetection.h 369 /// If Suggestion is a nullptr then it's not possible to fix the pattern
371 const VarDecl *Suggestion;
373 const VarDecl *Suggestion)
374 : Variable(Variable), Mention(Mention), Suggestion(Suggestion) {}
  /prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/Analysis/
CloneDetection.h 369 /// If Suggestion is a nullptr then it's not possible to fix the pattern
371 const VarDecl *Suggestion;
373 const VarDecl *Suggestion)
374 : Variable(Variable), Mention(Mention), Suggestion(Suggestion) {}
  /prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/Analysis/
CloneDetection.h 369 /// If Suggestion is a nullptr then it's not possible to fix the pattern
371 const VarDecl *Suggestion;
373 const VarDecl *Suggestion)
374 : Variable(Variable), Mention(Mention), Suggestion(Suggestion) {}
  /prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/Analysis/
CloneDetection.h 369 /// If Suggestion is a nullptr then it's not possible to fix the pattern
371 const VarDecl *Suggestion;
373 const VarDecl *Suggestion)
374 : Variable(Variable), Mention(Mention), Suggestion(Suggestion) {}
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/Analysis/
CloneDetection.h 369 /// If Suggestion is a nullptr then it's not possible to fix the pattern
371 const VarDecl *Suggestion;
373 const VarDecl *Suggestion)
374 : Variable(Variable), Mention(Mention), Suggestion(Suggestion) {}

Completed in 754 milliseconds

1 2