f.smali
.class public final Lcom/bumptech/glide/request/f;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/concurrent/Future;
.implements Lcom/bumptech/glide/request/target/i;
.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;",
"Ljava/util/concurrent/Future;",
"Lcom/bumptech/glide/request/target/i;",
"Lcom/bumptech/glide/request/g<",
"TR;>;"
}
.end annotation
# static fields
.field public static final i:Lcom/bumptech/glide/request/f$a;
# instance fields
.field public final a:I
.field public final b:I
.field public c:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TR;"
}
.end annotation
.end field
.field public d:Lcom/bumptech/glide/request/d;
.field public e:Z
.field public f:Z
.field public g:Z
.field public h:Lcom/bumptech/glide/load/engine/r;
# direct methods
.method public static constructor <clinit>()V
.registers 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;->i:Lcom/bumptech/glide/request/f$a;
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/high16 v0, -0x80000000
.line 2
iput v0, p0, Lcom/bumptech/glide/request/f;->a:I
.line 3
iput v0, p0, Lcom/bumptech/glide/request/f;->b:I
return-void
.end method
# virtual methods
.method public final declared-synchronized a(Ljava/lang/Long;)Ljava/lang/Object;
.registers 7
.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_1
invoke-virtual {p0}, Lcom/bumptech/glide/request/f;->isDone()Z
move-result v0
if-nez v0, :cond_16
.line 2
invoke-static {}, Lcom/bumptech/glide/util/m;->h()Z
move-result v0
if-eqz v0, :cond_e
goto :goto_16
.line 3
:cond_e
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "You must call this method on a background thread"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.line 4
:cond_16
:goto_16
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->e:Z
if-nez v0, :cond_8b
.line 5
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->g:Z
if-nez v0, :cond_83
.line 6
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->f:Z
if-eqz v0, :cond_26
.line 7
iget-object p1, p0, Lcom/bumptech/glide/request/f;->c:Ljava/lang/Object;
:try_end_24
.catchall {:try_start_1 .. :try_end_24} :catchall_91
monitor-exit p0
return-object p1
:cond_26
const-wide/16 v0, 0x0
if-nez p1, :cond_2e
.line 8
:try_start_2a
invoke-virtual {p0, v0, v1}, Ljava/lang/Object;->wait(J)V
goto :goto_53
.line 9
:cond_2e
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v2
cmp-long v4, v2, v0
if-lez v4, :cond_53
.line 10
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 11
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v2
add-long/2addr v2, v0
.line 12
:goto_3f
invoke-virtual {p0}, Lcom/bumptech/glide/request/f;->isDone()Z
move-result p1
if-nez p1, :cond_53
cmp-long p1, v0, v2
if-gez p1, :cond_53
sub-long v0, v2, v0
.line 13
invoke-virtual {p0, v0, v1}, Ljava/lang/Object;->wait(J)V
.line 14
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
goto :goto_3f
.line 15
:cond_53
:goto_53
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
move-result p1
if-nez p1, :cond_7d
.line 16
iget-boolean p1, p0, Lcom/bumptech/glide/request/f;->g:Z
if-nez p1, :cond_75
.line 17
iget-boolean p1, p0, Lcom/bumptech/glide/request/f;->e:Z
if-nez p1, :cond_6f
.line 18
iget-boolean p1, p0, Lcom/bumptech/glide/request/f;->f:Z
if-eqz p1, :cond_69
.line 19
iget-object p1, p0, Lcom/bumptech/glide/request/f;->c:Ljava/lang/Object;
:try_end_67
.catchall {:try_start_2a .. :try_end_67} :catchall_91
monitor-exit p0
return-object p1
.line 20
:cond_69
:try_start_69
new-instance p1, Ljava/util/concurrent/TimeoutException;
invoke-direct {p1}, Ljava/util/concurrent/TimeoutException;-><init>()V
throw p1
.line 21
:cond_6f
new-instance p1, Ljava/util/concurrent/CancellationException;
invoke-direct {p1}, Ljava/util/concurrent/CancellationException;-><init>()V
throw p1
.line 22
:cond_75
new-instance p1, Ljava/util/concurrent/ExecutionException;
iget-object v0, p0, Lcom/bumptech/glide/request/f;->h:Lcom/bumptech/glide/load/engine/r;
invoke-direct {p1, v0}, Ljava/util/concurrent/ExecutionException;-><init>(Ljava/lang/Throwable;)V
throw p1
.line 23
:cond_7d
new-instance p1, Ljava/lang/InterruptedException;
invoke-direct {p1}, Ljava/lang/InterruptedException;-><init>()V
throw p1
.line 24
:cond_83
new-instance p1, Ljava/util/concurrent/ExecutionException;
iget-object v0, p0, Lcom/bumptech/glide/request/f;->h:Lcom/bumptech/glide/load/engine/r;
invoke-direct {p1, v0}, Ljava/util/concurrent/ExecutionException;-><init>(Ljava/lang/Throwable;)V
throw p1
.line 25
:cond_8b
new-instance p1, Ljava/util/concurrent/CancellationException;
invoke-direct {p1}, Ljava/util/concurrent/CancellationException;-><init>()V
throw p1
:try_end_91
.catchall {:try_start_69 .. :try_end_91} :catchall_91
:catchall_91
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final cancel(Z)Z
.registers 4
.line 1
monitor-enter p0
.line 2
:try_start_1
invoke-virtual {p0}, Lcom/bumptech/glide/request/f;->isDone()Z
move-result v0
if-eqz v0, :cond_a
const/4 p1, 0x0
.line 3
monitor-exit p0
return p1
:cond_a
const/4 v0, 0x1
.line 4
iput-boolean v0, p0, Lcom/bumptech/glide/request/f;->e:Z
.line 5
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
const/4 v1, 0x0
if-eqz p1, :cond_18
.line 6
iget-object p1, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/d;
.line 7
iput-object v1, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/d;
move-object v1, p1
.line 8
:cond_18
monitor-exit p0
:try_end_19
.catchall {:try_start_1 .. :try_end_19} :catchall_1f
if-eqz v1, :cond_1e
.line 9
invoke-interface {v1}, Lcom/bumptech/glide/request/d;->clear()V
:cond_1e
return v0
:catchall_1f
move-exception p1
.line 10
:try_start_20
monitor-exit p0
:try_end_21
.catchall {:try_start_20 .. :try_end_21} :catchall_1f
throw p1
.end method
.method public final get()Ljava/lang/Object;
.registers 3
.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_1
invoke-virtual {p0, v0}, Lcom/bumptech/glide/request/f;->a(Ljava/lang/Long;)Ljava/lang/Object;
move-result-object v0
:try_end_5
.catch Ljava/util/concurrent/TimeoutException; {:try_start_1 .. :try_end_5} :catch_6
return-object v0
:catch_6
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 final get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
.registers 4
.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;->a(Ljava/lang/Long;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final declared-synchronized getRequest()Lcom/bumptech/glide/request/d;
.registers 2
monitor-enter p0
:try_start_1
iget-object v0, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/d;
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_5
monitor-exit p0
return-object v0
:catchall_5
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final getSize(Lcom/bumptech/glide/request/target/h;)V
.registers 4
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}, Lcom/bumptech/glide/request/target/h;->onSizeReady(II)V
return-void
.end method
.method public final declared-synchronized isCancelled()Z
.registers 2
monitor-enter p0
:try_start_1
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->e:Z
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_5
monitor-exit p0
return v0
:catchall_5
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized isDone()Z
.registers 2
monitor-enter p0
:try_start_1
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->e:Z
if-nez v0, :cond_10
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->f:Z
if-nez v0, :cond_10
iget-boolean v0, p0, Lcom/bumptech/glide/request/f;->g:Z
:try_end_b
.catchall {:try_start_1 .. :try_end_b} :catchall_13
if-eqz v0, :cond_e
goto :goto_10
:cond_e
const/4 v0, 0x0
goto :goto_11
:cond_10
:goto_10
const/4 v0, 0x1
:goto_11
monitor-exit p0
return v0
:catchall_13
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final onDestroy()V
.registers 1
return-void
.end method
.method public final onLoadCleared(Landroid/graphics/drawable/Drawable;)V
.registers 2
return-void
.end method
.method public final declared-synchronized onLoadFailed(Landroid/graphics/drawable/Drawable;)V
.registers 2
monitor-enter p0
.line 1
monitor-exit p0
return-void
.end method
.method public final declared-synchronized onLoadFailed(Lcom/bumptech/glide/load/engine/r;Ljava/lang/Object;Lcom/bumptech/glide/request/target/i;Z)Z
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/r;",
"Ljava/lang/Object;",
"Lcom/bumptech/glide/request/target/i<",
"TR;>;Z)Z"
}
.end annotation
monitor-enter p0
const/4 p2, 0x1
.line 2
:try_start_2
iput-boolean p2, p0, Lcom/bumptech/glide/request/f;->g:Z
.line 3
iput-object p1, p0, Lcom/bumptech/glide/request/f;->h:Lcom/bumptech/glide/load/engine/r;
.line 4
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
:try_end_9
.catchall {:try_start_2 .. :try_end_9} :catchall_c
const/4 p1, 0x0
.line 5
monitor-exit p0
return p1
:catchall_c
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final onLoadStarted(Landroid/graphics/drawable/Drawable;)V
.registers 2
return-void
.end method
.method public final declared-synchronized onResourceReady(Ljava/lang/Object;Lcom/bumptech/glide/request/transition/f;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TR;",
"Lcom/bumptech/glide/request/transition/f<",
"-TR;>;)V"
}
.end annotation
monitor-enter p0
.line 1
monitor-exit p0
return-void
.end method
.method public final declared-synchronized onResourceReady(Ljava/lang/Object;Ljava/lang/Object;Lcom/bumptech/glide/request/target/i;Lcom/bumptech/glide/load/a;Z)Z
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(TR;",
"Ljava/lang/Object;",
"Lcom/bumptech/glide/request/target/i<",
"TR;>;",
"Lcom/bumptech/glide/load/a;",
"Z)Z"
}
.end annotation
monitor-enter p0
const/4 p2, 0x1
.line 2
:try_start_2
iput-boolean p2, p0, Lcom/bumptech/glide/request/f;->f:Z
.line 3
iput-object p1, p0, Lcom/bumptech/glide/request/f;->c:Ljava/lang/Object;
.line 4
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
:try_end_9
.catchall {:try_start_2 .. :try_end_9} :catchall_c
const/4 p1, 0x0
.line 5
monitor-exit p0
return p1
:catchall_c
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final onStart()V
.registers 1
return-void
.end method
.method public final onStop()V
.registers 1
return-void
.end method
.method public final removeCallback(Lcom/bumptech/glide/request/target/h;)V
.registers 2
return-void
.end method
.method public final declared-synchronized setRequest(Lcom/bumptech/glide/request/d;)V
.registers 2
monitor-enter p0
.line 1
:try_start_1
iput-object p1, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/d;
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_5
.line 2
monitor-exit p0
return-void
:catchall_5
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final toString()Ljava/lang/String;
.registers 5
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-super {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
const-string v2, "[status="
.line 2
invoke-static {v0, v1, v2}, Landroid/support/v4/media/session/b;->d(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 3
monitor-enter p0
.line 4
:try_start_10
iget-boolean v1, p0, Lcom/bumptech/glide/request/f;->e:Z
const/4 v2, 0x0
if-eqz v1, :cond_18
const-string v1, "CANCELLED"
goto :goto_2a
.line 5
:cond_18
iget-boolean v1, p0, Lcom/bumptech/glide/request/f;->g:Z
if-eqz v1, :cond_1f
const-string v1, "FAILURE"
goto :goto_2a
.line 6
:cond_1f
iget-boolean v1, p0, Lcom/bumptech/glide/request/f;->f:Z
if-eqz v1, :cond_26
const-string v1, "SUCCESS"
goto :goto_2a
:cond_26
const-string v1, "PENDING"
.line 7
iget-object v2, p0, Lcom/bumptech/glide/request/f;->d:Lcom/bumptech/glide/request/d;
.line 8
:goto_2a
monitor-exit p0
:try_end_2b
.catchall {:try_start_10 .. :try_end_2b} :catchall_51
if-eqz v2, :cond_4a
.line 9
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, ", request=["
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, "]]"
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_4a
const-string v2, "]"
.line 10
invoke-static {v0, v1, v2}, Landroidx/biometric/i0;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
:catchall_51
move-exception v0
.line 11
:try_start_52
monitor-exit p0
:try_end_53
.catchall {:try_start_52 .. :try_end_53} :catchall_51
throw v0
.end method