239 lines
4.4 KiB
Smali
239 lines
4.4 KiB
Smali
.class public Lf/g/j/m/p;
|
|
.super Ljava/lang/Object;
|
|
.source "LruBitmapPool.java"
|
|
|
|
# interfaces
|
|
.implements Lf/g/j/m/d;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lf/g/j/m/q;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lf/g/j/m/q<",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:I
|
|
|
|
.field public c:I
|
|
|
|
.field public final d:Lf/g/j/m/a0;
|
|
|
|
.field public e:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(IILf/g/j/m/a0;Lf/g/d/g/c;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Lf/g/j/m/e;
|
|
|
|
invoke-direct {v0}, Lf/g/j/m/e;-><init>()V
|
|
|
|
iput-object v0, p0, Lf/g/j/m/p;->a:Lf/g/j/m/q;
|
|
|
|
iput p1, p0, Lf/g/j/m/p;->b:I
|
|
|
|
iput p2, p0, Lf/g/j/m/p;->c:I
|
|
|
|
iput-object p3, p0, Lf/g/j/m/p;->d:Lf/g/j/m/a0;
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-interface {p4, p0}, Lf/g/d/g/c;->a(Lf/g/d/g/b;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public get(I)Ljava/lang/Object;
|
|
.locals 3
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget v0, p0, Lf/g/j/m/p;->e:I
|
|
|
|
iget v1, p0, Lf/g/j/m/p;->b:I
|
|
|
|
if-le v0, v1, :cond_2
|
|
|
|
iget v0, p0, Lf/g/j/m/p;->b:I
|
|
|
|
monitor-enter p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:goto_0
|
|
:try_start_1
|
|
iget v1, p0, Lf/g/j/m/p;->e:I
|
|
|
|
if-le v1, v0, :cond_1
|
|
|
|
iget-object v1, p0, Lf/g/j/m/p;->a:Lf/g/j/m/q;
|
|
|
|
invoke-virtual {v1}, Lf/g/j/m/q;->c()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/graphics/Bitmap;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Lf/g/j/m/p;->a:Lf/g/j/m/q;
|
|
|
|
invoke-virtual {v2, v1}, Lf/g/j/m/q;->b(Ljava/lang/Object;)I
|
|
|
|
move-result v1
|
|
|
|
iget v2, p0, Lf/g/j/m/p;->e:I
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
iput v2, p0, Lf/g/j/m/p;->e:I
|
|
|
|
iget-object v2, p0, Lf/g/j/m/p;->d:Lf/g/j/m/a0;
|
|
|
|
invoke-interface {v2, v1}, Lf/g/j/m/a0;->e(I)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
:try_start_2
|
|
monitor-exit p0
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
:goto_2
|
|
iget-object v0, p0, Lf/g/j/m/p;->a:Lf/g/j/m/q;
|
|
|
|
invoke-virtual {v0, p1}, Lf/g/j/m/q;->a(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/graphics/Bitmap;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object p1, p0, Lf/g/j/m/p;->a:Lf/g/j/m/q;
|
|
|
|
invoke-virtual {p1, v0}, Lf/g/j/m/q;->b(Ljava/lang/Object;)I
|
|
|
|
move-result p1
|
|
|
|
iget v1, p0, Lf/g/j/m/p;->e:I
|
|
|
|
sub-int/2addr v1, p1
|
|
|
|
iput v1, p0, Lf/g/j/m/p;->e:I
|
|
|
|
iget-object v1, p0, Lf/g/j/m/p;->d:Lf/g/j/m/a0;
|
|
|
|
invoke-interface {v1, p1}, Lf/g/j/m/a0;->b(I)V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
monitor-exit p0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
:try_start_3
|
|
iget-object v0, p0, Lf/g/j/m/p;->d:Lf/g/j/m/a0;
|
|
|
|
invoke-interface {v0, p1}, Lf/g/j/m/a0;->a(I)V
|
|
|
|
sget-object v0, Landroid/graphics/Bitmap$Config;->ALPHA_8: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 v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
monitor-exit p0
|
|
|
|
:goto_3
|
|
return-object v0
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public release(Ljava/lang/Object;)V
|
|
.locals 2
|
|
|
|
check-cast p1, Landroid/graphics/Bitmap;
|
|
|
|
iget-object v0, p0, Lf/g/j/m/p;->a:Lf/g/j/m/q;
|
|
|
|
invoke-virtual {v0, p1}, Lf/g/j/m/q;->b(Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lf/g/j/m/p;->c:I
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
iget-object v1, p0, Lf/g/j/m/p;->d:Lf/g/j/m/a0;
|
|
|
|
invoke-interface {v1, v0}, Lf/g/j/m/a0;->g(I)V
|
|
|
|
iget-object v1, p0, Lf/g/j/m/p;->a:Lf/g/j/m/q;
|
|
|
|
invoke-virtual {v1, p1}, Lf/g/j/m/q;->d(Ljava/lang/Object;)V
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget p1, p0, Lf/g/j/m/p;->e:I
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
iput p1, p0, Lf/g/j/m/p;->e:I
|
|
|
|
monitor-exit p0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-void
|
|
.end method
|