a.smali
.class public final Lcom/bumptech/glide/g/a;
.super Ljava/lang/Object;
# static fields
.field private static final b:Lcom/bumptech/glide/g/a;
# instance fields
.field private final a:Ljava/util/Queue;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Queue",
"<[B>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
new-instance v0, Lcom/bumptech/glide/g/a;
invoke-direct {v0}, Lcom/bumptech/glide/g/a;-><init>()V
sput-object v0, Lcom/bumptech/glide/g/a;->b:Lcom/bumptech/glide/g/a;
return-void
.end method
.method private constructor <init>()V
.registers 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
invoke-static {v0}, Lcom/bumptech/glide/g/h;->a(I)Ljava/util/Queue;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/g/a;->a:Ljava/util/Queue;
return-void
.end method
.method public static a()Lcom/bumptech/glide/g/a;
.registers 1
sget-object v0, Lcom/bumptech/glide/g/a;->b:Lcom/bumptech/glide/g/a;
return-object v0
.end method
# virtual methods
.method public a([B)Z
.registers 6
const/4 v0, 0x0
array-length v1, p1
const/high16 v2, 0x10000
if-eq v1, v2, :cond_7
:goto_6
return v0
:cond_7
iget-object v1, p0, Lcom/bumptech/glide/g/a;->a:Ljava/util/Queue;
monitor-enter v1
:try_start_a
iget-object v2, p0, Lcom/bumptech/glide/g/a;->a:Ljava/util/Queue;
invoke-interface {v2}, Ljava/util/Queue;->size()I
move-result v2
const/16 v3, 0x20
if-ge v2, v3, :cond_1a
const/4 v0, 0x1
iget-object v2, p0, Lcom/bumptech/glide/g/a;->a:Ljava/util/Queue;
invoke-interface {v2, p1}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
:cond_1a
monitor-exit v1
goto :goto_6
:catchall_1c
move-exception v0
monitor-exit v1
:try_end_1e
.catchall {:try_start_a .. :try_end_1e} :catchall_1c
throw v0
.end method
.method public b()[B
.registers 4
iget-object v1, p0, Lcom/bumptech/glide/g/a;->a:Ljava/util/Queue;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/bumptech/glide/g/a;->a:Ljava/util/Queue;
invoke-interface {v0}, Ljava/util/Queue;->poll()Ljava/lang/Object;
move-result-object v0
check-cast v0, [B
monitor-exit v1
:try_end_c
.catchall {:try_start_3 .. :try_end_c} :catchall_26
if-nez v0, :cond_25
const/high16 v0, 0x10000
new-array v0, v0, [B
const-string/jumbo v1, "ByteArrayPool"
const/4 v2, 0x3
invoke-static {v1, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_25
const-string/jumbo v1, "ByteArrayPool"
const-string/jumbo v2, "Created temp bytes"
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_25
return-object v0
:catchall_26
move-exception v0
:try_start_27
monitor-exit v1
:try_end_28
.catchall {:try_start_27 .. :try_end_28} :catchall_26
throw v0
.end method