Home | History | Annotate | Download | only in ui

Lines Matching refs:Suggestions

22 import com.android.quicksearchbox.Suggestions;
33 * Base class for suggestions adapters. The templated class A is the list adapter class.
50 private Suggestions mSuggestions;
70 * Indicates if this adapter will publish suggestions other than those in the promoted list.
102 public void setSuggestions(Suggestions suggestions) {
103 if (mSuggestions == suggestions) {
107 if (suggestions != null) {
108 suggestions.release();
115 // TODO: delay the change if there are no suggestions for the currently visible tab.
120 mSuggestions = suggestions;
127 public Suggestions getSuggestions() {
166 protected View getView(SuggestionCursor suggestions, int position, long suggestionId,
168 suggestions.moveTo(position);
169 View v = mViewFactory.getView(suggestions, suggestions.getUserQuery(), convertView, parent);
190 * Gets the cursor containing the currently shown suggestions. The caller should not hold
200 protected SuggestionCursor getPromoted(Suggestions suggestions) {
201 if (suggestions == null) return null;
202 return suggestions.getPromoted(mPromoter, mMaxPromoted);
209 * {@link #setSuggestions(Suggestions)}.