234 lines
3.9 KiB
Smali
234 lines
3.9 KiB
Smali
.class public Lf/g/j/l/e;
|
|
.super Ljava/lang/Object;
|
|
.source "Bucket.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<V:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:I
|
|
|
|
.field public final b:I
|
|
|
|
.field public final c:Ljava/util/Queue;
|
|
|
|
.field public final d:Z
|
|
|
|
.field public e:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(IIIZ)V
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-lez 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;->m(Z)V
|
|
|
|
if-ltz p2, :cond_1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
invoke-static {v2}, Ld0/a/b/b/a;->m(Z)V
|
|
|
|
if-ltz p3, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
invoke-static {v0}, Ld0/a/b/b/a;->m(Z)V
|
|
|
|
iput p1, p0, Lf/g/j/l/e;->a:I
|
|
|
|
iput p2, p0, Lf/g/j/l/e;->b:I
|
|
|
|
new-instance p1, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {p1}, Ljava/util/LinkedList;-><init>()V
|
|
|
|
iput-object p1, p0, Lf/g/j/l/e;->c:Ljava/util/Queue;
|
|
|
|
iput p3, p0, Lf/g/j/l/e;->e:I
|
|
|
|
iput-boolean p4, p0, Lf/g/j/l/e;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TV;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/g/j/l/e;->c:Ljava/util/Queue;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 2
|
|
|
|
iget v0, p0, Lf/g/j/l/e;->e:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-lez 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;->m(Z)V
|
|
|
|
iget v0, p0, Lf/g/j/l/e;->e:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lf/g/j/l/e;->e:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TV;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/g/j/l/e;->c:Ljava/util/Queue;
|
|
|
|
invoke-interface {v0}, Ljava/util/Queue;->poll()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public d(Ljava/lang/Object;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TV;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lf/g/j/l/e;->d:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget v0, p0, Lf/g/j/l/e;->e:I
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_0
|
|
invoke-static {v1}, Ld0/a/b/b/a;->m(Z)V
|
|
|
|
iget v0, p0, Lf/g/j/l/e;->e:I
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
iput v0, p0, Lf/g/j/l/e;->e:I
|
|
|
|
invoke-virtual {p0, p1}, Lf/g/j/l/e;->a(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget v0, p0, Lf/g/j/l/e;->e:I
|
|
|
|
if-lez v0, :cond_2
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
iput v0, p0, Lf/g/j/l/e;->e:I
|
|
|
|
invoke-virtual {p0, p1}, Lf/g/j/l/e;->a(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
new-array v0, v2, [Ljava/lang/Object;
|
|
|
|
aput-object p1, v0, v1
|
|
|
|
sget-object p1, Lf/g/d/e/a;->a:Lf/g/d/e/c;
|
|
|
|
check-cast p1, Lf/g/d/e/b;
|
|
|
|
const/4 v1, 0x6
|
|
|
|
invoke-virtual {p1, v1}, Lf/g/d/e/b;->a(I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
sget-object p1, Lf/g/d/e/a;->a:Lf/g/d/e/c;
|
|
|
|
const-string v2, "Tried to release value %s from an empty bucket!"
|
|
|
|
invoke-static {v2, v0}, Lf/g/d/e/a;->f(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast p1, Lf/g/d/e/b;
|
|
|
|
const-string v2, "BUCKET"
|
|
|
|
invoke-virtual {p1, v1, v2, v0}, Lf/g/d/e/b;->c(ILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|