b.smali
.class public Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/b;
.super Ljava/lang/Object;
.source "CmMarketHttpClient.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/b$a;
}
.end annotation
# static fields
.field public static final a:I
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 113
invoke-static {}, Lcom/cmcm/ad/data/dataProvider/adlogic/e/d;->a()Z
move-result v0
if-eqz v0, :cond_b
const/16 v0, 0x11
:goto_8
sput v0, Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/b;->a:I
return-void
:cond_b
const/16 v0, 0x10
goto :goto_8
.end method
.method public static a(Ljava/lang/String;Ljava/net/URI;Lcom/cmcm/ad/d/a/n;)Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/c;
.registers 6
.prologue
const/4 v0, 0x0
.line 125
if-nez p1, :cond_4
.line 132
:goto_3
return-object v0
.line 128
:cond_4
invoke-virtual {p1}, Ljava/net/URI;->toASCIIString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x1
invoke-static {v0, v1, v2, p2}, Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/b;->a(Lorg/apache/http/client/HttpClient;Ljava/lang/String;ZLcom/cmcm/ad/d/a/n;)Ljava/lang/String;
move-result-object v0
.line 129
invoke-static {p0, v0}, Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/e;->a(Ljava/lang/String;Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_18
.line 130
invoke-static {p0}, Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/e;->c(Ljava/lang/String;)Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/c;
move-result-object v0
goto :goto_3
.line 132
:cond_18
invoke-static {p0, v0}, Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/c;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/c;
move-result-object v0
goto :goto_3
.end method
.method public static a(Ljava/io/InputStream;)Ljava/lang/String;
.registers 6
.prologue
.line 1011
const/16 v0, 0x800
new-array v3, v0, [C
.line 1012
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
.line 1013
const/4 v2, 0x0
.line 1016
:try_start_a
new-instance v1, Ljava/io/InputStreamReader;
const-string/jumbo v0, "utf-8"
invoke-direct {v1, p0, v0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/lang/String;)V
:try_end_12
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_12} :catch_2d
.catchall {:try_start_a .. :try_end_12} :catchall_3d
.line 1018
const/4 v0, 0x0
:try_start_13
array-length v2, v3
invoke-virtual {v1, v3, v0, v2}, Ljava/io/InputStreamReader;->read([CII)I
move-result v0
.line 1019
:goto_18
if-lez v0, :cond_23
.line 1020
const/4 v2, 0x0
invoke-virtual {v4, v3, v2, v0}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
.line 1021
invoke-virtual {v1, v3}, Ljava/io/InputStreamReader;->read([C)I
:try_end_21
.catch Ljava/lang/Exception; {:try_start_13 .. :try_end_21} :catch_4c
.catchall {:try_start_13 .. :try_end_21} :catchall_4a
move-result v0
goto :goto_18
.line 1028
:cond_23
if-eqz v1, :cond_28
.line 1029
:try_start_25
invoke-virtual {v1}, Ljava/io/InputStreamReader;->close()V
:try_end_28
.catch Ljava/io/UnsupportedEncodingException; {:try_start_25 .. :try_end_28} :catch_38
.catch Ljava/io/IOException; {:try_start_25 .. :try_end_28} :catch_45
.line 1037
:cond_28
:goto_28
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.line 1024
:catch_2d
move-exception v0
move-object v1, v2
.line 1025
:goto_2f
:try_start_2f
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_32
.catchall {:try_start_2f .. :try_end_32} :catchall_4a
.line 1028
if-eqz v1, :cond_28
.line 1029
:try_start_34
invoke-virtual {v1}, Ljava/io/InputStreamReader;->close()V
:try_end_37
.catch Ljava/io/UnsupportedEncodingException; {:try_start_34 .. :try_end_37} :catch_38
.catch Ljava/io/IOException; {:try_start_34 .. :try_end_37} :catch_45
goto :goto_28
.line 1032
:catch_38
move-exception v0
.line 1033
invoke-virtual {v0}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V
goto :goto_28
.line 1028
:catchall_3d
move-exception v0
move-object v1, v2
:goto_3f
if-eqz v1, :cond_44
.line 1029
:try_start_41
invoke-virtual {v1}, Ljava/io/InputStreamReader;->close()V
:cond_44
throw v0
:try_end_45
.catch Ljava/io/UnsupportedEncodingException; {:try_start_41 .. :try_end_45} :catch_38
.catch Ljava/io/IOException; {:try_start_41 .. :try_end_45} :catch_45
.line 1034
:catch_45
move-exception v0
.line 1035
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto :goto_28
.line 1028
:catchall_4a
move-exception v0
goto :goto_3f
.line 1024
:catch_4c
move-exception v0
goto :goto_2f
.end method
.method public static a(Lorg/apache/http/client/HttpClient;Ljava/lang/String;ZLcom/cmcm/ad/d/a/n;)Ljava/lang/String;
.registers 11
.prologue
.line 1046
if-nez p0, :cond_6
.line 1047
invoke-static {}, Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/b;->a()Lorg/apache/http/client/HttpClient;
move-result-object p0
.line 1053
:cond_6
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
.line 1054
new-instance v6, Lcom/cleanmaster/net/Response;
invoke-direct {v6}, Lcom/cleanmaster/net/Response;-><init>()V
.line 1055
const/4 v2, 0x0
.line 1056
const-string v0, ""
.line 1059
:try_start_12
new-instance v1, Lorg/apache/http/client/methods/HttpGet;
invoke-direct {v1, p1}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V
:try_end_17
.catch Lorg/apache/http/client/ClientProtocolException; {:try_start_12 .. :try_end_17} :catch_ca
.catch Ljava/net/SocketTimeoutException; {:try_start_12 .. :try_end_17} :catch_12a
.catch Ljava/net/ConnectException; {:try_start_12 .. :try_end_17} :catch_188
.catch Ljava/net/SocketException; {:try_start_12 .. :try_end_17} :catch_1e7
.catch Ljava/net/MalformedURLException; {:try_start_12 .. :try_end_17} :catch_246
.catch Lorg/apache/http/conn/ConnectionPoolTimeoutException; {:try_start_12 .. :try_end_17} :catch_2a5
.catch Lorg/apache/http/conn/ConnectTimeoutException; {:try_start_12 .. :try_end_17} :catch_304
.catch Lorg/apache/http/NoHttpResponseException; {:try_start_12 .. :try_end_17} :catch_363
.catch Ljava/lang/NullPointerException; {:try_start_12 .. :try_end_17} :catch_3c2
.catch Ljava/io/IOException; {:try_start_12 .. :try_end_17} :catch_415
.catch Ljava/lang/Throwable; {:try_start_12 .. :try_end_17} :catch_483
.catchall {:try_start_12 .. :try_end_17} :catchall_4d6
.line 1061
if-eqz p2, :cond_20
.line 1062
:try_start_19
const-string v0, "Accept-Encoding"
const-string v2, "gzip"
invoke-virtual {v1, v0, v2}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V
.line 1064
:cond_20
invoke-interface {p0, v1}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;
move-result-object v0
.line 1065
invoke-interface {v0}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;
move-result-object v2
invoke-interface {v2}, Lorg/apache/http/StatusLine;->getStatusCode()I
move-result v2
.line 1069
invoke-virtual {v6, v0}, Lcom/cleanmaster/net/Response;->initResponseCode(Lorg/apache/http/HttpResponse;)V
:try_end_2f
.catch Lorg/apache/http/client/ClientProtocolException; {:try_start_19 .. :try_end_2f} :catch_ca
.catch Ljava/net/SocketTimeoutException; {:try_start_19 .. :try_end_2f} :catch_12a
.catch Ljava/net/ConnectException; {:try_start_19 .. :try_end_2f} :catch_188
.catch Ljava/net/SocketException; {:try_start_19 .. :try_end_2f} :catch_1e7
.catch Ljava/net/MalformedURLException; {:try_start_19 .. :try_end_2f} :catch_246
.catch Lorg/apache/http/conn/ConnectionPoolTimeoutException; {:try_start_19 .. :try_end_2f} :catch_2a5
.catch Lorg/apache/http/conn/ConnectTimeoutException; {:try_start_19 .. :try_end_2f} :catch_304
.catch Lorg/apache/http/NoHttpResponseException; {:try_start_19 .. :try_end_2f} :catch_363
.catch Ljava/lang/NullPointerException; {:try_start_19 .. :try_end_2f} :catch_3c2
.catch Ljava/io/IOException; {:try_start_19 .. :try_end_2f} :catch_50d
.catch Ljava/lang/Throwable; {:try_start_19 .. :try_end_2f} :catch_483
.catchall {:try_start_19 .. :try_end_2f} :catchall_4d6
.line 1070
const/16 v3, 0xc8
if-eq v2, v3, :cond_6a
.line 1071
const/4 v0, 0x0
.line 1126
if-eqz p0, :cond_3d
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v1
invoke-interface {v1}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_3d
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
.line 1131
sub-long/2addr v2, v4
.line 1132
const-wide/32 v4, 0x7fffffff
cmp-long v1, v2, v4
if-gtz v1, :cond_4f
const-wide/16 v4, 0x0
cmp-long v1, v2, v4
if-gez v1, :cond_51
.line 1133
:cond_4f
const-wide/16 v2, 0x0
.line 1135
:cond_51
if-eqz p3, :cond_69
.line 1136
long-to-int v1, v2
invoke-virtual {p3, v1}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v1
invoke-virtual {p3, v1}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v1
const/16 v2, 0xff
if-eq v1, v2, :cond_69
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
.line 1151
:cond_69
:goto_69
return-object v0
.line 1074
:cond_6a
:try_start_6a
invoke-interface {v0}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;
move-result-object v2
.line 1075
invoke-interface {v2}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;
move-result-object v2
.line 1076
const-string v3, "Content-Encoding"
invoke-interface {v0, v3}, Lorg/apache/http/HttpResponse;->getFirstHeader(Ljava/lang/String;)Lorg/apache/http/Header;
move-result-object v0
.line 1077
if-eqz v0, :cond_510
.line 1078
invoke-interface {v0}, Lorg/apache/http/Header;->getValue()Ljava/lang/String;
move-result-object v0
const-string v3, "gzip"
invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_510
.line 1079
new-instance v0, Ljava/util/zip/GZIPInputStream;
new-instance v3, Ljava/io/BufferedInputStream;
invoke-direct {v3, v2}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V
invoke-direct {v0, v3}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
.line 1081
:goto_90
invoke-static {v0}, Lcom/cmcm/ad/data/dataProvider/adlogic/adentity/data/b;->a(Ljava/io/InputStream;)Ljava/lang/String;
:try_end_93
.catch Lorg/apache/http/client/ClientProtocolException; {:try_start_6a .. :try_end_93} :catch_ca
.catch Ljava/net/SocketTimeoutException; {:try_start_6a .. :try_end_93} :catch_12a
.catch Ljava/net/ConnectException; {:try_start_6a .. :try_end_93} :catch_188
.catch Ljava/net/SocketException; {:try_start_6a .. :try_end_93} :catch_1e7
.catch Ljava/net/MalformedURLException; {:try_start_6a .. :try_end_93} :catch_246
.catch Lorg/apache/http/conn/ConnectionPoolTimeoutException; {:try_start_6a .. :try_end_93} :catch_2a5
.catch Lorg/apache/http/conn/ConnectTimeoutException; {:try_start_6a .. :try_end_93} :catch_304
.catch Lorg/apache/http/NoHttpResponseException; {:try_start_6a .. :try_end_93} :catch_363
.catch Ljava/lang/NullPointerException; {:try_start_6a .. :try_end_93} :catch_3c2
.catch Ljava/io/IOException; {:try_start_6a .. :try_end_93} :catch_50d
.catch Ljava/lang/Throwable; {:try_start_6a .. :try_end_93} :catch_483
.catchall {:try_start_6a .. :try_end_93} :catchall_4d6
move-result-object v0
.line 1126
if-eqz p0, :cond_9d
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v1
invoke-interface {v1}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_9d
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
.line 1131
sub-long/2addr v2, v4
.line 1132
const-wide/32 v4, 0x7fffffff
cmp-long v1, v2, v4
if-gtz v1, :cond_af
const-wide/16 v4, 0x0
cmp-long v1, v2, v4
if-gez v1, :cond_b1
.line 1133
:cond_af
const-wide/16 v2, 0x0
.line 1135
:cond_b1
if-eqz p3, :cond_69
.line 1136
long-to-int v1, v2
invoke-virtual {p3, v1}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v1
invoke-virtual {p3, v1}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v1
const/16 v2, 0xff
if-eq v1, v2, :cond_69
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto :goto_69
.line 1082
:catch_ca
move-exception v0
.line 1083
:try_start_cb
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->ParamError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1084
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Lorg/apache/http/client/ClientProtocolException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->ParamError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_f2
.catchall {:try_start_cb .. :try_end_f2} :catchall_4d6
.line 1126
if-eqz p0, :cond_fb
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_fb
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_10d
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_10f
.line 1133
:cond_10d
const-wide/16 v0, 0x0
.line 1135
:cond_10f
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
.line 1151
:cond_127
:goto_127
const/4 v0, 0x0
goto/16 :goto_69
.line 1085
:catch_12a
move-exception v0
.line 1086
:try_start_12b
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->Timeout:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1087
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Ljava/net/SocketTimeoutException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->Timeout:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_152
.catchall {:try_start_12b .. :try_end_152} :catchall_4d6
.line 1126
if-eqz p0, :cond_15b
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_15b
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_16d
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_16f
.line 1133
:cond_16d
const-wide/16 v0, 0x0
.line 1135
:cond_16f
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto :goto_127
.line 1088
:catch_188
move-exception v0
.line 1089
:try_start_189
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->NetworkError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1090
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Ljava/net/ConnectException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->NetworkError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_1b0
.catchall {:try_start_189 .. :try_end_1b0} :catchall_4d6
.line 1126
if-eqz p0, :cond_1b9
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_1b9
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_1cb
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_1cd
.line 1133
:cond_1cb
const-wide/16 v0, 0x0
.line 1135
:cond_1cd
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1091
:catch_1e7
move-exception v0
.line 1092
:try_start_1e8
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->NetworkError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1093
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Ljava/net/SocketException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->NetworkError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_20f
.catchall {:try_start_1e8 .. :try_end_20f} :catchall_4d6
.line 1126
if-eqz p0, :cond_218
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_218
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_22a
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_22c
.line 1133
:cond_22a
const-wide/16 v0, 0x0
.line 1135
:cond_22c
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1094
:catch_246
move-exception v0
.line 1095
:try_start_247
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->ParamError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1096
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Ljava/net/MalformedURLException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->ParamError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_26e
.catchall {:try_start_247 .. :try_end_26e} :catchall_4d6
.line 1126
if-eqz p0, :cond_277
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_277
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_289
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_28b
.line 1133
:cond_289
const-wide/16 v0, 0x0
.line 1135
:cond_28b
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1097
:catch_2a5
move-exception v0
.line 1098
:try_start_2a6
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->Timeout:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1099
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Lorg/apache/http/conn/ConnectionPoolTimeoutException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->Timeout:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_2cd
.catchall {:try_start_2a6 .. :try_end_2cd} :catchall_4d6
.line 1126
if-eqz p0, :cond_2d6
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_2d6
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_2e8
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_2ea
.line 1133
:cond_2e8
const-wide/16 v0, 0x0
.line 1135
:cond_2ea
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1100
:catch_304
move-exception v0
.line 1101
:try_start_305
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->Timeout:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1102
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Lorg/apache/http/conn/ConnectTimeoutException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->Timeout:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_32c
.catchall {:try_start_305 .. :try_end_32c} :catchall_4d6
.line 1126
if-eqz p0, :cond_335
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_335
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_347
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_349
.line 1133
:cond_347
const-wide/16 v0, 0x0
.line 1135
:cond_349
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1103
:catch_363
move-exception v0
.line 1104
:try_start_364
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->NeedReRequst:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1105
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Lorg/apache/http/NoHttpResponseException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->NeedReRequst:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_38b
.catchall {:try_start_364 .. :try_end_38b} :catchall_4d6
.line 1126
if-eqz p0, :cond_394
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_394
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_3a6
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_3a8
.line 1133
:cond_3a6
const-wide/16 v0, 0x0
.line 1135
:cond_3a8
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1106
:catch_3c2
move-exception v0
.line 1108
:try_start_3c3
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Ljava/lang/NullPointerException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "(NPE)"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 1109
sget-object v0, Lcom/cleanmaster/net/Response$ResponseCode;->NeedReRequst:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v0}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
:try_end_3de
.catchall {:try_start_3c3 .. :try_end_3de} :catchall_4d6
.line 1126
if-eqz p0, :cond_3e7
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_3e7
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_3f9
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_3fb
.line 1133
:cond_3f9
const-wide/16 v0, 0x0
.line 1135
:cond_3fb
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1110
:catch_415
move-exception v0
move-object v1, v2
.line 1111
:goto_417
:try_start_417
sget-object v2, Lcom/cleanmaster/net/Response$ResponseCode;->IOError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v2}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1113
new-instance v2, Ljava/io/StringWriter;
invoke-direct {v2}, Ljava/io/StringWriter;-><init>()V
.line 1114
new-instance v3, Ljava/io/PrintWriter;
invoke-direct {v3, v2}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V
.line 1115
invoke-virtual {v0, v3}, Ljava/io/IOException;->printStackTrace(Ljava/io/PrintWriter;)V
.line 1116
invoke-virtual {v2}, Ljava/io/StringWriter;->toString()Ljava/lang/String;
move-result-object v2
.line 1118
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_449
.line 1119
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Ljava/io/IOException;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v2, "(IO)"
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 1121
:cond_449
invoke-virtual {v1}, Lorg/apache/http/client/methods/HttpGet;->abort()V
:try_end_44c
.catchall {:try_start_417 .. :try_end_44c} :catchall_4d6
.line 1126
if-eqz p0, :cond_455
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_455
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_467
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_469
.line 1133
:cond_467
const-wide/16 v0, 0x0
.line 1135
:cond_469
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1122
:catch_483
move-exception v0
.line 1123
:try_start_484
sget-object v1, Lcom/cleanmaster/net/Response$ResponseCode;->NetworkError:Lcom/cleanmaster/net/Response$ResponseCode;
invoke-virtual {v6, v1}, Lcom/cleanmaster/net/Response;->setResponseCode(Lcom/cleanmaster/net/Response$ResponseCode;)V
.line 1124
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "(UNKNOW)"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_49f
.catchall {:try_start_484 .. :try_end_49f} :catchall_4d6
.line 1126
if-eqz p0, :cond_4a8
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v0
invoke-interface {v0}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_4a8
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 1131
sub-long/2addr v0, v4
.line 1132
const-wide/32 v2, 0x7fffffff
cmp-long v2, v0, v2
if-gtz v2, :cond_4ba
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-gez v2, :cond_4bc
.line 1133
:cond_4ba
const-wide/16 v0, 0x0
.line 1135
:cond_4bc
if-eqz p3, :cond_127
.line 1136
long-to-int v0, v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
invoke-virtual {p3, v0}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v0
const/16 v1, 0xff
if-eq v0, v1, :cond_127
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
goto/16 :goto_127
.line 1126
:catchall_4d6
move-exception v0
if-eqz p0, :cond_4e0
.line 1127
invoke-interface {p0}, Lorg/apache/http/client/HttpClient;->getConnectionManager()Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v1
invoke-interface {v1}, Lorg/apache/http/conn/ClientConnectionManager;->shutdown()V
.line 1130
:cond_4e0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
.line 1131
sub-long/2addr v2, v4
.line 1132
const-wide/32 v4, 0x7fffffff
cmp-long v1, v2, v4
if-gtz v1, :cond_4f2
const-wide/16 v4, 0x0
cmp-long v1, v2, v4
if-gez v1, :cond_4f4
.line 1133
:cond_4f2
const-wide/16 v2, 0x0
.line 1135
:cond_4f4
if-eqz p3, :cond_50c
.line 1136
long-to-int v1, v2
invoke-virtual {p3, v1}, Lcom/cmcm/ad/d/a/n;->e(I)Lcom/cmcm/ad/d/a/n;
.line 1137
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v1
invoke-virtual {p3, v1}, Lcom/cmcm/ad/d/a/n;->b(I)Lcom/cmcm/ad/d/a/n;
.line 1138
invoke-virtual {v6}, Lcom/cleanmaster/net/Response;->getResponseCodeInt()I
move-result v1
const/16 v2, 0xff
if-eq v1, v2, :cond_50c
.line 1139
invoke-virtual {p3, p1}, Lcom/cmcm/ad/d/a/n;->h(Ljava/lang/String;)Lcom/cmcm/ad/d/a/n;
.line 1150
:cond_50c
throw v0
.line 1110
:catch_50d
move-exception v0
goto/16 :goto_417
:cond_510
move-object v0, v2
goto/16 :goto_90
.end method
.method protected static a()Lorg/apache/http/client/HttpClient;
.registers 5
.prologue
const/16 v4, 0x4e20
.line 1291
new-instance v0, Lorg/apache/http/params/BasicHttpParams;
invoke-direct {v0}, Lorg/apache/http/params/BasicHttpParams;-><init>()V
.line 1292
const/4 v1, 0x1
invoke-static {v0, v1}, Lorg/apache/http/conn/params/ConnManagerParams;->setMaxTotalConnections(Lorg/apache/http/params/HttpParams;I)V
.line 1293
const-wide/16 v2, 0x4e20
invoke-static {v0, v2, v3}, Lorg/apache/http/conn/params/ConnManagerParams;->setTimeout(Lorg/apache/http/params/HttpParams;J)V
.line 1294
invoke-static {v0, v4}, Lorg/apache/http/params/HttpConnectionParams;->setConnectionTimeout(Lorg/apache/http/params/HttpParams;I)V
.line 1295
invoke-static {v0, v4}, Lorg/apache/http/params/HttpConnectionParams;->setSoTimeout(Lorg/apache/http/params/HttpParams;I)V
.line 1297
new-instance v1, Lorg/apache/http/impl/client/DefaultHttpClient;
invoke-static {v0}, Lcom/cmcm/ad/data/dataProvider/adlogic/b/b;->a(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/conn/ClientConnectionManager;
move-result-object v2
invoke-direct {v1, v2, v0}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>(Lorg/apache/http/conn/ClientConnectionManager;Lorg/apache/http/params/HttpParams;)V
.line 1299
invoke-interface {v1}, Lorg/apache/http/client/HttpClient;->getParams()Lorg/apache/http/params/HttpParams;
move-result-object v0
const-string v2, "http.useragent"
invoke-static {}, Lcom/cmcm/ad/data/dataProvider/adlogic/b/b;->e()Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v2, v3}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;
.line 1300
return-object v1
.end method