apkfuckery/com.discord/smali/androidx/room/InvalidationTracker$ObserverWrapper.smali

268 lines
6 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/room/InvalidationTracker$ObserverWrapper;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "InvalidationTracker.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/room/InvalidationTracker;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-07-24 11:27:29 +00:00
name = "ObserverWrapper"
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final mObserver:Landroidx/room/InvalidationTracker$Observer;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mSingleTableSet:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final mTableIds:[I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mTableNames:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/room/InvalidationTracker$Observer;[I[Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mObserver:Landroidx/room/InvalidationTracker$Observer;
iput-object p2, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableIds:[I
iput-object p3, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableNames:[Ljava/lang/String;
array-length p1, p2
const/4 p2, 0x1
if-ne p1, p2, :cond_0
new-instance p1, Landroidx/collection/ArraySet;
invoke-direct {p1}, Landroidx/collection/ArraySet;-><init>()V
iget-object p2, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableNames:[Ljava/lang/String;
const/4 p3, 0x0
aget-object p2, p2, p3
invoke-virtual {p1, p2}, Landroidx/collection/ArraySet;->add(Ljava/lang/Object;)Z
invoke-static {p1}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object p1
iput-object p1, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mSingleTableSet:Ljava/util/Set;
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 p1, 0x0
iput-object p1, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mSingleTableSet:Ljava/util/Set;
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public notifyByTableInvalidStatus(Ljava/util/Set;)V
2019-10-07 23:23:22 +00:00
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;)V"
}
.end annotation
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableIds:[I
array-length v0, v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_3
iget-object v3, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableIds:[I
aget v3, v3, v2
2019-10-07 23:23:22 +00:00
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-interface {p1, v3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
move-result v3
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
if-eqz v3, :cond_2
2019-07-24 11:27:29 +00:00
const/4 v3, 0x1
if-ne v0, v3, :cond_0
iget-object v1, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mSingleTableSet:Ljava/util/Set;
goto :goto_1
:cond_0
if-nez v1, :cond_1
new-instance v1, Landroidx/collection/ArraySet;
invoke-direct {v1, v0}, Landroidx/collection/ArraySet;-><init>(I)V
:cond_1
iget-object v3, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableNames:[Ljava/lang/String;
aget-object v3, v3, v2
invoke-interface {v1, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:cond_2
:goto_1
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_3
if-eqz v1, :cond_4
iget-object p1, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mObserver:Landroidx/room/InvalidationTracker$Observer;
invoke-virtual {p1, v1}, Landroidx/room/InvalidationTracker$Observer;->onInvalidated(Ljava/util/Set;)V
:cond_4
return-void
.end method
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
.method public notifyByTableNames([Ljava/lang/String;)V
.locals 11
2019-10-07 23:23:22 +00:00
iget-object v0, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableNames:[Ljava/lang/String;
array-length v0, v0
const/4 v1, 0x0
const/4 v2, 0x1
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
2019-10-07 23:23:22 +00:00
if-ne v0, v2, :cond_1
array-length v0, p1
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_5
2019-12-06 03:29:40 +00:00
aget-object v4, p1, v2
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
iget-object v5, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableNames:[Ljava/lang/String;
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
aget-object v5, v5, v1
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
move-result v4
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v4, :cond_0
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
iget-object v3, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mSingleTableSet:Ljava/util/Set;
2019-10-07 23:23:22 +00:00
goto :goto_4
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Landroidx/collection/ArraySet;
invoke-direct {v0}, Landroidx/collection/ArraySet;-><init>()V
array-length v2, p1
2019-12-06 03:29:40 +00:00
const/4 v4, 0x0
2019-10-07 23:23:22 +00:00
:goto_1
2019-12-06 03:29:40 +00:00
if-ge v4, v2, :cond_4
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
aget-object v5, p1, v4
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
iget-object v6, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mTableNames:[Ljava/lang/String;
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
array-length v7, v6
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
const/4 v8, 0x0
2019-10-07 23:23:22 +00:00
:goto_2
2019-12-06 03:29:40 +00:00
if-ge v8, v7, :cond_3
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
aget-object v9, v6, v8
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v9, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
move-result v10
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v10, :cond_2
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v9}, Landroidx/collection/ArraySet;->add(Ljava/lang/Object;)Z
2019-10-07 23:23:22 +00:00
goto :goto_3
:cond_2
2019-12-06 03:29:40 +00:00
add-int/lit8 v8, v8, 0x1
2019-10-07 23:23:22 +00:00
goto :goto_2
:cond_3
:goto_3
2019-12-06 03:29:40 +00:00
add-int/lit8 v4, v4, 0x1
2019-10-07 23:23:22 +00:00
goto :goto_1
:cond_4
invoke-virtual {v0}, Landroidx/collection/ArraySet;->size()I
move-result p1
if-lez p1, :cond_5
2019-12-06 03:29:40 +00:00
move-object v3, v0
2019-10-07 23:23:22 +00:00
:cond_5
:goto_4
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_6
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
iget-object p1, p0, Landroidx/room/InvalidationTracker$ObserverWrapper;->mObserver:Landroidx/room/InvalidationTracker$Observer;
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v3}, Landroidx/room/InvalidationTracker$Observer;->onInvalidated(Ljava/util/Set;)V
2019-10-07 23:23:22 +00:00
:cond_6
return-void
.end method