e.smali
.class public Lcom/masala/share/proto/networkclient/http/e;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/masala/share/proto/networkclient/http/e$a;
}
.end annotation
# static fields
.field private static volatile a:Lcom/masala/share/proto/networkclient/http/e;
# instance fields
.field private b:Lcom/masala/share/proto/networkclient/http/a/d;
# direct methods
.method private constructor <init>()V
.registers 2
.line 79
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 80
new-instance v0, Lcom/masala/share/proto/networkclient/http/a/c;
invoke-direct {v0}, Lcom/masala/share/proto/networkclient/http/a/c;-><init>()V
.line 1012
invoke-static {}, Lcom/masala/share/a;->d()Z
move-result v0
if-eqz v0, :cond_14
.line 1013
new-instance v0, Lcom/masala/share/proto/networkclient/http/a/b;
invoke-direct {v0}, Lcom/masala/share/proto/networkclient/http/a/b;-><init>()V
goto :goto_19
.line 1015
:cond_14
new-instance v0, Lcom/masala/share/proto/networkclient/http/a/a;
invoke-direct {v0}, Lcom/masala/share/proto/networkclient/http/a/a;-><init>()V
.line 80
:goto_19
iput-object v0, p0, Lcom/masala/share/proto/networkclient/http/e;->b:Lcom/masala/share/proto/networkclient/http/a/d;
return-void
.end method
.method private static a(ILcom/masala/share/proto/networkclient/a;)I
.registers 4
const/4 v0, 0x1
const/4 v1, 0x2
if-ne p0, v1, :cond_9
.line 257
invoke-static {}, Lcom/masala/share/proto/networkclient/http/e;->b()Z
move-result p0
goto :goto_1d
:cond_9
const/4 v1, 0x3
if-ne p0, v1, :cond_11
.line 263
invoke-static {p1}, Lcom/masala/share/proto/networkclient/http/e;->a(Lsg/bigo/svcapi/IProtocol;)Z
move-result p0
goto :goto_1d
:cond_11
if-nez p0, :cond_18
.line 269
invoke-static {}, Lcom/masala/share/proto/networkclient/http/e;->b()Z
move-result p0
goto :goto_1d
:cond_18
if-ne p0, v0, :cond_1d
.line 275
invoke-static {p1}, Lcom/masala/share/proto/networkclient/http/e;->a(Lsg/bigo/svcapi/IProtocol;)Z
:cond_1d
:goto_1d
return v0
.end method
.method public static a()Lcom/masala/share/proto/networkclient/http/e;
.registers 2
.line 52
sget-object v0, Lcom/masala/share/proto/networkclient/http/e;->a:Lcom/masala/share/proto/networkclient/http/e;
if-nez v0, :cond_17
.line 53
const-class v0, Lcom/masala/share/proto/networkclient/http/e;
monitor-enter v0
.line 54
:try_start_7
sget-object v1, Lcom/masala/share/proto/networkclient/http/e;->a:Lcom/masala/share/proto/networkclient/http/e;
if-nez v1, :cond_12
.line 55
new-instance v1, Lcom/masala/share/proto/networkclient/http/e;
invoke-direct {v1}, Lcom/masala/share/proto/networkclient/http/e;-><init>()V
sput-object v1, Lcom/masala/share/proto/networkclient/http/e;->a:Lcom/masala/share/proto/networkclient/http/e;
.line 57
:cond_12
monitor-exit v0
goto :goto_17
:catchall_14
move-exception v1
monitor-exit v0
:try_end_16
.catchall {:try_start_7 .. :try_end_16} :catchall_14
throw v1
.line 59
:cond_17
:goto_17
sget-object v0, Lcom/masala/share/proto/networkclient/http/e;->a:Lcom/masala/share/proto/networkclient/http/e;
return-object v0
.end method
.method private a(Lcom/masala/share/proto/networkclient/http/e$a;Lcom/masala/share/proto/networkclient/http/f;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"<P::",
"Lcom/masala/share/proto/networkclient/a;",
"V::",
"Lsg/bigo/svcapi/IProtocol;",
">(",
"Lcom/masala/share/proto/networkclient/http/e$a<",
"TP;>;",
"Lcom/masala/share/proto/networkclient/http/f<",
"TV;>;)V"
}
.end annotation
if-eqz p1, :cond_67
.line 136
iget-object v0, p1, Lcom/masala/share/proto/networkclient/http/e$a;->a:Lcom/masala/share/proto/networkclient/a;
if-eqz v0, :cond_67
.line 141
iget v0, p1, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
iget-object v1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->a:Lcom/masala/share/proto/networkclient/a;
invoke-static {v0, v1}, Lcom/masala/share/proto/networkclient/http/e;->a(ILcom/masala/share/proto/networkclient/a;)I
const/4 v0, 0x1
.line 142
iput v0, p1, Lcom/masala/share/proto/networkclient/http/e$a;->c:I
.line 146
new-instance v0, Lcom/masala/share/proto/networkclient/http/e$1;
invoke-direct {v0, p0, p2, p1}, Lcom/masala/share/proto/networkclient/http/e$1;-><init>(Lcom/masala/share/proto/networkclient/http/e;Lcom/masala/share/proto/networkclient/http/f;Lcom/masala/share/proto/networkclient/http/e$a;)V
.line 188
iget p2, p1, Lcom/masala/share/proto/networkclient/http/e$a;->g:I
const/16 v1, 0x1388
if-le p2, v1, :cond_1e
iget p2, p1, Lcom/masala/share/proto/networkclient/http/e$a;->g:I
goto :goto_24
:cond_1e
iget-boolean p2, p1, Lcom/masala/share/proto/networkclient/http/e$a;->e:Z
invoke-static {p2}, Lsg/bigo/svcapi/YYTimeouts;->bestReadTimeout(Z)I
move-result p2
.line 189
:goto_24
iget v1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->h:I
if-lez v1, :cond_2b
iget v1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->h:I
goto :goto_2c
:cond_2b
const/4 v1, 0x2
.line 190
:goto_2c
new-instance v2, Lsg/bigo/svcapi/ProtoOptions$Builder;
invoke-direct {v2}, Lsg/bigo/svcapi/ProtoOptions$Builder;-><init>()V
const/4 v3, 0x0
.line 191
invoke-virtual {v2, v3}, Lsg/bigo/svcapi/ProtoOptions$Builder;->opt(I)Lsg/bigo/svcapi/ProtoOptions$Builder;
move-result-object v2
.line 192
invoke-virtual {v2, p2}, Lsg/bigo/svcapi/ProtoOptions$Builder;->timeout(I)Lsg/bigo/svcapi/ProtoOptions$Builder;
move-result-object p2
.line 193
invoke-virtual {p2, v1}, Lsg/bigo/svcapi/ProtoOptions$Builder;->resendCount(I)Lsg/bigo/svcapi/ProtoOptions$Builder;
move-result-object p2
.line 194
invoke-virtual {p2, v3}, Lsg/bigo/svcapi/ProtoOptions$Builder;->multiRes(Z)Lsg/bigo/svcapi/ProtoOptions$Builder;
move-result-object p2
iget-boolean v1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->f:Z
.line 195
invoke-virtual {p2, v1}, Lsg/bigo/svcapi/ProtoOptions$Builder;->quickResend(Z)Lsg/bigo/svcapi/ProtoOptions$Builder;
move-result-object p2
iget-byte v1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->i:B
.line 196
invoke-virtual {p2, v1}, Lsg/bigo/svcapi/ProtoOptions$Builder;->tunnel(B)Lsg/bigo/svcapi/ProtoOptions$Builder;
move-result-object p2
iget-boolean v1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->j:Z
.line 197
invoke-virtual {p2, v1}, Lsg/bigo/svcapi/ProtoOptions$Builder;->preSend(Z)Lsg/bigo/svcapi/ProtoOptions$Builder;
move-result-object p2
iget-boolean v1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->k:Z
.line 198
invoke-virtual {p2, v1}, Lsg/bigo/svcapi/ProtoOptions$Builder;->dyncRetry(Z)Lsg/bigo/svcapi/ProtoOptions$Builder;
move-result-object p2
.line 199
invoke-virtual {p2}, Lsg/bigo/svcapi/ProtoOptions$Builder;->build()Lsg/bigo/svcapi/ProtoOptions;
move-result-object p2
.line 200
invoke-static {}, Lsg/bigo/sdk/network/ipc/c;->a()Lsg/bigo/sdk/network/ipc/c;
iget-object p1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->a:Lcom/masala/share/proto/networkclient/a;
invoke-static {p1, v0, p2}, Lsg/bigo/sdk/network/ipc/c;->a(Lsg/bigo/svcapi/IProtocol;Lsg/bigo/svcapi/RequestCallback;Lsg/bigo/svcapi/ProtoOptions;)Z
return-void
.line 137
:cond_67
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "request can not be null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method static synthetic a(Lcom/masala/share/proto/networkclient/http/e;Lcom/masala/share/proto/networkclient/http/e$a;Ljava/lang/Throwable;ILcom/masala/share/proto/networkclient/http/f;)V
.registers 8
.line 1233
iget-boolean v0, p1, Lcom/masala/share/proto/networkclient/http/e$a;->d:Z
if-nez v0, :cond_30
.line 1234
iget v0, p1, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
const/4 v1, 0x2
const/4 v2, 0x1
if-ne v2, v0, :cond_e
iget v0, p1, Lcom/masala/share/proto/networkclient/http/e$a;->c:I
if-eq v1, v0, :cond_16
:cond_e
iget v0, p1, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
if-nez v0, :cond_30
iget v0, p1, Lcom/masala/share/proto/networkclient/http/e$a;->c:I
if-ne v2, v0, :cond_30
.line 1236
:cond_16
iput-boolean v2, p1, Lcom/masala/share/proto/networkclient/http/e$a;->d:Z
.line 1237
iget p2, p1, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
if-ne p2, v2, :cond_1e
.line 1238
iput v1, p1, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
.line 1240
:cond_1e
iget p2, p1, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
if-nez p2, :cond_25
const/4 p2, 0x3
.line 1241
iput p2, p1, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
.line 1243
:cond_25
iget p2, p1, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
iget-object p3, p1, Lcom/masala/share/proto/networkclient/http/e$a;->a:Lcom/masala/share/proto/networkclient/a;
invoke-static {p2, p3}, Lcom/masala/share/proto/networkclient/http/e;->a(ILcom/masala/share/proto/networkclient/a;)I
.line 1244
invoke-direct {p0, p1, p4}, Lcom/masala/share/proto/networkclient/http/e;->a(Lcom/masala/share/proto/networkclient/http/e$a;Lcom/masala/share/proto/networkclient/http/f;)V
return-void
.line 1249
:cond_30
invoke-virtual {p4, p2, p3}, Lcom/masala/share/proto/networkclient/http/f;->onFail(Ljava/lang/Throwable;I)V
return-void
.end method
.method private static a(Lsg/bigo/svcapi/IProtocol;)Z
.registers 2
.line 291
invoke-static {}, Lcom/masala/share/proto/networkclient/http/d;->a()Lcom/masala/share/proto/networkclient/http/d;
move-result-object v0
invoke-interface {p0}, Lsg/bigo/svcapi/IProtocol;->uri()I
move-result p0
invoke-virtual {v0, p0}, Lcom/masala/share/proto/networkclient/http/d;->a(I)Z
move-result p0
return p0
.end method
.method private static b()Z
.registers 1
.line 296
:try_start_0
invoke-static {}, Lcom/masala/share/proto/u;->c()Lcom/masala/share/proto/h;
move-result-object v0
invoke-interface {v0}, Lcom/masala/share/proto/h;->c()Lsg/bigo/svcapi/linkd/ILinkd;
move-result-object v0
invoke-interface {v0}, Lsg/bigo/svcapi/linkd/ILinkd;->isConnected()Z
move-result v0
:try_end_c
.catch Lcom/masala/share/proto/YYServiceUnboundException; {:try_start_0 .. :try_end_c} :catch_d
return v0
:catch_d
const/4 v0, 0x0
return v0
.end method
# virtual methods
.method public a(ILcom/masala/share/proto/networkclient/a;Lcom/masala/share/proto/networkclient/http/f;)V
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"<P::",
"Lcom/masala/share/proto/networkclient/a;",
"V::",
"Lsg/bigo/svcapi/IProtocol;",
">(ITP;",
"Lcom/masala/share/proto/networkclient/http/f<",
"TV;>;)V"
}
.end annotation
.line 118
sget-byte v7, Lsg/bigo/svcapi/ProtoOptions;->TUNNEL_NORMAL:B
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
move-object v0, p0
move v1, p1
move-object v2, p2
move-object v10, p3
invoke-virtual/range {v0 .. v10}, Lcom/masala/share/proto/networkclient/http/e;->a(ILcom/masala/share/proto/networkclient/a;ZZIIBZZLcom/masala/share/proto/networkclient/http/f;)V
return-void
.end method
.method public final a(ILcom/masala/share/proto/networkclient/a;ZZIIBZZLcom/masala/share/proto/networkclient/http/f;)V
.registers 12
.annotation system Ldalvik/annotation/Signature;
value = {
"<P::",
"Lcom/masala/share/proto/networkclient/a;",
"V::",
"Lsg/bigo/svcapi/IProtocol;",
">(ITP;ZZIIBZZ",
"Lcom/masala/share/proto/networkclient/http/f<",
"TV;>;)V"
}
.end annotation
.line 122
new-instance p3, Lcom/masala/share/proto/networkclient/http/e$a;
const/4 v0, 0x0
invoke-direct {p3, p0, v0}, Lcom/masala/share/proto/networkclient/http/e$a;-><init>(Lcom/masala/share/proto/networkclient/http/e;B)V
.line 123
iput-object p2, p3, Lcom/masala/share/proto/networkclient/http/e$a;->a:Lcom/masala/share/proto/networkclient/a;
.line 124
iput p1, p3, Lcom/masala/share/proto/networkclient/http/e$a;->b:I
.line 125
iput-boolean v0, p3, Lcom/masala/share/proto/networkclient/http/e$a;->e:Z
.line 126
iput-boolean p4, p3, Lcom/masala/share/proto/networkclient/http/e$a;->f:Z
.line 127
iput p5, p3, Lcom/masala/share/proto/networkclient/http/e$a;->g:I
.line 128
iput p6, p3, Lcom/masala/share/proto/networkclient/http/e$a;->h:I
.line 129
iput-byte p7, p3, Lcom/masala/share/proto/networkclient/http/e$a;->i:B
.line 130
iput-boolean p8, p3, Lcom/masala/share/proto/networkclient/http/e$a;->j:Z
.line 131
iput-boolean p9, p3, Lcom/masala/share/proto/networkclient/http/e$a;->k:Z
.line 132
invoke-direct {p0, p3, p10}, Lcom/masala/share/proto/networkclient/http/e;->a(Lcom/masala/share/proto/networkclient/http/e$a;Lcom/masala/share/proto/networkclient/http/f;)V
return-void
.end method