56 lines
2.8 KiB
Smali
56 lines
2.8 KiB
Smali
.class public Lcom/facebook/imagepipeline/cache/EncodedCountingMemoryCacheFactory;
|
|
.super Ljava/lang/Object;
|
|
.source "EncodedCountingMemoryCacheFactory.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static get(Lcom/facebook/common/internal/Supplier;Lcom/facebook/common/memory/MemoryTrimmableRegistry;)Lcom/facebook/imagepipeline/cache/CountingMemoryCache;
|
|
.locals 3
|
|
.param p1, "memoryTrimmableRegistry" # Lcom/facebook/common/memory/MemoryTrimmableRegistry;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/common/internal/Supplier",
|
|
"<",
|
|
"Lcom/facebook/imagepipeline/cache/MemoryCacheParams;",
|
|
">;",
|
|
"Lcom/facebook/common/memory/MemoryTrimmableRegistry;",
|
|
")",
|
|
"Lcom/facebook/imagepipeline/cache/CountingMemoryCache",
|
|
"<",
|
|
"Lcom/facebook/cache/common/CacheKey;",
|
|
"Lcom/facebook/imagepipeline/memory/PooledByteBuffer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p0, "encodedMemoryCacheParamsSupplier":Lcom/facebook/common/internal/Supplier;, "Lcom/facebook/common/internal/Supplier<Lcom/facebook/imagepipeline/cache/MemoryCacheParams;>;"
|
|
new-instance v2, Lcom/facebook/imagepipeline/cache/EncodedCountingMemoryCacheFactory$1;
|
|
|
|
invoke-direct {v2}, Lcom/facebook/imagepipeline/cache/EncodedCountingMemoryCacheFactory$1;-><init>()V
|
|
|
|
.local v2, "valueDescriptor":Lcom/facebook/imagepipeline/cache/ValueDescriptor;, "Lcom/facebook/imagepipeline/cache/ValueDescriptor<Lcom/facebook/imagepipeline/memory/PooledByteBuffer;>;"
|
|
new-instance v1, Lcom/facebook/imagepipeline/cache/NativeMemoryCacheTrimStrategy;
|
|
|
|
invoke-direct {v1}, Lcom/facebook/imagepipeline/cache/NativeMemoryCacheTrimStrategy;-><init>()V
|
|
|
|
.local v1, "trimStrategy":Lcom/facebook/imagepipeline/cache/CountingMemoryCache$CacheTrimStrategy;
|
|
new-instance v0, Lcom/facebook/imagepipeline/cache/CountingMemoryCache;
|
|
|
|
invoke-direct {v0, v2, v1, p0}, Lcom/facebook/imagepipeline/cache/CountingMemoryCache;-><init>(Lcom/facebook/imagepipeline/cache/ValueDescriptor;Lcom/facebook/imagepipeline/cache/CountingMemoryCache$CacheTrimStrategy;Lcom/facebook/common/internal/Supplier;)V
|
|
|
|
.local v0, "countingCache":Lcom/facebook/imagepipeline/cache/CountingMemoryCache;, "Lcom/facebook/imagepipeline/cache/CountingMemoryCache<Lcom/facebook/cache/common/CacheKey;Lcom/facebook/imagepipeline/memory/PooledByteBuffer;>;"
|
|
invoke-interface {p1, v0}, Lcom/facebook/common/memory/MemoryTrimmableRegistry;->registerMemoryTrimmable(Lcom/facebook/common/memory/MemoryTrimmable;)V
|
|
|
|
return-object v0
|
|
.end method
|