bn.smali
.class public Lcom/amap/api/services/a/bn;
.super Ljava/lang/Object;
# static fields
.field private static a:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
const/4 v0, 0x1
sput-boolean v0, Lcom/amap/api/services/a/bn;->a:Z
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a(Landroid/content/Context;)V
.registers 7
:try_start_0
invoke-static {p0}, Lcom/amap/api/services/a/bn;->g(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_7
:cond_6
:goto_6
return-void
:cond_7
new-instance v0, Ljava/lang/StringBuffer;
invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V
new-instance v1, Ljava/text/SimpleDateFormat;
const-string/jumbo v2, "yyyyMMdd HHmmss"
invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V
new-instance v2, Ljava/util/Date;
invoke-direct {v2}, Ljava/util/Date;-><init>()V
invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
const-string/jumbo v1, " "
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;
move-result-object v1
invoke-virtual {v1}, Ljava/util/UUID;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
const-string/jumbo v1, " "
invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
invoke-virtual {v0}, Ljava/lang/StringBuffer;->length()I
move-result v1
const/16 v2, 0x35
if-ne v1, v2, :cond_6
invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/amap/api/services/a/o;->a(Ljava/lang/String;)[B
move-result-object v0
invoke-static {p0}, Lcom/amap/api/services/a/bn;->b(Landroid/content/Context;)[B
move-result-object v1
array-length v2, v0
array-length v3, v1
add-int/2addr v2, v3
new-array v2, v2, [B
const/4 v3, 0x0
const/4 v4, 0x0
array-length v5, v0
invoke-static {v0, v3, v2, v4, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
const/4 v3, 0x0
array-length v0, v0
array-length v4, v1
invoke-static {v1, v3, v2, v0, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
invoke-static {v2}, Lcom/amap/api/services/a/o;->c([B)[B
move-result-object v0
new-instance v1, Lcom/amap/api/services/a/s;
const-string/jumbo v2, "2"
invoke-direct {v1, v0, v2}, Lcom/amap/api/services/a/s;-><init>([BLjava/lang/String;)V
invoke-static {}, Lcom/amap/api/services/a/bb;->a()Lcom/amap/api/services/a/bb;
move-result-object v0
invoke-virtual {v0, v1}, Lcom/amap/api/services/a/bb;->b(Lcom/amap/api/services/a/bh;)[B
:try_end_6f
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_6f} :catch_70
goto :goto_6
:catch_70
move-exception v0
const-string/jumbo v1, "StatisticsManager"
const-string/jumbo v2, "updateStaticsData"
invoke-static {v0, v1, v2}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_6
.end method
.method private static a(Landroid/content/Context;J)V
.registers 8
const-string/jumbo v0, "c.log"
invoke-static {p0, v0}, Lcom/amap/api/services/a/r;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
new-instance v3, Ljava/io/File;
invoke-direct {v3, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v3}, Ljava/io/File;->getParentFile()Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
if-nez v0, :cond_1d
invoke-virtual {v3}, Ljava/io/File;->getParentFile()Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z
:cond_1d
const/4 v2, 0x0
:try_start_1e
new-instance v1, Ljava/io/FileOutputStream;
invoke-direct {v1, v3}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
:try_end_23
.catch Ljava/io/FileNotFoundException; {:try_start_1e .. :try_end_23} :catch_34
.catch Ljava/io/IOException; {:try_start_1e .. :try_end_23} :catch_44
.catchall {:try_start_1e .. :try_end_23} :catchall_51
:try_start_23
invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/amap/api/services/a/o;->a(Ljava/lang/String;)[B
move-result-object v0
invoke-virtual {v1, v0}, Ljava/io/FileOutputStream;->write([B)V
:try_end_2e
.catch Ljava/io/FileNotFoundException; {:try_start_23 .. :try_end_2e} :catch_64
.catch Ljava/io/IOException; {:try_start_23 .. :try_end_2e} :catch_62
.catchall {:try_start_23 .. :try_end_2e} :catchall_60
if-eqz v1, :cond_33
:try_start_30
invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
:try_end_33
.catch Ljava/lang/Throwable; {:try_start_30 .. :try_end_33} :catch_5e
:cond_33
:goto_33
return-void
:catch_34
move-exception v0
move-object v1, v2
:goto_36
:try_start_36
invoke-virtual {v0}, Ljava/io/FileNotFoundException;->printStackTrace()V
:try_end_39
.catchall {:try_start_36 .. :try_end_39} :catchall_60
if-eqz v1, :cond_33
:try_start_3b
invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
:try_end_3e
.catch Ljava/lang/Throwable; {:try_start_3b .. :try_end_3e} :catch_3f
goto :goto_33
:catch_3f
move-exception v0
:goto_40
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_33
:catch_44
move-exception v0
move-object v1, v2
:goto_46
:try_start_46
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_49
.catchall {:try_start_46 .. :try_end_49} :catchall_60
if-eqz v1, :cond_33
:try_start_4b
invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
:try_end_4e
.catch Ljava/lang/Throwable; {:try_start_4b .. :try_end_4e} :catch_4f
goto :goto_33
:catch_4f
move-exception v0
goto :goto_40
:catchall_51
move-exception v0
move-object v1, v2
:goto_53
if-eqz v1, :cond_58
:try_start_55
invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
:try_end_58
.catch Ljava/lang/Throwable; {:try_start_55 .. :try_end_58} :catch_59
:cond_58
:goto_58
throw v0
:catch_59
move-exception v1
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_58
:catch_5e
move-exception v0
goto :goto_40
:catchall_60
move-exception v0
goto :goto_53
:catch_62
move-exception v0
goto :goto_46
:catch_64
move-exception v0
goto :goto_36
.end method
.method public static declared-synchronized a(Lcom/amap/api/services/a/bm;Landroid/content/Context;)V
.registers 5
const-class v1, Lcom/amap/api/services/a/bn;
monitor-enter v1
:try_start_3
invoke-static {}, Lcom/amap/api/services/a/t;->b()Ljava/util/concurrent/ExecutorService;
move-result-object v0
new-instance v2, Lcom/amap/api/services/a/bn$1;
invoke-direct {v2, p0, p1}, Lcom/amap/api/services/a/bn$1;-><init>(Lcom/amap/api/services/a/bm;Landroid/content/Context;)V
invoke-interface {v0, v2}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
:try_end_f
.catchall {:try_start_3 .. :try_end_f} :catchall_11
monitor-exit v1
return-void
:catchall_11
move-exception v0
monitor-exit v1
throw v0
.end method
.method private static a(Landroid/content/Context;[B)[B
.registers 3
:try_start_0
invoke-static {p0, p1}, Lcom/amap/api/services/a/i;->a(Landroid/content/Context;[B)[B
:try_end_3
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_3} :catch_5
move-result-object v0
:goto_4
return-object v0
:catch_5
move-exception v0
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
const/4 v0, 0x0
goto :goto_4
.end method
.method private static b(Landroid/content/Context;)[B
.registers 6
const/4 v4, 0x0
invoke-static {p0}, Lcom/amap/api/services/a/bn;->c(Landroid/content/Context;)[B
move-result-object v0
invoke-static {p0}, Lcom/amap/api/services/a/bn;->e(Landroid/content/Context;)[B
move-result-object v1
array-length v2, v0
array-length v3, v1
add-int/2addr v2, v3
new-array v2, v2, [B
array-length v3, v0
invoke-static {v0, v4, v2, v4, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
array-length v0, v0
array-length v3, v1
invoke-static {v1, v4, v2, v0, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
invoke-static {p0, v2}, Lcom/amap/api/services/a/bn;->a(Landroid/content/Context;[B)[B
move-result-object v0
return-object v0
.end method
.method private static c(Landroid/content/Context;)[B
.registers 6
const/4 v0, 0x0
new-instance v2, Ljava/io/ByteArrayOutputStream;
invoke-direct {v2}, Ljava/io/ByteArrayOutputStream;-><init>()V
new-array v0, v0, [B
:try_start_8
const-string/jumbo v1, "1.2.13.6"
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
const-string/jumbo v1, "Android"
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
invoke-static {p0}, Lcom/amap/api/services/a/j;->q(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
invoke-static {p0}, Lcom/amap/api/services/a/j;->i(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
invoke-static {p0}, Lcom/amap/api/services/a/j;->f(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->DEVICE:Ljava/lang/String;
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
invoke-static {p0}, Lcom/amap/api/services/a/j;->r(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
invoke-static {p0}, Lcom/amap/api/services/a/f;->c(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
invoke-static {p0}, Lcom/amap/api/services/a/f;->d(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
invoke-static {p0}, Lcom/amap/api/services/a/f;->f(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Lcom/amap/api/services/a/o;->a(Ljava/io/ByteArrayOutputStream;Ljava/lang/String;)V
const/4 v1, 0x1
new-array v1, v1, [B
const/4 v3, 0x0
const/4 v4, 0x0
aput-byte v4, v1, v3
invoke-virtual {v2, v1}, Ljava/io/ByteArrayOutputStream;->write([B)V
invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
:try_end_61
.catch Ljava/lang/Throwable; {:try_start_8 .. :try_end_61} :catch_66
.catchall {:try_start_8 .. :try_end_61} :catchall_79
move-result-object v0
:try_start_62
invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_65
.catch Ljava/lang/Throwable; {:try_start_62 .. :try_end_65} :catch_83
:goto_65
return-object v0
:catch_66
move-exception v1
:try_start_67
const-string/jumbo v3, "StatisticsManager"
const-string/jumbo v4, "getHeader"
invoke-static {v1, v3, v4}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
:try_end_70
.catchall {:try_start_67 .. :try_end_70} :catchall_79
:try_start_70
invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_73
.catch Ljava/lang/Throwable; {:try_start_70 .. :try_end_73} :catch_74
goto :goto_65
:catch_74
move-exception v1
:goto_75
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_65
:catchall_79
move-exception v0
:try_start_7a
invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_7d
.catch Ljava/lang/Throwable; {:try_start_7a .. :try_end_7d} :catch_7e
:goto_7d
throw v0
:catch_7e
move-exception v1
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_7d
:catch_83
move-exception v1
goto :goto_75
.end method
.method private static d(Landroid/content/Context;)I
.registers 5
const/4 v0, 0x0
:try_start_1
sget-object v1, Lcom/amap/api/services/a/r;->e:Ljava/lang/String;
invoke-static {p0, v1}, Lcom/amap/api/services/a/r;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
new-instance v2, Ljava/io/File;
invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v2}, Ljava/io/File;->exists()Z
move-result v1
if-nez v1, :cond_13
:goto_12
return v0
:cond_13
invoke-virtual {v2}, Ljava/io/File;->list()[Ljava/lang/String;
move-result-object v1
array-length v0, v1
:try_end_18
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_18} :catch_19
goto :goto_12
:catch_19
move-exception v1
const-string/jumbo v2, "StatisticsManager"
const-string/jumbo v3, "getFileNum"
invoke-static {v1, v2, v3}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_12
.end method
.method private static e(Landroid/content/Context;)[B
.registers 11
const/4 v1, 0x0
new-instance v3, Ljava/io/ByteArrayOutputStream;
invoke-direct {v3}, Ljava/io/ByteArrayOutputStream;-><init>()V
new-array v0, v1, [B
sget-object v2, Lcom/amap/api/services/a/r;->e:Ljava/lang/String;
invoke-static {p0, v2}, Lcom/amap/api/services/a/r;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
const/4 v2, 0x0
:try_start_f
new-instance v5, Ljava/io/File;
invoke-direct {v5, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V
const/4 v6, 0x1
const/4 v7, 0x1
const-wide/32 v8, 0x19000
invoke-static {v5, v6, v7, v8, v9}, Lcom/amap/api/services/a/aw;->a(Ljava/io/File;IIJ)Lcom/amap/api/services/a/aw;
move-result-object v2
new-instance v5, Ljava/io/File;
invoke-direct {v5, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V
if-eqz v5, :cond_66
invoke-virtual {v5}, Ljava/io/File;->exists()Z
move-result v4
if-eqz v4, :cond_66
invoke-virtual {v5}, Ljava/io/File;->list()[Ljava/lang/String;
move-result-object v4
array-length v5, v4
:goto_2f
if-ge v1, v5, :cond_66
aget-object v6, v4, v1
const-string/jumbo v7, ".0"
invoke-virtual {v6, v7}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v7
if-nez v7, :cond_3f
:goto_3c
add-int/lit8 v1, v1, 0x1
goto :goto_2f
:cond_3f
const-string/jumbo v7, "\\."
invoke-virtual {v6, v7}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v6
const/4 v7, 0x0
aget-object v6, v6, v7
invoke-static {v2, v6}, Lcom/amap/api/services/a/bo;->a(Lcom/amap/api/services/a/aw;Ljava/lang/String;)[B
move-result-object v6
invoke-virtual {v3, v6}, Ljava/io/ByteArrayOutputStream;->write([B)V
:try_end_50
.catch Ljava/io/IOException; {:try_start_f .. :try_end_50} :catch_51
.catch Ljava/lang/Throwable; {:try_start_f .. :try_end_50} :catch_7a
.catchall {:try_start_f .. :try_end_50} :catchall_91
goto :goto_3c
:catch_51
move-exception v1
:try_start_52
const-string/jumbo v4, "StatisticsManager"
const-string/jumbo v5, "getContent"
invoke-static {v1, v4, v5}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
:try_end_5b
.catchall {:try_start_52 .. :try_end_5b} :catchall_91
if-eqz v3, :cond_60
:try_start_5d
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_60
.catch Ljava/io/IOException; {:try_start_5d .. :try_end_60} :catch_a7
:cond_60
:goto_60
if-eqz v2, :cond_65
:try_start_62
invoke-virtual {v2}, Lcom/amap/api/services/a/aw;->close()V
:try_end_65
.catch Ljava/lang/Throwable; {:try_start_62 .. :try_end_65} :catch_ac
:cond_65
:goto_65
return-object v0
:cond_66
:try_start_66
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
:try_end_69
.catch Ljava/io/IOException; {:try_start_66 .. :try_end_69} :catch_51
.catch Ljava/lang/Throwable; {:try_start_66 .. :try_end_69} :catch_7a
.catchall {:try_start_66 .. :try_end_69} :catchall_91
move-result-object v0
if-eqz v3, :cond_6f
:try_start_6c
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_6f
.catch Ljava/io/IOException; {:try_start_6c .. :try_end_6f} :catch_b3
:cond_6f
:goto_6f
if-eqz v2, :cond_65
:try_start_71
invoke-virtual {v2}, Lcom/amap/api/services/a/aw;->close()V
:try_end_74
.catch Ljava/lang/Throwable; {:try_start_71 .. :try_end_74} :catch_75
goto :goto_65
:catch_75
move-exception v1
:goto_76
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_65
:catch_7a
move-exception v1
:try_start_7b
const-string/jumbo v4, "StatisticsManager"
const-string/jumbo v5, "getContent"
invoke-static {v1, v4, v5}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
:try_end_84
.catchall {:try_start_7b .. :try_end_84} :catchall_91
if-eqz v3, :cond_89
:try_start_86
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_89
.catch Ljava/io/IOException; {:try_start_86 .. :try_end_89} :catch_ae
:cond_89
:goto_89
if-eqz v2, :cond_65
:try_start_8b
invoke-virtual {v2}, Lcom/amap/api/services/a/aw;->close()V
:try_end_8e
.catch Ljava/lang/Throwable; {:try_start_8b .. :try_end_8e} :catch_8f
goto :goto_65
:catch_8f
move-exception v1
goto :goto_76
:catchall_91
move-exception v0
if-eqz v3, :cond_97
:try_start_94
invoke-virtual {v3}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_97
.catch Ljava/io/IOException; {:try_start_94 .. :try_end_97} :catch_9d
:cond_97
:goto_97
if-eqz v2, :cond_9c
:try_start_99
invoke-virtual {v2}, Lcom/amap/api/services/a/aw;->close()V
:try_end_9c
.catch Ljava/lang/Throwable; {:try_start_99 .. :try_end_9c} :catch_a2
:cond_9c
:goto_9c
throw v0
:catch_9d
move-exception v1
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_97
:catch_a2
move-exception v1
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_9c
:catch_a7
move-exception v1
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_60
:catch_ac
move-exception v1
goto :goto_76
:catch_ae
move-exception v1
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_89
:catch_b3
move-exception v1
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_6f
.end method
.method private static f(Landroid/content/Context;)J
.registers 8
const-wide/16 v0, 0x0
const-string/jumbo v2, "c.log"
invoke-static {p0, v2}, Lcom/amap/api/services/a/r;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
new-instance v5, Ljava/io/File;
invoke-direct {v5, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v5}, Ljava/io/File;->exists()Z
move-result v2
if-nez v2, :cond_15
:cond_14
:goto_14
return-wide v0
:cond_15
const/4 v4, 0x0
:try_start_16
new-instance v3, Ljava/io/FileInputStream;
invoke-direct {v3, v5}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
:try_end_1b
.catch Ljava/io/FileNotFoundException; {:try_start_16 .. :try_end_1b} :catch_37
.catch Ljava/io/IOException; {:try_start_16 .. :try_end_1b} :catch_4a
.catch Ljava/lang/Throwable; {:try_start_16 .. :try_end_1b} :catch_5d
.catchall {:try_start_16 .. :try_end_1b} :catchall_8c
:try_start_1b
invoke-virtual {v3}, Ljava/io/FileInputStream;->available()I
move-result v2
new-array v2, v2, [B
invoke-virtual {v3, v2}, Ljava/io/FileInputStream;->read([B)I
invoke-static {v2}, Lcom/amap/api/services/a/o;->a([B)Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
:try_end_2b
.catch Ljava/io/FileNotFoundException; {:try_start_1b .. :try_end_2b} :catch_93
.catch Ljava/io/IOException; {:try_start_1b .. :try_end_2b} :catch_91
.catch Ljava/lang/Throwable; {:try_start_1b .. :try_end_2b} :catch_8f
.catchall {:try_start_1b .. :try_end_2b} :catchall_80
move-result-wide v0
if-eqz v3, :cond_14
:try_start_2e
invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
:try_end_31
.catch Ljava/lang/Throwable; {:try_start_2e .. :try_end_31} :catch_32
goto :goto_14
:catch_32
move-exception v2
:goto_33
invoke-virtual {v2}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_14
:catch_37
move-exception v2
move-object v3, v4
:goto_39
:try_start_39
const-string/jumbo v4, "StatisticsManager"
const-string/jumbo v5, "getUpdateTime"
invoke-static {v2, v4, v5}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
:try_end_42
.catchall {:try_start_39 .. :try_end_42} :catchall_80
if-eqz v3, :cond_14
:try_start_44
invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
:try_end_47
.catch Ljava/lang/Throwable; {:try_start_44 .. :try_end_47} :catch_48
goto :goto_14
:catch_48
move-exception v2
goto :goto_33
:catch_4a
move-exception v2
move-object v3, v4
:goto_4c
:try_start_4c
const-string/jumbo v4, "StatisticsManager"
const-string/jumbo v5, "getUpdateTime"
invoke-static {v2, v4, v5}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
:try_end_55
.catchall {:try_start_4c .. :try_end_55} :catchall_80
if-eqz v3, :cond_14
:try_start_57
invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
:try_end_5a
.catch Ljava/lang/Throwable; {:try_start_57 .. :try_end_5a} :catch_5b
goto :goto_14
:catch_5b
move-exception v2
goto :goto_33
:catch_5d
move-exception v2
move-object v3, v4
:goto_5f
:try_start_5f
const-string/jumbo v4, "StatisticsManager"
const-string/jumbo v6, "getUpdateTime"
invoke-static {v2, v4, v6}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
:try_end_68
.catchall {:try_start_5f .. :try_end_68} :catchall_80
if-eqz v5, :cond_73
:try_start_6a
invoke-virtual {v5}, Ljava/io/File;->exists()Z
move-result v2
if-eqz v2, :cond_73
invoke-virtual {v5}, Ljava/io/File;->delete()Z
:try_end_73
.catch Ljava/lang/Throwable; {:try_start_6a .. :try_end_73} :catch_7b
.catchall {:try_start_6a .. :try_end_73} :catchall_80
:cond_73
:goto_73
if-eqz v3, :cond_14
:try_start_75
invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
:try_end_78
.catch Ljava/lang/Throwable; {:try_start_75 .. :try_end_78} :catch_79
goto :goto_14
:catch_79
move-exception v2
goto :goto_33
:catch_7b
move-exception v2
:try_start_7c
invoke-virtual {v2}, Ljava/lang/Throwable;->printStackTrace()V
:try_end_7f
.catchall {:try_start_7c .. :try_end_7f} :catchall_80
goto :goto_73
:catchall_80
move-exception v0
:goto_81
if-eqz v3, :cond_86
:try_start_83
invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
:try_end_86
.catch Ljava/lang/Throwable; {:try_start_83 .. :try_end_86} :catch_87
:cond_86
:goto_86
throw v0
:catch_87
move-exception v1
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_86
:catchall_8c
move-exception v0
move-object v3, v4
goto :goto_81
:catch_8f
move-exception v2
goto :goto_5f
:catch_91
move-exception v2
goto :goto_4c
:catch_93
move-exception v2
goto :goto_39
.end method
.method private static g(Landroid/content/Context;)Z
.registers 9
const/4 v1, 0x1
const/4 v0, 0x0
:try_start_2
invoke-static {p0}, Lcom/amap/api/services/a/j;->m(Landroid/content/Context;)I
move-result v2
if-ne v2, v1, :cond_14
sget-boolean v2, Lcom/amap/api/services/a/bn;->a:Z
if-eqz v2, :cond_14
invoke-static {p0}, Lcom/amap/api/services/a/bn;->d(Landroid/content/Context;)I
move-result v2
const/16 v3, 0x64
if-ge v2, v3, :cond_15
:cond_14
:goto_14
return v0
:cond_15
invoke-static {p0}, Lcom/amap/api/services/a/bn;->f(Landroid/content/Context;)J
move-result-wide v2
new-instance v4, Ljava/util/Date;
invoke-direct {v4}, Ljava/util/Date;-><init>()V
invoke-virtual {v4}, Ljava/util/Date;->getTime()J
move-result-wide v4
sub-long v2, v4, v2
const-wide/32 v6, 0x36ee80
cmp-long v2, v2, v6
if-ltz v2, :cond_14
invoke-static {p0, v4, v5}, Lcom/amap/api/services/a/bn;->a(Landroid/content/Context;J)V
const/4 v2, 0x0
sput-boolean v2, Lcom/amap/api/services/a/bn;->a:Z
:try_end_31
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_31} :catch_33
move v0, v1
goto :goto_14
:catch_33
move-exception v1
const-string/jumbo v2, "StatisticsManager"
const-string/jumbo v3, "isUpdate"
invoke-static {v1, v2, v3}, Lcom/amap/api/services/a/q;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_14
.end method