2020-11-14 02:19:59 +00:00
|
|
|
.class public Lv/i;
|
2020-11-12 02:11:44 +00:00
|
|
|
.super Ljava/lang/Object;
|
2020-11-13 19:18:44 +00:00
|
|
|
.source "TaskCompletionSource.java"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<TResult:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public final a:Lv/h;
|
2020-11-12 02:11:44 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-11-14 02:19:59 +00:00
|
|
|
"Lv/h<",
|
2020-11-13 19:18:44 +00:00
|
|
|
"TTResult;>;"
|
2020-11-12 02:11:44 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
new-instance v0, Lv/h;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-direct {v0}, Lv/h;-><init>()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iput-object v0, p0, Lv/i;->a:Lv/h;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public a()V
|
|
|
|
.locals 2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget-object v0, p0, Lv/i;->a:Lv/h;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-virtual {v0}, Lv/h;->h()Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-13 19:18:44 +00:00
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v1, "Cannot cancel a completed task."
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
throw v0
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public b(Ljava/lang/Exception;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 5
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget-object v0, p0, Lv/i;->a:Lv/h;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget-object v1, v0, Lv/h;->a:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
monitor-enter v1
|
|
|
|
|
|
|
|
:try_start_0
|
2020-11-14 02:19:59 +00:00
|
|
|
iget-boolean v2, v0, Lv/h;->b:Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-14 02:19:59 +00:00
|
|
|
iput-boolean v4, v0, Lv/h;->b:Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iput-object p1, v0, Lv/h;->e:Ljava/lang/Exception;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iput-boolean v3, v0, Lv/h;->f:Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget-object p1, v0, Lv/h;->a:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-virtual {v0}, Lv/h;->g()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
return-void
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-11-13 19:18:44 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v0, "Cannot set the error on a completed task."
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
throw p1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:catchall_0
|
2020-11-13 19:18:44 +00:00
|
|
|
move-exception p1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
throw p1
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public c(Ljava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-11-13 19:18:44 +00:00
|
|
|
"(TTResult;)V"
|
2020-11-12 02:11:44 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
iget-object v0, p0, Lv/i;->a:Lv/h;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-virtual {v0, p1}, Lv/h;->i(Ljava/lang/Object;)Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result p1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-13 19:18:44 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v0, "Cannot set the result of a completed task."
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|