763 lines
17 KiB
Smali
763 lines
17 KiB
Smali
.class public Landroidx/room/util/FtsTableInfo;
|
|
.super Ljava/lang/Object;
|
|
.source "FtsTableInfo.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final FTS_OPTIONS:[Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field public final columns:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final name:Ljava/lang/String;
|
|
|
|
.field public final options:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 9
|
|
|
|
const-string v0, "tokenize="
|
|
|
|
const-string v1, "compress="
|
|
|
|
const-string v2, "content="
|
|
|
|
const-string v3, "languageid="
|
|
|
|
const-string v4, "matchinfo="
|
|
|
|
const-string v5, "notindexed="
|
|
|
|
const-string v6, "order="
|
|
|
|
const-string v7, "prefix="
|
|
|
|
const-string v8, "uncompress="
|
|
|
|
filled-new-array/range {v0 .. v8}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/room/util/FtsTableInfo;->FTS_OPTIONS:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;Ljava/util/Set;Ljava/lang/String;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/room/util/FtsTableInfo;->name:Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Landroidx/room/util/FtsTableInfo;->columns:Ljava/util/Set;
|
|
|
|
invoke-static {p3}, Landroidx/room/util/FtsTableInfo;->parseOptions(Ljava/lang/String;)Ljava/util/Set;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/room/util/FtsTableInfo;->options:Ljava/util/Set;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;Ljava/util/Set;Ljava/util/Set;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/room/util/FtsTableInfo;->name:Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Landroidx/room/util/FtsTableInfo;->columns:Ljava/util/Set;
|
|
|
|
iput-object p3, p0, Landroidx/room/util/FtsTableInfo;->options:Ljava/util/Set;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static parseOptions(Ljava/lang/String;)Ljava/util/Set;
|
|
.locals 8
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance p0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {p0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/16 v0, 0x28
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
const/16 v1, 0x29
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->lastIndexOf(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v1, Ljava/util/ArrayDeque;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayDeque;-><init>()V
|
|
|
|
const/4 v2, -0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v4, -0x1
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v5
|
|
|
|
if-ge v2, v5, :cond_7
|
|
|
|
invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v5
|
|
|
|
const/16 v6, 0x22
|
|
|
|
if-eq v5, v6, :cond_4
|
|
|
|
const/16 v6, 0x27
|
|
|
|
if-eq v5, v6, :cond_4
|
|
|
|
const/16 v6, 0x2c
|
|
|
|
if-eq v5, v6, :cond_3
|
|
|
|
const/16 v6, 0x5b
|
|
|
|
if-eq v5, v6, :cond_2
|
|
|
|
const/16 v7, 0x5d
|
|
|
|
if-eq v5, v7, :cond_1
|
|
|
|
const/16 v6, 0x60
|
|
|
|
if-eq v5, v6, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->isEmpty()Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_6
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->peek()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/lang/Character;
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Character;->charValue()C
|
|
|
|
move-result v5
|
|
|
|
if-ne v5, v6, :cond_6
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->pop()Ljava/lang/Object;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->isEmpty()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_6
|
|
|
|
invoke-static {v5}, Ljava/lang/Character;->valueOf(C)Ljava/lang/Character;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v1, v5}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->isEmpty()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_6
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
invoke-virtual {p0, v4, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
move v4, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->isEmpty()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_5
|
|
|
|
invoke-static {v5}, Ljava/lang/Character;->valueOf(C)Ljava/lang/Character;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v1, v5}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->peek()Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Ljava/lang/Character;
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Character;->charValue()C
|
|
|
|
move-result v6
|
|
|
|
if-ne v6, v5, :cond_6
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->pop()Ljava/lang/Object;
|
|
|
|
:cond_6
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
invoke-virtual {p0, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->trim()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance p0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {p0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_8
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
sget-object v2, Landroidx/room/util/FtsTableInfo;->FTS_OPTIONS:[Ljava/lang/String;
|
|
|
|
array-length v4, v2
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:goto_2
|
|
if-ge v5, v4, :cond_8
|
|
|
|
aget-object v6, v2, v5
|
|
|
|
invoke-virtual {v1, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_9
|
|
|
|
invoke-virtual {p0, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_9
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/FtsTableInfo;
|
|
.locals 2
|
|
|
|
invoke-static {p0, p1}, Landroidx/room/util/FtsTableInfo;->readColumns(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p0, p1}, Landroidx/room/util/FtsTableInfo;->readOptions(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Ljava/util/Set;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v1, Landroidx/room/util/FtsTableInfo;
|
|
|
|
invoke-direct {v1, p1, v0, p0}, Landroidx/room/util/FtsTableInfo;-><init>(Ljava/lang/String;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public static readColumns(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Ljava/util/Set;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/sqlite/db/SupportSQLiteDatabase;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "PRAGMA table_info(`"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "`)"
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p0, p1}, Landroidx/sqlite/db/SupportSQLiteDatabase;->query(Ljava/lang/String;)Landroid/database/Cursor;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/util/HashSet;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashSet;-><init>()V
|
|
|
|
:try_start_0
|
|
invoke-interface {p0}, Landroid/database/Cursor;->getColumnCount()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const-string v0, "name"
|
|
|
|
invoke-interface {p0, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Landroid/database/Cursor;->moveToNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {p0, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {p1, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-interface {p0}, Landroid/database/Cursor;->close()V
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-interface {p0}, Landroid/database/Cursor;->close()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static readOptions(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Ljava/util/Set;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/sqlite/db/SupportSQLiteDatabase;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Ljava/util/Set<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "SELECT * FROM sqlite_master WHERE `name` = \'"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "\'"
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p0, p1}, Landroidx/sqlite/db/SupportSQLiteDatabase;->query(Ljava/lang/String;)Landroid/database/Cursor;
|
|
|
|
move-result-object p0
|
|
|
|
:try_start_0
|
|
invoke-interface {p0}, Landroid/database/Cursor;->moveToFirst()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-string p1, "sql"
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p1, ""
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Landroid/database/Cursor;->close()V
|
|
|
|
invoke-static {p1}, Landroidx/room/util/FtsTableInfo;->parseOptions(Ljava/lang/String;)Ljava/util/Set;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-interface {p0}, Landroid/database/Cursor;->close()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
const-class v2, Landroidx/room/util/FtsTableInfo;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
check-cast p1, Landroidx/room/util/FtsTableInfo;
|
|
|
|
iget-object v2, p0, Landroidx/room/util/FtsTableInfo;->name:Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget-object v3, p1, Landroidx/room/util/FtsTableInfo;->name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-object v2, p1, Landroidx/room/util/FtsTableInfo;->name:Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
:goto_0
|
|
return v1
|
|
|
|
:cond_3
|
|
iget-object v2, p0, Landroidx/room/util/FtsTableInfo;->columns:Ljava/util/Set;
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iget-object v3, p1, Landroidx/room/util/FtsTableInfo;->columns:Ljava/util/Set;
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/Set;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
iget-object v2, p1, Landroidx/room/util/FtsTableInfo;->columns:Ljava/util/Set;
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
:goto_1
|
|
return v1
|
|
|
|
:cond_5
|
|
iget-object v2, p0, Landroidx/room/util/FtsTableInfo;->options:Ljava/util/Set;
|
|
|
|
iget-object p1, p1, Landroidx/room/util/FtsTableInfo;->options:Ljava/util/Set;
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
invoke-interface {v2, p1}, Ljava/util/Set;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
if-nez p1, :cond_7
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
return v0
|
|
|
|
:cond_8
|
|
:goto_3
|
|
return v1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/room/util/FtsTableInfo;->name:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Landroidx/room/util/FtsTableInfo;->columns:Ljava/util/Set;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {v2}, Ljava/util/Set;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Landroidx/room/util/FtsTableInfo;->options:Ljava/util/Set;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-interface {v2}, Ljava/util/Set;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
:cond_2
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const-string v0, "FtsTableInfo{name=\'"
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/room/util/FtsTableInfo;->name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x27
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", columns="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Landroidx/room/util/FtsTableInfo;->columns:Ljava/util/Set;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", options="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Landroidx/room/util/FtsTableInfo;->options:Ljava/util/Set;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x7d
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|