Java 类android.widget.Filter.FilterResults 实例源码
项目:FMTech
文件:AddressAutoComplete.java
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;
}
}
项目:FMTech
文件:cku.java
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;
}
}
项目:ingress-indonesia-dev
文件:p.java
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;
}
项目:letv
文件:CursorFilter.java
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;
}
项目:boohee_v5.6
文件:CursorFilter.java
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;
}
项目:solved-hacking-problem
文件:C0191q.java
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;
}
项目:solved-hacking-problem
文件:C0191q.java
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;
}
项目:FMTech
文件:AddressAutoComplete.java
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();
}
项目:FMTech
文件:AddressSourceResultAdapter.java
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;
}
项目:FMTech
文件:AddressSourceResultAdapter.java
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();
}
项目:FMTech
文件:CursorFilter.java
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;
}
项目:FMTech
文件:CursorFilter.java
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);
}
}
项目:FMTech
文件:hyt.java
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();
}
项目:QuizUpWinner
文件:∆ö$2.java
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
{
}
}
项目:QuizUpWinner
文件:∆ö$2.java
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
ƚ.ˊ(this.ˊ, (ArrayList)paramFilterResults.values);
if (paramFilterResults.count > 0)
this.ˊ.notifyDataSetChanged();
else
this.ˊ.notifyDataSetInvalidated();
this.ˊ.clear();
}
项目:QuizUpWinner
文件:«è$3.java
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
{
}
}
项目:QuizUpWinner
文件:«è$3.java
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
Ǐ.ˊ(this.ˊ, (ArrayList)paramFilterResults.values);
if (paramFilterResults.count > 0)
this.ˊ.notifyDataSetChanged();
else
this.ˊ.notifyDataSetInvalidated();
this.ˊ.clear();
}
项目:ingress-indonesia-dev
文件:c.java
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;
}
项目:letv
文件:CursorFilter.java
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);
}
}
项目:boohee_v5.6
文件:CursorFilter.java
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);
}
}
项目:solved-hacking-problem
文件:C0191q.java
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);
}
}
项目:solved-hacking-problem
文件:C0191q.java
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);
}
}
项目:FMTech
文件:cku.java
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
paramFilterResults.count = this.a.getCount();
}
项目:ingress-indonesia-dev
文件:p.java
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();
}
项目:ingress-indonesia-dev
文件:c.java
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);
}