Java Code Examples for android.widget.Filter.FilterResults

The following are top voted examples for showing how to use android.widget.Filter.FilterResults. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: FMTech   File: AddressAutoComplete.java   View source code 6 votes vote down vote up
protected final Filter.FilterResults performFiltering(CharSequence paramCharSequence)
{
  synchronized (AddressAutoComplete.this)
  {
    boolean bool = AddressAutoComplete.this.mBlockNextSuggestion;
    AddressSuggestionProvider localAddressSuggestionProvider = AddressAutoComplete.this.mSuggestionProvider;
    AddressAutoComplete.access$202$396956e4(AddressAutoComplete.this);
    Filter.FilterResults localFilterResults = null;
    if (localAddressSuggestionProvider != null)
    {
      localFilterResults = null;
      if (!bool)
      {
        List localList = localAddressSuggestionProvider.getSuggestions(paramCharSequence);
        localFilterResults = null;
        if (localList != null)
        {
          localFilterResults = new Filter.FilterResults();
          localFilterResults.values = localList;
          localFilterResults.count = localList.size();
        }
      }
    }
    return localFilterResults;
  }
}
 
Example 2
Project: FMTech   File: cku.java   View source code 6 votes vote down vote up
protected final Filter.FilterResults performFiltering(CharSequence paramCharSequence)
{
  CountDownLatch localCountDownLatch1 = this.a.y;
  if (localCountDownLatch1 != null) {
    localCountDownLatch1.countDown();
  }
  CountDownLatch localCountDownLatch2 = new CountDownLatch(1);
  this.a.y = localCountDownLatch2;
  this.a.x.post(new ckv(this, paramCharSequence));
  try
  {
    localCountDownLatch2.await();
    label57:
    this.a.y = null;
    return new Filter.FilterResults();
  }
  catch (InterruptedException localInterruptedException)
  {
    break label57;
  }
}
 
Example 3
Project: ingress-indonesia-dev   File: p.java   View source code 6 votes vote down vote up
protected final Filter.FilterResults performFiltering(CharSequence paramCharSequence)
{
  int i = 0;
  ArrayList localArrayList = new ArrayList();
  for (int j = 0; j < k.a(this.a.a).size(); j++)
  {
    a locala = (a)k.a(this.a.a).get(j);
    if ((locala.a() == b.a) && ((TextUtils.isEmpty(paramCharSequence)) || (locala.b.contains(paramCharSequence)) || (locala.a.contains(paramCharSequence))))
      localArrayList.add(Integer.valueOf(j));
  }
  o.a(this.a, new int[localArrayList.size()]);
  while (i < localArrayList.size())
  {
    o.a(this.a)[i] = ((Integer)localArrayList.get(i)).intValue();
    i++;
  }
  return null;
}
 
Example 4
Project: letv   File: CursorFilter.java   View source code 5 votes vote down vote up
protected FilterResults performFiltering(CharSequence constraint) {
    Cursor cursor = this.mClient.runQueryOnBackgroundThread(constraint);
    FilterResults results = new FilterResults();
    if (cursor != null) {
        results.count = cursor.getCount();
        results.values = cursor;
    } else {
        results.count = 0;
        results.values = null;
    }
    return results;
}
 
Example 5
Project: boohee_v5.6   File: CursorFilter.java   View source code 5 votes vote down vote up
protected FilterResults performFiltering(CharSequence constraint) {
    Cursor cursor = this.mClient.runQueryOnBackgroundThread(constraint);
    FilterResults results = new FilterResults();
    if (cursor != null) {
        results.count = cursor.getCount();
        results.values = cursor;
    } else {
        results.count = 0;
        results.values = null;
    }
    return results;
}
 
Example 6
Project: solved-hacking-problem   File: C0191q.java   View source code 5 votes vote down vote up
protected FilterResults performFiltering(CharSequence charSequence) {
    Cursor a = this.f562a.m1452a(charSequence);
    FilterResults filterResults = new FilterResults();
    if (a != null) {
        filterResults.count = a.getCount();
        filterResults.values = a;
    } else {
        filterResults.count = 0;
        filterResults.values = null;
    }
    return filterResults;
}
 
Example 7
Project: solved-hacking-problem   File: C0191q.java   View source code 5 votes vote down vote up
protected FilterResults performFiltering(CharSequence charSequence) {
    Cursor a = this.f562a.m1452a(charSequence);
    FilterResults filterResults = new FilterResults();
    if (a != null) {
        filterResults.count = a.getCount();
        filterResults.values = a;
    } else {
        filterResults.count = 0;
        filterResults.values = null;
    }
    return filterResults;
}
 
Example 8
Project: FMTech   File: AddressAutoComplete.java   View source code 5 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  if ((paramFilterResults != null) && (paramFilterResults.count > 0))
  {
    AddressAutoComplete.Adapter.access$002(AddressAutoComplete.this.mAdapter, (List)paramFilterResults.values);
    AddressAutoComplete.this.mAdapter.notifyDataSetChanged();
    return;
  }
  AddressAutoComplete.this.mAdapter.notifyDataSetInvalidated();
}
 
Example 9
Project: FMTech   File: AddressSourceResultAdapter.java   View source code 5 votes vote down vote up
protected final Filter.FilterResults performFiltering(CharSequence paramCharSequence)
{
  ArrayList localArrayList = performFilteringForValues(paramCharSequence);
  Filter.FilterResults localFilterResults = new Filter.FilterResults();
  localFilterResults.values = localArrayList;
  localFilterResults.count = localArrayList.size();
  return localFilterResults;
}
 
Example 10
Project: FMTech   File: AddressSourceResultAdapter.java   View source code 5 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  ArrayList localArrayList = (ArrayList)paramFilterResults.values;
  AddressSourceResultAdapter.this.mLastPublishedConstraint = paramCharSequence;
  AddressSourceResultAdapter.this.mObjects = localArrayList;
  if ((AddressSourceResultAdapter.this.mObjects != null) && (!AddressSourceResultAdapter.this.mObjects.isEmpty()))
  {
    AddressSourceResultAdapter.this.notifyDataSetChanged();
    return;
  }
  AddressSourceResultAdapter.this.notifyDataSetInvalidated();
}
 
Example 11
Project: FMTech   File: CursorFilter.java   View source code 5 votes vote down vote up
protected final Filter.FilterResults performFiltering(CharSequence paramCharSequence)
{
  Cursor localCursor = this.mClient.runQueryOnBackgroundThread(paramCharSequence);
  Filter.FilterResults localFilterResults = new Filter.FilterResults();
  if (localCursor != null)
  {
    localFilterResults.count = localCursor.getCount();
    localFilterResults.values = localCursor;
    return localFilterResults;
  }
  localFilterResults.count = 0;
  localFilterResults.values = null;
  return localFilterResults;
}
 
Example 12
Project: FMTech   File: CursorFilter.java   View source code 5 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  Cursor localCursor = this.mClient.getCursor();
  if ((paramFilterResults.values != null) && (paramFilterResults.values != localCursor)) {
    this.mClient.changeCursor((Cursor)paramFilterResults.values);
  }
}
 
Example 13
Project: FMTech   File: hyt.java   View source code 5 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  this.a.d = ((List)paramFilterResults.values);
  if (paramFilterResults.count == 0)
  {
    this.a.notifyDataSetInvalidated();
    return;
  }
  this.a.notifyDataSetChanged();
}
 
Example 14
Project: QuizUpWinner   File: ∆ö$2.java   View source code 5 votes vote down vote up
protected final Filter.FilterResults performFiltering(CharSequence paramCharSequence)
{
  Filter.FilterResults localFilterResults = new Filter.FilterResults();
  if ((paramCharSequence != null) && (paramCharSequence.length() > 0))
  {
    ArrayList localArrayList = new ArrayList();
    Iterator localIterator = ƚ.ˊ(this.ˊ).iterator();
    while (localIterator.hasNext())
    {
      ヘ localヘ = (ヘ)localIterator.next();
      if (localヘ.ˋ.toLowerCase(Locale.US).startsWith(paramCharSequence.toString().toLowerCase(Locale.US)))
        localArrayList.add(localヘ);
    }
    localFilterResults.values = localArrayList;
    localFilterResults.count = localArrayList.size();
    return localFilterResults;
  }
  try
  {
    localFilterResults.values = ƚ.ˊ(this.ˊ);
    localFilterResults.count = ƚ.ˊ(this.ˊ).size();
    return localFilterResults;
  }
  finally
  {
  }
}
 
Example 15
Project: QuizUpWinner   File: ∆ö$2.java   View source code 5 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  ƚ.ˊ(this.ˊ, (ArrayList)paramFilterResults.values);
  if (paramFilterResults.count > 0)
    this.ˊ.notifyDataSetChanged();
  else
    this.ˊ.notifyDataSetInvalidated();
  this.ˊ.clear();
}
 
Example 16
Project: QuizUpWinner   File: «è$3.java   View source code 5 votes vote down vote up
protected final Filter.FilterResults performFiltering(CharSequence paramCharSequence)
{
  Filter.FilterResults localFilterResults = new Filter.FilterResults();
  if ((paramCharSequence != null) && (paramCharSequence.length() > 0))
  {
    ArrayList localArrayList = new ArrayList();
    Iterator localIterator = Ǐ.ˏ(this.ˊ).iterator();
    while (localIterator.hasNext())
    {
      ﺮ localﺮ = (ﺮ)localIterator.next();
      if (localﺮ.ˋ.toLowerCase(Locale.US).startsWith(paramCharSequence.toString().toLowerCase(Locale.US)))
        localArrayList.add(new ﺮ(localﺮ.ˊ, localﺮ.ˋ));
    }
    localFilterResults.values = localArrayList;
    localFilterResults.count = localArrayList.size();
    return localFilterResults;
  }
  try
  {
    localFilterResults.values = Ǐ.ˏ(this.ˊ);
    localFilterResults.count = Ǐ.ˏ(this.ˊ).size();
    return localFilterResults;
  }
  finally
  {
  }
}
 
Example 17
Project: QuizUpWinner   File: «è$3.java   View source code 5 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  Ǐ.ˊ(this.ˊ, (ArrayList)paramFilterResults.values);
  if (paramFilterResults.count > 0)
    this.ˊ.notifyDataSetChanged();
  else
    this.ˊ.notifyDataSetInvalidated();
  this.ˊ.clear();
}
 
Example 18
Project: ingress-indonesia-dev   File: c.java   View source code 5 votes vote down vote up
protected final Filter.FilterResults performFiltering(CharSequence paramCharSequence)
{
  Cursor localCursor = this.a.a(paramCharSequence);
  Filter.FilterResults localFilterResults = new Filter.FilterResults();
  if (localCursor != null)
  {
    localFilterResults.count = localCursor.getCount();
    localFilterResults.values = localCursor;
    return localFilterResults;
  }
  localFilterResults.count = 0;
  localFilterResults.values = null;
  return localFilterResults;
}
 
Example 19
Project: letv   File: CursorFilter.java   View source code 4 votes vote down vote up
protected void publishResults(CharSequence constraint, FilterResults results) {
    Cursor oldCursor = this.mClient.getCursor();
    if (results.values != null && results.values != oldCursor) {
        this.mClient.changeCursor((Cursor) results.values);
    }
}
 
Example 20
Project: boohee_v5.6   File: CursorFilter.java   View source code 4 votes vote down vote up
protected void publishResults(CharSequence constraint, FilterResults results) {
    Cursor oldCursor = this.mClient.getCursor();
    if (results.values != null && results.values != oldCursor) {
        this.mClient.changeCursor((Cursor) results.values);
    }
}
 
Example 21
Project: solved-hacking-problem   File: C0191q.java   View source code 4 votes vote down vote up
protected void publishResults(CharSequence charSequence, FilterResults filterResults) {
    Cursor a = this.f562a.m1451a();
    if (filterResults.values != null && filterResults.values != a) {
        this.f562a.m1453a((Cursor) filterResults.values);
    }
}
 
Example 22
Project: solved-hacking-problem   File: C0191q.java   View source code 4 votes vote down vote up
protected void publishResults(CharSequence charSequence, FilterResults filterResults) {
    Cursor a = this.f562a.m1451a();
    if (filterResults.values != null && filterResults.values != a) {
        this.f562a.m1453a((Cursor) filterResults.values);
    }
}
 
Example 23
Project: FMTech   File: cku.java   View source code 4 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  paramFilterResults.count = this.a.getCount();
}
 
Example 24
Project: ingress-indonesia-dev   File: p.java   View source code 4 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  o.b(this.a, o.a(this.a));
  o.a(this.a, null);
  this.a.notifyDataSetChanged();
}
 
Example 25
Project: ingress-indonesia-dev   File: c.java   View source code 4 votes vote down vote up
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  Cursor localCursor = this.a.a();
  if ((paramFilterResults.values != null) && (paramFilterResults.values != localCursor))
    this.a.a((Cursor)paramFilterResults.values);
}