RequestManager.smali
.class public Lcom/bumptech/glide/RequestManager;
.super Ljava/lang/Object;
.source "RequestManager.java"
# interfaces
.implements Lcom/bumptech/glide/manager/LifecycleListener;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/RequestManager$ClearTarget;,
Lcom/bumptech/glide/RequestManager$RequestManagerConnectivityListener;
}
.end annotation
# static fields
.field private static final DECODE_TYPE_BITMAP:Lcom/bumptech/glide/request/RequestOptions;
.field private static final DECODE_TYPE_GIF:Lcom/bumptech/glide/request/RequestOptions;
.field private static final DOWNLOAD_ONLY_OPTIONS:Lcom/bumptech/glide/request/RequestOptions;
# instance fields
.field private final addSelfToLifecycle:Ljava/lang/Runnable;
.field private final connectivityMonitor:Lcom/bumptech/glide/manager/ConnectivityMonitor;
.field protected final glide:Lcom/bumptech/glide/Glide;
.field final lifecycle:Lcom/bumptech/glide/manager/Lifecycle;
.field private final mainHandler:Landroid/os/Handler;
.field private requestOptions:Lcom/bumptech/glide/request/RequestOptions;
.field private final requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
.field private final targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
.field private final treeNode:Lcom/bumptech/glide/manager/RequestManagerTreeNode;
# direct methods
.method static constructor <clinit>()V
.registers 2
.line 47
const-class v0, Landroid/graphics/Bitmap;
invoke-static {v0}, Lcom/bumptech/glide/request/RequestOptions;->decodeTypeOf(Ljava/lang/Class;)Lcom/bumptech/glide/request/RequestOptions;
move-result-object v0
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->lock()Lcom/bumptech/glide/request/RequestOptions;
move-result-object v0
sput-object v0, Lcom/bumptech/glide/RequestManager;->DECODE_TYPE_BITMAP:Lcom/bumptech/glide/request/RequestOptions;
.line 48
const-class v0, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
invoke-static {v0}, Lcom/bumptech/glide/request/RequestOptions;->decodeTypeOf(Ljava/lang/Class;)Lcom/bumptech/glide/request/RequestOptions;
move-result-object v0
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->lock()Lcom/bumptech/glide/request/RequestOptions;
move-result-object v0
sput-object v0, Lcom/bumptech/glide/RequestManager;->DECODE_TYPE_GIF:Lcom/bumptech/glide/request/RequestOptions;
.line 49
sget-object v0, Lcom/bumptech/glide/load/engine/DiskCacheStrategy;->DATA:Lcom/bumptech/glide/load/engine/DiskCacheStrategy;
.line 50
invoke-static {v0}, Lcom/bumptech/glide/request/RequestOptions;->diskCacheStrategyOf(Lcom/bumptech/glide/load/engine/DiskCacheStrategy;)Lcom/bumptech/glide/request/RequestOptions;
move-result-object v0
sget-object v1, Lcom/bumptech/glide/Priority;->LOW:Lcom/bumptech/glide/Priority;
invoke-virtual {v0, v1}, Lcom/bumptech/glide/request/RequestOptions;->priority(Lcom/bumptech/glide/Priority;)Lcom/bumptech/glide/request/RequestOptions;
move-result-object v0
const/4 v1, 0x1
.line 51
invoke-virtual {v0, v1}, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCache(Z)Lcom/bumptech/glide/request/RequestOptions;
move-result-object v0
sput-object v0, Lcom/bumptech/glide/RequestManager;->DOWNLOAD_ONLY_OPTIONS:Lcom/bumptech/glide/request/RequestOptions;
return-void
.end method
.method public constructor <init>(Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/manager/Lifecycle;Lcom/bumptech/glide/manager/RequestManagerTreeNode;)V
.registers 10
.line 71
new-instance v4, Lcom/bumptech/glide/manager/RequestTracker;
invoke-direct {v4}, Lcom/bumptech/glide/manager/RequestTracker;-><init>()V
invoke-virtual {p1}, Lcom/bumptech/glide/Glide;->getConnectivityMonitorFactory()Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;
move-result-object v5
move-object v0, p0
move-object v1, p1
move-object v2, p2
move-object v3, p3
invoke-direct/range {v0 .. v5}, Lcom/bumptech/glide/RequestManager;-><init>(Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/manager/Lifecycle;Lcom/bumptech/glide/manager/RequestManagerTreeNode;Lcom/bumptech/glide/manager/RequestTracker;Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;)V
return-void
.end method
.method constructor <init>(Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/manager/Lifecycle;Lcom/bumptech/glide/manager/RequestManagerTreeNode;Lcom/bumptech/glide/manager/RequestTracker;Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;)V
.registers 8
.line 81
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 57
new-instance v0, Lcom/bumptech/glide/manager/TargetTracker;
invoke-direct {v0}, Lcom/bumptech/glide/manager/TargetTracker;-><init>()V
iput-object v0, p0, Lcom/bumptech/glide/RequestManager;->targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
.line 58
new-instance v0, Lcom/bumptech/glide/RequestManager$1;
invoke-direct {v0, p0}, Lcom/bumptech/glide/RequestManager$1;-><init>(Lcom/bumptech/glide/RequestManager;)V
iput-object v0, p0, Lcom/bumptech/glide/RequestManager;->addSelfToLifecycle:Ljava/lang/Runnable;
.line 64
new-instance v0, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object v0, p0, Lcom/bumptech/glide/RequestManager;->mainHandler:Landroid/os/Handler;
.line 82
iput-object p1, p0, Lcom/bumptech/glide/RequestManager;->glide:Lcom/bumptech/glide/Glide;
.line 83
iput-object p2, p0, Lcom/bumptech/glide/RequestManager;->lifecycle:Lcom/bumptech/glide/manager/Lifecycle;
.line 84
iput-object p3, p0, Lcom/bumptech/glide/RequestManager;->treeNode:Lcom/bumptech/glide/manager/RequestManagerTreeNode;
.line 85
iput-object p4, p0, Lcom/bumptech/glide/RequestManager;->requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
.line 87
invoke-virtual {p1}, Lcom/bumptech/glide/Glide;->getGlideContext()Lcom/bumptech/glide/GlideContext;
move-result-object p3
invoke-virtual {p3}, Lcom/bumptech/glide/GlideContext;->getBaseContext()Landroid/content/Context;
move-result-object p3
.line 89
new-instance v0, Lcom/bumptech/glide/RequestManager$RequestManagerConnectivityListener;
invoke-direct {v0, p4}, Lcom/bumptech/glide/RequestManager$RequestManagerConnectivityListener;-><init>(Lcom/bumptech/glide/manager/RequestTracker;)V
.line 90
invoke-interface {p5, p3, v0}, Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;->build(Landroid/content/Context;Lcom/bumptech/glide/manager/ConnectivityMonitor$ConnectivityListener;)Lcom/bumptech/glide/manager/ConnectivityMonitor;
move-result-object p3
iput-object p3, p0, Lcom/bumptech/glide/RequestManager;->connectivityMonitor:Lcom/bumptech/glide/manager/ConnectivityMonitor;
.line 96
invoke-static {}, Lcom/bumptech/glide/util/Util;->isOnBackgroundThread()Z
move-result p3
if-eqz p3, :cond_45
.line 97
iget-object p3, p0, Lcom/bumptech/glide/RequestManager;->mainHandler:Landroid/os/Handler;
iget-object p4, p0, Lcom/bumptech/glide/RequestManager;->addSelfToLifecycle:Ljava/lang/Runnable;
invoke-virtual {p3, p4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
goto :goto_48
.line 99
:cond_45
invoke-interface {p2, p0}, Lcom/bumptech/glide/manager/Lifecycle;->addListener(Lcom/bumptech/glide/manager/LifecycleListener;)V
.line 101
:goto_48
iget-object p3, p0, Lcom/bumptech/glide/RequestManager;->connectivityMonitor:Lcom/bumptech/glide/manager/ConnectivityMonitor;
invoke-interface {p2, p3}, Lcom/bumptech/glide/manager/Lifecycle;->addListener(Lcom/bumptech/glide/manager/LifecycleListener;)V
.line 103
invoke-virtual {p1}, Lcom/bumptech/glide/Glide;->getGlideContext()Lcom/bumptech/glide/GlideContext;
move-result-object p2
invoke-virtual {p2}, Lcom/bumptech/glide/GlideContext;->getDefaultRequestOptions()Lcom/bumptech/glide/request/RequestOptions;
move-result-object p2
invoke-virtual {p0, p2}, Lcom/bumptech/glide/RequestManager;->setRequestOptions(Lcom/bumptech/glide/request/RequestOptions;)V
.line 105
invoke-virtual {p1, p0}, Lcom/bumptech/glide/Glide;->registerRequestManager(Lcom/bumptech/glide/RequestManager;)V
return-void
.end method
.method private untrackOrDelegate(Lcom/bumptech/glide/request/target/Target;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/request/target/Target<",
"*>;)V"
}
.end annotation
.line 424
invoke-virtual {p0, p1}, Lcom/bumptech/glide/RequestManager;->untrack(Lcom/bumptech/glide/request/target/Target;)Z
move-result v0
if-nez v0, :cond_b
.line 426
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->glide:Lcom/bumptech/glide/Glide;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/Glide;->removeFromManagers(Lcom/bumptech/glide/request/target/Target;)V
:cond_b
return-void
.end method
.method private updateRequestOptions(Lcom/bumptech/glide/request/RequestOptions;)V
.registers 3
.line 113
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->requestOptions:Lcom/bumptech/glide/request/RequestOptions;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/request/RequestOptions;->apply(Lcom/bumptech/glide/request/RequestOptions;)Lcom/bumptech/glide/request/RequestOptions;
return-void
.end method
# virtual methods
.method public applyDefaultRequestOptions(Lcom/bumptech/glide/request/RequestOptions;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 135
invoke-direct {p0, p1}, Lcom/bumptech/glide/RequestManager;->updateRequestOptions(Lcom/bumptech/glide/request/RequestOptions;)V
return-object p0
.end method
.method public as(Ljava/lang/Class;)Lcom/bumptech/glide/RequestBuilder;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<ResourceType:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TResourceType;>;)",
"Lcom/bumptech/glide/RequestBuilder<",
"TResourceType;>;"
}
.end annotation
.line 381
new-instance v0, Lcom/bumptech/glide/RequestBuilder;
iget-object v1, p0, Lcom/bumptech/glide/RequestManager;->glide:Lcom/bumptech/glide/Glide;
invoke-direct {v0, v1, p0, p1}, Lcom/bumptech/glide/RequestBuilder;-><init>(Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/RequestManager;Ljava/lang/Class;)V
return-object v0
.end method
.method public asBitmap()Lcom/bumptech/glide/RequestBuilder;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/bumptech/glide/RequestBuilder<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
.line 289
const-class v0, Landroid/graphics/Bitmap;
invoke-virtual {p0, v0}, Lcom/bumptech/glide/RequestManager;->as(Ljava/lang/Class;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
new-instance v1, Lcom/bumptech/glide/GenericTransitionOptions;
invoke-direct {v1}, Lcom/bumptech/glide/GenericTransitionOptions;-><init>()V
invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->transition(Lcom/bumptech/glide/TransitionOptions;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
sget-object v1, Lcom/bumptech/glide/RequestManager;->DECODE_TYPE_BITMAP:Lcom/bumptech/glide/request/RequestOptions;
.line 290
invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->apply(Lcom/bumptech/glide/request/RequestOptions;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
return-object v0
.end method
.method public asDrawable()Lcom/bumptech/glide/RequestBuilder;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/bumptech/glide/RequestBuilder<",
"Landroid/graphics/drawable/Drawable;",
">;"
}
.end annotation
.line 321
const-class v0, Landroid/graphics/drawable/Drawable;
invoke-virtual {p0, v0}, Lcom/bumptech/glide/RequestManager;->as(Ljava/lang/Class;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
new-instance v1, Lcom/bumptech/glide/load/resource/drawable/DrawableTransitionOptions;
invoke-direct {v1}, Lcom/bumptech/glide/load/resource/drawable/DrawableTransitionOptions;-><init>()V
invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->transition(Lcom/bumptech/glide/TransitionOptions;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
return-object v0
.end method
.method public asFile()Lcom/bumptech/glide/RequestBuilder;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/bumptech/glide/RequestBuilder<",
"Ljava/io/File;",
">;"
}
.end annotation
.line 369
const-class v0, Ljava/io/File;
invoke-virtual {p0, v0}, Lcom/bumptech/glide/RequestManager;->as(Ljava/lang/Class;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
const/4 v1, 0x1
invoke-static {v1}, Lcom/bumptech/glide/request/RequestOptions;->skipMemoryCacheOf(Z)Lcom/bumptech/glide/request/RequestOptions;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->apply(Lcom/bumptech/glide/request/RequestOptions;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
return-object v0
.end method
.method public asGif()Lcom/bumptech/glide/RequestBuilder;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/bumptech/glide/RequestBuilder<",
"Lcom/bumptech/glide/load/resource/gif/GifDrawable;",
">;"
}
.end annotation
.line 307
const-class v0, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
invoke-virtual {p0, v0}, Lcom/bumptech/glide/RequestManager;->as(Ljava/lang/Class;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
new-instance v1, Lcom/bumptech/glide/load/resource/drawable/DrawableTransitionOptions;
invoke-direct {v1}, Lcom/bumptech/glide/load/resource/drawable/DrawableTransitionOptions;-><init>()V
invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->transition(Lcom/bumptech/glide/TransitionOptions;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
sget-object v1, Lcom/bumptech/glide/RequestManager;->DECODE_TYPE_GIF:Lcom/bumptech/glide/request/RequestOptions;
invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->apply(Lcom/bumptech/glide/request/RequestOptions;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
return-object v0
.end method
.method public clear(Landroid/view/View;)V
.registers 3
.line 397
new-instance v0, Lcom/bumptech/glide/RequestManager$ClearTarget;
invoke-direct {v0, p1}, Lcom/bumptech/glide/RequestManager$ClearTarget;-><init>(Landroid/view/View;)V
invoke-virtual {p0, v0}, Lcom/bumptech/glide/RequestManager;->clear(Lcom/bumptech/glide/request/target/Target;)V
return-void
.end method
.method public clear(Lcom/bumptech/glide/request/target/Target;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/request/target/Target<",
"*>;)V"
}
.end annotation
if-nez p1, :cond_3
return-void
.line 411
:cond_3
invoke-static {}, Lcom/bumptech/glide/util/Util;->isOnMainThread()Z
move-result v0
if-eqz v0, :cond_d
.line 412
invoke-direct {p0, p1}, Lcom/bumptech/glide/RequestManager;->untrackOrDelegate(Lcom/bumptech/glide/request/target/Target;)V
goto :goto_17
.line 414
:cond_d
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->mainHandler:Landroid/os/Handler;
new-instance v1, Lcom/bumptech/glide/RequestManager$2;
invoke-direct {v1, p0, p1}, Lcom/bumptech/glide/RequestManager$2;-><init>(Lcom/bumptech/glide/RequestManager;Lcom/bumptech/glide/request/target/Target;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:goto_17
return-void
.end method
.method public download(Ljava/lang/Object;)Lcom/bumptech/glide/RequestBuilder;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")",
"Lcom/bumptech/glide/RequestBuilder<",
"Ljava/io/File;",
">;"
}
.end annotation
.line 356
invoke-virtual {p0}, Lcom/bumptech/glide/RequestManager;->downloadOnly()Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/bumptech/glide/RequestBuilder;->load(Ljava/lang/Object;)Lcom/bumptech/glide/RequestBuilder;
move-result-object p1
return-object p1
.end method
.method public downloadOnly()Lcom/bumptech/glide/RequestBuilder;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/bumptech/glide/RequestBuilder<",
"Ljava/io/File;",
">;"
}
.end annotation
.line 346
const-class v0, Ljava/io/File;
invoke-virtual {p0, v0}, Lcom/bumptech/glide/RequestManager;->as(Ljava/lang/Class;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
sget-object v1, Lcom/bumptech/glide/RequestManager;->DOWNLOAD_ONLY_OPTIONS:Lcom/bumptech/glide/request/RequestOptions;
invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->apply(Lcom/bumptech/glide/request/RequestOptions;)Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
return-object v0
.end method
.method getDefaultRequestOptions()Lcom/bumptech/glide/request/RequestOptions;
.registers 2
.line 452
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->requestOptions:Lcom/bumptech/glide/request/RequestOptions;
return-object v0
.end method
.method public isPaused()Z
.registers 2
.line 182
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 183
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/RequestTracker;->isPaused()Z
move-result v0
return v0
.end method
.method public load(Ljava/lang/Object;)Lcom/bumptech/glide/RequestBuilder;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")",
"Lcom/bumptech/glide/RequestBuilder<",
"Landroid/graphics/drawable/Drawable;",
">;"
}
.end annotation
.line 331
invoke-virtual {p0}, Lcom/bumptech/glide/RequestManager;->asDrawable()Lcom/bumptech/glide/RequestBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/bumptech/glide/RequestBuilder;->load(Ljava/lang/Object;)Lcom/bumptech/glide/RequestBuilder;
move-result-object p1
return-object p1
.end method
.method public onDestroy()V
.registers 3
.line 270
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/TargetTracker;->onDestroy()V
.line 271
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/TargetTracker;->getAll()Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_f
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1f
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/bumptech/glide/request/target/Target;
.line 272
invoke-virtual {p0, v1}, Lcom/bumptech/glide/RequestManager;->clear(Lcom/bumptech/glide/request/target/Target;)V
goto :goto_f
.line 274
:cond_1f
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/TargetTracker;->clear()V
.line 275
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/RequestTracker;->clearRequests()V
.line 276
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->lifecycle:Lcom/bumptech/glide/manager/Lifecycle;
invoke-interface {v0, p0}, Lcom/bumptech/glide/manager/Lifecycle;->removeListener(Lcom/bumptech/glide/manager/LifecycleListener;)V
.line 277
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->lifecycle:Lcom/bumptech/glide/manager/Lifecycle;
iget-object v1, p0, Lcom/bumptech/glide/RequestManager;->connectivityMonitor:Lcom/bumptech/glide/manager/ConnectivityMonitor;
invoke-interface {v0, v1}, Lcom/bumptech/glide/manager/Lifecycle;->removeListener(Lcom/bumptech/glide/manager/LifecycleListener;)V
.line 278
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->mainHandler:Landroid/os/Handler;
iget-object v1, p0, Lcom/bumptech/glide/RequestManager;->addSelfToLifecycle:Ljava/lang/Runnable;
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
.line 279
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->glide:Lcom/bumptech/glide/Glide;
invoke-virtual {v0, p0}, Lcom/bumptech/glide/Glide;->unregisterRequestManager(Lcom/bumptech/glide/RequestManager;)V
return-void
.end method
.method public onLowMemory()V
.registers 2
.line 172
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->glide:Lcom/bumptech/glide/Glide;
invoke-virtual {v0}, Lcom/bumptech/glide/Glide;->getGlideContext()Lcom/bumptech/glide/GlideContext;
move-result-object v0
invoke-virtual {v0}, Lcom/bumptech/glide/GlideContext;->onLowMemory()V
return-void
.end method
.method public onStart()V
.registers 2
.line 250
invoke-virtual {p0}, Lcom/bumptech/glide/RequestManager;->resumeRequests()V
.line 251
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/TargetTracker;->onStart()V
return-void
.end method
.method public onStop()V
.registers 2
.line 260
invoke-virtual {p0}, Lcom/bumptech/glide/RequestManager;->pauseRequests()V
.line 261
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/TargetTracker;->onStop()V
return-void
.end method
.method public onTrimMemory(I)V
.registers 3
.line 165
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->glide:Lcom/bumptech/glide/Glide;
invoke-virtual {v0}, Lcom/bumptech/glide/Glide;->getGlideContext()Lcom/bumptech/glide/GlideContext;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/bumptech/glide/GlideContext;->onTrimMemory(I)V
return-void
.end method
.method public pauseRequests()V
.registers 2
.line 193
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 194
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/RequestTracker;->pauseRequests()V
return-void
.end method
.method public pauseRequestsRecursive()V
.registers 3
.line 212
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 213
invoke-virtual {p0}, Lcom/bumptech/glide/RequestManager;->pauseRequests()V
.line 214
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->treeNode:Lcom/bumptech/glide/manager/RequestManagerTreeNode;
invoke-interface {v0}, Lcom/bumptech/glide/manager/RequestManagerTreeNode;->getDescendants()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_10
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_20
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/bumptech/glide/RequestManager;
.line 215
invoke-virtual {v1}, Lcom/bumptech/glide/RequestManager;->pauseRequests()V
goto :goto_10
:cond_20
return-void
.end method
.method public resumeRequests()V
.registers 2
.line 226
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 227
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
invoke-virtual {v0}, Lcom/bumptech/glide/manager/RequestTracker;->resumeRequests()V
return-void
.end method
.method public resumeRequestsRecursive()V
.registers 3
.line 236
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 237
invoke-virtual {p0}, Lcom/bumptech/glide/RequestManager;->resumeRequests()V
.line 238
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->treeNode:Lcom/bumptech/glide/manager/RequestManagerTreeNode;
invoke-interface {v0}, Lcom/bumptech/glide/manager/RequestManagerTreeNode;->getDescendants()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_10
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_20
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/bumptech/glide/RequestManager;
.line 239
invoke-virtual {v1}, Lcom/bumptech/glide/RequestManager;->resumeRequests()V
goto :goto_10
:cond_20
return-void
.end method
.method public setDefaultRequestOptions(Lcom/bumptech/glide/request/RequestOptions;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 157
invoke-virtual {p0, p1}, Lcom/bumptech/glide/RequestManager;->setRequestOptions(Lcom/bumptech/glide/request/RequestOptions;)V
return-object p0
.end method
.method protected setRequestOptions(Lcom/bumptech/glide/request/RequestOptions;)V
.registers 2
.line 109
invoke-virtual {p1}, Lcom/bumptech/glide/request/RequestOptions;->clone()Lcom/bumptech/glide/request/RequestOptions;
move-result-object p1
invoke-virtual {p1}, Lcom/bumptech/glide/request/RequestOptions;->autoClone()Lcom/bumptech/glide/request/RequestOptions;
move-result-object p1
iput-object p1, p0, Lcom/bumptech/glide/RequestManager;->requestOptions:Lcom/bumptech/glide/request/RequestOptions;
return-void
.end method
.method public toString()Ljava/lang/String;
.registers 3
.line 457
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-super {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string/jumbo v1, "{tracker="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/bumptech/glide/RequestManager;->requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", treeNode="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/bumptech/glide/RequestManager;->treeNode:Lcom/bumptech/glide/manager/RequestManagerTreeNode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string/jumbo v1, "}"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method track(Lcom/bumptech/glide/request/target/Target;Lcom/bumptech/glide/request/Request;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/request/target/Target<",
"*>;",
"Lcom/bumptech/glide/request/Request;",
")V"
}
.end annotation
.line 447
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/manager/TargetTracker;->track(Lcom/bumptech/glide/request/target/Target;)V
.line 448
iget-object p1, p0, Lcom/bumptech/glide/RequestManager;->requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
invoke-virtual {p1, p2}, Lcom/bumptech/glide/manager/RequestTracker;->runRequest(Lcom/bumptech/glide/request/Request;)V
return-void
.end method
.method untrack(Lcom/bumptech/glide/request/target/Target;)Z
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/request/target/Target<",
"*>;)Z"
}
.end annotation
.line 431
invoke-interface {p1}, Lcom/bumptech/glide/request/target/Target;->getRequest()Lcom/bumptech/glide/request/Request;
move-result-object v0
const/4 v1, 0x1
if-nez v0, :cond_8
return v1
.line 437
:cond_8
iget-object v2, p0, Lcom/bumptech/glide/RequestManager;->requestTracker:Lcom/bumptech/glide/manager/RequestTracker;
invoke-virtual {v2, v0}, Lcom/bumptech/glide/manager/RequestTracker;->clearRemoveAndRecycle(Lcom/bumptech/glide/request/Request;)Z
move-result v0
if-eqz v0, :cond_1a
.line 438
iget-object v0, p0, Lcom/bumptech/glide/RequestManager;->targetTracker:Lcom/bumptech/glide/manager/TargetTracker;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/manager/TargetTracker;->untrack(Lcom/bumptech/glide/request/target/Target;)V
const/4 v0, 0x0
.line 439
invoke-interface {p1, v0}, Lcom/bumptech/glide/request/target/Target;->setRequest(Lcom/bumptech/glide/request/Request;)V
return v1
:cond_1a
const/4 p1, 0x0
return p1
.end method