110 lines
3.3 KiB
Smali
110 lines
3.3 KiB
Smali
.class Landroidx/cursoradapter/widget/CursorFilter;
|
|
.super Landroid/widget/Filter;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field mClient:Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Landroid/widget/Filter;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/cursoradapter/widget/CursorFilter;->mClient:Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public convertResultToString(Ljava/lang/Object;)Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorFilter;->mClient:Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;
|
|
|
|
check-cast p1, Landroid/database/Cursor;
|
|
|
|
invoke-interface {v0, p1}, Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;->convertToString(Landroid/database/Cursor;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method protected performFiltering(Ljava/lang/CharSequence;)Landroid/widget/Filter$FilterResults;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorFilter;->mClient:Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;
|
|
|
|
invoke-interface {v0, p1}, Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;->runQueryOnBackgroundThread(Ljava/lang/CharSequence;)Landroid/database/Cursor;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Landroid/widget/Filter$FilterResults;
|
|
|
|
invoke-direct {v0}, Landroid/widget/Filter$FilterResults;-><init>()V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Landroid/widget/Filter$FilterResults;->count:I
|
|
|
|
:goto_0
|
|
iput-object p1, v0, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
iput p1, v0, Landroid/widget/Filter$FilterResults;->count:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method protected publishResults(Ljava/lang/CharSequence;Landroid/widget/Filter$FilterResults;)V
|
|
.locals 1
|
|
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorFilter;->mClient:Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;
|
|
|
|
invoke-interface {p1}, Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;->getCursor()Landroid/database/Cursor;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p2, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p2, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorFilter;->mClient:Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;
|
|
|
|
iget-object p2, p2, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;
|
|
|
|
check-cast p2, Landroid/database/Cursor;
|
|
|
|
invoke-interface {p1, p2}, Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;->changeCursor(Landroid/database/Cursor;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|