b.smali
.class public Lk2/b;
.super Lk2/d;
.source "Call.java"
# interfaces
.implements Lj2/h;
# instance fields
.field public final b:Ll2/c;
.field public c:Lj2/i;
.field public final d:Lk2/c;
.field public final e:Ljava/util/concurrent/ScheduledExecutorService;
.field public final f:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lj2/c;",
">;"
}
.end annotation
.end field
.field public final g:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lk2/f;",
">;"
}
.end annotation
.end field
.field public h:Lk2/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lk2/a<",
"Lj2/j;",
">;"
}
.end annotation
.end field
.field public i:Lj2/f;
.field public j:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Ll2/c;Lj2/i;Lk2/c;Ljava/util/concurrent/ScheduledExecutorService;Ljava/util/List;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ll2/c;",
"Lj2/i;",
"Lk2/c;",
"Ljava/util/concurrent/ScheduledExecutorService;",
"Ljava/util/List<",
"Lj2/c;",
">;)V"
}
.end annotation
invoke-direct {p0}, Lk2/d;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Lk2/b;->j:Z
iput-object p1, p0, Lk2/b;->b:Ll2/c;
iput-object p2, p0, Lk2/b;->c:Lj2/i;
iput-object p3, p0, Lk2/b;->d:Lk2/c;
iput-object p4, p0, Lk2/b;->e:Ljava/util/concurrent/ScheduledExecutorService;
iput-object p5, p0, Lk2/b;->f:Ljava/util/List;
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Lk2/b;->g:Ljava/util/List;
return-void
.end method
.method public static synthetic a(Lk2/b;)Lj2/i;
.registers 1
iget-object p0, p0, Lk2/b;->c:Lj2/i;
return-object p0
.end method
.method public static synthetic a(Lk2/b;Lj2/i;)Lj2/i;
.registers 2
iput-object p1, p0, Lk2/b;->c:Lj2/i;
return-object p1
.end method
.method public static synthetic b(Lk2/b;)Ljava/util/List;
.registers 1
iget-object p0, p0, Lk2/b;->f:Ljava/util/List;
return-object p0
.end method
.method public static synthetic c(Lk2/b;)Ljava/util/List;
.registers 1
iget-object p0, p0, Lk2/b;->g:Ljava/util/List;
return-object p0
.end method
.method public static synthetic d(Lk2/b;)Lk2/c;
.registers 1
iget-object p0, p0, Lk2/b;->d:Lk2/c;
return-object p0
.end method
.method public static synthetic e(Lk2/b;)Ljava/util/concurrent/ScheduledExecutorService;
.registers 1
iget-object p0, p0, Lk2/b;->e:Ljava/util/concurrent/ScheduledExecutorService;
return-object p0
.end method
.method public static synthetic f(Lk2/b;)Ll2/c;
.registers 1
iget-object p0, p0, Lk2/b;->b:Ll2/c;
return-object p0
.end method
# virtual methods
.method public a()V
.registers 3
sget-object v0, Lcom/garena/tcpcore/exception/TCPError;->TIMEOUT:Lcom/garena/tcpcore/exception/TCPError;
iget-object v1, p0, Lk2/b;->c:Lj2/i;
invoke-virtual {v1}, Lj2/i;->b()Ll2/e;
move-result-object v1
invoke-virtual {p0, v0, v1}, Lk2/b;->a(Lcom/garena/tcpcore/exception/TCPError;Ll2/e;)V
return-void
.end method
.method public a(Lcom/garena/tcpcore/exception/TCPError;)V
.registers 3
iget-object v0, p0, Lk2/b;->c:Lj2/i;
invoke-virtual {v0}, Lj2/i;->b()Ll2/e;
move-result-object v0
invoke-virtual {p0, p1, v0}, Lk2/b;->a(Lcom/garena/tcpcore/exception/TCPError;Ll2/e;)V
return-void
.end method
.method public final declared-synchronized a(Lcom/garena/tcpcore/exception/TCPError;Ll2/e;)V
.registers 6
monitor-enter p0
:try_start_1
iget-boolean v0, p0, Lk2/b;->j:Z
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_7d
if-eqz v0, :cond_7
monitor-exit p0
return-void
:cond_7
:try_start_7
iget-object v0, p0, Lk2/b;->d:Lk2/c;
invoke-interface {p2}, Ll2/e;->getRequestId()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lk2/c;->c(Ljava/lang/String;)V
invoke-virtual {p0}, Lk2/d;->b()V
new-instance v0, Lj2/j;
invoke-direct {v0, p2, p1}, Lj2/j;-><init>(Ll2/e;Lcom/garena/tcpcore/exception/TCPError;)V
new-instance p1, Lk2/g;
invoke-direct {p1, v0}, Lk2/g;-><init>(Lj2/j;)V
iget-object p2, p0, Lk2/b;->f:Ljava/util/List;
invoke-interface {p2}, Ljava/util/List;->size()I
move-result p2
const/4 v1, 0x1
sub-int/2addr p2, v1
:goto_25
if-ltz p2, :cond_45
iget-object v0, p0, Lk2/b;->g:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lk2/f;
invoke-virtual {p1, v0}, Lk2/g;->a(Lk2/f;)V
iget-object v0, p0, Lk2/b;->f:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lj2/c;
invoke-interface {v0, p1}, Lj2/c;->interceptResponse(Lk2/g;)Lk2/g;
move-result-object p1
invoke-virtual {p1}, Lk2/g;->b()Lj2/j;
move-result-object v0
add-int/lit8 p2, p2, -0x1
goto :goto_25
:cond_45
invoke-virtual {v0}, Lj2/j;->a()Lcom/garena/tcpcore/exception/TCPError;
move-result-object p1
sget-object p2, Lcom/garena/tcpcore/exception/TCPError;->NONE:Lcom/garena/tcpcore/exception/TCPError;
const/4 v2, 0x0
if-ne p1, p2, :cond_64
iget-object p1, p0, Lk2/b;->h:Lk2/a;
if-nez p1, :cond_5e
iget-object p1, p0, Lk2/b;->i:Lj2/f;
if-eqz p1, :cond_73
iget-object p1, p0, Lk2/b;->i:Lj2/f;
iget-object p2, p0, Lk2/b;->c:Lj2/i;
invoke-interface {p1, p2, v0}, Lj2/f;->b(Lj2/i;Lj2/j;)V
goto :goto_73
:cond_5e
iget-object p1, p0, Lk2/b;->h:Lk2/a;
invoke-virtual {p1, v0}, Lk2/a;->a(Ljava/lang/Object;)V
:try_end_63
.catchall {:try_start_7 .. :try_end_63} :catchall_7d
throw v2
:cond_64
:try_start_64
iget-object p1, p0, Lk2/b;->h:Lk2/a;
if-nez p1, :cond_77
iget-object p1, p0, Lk2/b;->i:Lj2/f;
if-eqz p1, :cond_73
iget-object p1, p0, Lk2/b;->i:Lj2/f;
iget-object p2, p0, Lk2/b;->c:Lj2/i;
invoke-interface {p1, p2, v0}, Lj2/f;->a(Lj2/i;Lj2/j;)V
:cond_73
:goto_73
iput-boolean v1, p0, Lk2/b;->j:Z
:try_end_75
.catchall {:try_start_64 .. :try_end_75} :catchall_7d
monitor-exit p0
return-void
:cond_77
:try_start_77
iget-object p1, p0, Lk2/b;->h:Lk2/a;
invoke-virtual {p1, v0}, Lk2/a;->a(Ljava/lang/Object;)V
:try_end_7c
.catchall {:try_start_77 .. :try_end_7c} :catchall_7d
throw v2
:catchall_7d
move-exception p1
monitor-exit p0
goto :goto_81
:goto_80
throw p1
:goto_81
goto :goto_80
.end method
.method public a(Lj2/f;)V
.registers 2
iput-object p1, p0, Lk2/b;->i:Lj2/f;
invoke-virtual {p0}, Lk2/b;->c()V
return-void
.end method
.method public a(Ll2/e;)V
.registers 3
sget-object v0, Lcom/garena/tcpcore/exception/TCPError;->NONE:Lcom/garena/tcpcore/exception/TCPError;
invoke-virtual {p0, v0, p1}, Lk2/b;->a(Lcom/garena/tcpcore/exception/TCPError;Ll2/e;)V
return-void
.end method
.method public final c()V
.registers 3
iget-object v0, p0, Lk2/b;->e:Ljava/util/concurrent/ScheduledExecutorService;
new-instance v1, Lk2/b$a;
invoke-direct {v1, p0}, Lk2/b$a;-><init>(Lk2/b;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method