f.smali

.class Lcom/bumptech/glide/load/resource/c/f;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bumptech/glide/load/resource/c/f$1;,
        Lcom/bumptech/glide/load/resource/c/f$d;,
        Lcom/bumptech/glide/load/resource/c/f$a;,
        Lcom/bumptech/glide/load/resource/c/f$c;,
        Lcom/bumptech/glide/load/resource/c/f$b;
    }
.end annotation


# instance fields
.field private final a:Lcom/bumptech/glide/load/resource/c/f$b;

.field private final b:Lcom/bumptech/glide/b/a;

.field private final c:Landroid/os/Handler;

.field private d:Z

.field private e:Z

.field private f:Lcom/bumptech/glide/e;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/e",
            "<",
            "Lcom/bumptech/glide/b/a;",
            "Lcom/bumptech/glide/b/a;",
            "Landroid/graphics/Bitmap;",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation
.end field

.field private g:Lcom/bumptech/glide/load/resource/c/f$a;

.field private h:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/load/resource/c/f$b;Lcom/bumptech/glide/b/a;II)V
    .registers 8

    const/4 v0, 0x0

    invoke-static {p1}, Lcom/bumptech/glide/i;->a(Landroid/content/Context;)Lcom/bumptech/glide/i;

    move-result-object v1

    invoke-virtual {v1}, Lcom/bumptech/glide/i;->a()Lcom/bumptech/glide/load/engine/a/c;

    move-result-object v1

    invoke-static {p1, p3, p4, p5, v1}, Lcom/bumptech/glide/load/resource/c/f;->a(Landroid/content/Context;Lcom/bumptech/glide/b/a;IILcom/bumptech/glide/load/engine/a/c;)Lcom/bumptech/glide/e;

    move-result-object v1

    invoke-direct {p0, p2, p3, v0, v1}, Lcom/bumptech/glide/load/resource/c/f;-><init>(Lcom/bumptech/glide/load/resource/c/f$b;Lcom/bumptech/glide/b/a;Landroid/os/Handler;Lcom/bumptech/glide/e;)V

    return-void
.end method

.method constructor <init>(Lcom/bumptech/glide/load/resource/c/f$b;Lcom/bumptech/glide/b/a;Landroid/os/Handler;Lcom/bumptech/glide/e;)V
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/resource/c/f$b;",
            "Lcom/bumptech/glide/b/a;",
            "Landroid/os/Handler;",
            "Lcom/bumptech/glide/e",
            "<",
            "Lcom/bumptech/glide/b/a;",
            "Lcom/bumptech/glide/b/a;",
            "Landroid/graphics/Bitmap;",
            "Landroid/graphics/Bitmap;",
            ">;)V"
        }
    .end annotation

    const/4 v0, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->d:Z

    iput-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->e:Z

    if-nez p3, :cond_19

    new-instance p3, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    new-instance v1, Lcom/bumptech/glide/load/resource/c/f$c;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/bumptech/glide/load/resource/c/f$c;-><init>(Lcom/bumptech/glide/load/resource/c/f;Lcom/bumptech/glide/load/resource/c/f$1;)V

    invoke-direct {p3, v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V

    :cond_19
    iput-object p1, p0, Lcom/bumptech/glide/load/resource/c/f;->a:Lcom/bumptech/glide/load/resource/c/f$b;

    iput-object p2, p0, Lcom/bumptech/glide/load/resource/c/f;->b:Lcom/bumptech/glide/b/a;

    iput-object p3, p0, Lcom/bumptech/glide/load/resource/c/f;->c:Landroid/os/Handler;

    iput-object p4, p0, Lcom/bumptech/glide/load/resource/c/f;->f:Lcom/bumptech/glide/e;

    return-void
.end method

.method private static a(Landroid/content/Context;Lcom/bumptech/glide/b/a;IILcom/bumptech/glide/load/engine/a/c;)Lcom/bumptech/glide/e;
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/bumptech/glide/b/a;",
            "II",
            "Lcom/bumptech/glide/load/engine/a/c;",
            ")",
            "Lcom/bumptech/glide/e",
            "<",
            "Lcom/bumptech/glide/b/a;",
            "Lcom/bumptech/glide/b/a;",
            "Landroid/graphics/Bitmap;",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation

    new-instance v0, Lcom/bumptech/glide/load/resource/c/h;

    invoke-direct {v0, p4}, Lcom/bumptech/glide/load/resource/c/h;-><init>(Lcom/bumptech/glide/load/engine/a/c;)V

    new-instance v1, Lcom/bumptech/glide/load/resource/c/g;

    invoke-direct {v1}, Lcom/bumptech/glide/load/resource/c/g;-><init>()V

    invoke-static {}, Lcom/bumptech/glide/load/resource/a;->b()Lcom/bumptech/glide/load/a;

    move-result-object v2

    invoke-static {p0}, Lcom/bumptech/glide/i;->b(Landroid/content/Context;)Lcom/bumptech/glide/k;

    move-result-object v3

    const-class v4, Lcom/bumptech/glide/b/a;

    invoke-virtual {v3, v1, v4}, Lcom/bumptech/glide/k;->a(Lcom/bumptech/glide/load/b/l;Ljava/lang/Class;)Lcom/bumptech/glide/k$b;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/bumptech/glide/k$b;->a(Ljava/lang/Object;)Lcom/bumptech/glide/k$b$a;

    move-result-object v1

    const-class v3, Landroid/graphics/Bitmap;

    invoke-virtual {v1, v3}, Lcom/bumptech/glide/k$b$a;->a(Ljava/lang/Class;)Lcom/bumptech/glide/f;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/bumptech/glide/f;->b(Lcom/bumptech/glide/load/a;)Lcom/bumptech/glide/e;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/bumptech/glide/e;->b(Lcom/bumptech/glide/load/d;)Lcom/bumptech/glide/e;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/e;->b(Z)Lcom/bumptech/glide/e;

    move-result-object v0

    sget-object v1, Lcom/bumptech/glide/load/engine/DiskCacheStrategy;->b:Lcom/bumptech/glide/load/engine/DiskCacheStrategy;

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/e;->b(Lcom/bumptech/glide/load/engine/DiskCacheStrategy;)Lcom/bumptech/glide/e;

    move-result-object v0

    invoke-virtual {v0, p2, p3}, Lcom/bumptech/glide/e;->b(II)Lcom/bumptech/glide/e;

    move-result-object v0

    return-object v0
.end method

.method private e()V
    .registers 6

    iget-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->d:Z

    if-eqz v0, :cond_8

    iget-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->e:Z

    if-eqz v0, :cond_9

    :cond_8
    :goto_8
    return-void

    :cond_9
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->e:Z

    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iget-object v2, p0, Lcom/bumptech/glide/load/resource/c/f;->b:Lcom/bumptech/glide/b/a;

    invoke-virtual {v2}, Lcom/bumptech/glide/b/a;->b()I

    move-result v2

    int-to-long v2, v2

    add-long/2addr v0, v2

    iget-object v2, p0, Lcom/bumptech/glide/load/resource/c/f;->b:Lcom/bumptech/glide/b/a;

    invoke-virtual {v2}, Lcom/bumptech/glide/b/a;->a()V

    new-instance v2, Lcom/bumptech/glide/load/resource/c/f$a;

    iget-object v3, p0, Lcom/bumptech/glide/load/resource/c/f;->c:Landroid/os/Handler;

    iget-object v4, p0, Lcom/bumptech/glide/load/resource/c/f;->b:Lcom/bumptech/glide/b/a;

    invoke-virtual {v4}, Lcom/bumptech/glide/b/a;->d()I

    move-result v4

    invoke-direct {v2, v3, v4, v0, v1}, Lcom/bumptech/glide/load/resource/c/f$a;-><init>(Landroid/os/Handler;IJ)V

    iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->f:Lcom/bumptech/glide/e;

    new-instance v1, Lcom/bumptech/glide/load/resource/c/f$d;

    invoke-direct {v1}, Lcom/bumptech/glide/load/resource/c/f$d;-><init>()V

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/e;->b(Lcom/bumptech/glide/load/b;)Lcom/bumptech/glide/e;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/bumptech/glide/e;->a(Lcom/bumptech/glide/request/b/j;)Lcom/bumptech/glide/request/b/j;

    goto :goto_8
.end method


# virtual methods
.method public a()V
    .registers 2

    iget-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->d:Z

    if-eqz v0, :cond_5

    :goto_4
    return-void

    :cond_5
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->d:Z

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->h:Z

    invoke-direct {p0}, Lcom/bumptech/glide/load/resource/c/f;->e()V

    goto :goto_4
.end method

.method public a(Lcom/bumptech/glide/load/f;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/f",
            "<",
            "Landroid/graphics/Bitmap;",
            ">;)V"
        }
    .end annotation

    if-nez p1, :cond_b

    new-instance v0, Ljava/lang/NullPointerException;

    const-string/jumbo v1, "Transformation must not be null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_b
    iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->f:Lcom/bumptech/glide/e;

    const/4 v1, 0x1

    new-array v1, v1, [Lcom/bumptech/glide/load/f;

    const/4 v2, 0x0

    aput-object p1, v1, v2

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/e;->b([Lcom/bumptech/glide/load/f;)Lcom/bumptech/glide/e;

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->f:Lcom/bumptech/glide/e;

    return-void
.end method

.method a(Lcom/bumptech/glide/load/resource/c/f$a;)V
    .registers 6

    const/4 v3, 0x2

    iget-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->h:Z

    if-eqz v0, :cond_f

    iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->c:Landroid/os/Handler;

    invoke-virtual {v0, v3, p1}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    :goto_e
    return-void

    :cond_f
    iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->g:Lcom/bumptech/glide/load/resource/c/f$a;

    iput-object p1, p0, Lcom/bumptech/glide/load/resource/c/f;->g:Lcom/bumptech/glide/load/resource/c/f$a;

    iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/f;->a:Lcom/bumptech/glide/load/resource/c/f$b;

    invoke-static {p1}, Lcom/bumptech/glide/load/resource/c/f$a;->a(Lcom/bumptech/glide/load/resource/c/f$a;)I

    move-result v2

    invoke-interface {v1, v2}, Lcom/bumptech/glide/load/resource/c/f$b;->b(I)V

    if-eqz v0, :cond_27

    iget-object v1, p0, Lcom/bumptech/glide/load/resource/c/f;->c:Landroid/os/Handler;

    invoke-virtual {v1, v3, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V

    :cond_27
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->e:Z

    invoke-direct {p0}, Lcom/bumptech/glide/load/resource/c/f;->e()V

    goto :goto_e
.end method

.method public b()V
    .registers 2

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->d:Z

    return-void
.end method

.method public c()V
    .registers 2

    invoke-virtual {p0}, Lcom/bumptech/glide/load/resource/c/f;->b()V

    iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->g:Lcom/bumptech/glide/load/resource/c/f$a;

    if-eqz v0, :cond_f

    iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->g:Lcom/bumptech/glide/load/resource/c/f$a;

    invoke-static {v0}, Lcom/bumptech/glide/i;->a(Lcom/bumptech/glide/request/b/j;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->g:Lcom/bumptech/glide/load/resource/c/f$a;

    :cond_f
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/bumptech/glide/load/resource/c/f;->h:Z

    return-void
.end method

.method public d()Landroid/graphics/Bitmap;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->g:Lcom/bumptech/glide/load/resource/c/f$a;

    if-eqz v0, :cond_b

    iget-object v0, p0, Lcom/bumptech/glide/load/resource/c/f;->g:Lcom/bumptech/glide/load/resource/c/f$a;

    invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/c/f$a;->a()Landroid/graphics/Bitmap;

    move-result-object v0

    :goto_a
    return-object v0

    :cond_b
    const/4 v0, 0x0

    goto :goto_a
.end method