FactoryPools$FactoryPool.smali
.class final Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;
.super Ljava/lang/Object;
.source "FactoryPools.java"
# interfaces
.implements Landroidx/core/util/Pools$Pool;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/bumptech/glide/util/pool/FactoryPools;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "FactoryPool"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Landroidx/core/util/Pools$Pool<",
"TT;>;"
}
.end annotation
# instance fields
.field private final factory:Lcom/bumptech/glide/util/pool/FactoryPools$Factory;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/util/pool/FactoryPools$Factory<",
"TT;>;"
}
.end annotation
.end field
.field private final pool:Landroidx/core/util/Pools$Pool;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/core/util/Pools$Pool<",
"TT;>;"
}
.end annotation
.end field
.field private final resetter:Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/util/pool/FactoryPools$Resetter<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Landroidx/core/util/Pools$Pool;Lcom/bumptech/glide/util/pool/FactoryPools$Factory;Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;)V
.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;>;)V"
}
.end annotation
.line 153
.local p0, "this":Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;, "Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool<TT;>;"
.local p1, "pool":Landroidx/core/util/Pools$Pool;, "Landroidx/core/util/Pools$Pool<TT;>;"
.local p2, "factory":Lcom/bumptech/glide/util/pool/FactoryPools$Factory;, "Lcom/bumptech/glide/util/pool/FactoryPools$Factory<TT;>;"
.local p3, "resetter":Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;, "Lcom/bumptech/glide/util/pool/FactoryPools$Resetter<TT;>;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 154
iput-object p1, p0, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;->pool:Landroidx/core/util/Pools$Pool;
.line 155
iput-object p2, p0, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;->factory:Lcom/bumptech/glide/util/pool/FactoryPools$Factory;
.line 156
iput-object p3, p0, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;->resetter:Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;
.line 157
return-void
.end method
# virtual methods
.method public acquire()Ljava/lang/Object;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.line 161
.local p0, "this":Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;, "Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool<TT;>;"
iget-object v0, p0, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;->pool:Landroidx/core/util/Pools$Pool;
invoke-interface {v0}, Landroidx/core/util/Pools$Pool;->acquire()Ljava/lang/Object;
move-result-object v0
.line 162
.local v0, "result":Ljava/lang/Object;, "TT;"
if-nez v0, :cond_2f
.line 163
iget-object v1, p0, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;->factory:Lcom/bumptech/glide/util/pool/FactoryPools$Factory;
invoke-interface {v1}, Lcom/bumptech/glide/util/pool/FactoryPools$Factory;->create()Ljava/lang/Object;
move-result-object v0
.line 164
const/4 v1, 0x2
const-string v2, "FactoryPools"
invoke-static {v2, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_2f
.line 165
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Created new "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
.line 168
:cond_2f
instance-of v1, v0, Lcom/bumptech/glide/util/pool/FactoryPools$Poolable;
if-eqz v1, :cond_3e
.line 169
move-object v1, v0
check-cast v1, Lcom/bumptech/glide/util/pool/FactoryPools$Poolable;
invoke-interface {v1}, Lcom/bumptech/glide/util/pool/FactoryPools$Poolable;->getVerifier()Lcom/bumptech/glide/util/pool/StateVerifier;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lcom/bumptech/glide/util/pool/StateVerifier;->setRecycled(Z)V
.line 171
:cond_3e
return-object v0
.end method
.method public release(Ljava/lang/Object;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)Z"
}
.end annotation
.line 176
.local p0, "this":Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;, "Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool<TT;>;"
.local p1, "instance":Ljava/lang/Object;, "TT;"
instance-of v0, p1, Lcom/bumptech/glide/util/pool/FactoryPools$Poolable;
if-eqz v0, :cond_f
.line 177
move-object v0, p1
check-cast v0, Lcom/bumptech/glide/util/pool/FactoryPools$Poolable;
invoke-interface {v0}, Lcom/bumptech/glide/util/pool/FactoryPools$Poolable;->getVerifier()Lcom/bumptech/glide/util/pool/StateVerifier;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/bumptech/glide/util/pool/StateVerifier;->setRecycled(Z)V
.line 179
:cond_f
iget-object v0, p0, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;->resetter:Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;
invoke-interface {v0, p1}, Lcom/bumptech/glide/util/pool/FactoryPools$Resetter;->reset(Ljava/lang/Object;)V
.line 180
iget-object v0, p0, Lcom/bumptech/glide/util/pool/FactoryPools$FactoryPool;->pool:Landroidx/core/util/Pools$Pool;
invoke-interface {v0, p1}, Landroidx/core/util/Pools$Pool;->release(Ljava/lang/Object;)Z
move-result v0
return v0
.end method