2019-12-06 03:29:40 +00:00
|
|
|
.class public Landroidx/room/RoomTrackingLiveData;
|
2019-10-07 23:23:22 +00:00
|
|
|
.super Landroidx/lifecycle/LiveData;
|
|
|
|
.source "RoomTrackingLiveData.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Landroidx/lifecycle/LiveData<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mComputeFunction:Ljava/util/concurrent/Callable;
|
2019-10-07 23:23:22 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/concurrent/Callable<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mComputing:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mContainer:Landroidx/room/InvalidationLiveDataContainer;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mDatabase:Landroidx/room/RoomDatabase;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mInTransaction:Z
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mInvalid:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mInvalidationRunnable:Ljava/lang/Runnable;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mObserver:Landroidx/room/InvalidationTracker$Observer;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mRefreshRunnable:Ljava/lang/Runnable;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mRegisteredObserver:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>(Landroidx/room/RoomDatabase;Landroidx/room/InvalidationLiveDataContainer;ZLjava/util/concurrent/Callable;[Ljava/lang/String;)V
|
2019-10-07 23:23:22 +00:00
|
|
|
.locals 2
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
|
|
value = {
|
|
|
|
"RestrictedApi"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroidx/room/RoomDatabase;",
|
|
|
|
"Landroidx/room/InvalidationLiveDataContainer;",
|
|
|
|
"Z",
|
|
|
|
"Ljava/util/concurrent/Callable<",
|
|
|
|
"TT;>;[",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroidx/lifecycle/LiveData;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mInvalid:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mComputing:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mRegisteredObserver:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/room/RoomTrackingLiveData$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Landroidx/room/RoomTrackingLiveData$1;-><init>(Landroidx/room/RoomTrackingLiveData;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mRefreshRunnable:Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/room/RoomTrackingLiveData$2;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Landroidx/room/RoomTrackingLiveData$2;-><init>(Landroidx/room/RoomTrackingLiveData;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mInvalidationRunnable:Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/room/RoomTrackingLiveData;->mDatabase:Landroidx/room/RoomDatabase;
|
|
|
|
|
|
|
|
iput-boolean p3, p0, Landroidx/room/RoomTrackingLiveData;->mInTransaction:Z
|
|
|
|
|
|
|
|
iput-object p4, p0, Landroidx/room/RoomTrackingLiveData;->mComputeFunction:Ljava/util/concurrent/Callable;
|
|
|
|
|
|
|
|
iput-object p2, p0, Landroidx/room/RoomTrackingLiveData;->mContainer:Landroidx/room/InvalidationLiveDataContainer;
|
|
|
|
|
|
|
|
new-instance p1, Landroidx/room/RoomTrackingLiveData$3;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0, p5}, Landroidx/room/RoomTrackingLiveData$3;-><init>(Landroidx/room/RoomTrackingLiveData;[Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/room/RoomTrackingLiveData;->mObserver:Landroidx/room/InvalidationTracker$Observer;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static synthetic access$000(Landroidx/room/RoomTrackingLiveData;Ljava/lang/Object;)V
|
2019-10-07 23:23:22 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, p1}, Landroidx/lifecycle/LiveData;->postValue(Ljava/lang/Object;)V
|
2019-10-07 23:23:22 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getQueryExecutor()Ljava/util/concurrent/Executor;
|
2019-10-07 23:23:22 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/room/RoomTrackingLiveData;->mInTransaction:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mDatabase:Landroidx/room/RoomDatabase;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->getTransactionExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mDatabase:Landroidx/room/RoomDatabase;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->getQueryExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onActive()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroidx/lifecycle/LiveData;->onActive()V
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mContainer:Landroidx/room/InvalidationLiveDataContainer;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/room/InvalidationLiveDataContainer;->onActive(Landroidx/lifecycle/LiveData;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/room/RoomTrackingLiveData;->getQueryExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/room/RoomTrackingLiveData;->mRefreshRunnable:Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onInactive()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroidx/lifecycle/LiveData;->onInactive()V
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/room/RoomTrackingLiveData;->mContainer:Landroidx/room/InvalidationLiveDataContainer;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/room/InvalidationLiveDataContainer;->onInactive(Landroidx/lifecycle/LiveData;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|