• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java FilterResults类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: performFiltering

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


示例17: publishResults

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


示例18: publishResults

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


示例19: publishResults

import android.widget.Filter.FilterResults; //导入依赖的package包/类
protected final void publishResults(CharSequence paramCharSequence, Filter.FilterResults paramFilterResults)
{
  paramFilterResults.count = this.a.getCount();
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:5,代码来源:cku.java


示例20: publishResults

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Packet类代码示例发布时间:2022-05-22
下一篇:
Java NodeInfo类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap