k.smali

.class public Lcom/bumptech/glide/k;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/bumptech/glide/manager/h;


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


# instance fields
.field private final a:Landroid/content/Context;

.field private final b:Lcom/bumptech/glide/manager/g;

.field private final c:Lcom/bumptech/glide/manager/k;

.field private final d:Lcom/bumptech/glide/manager/l;

.field private final e:Lcom/bumptech/glide/i;

.field private final f:Lcom/bumptech/glide/k$c;

.field private g:Lcom/bumptech/glide/k$a;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/manager/g;Lcom/bumptech/glide/manager/k;)V
    .registers 10

    new-instance v4, Lcom/bumptech/glide/manager/l;

    invoke-direct {v4}, Lcom/bumptech/glide/manager/l;-><init>()V

    new-instance v5, Lcom/bumptech/glide/manager/d;

    invoke-direct {v5}, Lcom/bumptech/glide/manager/d;-><init>()V

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    invoke-direct/range {v0 .. v5}, Lcom/bumptech/glide/k;-><init>(Landroid/content/Context;Lcom/bumptech/glide/manager/g;Lcom/bumptech/glide/manager/k;Lcom/bumptech/glide/manager/l;Lcom/bumptech/glide/manager/d;)V

    return-void
.end method

.method constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/manager/g;Lcom/bumptech/glide/manager/k;Lcom/bumptech/glide/manager/l;Lcom/bumptech/glide/manager/d;)V
    .registers 9

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

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/k;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/bumptech/glide/k;->b:Lcom/bumptech/glide/manager/g;

    iput-object p3, p0, Lcom/bumptech/glide/k;->c:Lcom/bumptech/glide/manager/k;

    iput-object p4, p0, Lcom/bumptech/glide/k;->d:Lcom/bumptech/glide/manager/l;

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

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/k;->e:Lcom/bumptech/glide/i;

    new-instance v0, Lcom/bumptech/glide/k$c;

    invoke-direct {v0, p0}, Lcom/bumptech/glide/k$c;-><init>(Lcom/bumptech/glide/k;)V

    iput-object v0, p0, Lcom/bumptech/glide/k;->f:Lcom/bumptech/glide/k$c;

    new-instance v0, Lcom/bumptech/glide/k$d;

    invoke-direct {v0, p4}, Lcom/bumptech/glide/k$d;-><init>(Lcom/bumptech/glide/manager/l;)V

    invoke-virtual {p5, p1, v0}, Lcom/bumptech/glide/manager/d;->a(Landroid/content/Context;Lcom/bumptech/glide/manager/c$a;)Lcom/bumptech/glide/manager/c;

    move-result-object v0

    invoke-static {}, Lcom/bumptech/glide/g/h;->c()Z

    move-result v1

    if-eqz v1, :cond_40

    new-instance v1, Landroid/os/Handler;

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

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v2, Lcom/bumptech/glide/k$1;

    invoke-direct {v2, p0, p2}, Lcom/bumptech/glide/k$1;-><init>(Lcom/bumptech/glide/k;Lcom/bumptech/glide/manager/g;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_3c
    invoke-interface {p2, v0}, Lcom/bumptech/glide/manager/g;->a(Lcom/bumptech/glide/manager/h;)V

    return-void

    :cond_40
    invoke-interface {p2, p0}, Lcom/bumptech/glide/manager/g;->a(Lcom/bumptech/glide/manager/h;)V

    goto :goto_3c
.end method

.method static synthetic a(Lcom/bumptech/glide/k;)Landroid/content/Context;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/k;->a:Landroid/content/Context;

    return-object v0
.end method

.method private a(Ljava/lang/Class;)Lcom/bumptech/glide/d;
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Class",
            "<TT;>;)",
            "Lcom/bumptech/glide/d",
            "<TT;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/bumptech/glide/k;->a:Landroid/content/Context;

    invoke-static {p1, v0}, Lcom/bumptech/glide/i;->a(Ljava/lang/Class;Landroid/content/Context;)Lcom/bumptech/glide/load/b/l;

    move-result-object v2

    iget-object v0, p0, Lcom/bumptech/glide/k;->a:Landroid/content/Context;

    invoke-static {p1, v0}, Lcom/bumptech/glide/i;->b(Ljava/lang/Class;Landroid/content/Context;)Lcom/bumptech/glide/load/b/l;

    move-result-object v3

    if-eqz p1, :cond_41

    if-nez v2, :cond_41

    if-nez v3, :cond_41

    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string/jumbo v2, "Unknown type "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ". You must provide a Model of a type for"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " which there is a registered ModelLoader, if you are using a custom model, you must first call"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " Glide#register with a ModelLoaderFactory for your custom model class"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

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

    throw v0

    :cond_41
    iget-object v9, p0, Lcom/bumptech/glide/k;->f:Lcom/bumptech/glide/k$c;

    new-instance v0, Lcom/bumptech/glide/d;

    iget-object v4, p0, Lcom/bumptech/glide/k;->a:Landroid/content/Context;

    iget-object v5, p0, Lcom/bumptech/glide/k;->e:Lcom/bumptech/glide/i;

    iget-object v6, p0, Lcom/bumptech/glide/k;->d:Lcom/bumptech/glide/manager/l;

    iget-object v7, p0, Lcom/bumptech/glide/k;->b:Lcom/bumptech/glide/manager/g;

    iget-object v8, p0, Lcom/bumptech/glide/k;->f:Lcom/bumptech/glide/k$c;

    move-object v1, p1

    invoke-direct/range {v0 .. v8}, Lcom/bumptech/glide/d;-><init>(Ljava/lang/Class;Lcom/bumptech/glide/load/b/l;Lcom/bumptech/glide/load/b/l;Landroid/content/Context;Lcom/bumptech/glide/i;Lcom/bumptech/glide/manager/l;Lcom/bumptech/glide/manager/g;Lcom/bumptech/glide/k$c;)V

    invoke-virtual {v9, v0}, Lcom/bumptech/glide/k$c;->a(Lcom/bumptech/glide/e;)Lcom/bumptech/glide/e;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/d;

    return-object v0
.end method

.method static synthetic a(Ljava/lang/Object;)Ljava/lang/Class;
    .registers 2

    invoke-static {p0}, Lcom/bumptech/glide/k;->b(Ljava/lang/Object;)Ljava/lang/Class;

    move-result-object v0

    return-object v0
.end method

.method static synthetic b(Lcom/bumptech/glide/k;)Lcom/bumptech/glide/i;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/k;->e:Lcom/bumptech/glide/i;

    return-object v0
.end method

.method private static b(Ljava/lang/Object;)Ljava/lang/Class;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(TT;)",
            "Ljava/lang/Class",
            "<TT;>;"
        }
    .end annotation

    if-eqz p0, :cond_7

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    :goto_6
    return-object v0

    :cond_7
    const/4 v0, 0x0

    goto :goto_6
