SingleRequest.smali
.class public final Lcom/bumptech/glide/request/SingleRequest;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/bumptech/glide/request/d;
.implements Lcom/bumptech/glide/request/target/h;
.implements Lcom/bumptech/glide/request/i;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/request/SingleRequest$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/bumptech/glide/request/d;",
"Lcom/bumptech/glide/request/target/h;",
"Lcom/bumptech/glide/request/i;"
}
.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; = "GlideRequest"
# instance fields
.field private final animationFactory:Lcom/bumptech/glide/request/transition/g;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/transition/g<",
"-TR;>;"
}
.end annotation
.end field
.field private final callbackExecutor:Ljava/util/concurrent/Executor;
.field private final context:Landroid/content/Context;
.field private cookie:I
.field private volatile engine:Lcom/bumptech/glide/load/engine/m;
.field private errorDrawable:Landroid/graphics/drawable/Drawable;
.field private fallbackDrawable:Landroid/graphics/drawable/Drawable;
.field private final glideContext:Lcom/bumptech/glide/e;
.field private height:I
.field private isCallingCallbacks:Z
.field private loadStatus:Lcom/bumptech/glide/load/engine/m$d;
.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/j;
.field private final requestCoordinator:Lcom/bumptech/glide/request/e;
.field private final requestListeners:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/bumptech/glide/request/g<",
"TR;>;>;"
}
.end annotation
.end field
.field private final requestLock:Ljava/lang/Object;
.field private final requestOptions:Lcom/bumptech/glide/request/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/a<",
"*>;"
}
.end annotation
.end field
.field private requestOrigin:Ljava/lang/RuntimeException;
.field private resource:Lcom/bumptech/glide/load/engine/w;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/load/engine/w<",
"TR;>;"
}
.end annotation
.end field
.field private startTime:J
.field private final stateVerifier:Lcom/bumptech/glide/util/pool/d;
.field private status:Lcom/bumptech/glide/request/SingleRequest$a;
.field private final tag:Ljava/lang/String;
.field private final target:Lcom/bumptech/glide/request/target/i;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/target/i<",
"TR;>;"
}
.end annotation
.end field
.field private final targetListener:Lcom/bumptech/glide/request/g;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/g<",
"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 public static constructor <clinit>()V
.registers 2
const-string v0, "GlideRequest"
const/4 v1, 0x2
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/e;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/request/a;IILcom/bumptech/glide/j;Lcom/bumptech/glide/request/target/i;Lcom/bumptech/glide/request/g;Ljava/util/List;Lcom/bumptech/glide/request/e;Lcom/bumptech/glide/load/engine/m;Lcom/bumptech/glide/request/transition/g;Ljava/util/concurrent/Executor;)V
.registers 20
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/bumptech/glide/e;",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
"Ljava/lang/Class<",
"TR;>;",
"Lcom/bumptech/glide/request/a<",
"*>;II",
"Lcom/bumptech/glide/j;",
"Lcom/bumptech/glide/request/target/i<",
"TR;>;",
"Lcom/bumptech/glide/request/g<",
"TR;>;",
"Ljava/util/List<",
"Lcom/bumptech/glide/request/g<",
"TR;>;>;",
"Lcom/bumptech/glide/request/e;",
"Lcom/bumptech/glide/load/engine/m;",
"Lcom/bumptech/glide/request/transition/g<",
"-TR;>;",
"Ljava/util/concurrent/Executor;",
")V"
}
.end annotation
move-object v0, p0
move-object v1, p2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
sget-boolean v2, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z
if-eqz v2, :cond_12
invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I
move-result v2
invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v2
goto :goto_13
:cond_12
const/4 v2, 0x0
:goto_13
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->tag:Ljava/lang/String;
.line 3
new-instance v2, Lcom/bumptech/glide/util/pool/d$a;
invoke-direct {v2}, Lcom/bumptech/glide/util/pool/d$a;-><init>()V
.line 4
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/d;
move-object v2, p3
.line 5
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
move-object v2, p1
.line 6
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->context:Landroid/content/Context;
.line 7
iput-object v1, v0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/e;
move-object v2, p4
.line 8
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
move-object v2, p5
.line 9
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
move-object v2, p6
.line 10
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/a;
move v2, p7
.line 11
iput v2, v0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
move v2, p8
.line 12
iput v2, v0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
move-object v2, p9
.line 13
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/j;
move-object v2, p10
.line 14
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/i;
move-object v2, p11
.line 15
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/g;
move-object v2, p12
.line 16
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
move-object/from16 v2, p13
.line 17
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/e;
move-object/from16 v2, p14
.line 18
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/m;
move-object/from16 v2, p15
.line 19
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->animationFactory:Lcom/bumptech/glide/request/transition/g;
move-object/from16 v2, p16
.line 20
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->callbackExecutor:Ljava/util/concurrent/Executor;
.line 21
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$a;->PENDING:Lcom/bumptech/glide/request/SingleRequest$a;
iput-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
.line 22
iget-object v2, v0, Lcom/bumptech/glide/request/SingleRequest;->requestOrigin:Ljava/lang/RuntimeException;
if-nez v2, :cond_6a
.line 23
iget-object v1, v1, Lcom/bumptech/glide/e;->h:Lcom/bumptech/glide/g;
.line 24
const-class v2, Lcom/bumptech/glide/c$d;
invoke-virtual {v1, v2}, Lcom/bumptech/glide/g;->a(Ljava/lang/Class;)Z
move-result v1
if-eqz v1, :cond_6a
.line 25
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_6a
return-void
.end method
.method private assertNotCallingCallbacks()V
.registers 3
.line 1
iget-boolean v0, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
if-nez v0, :cond_5
return-void
.line 2
: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
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/e;
if-eqz v0, :cond_d
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/e;->e(Lcom/bumptech/glide/request/d;)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
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/e;
if-eqz v0, :cond_d
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/e;->b(Lcom/bumptech/glide/request/d;)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
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/e;
if-eqz v0, :cond_d
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/e;->c(Lcom/bumptech/glide/request/d;)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 4
.line 1
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V
.line 2
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/d;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/d;->a()V
.line 3
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/i;
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/target/i;->removeCallback(Lcom/bumptech/glide/request/target/h;)V
.line 4
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/m$d;
if-eqz v0, :cond_23
.line 5
iget-object v1, v0, Lcom/bumptech/glide/load/engine/m$d;->c:Lcom/bumptech/glide/load/engine/m;
monitor-enter v1
.line 6
:try_start_14
iget-object v2, v0, Lcom/bumptech/glide/load/engine/m$d;->a:Lcom/bumptech/glide/load/engine/n;
iget-object v0, v0, Lcom/bumptech/glide/load/engine/m$d;->b:Lcom/bumptech/glide/request/i;
invoke-virtual {v2, v0}, Lcom/bumptech/glide/load/engine/n;->j(Lcom/bumptech/glide/request/i;)V
.line 7
monitor-exit v1
:try_end_1c
.catchall {:try_start_14 .. :try_end_1c} :catchall_20
const/4 v0, 0x0
.line 8
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/m$d;
goto :goto_23
:catchall_20
move-exception v0
.line 9
:try_start_21
monitor-exit v1
:try_end_22
.catchall {:try_start_21 .. :try_end_22} :catchall_20
throw v0
:cond_23
:goto_23
return-void
.end method
.method private experimentalNotifyRequestStarted(Ljava/lang/Object;)V
.registers 4
.line 1
iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
if-nez p1, :cond_5
return-void
.line 2
:cond_5
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_9
:goto_9
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1f
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/g;
.line 3
instance-of v1, v0, Lcom/bumptech/glide/request/c;
if-eqz v1, :cond_9
.line 4
check-cast v0, Lcom/bumptech/glide/request/c;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_9
:cond_1f
return-void
.end method
.method private getErrorDrawable()Landroid/graphics/drawable/Drawable;
.registers 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->errorDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_16
.line 2
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/a;
.line 3
iget-object v1, v0, Lcom/bumptech/glide/request/a;->e:Landroid/graphics/drawable/Drawable;
.line 4
iput-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->errorDrawable:Landroid/graphics/drawable/Drawable;
if-nez v1, :cond_16
.line 5
iget v0, v0, Lcom/bumptech/glide/request/a;->f:I
if-lez v0, :cond_16
.line 6
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 7
:cond_16
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 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->fallbackDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_16
.line 2
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/a;
.line 3
iget-object v1, v0, Lcom/bumptech/glide/request/a;->o:Landroid/graphics/drawable/Drawable;
.line 4
iput-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->fallbackDrawable:Landroid/graphics/drawable/Drawable;
if-nez v1, :cond_16
.line 5
iget v0, v0, Lcom/bumptech/glide/request/a;->p:I
if-lez v0, :cond_16
.line 6
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 7
:cond_16
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 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable;
if-nez v0, :cond_16
.line 2
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/a;
.line 3
iget-object v1, v0, Lcom/bumptech/glide/request/a;->g:Landroid/graphics/drawable/Drawable;
.line 4
iput-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable;
if-nez v1, :cond_16
.line 5
iget v0, v0, Lcom/bumptech/glide/request/a;->h:I
if-lez v0, :cond_16
.line 6
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 7
:cond_16
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
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/e;
if-eqz v0, :cond_11
invoke-interface {v0}, Lcom/bumptech/glide/request/e;->getRoot()Lcom/bumptech/glide/request/e;
move-result-object v0
invoke-interface {v0}, Lcom/bumptech/glide/request/e;->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 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/a;
.line 2
iget-object v0, v0, Lcom/bumptech/glide/request/a;->u:Landroid/content/res/Resources$Theme;
if-eqz v0, :cond_7
goto :goto_d
.line 3
:cond_7
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 4
:goto_d
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/e;
.line 5
invoke-static {v1, v1, p1, v0}, Lcom/bumptech/glide/load/resource/drawable/b;->a(Landroid/content/Context;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 2
return-void
.end method
.method private static maybeApplySizeMultiplier(IF)I
.registers 3
const/high16 v0, -0x80000000
if-ne p0, v0, :cond_5
goto :goto_c
:cond_5
int-to-float p0, p0
mul-float p1, p1, p0
invoke-static {p1}, Ljava/lang/Math;->round(F)I
move-result p0
:goto_c
return p0
.end method
.method private notifyLoadFailed()V
.registers 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/e;
if-eqz v0, :cond_7
.line 2
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/e;->d(Lcom/bumptech/glide/request/d;)V
:cond_7
return-void
.end method
.method private notifyLoadSuccess()V
.registers 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/e;
if-eqz v0, :cond_7
.line 2
invoke-interface {v0, p0}, Lcom/bumptech/glide/request/e;->a(Lcom/bumptech/glide/request/d;)V
:cond_7
return-void
.end method
.method public static obtain(Landroid/content/Context;Lcom/bumptech/glide/e;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/request/a;IILcom/bumptech/glide/j;Lcom/bumptech/glide/request/target/i;Lcom/bumptech/glide/request/g;Ljava/util/List;Lcom/bumptech/glide/request/e;Lcom/bumptech/glide/load/engine/m;Lcom/bumptech/glide/request/transition/g;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/e;",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
"Ljava/lang/Class<",
"TR;>;",
"Lcom/bumptech/glide/request/a<",
"*>;II",
"Lcom/bumptech/glide/j;",
"Lcom/bumptech/glide/request/target/i<",
"TR;>;",
"Lcom/bumptech/glide/request/g<",
"TR;>;",
"Ljava/util/List<",
"Lcom/bumptech/glide/request/g<",
"TR;>;>;",
"Lcom/bumptech/glide/request/e;",
"Lcom/bumptech/glide/load/engine/m;",
"Lcom/bumptech/glide/request/transition/g<",
"-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
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/e;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/request/a;IILcom/bumptech/glide/j;Lcom/bumptech/glide/request/target/i;Lcom/bumptech/glide/request/g;Ljava/util/List;Lcom/bumptech/glide/request/e;Lcom/bumptech/glide/load/engine/m;Lcom/bumptech/glide/request/transition/g;Ljava/util/concurrent/Executor;)V
return-object v17
.end method
.method private onLoadFailed(Lcom/bumptech/glide/load/engine/r;I)V
.registers 11
.line 2
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/d;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/d;->a()V
.line 3
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 4
:try_start_8
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
.line 5
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/e;
.line 6
iget v1, v1, Lcom/bumptech/glide/e;->i:I
const/4 v2, 0x0
if-gt v1, p2, :cond_33
.line 7
iget-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-static {p2}, Ljava/util/Objects;->toString(Ljava/lang/Object;)Ljava/lang/String;
const/4 p2, 0x4
if-gt v1, p2, :cond_33
.line 8
new-instance p2, Ljava/util/ArrayList;
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
.line 9
invoke-virtual {p1, p1, p2}, Lcom/bumptech/glide/load/engine/r;->a(Ljava/lang/Throwable;Ljava/util/List;)V
.line 10
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result v1
const/4 v3, 0x0
:goto_27
if-ge v3, v1, :cond_33
add-int/lit8 v4, v3, 0x1
.line 11
invoke-virtual {p2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Throwable;
move v3, v4
goto :goto_27
:cond_33
const/4 p2, 0x0
.line 12
iput-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/m$d;
.line 13
sget-object p2, Lcom/bumptech/glide/request/SingleRequest$a;->FAILED:Lcom/bumptech/glide/request/SingleRequest$a;
iput-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
const/4 p2, 0x1
.line 14
iput-boolean p2, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
:try_end_3d
.catchall {:try_start_8 .. :try_end_3d} :catchall_87
.line 15
:try_start_3d
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
if-eqz v1, :cond_60
.line 16
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
const/4 v3, 0x0
:goto_46
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_61
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/bumptech/glide/request/g;
.line 17
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/i;
.line 18
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z
move-result v7
invoke-interface {v4, p1, v5, v6, v7}, Lcom/bumptech/glide/request/g;->onLoadFailed(Lcom/bumptech/glide/load/engine/r;Ljava/lang/Object;Lcom/bumptech/glide/request/target/i;Z)Z
move-result v4
or-int/2addr v3, v4
goto :goto_46
:cond_60
const/4 v3, 0x0
.line 19
:cond_61
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/g;
if-eqz v1, :cond_74
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/i;
.line 20
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z
move-result v6
invoke-interface {v1, p1, v4, v5, v6}, Lcom/bumptech/glide/request/g;->onLoadFailed(Lcom/bumptech/glide/load/engine/r;Ljava/lang/Object;Lcom/bumptech/glide/request/target/i;Z)Z
move-result p1
if-eqz p1, :cond_74
goto :goto_75
:cond_74
const/4 p2, 0x0
:goto_75
or-int p1, v3, p2
if-nez p1, :cond_7c
.line 21
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->setErrorPlaceholder()V
:try_end_7c
.catchall {:try_start_3d .. :try_end_7c} :catchall_83
.line 22
:cond_7c
:try_start_7c
iput-boolean v2, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
.line 23
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->notifyLoadFailed()V
.line 24
monitor-exit v0
return-void
:catchall_83
move-exception p1
.line 25
iput-boolean v2, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
throw p1
:catchall_87
move-exception p1
.line 26
monitor-exit v0
:try_end_89
.catchall {:try_start_7c .. :try_end_89} :catchall_87
throw p1
.end method
.method private onResourceReady(Lcom/bumptech/glide/load/engine/w;Ljava/lang/Object;Lcom/bumptech/glide/load/a;Z)V
.registers 14
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/w<",
"TR;>;TR;",
"Lcom/bumptech/glide/load/a;",
"Z)V"
}
.end annotation
.line 25
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z
move-result p4
.line 26
sget-object v0, Lcom/bumptech/glide/request/SingleRequest$a;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$a;
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
.line 27
iput-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/w;
.line 28
sget-object p1, Lcom/bumptech/glide/k;->a:Ljava/lang/Boolean;
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
if-eqz p1, :cond_53
instance-of p1, p2, Landroid/graphics/drawable/Drawable;
if-eqz p1, :cond_53
iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
if-eqz p1, :cond_53
.line 29
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
move-object v0, p2
check-cast v0, Landroid/graphics/drawable/Drawable;
.line 30
sget-object v1, Lcom/bumptech/glide/k;->a:Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
if-eqz v1, :cond_53
if-eqz v0, :cond_53
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_32
goto :goto_53
.line 31
:cond_32
invoke-static {p1}, Lcom/bumptech/glide/k;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 32
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v2
const/16 v3, 0xa
if-lt v2, v3, :cond_4d
.line 33
sget-object v2, Lcom/bumptech/glide/k;->b:Lcom/bumptech/glide/util/j;
new-instance v3, Ljava/lang/ref/SoftReference;
invoke-direct {v3, v0}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
invoke-virtual {v2, v1, v3}, Lcom/bumptech/glide/util/j;->d(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 34
sget-object v2, Lcom/bumptech/glide/k;->c:Lcom/bumptech/glide/util/j;
invoke-virtual {v2, v1, p1}, Lcom/bumptech/glide/util/j;->d(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 35
:cond_4d
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
invoke-static {}, Lcom/bumptech/glide/h;->a()V
.line 36
:cond_53
:goto_53
iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/e;
.line 37
iget p1, p1, Lcom/bumptech/glide/e;->i:I
const/4 v0, 0x3
if-gt p1, v0, :cond_6a
.line 38
invoke-static {p2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
invoke-static {p3}, Ljava/util/Objects;->toString(Ljava/lang/Object;)Ljava/lang/String;
iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-static {p1}, Ljava/util/Objects;->toString(Ljava/lang/Object;)Ljava/lang/String;
iget-wide v0, p0, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
.line 39
invoke-static {v0, v1}, Lcom/bumptech/glide/util/i;->a(J)D
:cond_6a
const/4 p1, 0x1
.line 40
iput-boolean p1, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
const/4 v6, 0x0
.line 41
:try_start_6e
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List;
if-eqz v0, :cond_90
.line 42
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v7
const/4 v8, 0x0
:goto_77
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_91
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/g;
.line 43
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/i;
move-object v1, p2
move-object v4, p3
move v5, p4
.line 44
invoke-interface/range {v0 .. v5}, Lcom/bumptech/glide/request/g;->onResourceReady(Ljava/lang/Object;Ljava/lang/Object;Lcom/bumptech/glide/request/target/i;Lcom/bumptech/glide/load/a;Z)Z
move-result v0
or-int/2addr v8, v0
goto :goto_77
:cond_90
const/4 v8, 0x0
.line 45
:cond_91
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/g;
if-eqz v0, :cond_a3
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/i;
move-object v1, p2
move-object v4, p3
move v5, p4
.line 46
invoke-interface/range {v0 .. v5}, Lcom/bumptech/glide/request/g;->onResourceReady(Ljava/lang/Object;Ljava/lang/Object;Lcom/bumptech/glide/request/target/i;Lcom/bumptech/glide/load/a;Z)Z
move-result v0
if-eqz v0, :cond_a3
goto :goto_a4
:cond_a3
const/4 p1, 0x0
:goto_a4
or-int/2addr p1, v8
if-nez p1, :cond_b2
.line 47
iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->animationFactory:Lcom/bumptech/glide/request/transition/g;
invoke-interface {p1, p3, p4}, Lcom/bumptech/glide/request/transition/g;->a(Lcom/bumptech/glide/load/a;Z)Lcom/bumptech/glide/request/transition/f;
move-result-object p1
.line 48
iget-object p3, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/i;
invoke-interface {p3, p2, p1}, Lcom/bumptech/glide/request/target/i;->onResourceReady(Ljava/lang/Object;Lcom/bumptech/glide/request/transition/f;)V
:try_end_b2
.catchall {:try_start_6e .. :try_end_b2} :catchall_b8
.line 49
:cond_b2
iput-boolean v6, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
.line 50
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->notifyLoadSuccess()V
return-void
:catchall_b8
move-exception p1
.line 51
iput-boolean v6, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z
throw p1
.end method
.method private setErrorPlaceholder()V
.registers 3
.line 1
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 2
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
if-nez v1, :cond_10
.line 3
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 4
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 5
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getPlaceholderDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
.line 6
:cond_1c
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/i;
invoke-interface {v1, v0}, Lcom/bumptech/glide/request/target/i;->onLoadFailed(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
# virtual methods
.method public begin()V
.registers 8
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V
.line 3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/d;
invoke-virtual {v1}, Lcom/bumptech/glide/util/pool/d;->a()V
.line 4
sget v1, Lcom/bumptech/glide/util/i;->b:I
.line 5
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtimeNanos()J
move-result-wide v1
.line 6
iput-wide v1, p0, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
.line 7
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
if-nez v1, :cond_3e
.line 8
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/m;->j(II)Z
move-result v1
if-eqz v1, :cond_29
.line 9
iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->width:I
.line 10
iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->height:I
.line 11
:cond_29
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getFallbackDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v1
if-nez v1, :cond_31
const/4 v1, 0x5
goto :goto_32
:cond_31
const/4 v1, 0x3
.line 12
:goto_32
new-instance v2, Lcom/bumptech/glide/load/engine/r;
const-string v3, "Received null model"
invoke-direct {v2, v3}, Lcom/bumptech/glide/load/engine/r;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v2, v1}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/r;I)V
.line 13
monitor-exit v0
return-void
.line 14
:cond_3e
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
sget-object v3, Lcom/bumptech/glide/request/SingleRequest$a;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$a;
if-eq v2, v3, :cond_ce
.line 15
sget-object v4, Lcom/bumptech/glide/request/SingleRequest$a;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$a;
if-ne v2, v4, :cond_52
.line 16
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/w;
sget-object v2, Lcom/bumptech/glide/load/a;->MEMORY_CACHE:Lcom/bumptech/glide/load/a;
const/4 v3, 0x0
invoke-virtual {p0, v1, v2, v3}, Lcom/bumptech/glide/request/SingleRequest;->onResourceReady(Lcom/bumptech/glide/load/engine/w;Lcom/bumptech/glide/load/a;Z)V
.line 17
monitor-exit v0
return-void
.line 18
:cond_52
invoke-direct {p0, v1}, Lcom/bumptech/glide/request/SingleRequest;->experimentalNotifyRequestStarted(Ljava/lang/Object;)V
const/4 v1, -0x1
.line 19
iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->cookie:I
.line 20
sget-object v1, Lcom/bumptech/glide/request/SingleRequest$a;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$a;
iput-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
.line 21
iget v2, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
iget v4, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
invoke-static {v2, v4}, Lcom/bumptech/glide/util/m;->j(II)Z
move-result v2
if-eqz v2, :cond_6e
.line 22
iget v2, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
iget v4, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
invoke-virtual {p0, v2, v4}, Lcom/bumptech/glide/request/SingleRequest;->onSizeReady(II)V
goto :goto_99
.line 23
:cond_6e
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-static {v2}, Ljava/util/Objects;->toString(Ljava/lang/Object;)Ljava/lang/String;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
invoke-static {}, Lcom/bumptech/glide/h;->a()V
.line 24
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v2
.line 25
sget-object v4, Lcom/bumptech/glide/h;->g:Ljava/util/HashMap;
invoke-virtual {v4, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_94
.line 26
sget-object v4, Lcom/bumptech/glide/h;->f:Ljava/util/HashMap;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v5
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v5
invoke-virtual {v4, v2, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 27
:cond_94
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/i;
invoke-interface {v2, p0}, Lcom/bumptech/glide/request/target/i;->getSize(Lcom/bumptech/glide/request/target/h;)V
.line 28
:goto_99
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
if-eq v2, v3, :cond_9f
if-ne v2, v1, :cond_ae
.line 29
:cond_9f
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canNotifyStatusChanged()Z
move-result v1
if-eqz v1, :cond_ae
.line 30
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/i;
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/i;->onLoadStarted(Landroid/graphics/drawable/Drawable;)V
.line 31
:cond_ae
sget-boolean v1, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z
if-eqz v1, :cond_cc
.line 32
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;
iget-wide v2, p0, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
invoke-static {v2, v3}, Lcom/bumptech/glide/util/i;->a(J)D
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
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 33
:cond_cc
monitor-exit v0
return-void
.line 34
:cond_ce
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_d6
move-exception v1
.line 35
monitor-exit v0
:try_end_d8
.catchall {:try_start_3 .. :try_end_d8} :catchall_d6
throw v1
.end method
.method public clear()V
.registers 6
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V
.line 3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/d;
invoke-virtual {v1}, Lcom/bumptech/glide/util/pool/d;->a()V
.line 4
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$a;->CLEARED:Lcom/bumptech/glide/request/SingleRequest$a;
if-ne v1, v2, :cond_13
.line 5
monitor-exit v0
return-void
.line 6
:cond_13
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->cancel()V
.line 7
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/w;
const/4 v3, 0x0
if-eqz v1, :cond_1e
.line 8
iput-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/w;
goto :goto_1f
:cond_1e
move-object v1, v3
.line 9
:goto_1f
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canNotifyCleared()Z
move-result v3
if-eqz v3, :cond_2e
.line 10
iget-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/i;
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getPlaceholderDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v4
invoke-interface {v3, v4}, Lcom/bumptech/glide/request/target/i;->onLoadCleared(Landroid/graphics/drawable/Drawable;)V
.line 11
:cond_2e
iput-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
.line 12
monitor-exit v0
:try_end_31
.catchall {:try_start_3 .. :try_end_31} :catchall_39
if-eqz v1, :cond_38
.line 13
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/m;
invoke-virtual {v0, v1}, Lcom/bumptech/glide/load/engine/m;->f(Lcom/bumptech/glide/load/engine/w;)V
:cond_38
return-void
:catchall_39
move-exception v1
.line 14
:try_start_3a
monitor-exit v0
:try_end_3b
.catchall {:try_start_3a .. :try_end_3b} :catchall_39
throw v1
.end method
.method public getLock()Ljava/lang/Object;
.registers 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/d;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/d;->a()V
.line 2
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 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$a;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$a;
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 3
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 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$a;->CLEARED:Lcom/bumptech/glide/request/SingleRequest$a;
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 3
monitor-exit v0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_e
throw v1
.end method
.method public isComplete()Z
.registers 7
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/w;
const/4 v2, 0x1
const/4 v3, 0x0
if-eqz v1, :cond_33
.line 3
invoke-interface {v1}, Lcom/bumptech/glide/load/engine/w;->get()Ljava/lang/Object;
move-result-object v1
instance-of v1, v1, Landroid/graphics/Bitmap;
if-eqz v1, :cond_33
.line 4
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/w;
invoke-interface {v1}, Lcom/bumptech/glide/load/engine/w;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/graphics/Bitmap;
invoke-virtual {v1}, Landroid/graphics/Bitmap;->isRecycled()Z
move-result v1
if-eqz v1, :cond_27
.line 5
iget-object v4, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-static {v4}, Ljava/util/Objects;->toString(Ljava/lang/Object;)Ljava/lang/String;
invoke-static {}, Lcom/bumptech/glide/h;->a()V
.line 6
:cond_27
iget-object v4, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
sget-object v5, Lcom/bumptech/glide/request/SingleRequest$a;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$a;
if-ne v4, v5, :cond_30
if-nez v1, :cond_30
goto :goto_31
:cond_30
const/4 v2, 0x0
:goto_31
monitor-exit v0
return v2
.line 7
:cond_33
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
sget-object v4, Lcom/bumptech/glide/request/SingleRequest$a;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$a;
if-ne v1, v4, :cond_3a
goto :goto_3b
:cond_3a
const/4 v2, 0x0
:goto_3b
monitor-exit v0
return v2
:catchall_3d
move-exception v1
.line 8
monitor-exit v0
:try_end_3f
.catchall {:try_start_3 .. :try_end_3f} :catchall_3d
throw v1
.end method
.method public isEquivalentTo(Lcom/bumptech/glide/request/d;)Z
.registers 18
move-object/from16 v1, p0
move-object/from16 v0, p1
.line 1
instance-of v2, v0, Lcom/bumptech/glide/request/SingleRequest;
const/4 v3, 0x0
if-nez v2, :cond_a
return v3
.line 2
:cond_a
iget-object v2, v1, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v2
.line 3
:try_start_d
iget v4, v1, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
.line 4
iget v5, v1, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
.line 5
iget-object v6, v1, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
.line 6
iget-object v7, v1, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
.line 7
iget-object v8, v1, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/a;
.line 8
iget-object v9, v1, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/j;
.line 9
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
const/4 v10, 0x0
.line 10
:goto_23
monitor-exit v2
:try_end_24
.catchall {:try_start_d .. :try_end_24} :catchall_77
.line 11
check-cast v0, Lcom/bumptech/glide/request/SingleRequest;
.line 12
iget-object v11, v0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v11
.line 13
:try_start_29
iget v2, v0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I
.line 14
iget v12, v0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I
.line 15
iget-object v13, v0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
.line 16
iget-object v14, v0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
.line 17
iget-object v15, v0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/a;
.line 18
iget-object v3, v0, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/j;
.line 19
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 20
:goto_3f
monitor-exit v11
:try_end_40
.catchall {:try_start_29 .. :try_end_40} :catchall_74
const/4 v11, 0x1
if-ne v4, v2, :cond_72
if-ne v5, v12, :cond_72
.line 21
sget-object v2, Lcom/bumptech/glide/util/m;->a:[C
if-nez v6, :cond_4f
if-nez v13, :cond_4d
const/4 v2, 0x1
goto :goto_5e
:cond_4d
const/4 v2, 0x0
goto :goto_5e
.line 22
:cond_4f
instance-of v2, v6, Lcom/bumptech/glide/load/model/k;
if-eqz v2, :cond_5a
.line 23
check-cast v6, Lcom/bumptech/glide/load/model/k;
invoke-interface {v6}, Lcom/bumptech/glide/load/model/k;->a()Z
move-result v2
goto :goto_5e
.line 24
:cond_5a
invoke-virtual {v6, v13}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v2
:goto_5e
if-eqz v2, :cond_72
.line 25
invoke-virtual {v7, v14}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_72
.line 26
invoke-virtual {v8, v15}, Lcom/bumptech/glide/request/a;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_72
if-ne v9, v3, :cond_72
if-ne v10, v0, :cond_72
const/4 v3, 0x1
goto :goto_73
:cond_72
const/4 v3, 0x0
:goto_73
return v3
:catchall_74
move-exception v0
.line 27
:try_start_75
monitor-exit v11
:try_end_76
.catchall {:try_start_75 .. :try_end_76} :catchall_74
throw v0
:catchall_77
move-exception v0
.line 28
:try_start_78
monitor-exit v2
:try_end_79
.catchall {:try_start_78 .. :try_end_79} :catchall_77
throw v0
.end method
.method public isRunning()Z
.registers 4
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$a;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$a;
if-eq v1, v2, :cond_10
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$a;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$a;
if-ne v1, v2, :cond_e
goto :goto_10
:cond_e
const/4 v1, 0x0
goto :goto_11
:cond_10
:goto_10
const/4 v1, 0x1
:goto_11
monitor-exit v0
return v1
:catchall_13
move-exception v1
.line 3
monitor-exit v0
:try_end_15
.catchall {:try_start_3 .. :try_end_15} :catchall_13
throw v1
.end method
.method public onLoadFailed(Lcom/bumptech/glide/load/engine/r;)V
.registers 3
const/4 v0, 0x5
.line 1
invoke-direct {p0, p1, v0}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/r;I)V
return-void
.end method
.method public onResourceReady(Lcom/bumptech/glide/load/engine/w;Lcom/bumptech/glide/load/a;Z)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/engine/w<",
"*>;",
"Lcom/bumptech/glide/load/a;",
"Z)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/d;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/d;->a()V
const/4 v0, 0x0
.line 2
: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_b8
.line 3
:try_start_9
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/m$d;
if-nez p1, :cond_2f
.line 4
new-instance p1, Lcom/bumptech/glide/load/engine/r;
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;
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;
const-string p3, " inside, but instead got null."
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcom/bumptech/glide/load/engine/r;-><init>(Ljava/lang/String;)V
.line 5
invoke-virtual {p0, p1}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/r;)V
.line 6
monitor-exit v1
return-void
.line 7
:cond_2f
invoke-interface {p1}, Lcom/bumptech/glide/load/engine/w;->get()Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_5a
.line 8
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_42
goto :goto_5a
.line 9
:cond_42
invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canSetResource()Z
move-result v3
:try_end_46
.catchall {:try_start_9 .. :try_end_46} :catchall_b5
if-nez v3, :cond_55
.line 10
:try_start_48
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/w;
.line 11
sget-object p2, Lcom/bumptech/glide/request/SingleRequest$a;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$a;
iput-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
.line 12
monitor-exit v1
:try_end_4f
.catchall {:try_start_48 .. :try_end_4f} :catchall_b1
.line 13
iget-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/m;
invoke-virtual {p2, p1}, Lcom/bumptech/glide/load/engine/m;->f(Lcom/bumptech/glide/load/engine/w;)V
return-void
.line 14
:cond_55
:try_start_55
invoke-direct {p0, p1, v2, p2, p3}, Lcom/bumptech/glide/request/SingleRequest;->onResourceReady(Lcom/bumptech/glide/load/engine/w;Ljava/lang/Object;Lcom/bumptech/glide/load/a;Z)V
.line 15
monitor-exit v1
:try_end_59
.catchall {:try_start_55 .. :try_end_59} :catchall_b5
return-void
.line 16
:cond_5a
:goto_5a
:try_start_5a
iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/w;
.line 17
new-instance p2, Lcom/bumptech/glide/load/engine/r;
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;
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;
const-string v0, " but instead got "
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
if-eqz v2, :cond_79
.line 18
invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
goto :goto_7b
:cond_79
const-string v0, ""
:goto_7b
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string/jumbo v0, "{"
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string/jumbo v0, "} inside Resource{"
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string/jumbo v0, "}."
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
if-eqz v2, :cond_9b
const-string v0, ""
goto :goto_9d
:cond_9b
const-string v0, " To indicate failure return a null Resource object, rather than a Resource object containing null data."
.line 19
:goto_9d
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p3
invoke-direct {p2, p3}, Lcom/bumptech/glide/load/engine/r;-><init>(Ljava/lang/String;)V
.line 20
invoke-virtual {p0, p2}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/r;)V
.line 21
monitor-exit v1
:try_end_ab
.catchall {:try_start_5a .. :try_end_ab} :catchall_b1
.line 22
iget-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/m;
invoke-virtual {p2, p1}, Lcom/bumptech/glide/load/engine/m;->f(Lcom/bumptech/glide/load/engine/w;)V
return-void
:catchall_b1
move-exception p2
move-object v0, p1
move-object p1, p2
goto :goto_b6
:catchall_b5
move-exception p1
.line 23
:goto_b6
:try_start_b6
monitor-exit v1
:try_end_b7
.catchall {:try_start_b6 .. :try_end_b7} :catchall_b5
:try_start_b7
throw p1
:try_end_b8
.catchall {:try_start_b7 .. :try_end_b8} :catchall_b8
:catchall_b8
move-exception p1
if-eqz v0, :cond_c0
.line 24
iget-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/m;
invoke-virtual {p2, v0}, Lcom/bumptech/glide/load/engine/m;->f(Lcom/bumptech/glide/load/engine/w;)V
:cond_c0
throw p1
.end method
.method public onSizeReady(II)V
.registers 28
move-object/from16 v15, p0
const-string v0, "com.bumptech.glide.gifdecoder"
.line 1
iget-object v1, v15, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_3c
.line 2
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-static {v0}, Ljava/util/Objects;->toString(Ljava/lang/Object;)Ljava/lang/String;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
invoke-static {}, Lcom/bumptech/glide/h;->a()V
.line 3
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
.line 4
sget-object v1, Lcom/bumptech/glide/h;->f:Ljava/util/HashMap;
invoke-virtual {v1, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3c
sget-object v1, Lcom/bumptech/glide/h;->g:Ljava/util/HashMap;
invoke-virtual {v1, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_3c
.line 5
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
invoke-virtual {v1, v0, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 6
:cond_3c
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/d;
invoke-virtual {v0}, Lcom/bumptech/glide/util/pool/d;->a()V
.line 7
iget-object v14, v15, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v14
.line 8
:try_start_44
sget-boolean v0, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z
if-eqz v0, :cond_62
.line 9
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;
iget-wide v2, v15, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
invoke-static {v2, v3}, Lcom/bumptech/glide/util/i;->a(J)D
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
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 10
:cond_62
iget-object v1, v15, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
sget-object v2, Lcom/bumptech/glide/request/SingleRequest$a;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$a;
if-eq v1, v2, :cond_6a
.line 11
monitor-exit v14
return-void
.line 12
:cond_6a
sget-object v13, Lcom/bumptech/glide/request/SingleRequest$a;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$a;
iput-object v13, v15, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
.line 13
iget-object v1, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/a;
.line 14
iget v1, v1, Lcom/bumptech/glide/request/a;->b:F
move/from16 v2, p1
.line 15
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 16
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_9e
.line 17
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;
iget-wide v2, v15, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
invoke-static {v2, v3}, Lcom/bumptech/glide/util/i;->a(J)D
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
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 18
:cond_9e
iget-object v1, v15, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/m;
iget-object v2, v15, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/e;
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/a;
.line 19
iget-object v5, v4, Lcom/bumptech/glide/request/a;->l:Lcom/bumptech/glide/load/i;
.line 20
iget v6, v15, Lcom/bumptech/glide/request/SingleRequest;->width:I
iget v7, v15, Lcom/bumptech/glide/request/SingleRequest;->height:I
.line 21
iget-object v8, v4, Lcom/bumptech/glide/request/a;->s:Ljava/lang/Class;
.line 22
iget-object v9, v15, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
iget-object v10, v15, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/j;
.line 23
iget-object v11, v4, Lcom/bumptech/glide/request/a;->c:Lcom/bumptech/glide/load/engine/l;
.line 24
iget-object v12, v4, Lcom/bumptech/glide/request/a;->r:Lcom/bumptech/glide/util/b;
move-object/from16 v16, v13
.line 25
iget-boolean v13, v4, Lcom/bumptech/glide/request/a;->m:Z
move/from16 v21, v0
.line 26
iget-boolean v0, v4, Lcom/bumptech/glide/request/a;->y:Z
move/from16 v17, v0
.line 27
iget-object v0, v4, Lcom/bumptech/glide/request/a;->q:Lcom/bumptech/glide/load/l;
move-object/from16 v18, v0
.line 28
iget-boolean v0, v4, Lcom/bumptech/glide/request/a;->i:Z
move/from16 v19, v0
.line 29
iget-boolean v0, v4, Lcom/bumptech/glide/request/a;->w:Z
move/from16 v20, v0
.line 30
iget-boolean v0, v4, Lcom/bumptech/glide/request/a;->z:Z
.line 31
iget-boolean v4, v4, Lcom/bumptech/glide/request/a;->x:Z
move/from16 p1, v0
.line 32
iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->callbackExecutor:Ljava/util/concurrent/Executor;
:try_end_d4
.catchall {:try_start_44 .. :try_end_d4} :catchall_128
move/from16 v22, v4
move-object v4, v5
move v5, v6
move v6, v7
move-object v7, v8
move-object v8, v9
move-object v9, v10
move-object v10, v11
move-object v11, v12
move v12, v13
move-object/from16 v23, v16
move/from16 v13, v17
move-object/from16 v24, v14
move-object/from16 v14, v18
move/from16 v15, v19
move/from16 v16, v20
move/from16 v17, p1
move/from16 v18, v22
move-object/from16 v19, p0
move-object/from16 v20, v0
.line 33
:try_start_f3
invoke-virtual/range {v1 .. v20}, Lcom/bumptech/glide/load/engine/m;->b(Lcom/bumptech/glide/e;Ljava/lang/Object;Lcom/bumptech/glide/load/i;IILjava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/j;Lcom/bumptech/glide/load/engine/l;Ljava/util/Map;ZZLcom/bumptech/glide/load/l;ZZZZLcom/bumptech/glide/request/i;Ljava/util/concurrent/Executor;)Lcom/bumptech/glide/load/engine/m$d;
move-result-object v0
:try_end_f7
.catchall {:try_start_f3 .. :try_end_f7} :catchall_124
move-object/from16 v1, p0
:try_start_f9
iput-object v0, v1, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/m$d;
.line 34
iget-object v0, v1, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$a;
move-object/from16 v2, v23
if-eq v0, v2, :cond_104
const/4 v0, 0x0
.line 35
iput-object v0, v1, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/m$d;
:cond_104
if-eqz v21, :cond_120
.line 36
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;
iget-wide v2, v1, Lcom/bumptech/glide/request/SingleRequest;->startTime:J
invoke-static {v2, v3}, Lcom/bumptech/glide/util/i;->a(J)D
move-result-wide v2
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
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 37
:cond_120
monitor-exit v24
:try_end_121
.catchall {:try_start_f9 .. :try_end_121} :catchall_122
return-void
:catchall_122
move-exception v0
goto :goto_12c
:catchall_124
move-exception v0
move-object/from16 v1, p0
goto :goto_12c
:catchall_128
move-exception v0
move-object/from16 v24, v14
move-object v1, v15
:goto_12c
move-object/from16 v14, v24
:goto_12e
:try_start_12e
monitor-exit v14
:try_end_12f
.catchall {:try_start_12e .. :try_end_12f} :catchall_130
throw v0
:catchall_130
move-exception v0
goto :goto_12e
.end method
.method public pause()V
.registers 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
invoke-virtual {p0}, Lcom/bumptech/glide/request/SingleRequest;->isRunning()Z
move-result v1
if-eqz v1, :cond_c
.line 3
invoke-virtual {p0}, Lcom/bumptech/glide/request/SingleRequest;->clear()V
.line 4
: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
.method public toString()Ljava/lang/String;
.registers 5
.line 1
iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object;
.line 3
iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class;
.line 4
monitor-exit v0
:try_end_8
.catchall {:try_start_3 .. :try_end_8} :catchall_2e
.line 5
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-super {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "[model="
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", transcodeClass="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, "]"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:catchall_2e
move-exception v1
.line 6
:try_start_2f
monitor-exit v0
:try_end_30
.catchall {:try_start_2f .. :try_end_30} :catchall_2e
throw v1
.end method