2022-06-10 21:38:30 +09:00

830 lines
17 KiB
Smali

.class public Lcom/bumptech/glide/request/f;
.super Ljava/lang/Object;
.source "RequestFutureTarget.java"
# interfaces
.implements Lcom/bumptech/glide/request/d;
.implements Lcom/bumptech/glide/request/g;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/request/f$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/bumptech/glide/request/d<",
"TR;>;",
"Lcom/bumptech/glide/request/g<",
"TR;>;"
}
.end annotation
# static fields
.field public static final k:Lcom/bumptech/glide/request/f$a;
# instance fields
.field public final a:I
.field public final b:I
.field public final c:Z
.field public final d:Lcom/bumptech/glide/request/f$a;
.field public e:Ljava/lang/Object;
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"TR;"
}
.end annotation
.end field
.field public f:Lcom/bumptech/glide/request/e;
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public g:Z
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.end field
.field public h:Z
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.end field
.field public i:Z
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.end field
.field public j:Lcom/bumptech/glide/load/engine/GlideException;
.annotation build Landroidx/annotation/GuardedBy;
value = "this"
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/bumptech/glide/request/f$a;
invoke-direct {v0}, Lcom/bumptech/glide/request/f$a;-><init>()V
sput-object v0, Lcom/bumptech/glide/request/f;->k:Lcom/bumptech/glide/request/f$a;
return-void
.end method
.method public constructor <init>(II)V
.locals 2
.line 1
sget-object v0, Lcom/bumptech/glide/request/f;->k:Lcom/bumptech/glide/request/f$a;
const/4 v1, 0x1
invoke-direct {p0, p1, p2, v1, v0}, Lcom/bumptech/glide/request/f;-><init>(IIZLcom/bumptech/glide/request/f$a;)V
return-void
.end method
.method public constructor <init>(IIZLcom/bumptech/glide/request/f$a;)V
.locals 0
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput p1, p0, Lcom/bumptech/glide/request/f;->a:I
.line 4
iput p2, p0, Lcom/bumptech/glide/request/f;->b:I
.line 5
iput-boolean p3, p0, Lcom/bumptech/glide/request/f;->c:Z
.line 6
iput-object p4, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/f$a;
return-void
.end method
# virtual methods
.method public declared-synchronized a(Ljava/lang/Object;Ljava/lang/Object;Lj5/p;Lcom/bumptech/glide/load/DataSource;Z)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TR;",
"Ljava/lang/Object;",
"Lj5/p<",
"TR;>;",
"Lcom/bumptech/glide/load/DataSource;",
"Z)Z"
}
.end annotation
monitor-enter p0
const/4 p2, 0x1
.line 1
:try_start_0
iput-boolean p2, p0, Lcom/bumptech/glide/request/f;->h:Z
.line 2
iput-object p1, p0, Lcom/bumptech/glide/request/f;->e:Ljava/lang/Object;
.line 3
iget-object p1, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/f$a;
invoke-virtual {p1, p0}, Lcom/bumptech/glide/request/f$a;->a(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 p1, 0x0
.line 4
monitor-exit p0
return p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized b(Lcom/bumptech/glide/load/engine/GlideException;Ljava/lang/Object;Lj5/p;Z)Z
.locals 0
.param p1 # Lcom/bumptech/glide/load/engine/GlideException;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/GlideException;",
"Ljava/lang/Object;",
"Lj5/p<",
"TR;>;Z)Z"
}
.end annotation
monitor-enter p0
const/4 p2, 0x1
.line 1
:try_start_0
iput-boolean p2, p0, Lcom/bumptech/glide/request/f;->i:Z
.line 2
iput-object p1, p0, Lcom/bumptech/glide/request/f;->j:Lcom/bumptech/glide/load/engine/GlideException;
.line 3
iget-object p1, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/f$a;
invoke-virtual {p1, p0}, Lcom/bumptech/glide/request/f$a;->a(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 p1, 0x0
.line 4
monitor-exit p0
return p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized c(Ljava/lang/Long;)Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Long;",
")TR;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/util/concurrent/ExecutionException;,
Ljava/lang/InterruptedException;,
Ljava/util/concurrent/TimeoutException;
}
.end annotation
monitor-enter p0
.line 1
:try_start_0
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->c:Z
if-eqz v0, :cond_0
invoke-virtual {p0}, Lcom/bumptech/glide/request/f;->isDone()Z
move-result v0
if-nez v0, :cond_0
.line 2
invoke-static {}, Lm5/m;->a()V
.line 3
:cond_0
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->g:Z
if-nez v0, :cond_9
.line 4
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->i:Z
if-nez v0, :cond_8
.line 5
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->h:Z
if-eqz v0, :cond_1
.line 6
iget-object p1, p0, Lcom/bumptech/glide/request/f;->e:Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p1
:cond_1
const-wide/16 v0, 0x0
if-nez p1, :cond_2
.line 7
:try_start_1
iget-object p1, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/f$a;
invoke-virtual {p1, p0, v0, v1}, Lcom/bumptech/glide/request/f$a;->b(Ljava/lang/Object;J)V
goto :goto_1
.line 8
:cond_2
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v2
cmp-long v0, v2, v0
if-lez v0, :cond_3
.line 9
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 10
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v2
add-long/2addr v2, v0
.line 11
:goto_0
invoke-virtual {p0}, Lcom/bumptech/glide/request/f;->isDone()Z
move-result p1
if-nez p1, :cond_3
cmp-long p1, v0, v2
if-gez p1, :cond_3
.line 12
iget-object p1, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/f$a;
sub-long v0, v2, v0
invoke-virtual {p1, p0, v0, v1}, Lcom/bumptech/glide/request/f$a;->b(Ljava/lang/Object;J)V
.line 13
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
goto :goto_0
.line 14
:cond_3
:goto_1
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
move-result p1
if-nez p1, :cond_7
.line 15
iget-boolean p1, p0, Lcom/bumptech/glide/request/f;->i:Z
if-nez p1, :cond_6
.line 16
iget-boolean p1, p0, Lcom/bumptech/glide/request/f;->g:Z
if-nez p1, :cond_5
.line 17
iget-boolean p1, p0, Lcom/bumptech/glide/request/f;->h:Z
if-eqz p1, :cond_4
.line 18
iget-object p1, p0, Lcom/bumptech/glide/request/f;->e:Ljava/lang/Object;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-object p1
.line 19
:cond_4
:try_start_2
new-instance p1, Ljava/util/concurrent/TimeoutException;
invoke-direct {p1}, Ljava/util/concurrent/TimeoutException;-><init>()V
throw p1
.line 20
:cond_5
new-instance p1, Ljava/util/concurrent/CancellationException;
invoke-direct {p1}, Ljava/util/concurrent/CancellationException;-><init>()V
throw p1
.line 21
:cond_6
new-instance p1, Ljava/util/concurrent/ExecutionException;
iget-object v0, p0, Lcom/bumptech/glide/request/f;->j:Lcom/bumptech/glide/load/engine/GlideException;
invoke-direct {p1, v0}, Ljava/util/concurrent/ExecutionException;-><init>(Ljava/lang/Throwable;)V
throw p1
.line 22
:cond_7
new-instance p1, Ljava/lang/InterruptedException;
invoke-direct {p1}, Ljava/lang/InterruptedException;-><init>()V
throw p1
.line 23
:cond_8
new-instance p1, Ljava/util/concurrent/ExecutionException;
iget-object v0, p0, Lcom/bumptech/glide/request/f;->j:Lcom/bumptech/glide/load/engine/GlideException;
invoke-direct {p1, v0}, Ljava/util/concurrent/ExecutionException;-><init>(Ljava/lang/Throwable;)V
throw p1
.line 24
:cond_9
new-instance p1, Ljava/util/concurrent/CancellationException;
invoke-direct {p1}, Ljava/util/concurrent/CancellationException;-><init>()V
throw p1
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public cancel(Z)Z
.locals 2
.line 1
monitor-enter p0
.line 2
:try_start_0
invoke-virtual {p0}, Lcom/bumptech/glide/request/f;->isDone()Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
.line 3
monitor-exit p0
return p1
:cond_0
const/4 v0, 0x1
.line 4
iput-boolean v0, p0, Lcom/bumptech/glide/request/f;->g:Z
.line 5
iget-object v1, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/f$a;
invoke-virtual {v1, p0}, Lcom/bumptech/glide/request/f$a;->a(Ljava/lang/Object;)V
const/4 v1, 0x0
if-eqz p1, :cond_1
.line 6
iget-object p1, p0, Lcom/bumptech/glide/request/f;->f:Lcom/bumptech/glide/request/e;
.line 7
iput-object v1, p0, Lcom/bumptech/glide/request/f;->f:Lcom/bumptech/glide/request/e;
move-object v1, p1
.line 8
:cond_1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v1, :cond_2
.line 9
invoke-interface {v1}, Lcom/bumptech/glide/request/e;->clear()V
:cond_2
return v0
:catchall_0
move-exception p1
.line 10
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public f(Lj5/o;)V
.locals 0
.param p1 # Lj5/o;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
return-void
.end method
.method public declared-synchronized g(Ljava/lang/Object;Lk5/f;)V
.locals 0
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Lk5/f;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(TR;",
"Lk5/f<",
"-TR;>;)V"
}
.end annotation
monitor-enter p0
.line 1
monitor-exit p0
return-void
.end method
.method public get()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TR;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/InterruptedException;,
Ljava/util/concurrent/ExecutionException;
}
.end annotation
const/4 v0, 0x0
.line 1
:try_start_0
invoke-virtual {p0, v0}, Lcom/bumptech/glide/request/f;->c(Ljava/lang/Long;)Ljava/lang/Object;
move-result-object v0
:try_end_0
.catch Ljava/util/concurrent/TimeoutException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
.line 2
new-instance v1, Ljava/lang/AssertionError;
invoke-direct {v1, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v1
.end method
.method public get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
.locals 0
.param p3 # Ljava/util/concurrent/TimeUnit;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(J",
"Ljava/util/concurrent/TimeUnit;",
")TR;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/InterruptedException;,
Ljava/util/concurrent/ExecutionException;,
Ljava/util/concurrent/TimeoutException;
}
.end annotation
.line 3
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide p1
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/bumptech/glide/request/f;->c(Ljava/lang/Long;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public h(Landroid/graphics/drawable/Drawable;)V
.locals 0
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method
.method public declared-synchronized i()Lcom/bumptech/glide/request/e;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
monitor-enter p0
.line 1
:try_start_0
iget-object v0, p0, Lcom/bumptech/glide/request/f;->f:Lcom/bumptech/glide/request/e;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized isCancelled()Z
.locals 1
monitor-enter p0
.line 1
:try_start_0
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->g:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized isDone()Z
.locals 1
monitor-enter p0
.line 1
:try_start_0
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->g:Z
if-nez v0, :cond_1
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->h:Z
if-nez v0, :cond_1
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->i:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v0, 0x1
:goto_1
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public j(Landroid/graphics/drawable/Drawable;)V
.locals 0
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
return-void
.end method
.method public k(Lj5/o;)V
.locals 2
.param p1 # Lj5/o;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget v0, p0, Lcom/bumptech/glide/request/f;->a:I
iget v1, p0, Lcom/bumptech/glide/request/f;->b:I
invoke-interface {p1, v0, v1}, Lj5/o;->d(II)V
return-void
.end method
.method public declared-synchronized m(Lcom/bumptech/glide/request/e;)V
.locals 0
.param p1 # Lcom/bumptech/glide/request/e;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
monitor-enter p0
.line 1
:try_start_0
iput-object p1, p0, Lcom/bumptech/glide/request/f;->f:Lcom/bumptech/glide/request/e;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 2
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized n(Landroid/graphics/drawable/Drawable;)V
.locals 0
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
monitor-enter p0
.line 1
monitor-exit p0
return-void
.end method
.method public onDestroy()V
.locals 0
return-void
.end method
.method public onStart()V
.locals 0
return-void
.end method
.method public onStop()V
.locals 0
return-void
.end method