mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
425 lines
15 KiB
Smali
425 lines
15 KiB
Smali
.class Lcom/google/common/cache/LocalCache$ManualSerializationProxy;
|
|
.super Lcom/google/common/cache/ForwardingCache;
|
|
.source "LocalCache.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/common/cache/LocalCache;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "ManualSerializationProxy"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K:",
|
|
"Ljava/lang/Object;",
|
|
"V:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lcom/google/common/cache/ForwardingCache<",
|
|
"TK;TV;>;",
|
|
"Ljava/io/Serializable;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final serialVersionUID:J = 0x1L
|
|
|
|
|
|
# instance fields
|
|
.field final concurrencyLevel:I
|
|
|
|
.field transient delegate:Lcom/google/common/cache/Cache;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/cache/Cache<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljavax/annotation/CheckForNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final expireAfterAccessNanos:J
|
|
|
|
.field final expireAfterWriteNanos:J
|
|
|
|
.field final keyEquivalence:Lcom/google/common/base/Equivalence;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/base/Equivalence<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
.field final loader:Lcom/google/common/cache/CacheLoader;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/cache/CacheLoader<",
|
|
"-TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final maxWeight:J
|
|
|
|
.field final removalListener:Lcom/google/common/cache/RemovalListener;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/cache/RemovalListener<",
|
|
"-TK;-TV;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final ticker:Lcom/google/common/base/Ticker;
|
|
.annotation runtime Ljavax/annotation/CheckForNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final valueEquivalence:Lcom/google/common/base/Equivalence;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/base/Equivalence<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
.field final weigher:Lcom/google/common/cache/Weigher;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/cache/Weigher<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lcom/google/common/cache/LocalCache$Strength;Lcom/google/common/cache/LocalCache$Strength;Lcom/google/common/base/Equivalence;Lcom/google/common/base/Equivalence;JJJLcom/google/common/cache/Weigher;ILcom/google/common/cache/RemovalListener;Lcom/google/common/base/Ticker;Lcom/google/common/cache/CacheLoader;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/common/cache/LocalCache$Strength;",
|
|
"Lcom/google/common/cache/LocalCache$Strength;",
|
|
"Lcom/google/common/base/Equivalence<",
|
|
"Ljava/lang/Object;",
|
|
">;",
|
|
"Lcom/google/common/base/Equivalence<",
|
|
"Ljava/lang/Object;",
|
|
">;JJJ",
|
|
"Lcom/google/common/cache/Weigher<",
|
|
"TK;TV;>;I",
|
|
"Lcom/google/common/cache/RemovalListener<",
|
|
"-TK;-TV;>;",
|
|
"Lcom/google/common/base/Ticker;",
|
|
"Lcom/google/common/cache/CacheLoader<",
|
|
"-TK;TV;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 4554
|
|
invoke-direct {p0}, Lcom/google/common/cache/ForwardingCache;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
iput-object p2, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
iput-object p3, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->keyEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
iput-object p4, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->valueEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
iput-wide p5, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterWriteNanos:J
|
|
|
|
iput-wide p7, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterAccessNanos:J
|
|
|
|
iput-wide p9, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->maxWeight:J
|
|
|
|
iput-object p11, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
iput p12, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->concurrencyLevel:I
|
|
|
|
iput-object p13, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->removalListener:Lcom/google/common/cache/RemovalListener;
|
|
|
|
.line 4565
|
|
invoke-static {}, Lcom/google/common/base/Ticker;->systemTicker()Lcom/google/common/base/Ticker;
|
|
|
|
move-result-object p1
|
|
|
|
if-eq p14, p1, :cond_0
|
|
|
|
sget-object p1, Lcom/google/common/cache/CacheBuilder;->NULL_TICKER:Lcom/google/common/base/Ticker;
|
|
|
|
if-ne p14, p1, :cond_1
|
|
|
|
:cond_0
|
|
const/4 p14, 0x0
|
|
|
|
:cond_1
|
|
iput-object p14, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->ticker:Lcom/google/common/base/Ticker;
|
|
|
|
iput-object p15, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->loader:Lcom/google/common/cache/CacheLoader;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Lcom/google/common/cache/LocalCache;)V
|
|
.locals 16
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/common/cache/LocalCache<",
|
|
"TK;TV;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
.line 4527
|
|
iget-object v1, v0, Lcom/google/common/cache/LocalCache;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
iget-object v2, v0, Lcom/google/common/cache/LocalCache;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
iget-object v3, v0, Lcom/google/common/cache/LocalCache;->keyEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
iget-object v4, v0, Lcom/google/common/cache/LocalCache;->valueEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
iget-wide v5, v0, Lcom/google/common/cache/LocalCache;->expireAfterWriteNanos:J
|
|
|
|
iget-wide v7, v0, Lcom/google/common/cache/LocalCache;->expireAfterAccessNanos:J
|
|
|
|
iget-wide v9, v0, Lcom/google/common/cache/LocalCache;->maxWeight:J
|
|
|
|
iget-object v11, v0, Lcom/google/common/cache/LocalCache;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
iget v12, v0, Lcom/google/common/cache/LocalCache;->concurrencyLevel:I
|
|
|
|
iget-object v13, v0, Lcom/google/common/cache/LocalCache;->removalListener:Lcom/google/common/cache/RemovalListener;
|
|
|
|
iget-object v14, v0, Lcom/google/common/cache/LocalCache;->ticker:Lcom/google/common/base/Ticker;
|
|
|
|
iget-object v15, v0, Lcom/google/common/cache/LocalCache;->defaultLoader:Lcom/google/common/cache/CacheLoader;
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
invoke-direct/range {v0 .. v15}, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;-><init>(Lcom/google/common/cache/LocalCache$Strength;Lcom/google/common/cache/LocalCache$Strength;Lcom/google/common/base/Equivalence;Lcom/google/common/base/Equivalence;JJJLcom/google/common/cache/Weigher;ILcom/google/common/cache/RemovalListener;Lcom/google/common/base/Ticker;Lcom/google/common/cache/CacheLoader;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private readObject(Ljava/io/ObjectInputStream;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;,
|
|
Ljava/lang/ClassNotFoundException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 4602
|
|
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V
|
|
|
|
.line 4603
|
|
invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->recreateCacheBuilder()Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 4604
|
|
invoke-virtual {p1}, Lcom/google/common/cache/CacheBuilder;->build()Lcom/google/common/cache/Cache;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->delegate:Lcom/google/common/cache/Cache;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private readResolve()Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->delegate:Lcom/google/common/cache/Cache;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected delegate()Lcom/google/common/cache/Cache;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/cache/Cache<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->delegate:Lcom/google/common/cache/Cache;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method protected bridge synthetic delegate()Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 4507
|
|
invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->delegate()Lcom/google/common/cache/Cache;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method recreateCacheBuilder()Lcom/google/common/cache/CacheBuilder;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/cache/CacheBuilder<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 4571
|
|
invoke-static {}, Lcom/google/common/cache/CacheBuilder;->newBuilder()Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
.line 4572
|
|
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->setKeyStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->valueStrength:Lcom/google/common/cache/LocalCache$Strength;
|
|
|
|
.line 4573
|
|
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->setValueStrength(Lcom/google/common/cache/LocalCache$Strength;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->keyEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
.line 4574
|
|
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->keyEquivalence(Lcom/google/common/base/Equivalence;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->valueEquivalence:Lcom/google/common/base/Equivalence;
|
|
|
|
.line 4575
|
|
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->valueEquivalence(Lcom/google/common/base/Equivalence;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->concurrencyLevel:I
|
|
|
|
.line 4576
|
|
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->concurrencyLevel(I)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->removalListener:Lcom/google/common/cache/RemovalListener;
|
|
|
|
.line 4577
|
|
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->removalListener(Lcom/google/common/cache/RemovalListener;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 4578
|
|
iput-boolean v1, v0, Lcom/google/common/cache/CacheBuilder;->strictParsing:Z
|
|
|
|
iget-wide v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterWriteNanos:J
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-lez v5, :cond_0
|
|
|
|
.line 4580
|
|
sget-object v5, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v1, v2, v5}, Lcom/google/common/cache/CacheBuilder;->expireAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
:cond_0
|
|
iget-wide v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->expireAfterAccessNanos:J
|
|
|
|
cmp-long v3, v1, v3
|
|
|
|
if-lez v3, :cond_1
|
|
|
|
.line 4583
|
|
sget-object v3, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lcom/google/common/cache/CacheBuilder;->expireAfterAccess(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
.line 4585
|
|
sget-object v2, Lcom/google/common/cache/CacheBuilder$OneWeigher;->INSTANCE:Lcom/google/common/cache/CacheBuilder$OneWeigher;
|
|
|
|
const-wide/16 v3, -0x1
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
iget-object v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->weigher:Lcom/google/common/cache/Weigher;
|
|
|
|
.line 4586
|
|
invoke-virtual {v0, v1}, Lcom/google/common/cache/CacheBuilder;->weigher(Lcom/google/common/cache/Weigher;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->maxWeight:J
|
|
|
|
cmp-long v3, v1, v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 4588
|
|
invoke-virtual {v0, v1, v2}, Lcom/google/common/cache/CacheBuilder;->maximumWeight(J)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-wide v1, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->maxWeight:J
|
|
|
|
cmp-long v3, v1, v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 4592
|
|
invoke-virtual {v0, v1, v2}, Lcom/google/common/cache/CacheBuilder;->maximumSize(J)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
:cond_3
|
|
:goto_0
|
|
iget-object p0, p0, Lcom/google/common/cache/LocalCache$ManualSerializationProxy;->ticker:Lcom/google/common/base/Ticker;
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
.line 4596
|
|
invoke-virtual {v0, p0}, Lcom/google/common/cache/CacheBuilder;->ticker(Lcom/google/common/base/Ticker;)Lcom/google/common/cache/CacheBuilder;
|
|
|
|
:cond_4
|
|
return-object v0
|
|
.end method
|