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

907 lines
20 KiB
Smali

.class public final Lcom/bumptech/glide/request/b;
.super Ljava/lang/Object;
.source "ErrorRequestCoordinator.java"
# interfaces
.implements Lcom/bumptech/glide/request/RequestCoordinator;
.implements Lcom/bumptech/glide/request/e;
# instance fields
.field public final a:Ljava/lang/Object;
.field public final b:Lcom/bumptech/glide/request/RequestCoordinator;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public volatile c:Lcom/bumptech/glide/request/e;
.field public volatile d:Lcom/bumptech/glide/request/e;
.field public e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.annotation build Landroidx/annotation/GuardedBy;
value = "requestLock"
.end annotation
.end field
.field public f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.annotation build Landroidx/annotation/GuardedBy;
value = "requestLock"
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Object;Lcom/bumptech/glide/request/RequestCoordinator;)V
.locals 1
.param p2 # Lcom/bumptech/glide/request/RequestCoordinator;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
sget-object v0, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->CLEARED:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
iput-object v0, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 3
iput-object v0, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 4
iput-object p1, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
.line 5
iput-object p2, p0, Lcom/bumptech/glide/request/b;->b:Lcom/bumptech/glide/request/RequestCoordinator;
return-void
.end method
# virtual methods
.method public a()Z
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
invoke-interface {v1}, Lcom/bumptech/glide/request/e;->a()Z
move-result v1
if-nez v1, :cond_1
iget-object v1, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
invoke-interface {v1}, Lcom/bumptech/glide/request/e;->a()Z
move-result v1
if-eqz v1, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v1, 0x1
:goto_1
monitor-exit v0
return v1
:catchall_0
move-exception v1
.line 3
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public b(Lcom/bumptech/glide/request/e;)Z
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
invoke-virtual {p0}, Lcom/bumptech/glide/request/b;->l()Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {p0, p1}, Lcom/bumptech/glide/request/b;->j(Lcom/bumptech/glide/request/e;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
monitor-exit v0
return p1
:catchall_0
move-exception p1
.line 3
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public c(Lcom/bumptech/glide/request/e;)Z
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
invoke-virtual {p0}, Lcom/bumptech/glide/request/b;->m()Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {p0, p1}, Lcom/bumptech/glide/request/b;->j(Lcom/bumptech/glide/request/e;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
monitor-exit v0
return p1
:catchall_0
move-exception p1
.line 3
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public clear()V
.locals 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
sget-object v1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->CLEARED:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
iput-object v1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 3
iget-object v2, p0, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
invoke-interface {v2}, Lcom/bumptech/glide/request/e;->clear()V
.line 4
iget-object v2, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-eq v2, v1, :cond_0
.line 5
iput-object v1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 6
iget-object v1, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
invoke-interface {v1}, Lcom/bumptech/glide/request/e;->clear()V
.line 7
:cond_0
monitor-exit v0
return-void
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public d(Lcom/bumptech/glide/request/e;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_1
.line 3
sget-object p1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->FAILED:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
iput-object p1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 4
iget-object p1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
sget-object v1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->RUNNING:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-eq p1, v1, :cond_0
.line 5
iput-object v1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 6
iget-object p1, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
invoke-interface {p1}, Lcom/bumptech/glide/request/e;->h()V
.line 7
:cond_0
monitor-exit v0
return-void
.line 8
:cond_1
sget-object p1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->FAILED:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
iput-object p1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 9
iget-object p1, p0, Lcom/bumptech/glide/request/b;->b:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz p1, :cond_2
.line 10
invoke-interface {p1, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->d(Lcom/bumptech/glide/request/e;)V
.line 11
:cond_2
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public e()Z
.locals 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
sget-object v2, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->CLEARED:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-ne v1, v2, :cond_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-ne v1, v2, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
monitor-exit v0
return v1
:catchall_0
move-exception v1
.line 3
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public f(Lcom/bumptech/glide/request/e;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 3
sget-object p1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->SUCCESS:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
iput-object p1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
goto :goto_0
.line 4
:cond_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_1
.line 5
sget-object p1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->SUCCESS:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
iput-object p1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 6
:cond_1
:goto_0
iget-object p1, p0, Lcom/bumptech/glide/request/b;->b:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz p1, :cond_2
.line 7
invoke-interface {p1, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->f(Lcom/bumptech/glide/request/e;)V
.line 8
:cond_2
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public g(Lcom/bumptech/glide/request/e;)Z
.locals 3
.line 1
instance-of v0, p1, Lcom/bumptech/glide/request/b;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
check-cast p1, Lcom/bumptech/glide/request/b;
.line 3
iget-object v0, p0, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
iget-object v2, p1, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
invoke-interface {v0, v2}, Lcom/bumptech/glide/request/e;->g(Lcom/bumptech/glide/request/e;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
iget-object p1, p1, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
invoke-interface {v0, p1}, Lcom/bumptech/glide/request/e;->g(Lcom/bumptech/glide/request/e;)Z
move-result p1
if-eqz p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public getRoot()Lcom/bumptech/glide/request/RequestCoordinator;
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->b:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v1, :cond_0
invoke-interface {v1}, Lcom/bumptech/glide/request/RequestCoordinator;->getRoot()Lcom/bumptech/glide/request/RequestCoordinator;
move-result-object v1
goto :goto_0
:cond_0
move-object v1, p0
:goto_0
monitor-exit v0
return-object v1
:catchall_0
move-exception v1
.line 3
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public h()V
.locals 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
sget-object v2, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->RUNNING:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-eq v1, v2, :cond_0
.line 3
iput-object v2, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 4
iget-object v1, p0, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
invoke-interface {v1}, Lcom/bumptech/glide/request/e;->h()V
.line 5
:cond_0
monitor-exit v0
return-void
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public i(Lcom/bumptech/glide/request/e;)Z
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
invoke-virtual {p0}, Lcom/bumptech/glide/request/b;->k()Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {p0, p1}, Lcom/bumptech/glide/request/b;->j(Lcom/bumptech/glide/request/e;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
monitor-exit v0
return p1
:catchall_0
move-exception p1
.line 3
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public isComplete()Z
.locals 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
sget-object v2, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->SUCCESS:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-eq v1, v2, :cond_1
iget-object v1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-ne v1, v2, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v1, 0x1
:goto_1
monitor-exit v0
return v1
:catchall_0
move-exception v1
.line 3
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public isRunning()Z
.locals 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
sget-object v2, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->RUNNING:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-eq v1, v2, :cond_1
iget-object v1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-ne v1, v2, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v1, 0x1
:goto_1
monitor-exit v0
return v1
:catchall_0
move-exception v1
.line 3
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public final j(Lcom/bumptech/glide/request/e;)Z
.locals 2
.annotation build Landroidx/annotation/GuardedBy;
value = "requestLock"
.end annotation
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
sget-object v1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->FAILED:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
.line 2
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p1, 0x1
:goto_1
return p1
.end method
.method public final k()Z
.locals 1
.annotation build Landroidx/annotation/GuardedBy;
value = "requestLock"
.end annotation
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->b:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_1
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->i(Lcom/bumptech/glide/request/e;)Z
move-result v0
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
return v0
.end method
.method public final l()Z
.locals 1
.annotation build Landroidx/annotation/GuardedBy;
value = "requestLock"
.end annotation
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->b:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_1
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->b(Lcom/bumptech/glide/request/e;)Z
move-result v0
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
return v0
.end method
.method public final m()Z
.locals 1
.annotation build Landroidx/annotation/GuardedBy;
value = "requestLock"
.end annotation
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->b:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_1
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->c(Lcom/bumptech/glide/request/e;)Z
move-result v0
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
return v0
.end method
.method public n(Lcom/bumptech/glide/request/e;Lcom/bumptech/glide/request/e;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
.line 2
iput-object p2, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
return-void
.end method
.method public pause()V
.locals 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/b;->a:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
sget-object v2, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->RUNNING:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-ne v1, v2, :cond_0
.line 3
sget-object v1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->PAUSED:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
iput-object v1, p0, Lcom/bumptech/glide/request/b;->e:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 4
iget-object v1, p0, Lcom/bumptech/glide/request/b;->c:Lcom/bumptech/glide/request/e;
invoke-interface {v1}, Lcom/bumptech/glide/request/e;->pause()V
.line 5
:cond_0
iget-object v1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
if-ne v1, v2, :cond_1
.line 6
sget-object v1, Lcom/bumptech/glide/request/RequestCoordinator$RequestState;->PAUSED:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
iput-object v1, p0, Lcom/bumptech/glide/request/b;->f:Lcom/bumptech/glide/request/RequestCoordinator$RequestState;
.line 7
iget-object v1, p0, Lcom/bumptech/glide/request/b;->d:Lcom/bumptech/glide/request/e;
invoke-interface {v1}, Lcom/bumptech/glide/request/e;->pause()V
.line 8
:cond_1
monitor-exit v0
return-void
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method