Lines Matching refs:SuggestItem
68 List<SuggestItem> mSuggestResults, mFilterResults;
113 SuggestItem item = (SuggestItem) ((View) v.getParent()).getTag();
134 public SuggestItem getItem(int position) {
157 private void bindView(View view, SuggestItem item) {
203 class SlowFilterTask extends AsyncTask<CharSequence, Void, List<SuggestItem>> {
206 protected List<SuggestItem> doInBackground(CharSequence... params) {
209 List<SuggestItem> results = new ArrayList<SuggestItem>();
220 protected void onPostExecute(List<SuggestItem> items) {
229 List<SuggestItem> filter, suggest;
235 for (SuggestItem item : filter) {
240 for (SuggestItem item : suggest) {
254 SuggestItem sitem = (SuggestItem) item;
282 List<SuggestItem> filterResults = new ArrayList<SuggestItem>();
298 void mixResults(List<SuggestItem> results) {
333 ArrayList<SuggestItem> items;
338 items = new ArrayList<SuggestItem>(24);
347 void addResult(SuggestItem item) {
365 SuggestItem item = items.get(i);
378 public class SuggestItem {
384 public SuggestItem(String text, String u, int t) {
402 public abstract SuggestItem getItem();
421 public SuggestItem getItem() {
426 return new SuggestItem(getTitle(title, url), getUrl(title, url),
500 public SuggestItem getItem() {
511 SuggestItem item = new SuggestItem(title, url, type);
553 static String getSuggestionTitle(SuggestItem item) {
560 static String getSuggestionUrl(SuggestItem item) {