402 lines
7.7 KiB
Smali
402 lines
7.7 KiB
Smali
.class public Lf/g/j/l/t;
|
|
.super Ljava/lang/Object;
|
|
.source "MemoryPooledByteBuffer.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/facebook/common/memory/PooledByteBuffer;
|
|
|
|
|
|
# instance fields
|
|
.field public final d:I
|
|
|
|
.field public e:Lcom/facebook/common/references/CloseableReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lf/g/j/l/r;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/facebook/common/references/CloseableReference;I)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lf/g/j/l/r;",
|
|
">;I)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-ltz p2, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/g/j/l/r;
|
|
|
|
invoke-interface {v0}, Lf/g/j/l/r;->getSize()I
|
|
|
|
move-result v0
|
|
|
|
if-gt p2, v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Ld0/a/b/b/a;->h(Z)V
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->b()Lcom/facebook/common/references/CloseableReference;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
iput p2, p0, Lf/g/j/l/t;->d:I
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public declared-synchronized a()V
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
monitor-enter p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:try_start_1
|
|
iget-object v0, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->o(Lcom/facebook/common/references/CloseableReference;)Z
|
|
|
|
move-result v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
:try_start_2
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
:try_start_3
|
|
new-instance v0, Lcom/facebook/common/memory/PooledByteBuffer$ClosedException;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/common/memory/PooledByteBuffer$ClosedException;-><init>()V
|
|
|
|
throw v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
:goto_0
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public declared-synchronized close()V
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->f(Lcom/facebook/common/references/CloseableReference;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public declared-synchronized getByteBuffer()Ljava/nio/ByteBuffer;
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/g/j/l/r;
|
|
|
|
invoke-interface {v0}, Lf/g/j/l/r;->getByteBuffer()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public declared-synchronized isClosed()Z
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->o(Lcom/facebook/common/references/CloseableReference;)Z
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public declared-synchronized k(I)B
|
|
.locals 3
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lf/g/j/l/t;->a()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v2}, Ld0/a/b/b/a;->h(Z)V
|
|
|
|
iget v2, p0, Lf/g/j/l/t;->d:I
|
|
|
|
if-ge p1, v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
invoke-static {v0}, Ld0/a/b/b/a;->h(Z)V
|
|
|
|
iget-object v0, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/g/j/l/r;
|
|
|
|
invoke-interface {v0, p1}, Lf/g/j/l/r;->k(I)B
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public declared-synchronized m(I[BII)I
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lf/g/j/l/t;->a()V
|
|
|
|
add-int v0, p1, p4
|
|
|
|
iget v1, p0, Lf/g/j/l/t;->d:I
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Ld0/a/b/b/a;->h(Z)V
|
|
|
|
iget-object v0, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/g/j/l/r;
|
|
|
|
invoke-interface {v0, p1, p2, p3, p4}, Lf/g/j/l/r;->m(I[BII)I
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public declared-synchronized p()J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/UnsupportedOperationException;
|
|
}
|
|
.end annotation
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lf/g/j/l/t;->a()V
|
|
|
|
iget-object v0, p0, Lf/g/j/l/t;->e:Lcom/facebook/common/references/CloseableReference;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->h()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/g/j/l/r;
|
|
|
|
invoke-interface {v0}, Lf/g/j/l/r;->p()J
|
|
|
|
move-result-wide v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-wide v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public declared-synchronized size()I
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lf/g/j/l/t;->a()V
|
|
|
|
iget v0, p0, Lf/g/j/l/t;->d:I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|