Rabbit-R1/original r1/smali/smali_classes2/androidx/loader/content/AsyncTaskLoader$LoadTask.smali
2024-05-21 17:08:36 -04:00

209 lines
5.7 KiB
Smali

.class final Landroidx/loader/content/AsyncTaskLoader$LoadTask;
.super Landroidx/loader/content/ModernAsyncTask;
.source "AsyncTaskLoader.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/loader/content/AsyncTaskLoader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "LoadTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/loader/content/ModernAsyncTask<",
"Ljava/lang/Void;",
"Ljava/lang/Void;",
"TD;>;",
"Ljava/lang/Runnable;"
}
.end annotation
# instance fields
.field private final mDone:Ljava/util/concurrent/CountDownLatch;
.field final synthetic this$0:Landroidx/loader/content/AsyncTaskLoader;
.field waiting:Z
# direct methods
.method constructor <init>(Landroidx/loader/content/AsyncTaskLoader;)V
.locals 1
iput-object p1, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->this$0:Landroidx/loader/content/AsyncTaskLoader;
.line 48
invoke-direct {p0}, Landroidx/loader/content/ModernAsyncTask;-><init>()V
.line 49
new-instance p1, Ljava/util/concurrent/CountDownLatch;
const/4 v0, 0x1
invoke-direct {p1, v0}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
iput-object p1, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
return-void
.end method
# virtual methods
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 48
check-cast p1, [Ljava/lang/Void;
invoke-virtual {p0, p1}, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->doInBackground([Ljava/lang/Void;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method protected varargs doInBackground([Ljava/lang/Void;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Ljava/lang/Void;",
")TD;"
}
.end annotation
:try_start_0
iget-object p1, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->this$0:Landroidx/loader/content/AsyncTaskLoader;
.line 60
invoke-virtual {p1}, Landroidx/loader/content/AsyncTaskLoader;->onLoadInBackground()Ljava/lang/Object;
move-result-object p0
:try_end_0
.catch Landroidx/core/os/OperationCanceledException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p1
.line 64
invoke-virtual {p0}, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->isCancelled()Z
move-result p0
if-eqz p0, :cond_0
const/4 p0, 0x0
return-object p0
.line 71
:cond_0
throw p1
.end method
.method protected onCancelled(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TD;)V"
}
.end annotation
:try_start_0
iget-object v0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->this$0:Landroidx/loader/content/AsyncTaskLoader;
.line 94
invoke-virtual {v0, p0, p1}, Landroidx/loader/content/AsyncTaskLoader;->dispatchOnCancelled(Landroidx/loader/content/AsyncTaskLoader$LoadTask;Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object p0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
.line 96
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
return-void
:catchall_0
move-exception p1
iget-object p0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
throw p1
.end method
.method protected onPostExecute(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TD;)V"
}
.end annotation
:try_start_0
iget-object v0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->this$0:Landroidx/loader/content/AsyncTaskLoader;
.line 83
invoke-virtual {v0, p0, p1}, Landroidx/loader/content/AsyncTaskLoader;->dispatchOnLoadComplete(Landroidx/loader/content/AsyncTaskLoader$LoadTask;Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object p0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
.line 85
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
return-void
:catchall_0
move-exception p1
iget-object p0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
throw p1
.end method
.method public run()V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->waiting:Z
iget-object p0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->this$0:Landroidx/loader/content/AsyncTaskLoader;
.line 105
invoke-virtual {p0}, Landroidx/loader/content/AsyncTaskLoader;->executePendingTask()V
return-void
.end method
.method public waitForLoader()V
.locals 0
:try_start_0
iget-object p0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
.line 111
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->await()V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-void
.end method