Glide.smali
.class public Lcom/bumptech/glide/Glide;
.super Ljava/lang/Object;
.source "Glide.java"
# interfaces
.implements Landroid/content/ComponentCallbacks2;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/Glide$RequestOptionsFactory;
}
.end annotation
# 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 bitmapPreFiller:Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;
.field private final connectivityMonitorFactory:Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;
.field private final defaultRequestOptionsFactory:Lcom/bumptech/glide/Glide$RequestOptionsFactory;
.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/Glide$RequestOptionsFactory;Ljava/util/Map;Ljava/util/List;Lcom/bumptech/glide/GlideExperiments;)V
.registers 34
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"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;",
"I",
"Lcom/bumptech/glide/Glide$RequestOptionsFactory;",
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Lcom/bumptech/glide/TransitionOptions<",
"**>;>;",
"Ljava/util/List<",
"Lcom/bumptech/glide/request/RequestListener<",
"Ljava/lang/Object;",
">;>;",
"Lcom/bumptech/glide/GlideExperiments;",
")V"
}
.end annotation
move-object/from16 v0, p0
move-object/from16 v2, p1
move-object/from16 v1, p4
move-object/from16 v3, p5
.line 388
const-class v4, [B
invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
.line 130
new-instance v5, Ljava/util/ArrayList;
invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
iput-object v5, v0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
.line 134
sget-object v5, Lcom/bumptech/glide/MemoryCategory;->NORMAL:Lcom/bumptech/glide/MemoryCategory;
iput-object v5, v0, Lcom/bumptech/glide/Glide;->memoryCategory:Lcom/bumptech/glide/MemoryCategory;
move-object/from16 v9, p2
.line 389
iput-object v9, v0, Lcom/bumptech/glide/Glide;->engine:Lcom/bumptech/glide/load/engine/Engine;
.line 390
iput-object v1, v0, Lcom/bumptech/glide/Glide;->bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
.line 391
iput-object v3, v0, Lcom/bumptech/glide/Glide;->arrayPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;
move-object/from16 v5, p3
.line 392
iput-object v5, v0, Lcom/bumptech/glide/Glide;->memoryCache:Lcom/bumptech/glide/load/engine/cache/MemoryCache;
move-object/from16 v5, p6
.line 393
iput-object v5, v0, Lcom/bumptech/glide/Glide;->requestManagerRetriever:Lcom/bumptech/glide/manager/RequestManagerRetriever;
move-object/from16 v5, p7
.line 394
iput-object v5, v0, Lcom/bumptech/glide/Glide;->connectivityMonitorFactory:Lcom/bumptech/glide/manager/ConnectivityMonitorFactory;
move-object/from16 v6, p9
.line 395
iput-object v6, v0, Lcom/bumptech/glide/Glide;->defaultRequestOptionsFactory:Lcom/bumptech/glide/Glide$RequestOptionsFactory;
.line 397
invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v5
.line 399
new-instance v7, Lcom/bumptech/glide/Registry;
invoke-direct {v7}, Lcom/bumptech/glide/Registry;-><init>()V
iput-object v7, v0, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
.line 400
new-instance v8, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser;
invoke-direct {v8}, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser;-><init>()V
invoke-virtual {v7, v8}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/ImageHeaderParser;)Lcom/bumptech/glide/Registry;
.line 403
sget v8, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v10, 0x1b
if-lt v8, v10, :cond_51
.line 404
new-instance v8, Lcom/bumptech/glide/load/resource/bitmap/ExifInterfaceImageHeaderParser;
invoke-direct {v8}, Lcom/bumptech/glide/load/resource/bitmap/ExifInterfaceImageHeaderParser;-><init>()V
invoke-virtual {v7, v8}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/ImageHeaderParser;)Lcom/bumptech/glide/Registry;
.line 407
:cond_51
invoke-virtual {v7}, Lcom/bumptech/glide/Registry;->getImageHeaderParsers()Ljava/util/List;
move-result-object v8
.line 409
new-instance v10, Lcom/bumptech/glide/load/resource/gif/ByteBufferGifDecoder;
invoke-direct {v10, v2, v8, v1, 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 412
invoke-static/range {p4 .. p4}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->parcel(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)Lcom/bumptech/glide/load/ResourceDecoder;
move-result-object v11
.line 415
new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/Downsampler;
.line 417
invoke-virtual {v7}, Lcom/bumptech/glide/Registry;->getImageHeaderParsers()Ljava/util/List;
move-result-object v13
invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v14
invoke-direct {v12, v13, v14, v1, 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 421
const-class v13, Lcom/bumptech/glide/GlideBuilder$EnableImageDecoderForBitmaps;
move-object/from16 v14, p12
invoke-virtual {v14, v13}, Lcom/bumptech/glide/GlideExperiments;->isEnabled(Ljava/lang/Class;)Z
move-result v13
if-eqz v13, :cond_86
sget v13, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v15, 0x1c
if-lt v13, v15, :cond_86
.line 423
new-instance v13, Lcom/bumptech/glide/load/resource/bitmap/InputStreamBitmapImageDecoderResourceDecoder;
invoke-direct {v13}, Lcom/bumptech/glide/load/resource/bitmap/InputStreamBitmapImageDecoderResourceDecoder;-><init>()V
.line 424
new-instance v15, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapImageDecoderResourceDecoder;
invoke-direct {v15}, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapImageDecoderResourceDecoder;-><init>()V
goto :goto_90
.line 426
:cond_86
new-instance v15, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapDecoder;
invoke-direct {v15, v12}, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapDecoder;-><init>(Lcom/bumptech/glide/load/resource/bitmap/Downsampler;)V
.line 427
new-instance v13, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder;
invoke-direct {v13, v12, 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 430
:goto_90
new-instance v6, Lcom/bumptech/glide/load/resource/drawable/ResourceDrawableDecoder;
invoke-direct {v6, v2}, Lcom/bumptech/glide/load/resource/drawable/ResourceDrawableDecoder;-><init>(Landroid/content/Context;)V
.line 431
new-instance v9, Lcom/bumptech/glide/load/model/ResourceLoader$StreamFactory;
invoke-direct {v9, v5}, Lcom/bumptech/glide/load/model/ResourceLoader$StreamFactory;-><init>(Landroid/content/res/Resources;)V
.line 433
new-instance v14, Lcom/bumptech/glide/load/model/ResourceLoader$UriFactory;
invoke-direct {v14, v5}, Lcom/bumptech/glide/load/model/ResourceLoader$UriFactory;-><init>(Landroid/content/res/Resources;)V
.line 434
new-instance v0, Lcom/bumptech/glide/load/model/ResourceLoader$FileDescriptorFactory;
invoke-direct {v0, v5}, Lcom/bumptech/glide/load/model/ResourceLoader$FileDescriptorFactory;-><init>(Landroid/content/res/Resources;)V
move-object/from16 v16, v4
.line 436
new-instance v4, Lcom/bumptech/glide/load/model/ResourceLoader$AssetFileDescriptorFactory;
invoke-direct {v4, v5}, Lcom/bumptech/glide/load/model/ResourceLoader$AssetFileDescriptorFactory;-><init>(Landroid/content/res/Resources;)V
.line 438
new-instance v2, Lcom/bumptech/glide/load/resource/bitmap/BitmapEncoder;
invoke-direct {v2, v3}, Lcom/bumptech/glide/load/resource/bitmap/BitmapEncoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
move-object/from16 p3, v4
.line 440
new-instance v4, Lcom/bumptech/glide/load/resource/transcode/BitmapBytesTranscoder;
invoke-direct {v4}, Lcom/bumptech/glide/load/resource/transcode/BitmapBytesTranscoder;-><init>()V
move-object/from16 p6, v4
.line 441
new-instance v4, Lcom/bumptech/glide/load/resource/transcode/GifDrawableBytesTranscoder;
invoke-direct {v4}, Lcom/bumptech/glide/load/resource/transcode/GifDrawableBytesTranscoder;-><init>()V
move-object/from16 p7, v4
.line 443
invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v4
move-object/from16 v17, v4
.line 445
const-class v4, Ljava/nio/ByteBuffer;
move-object/from16 v18, v14
new-instance v14, Lcom/bumptech/glide/load/model/ByteBufferEncoder;
invoke-direct {v14}, Lcom/bumptech/glide/load/model/ByteBufferEncoder;-><init>()V
.line 446
invoke-virtual {v7, v4, v14}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry;
move-result-object v4
const-class v14, Ljava/io/InputStream;
move-object/from16 v19, v0
new-instance v0, Lcom/bumptech/glide/load/model/StreamEncoder;
invoke-direct {v0, v3}, Lcom/bumptech/glide/load/model/StreamEncoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
.line 447
invoke-virtual {v4, v14, v0}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Ljava/nio/ByteBuffer;
const-class v14, Landroid/graphics/Bitmap;
move-object/from16 v20, v9
const-string v9, "Bitmap"
.line 449
invoke-virtual {v0, v9, v4, v14, v15}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Ljava/io/InputStream;
const-class v14, Landroid/graphics/Bitmap;
.line 450
invoke-virtual {v0, v9, v4, v14, v13}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
.line 452
invoke-static {}, Lcom/bumptech/glide/load/data/ParcelFileDescriptorRewinder;->isSupported()Z
move-result v0
if-eqz v0, :cond_105
.line 453
const-class v0, Landroid/os/ParcelFileDescriptor;
const-class v4, Landroid/graphics/Bitmap;
new-instance v14, Lcom/bumptech/glide/load/resource/bitmap/ParcelFileDescriptorBitmapDecoder;
invoke-direct {v14, v12}, Lcom/bumptech/glide/load/resource/bitmap/ParcelFileDescriptorBitmapDecoder;-><init>(Lcom/bumptech/glide/load/resource/bitmap/Downsampler;)V
invoke-virtual {v7, v9, v0, v4, v14}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
.line 460
:cond_105
const-class v0, Landroid/os/ParcelFileDescriptor;
const-class v4, Landroid/graphics/Bitmap;
.line 461
invoke-virtual {v7, v9, v0, v4, v11}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Landroid/content/res/AssetFileDescriptor;
const-class v12, Landroid/graphics/Bitmap;
.line 470
invoke-static/range {p4 .. p4}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->asset(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)Lcom/bumptech/glide/load/ResourceDecoder;
move-result-object v14
.line 466
invoke-virtual {v0, v9, v4, v12, v14}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Landroid/graphics/Bitmap;
const-class v12, Landroid/graphics/Bitmap;
.line 471
invoke-static {}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;->getInstance()Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;
move-result-object v14
invoke-virtual {v0, v4, v12, v14}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Landroid/graphics/Bitmap;
const-class v12, Landroid/graphics/Bitmap;
new-instance v14, Lcom/bumptech/glide/load/resource/bitmap/UnitBitmapDecoder;
invoke-direct {v14}, Lcom/bumptech/glide/load/resource/bitmap/UnitBitmapDecoder;-><init>()V
.line 472
invoke-virtual {v0, v9, v4, v12, v14}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Landroid/graphics/Bitmap;
.line 473
invoke-virtual {v0, v4, v2}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Ljava/nio/ByteBuffer;
const-class v12, Landroid/graphics/drawable/BitmapDrawable;
new-instance v14, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;
invoke-direct {v14, v5, v15}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;-><init>(Landroid/content/res/Resources;Lcom/bumptech/glide/load/ResourceDecoder;)V
const-string v15, "BitmapDrawable"
.line 475
invoke-virtual {v0, v15, v4, v12, v14}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Ljava/io/InputStream;
const-class v12, Landroid/graphics/drawable/BitmapDrawable;
new-instance v14, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;
invoke-direct {v14, v5, v13}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;-><init>(Landroid/content/res/Resources;Lcom/bumptech/glide/load/ResourceDecoder;)V
.line 480
invoke-virtual {v0, v15, v4, v12, v14}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Landroid/os/ParcelFileDescriptor;
const-class v12, Landroid/graphics/drawable/BitmapDrawable;
new-instance v13, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;
invoke-direct {v13, v5, v11}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;-><init>(Landroid/content/res/Resources;Lcom/bumptech/glide/load/ResourceDecoder;)V
.line 485
invoke-virtual {v0, v15, v4, v12, v13}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v4, Landroid/graphics/drawable/BitmapDrawable;
new-instance v11, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableEncoder;
invoke-direct {v11, v1, v2}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableEncoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/ResourceEncoder;)V
.line 490
invoke-virtual {v0, v4, v11}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/io/InputStream;
const-class v4, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
new-instance v11, Lcom/bumptech/glide/load/resource/gif/StreamGifDecoder;
invoke-direct {v11, v8, v10, 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
const-string v8, "Gif"
.line 492
invoke-virtual {v0, v8, v2, v4, v11}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/nio/ByteBuffer;
const-class v4, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
.line 497
invoke-virtual {v0, v8, v2, v4, v10}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
new-instance v4, Lcom/bumptech/glide/load/resource/gif/GifDrawableEncoder;
invoke-direct {v4}, Lcom/bumptech/glide/load/resource/gif/GifDrawableEncoder;-><init>()V
.line 498
invoke-virtual {v0, v2, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Lcom/bumptech/glide/gifdecoder/GifDecoder;
const-class v4, Lcom/bumptech/glide/gifdecoder/GifDecoder;
.line 502
invoke-static {}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;->getInstance()Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;
move-result-object v8
.line 501
invoke-virtual {v0, v2, v4, v8}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Lcom/bumptech/glide/gifdecoder/GifDecoder;
const-class v4, Landroid/graphics/Bitmap;
new-instance v8, Lcom/bumptech/glide/load/resource/gif/GifFrameResourceDecoder;
invoke-direct {v8, v1}, Lcom/bumptech/glide/load/resource/gif/GifFrameResourceDecoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V
.line 503
invoke-virtual {v0, v9, v2, v4, v8}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Landroid/graphics/drawable/Drawable;
.line 509
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Landroid/graphics/Bitmap;
new-instance v8, Lcom/bumptech/glide/load/resource/bitmap/ResourceBitmapDecoder;
invoke-direct {v8, v6, v1}, Lcom/bumptech/glide/load/resource/bitmap/ResourceBitmapDecoder;-><init>(Lcom/bumptech/glide/load/resource/drawable/ResourceDrawableDecoder;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V
.line 510
invoke-virtual {v0, v2, v4, v8}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
new-instance v2, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder$Factory;
invoke-direct {v2}, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder$Factory;-><init>()V
.line 513
invoke-virtual {v0, v2}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/io/File;
const-class v4, Ljava/nio/ByteBuffer;
new-instance v6, Lcom/bumptech/glide/load/model/ByteBufferFileLoader$Factory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/ByteBufferFileLoader$Factory;-><init>()V
.line 514
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/io/File;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/FileLoader$StreamFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/FileLoader$StreamFactory;-><init>()V
.line 515
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/io/File;
const-class v4, Ljava/io/File;
new-instance v6, Lcom/bumptech/glide/load/resource/file/FileDecoder;
invoke-direct {v6}, Lcom/bumptech/glide/load/resource/file/FileDecoder;-><init>()V
.line 516
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/io/File;
const-class v4, Landroid/os/ParcelFileDescriptor;
new-instance v6, Lcom/bumptech/glide/load/model/FileLoader$FileDescriptorFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/FileLoader$FileDescriptorFactory;-><init>()V
.line 517
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/io/File;
const-class v4, Ljava/io/File;
.line 519
invoke-static {}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;->getInstance()Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;
move-result-object v6
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
new-instance v2, Lcom/bumptech/glide/load/data/InputStreamRewinder$Factory;
invoke-direct {v2, v3}, Lcom/bumptech/glide/load/data/InputStreamRewinder$Factory;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V
.line 521
invoke-virtual {v0, v2}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)Lcom/bumptech/glide/Registry;
.line 523
invoke-static {}, Lcom/bumptech/glide/load/data/ParcelFileDescriptorRewinder;->isSupported()Z
move-result v0
if-eqz v0, :cond_21b
.line 524
new-instance v0, Lcom/bumptech/glide/load/data/ParcelFileDescriptorRewinder$Factory;
invoke-direct {v0}, Lcom/bumptech/glide/load/data/ParcelFileDescriptorRewinder$Factory;-><init>()V
invoke-virtual {v7, v0}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)Lcom/bumptech/glide/Registry;
.line 527
:cond_21b
sget-object v0, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const-class v2, Ljava/io/InputStream;
move-object/from16 v4, v20
.line 528
invoke-virtual {v7, v0, v2, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
sget-object v2, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const-class v6, Landroid/os/ParcelFileDescriptor;
move-object/from16 v8, v19
.line 529
invoke-virtual {v0, v2, v6, v8}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/lang/Integer;
const-class v6, Ljava/io/InputStream;
.line 530
invoke-virtual {v0, v2, v6, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/lang/Integer;
const-class v4, Landroid/os/ParcelFileDescriptor;
.line 531
invoke-virtual {v0, v2, v4, v8}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/lang/Integer;
const-class v4, Landroid/net/Uri;
move-object/from16 v6, v18
.line 532
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
sget-object v2, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const-class v4, Landroid/content/res/AssetFileDescriptor;
move-object/from16 v8, p3
.line 533
invoke-virtual {v0, v2, v4, v8}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/lang/Integer;
const-class v4, Landroid/content/res/AssetFileDescriptor;
.line 534
invoke-virtual {v0, v2, v4, v8}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
sget-object v2, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const-class v4, Landroid/net/Uri;
.line 535
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/lang/String;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory;-><init>()V
.line 536
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory;-><init>()V
.line 537
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/lang/String;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/StringLoader$StreamFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/StringLoader$StreamFactory;-><init>()V
.line 538
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/lang/String;
const-class v4, Landroid/os/ParcelFileDescriptor;
new-instance v6, Lcom/bumptech/glide/load/model/StringLoader$FileDescriptorFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/StringLoader$FileDescriptorFactory;-><init>()V
.line 539
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/lang/String;
const-class v4, Landroid/content/res/AssetFileDescriptor;
new-instance v6, Lcom/bumptech/glide/load/model/StringLoader$AssetFileDescriptorFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/StringLoader$AssetFileDescriptorFactory;-><init>()V
.line 540
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/AssetUriLoader$StreamFactory;
.line 542
invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v8
invoke-direct {v6, v8}, Lcom/bumptech/glide/load/model/AssetUriLoader$StreamFactory;-><init>(Landroid/content/res/AssetManager;)V
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Landroid/os/ParcelFileDescriptor;
new-instance v6, Lcom/bumptech/glide/load/model/AssetUriLoader$FileDescriptorFactory;
.line 546
invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v8
invoke-direct {v6, v8}, Lcom/bumptech/glide/load/model/AssetUriLoader$FileDescriptorFactory;-><init>(Landroid/content/res/AssetManager;)V
.line 543
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/stream/MediaStoreImageThumbLoader$Factory;
move-object/from16 v8, p1
invoke-direct {v6, v8}, Lcom/bumptech/glide/load/model/stream/MediaStoreImageThumbLoader$Factory;-><init>(Landroid/content/Context;)V
.line 547
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/stream/MediaStoreVideoThumbLoader$Factory;
invoke-direct {v6, v8}, Lcom/bumptech/glide/load/model/stream/MediaStoreVideoThumbLoader$Factory;-><init>(Landroid/content/Context;)V
.line 548
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
.line 549
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x1d
if-lt v0, v2, :cond_2ff
.line 550
const-class v0, Landroid/net/Uri;
const-class v2, Ljava/io/InputStream;
new-instance v4, Lcom/bumptech/glide/load/model/stream/QMediaStoreUriLoader$InputStreamFactory;
invoke-direct {v4, v8}, Lcom/bumptech/glide/load/model/stream/QMediaStoreUriLoader$InputStreamFactory;-><init>(Landroid/content/Context;)V
invoke-virtual {v7, v0, v2, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
.line 552
const-class v0, Landroid/net/Uri;
const-class v2, Landroid/os/ParcelFileDescriptor;
new-instance v4, Lcom/bumptech/glide/load/model/stream/QMediaStoreUriLoader$FileDescriptorFactory;
invoke-direct {v4, v8}, Lcom/bumptech/glide/load/model/stream/QMediaStoreUriLoader$FileDescriptorFactory;-><init>(Landroid/content/Context;)V
invoke-virtual {v7, v0, v2, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
.line 557
:cond_2ff
const-class v0, Landroid/net/Uri;
const-class v2, Ljava/io/InputStream;
new-instance v4, Lcom/bumptech/glide/load/model/UriLoader$StreamFactory;
move-object/from16 v6, v17
invoke-direct {v4, v6}, Lcom/bumptech/glide/load/model/UriLoader$StreamFactory;-><init>(Landroid/content/ContentResolver;)V
.line 558
invoke-virtual {v7, v0, v2, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Landroid/os/ParcelFileDescriptor;
new-instance v9, Lcom/bumptech/glide/load/model/UriLoader$FileDescriptorFactory;
invoke-direct {v9, v6}, Lcom/bumptech/glide/load/model/UriLoader$FileDescriptorFactory;-><init>(Landroid/content/ContentResolver;)V
.line 559
invoke-virtual {v0, v2, v4, 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 v0
const-class v2, Landroid/net/Uri;
const-class v4, Landroid/content/res/AssetFileDescriptor;
new-instance v9, Lcom/bumptech/glide/load/model/UriLoader$AssetFileDescriptorFactory;
invoke-direct {v9, v6}, Lcom/bumptech/glide/load/model/UriLoader$AssetFileDescriptorFactory;-><init>(Landroid/content/ContentResolver;)V
.line 563
invoke-virtual {v0, v2, v4, 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 v0
const-class v2, Landroid/net/Uri;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/UrlUriLoader$StreamFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/UrlUriLoader$StreamFactory;-><init>()V
.line 567
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/net/URL;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/stream/UrlLoader$StreamFactory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/stream/UrlLoader$StreamFactory;-><init>()V
.line 568
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Ljava/io/File;
new-instance v6, Lcom/bumptech/glide/load/model/MediaStoreFileLoader$Factory;
invoke-direct {v6, v8}, Lcom/bumptech/glide/load/model/MediaStoreFileLoader$Factory;-><init>(Landroid/content/Context;)V
.line 569
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Lcom/bumptech/glide/load/model/GlideUrl;
const-class v4, Ljava/io/InputStream;
new-instance v6, Lcom/bumptech/glide/load/model/stream/HttpGlideUrlLoader$Factory;
invoke-direct {v6}, Lcom/bumptech/glide/load/model/stream/HttpGlideUrlLoader$Factory;-><init>()V
.line 570
invoke-virtual {v0, v2, v4, v6}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/nio/ByteBuffer;
new-instance v4, Lcom/bumptech/glide/load/model/ByteArrayLoader$ByteBufferFactory;
invoke-direct {v4}, Lcom/bumptech/glide/load/model/ByteArrayLoader$ByteBufferFactory;-><init>()V
move-object/from16 v6, v16
.line 571
invoke-virtual {v0, v6, v2, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Ljava/io/InputStream;
new-instance v4, Lcom/bumptech/glide/load/model/ByteArrayLoader$StreamFactory;
invoke-direct {v4}, Lcom/bumptech/glide/load/model/ByteArrayLoader$StreamFactory;-><init>()V
.line 572
invoke-virtual {v0, v6, v2, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/net/Uri;
const-class v4, Landroid/net/Uri;
.line 573
invoke-static {}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;->getInstance()Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;
move-result-object v9
invoke-virtual {v0, v2, v4, 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 v0
const-class v2, Landroid/graphics/drawable/Drawable;
const-class v4, Landroid/graphics/drawable/Drawable;
.line 574
invoke-static {}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;->getInstance()Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;
move-result-object v9
invoke-virtual {v0, v2, v4, 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 v0
const-class v2, Landroid/graphics/drawable/Drawable;
const-class v4, Landroid/graphics/drawable/Drawable;
new-instance v9, Lcom/bumptech/glide/load/resource/drawable/UnitDrawableDecoder;
invoke-direct {v9}, Lcom/bumptech/glide/load/resource/drawable/UnitDrawableDecoder;-><init>()V
.line 575
invoke-virtual {v0, v2, v4, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
move-result-object v0
const-class v2, Landroid/graphics/Bitmap;
const-class v4, Landroid/graphics/drawable/BitmapDrawable;
new-instance v9, Lcom/bumptech/glide/load/resource/transcode/BitmapDrawableTranscoder;
invoke-direct {v9, v5}, Lcom/bumptech/glide/load/resource/transcode/BitmapDrawableTranscoder;-><init>(Landroid/content/res/Resources;)V
.line 577
invoke-virtual {v0, v2, v4, 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;
move-object/from16 v4, p6
.line 578
invoke-virtual {v0, v2, v6, v4}, 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/drawable/Drawable;
new-instance v9, Lcom/bumptech/glide/load/resource/transcode/DrawableBytesTranscoder;
move-object/from16 v10, p7
invoke-direct {v9, v1, v4, v10}, Lcom/bumptech/glide/load/resource/transcode/DrawableBytesTranscoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)V
.line 579
invoke-virtual {v0, v2, v6, 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, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
.line 584
invoke-virtual {v0, v2, v6, v10}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)Lcom/bumptech/glide/Registry;
.line 586
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x17
if-lt v0, v2, :cond_3dd
.line 588
invoke-static/range {p4 .. p4}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->byteBuffer(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)Lcom/bumptech/glide/load/ResourceDecoder;
move-result-object v0
.line 589
const-class v1, Ljava/nio/ByteBuffer;
const-class v2, Landroid/graphics/Bitmap;
invoke-virtual {v7, v1, v2, v0}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
.line 590
const-class v1, Ljava/nio/ByteBuffer;
const-class v2, Landroid/graphics/drawable/BitmapDrawable;
new-instance v4, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;
invoke-direct {v4, v5, v0}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;-><init>(Landroid/content/res/Resources;Lcom/bumptech/glide/load/ResourceDecoder;)V
invoke-virtual {v7, v1, v2, v4}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry;
.line 596
:cond_3dd
new-instance v5, Lcom/bumptech/glide/request/target/ImageViewTargetFactory;
invoke-direct {v5}, Lcom/bumptech/glide/request/target/ImageViewTargetFactory;-><init>()V
.line 597
new-instance v0, Lcom/bumptech/glide/GlideContext;
move-object v1, v0
move-object/from16 v2, p1
move-object/from16 v3, p5
move-object v4, v7
move-object/from16 v6, p9
move-object/from16 v7, p10
move-object/from16 v8, p11
move-object/from16 v9, p2
move-object/from16 v10, p12
move/from16 v11, p8
invoke-direct/range {v1 .. v11}, Lcom/bumptech/glide/GlideContext;-><init>(Landroid/content/Context;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;Lcom/bumptech/glide/Registry;Lcom/bumptech/glide/request/target/ImageViewTargetFactory;Lcom/bumptech/glide/Glide$RequestOptionsFactory;Ljava/util/Map;Ljava/util/List;Lcom/bumptech/glide/load/engine/Engine;Lcom/bumptech/glide/GlideExperiments;I)V
move-object/from16 v1, p0
iput-object v0, v1, Lcom/bumptech/glide/Glide;->glideContext:Lcom/bumptech/glide/GlideContext;
return-void
.end method
.method private static checkAndInitializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GeneratedAppGlideModule;)V
.registers 3
.line 204
sget-boolean v0, Lcom/bumptech/glide/Glide;->isInitializing:Z
if-nez v0, :cond_e
const/4 v0, 0x1
.line 209
sput-boolean v0, Lcom/bumptech/glide/Glide;->isInitializing:Z
.line 210
invoke-static {p0, p1}, Lcom/bumptech/glide/Glide;->initializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GeneratedAppGlideModule;)V
const/4 p0, 0x0
.line 211
sput-boolean p0, Lcom/bumptech/glide/Glide;->isInitializing:Z
return-void
.line 205
:cond_e
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "You cannot call Glide.get() in registerComponents(), use the provided Glide instance instead"
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static enableHardwareBitmaps()V
.registers 1
.line 249
invoke-static {}, Lcom/bumptech/glide/load/resource/bitmap/HardwareConfigState;->getInstance()Lcom/bumptech/glide/load/resource/bitmap/HardwareConfigState;
move-result-object v0
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/bitmap/HardwareConfigState;->unblockHardwareBitmaps()V
return-void
.end method
.method public static get(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
.registers 4
.line 186
sget-object v0, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
if-nez v0, :cond_1b
.line 188
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/bumptech/glide/Glide;->getAnnotationGeneratedGlideModules(Landroid/content/Context;)Lcom/bumptech/glide/GeneratedAppGlideModule;
move-result-object v0
.line 189
const-class v1, Lcom/bumptech/glide/Glide;
monitor-enter v1
.line 190
:try_start_f
sget-object v2, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
if-nez v2, :cond_16
.line 191
invoke-static {p0, v0}, Lcom/bumptech/glide/Glide;->checkAndInitializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GeneratedAppGlideModule;)V
.line 193
:cond_16
monitor-exit v1
goto :goto_1b
:catchall_18
move-exception p0
monitor-exit v1
:try_end_1a
.catchall {:try_start_f .. :try_end_1a} :catchall_18
throw p0
.line 196
:cond_1b
:goto_1b
sget-object p0, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
return-object p0
.end method
.method private static getAnnotationGeneratedGlideModules(Landroid/content/Context;)Lcom/bumptech/glide/GeneratedAppGlideModule;
.registers 6
:try_start_0
const-string v0, "com.bumptech.glide.GeneratedAppGlideModuleImpl"
.line 342
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
const/4 v1, 0x1
new-array v2, v1, [Ljava/lang/Class;
.line 343
const-class v3, Landroid/content/Context;
const/4 v4, 0x0
aput-object v3, v2, v4
.line 344
invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
aput-object p0, v1, v4
invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/bumptech/glide/GeneratedAppGlideModule;
:try_end_20
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_20} :catch_35
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_20} :catch_30
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_20} :catch_2b
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_20} :catch_26
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_20} :catch_21
goto :goto_44
:catch_21
move-exception p0
.line 362
invoke-static {p0}, Lcom/bumptech/glide/Glide;->throwIncorrectGlideModule(Ljava/lang/Exception;)V
goto :goto_43
:catch_26
move-exception p0
.line 360
invoke-static {p0}, Lcom/bumptech/glide/Glide;->throwIncorrectGlideModule(Ljava/lang/Exception;)V
goto :goto_43
:catch_2b
move-exception p0
.line 358
invoke-static {p0}, Lcom/bumptech/glide/Glide;->throwIncorrectGlideModule(Ljava/lang/Exception;)V
goto :goto_43
:catch_30
move-exception p0
.line 356
invoke-static {p0}, Lcom/bumptech/glide/Glide;->throwIncorrectGlideModule(Ljava/lang/Exception;)V
goto :goto_43
:catch_35
const/4 p0, 0x5
const-string v0, "Glide"
.line 346
invoke-static {v0, p0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result p0
if-eqz p0, :cond_43
const-string p0, "Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored"
.line 347
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
:cond_43
:goto_43
const/4 p0, 0x0
:goto_44
return-object p0
.end method
.method public static getPhotoCacheDir(Landroid/content/Context;)Ljava/io/File;
.registers 2
const-string v0, "image_manager_disk_cache"
.line 149
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 162
invoke-virtual {p0}, Landroid/content/Context;->getCacheDir()Ljava/io/File;
move-result-object p0
const/4 v0, 0x0
if-eqz p0, :cond_1b
.line 164
new-instance v1, Ljava/io/File;
invoke-direct {v1, p0, p1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 165
invoke-virtual {v1}, Ljava/io/File;->isDirectory()Z
move-result p0
if-nez p0, :cond_1a
invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z
move-result p0
if-eqz p0, :cond_19
goto :goto_1a
:cond_19
return-object v0
:cond_1a
:goto_1a
return-object v1
:cond_1b
const/4 p0, 0x6
const-string p1, "Glide"
.line 171
invoke-static {p1, p0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result p0
if-eqz p0, :cond_29
const-string p0, "default disk cache dir is null"
.line 172
invoke-static {p1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:cond_29
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 769
invoke-static {p0, v0}, Lcom/bumptech/glide/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 774
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 init(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V
.registers 5
.line 230
invoke-static {p0}, Lcom/bumptech/glide/Glide;->getAnnotationGeneratedGlideModules(Landroid/content/Context;)Lcom/bumptech/glide/GeneratedAppGlideModule;
move-result-object v0
.line 231
const-class v1, Lcom/bumptech/glide/Glide;
monitor-enter v1
.line 232
:try_start_7
sget-object v2, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
if-eqz v2, :cond_e
.line 233
invoke-static {}, Lcom/bumptech/glide/Glide;->tearDown()V
.line 235
:cond_e
invoke-static {p0, p1, v0}, Lcom/bumptech/glide/Glide;->initializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;Lcom/bumptech/glide/GeneratedAppGlideModule;)V
.line 236
monitor-exit v1
return-void
:catchall_13
move-exception p0
monitor-exit v1
:try_end_15
.catchall {:try_start_7 .. :try_end_15} :catchall_13
throw p0
.end method
.method public static declared-synchronized init(Lcom/bumptech/glide/Glide;)V
.registers 3
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const-class v0, Lcom/bumptech/glide/Glide;
monitor-enter v0
.line 222
:try_start_3
sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
if-eqz v1, :cond_a
.line 223
invoke-static {}, Lcom/bumptech/glide/Glide;->tearDown()V
.line 225
:cond_a
sput-object p0, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
:try_end_c
.catchall {:try_start_3 .. :try_end_c} :catchall_e
.line 226
monitor-exit v0
return-void
:catchall_e
move-exception p0
monitor-exit v0
throw p0
.end method
.method private static initializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GeneratedAppGlideModule;)V
.registers 3
.line 266
new-instance v0, Lcom/bumptech/glide/GlideBuilder;
invoke-direct {v0}, Lcom/bumptech/glide/GlideBuilder;-><init>()V
invoke-static {p0, v0, p1}, Lcom/bumptech/glide/Glide;->initializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;Lcom/bumptech/glide/GeneratedAppGlideModule;)V
return-void
.end method
.method private static initializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;Lcom/bumptech/glide/GeneratedAppGlideModule;)V
.registers 11
.line 275
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
.line 276
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
if-eqz p2, :cond_10
.line 277
invoke-virtual {p2}, Lcom/bumptech/glide/GeneratedAppGlideModule;->isManifestParsingEnabled()Z
move-result v1
if-eqz v1, :cond_19
.line 278
:cond_10
new-instance v0, Lcom/bumptech/glide/module/ManifestParser;
invoke-direct {v0, p0}, Lcom/bumptech/glide/module/ManifestParser;-><init>(Landroid/content/Context;)V
invoke-virtual {v0}, Lcom/bumptech/glide/module/ManifestParser;->parse()Ljava/util/List;
move-result-object v0
:cond_19
const/4 v1, 0x3
const-string v2, "Glide"
if-eqz p2, :cond_67
.line 282
invoke-virtual {p2}, Lcom/bumptech/glide/GeneratedAppGlideModule;->getExcludedModuleClasses()Ljava/util/Set;
move-result-object v3
invoke-interface {v3}, Ljava/util/Set;->isEmpty()Z
move-result v3
if-nez v3, :cond_67
.line 283
invoke-virtual {p2}, Lcom/bumptech/glide/GeneratedAppGlideModule;->getExcludedModuleClasses()Ljava/util/Set;
move-result-object v3
.line 284
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v4
.line 285
:goto_30
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_67
.line 286
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/bumptech/glide/module/GlideModule;
.line 287
invoke-virtual {v5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v6
invoke-interface {v3, v6}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v6
if-nez v6, :cond_47
goto :goto_30
.line 290
:cond_47
invoke-static {v2, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v6
if-eqz v6, :cond_63
.line 291
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
const-string v7, "AppGlideModule excludes manifest GlideModule: "
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v6
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-static {v2, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 293
:cond_63
invoke-interface {v4}, Ljava/util/Iterator;->remove()V
goto :goto_30
.line 297
:cond_67
invoke-static {v2, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_98
.line 298
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_71
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_98
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/bumptech/glide/module/GlideModule;
.line 299
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "Discovered GlideModule from manifest: "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_71
:cond_98
if-eqz p2, :cond_9f
.line 305
invoke-virtual {p2}, Lcom/bumptech/glide/GeneratedAppGlideModule;->getRequestManagerFactory()Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
move-result-object v1
goto :goto_a0
:cond_9f
const/4 v1, 0x0
.line 307
:goto_a0
invoke-virtual {p1, v1}, Lcom/bumptech/glide/GlideBuilder;->setRequestManagerFactory(Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;)V
.line 308
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_a7
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_b7
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/bumptech/glide/module/GlideModule;
.line 309
invoke-interface {v2, p0, p1}, Lcom/bumptech/glide/module/GlideModule;->applyOptions(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V
goto :goto_a7
:cond_b7
if-eqz p2, :cond_bc
.line 312
invoke-virtual {p2, p0, p1}, Lcom/bumptech/glide/GeneratedAppGlideModule;->applyOptions(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V
.line 314
:cond_bc
invoke-virtual {p1, p0}, Lcom/bumptech/glide/GlideBuilder;->build(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
move-result-object p1
.line 315
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_c4
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_f8
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/bumptech/glide/module/GlideModule;
.line 317
:try_start_d0
iget-object v2, p1, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
invoke-interface {v1, p0, p1, v2}, Lcom/bumptech/glide/module/GlideModule;->registerComponents(Landroid/content/Context;Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/Registry;)V
:try_end_d5
.catch Ljava/lang/AbstractMethodError; {:try_start_d0 .. :try_end_d5} :catch_d6
goto :goto_c4
:catch_d6
move-exception p0
.line 319
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "Attempting to register a Glide v3 module. If you see this, you or one of your dependencies may be including Glide v3 even though you\'re using Glide v4. You\'ll need to find and remove (or update) the offending dependency. The v3 module name is: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
.line 324
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p1
:cond_f8
if-eqz p2, :cond_ff
.line 329
iget-object v0, p1, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry;
invoke-virtual {p2, p0, p1, v0}, Lcom/bumptech/glide/GeneratedAppGlideModule;->registerComponents(Landroid/content/Context;Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/Registry;)V
.line 331
:cond_ff
invoke-virtual {p0, p1}, Landroid/content/Context;->registerComponentCallbacks(Landroid/content/ComponentCallbacks;)V
.line 332
sput-object p1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
return-void
.end method
.method public static tearDown()V
.registers 3
.line 254
const-class v0, Lcom/bumptech/glide/Glide;
monitor-enter v0
.line 255
:try_start_3
sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
if-eqz v1, :cond_1d
.line 256
sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
invoke-virtual {v1}, Lcom/bumptech/glide/Glide;->getContext()Landroid/content/Context;
move-result-object v1
invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
sget-object v2, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
invoke-virtual {v1, v2}, Landroid/content/Context;->unregisterComponentCallbacks(Landroid/content/ComponentCallbacks;)V
.line 257
sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
iget-object v1, v1, Lcom/bumptech/glide/Glide;->engine:Lcom/bumptech/glide/load/engine/Engine;
invoke-virtual {v1}, Lcom/bumptech/glide/load/engine/Engine;->shutdown()V
:cond_1d
const/4 v1, 0x0
.line 259
sput-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide;
.line 260
monitor-exit v0
return-void
:catchall_22
move-exception v1
monitor-exit v0
:try_end_24
.catchall {:try_start_3 .. :try_end_24} :catchall_22
throw v1
.end method
.method private static throwIncorrectGlideModule(Ljava/lang/Exception;)V
.registers 3
.line 368
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "GeneratedAppGlideModuleImpl is implemented incorrectly. If you\'ve manually implemented this class, remove your implementation. The Annotation processor will generate a correct implementation."
invoke-direct {v0, v1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public static with(Landroid/app/Activity;)Lcom/bumptech/glide/RequestManager;
.registers 2
.line 813
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
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 855
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 801
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 885
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 838
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->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(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 826
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 730
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertBackgroundThread()V
.line 731
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 694
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 696
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 697
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 698
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 636
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 631
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 646
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 642
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 651
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 890
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 737
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 935
invoke-virtual {p0}, Lcom/bumptech/glide/Glide;->clearMemory()V
return-void
.end method
.method public onTrimMemory(I)V
.registers 2
.line 925
invoke-virtual {p0, p1}, Lcom/bumptech/glide/Glide;->trimMemory(I)V
return-void
.end method
.method public varargs declared-synchronized preFillBitmapPool([Lcom/bumptech/glide/load/engine/prefill/PreFillType$Builder;)V
.registers 6
monitor-enter p0
.line 677
:try_start_1
iget-object v0, p0, Lcom/bumptech/glide/Glide;->bitmapPreFiller:Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;
if-nez v0, :cond_22
.line 678
iget-object v0, p0, Lcom/bumptech/glide/Glide;->defaultRequestOptionsFactory:Lcom/bumptech/glide/Glide$RequestOptionsFactory;
.line 679
invoke-interface {v0}, Lcom/bumptech/glide/Glide$RequestOptionsFactory;->build()Lcom/bumptech/glide/request/RequestOptions;
move-result-object v0
invoke-virtual {v0}, Lcom/bumptech/glide/request/RequestOptions;->getOptions()Lcom/bumptech/glide/load/Options;
move-result-object v0
sget-object v1, Lcom/bumptech/glide/load/resource/bitmap/Downsampler;->DECODE_FORMAT:Lcom/bumptech/glide/load/Option;
invoke-virtual {v0, v1}, Lcom/bumptech/glide/load/Options;->get(Lcom/bumptech/glide/load/Option;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/load/DecodeFormat;
.line 680
new-instance v1, Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;
iget-object v2, p0, Lcom/bumptech/glide/Glide;->memoryCache:Lcom/bumptech/glide/load/engine/cache/MemoryCache;
iget-object v3, p0, Lcom/bumptech/glide/Glide;->bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
invoke-direct {v1, v2, v3, v0}, 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 v1, p0, Lcom/bumptech/glide/Glide;->bitmapPreFiller:Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;
.line 683
:cond_22
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
:try_end_27
.catchall {:try_start_1 .. :try_end_27} :catchall_29
.line 684
monitor-exit p0
return-void
:catchall_29
move-exception p1
monitor-exit p0
throw p1
.end method
.method registerRequestManager(Lcom/bumptech/glide/RequestManager;)V
.registers 4
.line 906
iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
monitor-enter v0
.line 907
: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 910
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 911
monitor-exit v0
return-void
.line 908
: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 911
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;)Z
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/request/target/Target<",
"*>;)Z"
}
.end annotation
.line 894
iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
monitor-enter v0
.line 895
: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_1e
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/bumptech/glide/RequestManager;
.line 896
invoke-virtual {v2, p1}, Lcom/bumptech/glide/RequestManager;->untrack(Lcom/bumptech/glide/request/target/Target;)Z
move-result v2
if-eqz v2, :cond_9
const/4 p1, 0x1
.line 897
monitor-exit v0
return p1
.line 900
:cond_1e
monitor-exit v0
const/4 p1, 0x0
return p1
:catchall_21
move-exception p1
monitor-exit v0
:try_end_23
.catchall {:try_start_3 .. :try_end_23} :catchall_21
throw p1
.end method
.method public setMemoryCategory(Lcom/bumptech/glide/MemoryCategory;)Lcom/bumptech/glide/MemoryCategory;
.registers 4
.line 756
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 758
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 759
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 760
iget-object v0, p0, Lcom/bumptech/glide/Glide;->memoryCategory:Lcom/bumptech/glide/MemoryCategory;
.line 761
iput-object p1, p0, Lcom/bumptech/glide/Glide;->memoryCategory:Lcom/bumptech/glide/MemoryCategory;
return-object v0
.end method
.method public trimMemory(I)V
.registers 5
.line 708
invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V
.line 711
iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
monitor-enter v0
.line 712
:try_start_6
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
:goto_c
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1c
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/bumptech/glide/RequestManager;
.line 713
invoke-virtual {v2, p1}, Lcom/bumptech/glide/RequestManager;->onTrimMemory(I)V
goto :goto_c
.line 715
:cond_1c
monitor-exit v0
:try_end_1d
.catchall {:try_start_6 .. :try_end_1d} :catchall_2d
.line 717
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 718
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 719
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
:catchall_2d
move-exception p1
.line 715
:try_start_2e
monitor-exit v0
:try_end_2f
.catchall {:try_start_2e .. :try_end_2f} :catchall_2d
throw p1
.end method
.method unregisterRequestManager(Lcom/bumptech/glide/RequestManager;)V
.registers 4
.line 915
iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List;
monitor-enter v0
.line 916
: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 919
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 920
monitor-exit v0
return-void
.line 917
:cond_12
new-instance p1, Ljava/lang/IllegalStateException;
const-string v1, "Cannot unregister not yet registered manager"
invoke-direct {p1, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_1a
move-exception p1
.line 920
monitor-exit v0
:try_end_1c
.catchall {:try_start_3 .. :try_end_1c} :catchall_1a
throw p1
.end method