当前位置: 首页>>代码示例>>Java>>正文


Java FilterResults类代码示例

本文整理汇总了Java中android.widget.Filter.FilterResults的典型用法代码示例。如果您正苦于以下问题:Java FilterResults类的具体用法?Java FilterResults怎么用?Java FilterResults使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FilterResults类属于android.widget.Filter包,在下文中一共展示了FilterResults类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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;
  }
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:AddressAutoComplete.java

示例2: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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;
  }
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:22,代码来源:cku.java

示例3: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:19,代码来源:p.java

示例4: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:13,代码来源:CursorFilter.java

示例5: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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;
}
 
开发者ID:Qwaz,项目名称:solved-hacking-problem,代码行数:13,代码来源:C0191q.java

示例6: publishResults

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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();
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:11,代码来源:AddressAutoComplete.java

示例7: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:9,代码来源:AddressSourceResultAdapter.java

示例8: publishResults

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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();
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:13,代码来源:AddressSourceResultAdapter.java

示例9: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:15,代码来源:CursorFilter.java

示例10: publishResults

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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);
  }
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:8,代码来源:CursorFilter.java

示例11: publishResults

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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();
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:11,代码来源:hyt.java

示例12: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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
  {
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:28,代码来源:∆ö$2.java

示例13: publishResults

import android.widget.Filter.FilterResults; //导入依赖的package包/类
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  ƚ.ˊ(this.ˊ, (ArrayList)paramFilterResults.values);
  if (paramFilterResults.count > 0)
    this.ˊ.notifyDataSetChanged();
  else
    this.ˊ.notifyDataSetInvalidated();
  this.ˊ.clear();
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:10,代码来源:∆ö$2.java

示例14: performFiltering

import android.widget.Filter.FilterResults; //导入依赖的package包/类
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
  {
  }
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:28,代码来源:«è$3.java

示例15: publishResults

import android.widget.Filter.FilterResults; //导入依赖的package包/类
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  Ǐ.ˊ(this.ˊ, (ArrayList)paramFilterResults.values);
  if (paramFilterResults.count > 0)
    this.ˊ.notifyDataSetChanged();
  else
    this.ˊ.notifyDataSetInvalidated();
  this.ˊ.clear();
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:10,代码来源:«è$3.java


注:本文中的android.widget.Filter.FilterResults类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。