.end method

.method static synthetic c(Lcom/bumptech/glide/k;)Lcom/bumptech/glide/manager/l;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/k;->d:Lcom/bumptech/glide/manager/l;

    return-object v0
.end method

.method static synthetic d(Lcom/bumptech/glide/k;)Lcom/bumptech/glide/manager/g;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/k;->b:Lcom/bumptech/glide/manager/g;

    return-object v0
.end method

.method static synthetic e(Lcom/bumptech/glide/k;)Lcom/bumptech/glide/k$c;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/k;->f:Lcom/bumptech/glide/k$c;

    return-object v0
.end method

.method static synthetic f(Lcom/bumptech/glide/k;)Lcom/bumptech/glide/k$a;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/k;->g:Lcom/bumptech/glide/k$a;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/Integer;)Lcom/bumptech/glide/d;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Integer;",
            ")",
            "Lcom/bumptech/glide/d",
            "<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    invoke-virtual {p0}, Lcom/bumptech/glide/k;->e()Lcom/bumptech/glide/d;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/bumptech/glide/d;->a(Ljava/lang/Object;)Lcom/bumptech/glide/c;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/d;

    return-object v0
.end method

.method public a(Ljava/lang/String;)Lcom/bumptech/glide/d;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Lcom/bumptech/glide/d",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    invoke-virtual {p0}, Lcom/bumptech/glide/k;->d()Lcom/bumptech/glide/d;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/bumptech/glide/d;->a(Ljava/lang/Object;)Lcom/bumptech/glide/c;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/d;

    return-object v0
