.class public Lcom/bumptech/glide/Registry; .super Ljava/lang/Object; .source "Registry.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/bumptech/glide/Registry$NoImageHeaderParserException;, Lcom/bumptech/glide/Registry$MissingComponentException;, Lcom/bumptech/glide/Registry$NoSourceEncoderAvailableException;, Lcom/bumptech/glide/Registry$NoResultEncoderAvailableException;, Lcom/bumptech/glide/Registry$NoModelLoaderAvailableException; } .end annotation # static fields .field private static final BUCKET_APPEND_ALL:Ljava/lang/String; = "legacy_append" .field public static final BUCKET_BITMAP:Ljava/lang/String; = "Bitmap" .field public static final BUCKET_BITMAP_DRAWABLE:Ljava/lang/String; = "BitmapDrawable" .field public static final BUCKET_GIF:Ljava/lang/String; = "Gif" .field private static final BUCKET_PREPEND_ALL:Ljava/lang/String; = "legacy_prepend_all" # instance fields .field private final dataRewinderRegistry:Lcom/bumptech/glide/load/data/DataRewinderRegistry; .field private final decoderRegistry:Lcom/bumptech/glide/provider/ResourceDecoderRegistry; .field private final encoderRegistry:Lcom/bumptech/glide/provider/EncoderRegistry; .field private final imageHeaderParserRegistry:Lcom/bumptech/glide/provider/ImageHeaderParserRegistry; .field private final loadPathCache:Lcom/bumptech/glide/provider/LoadPathCache; .field private final modelLoaderRegistry:Lcom/bumptech/glide/load/model/ModelLoaderRegistry; .field private final modelToResourceClassCache:Lcom/bumptech/glide/provider/ModelToResourceClassCache; .field private final resourceEncoderRegistry:Lcom/bumptech/glide/provider/ResourceEncoderRegistry; .field private final throwableListPool:Landroidx/core/util/Pools$Pool; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/core/util/Pools$Pool<", "Ljava/util/List<", "Ljava/lang/Throwable;", ">;>;" } .end annotation .end field .field private final transcoderRegistry:Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry; # direct methods .method public constructor ()V .registers 4 .line 59 invoke-direct {p0}, Ljava/lang/Object;->()V .line 54 new-instance v0, Lcom/bumptech/glide/provider/ModelToResourceClassCache; invoke-direct {v0}, Lcom/bumptech/glide/provider/ModelToResourceClassCache;->()V iput-object v0, p0, Lcom/bumptech/glide/Registry;->modelToResourceClassCache:Lcom/bumptech/glide/provider/ModelToResourceClassCache; .line 56 new-instance v0, Lcom/bumptech/glide/provider/LoadPathCache; invoke-direct {v0}, Lcom/bumptech/glide/provider/LoadPathCache;->()V iput-object v0, p0, Lcom/bumptech/glide/Registry;->loadPathCache:Lcom/bumptech/glide/provider/LoadPathCache; .line 57 invoke-static {}, Lcom/bumptech/glide/util/pool/FactoryPools;->threadSafeList()Landroidx/core/util/Pools$Pool; move-result-object v0 iput-object v0, p0, Lcom/bumptech/glide/Registry;->throwableListPool:Landroidx/core/util/Pools$Pool; .line 60 new-instance v1, Lcom/bumptech/glide/load/model/ModelLoaderRegistry; invoke-direct {v1, v0}, Lcom/bumptech/glide/load/model/ModelLoaderRegistry;->(Landroidx/core/util/Pools$Pool;)V iput-object v1, p0, Lcom/bumptech/glide/Registry;->modelLoaderRegistry:Lcom/bumptech/glide/load/model/ModelLoaderRegistry; .line 61 new-instance v0, Lcom/bumptech/glide/provider/EncoderRegistry; invoke-direct {v0}, Lcom/bumptech/glide/provider/EncoderRegistry;->()V iput-object v0, p0, Lcom/bumptech/glide/Registry;->encoderRegistry:Lcom/bumptech/glide/provider/EncoderRegistry; .line 62 new-instance v0, Lcom/bumptech/glide/provider/ResourceDecoderRegistry; invoke-direct {v0}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->()V iput-object v0, p0, Lcom/bumptech/glide/Registry;->decoderRegistry:Lcom/bumptech/glide/provider/ResourceDecoderRegistry; .line 63 new-instance v0, Lcom/bumptech/glide/provider/ResourceEncoderRegistry; invoke-direct {v0}, Lcom/bumptech/glide/provider/ResourceEncoderRegistry;->()V iput-object v0, p0, Lcom/bumptech/glide/Registry;->resourceEncoderRegistry:Lcom/bumptech/glide/provider/ResourceEncoderRegistry; .line 64 new-instance v0, Lcom/bumptech/glide/load/data/DataRewinderRegistry; invoke-direct {v0}, Lcom/bumptech/glide/load/data/DataRewinderRegistry;->()V iput-object v0, p0, Lcom/bumptech/glide/Registry;->dataRewinderRegistry:Lcom/bumptech/glide/load/data/DataRewinderRegistry; .line 65 new-instance v0, Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry; invoke-direct {v0}, Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;->()V iput-object v0, p0, Lcom/bumptech/glide/Registry;->transcoderRegistry:Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry; .line 66 new-instance v0, Lcom/bumptech/glide/provider/ImageHeaderParserRegistry; invoke-direct {v0}, Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;->()V iput-object v0, p0, Lcom/bumptech/glide/Registry;->imageHeaderParserRegistry:Lcom/bumptech/glide/provider/ImageHeaderParserRegistry; const/4 v0, 0x3 .line 67 new-array v0, v0, [Ljava/lang/String; const/4 v1, 0x0 const-string v2, "Gif" aput-object v2, v0, v1 const/4 v1, 0x1 const-string v2, "Bitmap" aput-object v2, v0, v1 const/4 v1, 0x2 const-string v2, "BitmapDrawable" aput-object v2, v0, v1 .line 68 invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List; move-result-object v0 .line 67 invoke-virtual {p0, v0}, Lcom/bumptech/glide/Registry;->setResourceDecoderBucketPriorityList(Ljava/util/List;)Lcom/bumptech/glide/Registry; return-void .end method .method private getDecodePaths(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; .registers 15 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TData;>;", "Ljava/lang/Class<", "TTResource;>;", "Ljava/lang/Class<", "TTranscode;>;)", "Ljava/util/List<", "Lcom/bumptech/glide/load/engine/DecodePath<", "TData;TTResource;TTranscode;>;>;" } .end annotation .line 502 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V .line 503 iget-object v1, p0, Lcom/bumptech/glide/Registry;->decoderRegistry:Lcom/bumptech/glide/provider/ResourceDecoderRegistry; .line 504 invoke-virtual {v1, p1, p2}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->getResourceClasses(Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; move-result-object p2 .line 506 invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p2 :cond_f invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_4c invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/Class; .line 507 iget-object v2, p0, Lcom/bumptech/glide/Registry;->transcoderRegistry:Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry; .line 508 invoke-virtual {v2, v1, p3}, Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;->getTranscodeClasses(Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; move-result-object v2 .line 510 invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v9 :goto_25 invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_f invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 move-object v5, v2 check-cast v5, Ljava/lang/Class; .line 512 iget-object v2, p0, Lcom/bumptech/glide/Registry;->decoderRegistry:Lcom/bumptech/glide/provider/ResourceDecoderRegistry; .line 513 invoke-virtual {v2, p1, v1}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->getDecoders(Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; move-result-object v6 .line 514 iget-object v2, p0, Lcom/bumptech/glide/Registry;->transcoderRegistry:Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry; .line 515 invoke-virtual {v2, v1, v5}, Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;->get(Ljava/lang/Class;Ljava/lang/Class;)Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder; move-result-object v7 .line 517 new-instance v10, Lcom/bumptech/glide/load/engine/DecodePath; iget-object v8, p0, Lcom/bumptech/glide/Registry;->throwableListPool:Landroidx/core/util/Pools$Pool; move-object v2, v10 move-object v3, p1 move-object v4, v1 invoke-direct/range {v2 .. v8}, Lcom/bumptech/glide/load/engine/DecodePath;->(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/util/List;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;Landroidx/core/util/Pools$Pool;)V .line 520 invoke-interface {v0, v10}, Ljava/util/List;->add(Ljava/lang/Object;)Z goto :goto_25 :cond_4c return-object v0 .end method # virtual methods .method public append(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TData;>;", "Lcom/bumptech/glide/load/Encoder<", "TData;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 109 iget-object v0, p0, Lcom/bumptech/glide/Registry;->encoderRegistry:Lcom/bumptech/glide/provider/EncoderRegistry; invoke-virtual {v0, p1, p2}, Lcom/bumptech/glide/provider/EncoderRegistry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)V return-object p0 .end method .method public append(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TTResource;>;", "Lcom/bumptech/glide/load/ResourceEncoder<", "TTResource;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 319 iget-object v0, p0, Lcom/bumptech/glide/Registry;->resourceEncoderRegistry:Lcom/bumptech/glide/provider/ResourceEncoderRegistry; invoke-virtual {v0, p1, p2}, Lcom/bumptech/glide/provider/ResourceEncoderRegistry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)V return-object p0 .end method .method public append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TData;>;", "Ljava/lang/Class<", "TTResource;>;", "Lcom/bumptech/glide/load/ResourceDecoder<", "TData;TTResource;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 155 const-string v0, "legacy_append" invoke-virtual {p0, v0, p1, p2, p3}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry; return-object p0 .end method .method public append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TModel;>;", "Ljava/lang/Class<", "TData;>;", "Lcom/bumptech/glide/load/model/ModelLoaderFactory<", "TModel;TData;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 406 iget-object v0, p0, Lcom/bumptech/glide/Registry;->modelLoaderRegistry:Lcom/bumptech/glide/load/model/ModelLoaderRegistry; invoke-virtual {v0, p1, p2, p3}, Lcom/bumptech/glide/load/model/ModelLoaderRegistry;->append(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)V return-object p0 .end method .method public append(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry; .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Ljava/lang/Class<", "TData;>;", "Ljava/lang/Class<", "TTResource;>;", "Lcom/bumptech/glide/load/ResourceDecoder<", "TData;TTResource;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 186 iget-object v0, p0, Lcom/bumptech/glide/Registry;->decoderRegistry:Lcom/bumptech/glide/provider/ResourceDecoderRegistry; invoke-virtual {v0, p1, p4, p2, p3}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->append(Ljava/lang/String;Lcom/bumptech/glide/load/ResourceDecoder;Ljava/lang/Class;Ljava/lang/Class;)V return-object p0 .end method .method public getImageHeaderParsers()Ljava/util/List; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Lcom/bumptech/glide/load/ImageHeaderParser;", ">;" } .end annotation .line 595 iget-object v0, p0, Lcom/bumptech/glide/Registry;->imageHeaderParserRegistry:Lcom/bumptech/glide/provider/ImageHeaderParserRegistry; invoke-virtual {v0}, Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;->getParsers()Ljava/util/List; move-result-object v0 .line 596 invoke-interface {v0}, Ljava/util/List;->isEmpty()Z move-result v1 if-nez v1, :cond_d return-object v0 .line 597 :cond_d new-instance v0, Lcom/bumptech/glide/Registry$NoImageHeaderParserException; invoke-direct {v0}, Lcom/bumptech/glide/Registry$NoImageHeaderParserException;->()V throw v0 .end method .method public getLoadPath(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Lcom/bumptech/glide/load/engine/LoadPath; .registers 13 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TData;>;", "Ljava/lang/Class<", "TTResource;>;", "Ljava/lang/Class<", "TTranscode;>;)", "Lcom/bumptech/glide/load/engine/LoadPath<", "TData;TTResource;TTranscode;>;" } .end annotation .line 477 iget-object v0, p0, Lcom/bumptech/glide/Registry;->loadPathCache:Lcom/bumptech/glide/provider/LoadPathCache; .line 478 invoke-virtual {v0, p1, p2, p3}, Lcom/bumptech/glide/provider/LoadPathCache;->get(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Lcom/bumptech/glide/load/engine/LoadPath; move-result-object v0 .line 479 iget-object v1, p0, Lcom/bumptech/glide/Registry;->loadPathCache:Lcom/bumptech/glide/provider/LoadPathCache; invoke-virtual {v1, v0}, Lcom/bumptech/glide/provider/LoadPathCache;->isEmptyLoadPath(Lcom/bumptech/glide/load/engine/LoadPath;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_10 return-object v2 :cond_10 if-nez v0, :cond_2e .line 483 invoke-direct {p0, p1, p2, p3}, Lcom/bumptech/glide/Registry;->getDecodePaths(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; move-result-object v7 .line 486 invoke-interface {v7}, Ljava/util/List;->isEmpty()Z move-result v0 if-eqz v0, :cond_1e move-object v0, v2 goto :goto_29 .line 489 :cond_1e new-instance v0, Lcom/bumptech/glide/load/engine/LoadPath; iget-object v8, p0, Lcom/bumptech/glide/Registry;->throwableListPool:Landroidx/core/util/Pools$Pool; move-object v3, v0 move-object v4, p1 move-object v5, p2 move-object v6, p3 invoke-direct/range {v3 .. v8}, Lcom/bumptech/glide/load/engine/LoadPath;->(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/util/List;Landroidx/core/util/Pools$Pool;)V .line 493 :goto_29 iget-object v1, p0, Lcom/bumptech/glide/Registry;->loadPathCache:Lcom/bumptech/glide/provider/LoadPathCache; invoke-virtual {v1, p1, p2, p3, v0}, Lcom/bumptech/glide/provider/LoadPathCache;->put(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/engine/LoadPath;)V :cond_2e return-object v0 .end method .method public getModelLoaders(Ljava/lang/Object;)Ljava/util/List; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(TModel;)", "Ljava/util/List<", "Lcom/bumptech/glide/load/model/ModelLoader<", "TModel;*>;>;" } .end annotation .line 586 iget-object v0, p0, Lcom/bumptech/glide/Registry;->modelLoaderRegistry:Lcom/bumptech/glide/load/model/ModelLoaderRegistry; invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/model/ModelLoaderRegistry;->getModelLoaders(Ljava/lang/Object;)Ljava/util/List; move-result-object v0 .line 587 invoke-interface {v0}, Ljava/util/List;->isEmpty()Z move-result v1 if-nez v1, :cond_d return-object v0 .line 588 :cond_d new-instance v0, Lcom/bumptech/glide/Registry$NoModelLoaderAvailableException; invoke-direct {v0, p1}, Lcom/bumptech/glide/Registry$NoModelLoaderAvailableException;->(Ljava/lang/Object;)V throw v0 .end method .method public getRegisteredResourceClasses(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; .registers 9 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TModel;>;", "Ljava/lang/Class<", "TTResource;>;", "Ljava/lang/Class<", "TTranscode;>;)", "Ljava/util/List<", "Ljava/lang/Class<", "*>;>;" } .end annotation .line 531 iget-object v0, p0, Lcom/bumptech/glide/Registry;->modelToResourceClassCache:Lcom/bumptech/glide/provider/ModelToResourceClassCache; .line 532 invoke-virtual {v0, p1, p2, p3}, Lcom/bumptech/glide/provider/ModelToResourceClassCache;->get(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; move-result-object v0 if-nez v0, :cond_58 .line 535 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V .line 536 iget-object v1, p0, Lcom/bumptech/glide/Registry;->modelLoaderRegistry:Lcom/bumptech/glide/load/model/ModelLoaderRegistry; invoke-virtual {v1, p1}, Lcom/bumptech/glide/load/model/ModelLoaderRegistry;->getDataClasses(Ljava/lang/Class;)Ljava/util/List; move-result-object v1 .line 537 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v1 :cond_17 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_4f invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Ljava/lang/Class; .line 538 iget-object v3, p0, Lcom/bumptech/glide/Registry;->decoderRegistry:Lcom/bumptech/glide/provider/ResourceDecoderRegistry; .line 539 invoke-virtual {v3, v2, p2}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->getResourceClasses(Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; move-result-object v2 .line 540 invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v2 :cond_2d :goto_2d invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_17 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/lang/Class; .line 541 iget-object v4, p0, Lcom/bumptech/glide/Registry;->transcoderRegistry:Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry; .line 542 invoke-virtual {v4, v3, p3}, Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;->getTranscodeClasses(Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List; move-result-object v4 .line 543 invoke-interface {v4}, Ljava/util/List;->isEmpty()Z move-result v4 if-nez v4, :cond_2d invoke-interface {v0, v3}, Ljava/util/List;->contains(Ljava/lang/Object;)Z move-result v4 if-nez v4, :cond_2d .line 544 invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z goto :goto_2d .line 548 :cond_4f iget-object v1, p0, Lcom/bumptech/glide/Registry;->modelToResourceClassCache:Lcom/bumptech/glide/provider/ModelToResourceClassCache; .line 549 invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List; move-result-object v2 .line 548 invoke-virtual {v1, p1, p2, p3, v2}, Lcom/bumptech/glide/provider/ModelToResourceClassCache;->put(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/util/List;)V :cond_58 return-object v0 .end method .method public getResultEncoder(Lcom/bumptech/glide/load/engine/Resource;)Lcom/bumptech/glide/load/ResourceEncoder; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/bumptech/glide/load/engine/Resource<", "TX;>;)", "Lcom/bumptech/glide/load/ResourceEncoder<", "TX;>;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Lcom/bumptech/glide/Registry$NoResultEncoderAvailableException; } .end annotation .line 562 iget-object v0, p0, Lcom/bumptech/glide/Registry;->resourceEncoderRegistry:Lcom/bumptech/glide/provider/ResourceEncoderRegistry; invoke-interface {p1}, Lcom/bumptech/glide/load/engine/Resource;->getResourceClass()Ljava/lang/Class; move-result-object v1 invoke-virtual {v0, v1}, Lcom/bumptech/glide/provider/ResourceEncoderRegistry;->get(Ljava/lang/Class;)Lcom/bumptech/glide/load/ResourceEncoder; move-result-object v0 if-eqz v0, :cond_d return-object v0 .line 566 :cond_d new-instance v0, Lcom/bumptech/glide/Registry$NoResultEncoderAvailableException; invoke-interface {p1}, Lcom/bumptech/glide/load/engine/Resource;->getResourceClass()Ljava/lang/Class; move-result-object p1 invoke-direct {v0, p1}, Lcom/bumptech/glide/Registry$NoResultEncoderAvailableException;->(Ljava/lang/Class;)V throw v0 .end method .method public getRewinder(Ljava/lang/Object;)Lcom/bumptech/glide/load/data/DataRewinder; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(TX;)", "Lcom/bumptech/glide/load/data/DataRewinder<", "TX;>;" } .end annotation .line 581 iget-object v0, p0, Lcom/bumptech/glide/Registry;->dataRewinderRegistry:Lcom/bumptech/glide/load/data/DataRewinderRegistry; invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/data/DataRewinderRegistry;->build(Ljava/lang/Object;)Lcom/bumptech/glide/load/data/DataRewinder; move-result-object p1 return-object p1 .end method .method public getSourceEncoder(Ljava/lang/Object;)Lcom/bumptech/glide/load/Encoder; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(TX;)", "Lcom/bumptech/glide/load/Encoder<", "TX;>;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Lcom/bumptech/glide/Registry$NoSourceEncoderAvailableException; } .end annotation .line 572 iget-object v0, p0, Lcom/bumptech/glide/Registry;->encoderRegistry:Lcom/bumptech/glide/provider/EncoderRegistry; invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v1 invoke-virtual {v0, v1}, Lcom/bumptech/glide/provider/EncoderRegistry;->getEncoder(Ljava/lang/Class;)Lcom/bumptech/glide/load/Encoder; move-result-object v0 if-eqz v0, :cond_d return-object v0 .line 576 :cond_d new-instance v0, Lcom/bumptech/glide/Registry$NoSourceEncoderAvailableException; invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object p1 invoke-direct {v0, p1}, Lcom/bumptech/glide/Registry$NoSourceEncoderAvailableException;->(Ljava/lang/Class;)V throw v0 .end method .method public isResourceEncoderAvailable(Lcom/bumptech/glide/load/engine/Resource;)Z .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/bumptech/glide/load/engine/Resource<", "*>;)Z" } .end annotation .line 556 iget-object v0, p0, Lcom/bumptech/glide/Registry;->resourceEncoderRegistry:Lcom/bumptech/glide/provider/ResourceEncoderRegistry; invoke-interface {p1}, Lcom/bumptech/glide/load/engine/Resource;->getResourceClass()Ljava/lang/Class; move-result-object p1 invoke-virtual {v0, p1}, Lcom/bumptech/glide/provider/ResourceEncoderRegistry;->get(Ljava/lang/Class;)Lcom/bumptech/glide/load/ResourceEncoder; move-result-object p1 if-eqz p1, :cond_e const/4 p1, 0x1 goto :goto_f :cond_e const/4 p1, 0x0 :goto_f return p1 .end method .method public prepend(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TData;>;", "Lcom/bumptech/glide/load/Encoder<", "TData;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 126 iget-object v0, p0, Lcom/bumptech/glide/Registry;->encoderRegistry:Lcom/bumptech/glide/provider/EncoderRegistry; invoke-virtual {v0, p1, p2}, Lcom/bumptech/glide/provider/EncoderRegistry;->prepend(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)V return-object p0 .end method .method public prepend(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TTResource;>;", "Lcom/bumptech/glide/load/ResourceEncoder<", "TTResource;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 338 iget-object v0, p0, Lcom/bumptech/glide/Registry;->resourceEncoderRegistry:Lcom/bumptech/glide/provider/ResourceEncoderRegistry; invoke-virtual {v0, p1, p2}, Lcom/bumptech/glide/provider/ResourceEncoderRegistry;->prepend(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)V return-object p0 .end method .method public prepend(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TData;>;", "Ljava/lang/Class<", "TTResource;>;", "Lcom/bumptech/glide/load/ResourceDecoder<", "TData;TTResource;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 215 const-string v0, "legacy_prepend_all" invoke-virtual {p0, v0, p1, p2, p3}, Lcom/bumptech/glide/Registry;->prepend(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry; return-object p0 .end method .method public prepend(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TModel;>;", "Ljava/lang/Class<", "TData;>;", "Lcom/bumptech/glide/load/model/ModelLoaderFactory<", "TModel;TData;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 437 iget-object v0, p0, Lcom/bumptech/glide/Registry;->modelLoaderRegistry:Lcom/bumptech/glide/load/model/ModelLoaderRegistry; invoke-virtual {v0, p1, p2, p3}, Lcom/bumptech/glide/load/model/ModelLoaderRegistry;->prepend(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)V return-object p0 .end method .method public prepend(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceDecoder;)Lcom/bumptech/glide/Registry; .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Ljava/lang/Class<", "TData;>;", "Ljava/lang/Class<", "TTResource;>;", "Lcom/bumptech/glide/load/ResourceDecoder<", "TData;TTResource;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 246 iget-object v0, p0, Lcom/bumptech/glide/Registry;->decoderRegistry:Lcom/bumptech/glide/provider/ResourceDecoderRegistry; invoke-virtual {v0, p1, p4, p2, p3}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->prepend(Ljava/lang/String;Lcom/bumptech/glide/load/ResourceDecoder;Ljava/lang/Class;Ljava/lang/Class;)V return-object p0 .end method .method public register(Lcom/bumptech/glide/load/ImageHeaderParser;)Lcom/bumptech/glide/Registry; .registers 3 .line 376 iget-object v0, p0, Lcom/bumptech/glide/Registry;->imageHeaderParserRegistry:Lcom/bumptech/glide/provider/ImageHeaderParserRegistry; invoke-virtual {v0, p1}, Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;->add(Lcom/bumptech/glide/load/ImageHeaderParser;)V return-object p0 .end method .method public register(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)Lcom/bumptech/glide/Registry; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/bumptech/glide/load/data/DataRewinder$Factory<", "*>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 348 iget-object v0, p0, Lcom/bumptech/glide/Registry;->dataRewinderRegistry:Lcom/bumptech/glide/load/data/DataRewinderRegistry; invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/data/DataRewinderRegistry;->register(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)V return-object p0 .end method .method public register(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TData;>;", "Lcom/bumptech/glide/load/Encoder<", "TData;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 89 invoke-virtual {p0, p1, p2}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/Encoder;)Lcom/bumptech/glide/Registry; move-result-object p1 return-object p1 .end method .method public register(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TTResource;>;", "Lcom/bumptech/glide/load/ResourceEncoder<", "TTResource;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 297 invoke-virtual {p0, p1, p2}, Lcom/bumptech/glide/Registry;->append(Ljava/lang/Class;Lcom/bumptech/glide/load/ResourceEncoder;)Lcom/bumptech/glide/Registry; move-result-object p1 return-object p1 .end method .method public register(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)Lcom/bumptech/glide/Registry; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TTResource;>;", "Ljava/lang/Class<", "TTranscode;>;", "Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder<", "TTResource;TTranscode;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 366 iget-object v0, p0, Lcom/bumptech/glide/Registry;->transcoderRegistry:Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry; invoke-virtual {v0, p1, p2, p3}, Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;->register(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/resource/transcode/ResourceTranscoder;)V return-object p0 .end method .method public replace(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)Lcom/bumptech/glide/Registry; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TModel;>;", "Ljava/lang/Class<", "TData;>;", "Lcom/bumptech/glide/load/model/ModelLoaderFactory<", "+TModel;+TData;>;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 469 iget-object v0, p0, Lcom/bumptech/glide/Registry;->modelLoaderRegistry:Lcom/bumptech/glide/load/model/ModelLoaderRegistry; invoke-virtual {v0, p1, p2, p3}, Lcom/bumptech/glide/load/model/ModelLoaderRegistry;->replace(Ljava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/load/model/ModelLoaderFactory;)V return-object p0 .end method .method public final setResourceDecoderBucketPriorityList(Ljava/util/List;)Lcom/bumptech/glide/Registry; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "Ljava/lang/String;", ">;)", "Lcom/bumptech/glide/Registry;" } .end annotation .line 269 new-instance v0, Ljava/util/ArrayList; invoke-interface {p1}, Ljava/util/List;->size()I move-result v1 invoke-direct {v0, v1}, Ljava/util/ArrayList;->(I)V .line 270 invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z const/4 p1, 0x0 .line 271 const-string v1, "legacy_prepend_all" invoke-interface {v0, p1, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V .line 272 const-string p1, "legacy_append" invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 273 iget-object p1, p0, Lcom/bumptech/glide/Registry;->decoderRegistry:Lcom/bumptech/glide/provider/ResourceDecoderRegistry; invoke-virtual {p1, v0}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->setBucketPriorityList(Ljava/util/List;)V return-object p0 .end method