2020-09-16 21:45:36 +00:00
|
|
|
.class public Lf/g/j/l/g;
|
2020-07-08 16:44:49 +00:00
|
|
|
.super Lcom/facebook/imagepipeline/memory/BasePool;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "BucketsBitmapPool.java"
|
|
|
|
|
|
|
|
# interfaces
|
2020-09-16 21:45:36 +00:00
|
|
|
.implements Lf/g/j/l/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
|
|
value = 0x15
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-08 16:44:49 +00:00
|
|
|
"Lcom/facebook/imagepipeline/memory/BasePool<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Landroid/graphics/Bitmap;",
|
|
|
|
">;",
|
2020-09-16 21:45:36 +00:00
|
|
|
"Lf/g/j/l/c;"
|
2020-05-17 12:40:10 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-09-16 21:45:36 +00:00
|
|
|
.method public constructor <init>(Lf/g/d/g/c;Lf/g/j/l/a0;Lf/g/j/l/b0;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/facebook/imagepipeline/memory/BasePool;-><init>(Lf/g/d/g/c;Lf/g/j/l/a0;Lf/g/j/l/b0;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/BasePool;->i()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public a(I)Ljava/lang/Object;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
int-to-double v0, p1
|
|
|
|
|
|
|
|
const-wide/high16 v2, 0x4000000000000000L # 2.0
|
|
|
|
|
|
|
|
div-double/2addr v0, v2
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
double-to-int p1, v0
|
|
|
|
|
|
|
|
sget-object v0, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-static {v1, p1, v0}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public c(Ljava/lang/Object;)V
|
|
|
|
.locals 0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
check-cast p1, Landroid/graphics/Bitmap;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public e(I)I
|
|
|
|
.locals 0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public f(Ljava/lang/Object;)I
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Landroid/graphics/Bitmap;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getAllocationByteCount()I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
move-result p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return p1
|
|
|
|
.end method
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public g(I)I
|
|
|
|
.locals 0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
.method public h(Lf/g/j/l/e;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-super {p0, p1}, Lcom/facebook/imagepipeline/memory/BasePool;->h(Lf/g/j/l/e;)Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
check-cast p1, Landroid/graphics/Bitmap;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const/4 v0, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Bitmap;->eraseColor(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
return-object p1
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public k(Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
check-cast p1, Landroid/graphics/Bitmap;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->isRecycled()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->isMutable()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return p1
|
|
|
|
.end method
|