342 lines
6.5 KiB
Smali
342 lines
6.5 KiB
Smali
.class public abstract Lf/g/j/l/q;
|
|
.super Ljava/lang/Object;
|
|
.source "LruBucketsPoolBackend.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lf/g/j/l/q<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:Lf/g/j/l/f;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lf/g/j/l/f<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
|
|
|
|
iput-object v0, p0, Lf/g/j/l/q;->a:Ljava/util/Set;
|
|
|
|
new-instance v0, Lf/g/j/l/f;
|
|
|
|
invoke-direct {v0}, Lf/g/j/l/f;-><init>()V
|
|
|
|
iput-object v0, p0, Lf/g/j/l/q;->b:Lf/g/j/l/f;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(I)Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/g/j/l/q;->b:Lf/g/j/l/f;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, v0, Lf/g/j/l/f;->a:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v1, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lf/g/j/l/f$b;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
monitor-exit v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
:try_start_1
|
|
iget-object v1, p1, Lf/g/j/l/f$b;->c:Ljava/util/LinkedList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/LinkedList;->pollFirst()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, p1}, Lf/g/j/l/f;->a(Lf/g/j/l/f$b;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
monitor-exit v0
|
|
|
|
move-object p1, v1
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_2
|
|
iget-object v0, p0, Lf/g/j/l/q;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
monitor-exit p0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object p1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public abstract b(Ljava/lang/Object;)I
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)I"
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public c()Ljava/lang/Object;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/g/j/l/q;->b:Lf/g/j/l/f;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, v0, Lf/g/j/l/f;->c:Lf/g/j/l/f$b;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
monitor-exit v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
:try_start_1
|
|
iget-object v2, v1, Lf/g/j/l/f$b;->c:Ljava/util/LinkedList;
|
|
|
|
invoke-virtual {v2}, Ljava/util/LinkedList;->pollLast()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v1, Lf/g/j/l/f$b;->c:Ljava/util/LinkedList;
|
|
|
|
invoke-virtual {v3}, Ljava/util/LinkedList;->isEmpty()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v0, v1}, Lf/g/j/l/f;->b(Lf/g/j/l/f$b;)V
|
|
|
|
iget-object v3, v0, Lf/g/j/l/f;->a:Landroid/util/SparseArray;
|
|
|
|
iget v1, v1, Lf/g/j/l/f$b;->b:I
|
|
|
|
invoke-virtual {v3, v1}, Landroid/util/SparseArray;->remove(I)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
:cond_1
|
|
monitor-exit v0
|
|
|
|
move-object v1, v2
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_2
|
|
iget-object v0, p0, Lf/g/j/l/q;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
monitor-exit p0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-object v1
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public d(Ljava/lang/Object;)V
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lf/g/j/l/q;->a:Ljava/util/Set;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lf/g/j/l/q;->b:Lf/g/j/l/f;
|
|
|
|
invoke-virtual {p0, p1}, Lf/g/j/l/q;->b(Ljava/lang/Object;)I
|
|
|
|
move-result v7
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_1
|
|
iget-object v1, v0, Lf/g/j/l/f;->a:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v1, v7}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lf/g/j/l/f$b;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v8, Lf/g/j/l/f$b;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
new-instance v4, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {v4}, Ljava/util/LinkedList;-><init>()V
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, v8
|
|
|
|
move v3, v7
|
|
|
|
invoke-direct/range {v1 .. v6}, Lf/g/j/l/f$b;-><init>(Lf/g/j/l/f$b;ILjava/util/LinkedList;Lf/g/j/l/f$b;Lf/g/j/l/f$a;)V
|
|
|
|
iget-object v1, v0, Lf/g/j/l/f;->a:Landroid/util/SparseArray;
|
|
|
|
invoke-virtual {v1, v7, v8}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
move-object v1, v8
|
|
|
|
:cond_0
|
|
iget-object v2, v1, Lf/g/j/l/f$b;->c:Ljava/util/LinkedList;
|
|
|
|
invoke-virtual {v2, p1}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0, v1}, Lf/g/j/l/f;->a(Lf/g/j/l/f$b;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
:try_start_2
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
throw p1
|
|
.end method
|