.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; .implements Lcom/bumptech/glide/util/pool/FactoryPools$Poolable; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/bumptech/glide/request/SingleRequest$Status; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Lcom/bumptech/glide/request/Request;", "Lcom/bumptech/glide/request/target/SizeReadyCallback;", "Lcom/bumptech/glide/request/ResourceCallback;", "Lcom/bumptech/glide/util/pool/FactoryPools$Poolable;" } .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 POOL:Landroidx/core/util/Pools$Pool; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/core/util/Pools$Pool<", "Lcom/bumptech/glide/request/SingleRequest<", "*>;>;" } .end annotation .end field .field private static final TAG:Ljava/lang/String; = "Request" # instance fields .field private 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 callbackExecutor:Ljava/util/concurrent/Executor; .field private context:Landroid/content/Context; .field private engine:Lcom/bumptech/glide/load/engine/Engine; .field private errorDrawable:Landroid/graphics/drawable/Drawable; .field private fallbackDrawable:Landroid/graphics/drawable/Drawable; .field private 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 model:Ljava/lang/Object; .field private overrideHeight:I .field private overrideWidth:I .field private placeholderDrawable:Landroid/graphics/drawable/Drawable; .field private priority:Lcom/bumptech/glide/Priority; .field private requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator; .field private 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 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 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 targetListener:Lcom/bumptech/glide/request/RequestListener; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/bumptech/glide/request/RequestListener<", "TR;>;" } .end annotation .end field .field private 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 ()V .registers 2 .line 45 new-instance v0, Lcom/bumptech/glide/request/SingleRequest$1; invoke-direct {v0}, Lcom/bumptech/glide/request/SingleRequest$1;->()V const/16 v1, 0x96 invoke-static {v1, v0}, Lcom/bumptech/glide/util/pool/FactoryPools;->threadSafe(ILcom/bumptech/glide/util/pool/FactoryPools$Factory;)Landroidx/core/util/Pools$Pool; move-result-object v0 sput-object v0, Lcom/bumptech/glide/request/SingleRequest;->POOL:Landroidx/core/util/Pools$Pool; .line 54 const-string v0, "Request" const/4 v1, 0x2 .line 55 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 constructor ()V .registers 2 .line 160 invoke-direct {p0}, Ljava/lang/Object;->()V .line 85 sget-boolean v0, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z if-eqz v0, :cond_10 invoke-super {p0}, Ljava/lang/Object;->hashCode()I move-result v0 invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String; move-result-object v0 goto :goto_11 :cond_10 const/4 v0, 0x0 :goto_11 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->tag:Ljava/lang/String; .line 86 invoke-static {}, Lcom/bumptech/glide/util/pool/StateVerifier;->newInstance()Lcom/bumptech/glide/util/pool/StateVerifier; move-result-object v0 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier; return-void .end method .method private assertNotCallingCallbacks()V .registers 3 .line 304 iget-boolean v0, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z if-nez v0, :cond_5 return-void .line 305 :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;->(Ljava/lang/String;)V throw v0 .end method .method private canNotifyCleared()Z .registers 2 .line 488 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 492 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 484 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 293 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V .line 294 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 295 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 296 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus; if-eqz v0, :cond_17 .line 297 invoke-virtual {v0}, Lcom/bumptech/glide/load/engine/Engine$LoadStatus;->cancel()V const/4 v0, 0x0 .line 298 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 370 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->errorDrawable:Landroid/graphics/drawable/Drawable; if-nez v0, :cond_22 .line 371 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 372 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 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 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 376 :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 390 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->fallbackDrawable:Landroid/graphics/drawable/Drawable; if-nez v0, :cond_22 .line 391 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 392 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 393 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 396 :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 380 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable; if-nez v0, :cond_22 .line 381 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 382 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 383 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 386 :cond_22 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable; return-object v0 .end method .method private declared-synchronized init(Landroid/content/Context;Lcom/bumptech/glide/GlideContext;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 16 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Lcom/bumptech/glide/GlideContext;", "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 monitor-enter p0 .line 180 :try_start_1 iput-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->context:Landroid/content/Context; .line 181 iput-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/GlideContext; .line 182 iput-object p3, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; .line 183 iput-object p4, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class; .line 184 iput-object p5, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions; .line 185 iput p6, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I .line 186 iput p7, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I .line 187 iput-object p8, p0, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/Priority; .line 188 iput-object p9, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target; .line 189 iput-object p10, p0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/RequestListener; .line 190 iput-object p11, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List; .line 191 iput-object p12, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator; .line 192 iput-object p13, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/Engine; .line 193 iput-object p14, p0, Lcom/bumptech/glide/request/SingleRequest;->animationFactory:Lcom/bumptech/glide/request/transition/TransitionFactory; .line 194 iput-object p15, p0, Lcom/bumptech/glide/request/SingleRequest;->callbackExecutor:Ljava/util/concurrent/Executor; .line 195 sget-object p1, Lcom/bumptech/glide/request/SingleRequest$Status;->PENDING:Lcom/bumptech/glide/request/SingleRequest$Status; iput-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; .line 197 iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOrigin:Ljava/lang/RuntimeException; if-nez p1, :cond_36 invoke-virtual {p2}, Lcom/bumptech/glide/GlideContext;->isLoggingRequestOriginsEnabled()Z move-result p1 if-eqz p1, :cond_36 .line 198 new-instance p1, Ljava/lang/RuntimeException; const-string p2, "Glide request origin trace" invoke-direct {p1, p2}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V iput-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOrigin:Ljava/lang/RuntimeException; :try_end_36 .catchall {:try_start_1 .. :try_end_36} :catchall_38 .line 200 :cond_36 monitor-exit p0 return-void :catchall_38 move-exception p1 :try_start_39 monitor-exit p0 :try_end_3a .catchall {:try_start_39 .. :try_end_3a} :catchall_38 throw p1 .end method .method private isFirstReadyResource()Z .registers 2 .line 496 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator; if-eqz v0, :cond_d invoke-interface {v0}, Lcom/bumptech/glide/request/RequestCoordinator;->isAnyResourceSet()Z move-result v0 if-nez 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 declared-synchronized listenerCountEquals(Lcom/bumptech/glide/request/SingleRequest;)Z .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/bumptech/glide/request/SingleRequest<", "*>;)Z" } .end annotation monitor-enter p0 .line 658 :try_start_1 monitor-enter p1 :try_end_2 .catchall {:try_start_1 .. :try_end_2} :catchall_20 .line 659 :try_start_2 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List; const/4 v1, 0x0 if-nez v0, :cond_9 move v0, v1 goto :goto_d :cond_9 invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 .line 660 :goto_d iget-object v2, p1, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List; if-nez v2, :cond_13 move v2, v1 goto :goto_17 :cond_13 invoke-interface {v2}, Ljava/util/List;->size()I move-result v2 :goto_17 if-ne v0, v2, :cond_1a const/4 v1, 0x1 .line 661 :cond_1a monitor-exit p1 :try_end_1b .catchall {:try_start_2 .. :try_end_1b} :catchall_1d monitor-exit p0 return v1 :catchall_1d move-exception v0 .line 662 :try_start_1e monitor-exit p1 :try_end_1f .catchall {:try_start_1e .. :try_end_1f} :catchall_1d :try_start_1f throw v0 :catchall_20 move-exception p1 monitor-exit p0 :try_end_22 .catchall {:try_start_1f .. :try_end_22} :catchall_20 throw p1 .end method .method private loadDrawable(I)Landroid/graphics/drawable/Drawable; .registers 4 .line 400 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 .line 401 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 402 :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 666 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()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 480 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 506 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator; if-eqz v0, :cond_7 .line 507 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 500 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator; if-eqz v0, :cond_7 .line 501 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/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 32 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Lcom/bumptech/glide/GlideContext;", "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 .line 134 sget-object v0, Lcom/bumptech/glide/request/SingleRequest;->POOL:Landroidx/core/util/Pools$Pool; .line 135 invoke-interface {v0}, Landroidx/core/util/Pools$Pool;->acquire()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/bumptech/glide/request/SingleRequest; if-nez v0, :cond_f .line 137 new-instance v0, Lcom/bumptech/glide/request/SingleRequest; invoke-direct {v0}, Lcom/bumptech/glide/request/SingleRequest;->()V :cond_f move-object v1, v0 move-object/from16 v2, p0 move-object/from16 v3, p1 move-object/from16 v4, p2 move-object/from16 v5, p3 move-object/from16 v6, p4 move/from16 v7, p5 move/from16 v8, p6 move-object/from16 v9, p7 move-object/from16 v10, p8 move-object/from16 v11, p9 move-object/from16 v12, p10 move-object/from16 v13, p11 move-object/from16 v14, p12 move-object/from16 v15, p13 move-object/from16 v16, p14 .line 139 invoke-direct/range {v1 .. v16}, Lcom/bumptech/glide/request/SingleRequest;->init(Landroid/content/Context;Lcom/bumptech/glide/GlideContext;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 v0 .end method .method private declared-synchronized onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;I)V .registers 10 const-string v0, "Load failed for " monitor-enter p0 .line 598 :try_start_3 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 599 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 600 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_4f .line 602 const-string p2, "Glide" new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, " with size [" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v2, p0, Lcom/bumptech/glide/request/SingleRequest;->width:I invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, "x" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v2, p0, Lcom/bumptech/glide/request/SingleRequest;->height:I invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, "]" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-static {p2, v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I const/4 p2, 0x4 if-gt v1, p2, :cond_4f .line 604 const-string p2, "Glide" invoke-virtual {p1, p2}, Lcom/bumptech/glide/load/engine/GlideException;->logRootCauses(Ljava/lang/String;)V :cond_4f const/4 p2, 0x0 .line 608 iput-object p2, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus; .line 609 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 611 iput-boolean p2, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z :try_end_59 .catchall {:try_start_3 .. :try_end_59} :catchall_a4 const/4 v0, 0x0 .line 615 :try_start_5a iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List; if-eqz v1, :cond_7d .line 616 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v1 move v2, v0 :goto_63 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_7e invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Lcom/bumptech/glide/request/RequestListener; .line 617 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 618 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z move-result v6 invoke-interface {v3, 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 v3 or-int/2addr v2, v3 goto :goto_63 :cond_7d move v2, v0 .line 621 :cond_7e iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/RequestListener; if-eqz v1, :cond_91 iget-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; iget-object v4, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target; .line 623 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z move-result v5 invoke-interface {v1, p1, v3, v4, v5}, 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_91 goto :goto_92 :cond_91 move p2, v0 :goto_92 or-int p1, v2, p2 if-nez p1, :cond_99 .line 626 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->setErrorPlaceholder()V :try_end_99 .catchall {:try_start_5a .. :try_end_99} :catchall_a0 .line 629 :cond_99 :try_start_99 iput-boolean v0, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z .line 632 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->notifyLoadFailed()V :try_end_9e .catchall {:try_start_99 .. :try_end_9e} :catchall_a4 .line 633 monitor-exit p0 return-void :catchall_a0 move-exception p1 .line 629 :try_start_a1 iput-boolean v0, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z throw p1 :catchall_a4 move-exception p1 monitor-exit p0 :try_end_a6 .catchall {:try_start_a1 .. :try_end_a6} :catchall_a4 throw p1 .end method .method private declared-synchronized onResourceReady(Lcom/bumptech/glide/load/engine/Resource;Ljava/lang/Object;Lcom/bumptech/glide/load/DataSource;)V .registers 14 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/bumptech/glide/load/engine/Resource<", "TR;>;TR;", "Lcom/bumptech/glide/load/DataSource;", ")V" } .end annotation const-string v0, "Finished loading " monitor-enter p0 .line 556 :try_start_3 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->isFirstReadyResource()Z move-result v7 .line 557 sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$Status; iput-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; .line 558 iput-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource; .line 560 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 v1, 0x3 if-gt p1, v1, :cond_74 .line 561 const-string p1, "Glide" new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V 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 {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, " from " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, " for " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, " with size [" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->width:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, "x" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->height:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, "] in " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-wide v1, p0, Lcom/bumptech/glide/request/SingleRequest;->startTime:J .line 563 invoke-static {v1, v2}, Lcom/bumptech/glide/util/LogTime;->getElapsedMillis(J)D move-result-wide v1 invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, " ms" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 .line 561 invoke-static {p1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I :cond_74 const/4 p1, 0x1 .line 566 iput-boolean p1, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z :try_end_77 .catchall {:try_start_3 .. :try_end_77} :catchall_c7 const/4 v0, 0x0 .line 569 :try_start_78 iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List; if-eqz v1, :cond_9a .line 570 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v8 move v9, v0 :goto_81 invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_9b invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/bumptech/glide/request/RequestListener; .line 571 iget-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; iget-object v4, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target; move-object v2, p2 move-object v5, p3 move v6, v7 .line 572 invoke-interface/range {v1 .. v6}, 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 v1 or-int/2addr v9, v1 goto :goto_81 :cond_9a move v9, v0 .line 575 :cond_9b iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/RequestListener; if-eqz v1, :cond_ad iget-object v3, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; iget-object v4, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target; move-object v2, p2 move-object v5, p3 move v6, v7 .line 577 invoke-interface/range {v1 .. v6}, 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 v1 if-eqz v1, :cond_ad goto :goto_ae :cond_ad move p1, v0 :goto_ae or-int/2addr p1, v9 if-nez p1, :cond_bc .line 580 iget-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->animationFactory:Lcom/bumptech/glide/request/transition/TransitionFactory; .line 581 invoke-interface {p1, p3, v7}, Lcom/bumptech/glide/request/transition/TransitionFactory;->build(Lcom/bumptech/glide/load/DataSource;Z)Lcom/bumptech/glide/request/transition/Transition; move-result-object p1 .line 582 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_bc .catchall {:try_start_78 .. :try_end_bc} :catchall_c3 .line 585 :cond_bc :try_start_bc iput-boolean v0, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z .line 588 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->notifyLoadSuccess()V :try_end_c1 .catchall {:try_start_bc .. :try_end_c1} :catchall_c7 .line 589 monitor-exit p0 return-void :catchall_c3 move-exception p1 .line 585 :try_start_c4 iput-boolean v0, p0, Lcom/bumptech/glide/request/SingleRequest;->isCallingCallbacks:Z throw p1 :catchall_c7 move-exception p1 monitor-exit p0 :try_end_c9 .catchall {:try_start_c4 .. :try_end_c9} :catchall_c7 throw p1 .end method .method private releaseResource(Lcom/bumptech/glide/load/engine/Resource;)V .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/bumptech/glide/load/engine/Resource<", "*>;)V" } .end annotation .line 340 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->engine:Lcom/bumptech/glide/load/engine/Engine; invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/engine/Engine;->release(Lcom/bumptech/glide/load/engine/Resource;)V const/4 p1, 0x0 .line 341 iput-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource; return-void .end method .method private declared-synchronized setErrorPlaceholder()V .registers 3 monitor-enter p0 .line 406 :try_start_1 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canNotifyStatusChanged()Z move-result v0 :try_end_5 .catchall {:try_start_1 .. :try_end_5} :catchall_26 if-nez v0, :cond_9 .line 407 monitor-exit p0 return-void .line 411 :cond_9 :try_start_9 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; if-nez v0, :cond_12 .line 412 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getFallbackDrawable()Landroid/graphics/drawable/Drawable; move-result-object v0 goto :goto_13 :cond_12 const/4 v0, 0x0 :goto_13 if-nez v0, :cond_19 .line 416 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getErrorDrawable()Landroid/graphics/drawable/Drawable; move-result-object v0 :cond_19 if-nez v0, :cond_1f .line 420 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getPlaceholderDrawable()Landroid/graphics/drawable/Drawable; move-result-object v0 .line 422 :cond_1f 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 :try_end_24 .catchall {:try_start_9 .. :try_end_24} :catchall_26 .line 423 monitor-exit p0 return-void :catchall_26 move-exception v0 :try_start_27 monitor-exit p0 :try_end_28 .catchall {:try_start_27 .. :try_end_28} :catchall_26 throw v0 .end method # virtual methods .method public declared-synchronized begin()V .registers 5 const-string v0, "finished run method in " monitor-enter p0 .line 235 :try_start_3 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V .line 236 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 237 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 238 iget-object v1, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; if-nez v1, :cond_3c .line 239 iget v0, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I iget v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I invoke-static {v0, v1}, Lcom/bumptech/glide/util/Util;->isValidDimensions(II)Z move-result v0 if-eqz v0, :cond_27 .line 240 iget v0, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I iput v0, p0, Lcom/bumptech/glide/request/SingleRequest;->width:I .line 241 iget v0, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I iput v0, p0, Lcom/bumptech/glide/request/SingleRequest;->height:I .line 245 :cond_27 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->getFallbackDrawable()Landroid/graphics/drawable/Drawable; move-result-object v0 if-nez v0, :cond_2f const/4 v0, 0x5 goto :goto_30 :cond_2f const/4 v0, 0x3 .line 246 :goto_30 new-instance v1, Lcom/bumptech/glide/load/engine/GlideException; const-string v2, "Received null model" invoke-direct {v1, v2}, Lcom/bumptech/glide/load/engine/GlideException;->(Ljava/lang/String;)V invoke-direct {p0, v1, v0}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;I)V :try_end_3a .catchall {:try_start_3 .. :try_end_3a} :catchall_ab .line 247 monitor-exit p0 return-void .line 250 :cond_3c :try_start_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_a3 .line 260 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_51 .line 261 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource; sget-object v1, Lcom/bumptech/glide/load/DataSource;->MEMORY_CACHE:Lcom/bumptech/glide/load/DataSource; invoke-virtual {p0, v0, v1}, Lcom/bumptech/glide/request/SingleRequest;->onResourceReady(Lcom/bumptech/glide/load/engine/Resource;Lcom/bumptech/glide/load/DataSource;)V :try_end_4f .catchall {:try_start_3c .. :try_end_4f} :catchall_ab .line 262 monitor-exit p0 return-void .line 268 :cond_51 :try_start_51 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 269 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_67 .line 270 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_6c .line 272 :cond_67 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 275 :goto_6c 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_78 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_87 .line 276 :cond_78 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canNotifyStatusChanged()Z move-result v1 if-eqz v1, :cond_87 .line 277 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 279 :cond_87 sget-boolean v1, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z if-eqz v1, :cond_a1 .line 280 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V 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 v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Lcom/bumptech/glide/request/SingleRequest;->logV(Ljava/lang/String;)V :try_end_a1 .catchall {:try_start_51 .. :try_end_a1} :catchall_ab .line 282 :cond_a1 monitor-exit p0 return-void .line 251 :cond_a3 :try_start_a3 new-instance v0, Ljava/lang/IllegalArgumentException; const-string v1, "Cannot restart a running request" invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 :catchall_ab move-exception v0 monitor-exit p0 :try_end_ad .catchall {:try_start_a3 .. :try_end_ad} :catchall_ab throw v0 .end method .method public declared-synchronized clear()V .registers 3 monitor-enter p0 .line 322 :try_start_1 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V .line 323 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 324 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->CLEARED:Lcom/bumptech/glide/request/SingleRequest$Status; :try_end_d .catchall {:try_start_1 .. :try_end_d} :catchall_30 if-ne v0, v1, :cond_11 .line 325 monitor-exit p0 return-void .line 327 :cond_11 :try_start_11 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->cancel()V .line 329 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->resource:Lcom/bumptech/glide/load/engine/Resource; if-eqz v0, :cond_1b .line 330 invoke-direct {p0, v0}, Lcom/bumptech/glide/request/SingleRequest;->releaseResource(Lcom/bumptech/glide/load/engine/Resource;)V .line 332 :cond_1b invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canNotifyCleared()Z move-result v0 if-eqz v0, :cond_2a .line 333 iget-object v0, 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 v1 invoke-interface {v0, v1}, Lcom/bumptech/glide/request/target/Target;->onLoadCleared(Landroid/graphics/drawable/Drawable;)V .line 336 :cond_2a sget-object v0, Lcom/bumptech/glide/request/SingleRequest$Status;->CLEARED:Lcom/bumptech/glide/request/SingleRequest$Status; iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; :try_end_2e .catchall {:try_start_11 .. :try_end_2e} :catchall_30 .line 337 monitor-exit p0 return-void :catchall_30 move-exception v0 :try_start_31 monitor-exit p0 :try_end_32 .catchall {:try_start_31 .. :try_end_32} :catchall_30 throw v0 .end method .method public getVerifier()Lcom/bumptech/glide/util/pool/StateVerifier; .registers 2 .line 205 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier; return-object v0 .end method .method public declared-synchronized isCleared()Z .registers 3 monitor-enter p0 .line 361 :try_start_1 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->CLEARED:Lcom/bumptech/glide/request/SingleRequest$Status; :try_end_5 .catchall {:try_start_1 .. :try_end_5} :catchall_c if-ne v0, v1, :cond_9 const/4 v0, 0x1 goto :goto_a :cond_9 const/4 v0, 0x0 :goto_a monitor-exit p0 return v0 :catchall_c move-exception v0 :try_start_d monitor-exit p0 :try_end_e .catchall {:try_start_d .. :try_end_e} :catchall_c throw v0 .end method .method public declared-synchronized isComplete()Z .registers 3 monitor-enter p0 .line 351 :try_start_1 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$Status; :try_end_5 .catchall {:try_start_1 .. :try_end_5} :catchall_c if-ne v0, v1, :cond_9 const/4 v0, 0x1 goto :goto_a :cond_9 const/4 v0, 0x0 :goto_a monitor-exit p0 return v0 :catchall_c move-exception v0 :try_start_d monitor-exit p0 :try_end_e .catchall {:try_start_d .. :try_end_e} :catchall_c throw v0 .end method .method public declared-synchronized isEquivalentTo(Lcom/bumptech/glide/request/Request;)Z .registers 5 monitor-enter p0 .line 638 :try_start_1 instance-of v0, p1, Lcom/bumptech/glide/request/SingleRequest; const/4 v1, 0x0 if-eqz v0, :cond_46 .line 639 check-cast p1, Lcom/bumptech/glide/request/SingleRequest; .line 640 monitor-enter p1 :try_end_9 .catchall {:try_start_1 .. :try_end_9} :catchall_48 .line 641 :try_start_9 iget v0, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I iget v2, p1, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I if-ne v0, v2, :cond_40 iget v0, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I iget v2, p1, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I if-ne v0, v2, :cond_40 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; iget-object v2, p1, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; .line 643 invoke-static {v0, v2}, Lcom/bumptech/glide/util/Util;->bothModelsNullEquivalentOrEquals(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_40 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class; iget-object v2, p1, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class; .line 644 invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_40 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions; iget-object v2, p1, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions; .line 645 invoke-virtual {v0, v2}, Lcom/bumptech/glide/request/BaseRequestOptions;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_40 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/Priority; iget-object v2, p1, Lcom/bumptech/glide/request/SingleRequest;->priority:Lcom/bumptech/glide/Priority; if-ne v0, v2, :cond_40 .line 650 invoke-direct {p0, p1}, Lcom/bumptech/glide/request/SingleRequest;->listenerCountEquals(Lcom/bumptech/glide/request/SingleRequest;)Z move-result v0 if-eqz v0, :cond_40 const/4 v1, 0x1 :cond_40 monitor-exit p1 :try_end_41 .catchall {:try_start_9 .. :try_end_41} :catchall_43 .line 641 monitor-exit p0 return v1 :catchall_43 move-exception v0 .line 651 :try_start_44 monitor-exit p1 :try_end_45 .catchall {:try_start_44 .. :try_end_45} :catchall_43 :try_start_45 throw v0 :try_end_46 .catchall {:try_start_45 .. :try_end_46} :catchall_48 .line 653 :cond_46 monitor-exit p0 return v1 :catchall_48 move-exception p1 :try_start_49 monitor-exit p0 :try_end_4a .catchall {:try_start_49 .. :try_end_4a} :catchall_48 throw p1 .end method .method public declared-synchronized isFailed()Z .registers 3 monitor-enter p0 .line 366 :try_start_1 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->FAILED:Lcom/bumptech/glide/request/SingleRequest$Status; :try_end_5 .catchall {:try_start_1 .. :try_end_5} :catchall_c if-ne v0, v1, :cond_9 const/4 v0, 0x1 goto :goto_a :cond_9 const/4 v0, 0x0 :goto_a monitor-exit p0 return v0 :catchall_c move-exception v0 :try_start_d monitor-exit p0 :try_end_e .catchall {:try_start_d .. :try_end_e} :catchall_c throw v0 .end method .method public declared-synchronized isResourceSet()Z .registers 2 monitor-enter p0 .line 356 :try_start_1 invoke-virtual {p0}, Lcom/bumptech/glide/request/SingleRequest;->isComplete()Z move-result v0 :try_end_5 .catchall {:try_start_1 .. :try_end_5} :catchall_7 monitor-exit p0 return v0 :catchall_7 move-exception v0 :try_start_8 monitor-exit p0 :try_end_9 .catchall {:try_start_8 .. :try_end_9} :catchall_7 throw v0 .end method .method public declared-synchronized isRunning()Z .registers 3 monitor-enter p0 .line 346 :try_start_1 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$Status; if-eq v0, v1, :cond_10 iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; sget-object v1, Lcom/bumptech/glide/request/SingleRequest$Status;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$Status; :try_end_b .catchall {:try_start_1 .. :try_end_b} :catchall_13 if-ne v0, v1, :cond_e goto :goto_10 :cond_e const/4 v0, 0x0 goto :goto_11 :cond_10 :goto_10 const/4 v0, 0x1 :goto_11 monitor-exit p0 return v0 :catchall_13 move-exception v0 :try_start_14 monitor-exit p0 :try_end_15 .catchall {:try_start_14 .. :try_end_15} :catchall_13 throw v0 .end method .method public declared-synchronized onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;)V .registers 3 monitor-enter p0 const/4 v0, 0x5 .line 594 :try_start_2 invoke-direct {p0, p1, v0}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;I)V :try_end_5 .catchall {:try_start_2 .. :try_end_5} :catchall_7 .line 595 monitor-exit p0 return-void :catchall_7 move-exception p1 :try_start_8 monitor-exit p0 :try_end_9 .catchall {:try_start_8 .. :try_end_9} :catchall_7 throw p1 .end method .method public declared-synchronized onResourceReady(Lcom/bumptech/glide/load/engine/Resource;Lcom/bumptech/glide/load/DataSource;)V .registers 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/bumptech/glide/load/engine/Resource<", "*>;", "Lcom/bumptech/glide/load/DataSource;", ")V" } .end annotation const-string v0, "Expected to receive an object of " const-string v1, "Expected to receive a Resource with an object of " monitor-enter p0 .line 515 :try_start_5 iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier; invoke-virtual {v2}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V const/4 v2, 0x0 .line 516 iput-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus; if-nez p1, :cond_2e .line 518 new-instance p1, Lcom/bumptech/glide/load/engine/GlideException; new-instance p2, Ljava/lang/StringBuilder; invoke-direct {p2, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class; invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p2 const-string v0, " inside, but instead got null." invoke-virtual {p2, v0}, 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;->(Ljava/lang/String;)V .line 520 invoke-virtual {p0, p1}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;)V :try_end_2c .catchall {:try_start_5 .. :try_end_2c} :catchall_a9 .line 521 monitor-exit p0 return-void .line 524 :cond_2e :try_start_2e invoke-interface {p1}, Lcom/bumptech/glide/load/engine/Resource;->get()Ljava/lang/Object; move-result-object v1 if-eqz v1, :cond_55 .line 525 iget-object v2, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class; invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v3 invoke-virtual {v2, v3}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z move-result v2 if-nez v2, :cond_41 goto :goto_55 .line 537 :cond_41 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->canSetResource()Z move-result v0 if-nez v0, :cond_50 .line 538 invoke-direct {p0, p1}, Lcom/bumptech/glide/request/SingleRequest;->releaseResource(Lcom/bumptech/glide/load/engine/Resource;)V .line 540 sget-object p1, Lcom/bumptech/glide/request/SingleRequest$Status;->COMPLETE:Lcom/bumptech/glide/request/SingleRequest$Status; iput-object p1, p0, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; :try_end_4e .catchall {:try_start_2e .. :try_end_4e} :catchall_a9 .line 541 monitor-exit p0 return-void .line 544 :cond_50 :try_start_50 invoke-direct {p0, p1, v1, p2}, Lcom/bumptech/glide/request/SingleRequest;->onResourceReady(Lcom/bumptech/glide/load/engine/Resource;Ljava/lang/Object;Lcom/bumptech/glide/load/DataSource;)V :try_end_53 .catchall {:try_start_50 .. :try_end_53} :catchall_a9 .line 545 monitor-exit p0 return-void .line 526 :cond_55 :goto_55 :try_start_55 invoke-direct {p0, p1}, Lcom/bumptech/glide/request/SingleRequest;->releaseResource(Lcom/bumptech/glide/load/engine/Resource;)V .line 527 new-instance p2, Lcom/bumptech/glide/load/engine/GlideException; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class; invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, " but instead got " invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 if-eqz v1, :cond_72 .line 529 invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v2 goto :goto_74 :cond_72 const-string v2, "" :goto_74 invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, "{" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, "} inside Resource{" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p1 const-string v0, "}." invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 if-eqz v1, :cond_97 .line 531 const-string v0, "" goto :goto_99 :cond_97 const-string v0, " To indicate failure return a null Resource object, rather than a Resource object containing null data." :goto_99 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 invoke-direct {p2, p1}, Lcom/bumptech/glide/load/engine/GlideException;->(Ljava/lang/String;)V .line 533 invoke-virtual {p0, p2}, Lcom/bumptech/glide/request/SingleRequest;->onLoadFailed(Lcom/bumptech/glide/load/engine/GlideException;)V :try_end_a7 .catchall {:try_start_55 .. :try_end_a7} :catchall_a9 .line 534 monitor-exit p0 return-void :catchall_a9 move-exception p1 :try_start_aa monitor-exit p0 :try_end_ab .catchall {:try_start_aa .. :try_end_ab} :catchall_a9 throw p1 .end method .method public declared-synchronized onSizeReady(II)V .registers 26 move-object/from16 v15, p0 const-string v0, "finished onSizeReady in " const-string v1, "finished setup for calling load in " const-string v2, "Got onSizeReady in " monitor-enter p0 .line 430 :try_start_9 iget-object v3, v15, Lcom/bumptech/glide/request/SingleRequest;->stateVerifier:Lcom/bumptech/glide/util/pool/StateVerifier; invoke-virtual {v3}, Lcom/bumptech/glide/util/pool/StateVerifier;->throwIfRecycled()V .line 431 sget-boolean v21, Lcom/bumptech/glide/request/SingleRequest;->IS_VERBOSE_LOGGABLE:Z if-eqz v21, :cond_28 .line 432 new-instance v3, Ljava/lang/StringBuilder; invoke-direct {v3, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-wide v4, v15, Lcom/bumptech/glide/request/SingleRequest;->startTime:J invoke-static {v4, v5}, Lcom/bumptech/glide/util/LogTime;->getElapsedMillis(J)D move-result-wide v4 invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 invoke-direct {v15, v2}, Lcom/bumptech/glide/request/SingleRequest;->logV(Ljava/lang/String;)V .line 434 :cond_28 iget-object v2, v15, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; sget-object v3, Lcom/bumptech/glide/request/SingleRequest$Status;->WAITING_FOR_SIZE:Lcom/bumptech/glide/request/SingleRequest$Status; :try_end_2c .catchall {:try_start_9 .. :try_end_2c} :catchall_ef if-eq v2, v3, :cond_30 .line 435 monitor-exit p0 return-void .line 437 :cond_30 :try_start_30 sget-object v2, Lcom/bumptech/glide/request/SingleRequest$Status;->RUNNING:Lcom/bumptech/glide/request/SingleRequest$Status; iput-object v2, v15, Lcom/bumptech/glide/request/SingleRequest;->status:Lcom/bumptech/glide/request/SingleRequest$Status; .line 439 iget-object v2, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions; invoke-virtual {v2}, Lcom/bumptech/glide/request/BaseRequestOptions;->getSizeMultiplier()F move-result v2 move/from16 v3, p1 .line 440 invoke-static {v3, v2}, Lcom/bumptech/glide/request/SingleRequest;->maybeApplySizeMultiplier(IF)I move-result v3 iput v3, v15, Lcom/bumptech/glide/request/SingleRequest;->width:I move/from16 v3, p2 .line 441 invoke-static {v3, v2}, Lcom/bumptech/glide/request/SingleRequest;->maybeApplySizeMultiplier(IF)I move-result v2 iput v2, v15, Lcom/bumptech/glide/request/SingleRequest;->height:I if-eqz v21, :cond_62 .line 444 new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-wide v3, v15, Lcom/bumptech/glide/request/SingleRequest;->startTime:J invoke-static {v3, v4}, Lcom/bumptech/glide/util/LogTime;->getElapsedMillis(J)D move-result-wide v3 invoke-virtual {v2, v3, v4}, 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 446 :cond_62 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 450 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 453 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 456 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 457 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 458 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 459 invoke-virtual {v13}, Lcom/bumptech/glide/request/BaseRequestOptions;->isScaleOnlyOrNoTransform()Z move-result v13 iget-object v14, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions; .line 460 invoke-virtual {v14}, Lcom/bumptech/glide/request/BaseRequestOptions;->getOptions()Lcom/bumptech/glide/load/Options; move-result-object v14 move-object/from16 v22, v0 iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions; .line 461 invoke-virtual {v0}, Lcom/bumptech/glide/request/BaseRequestOptions;->isMemoryCacheable()Z move-result v0 move/from16 p1, v0 iget-object v0, v15, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions; .line 462 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 463 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 464 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_b8 .catchall {:try_start_30 .. :try_end_b8} :catchall_ef move/from16 v15, p1 move-object/from16 v19, p0 move-object/from16 v20, v0 .line 447 :try_start_be 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_c2 .catchall {:try_start_be .. :try_end_c2} :catchall_eb move-object/from16 v1, p0 :try_start_c4 iput-object v0, v1, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus; .line 471 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_cf const/4 v0, 0x0 .line 472 iput-object v0, v1, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus; :cond_cf if-eqz v21, :cond_e9 .line 475 new-instance v0, Ljava/lang/StringBuilder; move-object/from16 v2, v22 invoke-direct {v0, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V 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 :try_end_e9 .catchall {:try_start_c4 .. :try_end_e9} :catchall_f3 .line 477 :cond_e9 monitor-exit p0 return-void :catchall_eb move-exception v0 move-object/from16 v1, p0 goto :goto_f1 :catchall_ef move-exception v0 move-object v1, v15 :goto_f1 :try_start_f1 monitor-exit p0 :try_end_f2 .catchall {:try_start_f1 .. :try_end_f2} :catchall_f3 throw v0 :catchall_f3 move-exception v0 goto :goto_f1 .end method .method public declared-synchronized recycle()V .registers 3 monitor-enter p0 .line 210 :try_start_1 invoke-direct {p0}, Lcom/bumptech/glide/request/SingleRequest;->assertNotCallingCallbacks()V const/4 v0, 0x0 .line 211 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->context:Landroid/content/Context; .line 212 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->glideContext:Lcom/bumptech/glide/GlideContext; .line 213 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->model:Ljava/lang/Object; .line 214 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->transcodeClass:Ljava/lang/Class; .line 215 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOptions:Lcom/bumptech/glide/request/BaseRequestOptions; const/4 v1, -0x1 .line 216 iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideWidth:I .line 217 iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->overrideHeight:I .line 218 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->target:Lcom/bumptech/glide/request/target/Target; .line 219 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestListeners:Ljava/util/List; .line 220 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->targetListener:Lcom/bumptech/glide/request/RequestListener; .line 221 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestCoordinator:Lcom/bumptech/glide/request/RequestCoordinator; .line 222 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->animationFactory:Lcom/bumptech/glide/request/transition/TransitionFactory; .line 223 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->loadStatus:Lcom/bumptech/glide/load/engine/Engine$LoadStatus; .line 224 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->errorDrawable:Landroid/graphics/drawable/Drawable; .line 225 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->placeholderDrawable:Landroid/graphics/drawable/Drawable; .line 226 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->fallbackDrawable:Landroid/graphics/drawable/Drawable; .line 227 iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->width:I .line 228 iput v1, p0, Lcom/bumptech/glide/request/SingleRequest;->height:I .line 229 iput-object v0, p0, Lcom/bumptech/glide/request/SingleRequest;->requestOrigin:Ljava/lang/RuntimeException; .line 230 sget-object v0, Lcom/bumptech/glide/request/SingleRequest;->POOL:Landroidx/core/util/Pools$Pool; invoke-interface {v0, p0}, Landroidx/core/util/Pools$Pool;->release(Ljava/lang/Object;)Z :try_end_31 .catchall {:try_start_1 .. :try_end_31} :catchall_33 .line 231 monitor-exit p0 return-void :catchall_33 move-exception v0 :try_start_34 monitor-exit p0 :try_end_35 .catchall {:try_start_34 .. :try_end_35} :catchall_33 throw v0 .end method