cs.smali
.class public final Lcom/baidu/mobstat/cs;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method static synthetic a(Ljava/security/MessageDigest;Ljava/io/File;)Ljava/lang/String;
.registers 3
.prologue
.line 18
invoke-static {p0, p1}, Lcom/baidu/mobstat/cs;->b(Ljava/security/MessageDigest;Ljava/io/File;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method static synthetic a(Ljava/security/MessageDigest;[B)Ljava/lang/String;
.registers 3
.prologue
.line 18
invoke-static {p0, p1}, Lcom/baidu/mobstat/cs;->b(Ljava/security/MessageDigest;[B)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private static a([B)Ljava/lang/String;
.registers 6
.prologue
const/16 v4, 0xa
.line 110
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
.line 111
const/4 v0, 0x0
:goto_8
array-length v1, p0
if-ge v0, v1, :cond_32
.line 112
aget-byte v1, p0, v0
shr-int/lit8 v1, v1, 0x4
and-int/lit8 v1, v1, 0xf
.line 113
aget-byte v3, p0, v0
and-int/lit8 v3, v3, 0xf
.line 115
if-lt v1, v4, :cond_2c
add-int/lit8 v1, v1, 0x61
add-int/lit8 v1, v1, -0xa
:goto_1b
int-to-char v1, v1
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 116
if-lt v3, v4, :cond_2f
add-int/lit8 v1, v3, 0x61
add-int/lit8 v1, v1, -0xa
:goto_25
int-to-char v1, v1
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 111
add-int/lit8 v0, v0, 0x1
goto :goto_8
.line 115
:cond_2c
add-int/lit8 v1, v1, 0x30
goto :goto_1b
.line 116
:cond_2f
add-int/lit8 v1, v3, 0x30
goto :goto_25
.line 119
:cond_32
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private static b(Ljava/security/MessageDigest;Ljava/io/File;)Ljava/lang/String;
.registers 6
.prologue
.line 76
invoke-virtual {p1}, Ljava/io/File;->isFile()Z
move-result v0
if-eqz v0, :cond_4b
.line 78
const/4 v2, 0x0
.line 80
:try_start_7
new-instance v1, Ljava/io/FileInputStream;
invoke-direct {v1, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
:try_end_c
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_c} :catch_50
.catchall {:try_start_7 .. :try_end_c} :catchall_3e
.line 82
const/16 v0, 0xfd0
:try_start_e
new-array v0, v0, [B
.line 84
:goto_10
invoke-virtual {v1, v0}, Ljava/io/FileInputStream;->read([B)I
:try_end_13
.catch Ljava/lang/Exception; {:try_start_e .. :try_end_13} :catch_2a
.catchall {:try_start_e .. :try_end_13} :catchall_4e
move-result v2
.line 85
const/4 v3, -0x1
if-ne v2, v3, :cond_25
.line 94
if-eqz v1, :cond_1c
.line 96
:try_start_19
invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
:try_end_1c
.catch Ljava/io/IOException; {:try_start_19 .. :try_end_1c} :catch_39
.line 103
:cond_1c
:goto_1c
invoke-virtual {p0}, Ljava/security/MessageDigest;->digest()[B
move-result-object v0
invoke-static {v0}, Lcom/baidu/mobstat/cs;->a([B)Ljava/lang/String;
move-result-object v0
.line 106
:goto_24
return-object v0
.line 89
:cond_25
const/4 v3, 0x0
:try_start_26
invoke-virtual {p0, v0, v3, v2}, Ljava/security/MessageDigest;->update([BII)V
:try_end_29
.catch Ljava/lang/Exception; {:try_start_26 .. :try_end_29} :catch_2a
.catchall {:try_start_26 .. :try_end_29} :catchall_4e
goto :goto_10
.line 91
:catch_2a
move-exception v0
.line 92
:goto_2b
:try_start_2b
invoke-static {v0}, Lcom/baidu/mobstat/cw;->b(Ljava/lang/Throwable;)V
:try_end_2e
.catchall {:try_start_2b .. :try_end_2e} :catchall_4e
.line 94
if-eqz v1, :cond_1c
.line 96
:try_start_30
invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
:try_end_33
.catch Ljava/io/IOException; {:try_start_30 .. :try_end_33} :catch_34
goto :goto_1c
.line 97
:catch_34
move-exception v0
.line 98
invoke-static {v0}, Lcom/baidu/mobstat/cw;->b(Ljava/lang/Throwable;)V
goto :goto_1c
.line 97
:catch_39
move-exception v0
.line 98
invoke-static {v0}, Lcom/baidu/mobstat/cw;->b(Ljava/lang/Throwable;)V
goto :goto_1c
.line 94
:catchall_3e
move-exception v0
move-object v1, v2
:goto_40
if-eqz v1, :cond_45
.line 96
:try_start_42
invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
:try_end_45
.catch Ljava/io/IOException; {:try_start_42 .. :try_end_45} :catch_46
.line 99
:cond_45
:goto_45
throw v0
.line 97
:catch_46
move-exception v1
.line 98
invoke-static {v1}, Lcom/baidu/mobstat/cw;->b(Ljava/lang/Throwable;)V
goto :goto_45
.line 106
:cond_4b
const-string v0, ""
goto :goto_24
.line 94
:catchall_4e
move-exception v0
goto :goto_40
.line 91
:catch_50
move-exception v0
move-object v1, v2
goto :goto_2b
.end method
.method private static b(Ljava/security/MessageDigest;[B)Ljava/lang/String;
.registers 3
.prologue
.line 70
invoke-virtual {p0, p1}, Ljava/security/MessageDigest;->update([B)V
.line 72
invoke-virtual {p0}, Ljava/security/MessageDigest;->digest()[B
move-result-object v0
invoke-static {v0}, Lcom/baidu/mobstat/cs;->a([B)Ljava/lang/String;
move-result-object v0
return-object v0
.end method