280 lines
5 KiB
Smali
280 lines
5 KiB
Smali
.class public Le/j/i/d;
|
|
.super Ljava/lang/Object;
|
|
.source "ImageFormatChecker.java"
|
|
|
|
|
|
# static fields
|
|
.field public static d:Le/j/i/d;
|
|
|
|
|
|
# instance fields
|
|
.field public a:I
|
|
|
|
.field public b:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Le/j/i/c$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Le/j/i/c$a;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Le/j/i/a;
|
|
|
|
invoke-direct {v0}, Le/j/i/a;-><init>()V
|
|
|
|
iput-object v0, p0, Le/j/i/d;->c:Le/j/i/c$a;
|
|
|
|
invoke-virtual {p0}, Le/j/i/d;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/io/InputStream;)Le/j/i/c;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {}, Le/j/i/d;->b()Le/j/i/d;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
iget v1, v0, Le/j/i/d;->a:I
|
|
|
|
new-array v2, v1, [B
|
|
|
|
array-length v3, v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-lt v3, v1, :cond_0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v3}, Li/a/b/b/g/e;->a(Z)V
|
|
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->markSupported()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0, v1}, Ljava/io/InputStream;->mark(I)V
|
|
|
|
invoke-static {p0, v2, v4, v1}, Li/a/b/b/g/e;->a(Ljava/io/InputStream;[BII)I
|
|
|
|
move-result v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->reset()V
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
invoke-virtual {p0}, Ljava/io/InputStream;->reset()V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
invoke-static {p0, v2, v4, v1}, Li/a/b/b/g/e;->a(Ljava/io/InputStream;[BII)I
|
|
|
|
move-result v1
|
|
|
|
:goto_1
|
|
iget-object p0, v0, Le/j/i/d;->c:Le/j/i/c$a;
|
|
|
|
check-cast p0, Le/j/i/a;
|
|
|
|
invoke-virtual {p0, v2, v1}, Le/j/i/a;->a([BI)Le/j/i/c;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
sget-object v3, Le/j/i/c;->b:Le/j/i/c;
|
|
|
|
if-eq p0, v3, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object p0, v0, Le/j/i/d;->b:Ljava/util/List;
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_3
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Le/j/i/a;
|
|
|
|
invoke-virtual {v0, v2, v1}, Le/j/i/a;->a([BI)Le/j/i/c;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
sget-object v3, Le/j/i/c;->b:Le/j/i/c;
|
|
|
|
if-eq v0, v3, :cond_3
|
|
|
|
move-object p0, v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
sget-object p0, Le/j/i/c;->b:Le/j/i/c;
|
|
|
|
:goto_2
|
|
return-object p0
|
|
|
|
:cond_5
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static b(Ljava/io/InputStream;)Le/j/i/c;
|
|
.locals 0
|
|
|
|
:try_start_0
|
|
invoke-static {p0}, Le/j/i/d;->a(Ljava/io/InputStream;)Le/j/i/c;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {p0}, Li/a/b/b/g/e;->b(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static declared-synchronized b()Le/j/i/d;
|
|
.locals 2
|
|
|
|
const-class v0, Le/j/i/d;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Le/j/i/d;->d:Le/j/i/d;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Le/j/i/d;
|
|
|
|
invoke-direct {v1}, Le/j/i/d;-><init>()V
|
|
|
|
sput-object v1, Le/j/i/d;->d:Le/j/i/d;
|
|
|
|
:cond_0
|
|
sget-object v1, Le/j/i/d;->d:Le/j/i/d;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Le/j/i/d;->c:Le/j/i/c$a;
|
|
|
|
check-cast v0, Le/j/i/a;
|
|
|
|
iget v0, v0, Le/j/i/a;->a:I
|
|
|
|
iput v0, p0, Le/j/i/d;->a:I
|
|
|
|
iget-object v0, p0, Le/j/i/d;->b:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
iget v2, p0, Le/j/i/d;->a:I
|
|
|
|
check-cast v1, Le/j/i/a;
|
|
|
|
iget v1, v1, Le/j/i/a;->a:I
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Le/j/i/d;->a:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|