575 lines
18 KiB
Smali
575 lines
18 KiB
Smali
.class public Lcom/facebook/imagepipeline/cache/e;
|
|
.super Ljava/lang/Object;
|
|
.source "BufferedDiskCache.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final Dx:Ljava/lang/Class;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Class<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final OT:Lcom/facebook/common/g/g;
|
|
|
|
.field private final Pi:Lcom/facebook/cache/disk/h;
|
|
|
|
.field private final Pj:Lcom/facebook/common/g/j;
|
|
|
|
.field private final Pk:Ljava/util/concurrent/Executor;
|
|
|
|
.field private final Pl:Ljava/util/concurrent/Executor;
|
|
|
|
.field private final Pm:Lcom/facebook/imagepipeline/cache/s;
|
|
|
|
.field private final Pn:Lcom/facebook/imagepipeline/cache/m;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-class v0, Lcom/facebook/imagepipeline/cache/e;
|
|
|
|
sput-object v0, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/facebook/cache/disk/h;Lcom/facebook/common/g/g;Lcom/facebook/common/g/j;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lcom/facebook/imagepipeline/cache/m;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/facebook/imagepipeline/cache/e;->Pi:Lcom/facebook/cache/disk/h;
|
|
|
|
iput-object p2, p0, Lcom/facebook/imagepipeline/cache/e;->OT:Lcom/facebook/common/g/g;
|
|
|
|
iput-object p3, p0, Lcom/facebook/imagepipeline/cache/e;->Pj:Lcom/facebook/common/g/j;
|
|
|
|
iput-object p4, p0, Lcom/facebook/imagepipeline/cache/e;->Pk:Ljava/util/concurrent/Executor;
|
|
|
|
iput-object p5, p0, Lcom/facebook/imagepipeline/cache/e;->Pl:Ljava/util/concurrent/Executor;
|
|
|
|
iput-object p6, p0, Lcom/facebook/imagepipeline/cache/e;->Pn:Lcom/facebook/imagepipeline/cache/m;
|
|
|
|
invoke-static {}, Lcom/facebook/imagepipeline/cache/s;->hz()Lcom/facebook/imagepipeline/cache/s;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/facebook/imagepipeline/cache/e;->Pm:Lcom/facebook/imagepipeline/cache/s;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/facebook/imagepipeline/cache/e;Lcom/facebook/cache/common/CacheKey;)Lcom/facebook/common/g/f;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/imagepipeline/cache/e;->g(Lcom/facebook/cache/common/CacheKey;)Lcom/facebook/common/g/f;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/facebook/imagepipeline/cache/e;)Lcom/facebook/imagepipeline/cache/s;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/facebook/imagepipeline/cache/e;->Pm:Lcom/facebook/imagepipeline/cache/s;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/facebook/imagepipeline/cache/e;Lcom/facebook/cache/common/CacheKey;Lcom/facebook/imagepipeline/f/e;)V
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "About to write to disk-cache for key %s"
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/e;->Pi:Lcom/facebook/cache/disk/h;
|
|
|
|
new-instance v1, Lcom/facebook/imagepipeline/cache/e$4;
|
|
|
|
invoke-direct {v1, p0, p2}, Lcom/facebook/imagepipeline/cache/e$4;-><init>(Lcom/facebook/imagepipeline/cache/e;Lcom/facebook/imagepipeline/f/e;)V
|
|
|
|
invoke-interface {v0, p1, v1}, Lcom/facebook/cache/disk/h;->a(Lcom/facebook/cache/common/CacheKey;Lcom/facebook/cache/common/h;)Lcom/facebook/a/a;
|
|
|
|
sget-object p0, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const-string p2, "Successful disk-cache write for key %s"
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p0, p2, v0}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
sget-object p2, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v0, v1
|
|
|
|
const-string p1, "Failed to write to disk-cache for key %s"
|
|
|
|
invoke-static {p2, p0, p1, v0}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(Lcom/facebook/cache/common/CacheKey;Ljava/util/concurrent/atomic/AtomicBoolean;)La/h;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/cache/common/CacheKey;",
|
|
"Ljava/util/concurrent/atomic/AtomicBoolean;",
|
|
")",
|
|
"La/h<",
|
|
"Lcom/facebook/imagepipeline/f/e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
new-instance v0, Lcom/facebook/imagepipeline/cache/e$1;
|
|
|
|
invoke-direct {v0, p0, p2, p1}, Lcom/facebook/imagepipeline/cache/e$1;-><init>(Lcom/facebook/imagepipeline/cache/e;Ljava/util/concurrent/atomic/AtomicBoolean;Lcom/facebook/cache/common/CacheKey;)V
|
|
|
|
iget-object p2, p0, Lcom/facebook/imagepipeline/cache/e;->Pk:Ljava/util/concurrent/Executor;
|
|
|
|
invoke-static {v0, p2}, La/h;->a(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Executor;)La/h;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
sget-object v0, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
const-string p1, "Failed to schedule disk-cache read for %s"
|
|
|
|
invoke-static {v0, p2, p1, v1}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
invoke-static {p2}, La/h;->a(Ljava/lang/Exception;)La/h;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/facebook/imagepipeline/cache/e;)Lcom/facebook/imagepipeline/cache/m;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/facebook/imagepipeline/cache/e;->Pn:Lcom/facebook/imagepipeline/cache/m;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/facebook/imagepipeline/cache/e;)Lcom/facebook/cache/disk/h;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/facebook/imagepipeline/cache/e;->Pi:Lcom/facebook/cache/disk/h;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/facebook/imagepipeline/cache/e;)Lcom/facebook/common/g/j;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/facebook/imagepipeline/cache/e;->Pj:Lcom/facebook/common/g/j;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic fq()Ljava/lang/Class;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private g(Lcom/facebook/cache/common/CacheKey;)Lcom/facebook/common/g/f;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
sget-object v0, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const-string v1, "Disk cache read for %s"
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/e;->Pi:Lcom/facebook/cache/disk/h;
|
|
|
|
invoke-interface {v0, p1}, Lcom/facebook/cache/disk/h;->d(Lcom/facebook/cache/common/CacheKey;)Lcom/facebook/a/a;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
sget-object v0, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const-string v1, "Disk cache miss for %s"
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
sget-object v1, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const-string v2, "Found entry in disk cache for %s"
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v1, v2, v3}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
invoke-interface {v0}, Lcom/facebook/a/a;->openStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v1
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:try_start_1
|
|
iget-object v2, p0, Lcom/facebook/imagepipeline/cache/e;->OT:Lcom/facebook/common/g/g;
|
|
|
|
invoke-interface {v0}, Lcom/facebook/a/a;->size()J
|
|
|
|
move-result-wide v3
|
|
|
|
long-to-int v0, v3
|
|
|
|
invoke-interface {v2, v1, v0}, Lcom/facebook/common/g/g;->b(Ljava/io/InputStream;I)Lcom/facebook/common/g/f;
|
|
|
|
move-result-object v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:try_start_2
|
|
invoke-virtual {v1}, Ljava/io/InputStream;->close()V
|
|
|
|
sget-object v1, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const-string v2, "Successful read from disk cache for %s"
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v1, v2, v3}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
invoke-virtual {v1}, Ljava/io/InputStream;->close()V
|
|
|
|
throw v0
|
|
:try_end_2
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
sget-object v1, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v2, v3
|
|
|
|
const-string p1, "Exception reading from cache for %s"
|
|
|
|
invoke-static {v1, v0, p1, v2}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/facebook/cache/common/CacheKey;Ljava/util/concurrent/atomic/AtomicBoolean;)La/h;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/cache/common/CacheKey;",
|
|
"Ljava/util/concurrent/atomic/AtomicBoolean;",
|
|
")",
|
|
"La/h<",
|
|
"Lcom/facebook/imagepipeline/f/e;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/e;->Pm:Lcom/facebook/imagepipeline/cache/s;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/facebook/imagepipeline/cache/s;->i(Lcom/facebook/cache/common/CacheKey;)Lcom/facebook/imagepipeline/f/e;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object p2, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const-string v1, "Found image for %s in staging area"
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p2, v1, p1}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
invoke-static {v0}, La/h;->i(Ljava/lang/Object;)La/h;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
:try_start_1
|
|
invoke-direct {p0, p1, p2}, Lcom/facebook/imagepipeline/cache/e;->b(Lcom/facebook/cache/common/CacheKey;Ljava/util/concurrent/atomic/AtomicBoolean;)La/h;
|
|
|
|
move-result-object p1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Lcom/facebook/cache/common/CacheKey;Lcom/facebook/imagepipeline/f/e;)V
|
|
.locals 7
|
|
|
|
:try_start_0
|
|
invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z
|
|
|
|
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-static {p2}, Lcom/facebook/imagepipeline/f/e;->f(Lcom/facebook/imagepipeline/f/e;)Z
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Lcom/facebook/common/d/i;->checkArgument(Z)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/e;->Pm:Lcom/facebook/imagepipeline/cache/s;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/facebook/imagepipeline/cache/s;->a(Lcom/facebook/cache/common/CacheKey;Lcom/facebook/imagepipeline/f/e;)V
|
|
|
|
invoke-static {p2}, Lcom/facebook/imagepipeline/f/e;->b(Lcom/facebook/imagepipeline/f/e;)Lcom/facebook/imagepipeline/f/e;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:try_start_1
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/e;->Pl:Ljava/util/concurrent/Executor;
|
|
|
|
new-instance v2, Lcom/facebook/imagepipeline/cache/e$2;
|
|
|
|
invoke-direct {v2, p0, p1, v0}, Lcom/facebook/imagepipeline/cache/e$2;-><init>(Lcom/facebook/imagepipeline/cache/e;Lcom/facebook/cache/common/CacheKey;Lcom/facebook/imagepipeline/f/e;)V
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
:try_start_2
|
|
sget-object v2, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const-string v3, "Failed to schedule disk-cache write for %s"
|
|
|
|
const/4 v4, 0x1
|
|
|
|
new-array v4, v4, [Ljava/lang/Object;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
aput-object v6, v4, v5
|
|
|
|
invoke-static {v2, v1, v3, v4}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/e;->Pm:Lcom/facebook/imagepipeline/cache/s;
|
|
|
|
invoke-virtual {v1, p1, p2}, Lcom/facebook/imagepipeline/cache/s;->b(Lcom/facebook/cache/common/CacheKey;Lcom/facebook/imagepipeline/f/e;)Z
|
|
|
|
invoke-static {v0}, Lcom/facebook/imagepipeline/f/e;->e(Lcom/facebook/imagepipeline/f/e;)V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
:goto_0
|
|
invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final f(Lcom/facebook/cache/common/CacheKey;)La/h;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/cache/common/CacheKey;",
|
|
")",
|
|
"La/h<",
|
|
"Ljava/lang/Void;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/e;->Pm:Lcom/facebook/imagepipeline/cache/s;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/facebook/imagepipeline/cache/s;->h(Lcom/facebook/cache/common/CacheKey;)Z
|
|
|
|
:try_start_0
|
|
new-instance v0, Lcom/facebook/imagepipeline/cache/e$3;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/facebook/imagepipeline/cache/e$3;-><init>(Lcom/facebook/imagepipeline/cache/e;Lcom/facebook/cache/common/CacheKey;)V
|
|
|
|
iget-object v1, p0, Lcom/facebook/imagepipeline/cache/e;->Pl:Ljava/util/concurrent/Executor;
|
|
|
|
invoke-static {v0, v1}, La/h;->a(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Executor;)La/h;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
sget-object v1, Lcom/facebook/imagepipeline/cache/e;->Dx:Ljava/lang/Class;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-interface {p1}, Lcom/facebook/cache/common/CacheKey;->getUriString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v2, v3
|
|
|
|
const-string p1, "Failed to schedule disk-cache remove for %s"
|
|
|
|
invoke-static {v1, v0, p1, v2}, Lcom/facebook/common/e/a;->a(Ljava/lang/Class;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
invoke-static {v0}, La/h;->a(Ljava/lang/Exception;)La/h;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|