apkfuckery/com.discord/smali/androidx/loader/content/AsyncTaskLoader$LoadTask.smali

198 lines
5.5 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Landroidx/loader/content/AsyncTaskLoader$LoadTask;
2019-07-24 11:27:29 +00:00
.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;
2019-12-06 03:29:40 +00:00
accessFlags = 0x11
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
.field public final mDone:Ljava/util/concurrent/CountDownLatch;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Landroidx/loader/content/AsyncTaskLoader;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public waiting:Z
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/loader/content/AsyncTaskLoader;)V
2019-07-24 11:27:29 +00:00
.locals 1
iput-object p1, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->this$0:Landroidx/loader/content/AsyncTaskLoader;
invoke-direct {p0}, Landroidx/loader/content/ModernAsyncTask;-><init>()V
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
2019-12-06 03:29:40 +00:00
.method public bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 0
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 p1
return-object p1
.end method
2019-12-06 03:29:40 +00:00
.method public varargs doInBackground([Ljava/lang/Void;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 1
.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;
invoke-virtual {p1}, Landroidx/loader/content/AsyncTaskLoader;->onLoadInBackground()Ljava/lang/Object;
move-result-object p1
:try_end_0
.catch Landroidx/core/os/OperationCanceledException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/loader/content/ModernAsyncTask;->isCancelled()Z
2019-07-24 11:27:29 +00:00
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public onCancelled(Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
.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;
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 p1, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->countDown()V
return-void
:catchall_0
move-exception p1
iget-object v0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public onPostExecute(Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
.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;
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 p1, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->countDown()V
return-void
:catchall_0
move-exception p1
iget-object v0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public run()V
2019-07-24 11:27:29 +00:00
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->waiting:Z
iget-object v0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->this$0:Landroidx/loader/content/AsyncTaskLoader;
invoke-virtual {v0}, Landroidx/loader/content/AsyncTaskLoader;->executePendingTask()V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public waitForLoader()V
2019-07-24 11:27:29 +00:00
.locals 1
:try_start_0
iget-object v0, p0, Landroidx/loader/content/AsyncTaskLoader$LoadTask;->mDone:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {v0}, 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