161 lines
3.7 KiB
Smali
161 lines
3.7 KiB
Smali
.class public Lf/g/j/l/x;
|
|
.super Lf/g/j/l/e;
|
|
.source "OOMSoftReferenceBucket.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<V:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lf/g/j/l/e<",
|
|
"TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public f:Ljava/util/LinkedList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/LinkedList<",
|
|
"Lf/g/d/h/a<",
|
|
"TV;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(III)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, p2, p3, v0}, Lf/g/j/l/e;-><init>(IIIZ)V
|
|
|
|
new-instance p1, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {p1}, Ljava/util/LinkedList;-><init>()V
|
|
|
|
iput-object p1, p0, Lf/g/j/l/x;->f:Ljava/util/LinkedList;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/Object;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TV;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/g/j/l/x;->f:Ljava/util/LinkedList;
|
|
|
|
invoke-virtual {v0}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/g/d/h/a;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Lf/g/d/h/a;
|
|
|
|
invoke-direct {v0}, Lf/g/d/h/a;-><init>()V
|
|
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-direct {v1, p1}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v1, v0, Lf/g/d/h/a;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
new-instance v1, Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-direct {v1, p1}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v1, v0, Lf/g/d/h/a;->b:Ljava/lang/ref/SoftReference;
|
|
|
|
new-instance v1, Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-direct {v1, p1}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v1, v0, Lf/g/d/h/a;->c:Ljava/lang/ref/SoftReference;
|
|
|
|
iget-object p1, p0, Lf/g/j/l/e;->c:Ljava/util/Queue;
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Ljava/lang/Object;
|
|
.locals 4
|
|
.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
|
|
|
|
check-cast v0, Lf/g/d/h/a;
|
|
|
|
iget-object v1, v0, Lf/g/d/h/a;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
move-object v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v1}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
iget-object v3, v0, Lf/g/d/h/a;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v3}, Ljava/lang/ref/SoftReference;->clear()V
|
|
|
|
iput-object v2, v0, Lf/g/d/h/a;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
:cond_1
|
|
iget-object v3, v0, Lf/g/d/h/a;->b:Ljava/lang/ref/SoftReference;
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-virtual {v3}, Ljava/lang/ref/SoftReference;->clear()V
|
|
|
|
iput-object v2, v0, Lf/g/d/h/a;->b:Ljava/lang/ref/SoftReference;
|
|
|
|
:cond_2
|
|
iget-object v3, v0, Lf/g/d/h/a;->c:Ljava/lang/ref/SoftReference;
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
invoke-virtual {v3}, Ljava/lang/ref/SoftReference;->clear()V
|
|
|
|
iput-object v2, v0, Lf/g/d/h/a;->c:Ljava/lang/ref/SoftReference;
|
|
|
|
:cond_3
|
|
iget-object v2, p0, Lf/g/j/l/x;->f:Ljava/util/LinkedList;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
|
|
|
|
return-object v1
|
|
.end method
|