c.smali
.class Lcom/keniu/security/update/c/c;
.super Ljava/lang/Object;
.source "ItemADReqVer.java"
# interfaces
.implements Lcom/keniu/security/update/a/a$a;
# instance fields
.field final synthetic a:Ljava/lang/String;
.field final synthetic b:Lcom/keniu/security/update/c/b;
# direct methods
.method constructor <init>(Lcom/keniu/security/update/c/b;Ljava/lang/String;)V
.registers 3
.prologue
.line 91
iput-object p1, p0, Lcom/keniu/security/update/c/c;->b:Lcom/keniu/security/update/c/b;
iput-object p2, p0, Lcom/keniu/security/update/c/c;->a:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(IIILjava/lang/Object;)V
.registers 10
.prologue
const/16 v1, 0x3e8
const/4 v0, 0x3
.line 95
const/4 v2, 0x0
.line 97
if-ne p1, v0, :cond_7e
if-ne p2, v1, :cond_7e
.line 98
:try_start_8
new-instance v1, Ljava/io/BufferedReader;
new-instance v0, Ljava/io/FileReader;
new-instance v3, Ljava/io/File;
iget-object v4, p0, Lcom/keniu/security/update/c/c;->a:Ljava/lang/String;
invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-direct {v0, v3}, Ljava/io/FileReader;-><init>(Ljava/io/File;)V
invoke-direct {v1, v0}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
:try_end_19
.catch Lorg/json/JSONException; {:try_start_8 .. :try_end_19} :catch_91
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_19} :catch_99
.catchall {:try_start_8 .. :try_end_19} :catchall_b6
.line 99
:try_start_19
new-instance v0, Ljava/lang/StringBuffer;
invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V
.line 101
:goto_1e
invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_47
.line 102
invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
:try_end_27
.catch Lorg/json/JSONException; {:try_start_19 .. :try_end_27} :catch_28
.catch Ljava/lang/Exception; {:try_start_19 .. :try_end_27} :catch_c5
.catchall {:try_start_19 .. :try_end_27} :catchall_c3
goto :goto_1e
.line 120
:catch_28
move-exception v0
.line 121
:goto_29
:try_start_29
iget-object v2, p0, Lcom/keniu/security/update/c/c;->b:Lcom/keniu/security/update/c/b;
invoke-static {v2}, Lcom/keniu/security/update/c/b;->b(Lcom/keniu/security/update/c/b;)V
.line 122
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
.line 123
iget-object v0, p0, Lcom/keniu/security/update/c/c;->b:Lcom/keniu/security/update/c/b;
const/16 v2, 0x3f8
invoke-static {v0, v2}, Lcom/keniu/security/update/c/b;->a(Lcom/keniu/security/update/c/b;I)V
.line 124
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;->getLogInstance()Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;
move-result-object v0
const-string v2, "ItemADReqVer Download json exception "
invoke-virtual {v0, v2}, Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;->log(Ljava/lang/String;)V
:try_end_41
.catchall {:try_start_29 .. :try_end_41} :catchall_c3
.line 130
if-eqz v1, :cond_46
.line 132
:try_start_43
invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
:try_end_46
.catch Ljava/io/IOException; {:try_start_43 .. :try_end_46} :catch_94
.line 138
:cond_46
:goto_46
return-void
.line 104
:cond_47
:try_start_47
invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
move-result-object v0
.line 105
invoke-static {}, Lcom/keniu/security/update/a/f;->a()Lcom/keniu/security/update/a/f;
move-result-object v2
invoke-virtual {v2, v0}, Lcom/keniu/security/update/a/f;->a(Ljava/lang/String;)V
.line 106
new-instance v2, Lorg/json/JSONObject;
invoke-direct {v2, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 107
if-eqz v2, :cond_69
.line 109
iget-object v0, p0, Lcom/keniu/security/update/c/c;->b:Lcom/keniu/security/update/c/b;
iget-object v2, p0, Lcom/keniu/security/update/c/c;->b:Lcom/keniu/security/update/c/b;
invoke-static {v2}, Lcom/keniu/security/update/c/b;->a(Lcom/keniu/security/update/c/b;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lcom/keniu/security/update/c/b;->a(Ljava/lang/String;)V
.line 111
iget-object v0, p0, Lcom/keniu/security/update/c/c;->b:Lcom/keniu/security/update/c/b;
invoke-static {v0, p2}, Lcom/keniu/security/update/c/b;->a(Lcom/keniu/security/update/c/b;I)V
.line 113
:cond_69
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;->getLogInstance()Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;
move-result-object v0
const-string v2, "ItemADReqVer Download success "
invoke-virtual {v0, v2}, Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;->log(Ljava/lang/String;)V
:try_end_72
.catch Lorg/json/JSONException; {:try_start_47 .. :try_end_72} :catch_28
.catch Ljava/lang/Exception; {:try_start_47 .. :try_end_72} :catch_c5
.catchall {:try_start_47 .. :try_end_72} :catchall_c3
move-object v2, v1
.line 130
:cond_73
:goto_73
if-eqz v2, :cond_46
.line 132
:try_start_75
invoke-virtual {v2}, Ljava/io/BufferedReader;->close()V
:try_end_78
.catch Ljava/io/IOException; {:try_start_75 .. :try_end_78} :catch_79
goto :goto_46
.line 133
:catch_79
move-exception v0
.line 134
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto :goto_46
.line 114
:cond_7e
if-ne p1, v0, :cond_73
if-eq p2, v1, :cond_73
.line 117
:try_start_82
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;->getLogInstance()Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;
move-result-object v0
const-string v1, "ItemADReqVer Download failure "
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;->log(Ljava/lang/String;)V
.line 118
iget-object v0, p0, Lcom/keniu/security/update/c/c;->b:Lcom/keniu/security/update/c/b;
invoke-static {v0, p2}, Lcom/keniu/security/update/c/b;->a(Lcom/keniu/security/update/c/b;I)V
:try_end_90
.catch Lorg/json/JSONException; {:try_start_82 .. :try_end_90} :catch_91
.catch Ljava/lang/Exception; {:try_start_82 .. :try_end_90} :catch_99
.catchall {:try_start_82 .. :try_end_90} :catchall_b6
goto :goto_73
.line 120
:catch_91
move-exception v0
move-object v1, v2
goto :goto_29
.line 133
:catch_94
move-exception v0
.line 134
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto :goto_46
.line 125
:catch_99
move-exception v0
move-object v1, v2
.line 127
:goto_9b
:try_start_9b
iget-object v0, p0, Lcom/keniu/security/update/c/c;->b:Lcom/keniu/security/update/c/b;
const/16 v2, 0x3e9
invoke-static {v0, v2}, Lcom/keniu/security/update/c/b;->a(Lcom/keniu/security/update/c/b;I)V
.line 128
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;->getLogInstance()Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;
move-result-object v0
const-string v2, "ItemADReqVer Download exception "
invoke-virtual {v0, v2}, Lcom/cleanmaster/hpsharelib/base/util/debug/PushLog;->log(Ljava/lang/String;)V
:try_end_ab
.catchall {:try_start_9b .. :try_end_ab} :catchall_c3
.line 130
if-eqz v1, :cond_46
.line 132
:try_start_ad
invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
:try_end_b0
.catch Ljava/io/IOException; {:try_start_ad .. :try_end_b0} :catch_b1
goto :goto_46
.line 133
:catch_b1
move-exception v0
.line 134
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto :goto_46
.line 130
:catchall_b6
move-exception v0
move-object v1, v2
:goto_b8
if-eqz v1, :cond_bd
.line 132
:try_start_ba
invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
:try_end_bd
.catch Ljava/io/IOException; {:try_start_ba .. :try_end_bd} :catch_be
.line 135
:cond_bd
:goto_bd
throw v0
.line 133
:catch_be
move-exception v1
.line 134
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_bd
.line 130
:catchall_c3
move-exception v0
goto :goto_b8
.line 125
:catch_c5
move-exception v0
goto :goto_9b
.end method