m.smali
.class public final Lcom/bumptech/glide/m;
.super Ljava/lang/Object;
.source "RequestManager.java"
# interfaces
.implements Lcom/bumptech/glide/manager/i;
# instance fields
.field public final BL:Lcom/bumptech/glide/g;
.field final BN:Lcom/bumptech/glide/manager/n;
.field final BO:Lcom/bumptech/glide/manager/h;
.field final zn:Landroid/content/Context;
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/manager/h;)V
.registers 5
.prologue
.line 53
new-instance v0, Lcom/bumptech/glide/manager/n;
invoke-direct {v0}, Lcom/bumptech/glide/manager/n;-><init>()V
new-instance v1, Lcom/bumptech/glide/manager/e;
invoke-direct {v1}, Lcom/bumptech/glide/manager/e;-><init>()V
invoke-direct {p0, p1, p2, v0}, Lcom/bumptech/glide/m;-><init>(Landroid/content/Context;Lcom/bumptech/glide/manager/h;Lcom/bumptech/glide/manager/n;)V
.line 54
return-void
.end method
.method private constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/manager/h;Lcom/bumptech/glide/manager/n;)V
.registers 7
.prologue
.line 57
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 58
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/m;->zn:Landroid/content/Context;
.line 59
iput-object p2, p0, Lcom/bumptech/glide/m;->BO:Lcom/bumptech/glide/manager/h;
.line 61
iput-object p3, p0, Lcom/bumptech/glide/m;->BN:Lcom/bumptech/glide/manager/n;
.line 62
invoke-static {p1}, Lcom/bumptech/glide/g;->G(Landroid/content/Context;)Lcom/bumptech/glide/g;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/m;->BL:Lcom/bumptech/glide/g;
.line 63
new-instance v0, Lcom/bumptech/glide/p;
invoke-direct {v0}, Lcom/bumptech/glide/p;-><init>()V
.line 65
new-instance v1, Lcom/bumptech/glide/q;
invoke-direct {v1, p3}, Lcom/bumptech/glide/q;-><init>(Lcom/bumptech/glide/manager/n;)V
.line 1013
const-string v0, "android.permission.ACCESS_NETWORK_STATE"
invoke-virtual {p1, v0}, Landroid/content/Context;->checkCallingOrSelfPermission(Ljava/lang/String;)I
move-result v0
.line 1014
if-nez v0, :cond_48
const/4 v0, 0x1
.line 1015
:goto_26
if-eqz v0, :cond_4a
.line 1016
new-instance v0, Lcom/bumptech/glide/manager/f;
invoke-direct {v0, p1, v1}, Lcom/bumptech/glide/manager/f;-><init>(Landroid/content/Context;Lcom/bumptech/glide/manager/d;)V
.line 71
:goto_2d
invoke-static {}, Lcom/bumptech/glide/g/h;->eN()Z
move-result v1
if-eqz v1, :cond_50
.line 72
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/m$1;
invoke-direct {v2, p0, p2}, Lcom/bumptech/glide/m$1;-><init>(Lcom/bumptech/glide/m;Lcom/bumptech/glide/manager/h;)V
invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 81
:goto_44
invoke-interface {p2, v0}, Lcom/bumptech/glide/manager/h;->a(Lcom/bumptech/glide/manager/i;)V
.line 82
return-void
.line 1014
:cond_48
const/4 v0, 0x0
goto :goto_26
.line 1018
:cond_4a
new-instance v0, Lcom/bumptech/glide/manager/j;
invoke-direct {v0}, Lcom/bumptech/glide/manager/j;-><init>()V
goto :goto_2d
.line 79
:cond_50
invoke-interface {p2, p0}, Lcom/bumptech/glide/manager/h;->a(Lcom/bumptech/glide/manager/i;)V
goto :goto_44
.end method
# virtual methods
.method public final K(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
.prologue
.line 284
.line 4304
const-class v0, Ljava/lang/String;
invoke-virtual {p0, v0}, Lcom/bumptech/glide/m;->f(Ljava/lang/Class;)Lcom/bumptech/glide/d;
move-result-object v0
.line 284
invoke-virtual {v0, p1}, Lcom/bumptech/glide/d;->H(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 final a(Ljava/lang/Integer;)Lcom/bumptech/glide/d;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Integer;",
")",
"Lcom/bumptech/glide/d",
"<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.prologue
.line 466
.line 4492
const-class v0, Ljava/lang/Integer;
invoke-virtual {p0, v0}, Lcom/bumptech/glide/m;->f(Ljava/lang/Class;)Lcom/bumptech/glide/d;
move-result-object v0
iget-object v1, p0, Lcom/bumptech/glide/m;->zn:Landroid/content/Context;
invoke-static {v1}, Lcom/bumptech/glide/f/a;->K(Landroid/content/Context;)Lcom/bumptech/glide/load/b;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/bumptech/glide/d;->b(Lcom/bumptech/glide/load/b;)Lcom/bumptech/glide/c;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/d;
.line 466
invoke-virtual {v0, p1}, Lcom/bumptech/glide/d;->H(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 final a(Lcom/bumptech/glide/load/b/o;Ljava/lang/Class;)Lcom/bumptech/glide/n;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<A:",
"Ljava/lang/Object;",
"T:",
"Ljava/lang/Object;",
">(",
"Lcom/bumptech/glide/load/b/o",
"<TA;TT;>;",
"Ljava/lang/Class",
"<TT;>;)",
"Lcom/bumptech/glide/n",
"<TA;TT;>;"
}
.end annotation
.prologue
.line 238
new-instance v0, Lcom/bumptech/glide/n;
invoke-direct {v0, p0, p1, p2}, Lcom/bumptech/glide/n;-><init>(Lcom/bumptech/glide/m;Lcom/bumptech/glide/load/b/o;Ljava/lang/Class;)V
return-object v0
.end method
.method public final f(Ljava/lang/Class;)Lcom/bumptech/glide/d;
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class",
"<TT;>;)",
"Lcom/bumptech/glide/d",
"<TT;>;"
}
.end annotation
.prologue
.line 625
iget-object v0, p0, Lcom/bumptech/glide/m;->zn:Landroid/content/Context;
invoke-static {p1, v0}, Lcom/bumptech/glide/g;->a(Ljava/lang/Class;Landroid/content/Context;)Lcom/bumptech/glide/load/b/o;
move-result-object v2
.line 626
iget-object v0, p0, Lcom/bumptech/glide/m;->zn:Landroid/content/Context;
invoke-static {p1, v0}, Lcom/bumptech/glide/g;->b(Ljava/lang/Class;Landroid/content/Context;)Lcom/bumptech/glide/load/b/o;
move-result-object v3
.line 628
if-nez v2, :cond_2b
if-nez v3, :cond_2b
.line 629
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Unknown type "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, ". You must provide a Model of a type for which there is a registered ModelLoader, if you are using a custom model, you must first call 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
.line 634
:cond_2b
new-instance v0, Lcom/bumptech/glide/d;
iget-object v4, p0, Lcom/bumptech/glide/m;->zn:Landroid/content/Context;
iget-object v5, p0, Lcom/bumptech/glide/m;->BL:Lcom/bumptech/glide/g;
iget-object v6, p0, Lcom/bumptech/glide/m;->BN:Lcom/bumptech/glide/manager/n;
iget-object v7, p0, Lcom/bumptech/glide/m;->BO:Lcom/bumptech/glide/manager/h;
move-object v1, p1
invoke-direct/range {v0 .. v7}, Lcom/bumptech/glide/d;-><init>(Ljava/lang/Class;Lcom/bumptech/glide/load/b/o;Lcom/bumptech/glide/load/b/o;Landroid/content/Context;Lcom/bumptech/glide/g;Lcom/bumptech/glide/manager/n;Lcom/bumptech/glide/manager/h;)V
check-cast v0, Lcom/bumptech/glide/d;
return-object v0
.end method
.method public final onDestroy()V
.registers 4
.prologue
.line 221
iget-object v1, p0, Lcom/bumptech/glide/m;->BN:Lcom/bumptech/glide/manager/n;
.line 4093
iget-object v0, v1, Lcom/bumptech/glide/manager/n;->Ja:Ljava/util/Set;
invoke-static {v0}, Lcom/bumptech/glide/g/h;->a(Ljava/util/Collection;)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_c
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1c
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/a;
.line 4094
invoke-interface {v0}, Lcom/bumptech/glide/request/a;->clear()V
goto :goto_c
.line 4096
:cond_1c
iget-object v0, v1, Lcom/bumptech/glide/manager/n;->Jb:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 222
return-void
.end method
.method public final onLowMemory()V
.registers 3
.prologue
.line 95
iget-object v0, p0, Lcom/bumptech/glide/m;->BL:Lcom/bumptech/glide/g;
.line 1370
invoke-static {}, Lcom/bumptech/glide/g/h;->eL()V
.line 1372
iget-object v1, v0, Lcom/bumptech/glide/g;->Ce:Lcom/bumptech/glide/load/engine/b/m;
invoke-interface {v1}, Lcom/bumptech/glide/load/engine/b/m;->dR()V
.line 1373
iget-object v0, v0, Lcom/bumptech/glide/g;->BG:Lcom/bumptech/glide/load/engine/a/e;
invoke-interface {v0}, Lcom/bumptech/glide/load/engine/a/e;->dR()V
.line 96
return-void
.end method
.method public final onStart()V
.registers 5
.prologue
.line 203
.line 2179
invoke-static {}, Lcom/bumptech/glide/g/h;->eL()V
.line 2180
iget-object v1, p0, Lcom/bumptech/glide/m;->BN:Lcom/bumptech/glide/manager/n;
.line 3080
const/4 v0, 0x0
iput-boolean v0, v1, Lcom/bumptech/glide/manager/n;->Jc:Z
.line 3081
iget-object v0, v1, Lcom/bumptech/glide/manager/n;->Ja:Ljava/util/Set;
invoke-static {v0}, Lcom/bumptech/glide/g/h;->a(Ljava/util/Collection;)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_12
:goto_12
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_34
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/a;
.line 3082
invoke-interface {v0}, Lcom/bumptech/glide/request/a;->isComplete()Z
move-result v3
if-nez v3, :cond_12
invoke-interface {v0}, Lcom/bumptech/glide/request/a;->isCancelled()Z
move-result v3
if-nez v3, :cond_12
invoke-interface {v0}, Lcom/bumptech/glide/request/a;->isRunning()Z
move-result v3
if-nez v3, :cond_12
.line 3083
invoke-interface {v0}, Lcom/bumptech/glide/request/a;->begin()V
goto :goto_12
.line 3086
:cond_34
iget-object v0, v1, Lcom/bumptech/glide/manager/n;->Jb:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 204
return-void
.end method
.method public final onStop()V
.registers 5
.prologue
.line 212
.line 3147
invoke-static {}, Lcom/bumptech/glide/g/h;->eL()V
.line 3148
iget-object v1, p0, Lcom/bumptech/glide/m;->BN:Lcom/bumptech/glide/manager/n;
.line 4067
const/4 v0, 0x1
iput-boolean v0, v1, Lcom/bumptech/glide/manager/n;->Jc:Z
.line 4068
iget-object v0, v1, Lcom/bumptech/glide/manager/n;->Ja:Ljava/util/Set;
invoke-static {v0}, Lcom/bumptech/glide/g/h;->a(Ljava/util/Collection;)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_12
:goto_12
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2d
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/request/a;
.line 4069
invoke-interface {v0}, Lcom/bumptech/glide/request/a;->isRunning()Z
move-result v3
if-eqz v3, :cond_12
.line 4070
invoke-interface {v0}, Lcom/bumptech/glide/request/a;->pause()V
.line 4071
iget-object v3, v1, Lcom/bumptech/glide/manager/n;->Jb:Ljava/util/List;
invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_12
.line 213
:cond_2d
return-void
.end method