SingleRequest.smali
.class public final Lcom/bumptech/glide/request/SingleRequest;
.super Ljava/lang/Object;
.source "SingleRequest.java"
# interfaces
.implements Lcom/bumptech/glide/request/Request;
.implements Lcom/bumptech/glide/request/target/SizeReadyCallback;
.implements Lcom/bumptech/glide/request/ResourceCallback;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/request/SingleRequest$Status;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/bumptech/glide/request/Request;",
"Lcom/bumptech/glide/request/target/SizeReadyCallback;",
"Lcom/bumptech/glide/request/ResourceCallback;"
}
.end annotation
# static fields
.field private static final GLIDE_TAG:Ljava/lang/String; = "Glide"
.field private static final IS_VERBOSE_LOGGABLE:Z
.field private static final TAG:Ljava/lang/String; = "Request"
# instance fields
.field private final animationFactory:Lcom/bumptech/glide/request/transition/TransitionFactory;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/transition/TransitionFactory<",
"-TR;>;"
}
.end annotation
.end field
.field private final callbackExecutor:Ljava/util/concurrent/Executor;
.field private final context:Landroid/content/Context;
.field private volatile engine:Lcom/bumptech/glide/load/engine/Engine;
.field private errorDrawable:Landroid/graphics/drawable/Drawable;
.field private fallbackDrawable:Landroid/graphics/drawable/Drawable;
.field private final glideContext:Lcom/bumptech/glide/GlideContext;
.field private height:I
.field private isCallingCallbacks:Z
.field private loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus;
.field private final model:Ljava/lang/Object;
.field private final overrideHeight:I
.field private final overrideWidth:I
.field private placeholderDrawable:Landroid/graphics/drawable/Drawable;
.field private final priority:Lcom/bumptech/glide/Priority;
.field private final requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator;
.field private final requestListeners:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/bumptech/glide/request/RequestListener<",
"TR;>;>;"
}
.end annotation
.end field
.field private final requestLock:Ljava/lang/Object;
.field private final requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/BaseRequestOptions<",
"*>;"
}
.end annotation
.end field
.field private requestOrigin:Ljava/lang/RuntimeException;
.field private resource:Lcom/bumptech/glide/load/engine/Resource;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/load/engine/Resource<",
"TR;>;"
}
.end annotation
.end field
.field private startTime:J
.field private final stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
.field private status:Lcom/bumptech/glide/request/SingleRequest$Status;
.field private final tag:Ljava/lang/String;
.field private final target:Lcom/bumptech/glide/request/target/Target;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/target/Target<",
"TR;>;"
}
.end annotation
.end field
.field private final targetListener:Lcom/bumptech/glide/request/RequestListener;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/RequestListener<",
"TR;>;"
}
.end annotation
.end field
.field private final transcodeClass:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"TR;>;"
}
.end annotation
.end field
.field private width:I
# direct methods
.method static constructor <clinit>()V
.registers 2
const-string v0, "Request"
const/4 v1, 0x2
.line 41
invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v0
sput-boolean v0, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z
return-void
.end method
.method private constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/GlideContext;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/request/BaseRequestOptions;IILcom/bumptech/glide/Priority;Lcom/bumptech/glide/request/target/Target;Lcom/bumptech/glide/request/RequestListener;Ljava/util/List;Lcom/bumptech/glide/request/RequestCoordinator;Lcom/bumptech/glide/load/engine/Engine;Lcom/bumptech/glide/request/transition/TransitionFactory;Ljava/util/concurrent/Executor;)V
.registers 20
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/bumptech/glide/GlideContext;",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
"Ljava/lang/Class<",
"TR;>;",
"Lcom/bumptech/glide/request/BaseRequestOptions<",
"*>;II",
"Lcom/bumptech/glide/Priority;",
"Lcom/bumptech/glide/request/target/Target<",
"TR;>;",
"Lcom/bumptech/glide/request/RequestListener<",
"TR;>;",
"Ljava/util/List<",
"Lcom/bumptech/glide/request/RequestListener<",
"TR;>;>;",
"Lcom/bumptech/glide/request/RequestCoordinator;",
"Lcom/bumptech/glide/load/engine/Engine;",
"Lcom/bumptech/glide/request/transition/TransitionFactory<",
"-TR;>;",
"Ljava/util/concurrent/Executor;",
")V"
}
.end annotation
move-object v0, p0
.line 188
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 59
sget-boolean v1, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z
if-eqz v1, :cond_11
invoke-super {p0}, Ljava/lang/Object;->hashCode()I
move-result v1
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
goto :goto_12
:cond_11
const/4 v1, 0x0
:goto_12
iput-object v1, v0, Lcom/bumptech/glide/request/SingleRequest;->tag:Ljava/lang/String;
.line 61
invoke-static {}, Lcom/bumptech/glide/util/pool/StateVerifier;->newInstance()Lcom/bumptech/glide/util/pool/StateVerifier;
move-result-object v1
iput-object v1, v0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
move-object v1, p3
.line 189
iput-object v1, v0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
move-object v1, p1
.line 190
iput-object v1, v0, Lcom/bumptech/glide/request/SingleRequest;->context:Landroid/content/Context;
move-object v1, p2
.line 191
iput-object v1, v0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/GlideContext;
move-object v2, p4
.line 192
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
move-object v2, p5
.line 193
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
move-object v2, p6
.line 194
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
move v2, p7
.line 195
iput v2, v0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
move v2, p8
.line 196
iput v2, v0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
move-object v2, p9
.line 197
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/Priority;
move-object v2, p10
.line 198
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
move-object v2, p11
.line 199
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/RequestListener;
move-object v2, p12
.line 200
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
move-object/from16 v2, p13
.line 201
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator;
move-object/from16 v2, p14
.line 202
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/Engine;
move-object/from16 v2, p15
.line 203
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->animationFactory:Lcom/bumptech/glide/request/transition/TransitionFactory;
move-object/from16 v2, p16
.line 204
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->callbackExecutor:Ljava/util/concurrent/Executor;
.line 205
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->PENDING:Lcom/bumptech/glide/request/SingleRequest$Status;
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
.line 207
iget-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestOrigin:Ljava/lang/RuntimeException;
if-nez v2, :cond_6b
invoke-virtual {p2}, Lcom/bumptech/glide/GlideContext;->getExperiments()Lcom/bumptech/glide/GlideExperiments;
move-result-object v1
const-class v2, Lcom/bumptech/glide/GlideBuilder$LogRequestOrigins;
invoke-virtual {v1, v2}, Lcom/bumptech/glide/GlideExperiments;->isEnabled(Ljava/lang/Class;)Z
move-result v1
if-eqz v1, :cond_6b
.line 208
new-instance v1, Ljava/lang/RuntimeException;
const-string v2, "Glide request origin trace"
invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
iput-object v1, v0, Lcom/bumptech/glide/request/SingleRequest;->requestOrigin:Ljava/lang/RuntimeException;
:cond_6b
return-void
.end method
.method private assertNotCallingCallbacks()V
.registers 3
.line 288
iget-boolean v0, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
if-nez v0, :cond_5
return-void
.line 289
:cond_5
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "You can\'t start or clear loads in RequestListener or Target callbacks. If you\'re trying to start a fallback request when a load fails, use RequestBuilder#error(RequestBuilder). Otherwise consider posting your into() or clear() calls to the main thread using a Handler instead."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private canNotifyCleared()Z
.registers 2
.line 495
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator: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 canNotifyStatusChanged()Z
.registers 2
.line 500
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator: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 canSetResource()Z
.registers 2
.line 490
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator: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 cancel()V
.registers 2
.line 276
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V
.line 277
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V
.line 278
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/target/Target;->removeCallback(Lcom/bumptech/glide/request/target/SizeReadyCallback;)V
.line 279
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus;
if-eqz v0, :cond_17
.line 280
invoke-virtual {v0}, Lcom/bumptech/glide/load/engine/Engine$LoadStatus;->cancel()V
const/4 v0, 0x0
.line 281
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus;
:cond_17
return-void
.end method
.method private getErrorDrawable()Landroid/graphics/drawable/Drawable;
.registers 2
.line 371
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->errorDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_22
.line 372
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getErrorPlaceholder()Landroid/graphics/drawable/Drawable;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->errorDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_22
.line 373
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getErrorId()I
move-result v0
if-lez v0, :cond_22
.line 374
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getErrorId()I
move-result v0
invoke-direct {p0, v0}, Lcom/bumptech/glide/request/SingleRequest;->loadDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->errorDrawable:Landroid/graphics/drawable/Drawable;
.line 377
:cond_22
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->errorDrawable:Landroid/graphics/drawable/Drawable;
return-object v0
.end method
.method private getFallbackDrawable()Landroid/graphics/drawable/Drawable;
.registers 2
.line 393
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->fallbackDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_22
.line 394
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getFallbackDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->fallbackDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_22
.line 395
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getFallbackId()I
move-result v0
if-lez v0, :cond_22
.line 396
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getFallbackId()I
move-result v0
invoke-direct {p0, v0}, Lcom/bumptech/glide/request/SingleRequest;->loadDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->fallbackDrawable:Landroid/graphics/drawable/Drawable;
.line 399
:cond_22
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->fallbackDrawable:Landroid/graphics/drawable/Drawable;
return-object v0
.end method
.method private getPlaceholderDrawable()Landroid/graphics/drawable/Drawable;
.registers 2
.line 382
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_22
.line 383
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getPlaceholderDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_22
.line 384
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getPlaceholderId()I
move-result v0
if-lez v0, :cond_22
.line 385
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getPlaceholderId()I
move-result v0
invoke-direct {p0, v0}, Lcom/bumptech/glide/request/SingleRequest;->loadDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable;
.line 388
:cond_22
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable;
return-object v0
.end method
.method private isFirstReadyResource()Z
.registers 2
.line 505
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_11
invoke-interface {v0}, Lcom/bumptech/glide/request/RequestCoordinator;->getRoot()Lcom/bumptech/glide/request/RequestCoordinator;
move-result-object v0
invoke-interface {v0}, Lcom/bumptech/glide/request/RequestCoordinator;->isAnyResourceSet()Z
move-result v0
if-nez v0, :cond_f
goto :goto_11
:cond_f
const/4 v0, 0x0
goto :goto_12
:cond_11
:goto_11
const/4 v0, 0x1
:goto_12
return v0
.end method
.method private loadDrawable(I)Landroid/graphics/drawable/Drawable;
.registers 4
.line 405
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v0
if-eqz v0, :cond_f
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v0
goto :goto_15
:cond_f
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->context:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v0
.line 406
:goto_15
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/GlideContext;
invoke-static {v1, p1, v0}, Lcom/bumptech/glide/load/resource/drawable/DrawableDecoderCompat;->getDrawable(Landroid/content/Context;ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
move-result-object p1
return-object p1
.end method
.method private logV(Ljava/lang/String;)V
.registers 3
.line 758
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, " this: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->tag:Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "Request"
invoke-static {v0, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
return-void
.end method
.method private static maybeApplySizeMultiplier(IF)I
.registers 3
const/high16 v0, -0x80000000
if-ne p0, v0, :cond_5
goto :goto_b
:cond_5
int-to-float p0, p0
mul-float/2addr p1, p0
.line 485
invoke-static {p1}, Ljava/lang/Math;->round(F)I
move-result p0
:goto_b
return p0
.end method
.method private notifyLoadFailed()V
.registers 2
.line 517
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_7
.line 518
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->onRequestFailed(Lcom/bumptech/glide/request/Request;)V
:cond_7
return-void
.end method
.method private notifyLoadSuccess()V
.registers 2
.line 510
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator;
if-eqz v0, :cond_7
.line 511
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/RequestCoordinator;->onRequestSuccess(Lcom/bumptech/glide/request/Request;)V
:cond_7
return-void
.end method
.method public static obtain(Landroid/content/Context;Lcom/bumptech/glide/GlideContext;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/request/BaseRequestOptions;IILcom/bumptech/glide/Priority;Lcom/bumptech/glide/request/target/Target;Lcom/bumptech/glide/request/RequestListener;Ljava/util/List;Lcom/bumptech/glide/request/RequestCoordinator;Lcom/bumptech/glide/load/engine/Engine;Lcom/bumptech/glide/request/transition/TransitionFactory;Ljava/util/concurrent/Executor;)Lcom/bumptech/glide/request/SingleRequest;
.registers 34
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">(",
"Landroid/content/Context;",
"Lcom/bumptech/glide/GlideContext;",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
"Ljava/lang/Class<",
"TR;>;",
"Lcom/bumptech/glide/request/BaseRequestOptions<",
"*>;II",
"Lcom/bumptech/glide/Priority;",
"Lcom/bumptech/glide/request/target/Target<",
"TR;>;",
"Lcom/bumptech/glide/request/RequestListener<",
"TR;>;",
"Ljava/util/List<",
"Lcom/bumptech/glide/request/RequestListener<",
"TR;>;>;",
"Lcom/bumptech/glide/request/RequestCoordinator;",
"Lcom/bumptech/glide/load/engine/Engine;",
"Lcom/bumptech/glide/request/transition/TransitionFactory<",
"-TR;>;",
"Ljava/util/concurrent/Executor;",
")",
"Lcom/bumptech/glide/request/SingleRequest<",
"TR;>;"
}
.end annotation
move-object/from16 v1, p0
move-object/from16 v2, p1
move-object/from16 v3, p2
move-object/from16 v4, p3
move-object/from16 v5, p4
move-object/from16 v6, p5
move/from16 v7, p6
move/from16 v8, p7
move-object/from16 v9, p8
move-object/from16 v10, p9
move-object/from16 v11, p10
move-object/from16 v12, p11
move-object/from16 v13, p12
move-object/from16 v14, p13
move-object/from16 v15, p14
move-object/from16 v16, p15
.line 151
new-instance v17, Lcom/bumptech/glide/request/SingleRequest;
move-object/from16 v0, v17
invoke-direct/range {v0 .. v16}, Lcom/bumptech/glide/request/SingleRequest;-><init>(Landroid/content/Context;Lcom/bumptech/glide/GlideContext;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/request/BaseRequestOptions;IILcom/bumptech/glide/Priority;Lcom/bumptech/glide/request/target/Target;Lcom/bumptech/glide/request/RequestListener;Ljava/util/List;Lcom/bumptech/glide/request/RequestCoordinator;Lcom/bumptech/glide/load/engine/Engine;Lcom/bumptech/glide/request/transition/TransitionFactory;Ljava/util/concurrent/Executor;)V
return-object v17
.end method
.method private onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;I)V
.registers 11
.line 661
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V
.line 662
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 663
:try_start_8
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOrigin:Ljava/lang/RuntimeException;
invoke-virtual {p1, v1}, Lcom/bumptech/glide/load/engine/GlideException;->setOrigin(Ljava/lang/Exception;)V
.line 664
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/GlideContext;
invoke-virtual {v1}, Lcom/bumptech/glide/GlideContext;->getLogLevel()I
move-result v1
if-gt v1, p2, :cond_55
const-string p2, "Glide"
.line 666
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Load failed for "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, " with size ["
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget v3, p0, Lcom/bumptech/glide/request/SingleRequest;->width:I
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, "x"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget v3, p0, Lcom/bumptech/glide/request/SingleRequest;->height:I
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, "]"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {p2, v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
const/4 p2, 0x4
if-gt v1, p2, :cond_55
const-string p2, "Glide"
.line 669
invoke-virtual {p1, p2}, Lcom/bumptech/glide/load/engine/GlideException;->logRootCauses(Ljava/lang/String;)V
:cond_55
const/4 p2, 0x0
.line 673
iput-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus;
.line 674
sget-object p2, Lcom/bumptech/glide/request/SingleRequest$Status;->FAILED:Lcom/bumptech/glide/request/SingleRequest$Status;
iput-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
const/4 p2, 0x1
.line 676
iput-boolean p2, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
:try_end_5f
.catchall {:try_start_8 .. :try_end_5f} :catchall_aa
const/4 v1, 0x0
.line 680
:try_start_60
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
if-eqz v2, :cond_83
.line 681
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
move v3, v1
:goto_69
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_84
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/bumptech/glide/request/RequestListener;
.line 682
iget-object v5, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
iget-object v6, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
.line 683
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z
move-result v7
invoke-interface {v4, p1, v5, v6, v7}, Lcom/bumptech/glide/request/RequestListener;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;Ljava/lang/Object;Lcom/bumptech/glide/request/target/Target;Z)Z
move-result v4
or-int/2addr v3, v4
goto :goto_69
:cond_83
move v3, v1
.line 686
:cond_84
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/RequestListener;
if-eqz v2, :cond_97
iget-object v4, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
iget-object v5, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
.line 688
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z
move-result v6
invoke-interface {v2, p1, v4, v5, v6}, Lcom/bumptech/glide/request/RequestListener;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;Ljava/lang/Object;Lcom/bumptech/glide/request/target/Target;Z)Z
move-result p1
if-eqz p1, :cond_97
goto :goto_98
:cond_97
move p2, v1
:goto_98
or-int p1, v3, p2
if-nez p1, :cond_9f
.line 691
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->setErrorPlaceholder()V
:try_end_9f
.catchall {:try_start_60 .. :try_end_9f} :catchall_a6
.line 694
:cond_9f
:try_start_9f
iput-boolean v1, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
.line 697
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->notifyLoadFailed()V
.line 698
monitor-exit v0
return-void
:catchall_a6
move-exception p1
.line 694
iput-boolean v1, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
throw p1
:catchall_aa
move-exception p1
.line 698
monitor-exit v0
:try_end_ac
.catchall {:try_start_9f .. :try_end_ac} :catchall_aa
throw p1
.end method
.method private onResourceReady(Lcom/bumptech/glide/load/engine/Resource;Ljava/lang/Object;Lcom/bumptech/glide/load/DataSource;Z)V
.registers 14
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/Resource<",
"TR;>;TR;",
"Lcom/bumptech/glide/load/DataSource;",
"Z)V"
}
.end annotation
.line 602
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z
move-result p4
.line 603
sget-object v0, Lcom/bumptech/glide/request/SingleRequest$Status;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$Status;
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
.line 604
iput-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource;
.line 606
iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/GlideContext;
invoke-virtual {p1}, Lcom/bumptech/glide/GlideContext;->getLogLevel()I
move-result p1
const/4 v0, 0x3
if-gt p1, v0, :cond_77
.line 607
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Finished loading "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
.line 610
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, " from "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, " for "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, " with size ["
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget v0, p0, Lcom/bumptech/glide/request/SingleRequest;->width:I
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, "x"
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget v0, p0, Lcom/bumptech/glide/request/SingleRequest;->height:I
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, "] in "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
iget-wide v0, p0, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
.line 620
invoke-static {v0, v1}, Lcom/bumptech/glide/util/LogTime;->getElapsedMillis(J)D
move-result-wide v0
invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, " ms"
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "Glide"
.line 607
invoke-static {v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_77
const/4 p1, 0x1
.line 624
iput-boolean p1, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
const/4 v6, 0x0
.line 627
:try_start_7b
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
if-eqz v0, :cond_9d
.line 628
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v7
move v8, v6
:goto_84
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_9e
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/RequestListener;
.line 629
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
iget-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
move-object v1, p2
move-object v4, p3
move v5, p4
.line 630
invoke-interface/range {v0 .. v5}, Lcom/bumptech/glide/request/RequestListener;->onResourceReady(Ljava/lang/Object;Ljava/lang/Object;Lcom/bumptech/glide/request/target/Target;Lcom/bumptech/glide/load/DataSource;Z)Z
move-result v0
or-int/2addr v8, v0
goto :goto_84
:cond_9d
move v8, v6
.line 633
:cond_9e
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/RequestListener;
if-eqz v0, :cond_b0
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
iget-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
move-object v1, p2
move-object v4, p3
move v5, p4
.line 635
invoke-interface/range {v0 .. v5}, Lcom/bumptech/glide/request/RequestListener;->onResourceReady(Ljava/lang/Object;Ljava/lang/Object;Lcom/bumptech/glide/request/target/Target;Lcom/bumptech/glide/load/DataSource;Z)Z
move-result v0
if-eqz v0, :cond_b0
goto :goto_b1
:cond_b0
move p1, v6
:goto_b1
or-int/2addr p1, v8
if-nez p1, :cond_bf
.line 638
iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->animationFactory:Lcom/bumptech/glide/request/transition/TransitionFactory;
invoke-interface {p1, p3, p4}, Lcom/bumptech/glide/request/transition/TransitionFactory;->build(Lcom/bumptech/glide/load/DataSource;Z)Lcom/bumptech/glide/request/transition/Transition;
move-result-object p1
.line 639
iget-object p3, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
invoke-interface {p3, p2, p1}, Lcom/bumptech/glide/request/target/Target;->onResourceReady(Ljava/lang/Object;Lcom/bumptech/glide/request/transition/Transition;)V
:try_end_bf
.catchall {:try_start_7b .. :try_end_bf} :catchall_c5
.line 642
:cond_bf
iput-boolean v6, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
.line 645
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->notifyLoadSuccess()V
return-void
:catchall_c5
move-exception p1
.line 642
iput-boolean v6, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
throw p1
.end method
.method private setErrorPlaceholder()V
.registers 3
.line 411
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canNotifyStatusChanged()Z
move-result v0
if-nez v0, :cond_7
return-void
:cond_7
const/4 v0, 0x0
.line 416
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
if-nez v1, :cond_10
.line 417
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getFallbackDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
:cond_10
if-nez v0, :cond_16
.line 421
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getErrorDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
:cond_16
if-nez v0, :cond_1c
.line 425
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getPlaceholderDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
.line 427
:cond_1c
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
invoke-interface {v1, v0}, Lcom/bumptech/glide/request/target/Target;->onLoadFailed(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
# virtual methods
.method public begin()V
.registers 5
.line 214
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 215
:try_start_3
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V
.line 216
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
invoke-virtual {v1}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V
.line 217
invoke-static {}, Lcom/bumptech/glide/util/LogTime;->getLogTime()J
move-result-wide v1
iput-wide v1, p0, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
.line 218
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
if-nez v1, :cond_3c
.line 219
iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
iget v2, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
invoke-static {v1, v2}, Lcom/bumptech/glide/util/Util;->isValidDimensions(II)Z
move-result v1
if-eqz v1, :cond_27
.line 220
iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->width:I
.line 221
iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->height:I
.line 225
:cond_27
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getFallbackDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v1
if-nez v1, :cond_2f
const/4 v1, 0x5
goto :goto_30
:cond_2f
const/4 v1, 0x3
.line 226
:goto_30
new-instance v2, Lcom/bumptech/glide/load/engine/GlideException;
const-string v3, "Received null model"
invoke-direct {v2, v3}, Lcom/bumptech/glide/load/engine/GlideException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v2, v1}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;I)V
.line 227
monitor-exit v0
return-void
.line 230
:cond_3c
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$Status;
if-eq v1, v2, :cond_aa
.line 240
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$Status;
if-ne v1, v2, :cond_52
.line 241
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource;
sget-object v2, Lcom/bumptech/glide/load/DataSource;->MEMORY_CACHE:Lcom/bumptech/glide/load/DataSource;
const/4 v3, 0x0
invoke-virtual {p0, v1, v2, v3}, Lcom/bumptech/glide/request/SingleRequest;->onResourceReady(Lcom/bumptech/glide/load/engine/Resource;Lcom/bumptech/glide/load/DataSource;Z)V
.line 243
monitor-exit v0
return-void
.line 249
:cond_52
sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$Status;
iput-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
.line 250
iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
iget v2, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
invoke-static {v1, v2}, Lcom/bumptech/glide/util/Util;->isValidDimensions(II)Z
move-result v1
if-eqz v1, :cond_68
.line 251
iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
iget v2, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
invoke-virtual {p0, v1, v2}, Lcom/bumptech/glide/request/SingleRequest;->onSizeReady(II)V
goto :goto_6d
.line 253
:cond_68
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
invoke-interface {v1, p0}, Lcom/bumptech/glide/request/target/Target;->getSize(Lcom/bumptech/glide/request/target/SizeReadyCallback;)V
.line 256
:goto_6d
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$Status;
if-eq v1, v2, :cond_79
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$Status;
if-ne v1, v2, :cond_88
.line 257
:cond_79
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canNotifyStatusChanged()Z
move-result v1
if-eqz v1, :cond_88
.line 258
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getPlaceholderDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v2
invoke-interface {v1, v2}, Lcom/bumptech/glide/request/target/Target;->onLoadStarted(Landroid/graphics/drawable/Drawable;)V
.line 260
:cond_88
sget-boolean v1, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z
if-eqz v1, :cond_a8
.line 261
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "finished run method in "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v2, p0, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
invoke-static {v2, v3}, Lcom/bumptech/glide/util/LogTime;->getElapsedMillis(J)D
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {p0, v1}, Lcom/bumptech/glide/request/SingleRequest;->logV(Ljava/lang/String;)V
.line 263
:cond_a8
monitor-exit v0
return-void
.line 231
:cond_aa
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "Cannot restart a running request"
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
:catchall_b2
move-exception v1
.line 263
monitor-exit v0
:try_end_b4
.catchall {:try_start_3 .. :try_end_b4} :catchall_b2
throw v1
.end method
.method public clear()V
.registers 5
.line 308
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 309
:try_start_3
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V
.line 310
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
invoke-virtual {v1}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V
.line 311
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->CLEARED:Lcom/bumptech/glide/request/SingleRequest$Status;
if-ne v1, v2, :cond_13
.line 312
monitor-exit v0
return-void
.line 314
:cond_13
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->cancel()V
.line 316
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource;
const/4 v2, 0x0
if-eqz v1, :cond_1e
.line 318
iput-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource;
goto :goto_1f
:cond_1e
move-object v1, v2
.line 320
:goto_1f
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canNotifyCleared()Z
move-result v2
if-eqz v2, :cond_2e
.line 321
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target;
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getPlaceholderDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-interface {v2, v3}, Lcom/bumptech/glide/request/target/Target;->onLoadCleared(Landroid/graphics/drawable/Drawable;)V
.line 324
:cond_2e
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->CLEARED:Lcom/bumptech/glide/request/SingleRequest$Status;
iput-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
.line 325
monitor-exit v0
:try_end_33
.catchall {:try_start_3 .. :try_end_33} :catchall_3b
if-eqz v1, :cond_3a
.line 328
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/Engine;
invoke-virtual {v0, v1}, Lcom/bumptech/glide/load/engine/Engine;->release(Lcom/bumptech/glide/load/engine/Resource;)V
:cond_3a
return-void
:catchall_3b
move-exception v1
.line 325
:try_start_3c
monitor-exit v0
:try_end_3d
.catchall {:try_start_3c .. :try_end_3d} :catchall_3b
throw v1
.end method
.method public getLock()Ljava/lang/Object;
.registers 2
.line 656
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V
.line 657
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
return-object v0
.end method
.method public isAnyResourceSet()Z
.registers 4
.line 364
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 365
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$Status;
if-ne v1, v2, :cond_b
const/4 v1, 0x1
goto :goto_c
:cond_b
const/4 v1, 0x0
:goto_c
monitor-exit v0
return v1
:catchall_e
move-exception v1
.line 366
monitor-exit v0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_e
throw v1
.end method
.method public isCleared()Z
.registers 4
.line 357
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 358
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->CLEARED:Lcom/bumptech/glide/request/SingleRequest$Status;
if-ne v1, v2, :cond_b
const/4 v1, 0x1
goto :goto_c
:cond_b
const/4 v1, 0x0
:goto_c
monitor-exit v0
return v1
:catchall_e
move-exception v1
.line 359
monitor-exit v0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_e
throw v1
.end method
.method public isComplete()Z
.registers 4
.line 350
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 351
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$Status;
if-ne v1, v2, :cond_b
const/4 v1, 0x1
goto :goto_c
:cond_b
const/4 v1, 0x0
:goto_c
monitor-exit v0
return v1
:catchall_e
move-exception v1
.line 352
monitor-exit v0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_e
throw v1
.end method
.method public isEquivalentTo(Lcom/bumptech/glide/request/Request;)Z
.registers 18
move-object/from16 v1, p0
move-object/from16 v0, p1
.line 703
instance-of v2, v0, Lcom/bumptech/glide/request/SingleRequest;
const/4 v3, 0x0
if-nez v2, :cond_a
return v3
.line 714
:cond_a
iget-object v2, v1, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v2
.line 715
:try_start_d
iget v4, v1, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
.line 716
iget v5, v1, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
.line 717
iget-object v6, v1, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
.line 718
iget-object v7, v1, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
.line 719
iget-object v8, v1, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 720
iget-object v9, v1, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/Priority;
.line 721
iget-object v10, v1, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
if-eqz v10, :cond_22
invoke-interface {v10}, Ljava/util/List;->size()I
move-result v10
goto :goto_23
:cond_22
move v10, v3
.line 722
:goto_23
monitor-exit v2
:try_end_24
.catchall {:try_start_d .. :try_end_24} :catchall_61
.line 724
check-cast v0, Lcom/bumptech/glide/request/SingleRequest;
.line 732
iget-object v11, v0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v11
.line 733
:try_start_29
iget v2, v0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
.line 734
iget v12, v0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
.line 735
iget-object v13, v0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
.line 736
iget-object v14, v0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
.line 737
iget-object v15, v0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 738
iget-object v3, v0, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/Priority;
.line 739
iget-object v0, v0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
if-eqz v0, :cond_3e
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
goto :goto_3f
:cond_3e
const/4 v0, 0x0
.line 740
:goto_3f
monitor-exit v11
:try_end_40
.catchall {:try_start_29 .. :try_end_40} :catchall_5e
if-ne v4, v2, :cond_5c
if-ne v5, v12, :cond_5c
.line 747
invoke-static {v6, v13}, Lcom/bumptech/glide/util/Util;->bothModelsNullEquivalentOrEquals(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_5c
.line 748
invoke-virtual {v7, v14}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_5c
.line 749
invoke-virtual {v8, v15}, Lcom/bumptech/glide/request/BaseRequestOptions;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_5c
if-ne v9, v3, :cond_5c
if-ne v10, v0, :cond_5c
const/4 v3, 0x1
goto :goto_5d
:cond_5c
const/4 v3, 0x0
:goto_5d
return v3
:catchall_5e
move-exception v0
.line 740
:try_start_5f
monitor-exit v11
:try_end_60
.catchall {:try_start_5f .. :try_end_60} :catchall_5e
throw v0
:catchall_61
move-exception v0
.line 722
:try_start_62
monitor-exit v2
:try_end_63
.catchall {:try_start_62 .. :try_end_63} :catchall_61
throw v0
.end method
.method public isRunning()Z
.registers 4
.line 343
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 344
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$Status;
if-eq v1, v2, :cond_12
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$Status;
if-ne v1, v2, :cond_10
goto :goto_12
:cond_10
const/4 v1, 0x0
goto :goto_13
:cond_12
:goto_12
const/4 v1, 0x1
:goto_13
monitor-exit v0
return v1
:catchall_15
move-exception v1
.line 345
monitor-exit v0
:try_end_17
.catchall {:try_start_3 .. :try_end_17} :catchall_15
throw v1
.end method
.method public onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;)V
.registers 3
const/4 v0, 0x5
.line 651
invoke-direct {p0, p1, v0}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;I)V
return-void
.end method
.method public onResourceReady(Lcom/bumptech/glide/load/engine/Resource;Lcom/bumptech/glide/load/DataSource;Z)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/Resource<",
"*>;",
"Lcom/bumptech/glide/load/DataSource;",
"Z)V"
}
.end annotation
.line 527
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V
const/4 v0, 0x0
.line 530
:try_start_6
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v1
:try_end_9
.catchall {:try_start_6 .. :try_end_9} :catchall_c6
.line 531
:try_start_9
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus;
if-nez p1, :cond_32
.line 533
new-instance p1, Lcom/bumptech/glide/load/engine/GlideException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string p3, "Expected to receive a Resource<R> with an object of "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
iget-object p3, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p2
const-string p3, " inside, but instead got null."
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcom/bumptech/glide/load/engine/GlideException;-><init>(Ljava/lang/String;)V
.line 539
invoke-virtual {p0, p1}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;)V
.line 540
monitor-exit v1
return-void
.line 543
:cond_32
invoke-interface {p1}, Lcom/bumptech/glide/load/engine/Resource;->get()Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_5f
.line 544
iget-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
move-result v3
if-nez v3, :cond_45
goto :goto_5f
.line 570
:cond_45
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canSetResource()Z
move-result v3
:try_end_49
.catchall {:try_start_9 .. :try_end_49} :catchall_c3
if-nez v3, :cond_5a
.line 572
:try_start_4b
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource;
.line 574
sget-object p2, Lcom/bumptech/glide/request/SingleRequest$Status;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$Status;
iput-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
.line 575
monitor-exit v1
:try_end_52
.catchall {:try_start_4b .. :try_end_52} :catchall_bf
if-eqz p1, :cond_59
.line 583
iget-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/Engine;
invoke-virtual {p2, p1}, Lcom/bumptech/glide/load/engine/Engine;->release(Lcom/bumptech/glide/load/engine/Resource;)V
:cond_59
return-void
.line 578
:cond_5a
:try_start_5a
invoke-direct {p0, p1, v2, p2, p3}, Lcom/bumptech/glide/request/SingleRequest;->onResourceReady(Lcom/bumptech/glide/load/engine/Resource;Ljava/lang/Object;Lcom/bumptech/glide/load/DataSource;Z)V
.line 580
monitor-exit v1
:try_end_5e
.catchall {:try_start_5a .. :try_end_5e} :catchall_c3
return-void
.line 546
:cond_5f
:goto_5f
:try_start_5f
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource;
.line 547
new-instance p2, Lcom/bumptech/glide/load/engine/GlideException;
new-instance p3, Ljava/lang/StringBuilder;
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Expected to receive an object of "
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p3
const-string v0, " but instead got "
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
if-eqz v2, :cond_81
.line 553
invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
goto :goto_83
:cond_81
const-string v0, ""
:goto_83
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p3
const-string v0, "{"
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
invoke-virtual {p3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p3
const-string v0, "} inside Resource{"
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p3
const-string v0, "}."
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
if-eqz v2, :cond_a6
const-string v0, ""
goto :goto_a8
:cond_a6
const-string v0, " To indicate failure return a null Resource object, rather than a Resource object containing null data."
.line 563
:goto_a8
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p3
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p3
invoke-direct {p2, p3}, Lcom/bumptech/glide/load/engine/GlideException;-><init>(Ljava/lang/String;)V
.line 566
invoke-virtual {p0, p2}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;)V
.line 567
monitor-exit v1
:try_end_b7
.catchall {:try_start_5f .. :try_end_b7} :catchall_bf
if-eqz p1, :cond_be
.line 583
iget-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/Engine;
invoke-virtual {p2, p1}, Lcom/bumptech/glide/load/engine/Engine;->release(Lcom/bumptech/glide/load/engine/Resource;)V
:cond_be
return-void
:catchall_bf
move-exception p2
move-object v0, p1
move-object p1, p2
goto :goto_c4
:catchall_c3
move-exception p1
.line 580
:goto_c4
:try_start_c4
monitor-exit v1
:try_end_c5
.catchall {:try_start_c4 .. :try_end_c5} :catchall_c3
:try_start_c5
throw p1
:try_end_c6
.catchall {:try_start_c5 .. :try_end_c6} :catchall_c6
:catchall_c6
move-exception p1
if-eqz v0, :cond_ce
.line 583
iget-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/Engine;
invoke-virtual {p2, v0}, Lcom/bumptech/glide/load/engine/Engine;->release(Lcom/bumptech/glide/load/engine/Resource;)V
:cond_ce
throw p1
.end method
.method public onSizeReady(II)V
.registers 26
move-object/from16 v15, p0
.line 433
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V
.line 434
iget-object v14, v15, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v14
.line 435
:try_start_a
sget-boolean v0, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z
if-eqz v0, :cond_2a
.line 436
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Got onSizeReady in "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v2, v15, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
invoke-static {v2, v3}, Lcom/bumptech/glide/util/LogTime;->getElapsedMillis(J)D
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v15, v1}, Lcom/bumptech/glide/request/SingleRequest;->logV(Ljava/lang/String;)V
.line 438
:cond_2a
iget-object v1, v15, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$Status;
if-eq v1, v2, :cond_32
.line 439
monitor-exit v14
return-void
.line 441
:cond_32
sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$Status;
iput-object v1, v15, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
.line 443
iget-object v1, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
invoke-virtual {v1}, Lcom/bumptech/glide/request/BaseRequestOptions;->getSizeMultiplier()F
move-result v1
move/from16 v2, p1
.line 444
invoke-static {v2, v1}, Lcom/bumptech/glide/request/SingleRequest;->maybeApplySizeMultiplier(IF)I
move-result v2
iput v2, v15, Lcom/bumptech/glide/request/SingleRequest;->width:I
move/from16 v2, p2
.line 445
invoke-static {v2, v1}, Lcom/bumptech/glide/request/SingleRequest;->maybeApplySizeMultiplier(IF)I
move-result v1
iput v1, v15, Lcom/bumptech/glide/request/SingleRequest;->height:I
if-eqz v0, :cond_6a
.line 448
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "finished setup for calling load in "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v2, v15, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
invoke-static {v2, v3}, Lcom/bumptech/glide/util/LogTime;->getElapsedMillis(J)D
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v15, v1}, Lcom/bumptech/glide/request/SingleRequest;->logV(Ljava/lang/String;)V
.line 450
:cond_6a
iget-object v1, v15, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/Engine;
iget-object v2, v15, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/GlideContext;
iget-object v3, v15, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
iget-object v4, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 454
invoke-virtual {v4}, Lcom/bumptech/glide/request/BaseRequestOptions;->getSignature()Lcom/bumptech/glide/load/Key;
move-result-object v4
iget v5, v15, Lcom/bumptech/glide/request/SingleRequest;->width:I
iget v6, v15, Lcom/bumptech/glide/request/SingleRequest;->height:I
iget-object v7, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 457
invoke-virtual {v7}, Lcom/bumptech/glide/request/BaseRequestOptions;->getResourceClass()Ljava/lang/Class;
move-result-object v7
iget-object v8, v15, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
iget-object v9, v15, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/Priority;
iget-object v10, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 460
invoke-virtual {v10}, Lcom/bumptech/glide/request/BaseRequestOptions;->getDiskCacheStrategy()Lcom/bumptech/glide/load/engine/DiskCacheStrategy;
move-result-object v10
iget-object v11, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 461
invoke-virtual {v11}, Lcom/bumptech/glide/request/BaseRequestOptions;->getTransformations()Ljava/util/Map;
move-result-object v11
iget-object v12, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 462
invoke-virtual {v12}, Lcom/bumptech/glide/request/BaseRequestOptions;->isTransformationRequired()Z
move-result v12
iget-object v13, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 463
invoke-virtual {v13}, Lcom/bumptech/glide/request/BaseRequestOptions;->isScaleOnlyOrNoTransform()Z
move-result v13
move/from16 v21, v0
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 464
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getOptions()Lcom/bumptech/glide/load/Options;
move-result-object v0
move-object/from16 p1, v0
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 465
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->isMemoryCacheable()Z
move-result v0
move/from16 p2, v0
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 466
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getUseUnlimitedSourceGeneratorsPool()Z
move-result v16
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 467
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getUseAnimationPool()Z
move-result v17
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions;
.line 468
invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->getOnlyRetrieveFromCache()Z
move-result v18
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->callbackExecutor:Ljava/util/concurrent/Executor;
:try_end_c2
.catchall {:try_start_a .. :try_end_c2} :catchall_101
move-object/from16 v22, v14
move-object/from16 v14, p1
move/from16 v15, p2
move-object/from16 v19, p0
move-object/from16 v20, v0
.line 451
:try_start_cc
invoke-virtual/range {v1 .. v20}, Lcom/bumptech/glide/load/engine/Engine;->load(Lcom/bumptech/glide/GlideContext;Ljava/lang/Object;Lcom/bumptech/glide/load/Key;IILjava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/Priority;Lcom/bumptech/glide/load/engine/DiskCacheStrategy;Ljava/util/Map;ZZLcom/bumptech/glide/load/Options;ZZZZLcom/bumptech/glide/request/ResourceCallback;Ljava/util/concurrent/Executor;)Lcom/bumptech/glide/load/engine/Engine$LoadStatus;
move-result-object v0
:try_end_d0
.catchall {:try_start_cc .. :try_end_d0} :catchall_fd
move-object/from16 v1, p0
:try_start_d2
iput-object v0, v1, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus;
.line 475
iget-object v0, v1, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$Status;
if-eq v0, v2, :cond_dd
const/4 v0, 0x0
.line 476
iput-object v0, v1, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus;
:cond_dd
if-eqz v21, :cond_fb
.line 479
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "finished onSizeReady in "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v2, v1, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
invoke-static {v2, v3}, Lcom/bumptech/glide/util/LogTime;->getElapsedMillis(J)D
move-result-wide v2
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Lcom/bumptech/glide/request/SingleRequest;->logV(Ljava/lang/String;)V
.line 481
:cond_fb
monitor-exit v22
return-void
:catchall_fd
move-exception v0
move-object/from16 v1, p0
goto :goto_105
:catchall_101
move-exception v0
move-object/from16 v22, v14
move-object v1, v15
:goto_105
monitor-exit v22
:try_end_106
.catchall {:try_start_d2 .. :try_end_106} :catchall_107
throw v0
:catchall_107
move-exception v0
goto :goto_105
.end method
.method public pause()V
.registers 3
.line 334
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 335
:try_start_3
invoke-virtual {p0}, Lcom/bumptech/glide/request/SingleRequest;->isRunning()Z
move-result v1
if-eqz v1, :cond_c
.line 336
invoke-virtual {p0}, Lcom/bumptech/glide/request/SingleRequest;->clear()V
.line 338
:cond_c
monitor-exit v0
return-void
:catchall_e
move-exception v1
monitor-exit v0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_e
throw v1
.end method