ErrorRequestCoordinator.smali
.class public final Lcom/bumptech/glide/request/ErrorRequestCoordinator;
.super Ljava/lang/Object;
.source "ErrorRequestCoordinator.java"
# interfaces
.implements Lcom/bumptech/glide/request/RequestCoordinator;
.implements Lcom/bumptech/glide/request/Request;
# instance fields
.field private error:Lcom/bumptech/glide/request/Request;
.field private final parent:Lcom/bumptech/glide/request/RequestCoordinator;
.field private primary:Lcom/bumptech/glide/request/Request;
# direct methods
.method public constructor <init>(Lcom/bumptech/glide/request/RequestCoordinator;)V
.registers 2
.line 17
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 18
iput-object p1, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parent:Lcom/bumptech/glide/request/RequestCoordinator;
return-void
.end method
.method private isValidRequest(Lcom/bumptech/glide/request/Request;)Z
.registers 3
.line 111
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isFailed()Z
move-result v0
if-eqz v0, :cond_19
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_19
goto :goto_1b
:cond_19
const/4 p1, 0x0
goto :goto_1c
:cond_1b
:goto_1b
const/4 p1, 0x1
:goto_1c
return p1
.end method
.method private parentCanNotifyCleared()Z
.registers 2
.line 103
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parent:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_d
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->canNotifyCleared(Lcom/bumptech/glide/request/Request;)Z
move-result v0
if-eqz v0, :cond_b
goto :goto_d
:cond_b
const/4 v0, 0x0
goto :goto_e
:cond_d
:goto_d
const/4 v0, 0x1
:goto_e
return v0
.end method
.method private parentCanNotifyStatusChanged()Z
.registers 2
.line 107
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parent:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_d
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->canNotifyStatusChanged(Lcom/bumptech/glide/request/Request;)Z
move-result v0
if-eqz v0, :cond_b
goto :goto_d
:cond_b
const/4 v0, 0x0
goto :goto_e
:cond_d
:goto_d
const/4 v0, 0x1
:goto_e
return v0
.end method
.method private parentCanSetImage()Z
.registers 2
.line 89
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parent:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_d
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->canSetImage(Lcom/bumptech/glide/request/Request;)Z
move-result v0
if-eqz v0, :cond_b
goto :goto_d
:cond_b
const/4 v0, 0x0
goto :goto_e
:cond_d
:goto_d
const/4 v0, 0x1
:goto_e
return v0
.end method
.method private parentIsAnyResourceSet()Z
.registers 2
.line 120
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parent:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_c
invoke-interface {v0}, Lcom/bumptech/glide/request/RequestCoordinator;->isAnyResourceSet()Z
move-result v0
if-eqz v0, :cond_c
const/4 v0, 0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
:goto_d
return v0
.end method
# virtual methods
.method public begin()V
.registers 2
.line 28
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isRunning()Z
move-result v0
if-nez v0, :cond_d
.line 29
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->begin()V
:cond_d
return-void
.end method
.method public canNotifyCleared(Lcom/bumptech/glide/request/Request;)Z
.registers 3
.line 99
invoke-direct {p0}, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parentCanNotifyCleared()Z
move-result v0
if-eqz v0, :cond_e
invoke-direct {p0, p1}, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->isValidRequest(Lcom/bumptech/glide/request/Request;)Z
move-result p1
if-eqz p1, :cond_e
const/4 p1, 0x1
goto :goto_f
:cond_e
const/4 p1, 0x0
:goto_f
return p1
.end method
.method public canNotifyStatusChanged(Lcom/bumptech/glide/request/Request;)Z
.registers 3
.line 94
invoke-direct {p0}, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parentCanNotifyStatusChanged()Z
move-result v0
if-eqz v0, :cond_e
invoke-direct {p0, p1}, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->isValidRequest(Lcom/bumptech/glide/request/Request;)Z
move-result p1
if-eqz p1, :cond_e
const/4 p1, 0x1
goto :goto_f
:cond_e
const/4 p1, 0x0
:goto_f
return p1
.end method
.method public canSetImage(Lcom/bumptech/glide/request/Request;)Z
.registers 3
.line 85
invoke-direct {p0}, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parentCanSetImage()Z
move-result v0
if-eqz v0, :cond_e
invoke-direct {p0, p1}, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->isValidRequest(Lcom/bumptech/glide/request/Request;)Z
move-result p1
if-eqz p1, :cond_e
const/4 p1, 0x1
goto :goto_f
:cond_e
const/4 p1, 0x0
:goto_f
return p1
.end method
.method public clear()V
.registers 2
.line 35
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->clear()V
.line 38
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isRunning()Z
move-result v0
if-eqz v0, :cond_12
.line 39
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->clear()V
:cond_12
return-void
.end method
.method public isAnyResourceSet()Z
.registers 2
.line 116
invoke-direct {p0}, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parentIsAnyResourceSet()Z
move-result v0
if-nez v0, :cond_f
invoke-virtual {p0}, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->isResourceSet()Z
move-result v0
if-eqz v0, :cond_d
goto :goto_f
:cond_d
const/4 v0, 0x0
goto :goto_10
:cond_f
:goto_f
const/4 v0, 0x1
:goto_10
return v0
.end method
.method public isCleared()Z
.registers 2
.line 60
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isFailed()Z
move-result v0
if-eqz v0, :cond_b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
goto :goto_d
:cond_b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
:goto_d
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isCleared()Z
move-result v0
return v0
.end method
.method public isComplete()Z
.registers 2
.line 50
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isFailed()Z
move-result v0
if-eqz v0, :cond_b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
goto :goto_d
:cond_b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
:goto_d
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isComplete()Z
move-result v0
return v0
.end method
.method public isEquivalentTo(Lcom/bumptech/glide/request/Request;)Z
.registers 5
.line 76
instance-of v0, p1, Lcom/bumptech/glide/request/ErrorRequestCoordinator;
const/4 v1, 0x0
if-eqz v0, :cond_1c
.line 77
check-cast p1, Lcom/bumptech/glide/request/ErrorRequestCoordinator;
.line 78
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
iget-object v2, p1, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0, v2}, Lcom/bumptech/glide/request/Request;->isEquivalentTo(Lcom/bumptech/glide/request/Request;)Z
move-result v0
if-eqz v0, :cond_1c
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
iget-object p1, p1, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-interface {v0, p1}, Lcom/bumptech/glide/request/Request;->isEquivalentTo(Lcom/bumptech/glide/request/Request;)Z
move-result p1
if-eqz p1, :cond_1c
const/4 v1, 0x1
:cond_1c
return v1
.end method
.method public isFailed()Z
.registers 2
.line 65
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isFailed()Z
move-result v0
if-eqz v0, :cond_12
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isFailed()Z
move-result v0
if-eqz v0, :cond_12
const/4 v0, 0x1
goto :goto_13
:cond_12
const/4 v0, 0x0
:goto_13
return v0
.end method
.method public isResourceSet()Z
.registers 2
.line 55
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isFailed()Z
move-result v0
if-eqz v0, :cond_b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
goto :goto_d
:cond_b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
:goto_d
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isResourceSet()Z
move-result v0
return v0
.end method
.method public isRunning()Z
.registers 2
.line 45
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isFailed()Z
move-result v0
if-eqz v0, :cond_b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
goto :goto_d
:cond_b
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
:goto_d
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->isRunning()Z
move-result v0
return v0
.end method
.method public onRequestFailed(Lcom/bumptech/glide/request/Request;)V
.registers 3
.line 132
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_16
.line 133
iget-object p1, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-interface {p1}, Lcom/bumptech/glide/request/Request;->isRunning()Z
move-result p1
if-nez p1, :cond_15
.line 134
iget-object p1, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-interface {p1}, Lcom/bumptech/glide/request/Request;->begin()V
:cond_15
return-void
.line 139
:cond_16
iget-object p1, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parent:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz p1, :cond_1d
.line 140
invoke-interface {p1, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->onRequestFailed(Lcom/bumptech/glide/request/Request;)V
:cond_1d
return-void
.end method
.method public onRequestSuccess(Lcom/bumptech/glide/request/Request;)V
.registers 2
.line 125
iget-object p1, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->parent:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz p1, :cond_7
.line 126
invoke-interface {p1, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->onRequestSuccess(Lcom/bumptech/glide/request/Request;)V
:cond_7
return-void
.end method
.method public recycle()V
.registers 2
.line 70
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->recycle()V
.line 71
iget-object v0, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
invoke-interface {v0}, Lcom/bumptech/glide/request/Request;->recycle()V
return-void
.end method
.method public setRequests(Lcom/bumptech/glide/request/Request;Lcom/bumptech/glide/request/Request;)V
.registers 3
.line 22
iput-object p1, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->primary:Lcom/bumptech/glide/request/Request;
.line 23
iput-object p2, p0, Lcom/bumptech/glide/request/ErrorRequestCoordinator;->error:Lcom/bumptech/glide/request/Request;
return-void
.end method