.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 (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;Ljava/util/Map;Ljava/util/List;Z)V .registers 33 .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/request/RequestOptions;", "Ljava/util/Map<", "Ljava/lang/Class<", "*>;", "Lcom/bumptech/glide/TransitionOptions<", "**>;>;", "Ljava/util/List<", "Lcom/bumptech/glide/request/RequestListener<", "Ljava/lang/Object;", ">;>;Z)V" } .end annotation move-object/from16 v0, p0 move-object/from16 v2, p1 move-object/from16 v1, p3 move-object/from16 v3, p4 move-object/from16 v4, p5 .line 326 invoke-direct/range {p0 .. p0}, Ljava/lang/Object;->()V .line 118 new-instance v5, Ljava/util/ArrayList; invoke-direct {v5}, Ljava/util/ArrayList;->()V iput-object v5, v0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List; .line 119 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 327 iput-object v9, v0, Lcom/bumptech/glide/Glide;->engine:Lcom/bumptech/glide/load/engine/Engine; .line 328 iput-object v3, v0, Lcom/bumptech/glide/Glide;->bitmapPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool; .line 329 iput-object v4, v0, Lcom/bumptech/glide/Glide;->arrayPool:Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool; .line 330 iput-object v1, v0, Lcom/bumptech/glide/Glide;->memoryCache:Lcom/bumptech/glide/load/engine/cache/MemoryCache; move-object/from16 v5, p6 .line 331 iput-object v5, v0, Lcom/bumptech/glide/Glide;->requestManagerRetriever:Lcom/bumptech/glide/manager/RequestManagerRetriever; move-object/from16 v5, p7 .line 332 iput-object v5, v0, Lcom/bumptech/glide/Glide;->connectivityMonitorFactory:Lcom/bumptech/glide/manager/ConnectivityMonitorFactory; .line 334 invoke-virtual/range {p9 .. p9}, Lcom/bumptech/glide/request/RequestOptions;->getOptions()Lcom/bumptech/glide/load/Options; move-result-object v5 sget-object v6, Lcom/bumptech/glide/load/resource/bitmap/Downsampler;->DECODE_FORMAT:Lcom/bumptech/glide/load/Option; invoke-virtual {v5, v6}, Lcom/bumptech/glide/load/Options;->get(Lcom/bumptech/glide/load/Option;)Ljava/lang/Object; move-result-object v5 check-cast v5, Lcom/bumptech/glide/load/DecodeFormat; .line 335 new-instance v6, Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller; invoke-direct {v6, v1, v3, v5}, Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller;->(Lcom/bumptech/glide/load/engine/cache/MemoryCache;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/DecodeFormat;)V iput-object v6, v0, Lcom/bumptech/glide/Glide;->bitmapPreFiller:Lcom/bumptech/glide/load/engine/prefill/BitmapPreFiller; .line 337 invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v1 .line 339 new-instance v5, Lcom/bumptech/glide/Registry; invoke-direct {v5}, Lcom/bumptech/glide/Registry;->()V iput-object v5, v0, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry; .line 340 new-instance v6, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser; invoke-direct {v6}, Lcom/bumptech/glide/load/resource/bitmap/DefaultImageHeaderParser;->()V invoke-virtual {v5, v6}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/ImageHeaderParser;)Lcom/bumptech/glide/Registry; .line 343 sget v6, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v7, 0x1b if-lt v6, v7, :cond_5e .line 344 new-instance v6, Lcom/bumptech/glide/load/resource/bitmap/ExifInterfaceImageHeaderParser; invoke-direct {v6}, Lcom/bumptech/glide/load/resource/bitmap/ExifInterfaceImageHeaderParser;->()V invoke-virtual {v5, v6}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/ImageHeaderParser;)Lcom/bumptech/glide/Registry; .line 347 :cond_5e invoke-virtual {v5}, Lcom/bumptech/glide/Registry;->getImageHeaderParsers()Ljava/util/List; move-result-object v6 .line 348 new-instance v7, Lcom/bumptech/glide/load/resource/bitmap/Downsampler; .line 351 invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics; move-result-object v8 invoke-direct {v7, v6, v8, v3, v4}, Lcom/bumptech/glide/load/resource/bitmap/Downsampler;->(Ljava/util/List;Landroid/util/DisplayMetrics;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V .line 354 new-instance v8, Lcom/bumptech/glide/load/resource/gif/ByteBufferGifDecoder; invoke-direct {v8, v2, v6, v3, v4}, Lcom/bumptech/glide/load/resource/gif/ByteBufferGifDecoder;->(Landroid/content/Context;Ljava/util/List;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V .line 357 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 v10 .line 358 new-instance v11, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapDecoder; invoke-direct {v11, v7}, Lcom/bumptech/glide/load/resource/bitmap/ByteBufferBitmapDecoder;->(Lcom/bumptech/glide/load/resource/bitmap/Downsampler;)V .line 359 new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder; invoke-direct {v12, v7, v4}, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder;->(Lcom/bumptech/glide/load/resource/bitmap/Downsampler;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V .line 360 new-instance v7, Lcom/bumptech/glide/load/resource/drawable/ResourceDrawableDecoder; invoke-direct {v7, v2}, Lcom/bumptech/glide/load/resource/drawable/ResourceDrawableDecoder;->(Landroid/content/Context;)V .line 362 new-instance v13, Lcom/bumptech/glide/load/model/ResourceLoader$StreamFactory; invoke-direct {v13, v1}, Lcom/bumptech/glide/load/model/ResourceLoader$StreamFactory;->(Landroid/content/res/Resources;)V .line 364 new-instance v14, Lcom/bumptech/glide/load/model/ResourceLoader$UriFactory; invoke-direct {v14, v1}, Lcom/bumptech/glide/load/model/ResourceLoader$UriFactory;->(Landroid/content/res/Resources;)V .line 366 new-instance v15, Lcom/bumptech/glide/load/model/ResourceLoader$FileDescriptorFactory; invoke-direct {v15, v1}, Lcom/bumptech/glide/load/model/ResourceLoader$FileDescriptorFactory;->(Landroid/content/res/Resources;)V .line 368 new-instance v9, Lcom/bumptech/glide/load/model/ResourceLoader$AssetFileDescriptorFactory; invoke-direct {v9, v1}, Lcom/bumptech/glide/load/model/ResourceLoader$AssetFileDescriptorFactory;->(Landroid/content/res/Resources;)V .line 370 new-instance v0, Lcom/bumptech/glide/load/resource/bitmap/BitmapEncoder; invoke-direct {v0, v4}, Lcom/bumptech/glide/load/resource/bitmap/BitmapEncoder;->(Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V .line 372 new-instance v2, Lcom/bumptech/glide/load/resource/transcode/BitmapBytesTranscoder; invoke-direct {v2}, Lcom/bumptech/glide/load/resource/transcode/BitmapBytesTranscoder;->()V move-object/from16 p3, v2 .line 373 new-instance v2, Lcom/bumptech/glide/load/resource/transcode/GifDrawableBytesTranscoder; invoke-direct {v2}, Lcom/bumptech/glide/load/resource/transcode/GifDrawableBytesTranscoder;->()V move-object/from16 p6, v2 .line 375 invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; move-result-object v2 move-object/from16 p7, v2 .line 377 const-class v2, Ljava/nio/ByteBuffer; move-object/from16 v16, v9 new-instance v9, Lcom/bumptech/glide/load/model/ByteBufferEncoder; invoke-direct {v9}, Lcom/bumptech/glide/load/model/ByteBufferEncoder;->()V .line 378 invoke-virtual {v5, v2, v9}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry; move-result-object v2 const-class v9, Ljava/io/InputStream; move-object/from16 v17, v5 new-instance v5, Lcom/bumptech/glide/load/model/StreamEncoder; invoke-direct {v5, v4}, Lcom/bumptech/glide/load/model/StreamEncoder;->(Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V .line 379 invoke-virtual {v2, v9, v5}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry; move-result-object v2 const-class v5, Ljava/nio/ByteBuffer; const-class v9, Landroid/graphics/Bitmap; move-object/from16 v18, v14 .line 381 const-string v14, "Bitmap" invoke-virtual {v2, v14, v5, v9, 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 v2 const-class v5, Ljava/io/InputStream; const-class v9, Landroid/graphics/Bitmap; .line 382 invoke-virtual {v2, v14, v5, v9, v12}, 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 v2 const-class v5, Landroid/os/ParcelFileDescriptor; const-class v9, Landroid/graphics/Bitmap; .line 383 invoke-virtual {v2, v14, v5, v9, 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 v2 const-class v5, Landroid/content/res/AssetFileDescriptor; const-class v9, Landroid/graphics/Bitmap; move-object/from16 v19, v15 .line 392 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 v15 .line 388 invoke-virtual {v2, v14, v5, v9, 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 v2 const-class v5, Landroid/graphics/Bitmap; const-class v9, Landroid/graphics/Bitmap; .line 393 invoke-static {}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;->getInstance()Lcom/bumptech/glide/load/model/UnitModelLoader$Factory; move-result-object v15 invoke-virtual {v2, v5, v9, v15}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry; move-result-object v2 const-class v5, Landroid/graphics/Bitmap; const-class v9, Landroid/graphics/Bitmap; new-instance v15, Lcom/bumptech/glide/load/resource/bitmap/UnitBitmapDecoder; invoke-direct {v15}, Lcom/bumptech/glide/load/resource/bitmap/UnitBitmapDecoder;->()V .line 394 invoke-virtual {v2, v14, v5, v9, 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 v2 const-class v5, Landroid/graphics/Bitmap; .line 396 invoke-virtual {v2, v5, v0}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry; move-result-object v2 const-class v5, Ljava/nio/ByteBuffer; const-class v9, Landroid/graphics/drawable/BitmapDrawable; new-instance v15, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder; invoke-direct {v15, v1, v11}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;->(Landroid/content/res/Resources;Lcom/bumptech/glide/load/ResourceDecoder;)V .line 398 const-string v11, "BitmapDrawable" invoke-virtual {v2, v11, v5, v9, 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 v2 const-class v5, Ljava/io/InputStream; const-class v9, Landroid/graphics/drawable/BitmapDrawable; new-instance v15, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder; invoke-direct {v15, v1, v12}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;->(Landroid/content/res/Resources;Lcom/bumptech/glide/load/ResourceDecoder;)V .line 403 invoke-virtual {v2, v11, v5, v9, 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 v2 const-class v5, Landroid/os/ParcelFileDescriptor; const-class v9, Landroid/graphics/drawable/BitmapDrawable; new-instance v12, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder; invoke-direct {v12, v1, v10}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableDecoder;->(Landroid/content/res/Resources;Lcom/bumptech/glide/load/ResourceDecoder;)V .line 408 invoke-virtual {v2, v11, v5, v9, v12}, 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 v2 const-class v5, Landroid/graphics/drawable/BitmapDrawable; new-instance v9, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableEncoder; invoke-direct {v9, v3, v0}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableEncoder;->(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/ResourceEncoder;)V .line 413 invoke-virtual {v2, v5, v9}, 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 v5, Lcom/bumptech/glide/load/resource/gif/GifDrawable; new-instance v9, Lcom/bumptech/glide/load/resource/gif/StreamGifDecoder; invoke-direct {v9, v6, v8, v4}, Lcom/bumptech/glide/load/resource/gif/StreamGifDecoder;->(Ljava/util/List;Lcom/bumptech/glide/load/ResourceDecoder;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V .line 415 const-string v6, "Gif" invoke-virtual {v0, v6, v2, v5, v9}, 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 v5, Lcom/bumptech/glide/load/resource/gif/GifDrawable; .line 420 invoke-virtual {v0, v6, v2, v5, 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, Lcom/bumptech/glide/load/resource/gif/GifDrawable; new-instance v5, Lcom/bumptech/glide/load/resource/gif/GifDrawableEncoder; invoke-direct {v5}, Lcom/bumptech/glide/load/resource/gif/GifDrawableEncoder;->()V .line 421 invoke-virtual {v0, v2, v5}, 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 v5, Lcom/bumptech/glide/gifdecoder/GifDecoder; .line 425 invoke-static {}, Lcom/bumptech/glide/load/model/UnitModelLoader$Factory;->getInstance()Lcom/bumptech/glide/load/model/UnitModelLoader$Factory; move-result-object v6 .line 424 invoke-virtual {v0, v2, v5, 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/gifdecoder/GifDecoder; const-class v5, Landroid/graphics/Bitmap; new-instance v6, Lcom/bumptech/glide/load/resource/gif/GifFrameResourceDecoder; invoke-direct {v6, v3}, Lcom/bumptech/glide/load/resource/gif/GifFrameResourceDecoder;->(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V .line 426 invoke-virtual {v0, v14, v2, v5, v6}, 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 v5, Landroid/graphics/drawable/Drawable; .line 432 invoke-virtual {v0, v2, v5, v7}, 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 v5, Landroid/graphics/Bitmap; new-instance v6, Lcom/bumptech/glide/load/resource/bitmap/ResourceBitmapDecoder; invoke-direct {v6, v7, v3}, Lcom/bumptech/glide/load/resource/bitmap/ResourceBitmapDecoder;->(Lcom/bumptech/glide/load/resource/drawable/ResourceDrawableDecoder;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V .line 433 invoke-virtual {v0, v2, v5, 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 new-instance v2, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder$Factory; invoke-direct {v2}, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder$Factory;->()V .line 436 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 v5, Ljava/nio/ByteBuffer; new-instance v6, Lcom/bumptech/glide/load/model/ByteBufferFileLoader$Factory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/ByteBufferFileLoader$Factory;->()V .line 437 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/FileLoader$StreamFactory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/FileLoader$StreamFactory;->()V .line 438 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/File; new-instance v6, Lcom/bumptech/glide/load/resource/file/FileDecoder; invoke-direct {v6}, Lcom/bumptech/glide/load/resource/file/FileDecoder;->()V .line 439 invoke-virtual {v0, v2, v5, 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 v5, Landroid/os/ParcelFileDescriptor; new-instance v6, Lcom/bumptech/glide/load/model/FileLoader$FileDescriptorFactory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/FileLoader$FileDescriptorFactory;->()V .line 440 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/File; .line 442 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, v5, 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, v4}, Lcom/bumptech/glide/load/data/InputStreamRewinder$Factory;->(Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;)V .line 444 invoke-virtual {v0, v2}, Lcom/bumptech/glide/Registry;->register(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)Lcom/bumptech/glide/Registry; move-result-object v0 sget-object v2, Ljava/lang/Integer;->TYPE:Ljava/lang/Class; const-class v5, Ljava/io/InputStream; .line 445 invoke-virtual {v0, v2, v5, v13}, 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 v5, Landroid/os/ParcelFileDescriptor; move-object/from16 v6, v19 .line 446 invoke-virtual {v0, v2, v5, 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/Integer; const-class v5, Ljava/io/InputStream; .line 450 invoke-virtual {v0, v2, v5, v13}, 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 v5, Landroid/os/ParcelFileDescriptor; .line 451 invoke-virtual {v0, v2, v5, 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/Integer; const-class v5, Landroid/net/Uri; move-object/from16 v6, v18 .line 455 invoke-virtual {v0, v2, v5, 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 v5, Landroid/content/res/AssetFileDescriptor; move-object/from16 v7, v16 .line 456 invoke-virtual {v0, v2, v5, 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 v0 const-class v2, Ljava/lang/Integer; const-class v5, Landroid/content/res/AssetFileDescriptor; .line 460 invoke-virtual {v0, v2, v5, 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 v0 sget-object v2, Ljava/lang/Integer;->TYPE:Ljava/lang/Class; const-class v5, Landroid/net/Uri; .line 464 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory;->()V .line 465 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/DataUrlLoader$StreamFactory;->()V .line 466 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/StringLoader$StreamFactory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/StringLoader$StreamFactory;->()V .line 467 invoke-virtual {v0, v2, v5, 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 v5, Landroid/os/ParcelFileDescriptor; new-instance v6, Lcom/bumptech/glide/load/model/StringLoader$FileDescriptorFactory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/StringLoader$FileDescriptorFactory;->()V .line 468 invoke-virtual {v0, v2, v5, 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 v5, Landroid/content/res/AssetFileDescriptor; new-instance v6, Lcom/bumptech/glide/load/model/StringLoader$AssetFileDescriptorFactory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/StringLoader$AssetFileDescriptorFactory;->()V .line 469 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/stream/HttpUriLoader$Factory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/stream/HttpUriLoader$Factory;->()V .line 471 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/AssetUriLoader$StreamFactory; .line 472 invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager; move-result-object v7 invoke-direct {v6, v7}, Lcom/bumptech/glide/load/model/AssetUriLoader$StreamFactory;->(Landroid/content/res/AssetManager;)V invoke-virtual {v0, v2, v5, 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 v5, Landroid/os/ParcelFileDescriptor; new-instance v6, Lcom/bumptech/glide/load/model/AssetUriLoader$FileDescriptorFactory; .line 476 invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager; move-result-object v7 invoke-direct {v6, v7}, Lcom/bumptech/glide/load/model/AssetUriLoader$FileDescriptorFactory;->(Landroid/content/res/AssetManager;)V .line 473 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/stream/MediaStoreImageThumbLoader$Factory; move-object/from16 v7, p1 move-object/from16 v8, p3 invoke-direct {v6, v7}, Lcom/bumptech/glide/load/model/stream/MediaStoreImageThumbLoader$Factory;->(Landroid/content/Context;)V .line 477 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/stream/MediaStoreVideoThumbLoader$Factory; invoke-direct {v6, v7}, Lcom/bumptech/glide/load/model/stream/MediaStoreVideoThumbLoader$Factory;->(Landroid/content/Context;)V .line 478 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/UriLoader$StreamFactory; move-object/from16 v9, p7 invoke-direct {v6, v9}, Lcom/bumptech/glide/load/model/UriLoader$StreamFactory;->(Landroid/content/ContentResolver;)V .line 479 invoke-virtual {v0, v2, v5, 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 v5, Landroid/os/ParcelFileDescriptor; new-instance v6, Lcom/bumptech/glide/load/model/UriLoader$FileDescriptorFactory; invoke-direct {v6, v9}, Lcom/bumptech/glide/load/model/UriLoader$FileDescriptorFactory;->(Landroid/content/ContentResolver;)V .line 483 invoke-virtual {v0, v2, v5, 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 v5, Landroid/content/res/AssetFileDescriptor; new-instance v6, Lcom/bumptech/glide/load/model/UriLoader$AssetFileDescriptorFactory; invoke-direct {v6, v9}, Lcom/bumptech/glide/load/model/UriLoader$AssetFileDescriptorFactory;->(Landroid/content/ContentResolver;)V .line 487 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/InputStream; new-instance v6, Lcom/bumptech/glide/load/model/UrlUriLoader$StreamFactory; invoke-direct {v6}, Lcom/bumptech/glide/load/model/UrlUriLoader$StreamFactory;->()V .line 491 invoke-virtual {v0, v2, v5, 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 v5, 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;->()V .line 492 invoke-virtual {v0, v2, v5, 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 v5, Ljava/io/File; new-instance v6, Lcom/bumptech/glide/load/model/MediaStoreFileLoader$Factory; invoke-direct {v6, v7}, Lcom/bumptech/glide/load/model/MediaStoreFileLoader$Factory;->(Landroid/content/Context;)V .line 493 invoke-virtual {v0, v2, v5, 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 v5, 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;->()V .line 494 invoke-virtual {v0, v2, v5, 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 v5, Lcom/bumptech/glide/load/model/ByteArrayLoader$ByteBufferFactory; invoke-direct {v5}, Lcom/bumptech/glide/load/model/ByteArrayLoader$ByteBufferFactory;->()V .line 495 const-class v6, [B invoke-virtual {v0, v6, v2, v5}, 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 v5, Lcom/bumptech/glide/load/model/ByteArrayLoader$StreamFactory; invoke-direct {v5}, Lcom/bumptech/glide/load/model/ByteArrayLoader$StreamFactory;->()V .line 496 invoke-virtual {v0, v6, v2, v5}, 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 v5, Landroid/net/Uri; .line 497 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, v5, 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 v5, Landroid/graphics/drawable/Drawable; .line 498 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, v5, 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 v5, Landroid/graphics/drawable/Drawable; new-instance v9, Lcom/bumptech/glide/load/resource/drawable/UnitDrawableDecoder; invoke-direct {v9}, Lcom/bumptech/glide/load/resource/drawable/UnitDrawableDecoder;->()V .line 499 invoke-virtual {v0, v2, v5, 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 v5, Landroid/graphics/drawable/BitmapDrawable; new-instance v9, Lcom/bumptech/glide/load/resource/transcode/BitmapDrawableTranscoder; invoke-direct {v9, v1}, Lcom/bumptech/glide/load/resource/transcode/BitmapDrawableTranscoder;->(Landroid/content/res/Resources;)V .line 501 invoke-virtual {v0, v2, v5, 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 v1, Landroid/graphics/Bitmap; .line 505 invoke-virtual {v0, v1, v6, v8}, 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 v1, Landroid/graphics/drawable/Drawable; new-instance v2, Lcom/bumptech/glide/load/resource/transcode/DrawableBytesTranscoder; move-object/from16 v5, p6 invoke-direct {v2, v3, v8, v5}, Lcom/bumptech/glide/load/resource/transcode/DrawableBytesTranscoder;->(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)V .line 506 invoke-virtual {v0, v1, v6, v2}, 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 v1, Lcom/bumptech/glide/load/resource/gif/GifDrawable; .line 511 invoke-virtual {v0, v1, v6, v5}, Lcom/bumptech/glide/Registry;->register(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)Lcom/bumptech/glide/Registry; .line 513 new-instance v5, Lcom/bumptech/glide/request/target/ImageViewTargetFactory; invoke-direct {v5}, Lcom/bumptech/glide/request/target/ImageViewTargetFactory;->()V .line 514 new-instance v0, Lcom/bumptech/glide/GlideContext; move-object v1, v0 move-object/from16 v2, p1 move-object/from16 v3, p5 move-object/from16 v4, v17 move-object/from16 v6, p9 move-object/from16 v7, p10 move-object/from16 v8, p11 move-object/from16 v9, p2 move/from16 v10, p12 move/from16 v11, p8 invoke-direct/range {v1 .. v11}, Lcom/bumptech/glide/GlideContext;->(Landroid/content/Context;Lcom/bumptech/glide/load/engine/bitmap_recycle/ArrayPool;Lcom/bumptech/glide/Registry;Lcom/bumptech/glide/request/target/ImageViewTargetFactory;Lcom/bumptech/glide/request/RequestOptions;Ljava/util/Map;Ljava/util/List;Lcom/bumptech/glide/load/engine/Engine;ZI)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;)V .registers 2 .line 179 sget-boolean v0, Lcom/bumptech/glide/Glide;->isInitializing:Z if-nez v0, :cond_e const/4 v0, 0x1 .line 183 sput-boolean v0, Lcom/bumptech/glide/Glide;->isInitializing:Z .line 184 invoke-static {p0}, Lcom/bumptech/glide/Glide;->initializeGlide(Landroid/content/Context;)V const/4 p0, 0x0 .line 185 sput-boolean p0, Lcom/bumptech/glide/Glide;->isInitializing:Z return-void .line 180 :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;->(Ljava/lang/String;)V throw p0 .end method .method public static get(Landroid/content/Context;)Lcom/bumptech/glide/Glide; .registers 3 .line 165 sget-object v0, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide; if-nez v0, :cond_13 .line 166 const-class v0, Lcom/bumptech/glide/Glide; monitor-enter v0 .line 167 :try_start_7 sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide; if-nez v1, :cond_e .line 168 invoke-static {p0}, Lcom/bumptech/glide/Glide;->checkAndInitializeGlide(Landroid/content/Context;)V .line 170 :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 173 :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 .line 284 :try_start_0 const-string v0, "com.bumptech.glide.GeneratedAppGlideModuleImpl" .line 286 invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 const/4 v1, 0x0 .line 287 new-array v2, v1, [Ljava/lang/Class; 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 {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/bumptech/glide/GeneratedAppGlideModule; :try_end_15 .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_15} :catch_2a .catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_15} :catch_25 .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_15} :catch_20 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_15} :catch_1b .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_15} :catch_16 goto :goto_39 :catch_16 move-exception v0 .line 303 invoke-static {v0}, Lcom/bumptech/glide/Glide;->throwIncorrectGlideModule(Ljava/lang/Exception;)V goto :goto_38 :catch_1b move-exception v0 .line 301 invoke-static {v0}, Lcom/bumptech/glide/Glide;->throwIncorrectGlideModule(Ljava/lang/Exception;)V goto :goto_38 :catch_20 move-exception v0 .line 299 invoke-static {v0}, Lcom/bumptech/glide/Glide;->throwIncorrectGlideModule(Ljava/lang/Exception;)V goto :goto_38 :catch_25 move-exception v0 .line 297 invoke-static {v0}, Lcom/bumptech/glide/Glide;->throwIncorrectGlideModule(Ljava/lang/Exception;)V goto :goto_38 :catch_2a const/4 v0, 0x5 .line 289 const-string v1, "Glide" invoke-static {v1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z move-result v0 if-eqz v0, :cond_38 .line 290 const-string v0, "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" invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I :cond_38 :goto_38 const/4 v0, 0x0 :goto_39 return-object v0 .end method .method public static getPhotoCacheDir(Landroid/content/Context;)Ljava/io/File; .registers 2 .line 130 const-string v0, "image_manager_disk_cache" 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 143 invoke-virtual {p0}, Landroid/content/Context;->getCacheDir()Ljava/io/File; move-result-object p0 const/4 v0, 0x0 if-eqz p0, :cond_20 .line 145 new-instance v1, Ljava/io/File; invoke-direct {v1, p0, p1}, Ljava/io/File;->(Ljava/io/File;Ljava/lang/String;)V .line 146 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 .line 152 const-string p1, "Glide" invoke-static {p1, p0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z move-result p0 if-eqz p0, :cond_2e .line 153 const-string p0, "default disk cache dir is null" 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 .line 684 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)." invoke-static {p0, v0}, Lcom/bumptech/glide/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 689 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(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V .registers 4 const-class v0, Lcom/bumptech/glide/Glide; monitor-enter v0 .line 205 :try_start_3 sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide; if-eqz v1, :cond_a .line 206 invoke-static {}, Lcom/bumptech/glide/Glide;->tearDown()V .line 208 :cond_a invoke-static {p0, p1}, Lcom/bumptech/glide/Glide;->initializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V :try_end_d .catchall {:try_start_3 .. :try_end_d} :catchall_f .line 209 monitor-exit v0 return-void :catchall_f move-exception p0 :try_start_10 monitor-exit v0 :try_end_11 .catchall {:try_start_10 .. :try_end_11} :catchall_f 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 197 :try_start_3 sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide; if-eqz v1, :cond_a .line 198 invoke-static {}, Lcom/bumptech/glide/Glide;->tearDown()V .line 200 :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 201 monitor-exit v0 return-void :catchall_e move-exception p0 :try_start_f monitor-exit v0 :try_end_10 .catchall {:try_start_f .. :try_end_10} :catchall_e throw p0 .end method .method private static initializeGlide(Landroid/content/Context;)V .registers 2 .line 223 new-instance v0, Lcom/bumptech/glide/GlideBuilder; invoke-direct {v0}, Lcom/bumptech/glide/GlideBuilder;->()V invoke-static {p0, v0}, Lcom/bumptech/glide/Glide;->initializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V return-void .end method .method private static initializeGlide(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V .registers 11 .line 228 invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; move-result-object p0 .line 229 invoke-static {}, Lcom/bumptech/glide/Glide;->getAnnotationGeneratedGlideModules()Lcom/bumptech/glide/GeneratedAppGlideModule; move-result-object v0 .line 230 invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List; move-result-object v1 if-eqz v0, :cond_14 .line 231 invoke-virtual {v0}, Lcom/bumptech/glide/GeneratedAppGlideModule;->isManifestParsingEnabled()Z move-result v2 if-eqz v2, :cond_1d .line 232 :cond_14 new-instance v1, Lcom/bumptech/glide/module/ManifestParser; invoke-direct {v1, p0}, Lcom/bumptech/glide/module/ManifestParser;->(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 .line 235 const-string v3, "Glide" if-eqz v0, :cond_67 .line 236 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_67 .line 238 invoke-virtual {v0}, Lcom/bumptech/glide/GeneratedAppGlideModule;->getExcludedModuleClasses()Ljava/util/Set; move-result-object v4 .line 239 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v5 .line 240 :goto_34 invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z move-result v6 if-eqz v6, :cond_67 .line 241 invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v6 check-cast v6, Lcom/bumptech/glide/module/GlideModule; .line 242 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 245 :cond_4b invoke-static {v3, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z move-result v7 if-eqz v7, :cond_63 .line 246 new-instance v7, Ljava/lang/StringBuilder; const-string v8, "AppGlideModule excludes manifest GlideModule: " invoke-direct {v7, v8}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v6 invoke-virtual {v6}, 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 248 :cond_63 invoke-interface {v5}, Ljava/util/Iterator;->remove()V goto :goto_34 .line 252 :cond_67 invoke-static {v3, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z move-result v2 if-eqz v2, :cond_94 .line 253 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v2 :goto_71 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v4 if-eqz v4, :cond_94 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v4 check-cast v4, Lcom/bumptech/glide/module/GlideModule; .line 254 new-instance v5, Ljava/lang/StringBuilder; const-string v6, "Discovered GlideModule from manifest: " invoke-direct {v5, v6}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V 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; move-result-object v4 invoke-virtual {v4}, 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_71 :cond_94 if-eqz v0, :cond_9b .line 260 invoke-virtual {v0}, Lcom/bumptech/glide/GeneratedAppGlideModule;->getRequestManagerFactory()Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory; move-result-object v2 goto :goto_9c :cond_9b const/4 v2, 0x0 .line 261 :goto_9c invoke-virtual {p1, v2}, Lcom/bumptech/glide/GlideBuilder;->setRequestManagerFactory(Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;)V .line 262 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v2 :goto_a3 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_b3 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Lcom/bumptech/glide/module/GlideModule; .line 263 invoke-interface {v3, p0, p1}, Lcom/bumptech/glide/module/GlideModule;->applyOptions(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V goto :goto_a3 :cond_b3 if-eqz v0, :cond_b8 .line 266 invoke-virtual {v0, p0, p1}, Lcom/bumptech/glide/GeneratedAppGlideModule;->applyOptions(Landroid/content/Context;Lcom/bumptech/glide/GlideBuilder;)V .line 268 :cond_b8 invoke-virtual {p1, p0}, Lcom/bumptech/glide/GlideBuilder;->build(Landroid/content/Context;)Lcom/bumptech/glide/Glide; move-result-object p1 .line 269 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v1 :goto_c0 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_d2 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/bumptech/glide/module/GlideModule; .line 270 iget-object v3, p1, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry; invoke-interface {v2, p0, p1, v3}, Lcom/bumptech/glide/module/GlideModule;->registerComponents(Landroid/content/Context;Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/Registry;)V goto :goto_c0 :cond_d2 if-eqz v0, :cond_d9 .line 273 iget-object v1, p1, Lcom/bumptech/glide/Glide;->registry:Lcom/bumptech/glide/Registry; invoke-virtual {v0, p0, p1, v1}, Lcom/bumptech/glide/GeneratedAppGlideModule;->registerComponents(Landroid/content/Context;Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/Registry;)V .line 275 :cond_d9 invoke-virtual {p0, p1}, Landroid/content/Context;->registerComponentCallbacks(Landroid/content/ComponentCallbacks;)V .line 276 sput-object p1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide; return-void .end method .method public static declared-synchronized tearDown()V .registers 3 const-class v0, Lcom/bumptech/glide/Glide; monitor-enter v0 .line 213 :try_start_3 sget-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide; if-eqz v1, :cond_1d .line 214 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 .line 215 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; .line 216 invoke-virtual {v1, v2}, Landroid/content/Context;->unregisterComponentCallbacks(Landroid/content/ComponentCallbacks;)V .line 217 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 219 sput-object v1, Lcom/bumptech/glide/Glide;->glide:Lcom/bumptech/glide/Glide; :try_end_20 .catchall {:try_start_3 .. :try_end_20} :catchall_22 .line 220 monitor-exit v0 return-void :catchall_22 move-exception v1 :try_start_23 monitor-exit v0 :try_end_24 .catchall {:try_start_23 .. :try_end_24} :catchall_22 throw v1 .end method .method private static throwIncorrectGlideModule(Ljava/lang/Exception;)V .registers 3 .line 309 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;->(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 728 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 771 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 716 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 801 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 754 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 741 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 643 invoke-static {}, Lcom/bumptech/glide/util/Util;->assertBackgroundThread()V .line 644 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 612 invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V .line 614 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 615 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 616 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 554 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 549 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 566 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 562 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 571 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 806 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 652 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 851 invoke-virtual {p0}, Lcom/bumptech/glide/Glide;->clearMemory()V return-void .end method .method public onTrimMemory(I)V .registers 2 .line 841 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 601 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 822 iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List; monitor-enter v0 .line 823 :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 826 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 827 monitor-exit v0 return-void .line 824 :cond_12 new-instance p1, Ljava/lang/IllegalStateException; const-string v1, "Cannot register already registered manager" invoke-direct {p1, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 :catchall_1a move-exception p1 .line 827 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 810 iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List; monitor-enter v0 .line 811 :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 812 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 813 monitor-exit v0 const/4 p1, 0x1 return p1 .line 816 :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 671 invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V .line 673 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 674 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 675 iget-object v0, p0, Lcom/bumptech/glide/Glide;->memoryCategory:Lcom/bumptech/glide/MemoryCategory; .line 676 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 626 invoke-static {}, Lcom/bumptech/glide/util/Util;->assertMainThread()V .line 628 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 629 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 630 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 831 iget-object v0, p0, Lcom/bumptech/glide/Glide;->managers:Ljava/util/List; monitor-enter v0 .line 832 :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 835 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 836 monitor-exit v0 return-void .line 833 :cond_12 new-instance p1, Ljava/lang/IllegalStateException; const-string v1, "Cannot unregister not yet registered manager" invoke-direct {p1, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 :catchall_1a move-exception p1 .line 836 monitor-exit v0 :try_end_1c .catchall {:try_start_3 .. :try_end_1c} :catchall_1a throw p1 .end method