apkfuckery/com.discord/smali/okhttp3/internal/j/a.smali

1277 lines
28 KiB
Smali
Raw Normal View History

2019-02-27 21:13:14 +00:00
.class public final Lokhttp3/internal/j/a;
2019-02-04 20:08:30 +00:00
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "RealWebSocket.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Lokhttp3/WebSocket;
2019-02-27 21:13:14 +00:00
.implements Lokhttp3/internal/j/c$a;
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-02-27 21:13:14 +00:00
Lokhttp3/internal/j/a$a;,
Lokhttp3/internal/j/a$e;,
Lokhttp3/internal/j/a$b;,
Lokhttp3/internal/j/a$c;,
Lokhttp3/internal/j/a$d;
2019-02-04 20:08:30 +00:00
}
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z
2019-05-04 02:59:52 +00:00
.field public static final bvf:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/u;",
">;"
}
.end annotation
.end field
# instance fields
2019-05-04 02:59:52 +00:00
.field public final bpM:Lokhttp3/w;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
.field public brJ:Lokhttp3/e;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
.field bts:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
.field final bvg:Lokhttp3/WebSocketListener;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
.field final bvh:J
2019-02-17 02:24:41 +00:00
2019-05-04 02:59:52 +00:00
.field private final bvi:Ljava/lang/Runnable;
2019-02-17 02:24:41 +00:00
2019-05-04 02:59:52 +00:00
.field private bvj:Lokhttp3/internal/j/c;
2019-04-03 00:06:05 +00:00
2019-05-04 02:59:52 +00:00
.field bvk:Lokhttp3/internal/j/d;
2019-04-03 00:06:05 +00:00
2019-05-04 02:59:52 +00:00
.field private bvl:Lokhttp3/internal/j/a$e;
2019-04-11 23:08:29 +00:00
2019-05-04 02:59:52 +00:00
.field private final bvm:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
"Lokio/ByteString;",
">;"
}
.end annotation
.end field
2019-05-04 02:59:52 +00:00
.field private final bvn:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
2019-05-04 02:59:52 +00:00
.field private bvo:J
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
.field private bvp:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
.field private bvq:Ljava/util/concurrent/ScheduledFuture;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/ScheduledFuture<",
"*>;"
}
.end annotation
.end field
2019-05-04 02:59:52 +00:00
.field private bvr:I
2019-02-06 20:30:57 +00:00
2019-05-04 02:59:52 +00:00
.field private bvs:Ljava/lang/String;
2019-02-06 20:30:57 +00:00
2019-05-04 02:59:52 +00:00
.field bvt:Z
2019-02-06 20:30:57 +00:00
2019-05-04 02:59:52 +00:00
.field bvu:I
2019-02-06 20:30:57 +00:00
2019-05-04 02:59:52 +00:00
.field private bvv:I
2019-02-06 20:30:57 +00:00
2019-05-04 02:59:52 +00:00
.field private bvw:I
2019-02-22 00:19:04 +00:00
2019-02-04 20:08:30 +00:00
.field public final key:Ljava/lang/String;
2019-05-03 18:53:54 +00:00
.field private no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
.field private final random:Ljava/util/Random;
# direct methods
.method static constructor <clinit>()V
.locals 1
2019-05-04 02:59:52 +00:00
sget-object v0, Lokhttp3/u;->bpC:Lokhttp3/u;
2019-02-04 20:08:30 +00:00
invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
2019-05-04 02:59:52 +00:00
sput-object v0, Lokhttp3/internal/j/a;->bvf:Ljava/util/List;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method public constructor <init>(Lokhttp3/w;Lokhttp3/WebSocketListener;Ljava/util/Random;J)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/ArrayDeque;
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2019-05-04 02:59:52 +00:00
iput-object v0, p0, Lokhttp3/internal/j/a;->bvm:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
new-instance v0, Ljava/util/ArrayDeque;
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2019-05-04 02:59:52 +00:00
iput-object v0, p0, Lokhttp3/internal/j/a;->bvn:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
const/4 v0, -0x1
2019-05-04 02:59:52 +00:00
iput v0, p0, Lokhttp3/internal/j/a;->bvr:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p1, Lokhttp3/w;->method:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v1, "GET"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
move-result v0
if-eqz v0, :cond_0
2019-05-04 02:59:52 +00:00
iput-object p1, p0, Lokhttp3/internal/j/a;->bpM:Lokhttp3/w;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-object p2, p0, Lokhttp3/internal/j/a;->bvg:Lokhttp3/WebSocketListener;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iput-object p3, p0, Lokhttp3/internal/j/a;->random:Ljava/util/Random;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-wide p4, p0, Lokhttp3/internal/j/a;->bvh:J
2019-02-04 20:08:30 +00:00
const/16 p1, 0x10
new-array p1, p1, [B
invoke-virtual {p3, p1}, Ljava/util/Random;->nextBytes([B)V
2019-05-03 18:53:54 +00:00
invoke-static {p1}, Lokio/ByteString;->F([B)Lokio/ByteString;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-05-04 02:59:52 +00:00
invoke-virtual {p1}, Lokio/ByteString;->DU()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-27 21:13:14 +00:00
iput-object p1, p0, Lokhttp3/internal/j/a;->key:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance p1, Lokhttp3/internal/j/a$1;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {p1, p0}, Lokhttp3/internal/j/a$1;-><init>(Lokhttp3/internal/j/a;)V
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-object p1, p0, Lokhttp3/internal/j/a;->bvi:Ljava/lang/Runnable;
2019-02-04 20:08:30 +00:00
return-void
:cond_0
new-instance p2, Ljava/lang/IllegalArgumentException;
new-instance p3, Ljava/lang/StringBuilder;
const-string p4, "Request must be GET: "
invoke-direct {p3, p4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p1, p1, Lokhttp3/w;->method:Ljava/lang/String;
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
.end method
2019-05-04 02:59:52 +00:00
.method private Dy()V
2019-02-04 20:08:30 +00:00
.locals 2
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvi:Ljava/lang/Runnable;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
:cond_0
return-void
.end method
2019-02-27 21:13:14 +00:00
.method private declared-synchronized f(Lokio/ByteString;)Z
.locals 6
2019-02-04 20:08:30 +00:00
monitor-enter p0
:try_start_0
2019-05-04 02:59:52 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/a;->bvt:Z
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
2019-02-27 21:13:14 +00:00
if-nez v0, :cond_2
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/a;->bvp:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v0, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_0
2019-05-04 02:59:52 +00:00
iget-wide v2, p0, Lokhttp3/internal/j/a;->bvo:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {p1}, Lokio/ByteString;->size()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
int-to-long v4, v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
add-long/2addr v2, v4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/32 v4, 0x1000000
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v0, v2, v4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-lez v0, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/16 p1, 0x3e9
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {p0, p1, v0}, Lokhttp3/internal/j/a;->h(ILjava/lang/String;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
monitor-exit p0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_1
:try_start_1
2019-05-04 02:59:52 +00:00
iget-wide v0, p0, Lokhttp3/internal/j/a;->bvo:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {p1}, Lokio/ByteString;->size()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
int-to-long v2, v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
add-long/2addr v0, v2
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-wide v0, p0, Lokhttp3/internal/j/a;->bvo:J
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvn:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v1, Lokhttp3/internal/j/a$c;
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
const/4 v2, 0x1
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v1, v2, p1}, Lokhttp3/internal/j/a$c;-><init>(ILokio/ByteString;)V
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, v1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2019-02-27 00:16:35 +00:00
2019-05-04 02:59:52 +00:00
invoke-direct {p0}, Lokhttp3/internal/j/a;->Dy()V
2019-02-27 21:13:14 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
monitor-exit p0
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
return v2
2019-02-04 20:08:30 +00:00
:cond_2
2019-02-27 21:13:14 +00:00
:goto_0
2019-02-04 20:08:30 +00:00
monitor-exit p0
return v1
2019-02-27 21:13:14 +00:00
:catchall_0
move-exception p1
2019-02-04 20:08:30 +00:00
2019-02-27 00:16:35 +00:00
monitor-exit p0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw p1
.end method
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
.method private declared-synchronized h(ILjava/lang/String;)Z
.locals 6
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
monitor-enter p0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:try_start_0
2019-05-04 02:59:52 +00:00
invoke-static {p1}, Lokhttp3/internal/j/b;->du(I)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz p2, :cond_1
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {p2}, Lokio/ByteString;->ep(Ljava/lang/String;)Lokio/ByteString;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/ByteString;->size()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
int-to-long v1, v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v3, 0x7b
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v5, v1, v3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-gtz v5, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-string v0, "reason.size() > 123: "
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object p2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object p2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw p1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_1
:goto_0
2019-05-04 02:59:52 +00:00
iget-boolean p2, p0, Lokhttp3/internal/j/a;->bvt:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez p2, :cond_3
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-boolean p2, p0, Lokhttp3/internal/j/a;->bvp:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz p2, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_1
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
:cond_2
const/4 p2, 0x1
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-boolean p2, p0, Lokhttp3/internal/j/a;->bvp:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvn:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v2, Lokhttp3/internal/j/a$b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/32 v3, 0xea60
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v2, p1, v0, v3, v4}, Lokhttp3/internal/j/a$b;-><init>(ILokio/ByteString;J)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v1, v2}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2019-02-27 00:16:35 +00:00
2019-05-04 02:59:52 +00:00
invoke-direct {p0}, Lokhttp3/internal/j/a;->Dy()V
2019-02-27 21:13:14 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
monitor-exit p0
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
return p2
:cond_3
:goto_1
const/4 p1, 0x0
2019-02-04 20:08:30 +00:00
monitor-exit p0
2019-02-27 21:13:14 +00:00
return p1
2019-02-04 20:08:30 +00:00
:catchall_0
2019-02-27 21:13:14 +00:00
move-exception p1
2019-02-04 20:08:30 +00:00
monitor-exit p0
2019-02-27 21:13:14 +00:00
throw p1
.end method
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
# virtual methods
2019-05-04 02:59:52 +00:00
.method public final Dw()V
2019-02-27 21:13:14 +00:00
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:goto_0
2019-05-04 02:59:52 +00:00
iget v0, p0, Lokhttp3/internal/j/a;->bvr:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v1, -0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-ne v0, v1, :cond_4
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvj:Lokhttp3/internal/j/c;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v0}, Lokhttp3/internal/j/c;->DA()V
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-boolean v1, v0, Lokhttp3/internal/j/c;->bvH:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v1, :cond_0
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v0}, Lokhttp3/internal/j/c;->DB()V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_0
iget v1, v0, Lokhttp3/internal/j/c;->opcode:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v2, 0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eq v1, v2, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v3, 0x2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-ne v1, v3, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_1
new-instance v0, Ljava/net/ProtocolException;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v2, Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-string v3, "Unknown opcode: "
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw v0
:cond_2
2019-02-04 20:08:30 +00:00
:goto_1
2019-05-04 02:59:52 +00:00
invoke-virtual {v0}, Lokhttp3/internal/j/c;->DD()V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-ne v1, v2, :cond_3
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v1, v0, Lokhttp3/internal/j/c;->bvE:Lokhttp3/internal/j/c$a;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v0, v0, Lokhttp3/internal/j/c;->bvJ:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v0}, Lokio/c;->DO()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-interface {v1, v0}, Lokhttp3/internal/j/c$a;->em(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_3
2019-05-04 02:59:52 +00:00
iget-object v1, v0, Lokhttp3/internal/j/c;->bvE:Lokhttp3/internal/j/c$a;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v0, v0, Lokhttp3/internal/j/c;->bvJ:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v0}, Lokio/c;->CU()Lokio/ByteString;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {v1, v0}, Lokhttp3/internal/j/c$a;->d(Lokio/ByteString;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_0
:cond_4
return-void
2019-02-04 20:08:30 +00:00
.end method
2019-05-04 02:59:52 +00:00
.method public final declared-synchronized Dx()V
2019-02-27 21:13:14 +00:00
.locals 1
2019-02-04 20:08:30 +00:00
monitor-enter p0
:try_start_0
2019-05-04 02:59:52 +00:00
iget v0, p0, Lokhttp3/internal/j/a;->bvw:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
add-int/lit8 v0, v0, 0x1
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput v0, p0, Lokhttp3/internal/j/a;->bvw:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-boolean v0, p0, Lokhttp3/internal/j/a;->bts:Z
2019-02-27 21:13:14 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
monitor-exit p0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return-void
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:catchall_0
move-exception v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
monitor-exit p0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw v0
.end method
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
.method final Dz()Z
2019-02-27 21:13:14 +00:00
.locals 12
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
monitor-enter p0
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
:try_start_0
2019-05-04 02:59:52 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/a;->bvt:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v0, :cond_0
2019-02-04 20:08:30 +00:00
monitor-exit p0
return v1
2019-02-27 21:13:14 +00:00
:cond_0
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvk:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v2, p0, Lokhttp3/internal/j/a;->bvm:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v2}, Ljava/util/ArrayDeque;->poll()Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
check-cast v2, Lokio/ByteString;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v3, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v2, :cond_4
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v4, p0, Lokhttp3/internal/j/a;->bvn:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v4}, Ljava/util/ArrayDeque;->poll()Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
instance-of v5, v4, Lokhttp3/internal/j/a$b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v5, :cond_2
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget v5, p0, Lokhttp3/internal/j/a;->bvr:I
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v6, p0, Lokhttp3/internal/j/a;->bvs:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v7, -0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eq v5, v7, :cond_1
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v7, p0, Lokhttp3/internal/j/a;->bvl:Lokhttp3/internal/j/a$e;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-object v3, p0, Lokhttp3/internal/j/a;->bvl:Lokhttp3/internal/j/a$e;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v3, p0, Lokhttp3/internal/j/a;->no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {v3}, Ljava/util/concurrent/ScheduledExecutorService;->shutdown()V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-object v3, v7
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_1
2019-05-03 18:53:54 +00:00
iget-object v7, p0, Lokhttp3/internal/j/a;->no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v8, Lokhttp3/internal/j/a$a;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v8, p0}, Lokhttp3/internal/j/a$a;-><init>(Lokhttp3/internal/j/a;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-object v9, v4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
check-cast v9, Lokhttp3/internal/j/a$b;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-wide v9, v9, Lokhttp3/internal/j/a$b;->bvA:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
sget-object v11, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {v7, v8, v9, v10, v11}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v7
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-object v7, p0, Lokhttp3/internal/j/a;->bvq:Ljava/util/concurrent/ScheduledFuture;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_2
if-nez v4, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
monitor-exit p0
2019-02-04 20:29:01 +00:00
2019-02-27 21:13:14 +00:00
return v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_3
move-object v6, v3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_4
move-object v4, v3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-object v6, v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:goto_0
2019-02-27 21:13:14 +00:00
const/4 v5, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:goto_1
2019-02-27 21:13:14 +00:00
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v7, 0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v2, :cond_5
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/16 v1, 0xa
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:try_start_1
invoke-virtual {v0, v1, v2}, Lokhttp3/internal/j/d;->a(ILokio/ByteString;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto/16 :goto_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_5
instance-of v2, v4, Lokhttp3/internal/j/a$c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v2, :cond_7
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-object v2, v4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
check-cast v2, Lokhttp3/internal/j/a$c;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v2, v2, Lokhttp3/internal/j/a$c;->bvC:Lokio/ByteString;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
check-cast v4, Lokhttp3/internal/j/a$c;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget v4, v4, Lokhttp3/internal/j/a$c;->bvB:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v2}, Lokio/ByteString;->size()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v5
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
int-to-long v5, v5
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-boolean v8, v0, Lokhttp3/internal/j/d;->bvQ:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v8, :cond_6
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-boolean v7, v0, Lokhttp3/internal/j/d;->bvQ:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v8, v0, Lokhttp3/internal/j/d;->bvP:Lokhttp3/internal/j/d$a;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput v4, v8, Lokhttp3/internal/j/d$a;->bvB:I
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v4, v0, Lokhttp3/internal/j/d;->bvP:Lokhttp3/internal/j/d$a;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iput-wide v5, v4, Lokhttp3/internal/j/d$a;->contentLength:J
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v4, v0, Lokhttp3/internal/j/d;->bvP:Lokhttp3/internal/j/d$a;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-boolean v7, v4, Lokhttp3/internal/j/d$a;->bvR:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v4, v0, Lokhttp3/internal/j/d;->bvP:Lokhttp3/internal/j/d$a;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iput-boolean v1, v4, Lokhttp3/internal/j/d$a;->closed:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v0, v0, Lokhttp3/internal/j/d;->bvP:Lokhttp3/internal/j/d$a;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {v0}, Lokio/j;->b(Lokio/p;)Lokio/BufferedSink;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {v0, v2}, Lokio/BufferedSink;->i(Lokio/ByteString;)Lokio/BufferedSink;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {v0}, Lokio/BufferedSink;->close()V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
monitor-enter p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:try_start_2
2019-05-04 02:59:52 +00:00
iget-wide v0, p0, Lokhttp3/internal/j/a;->bvo:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v2}, Lokio/ByteString;->size()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
int-to-long v4, v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
sub-long/2addr v0, v4
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-wide v0, p0, Lokhttp3/internal/j/a;->bvo:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
monitor-exit p0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:catchall_0
move-exception v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:try_start_3
throw v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_6
new-instance v0, Ljava/lang/IllegalStateException;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-string v1, "Another message writer is active. Did you call close()?"
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_7
instance-of v1, v4, Lokhttp3/internal/j/a$b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v1, :cond_d
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
check-cast v4, Lokhttp3/internal/j/a$b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v1, v4, Lokhttp3/internal/j/a$b;->code:I
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v2, v4, Lokhttp3/internal/j/a$b;->bvz:Lokio/ByteString;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
sget-object v4, Lokio/ByteString;->bwt:Lokio/ByteString;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v1, :cond_8
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v2, :cond_b
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_8
if-eqz v1, :cond_9
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {v1}, Lokhttp3/internal/j/b;->du(I)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_9
new-instance v4, Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v4}, Lokio/c;-><init>()V
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v4, v1}, Lokio/c;->dy(I)Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v2, :cond_a
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v4, v2}, Lokio/c;->g(Lokio/ByteString;)Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_a
2019-05-04 02:59:52 +00:00
invoke-virtual {v4}, Lokio/c;->CU()Lokio/ByteString;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v4
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_b
const/16 v1, 0x8
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:try_start_4
invoke-virtual {v0, v1, v4}, Lokhttp3/internal/j/d;->a(ILokio/ByteString;)V
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:try_start_5
2019-05-04 02:59:52 +00:00
iput-boolean v7, v0, Lokhttp3/internal/j/d;->bvN:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v3, :cond_c
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvg:Lokhttp3/WebSocketListener;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, p0, v5, v6}, Lokhttp3/WebSocketListener;->onClosed(Lokhttp3/WebSocket;ILjava/lang/String;)V
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_c
2019-05-03 18:53:54 +00:00
:goto_2
2019-02-27 21:13:14 +00:00
invoke-static {v3}, Lokhttp3/internal/c;->closeQuietly(Ljava/io/Closeable;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return v7
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:catchall_1
move-exception v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:try_start_6
2019-05-04 02:59:52 +00:00
iput-boolean v7, v0, Lokhttp3/internal/j/d;->bvN:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw v1
2019-02-04 20:29:01 +00:00
2019-02-27 21:13:14 +00:00
:cond_d
new-instance v0, Ljava/lang/AssertionError;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw v0
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:catchall_2
move-exception v0
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {v3}, Lokhttp3/internal/c;->closeQuietly(Ljava/io/Closeable;)V
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
throw v0
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
:catchall_3
2019-02-04 20:08:30 +00:00
move-exception v0
2019-02-27 21:13:14 +00:00
:try_start_7
2019-02-04 20:08:30 +00:00
monitor-exit p0
2019-02-27 21:13:14 +00:00
:try_end_7
.catchall {:try_start_7 .. :try_end_7} :catchall_3
2019-02-04 20:08:30 +00:00
throw v0
.end method
.method public final a(Ljava/lang/Exception;Lokhttp3/Response;)V
.locals 3
.param p2 # Lokhttp3/Response;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
monitor-enter p0
:try_start_0
2019-05-04 02:59:52 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/a;->bvt:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
const/4 v0, 0x1
2019-05-04 02:59:52 +00:00
iput-boolean v0, p0, Lokhttp3/internal/j/a;->bvt:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvl:Lokhttp3/internal/j/a$e;
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
2019-05-04 02:59:52 +00:00
iput-object v1, p0, Lokhttp3/internal/j/a;->bvl:Lokhttp3/internal/j/a$e;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvq:Ljava/util/concurrent/ScheduledFuture;
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_1
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvq:Ljava/util/concurrent/ScheduledFuture;
2019-02-04 20:08:30 +00:00
const/4 v2, 0x0
invoke-interface {v1, v2}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
:cond_1
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_2
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
invoke-interface {v1}, Ljava/util/concurrent/ScheduledExecutorService;->shutdown()V
:cond_2
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvg:Lokhttp3/WebSocketListener;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, p0, p1, p2}, Lokhttp3/WebSocketListener;->onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-static {v0}, Lokhttp3/internal/c;->closeQuietly(Ljava/io/Closeable;)V
return-void
:catchall_0
move-exception p1
invoke-static {v0}, Lokhttp3/internal/c;->closeQuietly(Ljava/io/Closeable;)V
throw p1
:catchall_1
move-exception p1
:try_start_2
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
throw p1
.end method
2019-02-27 21:13:14 +00:00
.method public final a(Ljava/lang/String;Lokhttp3/internal/j/a$e;)V
2019-02-04 20:08:30 +00:00
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
2019-05-04 02:59:52 +00:00
iput-object p2, p0, Lokhttp3/internal/j/a;->bvl:Lokhttp3/internal/j/a$e;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v0, Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-boolean v1, p2, Lokhttp3/internal/j/a$e;->btk:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v2, p2, Lokhttp3/internal/j/a$e;->brA:Lokio/BufferedSink;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-object v3, p0, Lokhttp3/internal/j/a;->random:Ljava/util/Random;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v0, v1, v2, v3}, Lokhttp3/internal/j/d;-><init>(ZLokio/BufferedSink;Ljava/util/Random;)V
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-object v0, p0, Lokhttp3/internal/j/a;->bvk:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
new-instance v0, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
const/4 v1, 0x1
const/4 v2, 0x0
2019-05-04 02:59:52 +00:00
invoke-static {p1, v2}, Lokhttp3/internal/c;->i(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
2019-02-04 20:08:30 +00:00
move-result-object p1
invoke-direct {v0, v1, p1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;)V
2019-05-03 18:53:54 +00:00
iput-object v0, p0, Lokhttp3/internal/j/a;->no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-wide v0, p0, Lokhttp3/internal/j/a;->bvh:J
2019-02-04 20:08:30 +00:00
const-wide/16 v2, 0x0
cmp-long p1, v0, v2
if-eqz p1, :cond_0
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v1, Lokhttp3/internal/j/a$d;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v1, p0}, Lokhttp3/internal/j/a$d;-><init>(Lokhttp3/internal/j/a;)V
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-wide v2, p0, Lokhttp3/internal/j/a;->bvh:J
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-wide v4, p0, Lokhttp3/internal/j/a;->bvh:J
2019-02-04 20:08:30 +00:00
sget-object v6, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-interface/range {v0 .. v6}, Ljava/util/concurrent/ScheduledExecutorService;->scheduleAtFixedRate(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
:cond_0
2019-05-04 02:59:52 +00:00
iget-object p1, p0, Lokhttp3/internal/j/a;->bvn:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/util/ArrayDeque;->isEmpty()Z
move-result p1
if-nez p1, :cond_1
2019-05-04 02:59:52 +00:00
invoke-direct {p0}, Lokhttp3/internal/j/a;->Dy()V
2019-02-04 20:08:30 +00:00
:cond_1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-02-27 21:13:14 +00:00
new-instance p1, Lokhttp3/internal/j/c;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-boolean v0, p2, Lokhttp3/internal/j/a$e;->btk:Z
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object p2, p2, Lokhttp3/internal/j/a$e;->bqm:Lokio/d;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {p1, v0, p2, p0}, Lokhttp3/internal/j/c;-><init>(ZLokio/d;Lokhttp3/internal/j/c$a;)V
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-object p1, p0, Lokhttp3/internal/j/a;->bvj:Lokhttp3/internal/j/c;
2019-02-04 20:08:30 +00:00
return-void
:catchall_0
move-exception p1
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public final d(Lokio/ByteString;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvg:Lokhttp3/WebSocketListener;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p0, p1}, Lokhttp3/WebSocketListener;->onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V
return-void
.end method
2019-05-04 02:59:52 +00:00
.method public final dZ(Ljava/lang/String;)Z
2019-02-04 20:32:01 +00:00
.locals 1
if-eqz p1, :cond_0
2019-05-04 02:59:52 +00:00
invoke-static {p1}, Lokio/ByteString;->ep(Ljava/lang/String;)Lokio/ByteString;
2019-02-04 20:32:01 +00:00
move-result-object p1
2019-02-27 21:13:14 +00:00
invoke-direct {p0, p1}, Lokhttp3/internal/j/a;->f(Lokio/ByteString;)Z
2019-02-04 20:32:01 +00:00
move-result p1
return p1
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "text == null"
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2019-02-04 20:08:30 +00:00
.method public final declared-synchronized e(Lokio/ByteString;)V
.locals 1
monitor-enter p0
:try_start_0
2019-05-04 02:59:52 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/a;->bvt:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
2019-05-04 02:59:52 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/a;->bvp:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvn:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvm:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
2019-05-04 02:59:52 +00:00
invoke-direct {p0}, Lokhttp3/internal/j/a;->Dy()V
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget p1, p0, Lokhttp3/internal/j/a;->bvv:I
2019-02-04 20:08:30 +00:00
add-int/lit8 p1, p1, 0x1
2019-05-04 02:59:52 +00:00
iput p1, p0, Lokhttp3/internal/j/a;->bvv:I
2019-02-04 20:08:30 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:cond_1
:goto_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-05-04 02:59:52 +00:00
.method public final em(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvg:Lokhttp3/WebSocketListener;
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, p0, p1}, Lokhttp3/WebSocketListener;->onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V
return-void
.end method
2019-02-04 20:32:01 +00:00
.method public final f(ILjava/lang/String;)Z
2019-02-04 20:08:30 +00:00
.locals 0
2019-02-27 21:13:14 +00:00
invoke-direct {p0, p1, p2}, Lokhttp3/internal/j/a;->h(ILjava/lang/String;)Z
2019-02-04 20:08:30 +00:00
move-result p1
return p1
.end method
2019-02-04 20:32:01 +00:00
.method public final g(ILjava/lang/String;)V
2019-02-04 20:08:30 +00:00
.locals 3
const/4 v0, -0x1
if-eq p1, v0, :cond_4
monitor-enter p0
:try_start_0
2019-05-04 02:59:52 +00:00
iget v1, p0, Lokhttp3/internal/j/a;->bvr:I
2019-02-04 20:08:30 +00:00
if-ne v1, v0, :cond_3
2019-05-04 02:59:52 +00:00
iput p1, p0, Lokhttp3/internal/j/a;->bvr:I
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-object p2, p0, Lokhttp3/internal/j/a;->bvs:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/a;->bvp:Z
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
if-eqz v0, :cond_1
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvn:Ljava/util/ArrayDeque;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z
move-result v0
if-eqz v0, :cond_1
2019-05-04 02:59:52 +00:00
iget-object v0, p0, Lokhttp3/internal/j/a;->bvl:Lokhttp3/internal/j/a$e;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iput-object v1, p0, Lokhttp3/internal/j/a;->bvl:Lokhttp3/internal/j/a$e;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvq:Ljava/util/concurrent/ScheduledFuture;
2019-02-04 20:08:30 +00:00
if-eqz v1, :cond_0
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvq:Ljava/util/concurrent/ScheduledFuture;
2019-02-04 20:08:30 +00:00
const/4 v2, 0x0
invoke-interface {v1, v2}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
:cond_0
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->no:Ljava/util/concurrent/ScheduledExecutorService;
2019-02-04 20:08:30 +00:00
invoke-interface {v1}, Ljava/util/concurrent/ScheduledExecutorService;->shutdown()V
goto :goto_0
:cond_1
move-object v0, v1
:goto_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvg:Lokhttp3/WebSocketListener;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, p0, p1, p2}, Lokhttp3/WebSocketListener;->onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V
if-eqz v0, :cond_2
2019-05-04 02:59:52 +00:00
iget-object v1, p0, Lokhttp3/internal/j/a;->bvg:Lokhttp3/WebSocketListener;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, p0, p1, p2}, Lokhttp3/WebSocketListener;->onClosed(Lokhttp3/WebSocket;ILjava/lang/String;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:cond_2
invoke-static {v0}, Lokhttp3/internal/c;->closeQuietly(Ljava/io/Closeable;)V
return-void
:catchall_0
move-exception p1
invoke-static {v0}, Lokhttp3/internal/c;->closeQuietly(Ljava/io/Closeable;)V
throw p1
:cond_3
:try_start_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "already closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_1
move-exception p1
monitor-exit p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
throw p1
:cond_4
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p1
.end method