205 lines
3.9 KiB
Smali
205 lines
3.9 KiB
Smali
.class public final Lf/k/a/b/k1/e0/r;
|
|
.super Ljava/lang/Object;
|
|
.source "LeastRecentlyUsedCacheEvictor.java"
|
|
|
|
# interfaces
|
|
.implements Lf/k/a/b/k1/e0/f;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:J
|
|
|
|
.field public final b:Ljava/util/TreeSet;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/TreeSet<",
|
|
"Lf/k/a/b/k1/e0/j;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public c:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(J)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lf/k/a/b/k1/e0/r;->a:J
|
|
|
|
new-instance p1, Ljava/util/TreeSet;
|
|
|
|
sget-object p2, Lf/k/a/b/k1/e0/b;->d:Lf/k/a/b/k1/e0/b;
|
|
|
|
invoke-direct {p1, p2}, Ljava/util/TreeSet;-><init>(Ljava/util/Comparator;)V
|
|
|
|
iput-object p1, p0, Lf/k/a/b/k1/e0/r;->b:Ljava/util/TreeSet;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Lf/k/a/b/k1/e0/j;Lf/k/a/b/k1/e0/j;)I
|
|
.locals 9
|
|
|
|
iget-wide v0, p0, Lf/k/a/b/k1/e0/j;->i:J
|
|
|
|
iget-wide v2, p1, Lf/k/a/b/k1/e0/j;->i:J
|
|
|
|
sub-long v4, v0, v2
|
|
|
|
const-wide/16 v6, 0x0
|
|
|
|
cmp-long v8, v4, v6
|
|
|
|
if-nez v8, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Lf/k/a/b/k1/e0/j;->a(Lf/k/a/b/k1/e0/j;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
cmp-long p0, v0, v2
|
|
|
|
if-gez p0, :cond_1
|
|
|
|
const/4 p0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x1
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lf/k/a/b/k1/e0/c;J)V
|
|
.locals 5
|
|
|
|
:goto_0
|
|
iget-wide v0, p0, Lf/k/a/b/k1/e0/r;->c:J
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
iget-wide v2, p0, Lf/k/a/b/k1/e0/r;->a:J
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-lez v4, :cond_0
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/e0/r;->b:Ljava/util/TreeSet;
|
|
|
|
invoke-virtual {v0}, Ljava/util/TreeSet;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lf/k/a/b/k1/e0/r;->b:Ljava/util/TreeSet;
|
|
|
|
invoke-virtual {v0}, Ljava/util/TreeSet;->first()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/k/a/b/k1/e0/j;
|
|
:try_end_0
|
|
.catch Lf/k/a/b/k1/e0/c$a; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-object v1, p1
|
|
|
|
check-cast v1, Lf/k/a/b/k1/e0/t;
|
|
|
|
:try_start_1
|
|
invoke-virtual {v1, v0}, Lf/k/a/b/k1/e0/t;->b(Lf/k/a/b/k1/e0/j;)V
|
|
:try_end_1
|
|
.catch Lf/k/a/b/k1/e0/c$a; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
nop
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/k1/e0/c;Lf/k/a/b/k1/e0/j;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/e0/r;->b:Ljava/util/TreeSet;
|
|
|
|
invoke-virtual {v0, p2}, Ljava/util/TreeSet;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-wide v0, p0, Lf/k/a/b/k1/e0/r;->c:J
|
|
|
|
iget-wide v2, p2, Lf/k/a/b/k1/e0/j;->f:J
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
iput-wide v0, p0, Lf/k/a/b/k1/e0/r;->c:J
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
invoke-virtual {p0, p1, v0, v1}, Lf/k/a/b/k1/e0/r;->a(Lf/k/a/b/k1/e0/c;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/k1/e0/c;Lf/k/a/b/k1/e0/j;Lf/k/a/b/k1/e0/j;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lf/k/a/b/k1/e0/r;->b:Ljava/util/TreeSet;
|
|
|
|
invoke-virtual {v0, p2}, Ljava/util/TreeSet;->remove(Ljava/lang/Object;)Z
|
|
|
|
iget-wide v0, p0, Lf/k/a/b/k1/e0/r;->c:J
|
|
|
|
iget-wide v2, p2, Lf/k/a/b/k1/e0/j;->f:J
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
iput-wide v0, p0, Lf/k/a/b/k1/e0/r;->c:J
|
|
|
|
invoke-virtual {p0, p1, p3}, Lf/k/a/b/k1/e0/r;->a(Lf/k/a/b/k1/e0/c;Lf/k/a/b/k1/e0/j;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lf/k/a/b/k1/e0/c;Ljava/lang/String;JJ)V
|
|
.locals 0
|
|
|
|
const-wide/16 p2, -0x1
|
|
|
|
cmp-long p4, p5, p2
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-virtual {p0, p1, p5, p6}, Lf/k/a/b/k1/e0/r;->a(Lf/k/a/b/k1/e0/c;J)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|