apkfuckery/com.discord/smali_classes2/com/facebook/imagepipeline/h/ab.smali

146 lines
3.8 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/facebook/imagepipeline/h/ab;
.super Lcom/facebook/imagepipeline/h/z;
.source "LocalResourceFetchProducer.java"
# instance fields
.field private final mResources:Landroid/content/res/Resources;
# direct methods
.method public constructor <init>(Ljava/util/concurrent/Executor;Lcom/facebook/common/g/g;Landroid/content/res/Resources;)V
.locals 0
invoke-direct {p0, p1, p2}, Lcom/facebook/imagepipeline/h/z;-><init>(Ljava/util/concurrent/Executor;Lcom/facebook/common/g/g;)V
iput-object p3, p0, Lcom/facebook/imagepipeline/h/ab;->mResources:Landroid/content/res/Resources;
return-void
.end method
2019-10-01 14:15:45 +00:00
.method private d(Lcom/facebook/imagepipeline/request/b;)I
2019-07-24 11:27:29 +00:00
.locals 3
const/4 v0, 0x0
:try_start_0
iget-object v1, p0, Lcom/facebook/imagepipeline/h/ab;->mResources:Landroid/content/res/Resources;
2019-10-01 14:15:45 +00:00
invoke-static {p1}, Lcom/facebook/imagepipeline/h/ab;->f(Lcom/facebook/imagepipeline/request/b;)I
2019-07-24 11:27:29 +00:00
move-result p1
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->openRawResourceFd(I)Landroid/content/res/AssetFileDescriptor;
move-result-object v0
invoke-virtual {v0}, Landroid/content/res/AssetFileDescriptor;->getLength()J
move-result-wide v1
:try_end_0
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_2
.catchall {:try_start_0 .. :try_end_0} :catchall_0
long-to-int p1, v1
if-eqz v0, :cond_0
:try_start_1
invoke-virtual {v0}, 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
return p1
:catchall_0
move-exception p1
if-eqz v0, :cond_1
:try_start_2
invoke-virtual {v0}, Landroid/content/res/AssetFileDescriptor;->close()V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
:catch_1
:cond_1
throw p1
:catch_2
if-eqz v0, :cond_2
:try_start_3
invoke-virtual {v0}, Landroid/content/res/AssetFileDescriptor;->close()V
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_3
:catch_3
:cond_2
const/4 p1, -0x1
return p1
.end method
2019-10-01 14:15:45 +00:00
.method private static f(Lcom/facebook/imagepipeline/request/b;)I
2019-07-24 11:27:29 +00:00
.locals 1
2019-10-04 20:11:59 +00:00
iget-object p0, p0, Lcom/facebook/imagepipeline/request/b;->abc:Landroid/net/Uri;
2019-07-24 11:27:29 +00:00
invoke-virtual {p0}, Landroid/net/Uri;->getPath()Ljava/lang/String;
move-result-object p0
const/4 v0, 0x1
invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result p0
return p0
.end method
# virtual methods
2019-10-01 14:15:45 +00:00
.method protected final c(Lcom/facebook/imagepipeline/request/b;)Lcom/facebook/imagepipeline/f/e;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/facebook/imagepipeline/h/ab;->mResources:Landroid/content/res/Resources;
2019-10-01 14:15:45 +00:00
invoke-static {p1}, Lcom/facebook/imagepipeline/h/ab;->f(Lcom/facebook/imagepipeline/request/b;)I
2019-07-24 11:27:29 +00:00
move-result v1
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->openRawResource(I)Ljava/io/InputStream;
move-result-object v0
2019-10-01 14:15:45 +00:00
invoke-direct {p0, p1}, Lcom/facebook/imagepipeline/h/ab;->d(Lcom/facebook/imagepipeline/request/b;)I
2019-07-24 11:27:29 +00:00
move-result p1
invoke-virtual {p0, v0, p1}, Lcom/facebook/imagepipeline/h/ab;->e(Ljava/io/InputStream;I)Lcom/facebook/imagepipeline/f/e;
move-result-object p1
return-object p1
.end method
2019-10-04 22:25:14 +00:00
.method protected final jJ()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
.locals 1
const-string v0, "LocalResourceFetchProducer"
return-object v0
.end method