e.smali
.class public Lcom/bumptech/glide/load/engine/b/e;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/bumptech/glide/load/engine/b/a;
# static fields
.field private static a:Lcom/bumptech/glide/load/engine/b/e;
# instance fields
.field private final b:Lcom/bumptech/glide/load/engine/b/c;
.field private final c:Lcom/bumptech/glide/load/engine/b/j;
.field private final d:Ljava/io/File;
.field private final e:I
.field private f:Lcom/bumptech/glide/a/a;
# direct methods
.method static constructor <clinit>()V
.registers 1
const/4 v0, 0x0
sput-object v0, Lcom/bumptech/glide/load/engine/b/e;->a:Lcom/bumptech/glide/load/engine/b/e;
return-void
.end method
.method protected constructor <init>(Ljava/io/File;I)V
.registers 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lcom/bumptech/glide/load/engine/b/c;
invoke-direct {v0}, Lcom/bumptech/glide/load/engine/b/c;-><init>()V
iput-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->b:Lcom/bumptech/glide/load/engine/b/c;
iput-object p1, p0, Lcom/bumptech/glide/load/engine/b/e;->d:Ljava/io/File;
iput p2, p0, Lcom/bumptech/glide/load/engine/b/e;->e:I
new-instance v0, Lcom/bumptech/glide/load/engine/b/j;
invoke-direct {v0}, Lcom/bumptech/glide/load/engine/b/j;-><init>()V
iput-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->c:Lcom/bumptech/glide/load/engine/b/j;
return-void
.end method
.method private declared-synchronized a()Lcom/bumptech/glide/a/a;
.registers 7
monitor-enter p0
:try_start_1
iget-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->f:Lcom/bumptech/glide/a/a;
if-nez v0, :cond_12
iget-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->d:Ljava/io/File;
const/4 v1, 0x1
const/4 v2, 0x1
iget v3, p0, Lcom/bumptech/glide/load/engine/b/e;->e:I
int-to-long v4, v3
invoke-static {v0, v1, v2, v4, v5}, Lcom/bumptech/glide/a/a;->a(Ljava/io/File;IIJ)Lcom/bumptech/glide/a/a;
move-result-object v0
iput-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->f:Lcom/bumptech/glide/a/a;
:cond_12
iget-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->f:Lcom/bumptech/glide/a/a;
:try_end_14
.catchall {:try_start_1 .. :try_end_14} :catchall_16
monitor-exit p0
return-object v0
:catchall_16
move-exception v0
monitor-exit p0
throw v0
.end method
.method public static declared-synchronized a(Ljava/io/File;I)Lcom/bumptech/glide/load/engine/b/a;
.registers 4
const-class v1, Lcom/bumptech/glide/load/engine/b/e;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/bumptech/glide/load/engine/b/e;->a:Lcom/bumptech/glide/load/engine/b/e;
if-nez v0, :cond_e
new-instance v0, Lcom/bumptech/glide/load/engine/b/e;
invoke-direct {v0, p0, p1}, Lcom/bumptech/glide/load/engine/b/e;-><init>(Ljava/io/File;I)V
sput-object v0, Lcom/bumptech/glide/load/engine/b/e;->a:Lcom/bumptech/glide/load/engine/b/e;
:cond_e
sget-object v0, Lcom/bumptech/glide/load/engine/b/e;->a:Lcom/bumptech/glide/load/engine/b/e;
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_12
monitor-exit v1
return-object v0
:catchall_12
move-exception v0
monitor-exit v1
throw v0
.end method
# virtual methods
.method public a(Lcom/bumptech/glide/load/b;)Ljava/io/File;
.registers 6
iget-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->c:Lcom/bumptech/glide/load/engine/b/j;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/engine/b/j;->a(Lcom/bumptech/glide/load/b;)Ljava/lang/String;
move-result-object v1
const/4 v0, 0x0
:try_start_7
invoke-direct {p0}, Lcom/bumptech/glide/load/engine/b/e;->a()Lcom/bumptech/glide/a/a;
move-result-object v2
invoke-virtual {v2, v1}, Lcom/bumptech/glide/a/a;->a(Ljava/lang/String;)Lcom/bumptech/glide/a/a$c;
move-result-object v1
if-eqz v1, :cond_16
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lcom/bumptech/glide/a/a$c;->a(I)Ljava/io/File;
:try_end_15
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_15} :catch_17
move-result-object v0
:cond_16
:goto_16
return-object v0
:catch_17
move-exception v1
const-string/jumbo v2, "DiskLruCacheWrapper"
const/4 v3, 0x5
invoke-static {v2, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v2
if-eqz v2, :cond_16
const-string/jumbo v2, "DiskLruCacheWrapper"
const-string/jumbo v3, "Unable to get from disk cache"
invoke-static {v2, v3, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_16
.end method
.method public a(Lcom/bumptech/glide/load/b;Lcom/bumptech/glide/load/engine/b/a$b;)V
.registers 6
iget-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->c:Lcom/bumptech/glide/load/engine/b/j;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/engine/b/j;->a(Lcom/bumptech/glide/load/b;)Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Lcom/bumptech/glide/load/engine/b/e;->b:Lcom/bumptech/glide/load/engine/b/c;
invoke-virtual {v1, p1}, Lcom/bumptech/glide/load/engine/b/c;->a(Lcom/bumptech/glide/load/b;)V
:try_start_b
invoke-direct {p0}, Lcom/bumptech/glide/load/engine/b/e;->a()Lcom/bumptech/glide/a/a;
move-result-object v1
invoke-virtual {v1, v0}, Lcom/bumptech/glide/a/a;->b(Ljava/lang/String;)Lcom/bumptech/glide/a/a$a;
:try_end_12
.catch Ljava/io/IOException; {:try_start_b .. :try_end_12} :catch_31
.catchall {:try_start_b .. :try_end_12} :catchall_4b
move-result-object v1
if-eqz v1, :cond_26
const/4 v0, 0x0
:try_start_16
invoke-virtual {v1, v0}, Lcom/bumptech/glide/a/a$a;->a(I)Ljava/io/File;
move-result-object v0
invoke-interface {p2, v0}, Lcom/bumptech/glide/load/engine/b/a$b;->a(Ljava/io/File;)Z
move-result v0
if-eqz v0, :cond_23
invoke-virtual {v1}, Lcom/bumptech/glide/a/a$a;->a()V
:try_end_23
.catchall {:try_start_16 .. :try_end_23} :catchall_2c
:cond_23
:try_start_23
invoke-virtual {v1}, Lcom/bumptech/glide/a/a$a;->c()V
:try_end_26
.catch Ljava/io/IOException; {:try_start_23 .. :try_end_26} :catch_31
.catchall {:try_start_23 .. :try_end_26} :catchall_4b
:cond_26
iget-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->b:Lcom/bumptech/glide/load/engine/b/c;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/engine/b/c;->b(Lcom/bumptech/glide/load/b;)V
:goto_2b
return-void
:catchall_2c
move-exception v0
:try_start_2d
invoke-virtual {v1}, Lcom/bumptech/glide/a/a$a;->c()V
throw v0
:try_end_31
.catch Ljava/io/IOException; {:try_start_2d .. :try_end_31} :catch_31
.catchall {:try_start_2d .. :try_end_31} :catchall_4b
:catch_31
move-exception v0
:try_start_32
const-string/jumbo v1, "DiskLruCacheWrapper"
const/4 v2, 0x5
invoke-static {v1, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_45
const-string/jumbo v1, "DiskLruCacheWrapper"
const-string/jumbo v2, "Unable to put to disk cache"
invoke-static {v1, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:try_end_45
.catchall {:try_start_32 .. :try_end_45} :catchall_4b
:cond_45
iget-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->b:Lcom/bumptech/glide/load/engine/b/c;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/engine/b/c;->b(Lcom/bumptech/glide/load/b;)V
goto :goto_2b
:catchall_4b
move-exception v0
iget-object v1, p0, Lcom/bumptech/glide/load/engine/b/e;->b:Lcom/bumptech/glide/load/engine/b/c;
invoke-virtual {v1, p1}, Lcom/bumptech/glide/load/engine/b/c;->b(Lcom/bumptech/glide/load/b;)V
throw v0
.end method
.method public b(Lcom/bumptech/glide/load/b;)V
.registers 5
iget-object v0, p0, Lcom/bumptech/glide/load/engine/b/e;->c:Lcom/bumptech/glide/load/engine/b/j;
invoke-virtual {v0, p1}, Lcom/bumptech/glide/load/engine/b/j;->a(Lcom/bumptech/glide/load/b;)Ljava/lang/String;
move-result-object v0
:try_start_6
invoke-direct {p0}, Lcom/bumptech/glide/load/engine/b/e;->a()Lcom/bumptech/glide/a/a;
move-result-object v1
invoke-virtual {v1, v0}, Lcom/bumptech/glide/a/a;->c(Ljava/lang/String;)Z
:try_end_d
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_d} :catch_e
:cond_d
:goto_d
return-void
:catch_e
move-exception v0
const-string/jumbo v1, "DiskLruCacheWrapper"
const/4 v2, 0x5
invoke-static {v1, v2}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_d
const-string/jumbo v1, "DiskLruCacheWrapper"
const-string/jumbo v2, "Unable to delete from disk cache"
invoke-static {v1, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_d
.end method