.end method

.method public a(Lcom/bumptech/glide/load/b/l;Ljava/lang/Class;)Lcom/bumptech/glide/k$b;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<A:",
            "Ljava/lang/Object;",
            "T:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/bumptech/glide/load/b/l",
            "<TA;TT;>;",
            "Ljava/lang/Class",
            "<TT;>;)",
            "Lcom/bumptech/glide/k$b",
            "<TA;TT;>;"
        }
    .end annotation

    new-instance v0, Lcom/bumptech/glide/k$b;

    invoke-direct {v0, p0, p1, p2}, Lcom/bumptech/glide/k$b;-><init>(Lcom/bumptech/glide/k;Lcom/bumptech/glide/load/b/l;Ljava/lang/Class;)V

    return-object v0
.end method

.method public a()V
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/k;->e:Lcom/bumptech/glide/i;

    invoke-virtual {v0}, Lcom/bumptech/glide/i;->h()V

    return-void
.end method

.method public a(I)V
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/k;->e:Lcom/bumptech/glide/i;

    invoke-virtual {v0, p1}, Lcom/bumptech/glide/i;->a(I)V

    return-void
.end method

.method public b()V
    .registers 2

    invoke-static {}, Lcom/bumptech/glide/g/h;->a()V

    iget-object v0, p0, Lcom/bumptech/glide/k;->d:Lcom/bumptech/glide/manager/l;

    invoke-virtual {v0}, Lcom/bumptech/glide/manager/l;->a()V

    return-void
.end method

.method public c()V
    .registers 2

    invoke-static {}, Lcom/bumptech/glide/g/h;->a()V

    iget-object v0, p0, Lcom/bumptech/glide/k;->d:Lcom/bumptech/glide/manager/l;

    invoke-virtual {v0}, Lcom/bumptech/glide/manager/l;->b()V

    return-void
.end method

.method public d()Lcom/bumptech/glide/d;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/bumptech/glide/d",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const-class v0, Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/bumptech/glide/k;->a(Ljava/lang/Class;)Lcom/bumptech/glide/d;

    move-result-object v0

    return-object v0
.end method

.method public e()Lcom/bumptech/glide/d;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/bumptech/glide/d",
            "<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    const-class v0, Ljava/lang/Integer;

    invoke-direct {p0, v0}, Lcom/bumptech/glide/k;->a(Ljava/lang/Class;)Lcom/bumptech/glide/d;

    move-result-object v0

    iget-object v1, p0, Lcom/bumptech/glide/k;->a:Landroid/content/Context;

    invoke-static {v1}, Lcom/bumptech/glide/f/a;->a(Landroid/content/Context;)Lcom/bumptech/glide/load/b;

    move-result-object v1

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

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/d;

    return-object v0
.end method

.method public onDestroy()V
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/k;->d:Lcom/bumptech/glide/manager/l;

    invoke-virtual {v0}, Lcom/bumptech/glide/manager/l;->c()V

    return-void
.end method

.method public onStart()V
    .registers 1

    invoke-virtual {p0}, Lcom/bumptech/glide/k;->c()V

    return-void
.end method

.method public onStop()V
    .registers 1

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

    return-void
.end method