252 lines
5.2 KiB
Smali
252 lines
5.2 KiB
Smali
.class public Lf/g/j/t/e;
|
|
.super Ljava/lang/Object;
|
|
.source "MultiImageTranscoderFactory.java"
|
|
|
|
# interfaces
|
|
.implements Lf/g/j/t/c;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:I
|
|
|
|
.field public final b:Z
|
|
|
|
.field public final c:Lf/g/j/t/c;
|
|
|
|
.field public final d:Ljava/lang/Integer;
|
|
|
|
.field public final e:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(IZLf/g/j/t/c;Ljava/lang/Integer;Z)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput p1, p0, Lf/g/j/t/e;->a:I
|
|
|
|
iput-boolean p2, p0, Lf/g/j/t/e;->b:Z
|
|
|
|
iput-object p3, p0, Lf/g/j/t/e;->c:Lf/g/j/t/c;
|
|
|
|
iput-object p4, p0, Lf/g/j/t/e;->d:Ljava/lang/Integer;
|
|
|
|
iput-boolean p5, p0, Lf/g/j/t/e;->e:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lf/g/i/c;Z)Lf/g/j/t/b;
|
|
.locals 10
|
|
|
|
iget v0, p0, Lf/g/j/t/e;->a:I
|
|
|
|
iget-boolean v1, p0, Lf/g/j/t/e;->b:Z
|
|
|
|
iget-boolean v2, p0, Lf/g/j/t/e;->e:Z
|
|
|
|
:try_start_0
|
|
const-string v3, "com.facebook.imagepipeline.nativecode.NativeJpegTranscoderFactory"
|
|
|
|
invoke-static {v3}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
new-array v5, v4, [Ljava/lang/Class;
|
|
|
|
sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
const/4 v7, 0x0
|
|
|
|
aput-object v6, v5, v7
|
|
|
|
sget-object v6, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
const/4 v8, 0x1
|
|
|
|
aput-object v6, v5, v8
|
|
|
|
sget-object v6, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
const/4 v9, 0x2
|
|
|
|
aput-object v6, v5, v9
|
|
|
|
invoke-virtual {v3, v5}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
move-result-object v3
|
|
|
|
new-array v4, v4, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v4, v7
|
|
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v4, v8
|
|
|
|
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v4, v9
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/g/j/t/c;
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_6
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_5
|
|
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_4
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_3
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
invoke-interface {v0, p1, p2}, Lf/g/j/t/c;->createImageTranscoder(Lf/g/i/c;Z)Lf/g/j/t/b;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_3
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_4
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_5
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_6
|
|
move-exception p1
|
|
|
|
:goto_0
|
|
new-instance p2, Ljava/lang/RuntimeException;
|
|
|
|
const-string v0, "Dependency \':native-imagetranscoder\' is needed to use the default native image transcoder."
|
|
|
|
invoke-direct {p2, v0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public createImageTranscoder(Lf/g/i/c;Z)Lf/g/j/t/b;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lf/g/j/t/e;->c:Lf/g/j/t/c;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
move-object v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-interface {v0, p1, p2}, Lf/g/j/t/c;->createImageTranscoder(Lf/g/i/c;Z)Lf/g/j/t/b;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_4
|
|
|
|
iget-object v0, p0, Lf/g/j/t/e;->d:Ljava/lang/Integer;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
iget v0, p0, Lf/g/j/t/e;->a:I
|
|
|
|
new-instance v1, Lf/g/j/t/f;
|
|
|
|
invoke-direct {v1, p2, v0}, Lf/g/j/t/f;-><init>(ZI)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Invalid ImageTranscoderType"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
invoke-virtual {p0, p1, p2}, Lf/g/j/t/e;->a(Lf/g/i/c;Z)Lf/g/j/t/b;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_1
|
|
move-object v0, v1
|
|
|
|
:cond_4
|
|
if-nez v0, :cond_5
|
|
|
|
sget-boolean v1, Lf/g/j/e/n;->a:Z
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-virtual {p0, p1, p2}, Lf/g/j/t/e;->a(Lf/g/i/c;Z)Lf/g/j/t/b;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_5
|
|
if-nez v0, :cond_6
|
|
|
|
iget p1, p0, Lf/g/j/t/e;->a:I
|
|
|
|
new-instance v0, Lf/g/j/t/f;
|
|
|
|
invoke-direct {v0, p2, p1}, Lf/g/j/t/f;-><init>(ZI)V
|
|
|
|
:cond_6
|
|
return-object v0
|
|
.end method
|