2020-09-16 23:45:23 +00:00
|
|
|
.class public Lf/g/j/q/d0;
|
|
|
|
.super Lf/g/j/q/g0;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "LocalAssetFetchProducer.java"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final c:Landroid/content/res/AssetManager;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public constructor <init>(Ljava/util/concurrent/Executor;Lf/g/d/g/g;Landroid/content/res/AssetManager;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {p0, p1, p2}, Lf/g/j/q/g0;-><init>(Ljava/util/concurrent/Executor;Lf/g/d/g/g;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
iput-object p3, p0, Lf/g/j/q/d0;->c:Landroid/content/res/AssetManager;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-09-16 23:45:23 +00:00
|
|
|
.method public d(Lcom/facebook/imagepipeline/request/ImageRequest;)Lf/g/j/j/e;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
iget-object v0, p0, Lf/g/j/q/d0;->c:Landroid/content/res/AssetManager;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v1, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/net/Uri;->getPath()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v3}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;I)Ljava/io/InputStream;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-09-16 23:45:23 +00:00
|
|
|
iget-object v3, p0, Lf/g/j/q/d0;->c:Landroid/content/res/AssetManager;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/net/Uri;->getPath()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v3, p1}, Landroid/content/res/AssetManager;->openFd(Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/AssetFileDescriptor;->getLength()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
long-to-int p1, v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/AssetFileDescriptor;->close()V
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
:cond_0
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
const/4 p1, -0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
:try_start_2
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/AssetFileDescriptor;->close()V
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
:cond_1
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-virtual {p0, v0, p1}, Lf/g/j/q/g0;->c(Ljava/io/InputStream;I)Lf/g/j/j/e;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public e()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "LocalAssetFetchProducer"
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|