t.smali
.class final Lj7/t;
.super Lj7/e;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<ResultT:",
"Ljava/lang/Object;",
">",
"Lj7/e<",
"TResultT;>;"
}
.end annotation
# instance fields
.field private final a:Ljava/lang/Object;
.field private final b:Lj7/o;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lj7/o<",
"TResultT;>;"
}
.end annotation
.end field
.field private c:Z
.field private d:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TResultT;"
}
.end annotation
.end field
.field private e:Ljava/lang/Exception;
# direct methods
.method constructor <init>()V
.registers 2
invoke-direct {p0}, Lj7/e;-><init>()V
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
iput-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
new-instance v0, Lj7/o;
invoke-direct {v0}, Lj7/o;-><init>()V
iput-object v0, p0, Lj7/t;->b:Lj7/o;
return-void
.end method
.method private final l()V
.registers 3
iget-boolean v0, p0, Lj7/t;->c:Z
const-string v1, "Task is not yet complete"
invoke-static {v0, v1}, Le7/r;->b(ZLjava/lang/Object;)V
return-void
.end method
.method private final m()V
.registers 3
iget-boolean v0, p0, Lj7/t;->c:Z
xor-int/lit8 v0, v0, 0x1
const-string v1, "Task is already complete"
invoke-static {v0, v1}, Le7/r;->b(ZLjava/lang/Object;)V
return-void
.end method
.method private final n()V
.registers 3
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-boolean v1, p0, Lj7/t;->c:Z
if-nez v1, :cond_9
monitor-exit v0
return-void
:cond_9
monitor-exit v0
:try_end_a
.catchall {:try_start_3 .. :try_end_a} :catchall_10
iget-object v0, p0, Lj7/t;->b:Lj7/o;
invoke-virtual {v0, p0}, Lj7/o;->b(Lj7/e;)V
return-void
:catchall_10
move-exception v1
:try_start_11
monitor-exit v0
:try_end_12
.catchall {:try_start_11 .. :try_end_12} :catchall_10
throw v1
.end method
# virtual methods
.method public final a(Lj7/a;)Lj7/e;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lj7/a<",
"TResultT;>;)",
"Lj7/e<",
"TResultT;>;"
}
.end annotation
sget-object v0, Lj7/f;->a:Ljava/util/concurrent/Executor;
iget-object v1, p0, Lj7/t;->b:Lj7/o;
new-instance v2, Lj7/i;
invoke-direct {v2, v0, p1}, Lj7/i;-><init>(Ljava/util/concurrent/Executor;Lj7/a;)V
invoke-virtual {v1, v2}, Lj7/o;->a(Lj7/n;)V
invoke-direct {p0}, Lj7/t;->n()V
return-object p0
.end method
.method public final b(Ljava/util/concurrent/Executor;Lj7/b;)Lj7/e;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Executor;",
"Lj7/b;",
")",
"Lj7/e<",
"TResultT;>;"
}
.end annotation
iget-object v0, p0, Lj7/t;->b:Lj7/o;
new-instance v1, Lj7/k;
invoke-direct {v1, p1, p2}, Lj7/k;-><init>(Ljava/util/concurrent/Executor;Lj7/b;)V
invoke-virtual {v0, v1}, Lj7/o;->a(Lj7/n;)V
invoke-direct {p0}, Lj7/t;->n()V
return-object p0
.end method
.method public final c(Ljava/util/concurrent/Executor;Lj7/c;)Lj7/e;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Executor;",
"Lj7/c<",
"-TResultT;>;)",
"Lj7/e<",
"TResultT;>;"
}
.end annotation
iget-object v0, p0, Lj7/t;->b:Lj7/o;
new-instance v1, Lj7/m;
invoke-direct {v1, p1, p2}, Lj7/m;-><init>(Ljava/util/concurrent/Executor;Lj7/c;)V
invoke-virtual {v0, v1}, Lj7/o;->a(Lj7/n;)V
invoke-direct {p0}, Lj7/t;->n()V
return-object p0
.end method
.method public final d()Ljava/lang/Exception;
.registers 3
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-object v1, p0, Lj7/t;->e:Ljava/lang/Exception;
monitor-exit v0
return-object v1
:catchall_7
move-exception v1
monitor-exit v0
:try_end_9
.catchall {:try_start_3 .. :try_end_9} :catchall_7
throw v1
.end method
.method public final e()Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()TResultT;"
}
.end annotation
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
invoke-direct {p0}, Lj7/t;->l()V
iget-object v1, p0, Lj7/t;->e:Ljava/lang/Exception;
if-nez v1, :cond_e
iget-object v1, p0, Lj7/t;->d:Ljava/lang/Object;
monitor-exit v0
return-object v1
:cond_e
new-instance v2, Lj7/d;
invoke-direct {v2, v1}, Lj7/d;-><init>(Ljava/lang/Throwable;)V
throw v2
:catchall_14
move-exception v1
monitor-exit v0
:try_end_16
.catchall {:try_start_3 .. :try_end_16} :catchall_14
throw v1
.end method
.method public final f()Z
.registers 3
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-boolean v1, p0, Lj7/t;->c:Z
monitor-exit v0
return v1
:catchall_7
move-exception v1
monitor-exit v0
:try_end_9
.catchall {:try_start_3 .. :try_end_9} :catchall_7
throw v1
.end method
.method public final g()Z
.registers 4
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-boolean v1, p0, Lj7/t;->c:Z
const/4 v2, 0x0
if-eqz v1, :cond_d
iget-object v1, p0, Lj7/t;->e:Ljava/lang/Exception;
if-nez v1, :cond_d
const/4 v2, 0x1
:cond_d
monitor-exit v0
return v2
:catchall_f
move-exception v1
monitor-exit v0
:try_end_11
.catchall {:try_start_3 .. :try_end_11} :catchall_f
throw v1
.end method
.method public final h(Ljava/lang/Object;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TResultT;)V"
}
.end annotation
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
invoke-direct {p0}, Lj7/t;->m()V
const/4 v1, 0x1
iput-boolean v1, p0, Lj7/t;->c:Z
iput-object p1, p0, Lj7/t;->d:Ljava/lang/Object;
monitor-exit v0
:try_end_c
.catchall {:try_start_3 .. :try_end_c} :catchall_12
iget-object p1, p0, Lj7/t;->b:Lj7/o;
invoke-virtual {p1, p0}, Lj7/o;->b(Lj7/e;)V
return-void
:catchall_12
move-exception p1
:try_start_13
monitor-exit v0
:try_end_14
.catchall {:try_start_13 .. :try_end_14} :catchall_12
throw p1
.end method
.method public final i(Ljava/lang/Object;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TResultT;)Z"
}
.end annotation
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-boolean v1, p0, Lj7/t;->c:Z
if-eqz v1, :cond_a
monitor-exit v0
const/4 p1, 0x0
return p1
:cond_a
const/4 v1, 0x1
iput-boolean v1, p0, Lj7/t;->c:Z
iput-object p1, p0, Lj7/t;->d:Ljava/lang/Object;
monitor-exit v0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_16
iget-object p1, p0, Lj7/t;->b:Lj7/o;
invoke-virtual {p1, p0}, Lj7/o;->b(Lj7/e;)V
return v1
:catchall_16
move-exception p1
:try_start_17
monitor-exit v0
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw p1
.end method
.method public final j(Ljava/lang/Exception;)V
.registers 4
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
invoke-direct {p0}, Lj7/t;->m()V
const/4 v1, 0x1
iput-boolean v1, p0, Lj7/t;->c:Z
iput-object p1, p0, Lj7/t;->e:Ljava/lang/Exception;
monitor-exit v0
:try_end_c
.catchall {:try_start_3 .. :try_end_c} :catchall_12
iget-object p1, p0, Lj7/t;->b:Lj7/o;
invoke-virtual {p1, p0}, Lj7/o;->b(Lj7/e;)V
return-void
:catchall_12
move-exception p1
:try_start_13
monitor-exit v0
:try_end_14
.catchall {:try_start_13 .. :try_end_14} :catchall_12
throw p1
.end method
.method public final k(Ljava/lang/Exception;)Z
.registers 4
iget-object v0, p0, Lj7/t;->a:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-boolean v1, p0, Lj7/t;->c:Z
if-eqz v1, :cond_a
monitor-exit v0
const/4 p1, 0x0
return p1
:cond_a
const/4 v1, 0x1
iput-boolean v1, p0, Lj7/t;->c:Z
iput-object p1, p0, Lj7/t;->e:Ljava/lang/Exception;
monitor-exit v0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_16
iget-object p1, p0, Lj7/t;->b:Lj7/o;
invoke-virtual {p1, p0}, Lj7/o;->b(Lj7/e;)V
return v1
:catchall_16
move-exception p1
:try_start_17
monitor-exit v0
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw p1
.end method