Glide.smali
.class public Lcom/bumptech/glide/Glide;
.super Ljava/lang/Object;
.source "Glide.java"
# interfaces
.implements Landroid/content/ComponentCallbacks2;
# static fields
.field private static final DEFAULT_DISK_CACHE_DIR:Ljava/lang/String; = "image_manager_disk_cache"
.field private static final TAG:Ljava/lang/String; = "Glide"
.field private static volatile glide:Lcom/bumptech/glide/Glide;
.field private static volatile isInitializing:Z
# instance fields
.field private final arrayPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;
.field private final bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
.field private final bitmapPreFiller:Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;
.field private final connectivityMonitorFactory:Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;
.field private final engine:Lcom/bumptech/glide/load/engine/Engine;
.field private final glideContext:Lcom/bumptech/glide/GlideContext;
.field private final managers:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/bumptech/glide/RequestManager;",
">;"
}
.end annotation
.end field
.field private final memoryCache:Lcom/bumptech/glide/load/engine/cache/MemoryCache;
.field private memoryCategory:Lcom/bumptech/glide/MemoryCategory;
.field private final registry:Lcom/bumptech/glide/Registry;
.field private final requestManagerRetriever:Lcom/bumptech/glide/manager/RequestManagerRetriever;
# direct methods
.method constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/load/engine/Engine;Lcom/bumptech/glide/load/engine/cache/MemoryCache;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;Lcom/bumptech/glide/manager/RequestManagerRetriever;Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;ILcom/bumptech/glide/request/RequestOptions;)V
.registers 24
move-object v8, p0
move-object v1, p1
move-object/from16 v0, p3
move-object/from16 v2, p4
move-object/from16 v3, p5
.line 276
const-class v4, [B
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 106
new-instance v5, Ljava/util/ArrayList;
invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
iput-object v5, v8, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
.line 107
sget-object v5, Lcom/bumptech/glide/MemoryCategory;->NORMAL:Lcom/bumptech/glide/MemoryCategory;
iput-object v5, v8, Lcom/bumptech/glide/Glide;->memoryCategory:Lcom/bumptech/glide/MemoryCategory;
move-object/from16 v5, p2
.line 277
iput-object v5, v8, Lcom/bumptech/glide/Glide;->engine:Lcom/bumptech/glide/load/engine/Engine;
.line 278
iput-object v2, v8, Lcom/bumptech/glide/Glide;->bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
.line 279
iput-object v3, v8, Lcom/bumptech/glide/Glide;->arrayPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;
.line 280
iput-object v0, v8, Lcom/bumptech/glide/Glide;->memoryCache:Lcom/bumptech/glide/load/engine/cache/MemoryCache;
move-object/from16 v6, p6
.line 281
iput-object v6, v8, Lcom/bumptech/glide/Glide;->requestManagerRetriever:Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-object/from16 v6, p7
.line 282
iput-object v6, v8, Lcom/bumptech/glide/Glide;->connectivityMonitorFactory:Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;
.line 284
invoke-virtual/range {p9 .. p9}, Lcom/bumptech/glide/request/RequestOptions;->getOptions()Lcom/bumptech/glide/load/Options;
move-result-object v6
sget-object v7, Lcom/bumptech/glide/load/resource/bitmap/Downsampler;->DECODE_FORMAT:Lcom/bumptech/glide/load/Option;
invoke-virtual {v6, v7}, Lcom/bumptech/glide/load/Options;->get(Lcom/bumptech/glide/load/Option;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Lcom/bumptech/glide/load/DecodeFormat;
.line 285
new-instance v7, Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;
invoke-direct {v7, v0, v2, v6}, Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;-><init>(Lcom/bumptech/glide/load/engine/cache/MemoryCache;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/DecodeFormat;)V
iput-object v7, v8, Lcom/bumptech/glide/Glide;->bitmapPreFiller:Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;
.line 287
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
.line 289
new-instance v6, Lcom/bumptech/glide/Registry;
invoke-direct {v6}, Lcom/bumptech/glide/Registry;-><init>()V
iput-object v6, v8, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
.line 290
new-instance v7, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser;
invoke-direct {v7}, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser;-><init>()V
invoke-virtual {v6, v7}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/ImageHeaderParser;)Lcom/bumptech/glide/Registry;
.line 292
new-instance v6, Lcom/bumptech/glide/load/resource/bitmap/Downsampler;
iget-object v7, v8, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
invoke-virtual {v7}, Lcom/bumptech/glide/Registry;->getImageHeaderParsers()Ljava/util/List;
move-result-object v7
.line 293
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v9
invoke-direct {v6, v7, v9, v2, v3}, Lcom/bumptech/glide/load/resource/bitmap/Downsampler;-><init>(Ljava/util/List;Landroid/util/DisplayMetrics;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
.line 294
new-instance v7, Lcom/bumptech/glide/load/resource/gif/ByteBufferGifDecoder;
iget-object v9, v8, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
.line 295
invoke-virtual {v9}, Lcom/bumptech/glide/Registry;->getImageHeaderParsers()Ljava/util/List;
move-result-object v9
invoke-direct {v7, p1, v9, v2, v3}, Lcom/bumptech/glide/load/resource/gif/ByteBufferGifDecoder;-><init>(Landroid/content/Context;Ljava/util/List;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
.line 297
iget-object v9, v8, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
const-class v10, Ljava/nio/ByteBuffer;
new-instance v11, Lcom/bumptech/glide/load/model/ByteBufferEncoder;
invoke-direct {v11}, Lcom/bumptech/glide/load/model/ByteBufferEncoder;-><init>()V
invoke-virtual {v9, v10, v11}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry;
move-result-object v9
const-class v10, Ljava/io/InputStream;
new-instance v11, Lcom/bumptech/glide/load/model/StreamEncoder;
invoke-direct {v11, v3}, Lcom/bumptech/glide/load/model/StreamEncoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
.line 298
invoke-virtual {v9, v10, v11}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry;
move-result-object v9
const-class v10, Ljava/nio/ByteBuffer;
const-class v11, Landroid/graphics/Bitmap;
new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapDecoder;
invoke-direct {v12, v6}, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapDecoder;-><init>(Lcom/bumptech/glide/load/resource/bitmap/Downsampler;)V
.line 300
invoke-virtual {v9, v10, v11, v12}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v9
const-class v10, Ljava/io/InputStream;
const-class v11, Landroid/graphics/Bitmap;
new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder;
invoke-direct {v12, v6, v3}, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder;-><init>(Lcom/bumptech/glide/load/resource/bitmap/Downsampler;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
.line 302
invoke-virtual {v9, v10, v11, v12}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v9
const-class v10, Landroid/os/ParcelFileDescriptor;
const-class v11, Landroid/graphics/Bitmap;
new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/VideoBitmapDecoder;
invoke-direct {v12, v2}, Lcom/bumptech/glide/load/resource/bitmap/VideoBitmapDecoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V
.line 304
invoke-virtual {v9, v10, v11, v12}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v9
const-class v10, Landroid/graphics/Bitmap;
new-instance v11, Lcom/bumptech/glide/load/resource/bitmap/BitmapEncoder;
invoke-direct {v11}, Lcom/bumptech/glide/load/resource/bitmap/BitmapEncoder;-><init>()V
.line 305
invoke-virtual {v9, v10, v11}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry;
move-result-object v9
const-class v10, Ljava/nio/ByteBuffer;
const-class v11, Landroid/graphics/drawable/BitmapDrawable;
new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;
new-instance v13, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapDecoder;
invoke-direct {v13, v6}, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapDecoder;-><init>(Lcom/bumptech/glide/load/resource/bitmap/Downsampler;)V
invoke-direct {v12, v0, v2, v13}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;-><init>(Landroid/content/res/Resources;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/ResourceDecoder;)V
.line 307
invoke-virtual {v9, v10, v11, v12}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v9
const-class v10, Ljava/io/InputStream;
const-class v11, Landroid/graphics/drawable/BitmapDrawable;
new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;
new-instance v13, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder;
invoke-direct {v13, v6, v3}, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder;-><init>(Lcom/bumptech/glide/load/resource/bitmap/Downsampler;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
invoke-direct {v12, v0, v2, v13}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;-><init>(Landroid/content/res/Resources;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/ResourceDecoder;)V
.line 310
invoke-virtual {v9, v10, v11, v12}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v9, Landroid/os/ParcelFileDescriptor;
const-class v10, Landroid/graphics/drawable/BitmapDrawable;
new-instance v11, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;
new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/VideoBitmapDecoder;
invoke-direct {v12, v2}, Lcom/bumptech/glide/load/resource/bitmap/VideoBitmapDecoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V
invoke-direct {v11, v0, v2, v12}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;-><init>(Landroid/content/res/Resources;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/ResourceDecoder;)V
.line 313
invoke-virtual {v6, v9, v10, v11}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v9, Landroid/graphics/drawable/BitmapDrawable;
new-instance v10, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableEncoder;
new-instance v11, Lcom/bumptech/glide/load/resource/bitmap/BitmapEncoder;
invoke-direct {v11}, Lcom/bumptech/glide/load/resource/bitmap/BitmapEncoder;-><init>()V
invoke-direct {v10, v2, v11}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableEncoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/ResourceEncoder;)V
.line 315
invoke-virtual {v6, v9, v10}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v9, Ljava/io/InputStream;
const-class v10, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
new-instance v11, Lcom/bumptech/glide/load/resource/gif/StreamGifDecoder;
iget-object v12, v8, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
.line 318
invoke-virtual {v12}, Lcom/bumptech/glide/Registry;->getImageHeaderParsers()Ljava/util/List;
move-result-object v12
invoke-direct {v11, v12, v7, v3}, Lcom/bumptech/glide/load/resource/gif/StreamGifDecoder;-><init>(Ljava/util/List;Lcom/bumptech/glide/load/ResourceDecoder;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
.line 317
invoke-virtual {v6, v9, v10, v11}, Lcom/bumptech/glide/Registry;->prepend(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v9, Ljava/nio/ByteBuffer;
const-class v10, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
.line 319
invoke-virtual {v6, v9, v10, v7}, Lcom/bumptech/glide/Registry;->prepend(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v7, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
new-instance v9, Lcom/bumptech/glide/load/resource/gif/GifDrawableEncoder;
invoke-direct {v9}, Lcom/bumptech/glide/load/resource/gif/GifDrawableEncoder;-><init>()V
.line 320
invoke-virtual {v6, v7, v9}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v7, Lcom/bumptech/glide/gifdecoder/GifDecoder;
const-class v9, Lcom/bumptech/glide/gifdecoder/GifDecoder;
new-instance v10, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;
invoke-direct {v10}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;-><init>()V
.line 322
invoke-virtual {v6, v7, v9, v10}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v7, Lcom/bumptech/glide/gifdecoder/GifDecoder;
const-class v9, Landroid/graphics/Bitmap;
new-instance v10, Lcom/bumptech/glide/load/resource/gif/GifFrameResourceDecoder;
invoke-direct {v10, v2}, Lcom/bumptech/glide/load/resource/gif/GifFrameResourceDecoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V
.line 323
invoke-virtual {v6, v7, v9, v10}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v6
new-instance v7, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder$Factory;
invoke-direct {v7}, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder$Factory;-><init>()V
.line 325
invoke-virtual {v6, v7}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v7, Ljava/io/File;
const-class v9, Ljava/nio/ByteBuffer;
new-instance v10, Lcom/bumptech/glide/load/model/ByteBufferFileLoader$Factory;
invoke-direct {v10}, Lcom/bumptech/glide/load/model/ByteBufferFileLoader$Factory;-><init>()V
.line 326
invoke-virtual {v6, v7, v9, v10}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v7, Ljava/io/File;
const-class v9, Ljava/io/InputStream;
new-instance v10, Lcom/bumptech/glide/load/model/FileLoader$StreamFactory;
invoke-direct {v10}, Lcom/bumptech/glide/load/model/FileLoader$StreamFactory;-><init>()V
.line 327
invoke-virtual {v6, v7, v9, v10}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v7, Ljava/io/File;
const-class v9, Ljava/io/File;
new-instance v10, Lcom/bumptech/glide/load/resource/file/FileDecoder;
invoke-direct {v10}, Lcom/bumptech/glide/load/resource/file/FileDecoder;-><init>()V
.line 328
invoke-virtual {v6, v7, v9, v10}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v7, Ljava/io/File;
const-class v9, Landroid/os/ParcelFileDescriptor;
new-instance v10, Lcom/bumptech/glide/load/model/FileLoader$FileDescriptorFactory;
invoke-direct {v10}, Lcom/bumptech/glide/load/model/FileLoader$FileDescriptorFactory;-><init>()V
.line 329
invoke-virtual {v6, v7, v9, v10}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v6
const-class v7, Ljava/io/File;
const-class v9, Ljava/io/File;
new-instance v10, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;
invoke-direct {v10}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;-><init>()V
.line 330
invoke-virtual {v6, v7, v9, v10}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v6
new-instance v7, Lcom/bumptech/glide/load/data/InputStreamRewinder$Factory;
invoke-direct {v7, v3}, Lcom/bumptech/glide/load/data/InputStreamRewinder$Factory;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
.line 332
invoke-virtual {v6, v7}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)Lcom/bumptech/glide/Registry;
move-result-object v3
sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/ResourceLoader$StreamFactory;
invoke-direct {v9, v0}, Lcom/bumptech/glide/load/model/ResourceLoader$StreamFactory;-><init>(Landroid/content/res/Resources;)V
.line 333
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const-class v7, Landroid/os/ParcelFileDescriptor;
new-instance v9, Lcom/bumptech/glide/load/model/ResourceLoader$FileDescriptorFactory;
invoke-direct {v9, v0}, Lcom/bumptech/glide/load/model/ResourceLoader$FileDescriptorFactory;-><init>(Landroid/content/res/Resources;)V
.line 334
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Ljava/lang/Integer;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/ResourceLoader$StreamFactory;
invoke-direct {v9, v0}, Lcom/bumptech/glide/load/model/ResourceLoader$StreamFactory;-><init>(Landroid/content/res/Resources;)V
.line 338
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Ljava/lang/Integer;
const-class v7, Landroid/os/ParcelFileDescriptor;
new-instance v9, Lcom/bumptech/glide/load/model/ResourceLoader$FileDescriptorFactory;
invoke-direct {v9, v0}, Lcom/bumptech/glide/load/model/ResourceLoader$FileDescriptorFactory;-><init>(Landroid/content/res/Resources;)V
.line 339
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Ljava/lang/String;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory;
invoke-direct {v9}, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory;-><init>()V
.line 343
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Ljava/lang/String;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/StringLoader$StreamFactory;
invoke-direct {v9}, Lcom/bumptech/glide/load/model/StringLoader$StreamFactory;-><init>()V
.line 344
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Ljava/lang/String;
const-class v7, Landroid/os/ParcelFileDescriptor;
new-instance v9, Lcom/bumptech/glide/load/model/StringLoader$FileDescriptorFactory;
invoke-direct {v9}, Lcom/bumptech/glide/load/model/StringLoader$FileDescriptorFactory;-><init>()V
.line 345
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/stream/HttpUriLoader$Factory;
invoke-direct {v9}, Lcom/bumptech/glide/load/model/stream/HttpUriLoader$Factory;-><init>()V
.line 346
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/AssetUriLoader$StreamFactory;
.line 347
invoke-virtual {p1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v10
invoke-direct {v9, v10}, Lcom/bumptech/glide/load/model/AssetUriLoader$StreamFactory;-><init>(Landroid/content/res/AssetManager;)V
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Landroid/os/ParcelFileDescriptor;
new-instance v9, Lcom/bumptech/glide/load/model/AssetUriLoader$FileDescriptorFactory;
.line 351
invoke-virtual {p1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v10
invoke-direct {v9, v10}, Lcom/bumptech/glide/load/model/AssetUriLoader$FileDescriptorFactory;-><init>(Landroid/content/res/AssetManager;)V
.line 348
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/stream/MediaStoreImageThumbLoader$Factory;
invoke-direct {v9, p1}, Lcom/bumptech/glide/load/model/stream/MediaStoreImageThumbLoader$Factory;-><init>(Landroid/content/Context;)V
.line 352
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/stream/MediaStoreVideoThumbLoader$Factory;
invoke-direct {v9, p1}, Lcom/bumptech/glide/load/model/stream/MediaStoreVideoThumbLoader$Factory;-><init>(Landroid/content/Context;)V
.line 353
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/UriLoader$StreamFactory;
.line 357
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v10
invoke-direct {v9, v10}, Lcom/bumptech/glide/load/model/UriLoader$StreamFactory;-><init>(Landroid/content/ContentResolver;)V
.line 354
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Landroid/os/ParcelFileDescriptor;
new-instance v9, Lcom/bumptech/glide/load/model/UriLoader$FileDescriptorFactory;
.line 359
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v10
invoke-direct {v9, v10}, Lcom/bumptech/glide/load/model/UriLoader$FileDescriptorFactory;-><init>(Landroid/content/ContentResolver;)V
.line 358
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/UrlUriLoader$StreamFactory;
invoke-direct {v9}, Lcom/bumptech/glide/load/model/UrlUriLoader$StreamFactory;-><init>()V
.line 360
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Ljava/net/URL;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/stream/UrlLoader$StreamFactory;
invoke-direct {v9}, Lcom/bumptech/glide/load/model/stream/UrlLoader$StreamFactory;-><init>()V
.line 361
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/net/Uri;
const-class v7, Ljava/io/File;
new-instance v9, Lcom/bumptech/glide/load/model/MediaStoreFileLoader$Factory;
invoke-direct {v9, p1}, Lcom/bumptech/glide/load/model/MediaStoreFileLoader$Factory;-><init>(Landroid/content/Context;)V
.line 362
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Lcom/bumptech/glide/load/model/GlideUrl;
const-class v7, Ljava/io/InputStream;
new-instance v9, Lcom/bumptech/glide/load/model/stream/HttpGlideUrlLoader$Factory;
invoke-direct {v9}, Lcom/bumptech/glide/load/model/stream/HttpGlideUrlLoader$Factory;-><init>()V
.line 363
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Ljava/nio/ByteBuffer;
new-instance v7, Lcom/bumptech/glide/load/model/ByteArrayLoader$ByteBufferFactory;
invoke-direct {v7}, Lcom/bumptech/glide/load/model/ByteArrayLoader$ByteBufferFactory;-><init>()V
.line 364
invoke-virtual {v3, v4, v6, v7}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Ljava/io/InputStream;
new-instance v7, Lcom/bumptech/glide/load/model/ByteArrayLoader$StreamFactory;
invoke-direct {v7}, Lcom/bumptech/glide/load/model/ByteArrayLoader$StreamFactory;-><init>()V
.line 365
invoke-virtual {v3, v4, v6, v7}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v3
const-class v6, Landroid/graphics/Bitmap;
const-class v7, Landroid/graphics/drawable/BitmapDrawable;
new-instance v9, Lcom/bumptech/glide/load/resource/transcode/BitmapDrawableTranscoder;
invoke-direct {v9, v0, v2}, Lcom/bumptech/glide/load/resource/transcode/BitmapDrawableTranscoder;-><init>(Landroid/content/res/Resources;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V
.line 367
invoke-virtual {v3, v6, v7, v9}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/graphics/Bitmap;
new-instance v3, Lcom/bumptech/glide/load/resource/transcode/BitmapBytesTranscoder;
invoke-direct {v3}, Lcom/bumptech/glide/load/resource/transcode/BitmapBytesTranscoder;-><init>()V
.line 369
invoke-virtual {v0, v2, v4, v3}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
new-instance v3, Lcom/bumptech/glide/load/resource/transcode/GifDrawableBytesTranscoder;
invoke-direct {v3}, Lcom/bumptech/glide/load/resource/transcode/GifDrawableBytesTranscoder;-><init>()V
.line 370
invoke-virtual {v0, v2, v4, v3}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)Lcom/bumptech/glide/Registry;
.line 372
new-instance v3, Lcom/bumptech/glide/request/target/ImageViewTargetFactory;
invoke-direct {v3}, Lcom/bumptech/glide/request/target/ImageViewTargetFactory;-><init>()V
.line 373
new-instance v9, Lcom/bumptech/glide/GlideContext;
iget-object v2, v8, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
move-object v0, v9
move-object/from16 v4, p9
move-object v6, p0
move/from16 v7, p8
invoke-direct/range {v0 .. v7}, Lcom/bumptech/glide/GlideContext;-><init>(Landroid/content/Context;Lcom/bumptech/glide/Registry;Lcom/bumptech/glide/request/target/ImageViewTargetFactory;Lcom/bumptech/glide/request/RequestOptions;Lcom/bumptech/glide/load/engine/Engine;Landroid/content/ComponentCallbacks2;I)V
iput-object v9, v8, Lcom/bumptech/glide/Glide;->glideContext:Lcom/bumptech/glide/GlideContext;
return-void
.end method
.method private static checkAndInitializeGlide(Landroid/content/Context;)V
.registers 2
.line 166
sget-boolean v0, Lcom/bumptech/glide/Glide;->isInitializing:Z
if-nez v0, :cond_e
const/4 v0, 0x1
.line 170
sput-boolean v0, Lcom/bumptech/glide/Glide;->isInitializing:Z
.line 171
invoke-static {p0}, Lcom/bumptech/glide/Glide;->initializeGlide(Landroid/content/Context;)V
const/4 p0, 0x0
.line 172
sput-boolean p0, Lcom/bumptech/glide/Glide;->isInitializing:Z
return-void
.line 167
:cond_e
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "You cannot call Glide.get() in registerComponents(), use the provided Glide instance instead"
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static get(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
.registers 3
.line 152
sget-object v0, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
if-nez v0, :cond_13
.line 153
const-class v0, Lcom/bumptech/glide/Glide;
monitor-enter v0
.line 154
:try_start_7
sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
if-nez v1, :cond_e
.line 155
invoke-static {p0}, Lcom/bumptech/glide/Glide;->checkAndInitializeGlide(Landroid/content/Context;)V
.line 157
:cond_e
monitor-exit v0
goto :goto_13
:catchall_10
move-exception p0
monitor-exit v0
:try_end_12
.catchall {:try_start_7 .. :try_end_12} :catchall_10
throw p0
.line 160
:cond_13
:goto_13
sget-object p0, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
return-object p0
.end method
.method private static getAnnotationGeneratedGlideModules()Lcom/bumptech/glide/GeneratedAppGlideModule;
.registers 3
const-string v0, "GeneratedAppGlideModuleImpl is implemented incorrectly. If you\'ve manually implemented this class, remove your implementation. The Annotation processor will generate a correct implementation."
:try_start_2
const-string v1, "com.bumptech.glide.GeneratedAppGlideModuleImpl"
.line 245
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v1
.line 246
invoke-virtual {v1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/bumptech/glide/GeneratedAppGlideModule;
:try_end_e
.catch Ljava/lang/ClassNotFoundException; {:try_start_2 .. :try_end_e} :catch_1d
.catch Ljava/lang/InstantiationException; {:try_start_2 .. :try_end_e} :catch_16
.catch Ljava/lang/IllegalAccessException; {:try_start_2 .. :try_end_e} :catch_f
goto :goto_2d
:catch_f
move-exception v1
.line 259
new-instance v2, Ljava/lang/IllegalStateException;
invoke-direct {v2, v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
:catch_16
move-exception v1
.line 255
new-instance v2, Ljava/lang/IllegalStateException;
invoke-direct {v2, v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
:catch_1d
nop
const/4 v0, 0x5
const-string v1, "Glide"
.line 248
invoke-static {v1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v0
if-eqz v0, :cond_2c
const-string v0, "Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored"
.line 249
invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
:cond_2c
const/4 v1, 0x0
:goto_2d
return-object v1
.end method
.method public static getPhotoCacheDir(Landroid/content/Context;)Ljava/io/File;
.registers 2
const-string v0, "image_manager_disk_cache"
.line 118
invoke-static {p0, v0}, Lcom/bumptech/glide/Glide;->getPhotoCacheDir(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;
move-result-object p0
return-object p0
.end method
.method public static getPhotoCacheDir(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;
.registers 4
.line 131
invoke-virtual {p0}, Landroid/content/Context;->getCacheDir()Ljava/io/File;
move-result-object p0
const/4 v0, 0x0
if-eqz p0, :cond_20
.line 133
new-instance v1, Ljava/io/File;
invoke-direct {v1, p0, p1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 134
invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z
move-result p0
if-nez p0, :cond_1f
invoke-virtual {v1}, Ljava/io/File;->exists()Z
move-result p0
if-eqz p0, :cond_1e
invoke-virtual {v1}, Ljava/io/File;->isDirectory()Z
move-result p0
if-nez p0, :cond_1f
:cond_1e
return-object v0
:cond_1f
return-object v1
:cond_20
const/4 p0, 0x6
const-string p1, "Glide"
.line 140
invoke-static {p1, p0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result p0
if-eqz p0, :cond_2e
const-string p0, "default disk cache dir is null"
.line 141
invoke-static {p1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:cond_2e
return-object v0
.end method
.method private static getRetriever(Landroid/content/Context;)Lcom/bumptech/glide/manager/RequestManagerRetriever;
.registers 2
const-string v0, "You cannot start a load on a not yet attached View or a Fragment where getActivity() returns null (which usually occurs when getActivity() is called before the Fragment is attached or after the Fragment is destroyed)."
.line 523
invoke-static {p0, v0}, Lcom/bumptech/glide/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 528
invoke-static {p0}, Lcom/bumptech/glide/Glide;->get(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
move-result-object p0
invoke-virtual {p0}, Lcom/bumptech/glide/Glide;->getRequestManagerRetriever()Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-result-object p0
return-object p0
.end method
.method public static declared-synchronized init(Lcom/bumptech/glide/Glide;)V
.registers 2
const-class v0, Lcom/bumptech/glide/Glide;
monitor-enter v0
.line 177
:try_start_3
sput-object p0, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
:try_end_5
.catchall {:try_start_3 .. :try_end_5} :catchall_7
.line 178
monitor-exit v0
return-void
:catchall_7
move-exception p0
monitor-exit v0
throw p0
.end method
.method private static initializeGlide(Landroid/content/Context;)V
.registers 10
.line 187
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
.line 189
invoke-static {}, Lcom/bumptech/glide/Glide;->getAnnotationGeneratedGlideModules()Lcom/bumptech/glide/GeneratedAppGlideModule;
move-result-object v0
.line 190
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v1
if-eqz v0, :cond_14
.line 191
invoke-virtual {v0}, Lcom/bumptech/glide/GeneratedAppGlideModule;->isManifestParsingEnabled()Z
move-result v2
if-eqz v2, :cond_1d
.line 192
:cond_14
new-instance v1, Lcom/bumptech/glide/module/ManifestParser;
invoke-direct {v1, p0}, Lcom/bumptech/glide/module/ManifestParser;-><init>(Landroid/content/Context;)V
invoke-virtual {v1}, Lcom/bumptech/glide/module/ManifestParser;->parse()Ljava/util/List;
move-result-object v1
:cond_1d
const/4 v2, 0x3
const-string v3, "Glide"
if-eqz v0, :cond_69
.line 196
invoke-virtual {v0}, Lcom/bumptech/glide/GeneratedAppGlideModule;->getExcludedModuleClasses()Ljava/util/Set;
move-result-object v4
invoke-interface {v4}, Ljava/util/Set;->isEmpty()Z
move-result v4
if-nez v4, :cond_69
.line 198
invoke-virtual {v0}, Lcom/bumptech/glide/GeneratedAppGlideModule;->getExcludedModuleClasses()Ljava/util/Set;
move-result-object v4
.line 199
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v5
:goto_34
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v6
if-eqz v6, :cond_69
.line 200
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v6
check-cast v6, Lcom/bumptech/glide/module/GlideModule;
.line 201
invoke-virtual {v6}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v7
invoke-interface {v4, v7}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v7
if-nez v7, :cond_4b
goto :goto_34
.line 204
:cond_4b
invoke-static {v3, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v7
if-eqz v7, :cond_65
.line 205
new-instance v7, Ljava/lang/StringBuilder;
invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V
const-string v8, "AppGlideModule excludes manifest GlideModule: "
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
invoke-static {v3, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 207
:cond_65
invoke-interface {v5}, Ljava/util/Iterator;->remove()V
goto :goto_34
.line 211
:cond_69
invoke-static {v3, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v2
if-eqz v2, :cond_98
.line 212
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_73
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_98
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/bumptech/glide/module/GlideModule;
.line 213
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
const-string v6, "Discovered GlideModule from manifest: "
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v4
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_73
:cond_98
if-eqz v0, :cond_9f
.line 219
invoke-virtual {v0}, Lcom/bumptech/glide/GeneratedAppGlideModule;->getRequestManagerFactory()Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
move-result-object v2
goto :goto_a0
:cond_9f
const/4 v2, 0x0
.line 220
:goto_a0
new-instance v3, Lcom/bumptech/glide/GlideBuilder;
invoke-direct {v3}, Lcom/bumptech/glide/GlideBuilder;-><init>()V
.line 221
invoke-virtual {v3, v2}, Lcom/bumptech/glide/GlideBuilder;->setRequestManagerFactory(Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;)Lcom/bumptech/glide/GlideBuilder;
move-result-object v2
.line 222
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v3
:goto_ad
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_bd
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/bumptech/glide/module/GlideModule;
.line 223
invoke-interface {v4, p0, v2}, Lcom/bumptech/glide/module/GlideModule;->applyOptions(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V
goto :goto_ad
:cond_bd
if-eqz v0, :cond_c2
.line 226
invoke-virtual {v0, p0, v2}, Lcom/bumptech/glide/GeneratedAppGlideModule;->applyOptions(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V
.line 228
:cond_c2
invoke-virtual {v2, p0}, Lcom/bumptech/glide/GlideBuilder;->build(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
move-result-object v2
.line 229
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_ca
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_dc
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/bumptech/glide/module/GlideModule;
.line 230
iget-object v4, v2, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
invoke-interface {v3, p0, v2, v4}, Lcom/bumptech/glide/module/GlideModule;->registerComponents(Landroid/content/Context;Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/Registry;)V
goto :goto_ca
:cond_dc
if-eqz v0, :cond_e3
.line 233
iget-object v1, v2, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
invoke-virtual {v0, p0, v2, v1}, Lcom/bumptech/glide/GeneratedAppGlideModule;->registerComponents(Landroid/content/Context;Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/Registry;)V
.line 235
:cond_e3
sput-object v2, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
return-void
.end method
.method public static declared-synchronized tearDown()V
.registers 2
const-class v0, Lcom/bumptech/glide/Glide;
monitor-enter v0
const/4 v1, 0x0
.line 182
:try_start_4
sput-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
:try_end_6
.catchall {:try_start_4 .. :try_end_6} :catchall_8
.line 183
monitor-exit v0
return-void
:catchall_8
move-exception v1
monitor-exit v0
throw v1
.end method
.method public static with(Landroid/app/Activity;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 565
invoke-static {p0}, Lcom/bumptech/glide/Glide;->getRetriever(Landroid/content/Context;)Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->get(Landroid/app/Activity;)Lcom/bumptech/glide/RequestManager;
move-result-object p0
return-object p0
.end method
.method public static with(Landroid/app/Fragment;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 588
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
move-result-object v0
invoke-static {v0}, Lcom/bumptech/glide/Glide;->getRetriever(Landroid/content/Context;)Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->get(Landroid/app/Fragment;)Lcom/bumptech/glide/RequestManager;
move-result-object p0
return-object p0
.end method
.method public static with(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 554
invoke-static {p0}, Lcom/bumptech/glide/Glide;->getRetriever(Landroid/content/Context;)Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->get(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
move-result-object p0
return-object p0
.end method
.method public static with(Landroid/view/View;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 624
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/bumptech/glide/Glide;->getRetriever(Landroid/content/Context;)Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->get(Landroid/view/View;)Lcom/bumptech/glide/RequestManager;
move-result-object p0
return-object p0
.end method
.method public static with(Landroidx/fragment/app/Fragment;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 600
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-static {v0}, Lcom/bumptech/glide/Glide;->getRetriever(Landroid/content/Context;)Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->get(Landroidx/fragment/app/Fragment;)Lcom/bumptech/glide/RequestManager;
move-result-object p0
return-object p0
.end method
.method public static with(Landroidx/fragment/app/FragmentActivity;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 577
invoke-static {p0}, Lcom/bumptech/glide/Glide;->getRetriever(Landroid/content/Context;)Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->get(Landroidx/fragment/app/FragmentActivity;)Lcom/bumptech/glide/RequestManager;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public clearDiskCache()V
.registers 2
.line 485
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertBackgroundThread()V
.line 486
iget-object v0, p0, Lcom/bumptech/glide/Glide;->engine:Lcom/bumptech/glide/load/engine/Engine;
invoke-virtual {v0}, Lcom/bumptech/glide/load/engine/Engine;->clearDiskCache()V
return-void
.end method
.method public clearMemory()V
.registers 2
.line 456
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 458
iget-object v0, p0, Lcom/bumptech/glide/Glide;->memoryCache:Lcom/bumptech/glide/load/engine/cache/MemoryCache;
invoke-interface {v0}, Lcom/bumptech/glide/load/engine/cache/MemoryCache;->clearMemory()V
.line 459
iget-object v0, p0, Lcom/bumptech/glide/Glide;->bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
invoke-interface {v0}, Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;->clearMemory()V
.line 460
iget-object v0, p0, Lcom/bumptech/glide/Glide;->arrayPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;
invoke-interface {v0}, Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;->clearMemory()V
return-void
.end method
.method public getArrayPool()Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;
.registers 2
.line 401
iget-object v0, p0, Lcom/bumptech/glide/Glide;->arrayPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;
return-object v0
.end method
.method public getBitmapPool()Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
.registers 2
.line 397
iget-object v0, p0, Lcom/bumptech/glide/Glide;->bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
return-object v0
.end method
.method getConnectivityMonitorFactory()Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;
.registers 2
.line 412
iget-object v0, p0, Lcom/bumptech/glide/Glide;->connectivityMonitorFactory:Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;
return-object v0
.end method
.method public getContext()Landroid/content/Context;
.registers 2
.line 408
iget-object v0, p0, Lcom/bumptech/glide/Glide;->glideContext:Lcom/bumptech/glide/GlideContext;
invoke-virtual {v0}, Lcom/bumptech/glide/GlideContext;->getBaseContext()Landroid/content/Context;
move-result-object v0
return-object v0
.end method
.method getGlideContext()Lcom/bumptech/glide/GlideContext;
.registers 2
.line 416
iget-object v0, p0, Lcom/bumptech/glide/Glide;->glideContext:Lcom/bumptech/glide/GlideContext;
return-object v0
.end method
.method public getRegistry()Lcom/bumptech/glide/Registry;
.registers 2
.line 628
iget-object v0, p0, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
return-object v0
.end method
.method public getRequestManagerRetriever()Lcom/bumptech/glide/manager/RequestManagerRetriever;
.registers 2
.line 494
iget-object v0, p0, Lcom/bumptech/glide/Glide;->requestManagerRetriever:Lcom/bumptech/glide/manager/RequestManagerRetriever;
return-object v0
.end method
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
.registers 2
return-void
.end method
.method public onLowMemory()V
.registers 1
.line 672
invoke-virtual {p0}, Lcom/bumptech/glide/Glide;->clearMemory()V
return-void
.end method
.method public onTrimMemory(I)V
.registers 2
.line 662
invoke-virtual {p0, p1}, Lcom/bumptech/glide/Glide;->trimMemory(I)V
return-void
.end method
.method public varargs preFillBitmapPool([Lcom/bumptech/glide/load/engine/prefill/PreFillType$Builder;)V
.registers 3
.line 445
iget-object v0, p0, Lcom/bumptech/glide/Glide;->bitmapPreFiller:Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;->preFill([Lcom/bumptech/glide/load/engine/prefill/PreFillType$Builder;)V
return-void
.end method
.method registerRequestManager(Lcom/bumptech/glide/RequestManager;)V
.registers 4
.line 643
iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
monitor-enter v0
.line 644
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
invoke-interface {v1, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_12
.line 647
iget-object v1, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 648
monitor-exit v0
return-void
.line 645
:cond_12
new-instance p1, Ljava/lang/IllegalStateException;
const-string v1, "Cannot register already registered manager"
invoke-direct {p1, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_1a
move-exception p1
.line 648
monitor-exit v0
:try_end_1c
.catchall {:try_start_3 .. :try_end_1c} :catchall_1a
throw p1
.end method
.method removeFromManagers(Lcom/bumptech/glide/request/target/Target;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/request/target/Target<",
"*>;)V"
}
.end annotation
.line 632
iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
monitor-enter v0
.line 633
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_9
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1d
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/bumptech/glide/RequestManager;
.line 634
invoke-virtual {v2, p1}, Lcom/bumptech/glide/RequestManager;->untrack(Lcom/bumptech/glide/request/target/Target;)Z
move-result v2
if-eqz v2, :cond_9
.line 635
monitor-exit v0
return-void
.line 638
:cond_1d
monitor-exit v0
:try_end_1e
.catchall {:try_start_3 .. :try_end_1e} :catchall_26
.line 639
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Failed to remove target from managers"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_26
move-exception p1
.line 638
:try_start_27
monitor-exit v0
:try_end_28
.catchall {:try_start_27 .. :try_end_28} :catchall_26
throw p1
.end method
.method public setMemoryCategory(Lcom/bumptech/glide/MemoryCategory;)Lcom/bumptech/glide/MemoryCategory;
.registers 4
.line 511
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 513
iget-object v0, p0, Lcom/bumptech/glide/Glide;->memoryCache:Lcom/bumptech/glide/load/engine/cache/MemoryCache;
invoke-virtual {p1}, Lcom/bumptech/glide/MemoryCategory;->getMultiplier()F
move-result v1
invoke-interface {v0, v1}, Lcom/bumptech/glide/load/engine/cache/MemoryCache;->setSizeMultiplier(F)V
.line 514
iget-object v0, p0, Lcom/bumptech/glide/Glide;->bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
invoke-virtual {p1}, Lcom/bumptech/glide/MemoryCategory;->getMultiplier()F
move-result v1
invoke-interface {v0, v1}, Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;->setSizeMultiplier(F)V
.line 515
iget-object v0, p0, Lcom/bumptech/glide/Glide;->memoryCategory:Lcom/bumptech/glide/MemoryCategory;
.line 516
iput-object p1, p0, Lcom/bumptech/glide/Glide;->memoryCategory:Lcom/bumptech/glide/MemoryCategory;
return-object v0
.end method
.method public trimMemory(I)V
.registers 3
.line 470
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 472
iget-object v0, p0, Lcom/bumptech/glide/Glide;->memoryCache:Lcom/bumptech/glide/load/engine/cache/MemoryCache;
invoke-interface {v0, p1}, Lcom/bumptech/glide/load/engine/cache/MemoryCache;->trimMemory(I)V
.line 473
iget-object v0, p0, Lcom/bumptech/glide/Glide;->bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
invoke-interface {v0, p1}, Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;->trimMemory(I)V
.line 474
iget-object v0, p0, Lcom/bumptech/glide/Glide;->arrayPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;
invoke-interface {v0, p1}, Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;->trimMemory(I)V
return-void
.end method
.method unregisterRequestManager(Lcom/bumptech/glide/RequestManager;)V
.registers 4
.line 652
iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
monitor-enter v0
.line 653
:try_start_3
iget-object v1, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
invoke-interface {v1, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_12
.line 656
iget-object v1, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
invoke-interface {v1, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
.line 657
monitor-exit v0
return-void
.line 654
:cond_12
new-instance p1, Ljava/lang/IllegalStateException;
const-string v1, "Cannot register not yet registered manager"
invoke-direct {p1, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_1a
move-exception p1
.line 657
monitor-exit v0
:try_end_1c
.catchall {:try_start_3 .. :try_end_1c} :catchall_1a
throw p1
.end method