/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...] |
/external/chromium_org/chrome/browser/metrics/ |
omnibox_metrics_provider.cc | 27 OmniboxEventProto::Suggestion::ResultType AsOmniboxEventResultType( 31 return OmniboxEventProto::Suggestion::URL_WHAT_YOU_TYPED; 33 return OmniboxEventProto::Suggestion::HISTORY_URL; 35 return OmniboxEventProto::Suggestion::HISTORY_TITLE; 37 return OmniboxEventProto::Suggestion::HISTORY_BODY; 39 return OmniboxEventProto::Suggestion::HISTORY_KEYWORD; 41 return OmniboxEventProto::Suggestion::NAVSUGGEST; 43 return OmniboxEventProto::Suggestion::SEARCH_WHAT_YOU_TYPED; 45 return OmniboxEventProto::Suggestion::SEARCH_HISTORY; 47 return OmniboxEventProto::Suggestion::SEARCH_SUGGEST 157 OmniboxEventProto::Suggestion* suggestion = omnibox_event->add_suggestion(); local [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/Basic/ |
Warnings.cpp | 36 StringRef Suggestion = DiagnosticIDs::getNearestWarningOption(Opt); 37 if (!Suggestion.empty()) 40 << (Prefix.str() += Opt) << (Prefix.str() += Suggestion);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AggregationSuggestionEngine.java | 70 public static final class Suggestion { 377 public List<Suggestion> getSuggestions() { 378 ArrayList<Suggestion> list = Lists.newArrayList(); 380 Suggestion suggestion = null; local 386 suggestion = new Suggestion(); 387 suggestion.contactId = contactId; 388 suggestion.name = mDataCursor.getString(DataQuery.DISPLAY_NAME); 389 suggestion.lookupKey = mDataCursor.getString(DataQuery.LOOKUP_KEY) [all...] |
AggregationSuggestionView.java | 30 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion; 41 * A view that contains a name, picture and other data for a contact aggregation suggestion. 82 public void bindSuggestion(Suggestion suggestion) { 83 mContactId = suggestion.contactId; 84 mLookupKey = suggestion.lookupKey; 85 mRawContacts = suggestion.rawContacts; 87 if (suggestion.photo != null) { 89 suggestion.photo, 0, suggestion.photo.length)) [all...] |
ContactEditorFragment.java | 83 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion; 204 * - After the user has accepted an edit suggestion 290 private final List<Suggestion> mSuggestions; 293 AggregationSuggestionView.Listener listener, List<Suggestion> suggestions) { 302 Suggestion suggestion = (Suggestion) getItem(position); local 309 suggestionView.bindSuggestion(suggestion); [all...] |