183 lines
3.7 KiB
Smali
183 lines
3.7 KiB
Smali
.class public final Lcom/facebook/cache/disk/i;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# static fields
|
|
.field private static final Ck:Ljava/lang/Object;
|
|
|
|
.field private static Cl:Lcom/facebook/cache/disk/i;
|
|
|
|
.field private static Cm:I
|
|
|
|
|
|
# instance fields
|
|
.field BA:Ljava/lang/String;
|
|
|
|
.field Cn:Lcom/facebook/cache/common/CacheKey;
|
|
|
|
.field Co:J
|
|
|
|
.field Cp:J
|
|
|
|
.field Cq:J
|
|
|
|
.field Cr:Ljava/io/IOException;
|
|
|
|
.field Cs:I
|
|
|
|
.field private Ct:Lcom/facebook/cache/disk/i;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sput-object v0, Lcom/facebook/cache/disk/i;->Ck:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static fc()Lcom/facebook/cache/disk/i;
|
|
.locals 3
|
|
.annotation build Lcom/facebook/infer/annotation/ReturnsOwnership;
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/facebook/cache/disk/i;->Ck:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/facebook/cache/disk/i;->Cl:Lcom/facebook/cache/disk/i;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
sget-object v1, Lcom/facebook/cache/disk/i;->Cl:Lcom/facebook/cache/disk/i;
|
|
|
|
iget-object v2, v1, Lcom/facebook/cache/disk/i;->Ct:Lcom/facebook/cache/disk/i;
|
|
|
|
sput-object v2, Lcom/facebook/cache/disk/i;->Cl:Lcom/facebook/cache/disk/i;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iput-object v2, v1, Lcom/facebook/cache/disk/i;->Ct:Lcom/facebook/cache/disk/i;
|
|
|
|
sget v2, Lcom/facebook/cache/disk/i;->Cm:I
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
sput v2, Lcom/facebook/cache/disk/i;->Cm:I
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
new-instance v0, Lcom/facebook/cache/disk/i;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/cache/disk/i;-><init>()V
|
|
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method private reset()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/facebook/cache/disk/i;->Cn:Lcom/facebook/cache/common/CacheKey;
|
|
|
|
iput-object v0, p0, Lcom/facebook/cache/disk/i;->BA:Ljava/lang/String;
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
iput-wide v1, p0, Lcom/facebook/cache/disk/i;->Co:J
|
|
|
|
iput-wide v1, p0, Lcom/facebook/cache/disk/i;->Cp:J
|
|
|
|
iput-wide v1, p0, Lcom/facebook/cache/disk/i;->Cq:J
|
|
|
|
iput-object v0, p0, Lcom/facebook/cache/disk/i;->Cr:Ljava/io/IOException;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/facebook/cache/disk/i;->Cs:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final recycle()V
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/facebook/cache/disk/i;->Ck:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget v1, Lcom/facebook/cache/disk/i;->Cm:I
|
|
|
|
const/4 v2, 0x5
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
invoke-direct {p0}, Lcom/facebook/cache/disk/i;->reset()V
|
|
|
|
sget v1, Lcom/facebook/cache/disk/i;->Cm:I
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
sput v1, Lcom/facebook/cache/disk/i;->Cm:I
|
|
|
|
sget-object v1, Lcom/facebook/cache/disk/i;->Cl:Lcom/facebook/cache/disk/i;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
sget-object v1, Lcom/facebook/cache/disk/i;->Cl:Lcom/facebook/cache/disk/i;
|
|
|
|
iput-object v1, p0, Lcom/facebook/cache/disk/i;->Ct:Lcom/facebook/cache/disk/i;
|
|
|
|
:cond_0
|
|
sput-object p0, Lcom/facebook/cache/disk/i;->Cl:Lcom/facebook/cache/disk/i;
|
|
|
|
:cond_1
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|