.class public final Lcom/bumptech/glide/util/pool/FactoryPools; .super Ljava/lang/Object; .source "FactoryPools.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;, Lcom/bumptech/glide/util/pool/FactoryPools$Poolable;, Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;, Lcom/bumptech/glide/util/pool/FactoryPools$Factory; } .end annotation # static fields .field private static final DEFAULT_POOL_SIZE:I = 0x14 .field private static final EMPTY_RESETTER:Lcom/bumptech/glide/util/pool/FactoryPools$Resetter; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/bumptech/glide/util/pool/FactoryPools$Resetter<", "Ljava/lang/Object;", ">;" } .end annotation .end field .field private static final TAG:Ljava/lang/String; = "FactoryPools" # direct methods .method static constructor ()V .registers 1 .line 19 new-instance v0, Lcom/bumptech/glide/util/pool/FactoryPools$1; invoke-direct {v0}, Lcom/bumptech/glide/util/pool/FactoryPools$1;->()V sput-object v0, Lcom/bumptech/glide/util/pool/FactoryPools;->EMPTY_RESETTER:Lcom/bumptech/glide/util/pool/FactoryPools$Resetter; return-void .end method .method private constructor ()V .registers 1 .line 26 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method private static build(Landroidx/core/util/Pools$Pool;Lcom/bumptech/glide/util/pool/FactoryPools$Factory;)Landroidx/core/util/Pools$Pool; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/core/util/Pools$Pool<", "TT;>;", "Lcom/bumptech/glide/util/pool/FactoryPools$Factory<", "TT;>;)", "Landroidx/core/util/Pools$Pool<", "TT;>;" } .end annotation .line 102 invoke-static {}, Lcom/bumptech/glide/util/pool/FactoryPools;->emptyResetter()Lcom/bumptech/glide/util/pool/FactoryPools$Resetter; move-result-object v0 invoke-static {p0, p1, v0}, Lcom/bumptech/glide/util/pool/FactoryPools;->build(Landroidx/core/util/Pools$Pool;Lcom/bumptech/glide/util/pool/FactoryPools$Factory;Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;)Landroidx/core/util/Pools$Pool; move-result-object p0 return-object p0 .end method .method private static build(Landroidx/core/util/Pools$Pool;Lcom/bumptech/glide/util/pool/FactoryPools$Factory;Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;)Landroidx/core/util/Pools$Pool; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroidx/core/util/Pools$Pool<", "TT;>;", "Lcom/bumptech/glide/util/pool/FactoryPools$Factory<", "TT;>;", "Lcom/bumptech/glide/util/pool/FactoryPools$Resetter<", "TT;>;)", "Landroidx/core/util/Pools$Pool<", "TT;>;" } .end annotation .line 108 new-instance v0, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool; invoke-direct {v0, p0, p1, p2}, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;->(Landroidx/core/util/Pools$Pool;Lcom/bumptech/glide/util/pool/FactoryPools$Factory;Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;)V return-object v0 .end method .method private static emptyResetter()Lcom/bumptech/glide/util/pool/FactoryPools$Resetter; .registers 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/bumptech/glide/util/pool/FactoryPools$Resetter<", "TT;>;" } .end annotation .line 114 sget-object v0, Lcom/bumptech/glide/util/pool/FactoryPools;->EMPTY_RESETTER:Lcom/bumptech/glide/util/pool/FactoryPools$Resetter; return-object v0 .end method .method public static simple(ILcom/bumptech/glide/util/pool/FactoryPools$Factory;)Landroidx/core/util/Pools$Pool; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(I", "Lcom/bumptech/glide/util/pool/FactoryPools$Factory<", "TT;>;)", "Landroidx/core/util/Pools$Pool<", "TT;>;" } .end annotation .line 40 new-instance v0, Landroidx/core/util/Pools$SimplePool; invoke-direct {v0, p0}, Landroidx/core/util/Pools$SimplePool;->(I)V invoke-static {v0, p1}, Lcom/bumptech/glide/util/pool/FactoryPools;->build(Landroidx/core/util/Pools$Pool;Lcom/bumptech/glide/util/pool/FactoryPools$Factory;)Landroidx/core/util/Pools$Pool; move-result-object p0 return-object p0 .end method .method public static threadSafe(ILcom/bumptech/glide/util/pool/FactoryPools$Factory;)Landroidx/core/util/Pools$Pool; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(I", "Lcom/bumptech/glide/util/pool/FactoryPools$Factory<", "TT;>;)", "Landroidx/core/util/Pools$Pool<", "TT;>;" } .end annotation .line 55 new-instance v0, Landroidx/core/util/Pools$SynchronizedPool; invoke-direct {v0, p0}, Landroidx/core/util/Pools$SynchronizedPool;->(I)V invoke-static {v0, p1}, Lcom/bumptech/glide/util/pool/FactoryPools;->build(Landroidx/core/util/Pools$Pool;Lcom/bumptech/glide/util/pool/FactoryPools$Factory;)Landroidx/core/util/Pools$Pool; move-result-object p0 return-object p0 .end method .method public static threadSafeList()Landroidx/core/util/Pools$Pool; .registers 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Landroidx/core/util/Pools$Pool<", "Ljava/util/List<", "TT;>;>;" } .end annotation const/16 v0, 0x14 .line 69 invoke-static {v0}, Lcom/bumptech/glide/util/pool/FactoryPools;->threadSafeList(I)Landroidx/core/util/Pools$Pool; move-result-object v0 return-object v0 .end method .method public static threadSafeList(I)Landroidx/core/util/Pools$Pool; .registers 3 .annotation system Ldalvik/annotation/Signature; value = { "(I)", "Landroidx/core/util/Pools$Pool<", "Ljava/util/List<", "TT;>;>;" } .end annotation .line 85 new-instance v0, Landroidx/core/util/Pools$SynchronizedPool; invoke-direct {v0, p0}, Landroidx/core/util/Pools$SynchronizedPool;->(I)V new-instance p0, Lcom/bumptech/glide/util/pool/FactoryPools$2; invoke-direct {p0}, Lcom/bumptech/glide/util/pool/FactoryPools$2;->()V new-instance v1, Lcom/bumptech/glide/util/pool/FactoryPools$3; invoke-direct {v1}, Lcom/bumptech/glide/util/pool/FactoryPools$3;->()V invoke-static {v0, p0, v1}, Lcom/bumptech/glide/util/pool/FactoryPools;->build(Landroidx/core/util/Pools$Pool;Lcom/bumptech/glide/util/pool/FactoryPools$Factory;Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;)Landroidx/core/util/Pools$Pool; move-result-object p0 return-object p0 .end method