apkfuckery/com.discord/smali/okhttp3/internal/e/i.smali

834 lines
17 KiB
Smali
Raw Normal View History

2019-02-27 21:13:14 +00:00
.class public final Lokhttp3/internal/e/i;
2019-02-04 20:08:30 +00:00
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "Http2Stream.java"
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/e/i$c;,
Lokhttp3/internal/e/i$a;,
Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
}
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z
# instance fields
2019-03-26 19:13:28 +00:00
.field final brH:Lokhttp3/internal/e/g;
2019-02-21 02:16:48 +00:00
2019-03-26 19:13:28 +00:00
.field brV:J
2019-03-08 06:19:26 +00:00
2019-03-26 19:13:28 +00:00
.field brW:J
2019-03-08 06:19:26 +00:00
2019-03-26 19:13:28 +00:00
.field bsA:Z
2019-03-16 01:04:31 +00:00
2019-03-26 19:13:28 +00:00
.field final bsB:Lokhttp3/internal/e/i$b;
2019-03-16 01:04:31 +00:00
2019-03-26 19:13:28 +00:00
.field final bsC:Lokhttp3/internal/e/i$a;
2019-03-16 01:04:31 +00:00
2019-03-26 19:13:28 +00:00
.field final bsD:Lokhttp3/internal/e/i$c;
2019-03-16 01:04:31 +00:00
.field final bsE:Lokhttp3/internal/e/i$c;
2019-03-26 19:13:28 +00:00
.field final bsy:Ljava/util/Deque;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-02-17 02:24:41 +00:00
"Ljava/util/Deque<",
"Lokhttp3/Headers;",
2019-02-04 20:08:30 +00:00
">;"
}
.end annotation
.end field
2019-03-26 19:13:28 +00:00
.field private bsz:Lokhttp3/internal/e/c$a;
2019-02-27 21:13:14 +00:00
.field errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
.field final id:I
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
2019-02-27 21:13:14 +00:00
.method constructor <init>(ILokhttp3/internal/e/g;ZZLokhttp3/Headers;)V
2019-02-04 20:08:30 +00:00
.locals 2
2019-02-17 02:24:41 +00:00
.param p5 # Lokhttp3/Headers;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
2019-02-04 20:08:30 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
2019-03-26 19:13:28 +00:00
iput-wide v0, p0, Lokhttp3/internal/e/i;->brV:J
2019-02-17 02:24:41 +00:00
new-instance v0, Ljava/util/ArrayDeque;
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2019-03-26 19:13:28 +00:00
iput-object v0, p0, Lokhttp3/internal/e/i;->bsy:Ljava/util/Deque;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v0, Lokhttp3/internal/e/i$c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v0, p0}, Lokhttp3/internal/e/i$c;-><init>(Lokhttp3/internal/e/i;)V
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-object v0, p0, Lokhttp3/internal/e/i;->bsD:Lokhttp3/internal/e/i$c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance v0, Lokhttp3/internal/e/i$c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v0, p0}, Lokhttp3/internal/e/i$c;-><init>(Lokhttp3/internal/e/i;)V
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-object v0, p0, Lokhttp3/internal/e/i;->bsE:Lokhttp3/internal/e/i$c;
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-27 21:13:14 +00:00
iput-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz p2, :cond_5
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iput p1, p0, Lokhttp3/internal/e/i;->id:I
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-object p2, p0, Lokhttp3/internal/e/i;->brH:Lokhttp3/internal/e/g;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object p1, p2, Lokhttp3/internal/e/g;->brY:Lokhttp3/internal/e/m;
2019-02-04 20:08:30 +00:00
2019-03-22 22:04:12 +00:00
invoke-virtual {p1}, Lokhttp3/internal/e/m;->BB()I
2019-02-04 20:08:30 +00:00
move-result p1
int-to-long v0, p1
2019-03-26 19:13:28 +00:00
iput-wide v0, p0, Lokhttp3/internal/e/i;->brW:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance p1, Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object p2, p2, Lokhttp3/internal/e/g;->brX:Lokhttp3/internal/e/m;
2019-02-04 20:08:30 +00:00
2019-03-22 22:04:12 +00:00
invoke-virtual {p2}, Lokhttp3/internal/e/m;->BB()I
2019-02-04 20:08:30 +00:00
move-result p2
int-to-long v0, p2
2019-02-27 21:13:14 +00:00
invoke-direct {p1, p0, v0, v1}, Lokhttp3/internal/e/i$b;-><init>(Lokhttp3/internal/e/i;J)V
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-object p1, p0, Lokhttp3/internal/e/i;->bsB:Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-instance p1, Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {p1, p0}, Lokhttp3/internal/e/i$a;-><init>(Lokhttp3/internal/e/i;)V
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-object p1, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-17 02:24:41 +00:00
2019-03-26 19:13:28 +00:00
iget-object p1, p0, Lokhttp3/internal/e/i;->bsB:Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-boolean p4, p1, Lokhttp3/internal/e/i$b;->bsG:Z
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object p1, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-boolean p3, p1, Lokhttp3/internal/e/i$a;->bsG:Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz p5, :cond_0
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object p1, p0, Lokhttp3/internal/e/i;->bsy:Ljava/util/Deque;
2019-02-06 20:30:57 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {p1, p5}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
:cond_0
2019-03-22 22:04:12 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->Bp()Z
2019-02-06 20:30:57 +00:00
2019-02-17 02:24:41 +00:00
move-result p1
2019-02-06 20:30:57 +00:00
2019-02-17 02:24:41 +00:00
if-eqz p1, :cond_2
2019-02-06 20:30:57 +00:00
2019-02-17 02:24:41 +00:00
if-nez p5, :cond_1
goto :goto_0
2019-02-06 20:30:57 +00:00
2019-02-17 00:24:05 +00:00
:cond_1
2019-02-17 02:24:41 +00:00
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "locally-initiated streams shouldn\'t have headers yet"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
:goto_0
2019-03-22 22:04:12 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->Bp()Z
2019-02-17 02:24:41 +00:00
move-result p1
if-nez p1, :cond_4
if-eqz p5, :cond_3
goto :goto_1
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "remotely-initiated streams should have headers"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
:goto_1
return-void
:cond_5
2019-02-04 20:08:30 +00:00
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "connection == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2019-02-27 21:13:14 +00:00
.method static synthetic b(Lokhttp3/internal/e/i;)Ljava/util/Deque;
.locals 0
2019-03-26 19:13:28 +00:00
iget-object p0, p0, Lokhttp3/internal/e/i;->bsy:Ljava/util/Deque;
2019-02-27 21:13:14 +00:00
return-object p0
.end method
.method static synthetic c(Lokhttp3/internal/e/i;)Lokhttp3/internal/e/c$a;
.locals 0
2019-03-26 19:13:28 +00:00
iget-object p0, p0, Lokhttp3/internal/e/i;->bsz:Lokhttp3/internal/e/c$a;
2019-02-27 21:13:14 +00:00
return-object p0
.end method
.method private d(Lokhttp3/internal/e/b;)Z
2019-02-04 20:08:30 +00:00
.locals 2
monitor-enter p0
:try_start_0
2019-02-27 21:13:14 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
if-eqz v0, :cond_0
monitor-exit p0
return v1
:cond_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsB:Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->bsG:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->bsG:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
monitor-exit p0
return v1
:cond_1
2019-02-27 21:13:14 +00:00
iput-object p1, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-03-26 19:13:28 +00:00
iget-object p1, p0, Lokhttp3/internal/e/i;->brH:Lokhttp3/internal/e/g;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v0, p0, Lokhttp3/internal/e/i;->id:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {p1, v0}, Lokhttp3/internal/e/g;->dd(I)Lokhttp3/internal/e/i;
2019-02-04 20:08:30 +00:00
const/4 p1, 0x1
return p1
: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
# virtual methods
2019-03-22 22:04:12 +00:00
.method public final Bp()Z
2019-02-04 20:08:30 +00:00
.locals 4
2019-02-27 21:13:14 +00:00
iget v0, p0, Lokhttp3/internal/e/i;->id:I
2019-02-04 20:08:30 +00:00
const/4 v1, 0x1
and-int/2addr v0, v1
const/4 v2, 0x0
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
2019-03-26 19:13:28 +00:00
iget-object v3, p0, Lokhttp3/internal/e/i;->brH:Lokhttp3/internal/e/g;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-boolean v3, v3, Lokhttp3/internal/e/g;->brM:Z
2019-02-04 20:08:30 +00:00
if-ne v3, v0, :cond_1
return v1
:cond_1
return v2
.end method
2019-03-22 22:04:12 +00:00
.method public final declared-synchronized Bq()Lokhttp3/Headers;
2019-02-04 20:08:30 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsD:Lokhttp3/internal/e/i$c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokhttp3/internal/e/i$c;->enter()V
2019-02-04 20:08:30 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:goto_0
:try_start_1
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsy:Ljava/util/Deque;
2019-02-06 20:30:57 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0}, Ljava/util/Deque;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-03-22 22:04:12 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->Bv()V
2019-02-04 20:08:30 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:cond_0
:try_start_2
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsD:Lokhttp3/internal/e/i$c;
2019-02-06 20:30:57 +00:00
2019-03-22 22:04:12 +00:00
invoke-virtual {v0}, Lokhttp3/internal/e/i$c;->Bw()V
2019-02-06 20:30:57 +00:00
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsy:Ljava/util/Deque;
2019-02-06 20:30:57 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0}, Ljava/util/Deque;->isEmpty()Z
2019-02-06 20:30:57 +00:00
2019-02-17 02:24:41 +00:00
move-result v0
if-nez v0, :cond_1
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsy:Ljava/util/Deque;
2019-02-17 02:24:41 +00:00
invoke-interface {v0}, Ljava/util/Deque;->removeFirst()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokhttp3/Headers;
2019-02-04 20:08:30 +00:00
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
monitor-exit p0
return-object v0
:cond_1
:try_start_3
2019-02-27 21:13:14 +00:00
new-instance v0, Lokhttp3/internal/e/n;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-object v1, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v0, v1}, Lokhttp3/internal/e/n;-><init>(Lokhttp3/internal/e/b;)V
2019-02-04 20:08:30 +00:00
throw v0
:catchall_0
move-exception v0
2019-03-26 19:13:28 +00:00
iget-object v1, p0, Lokhttp3/internal/e/i;->bsD:Lokhttp3/internal/e/i$c;
2019-02-17 00:24:05 +00:00
2019-03-22 22:04:12 +00:00
invoke-virtual {v1}, Lokhttp3/internal/e/i$c;->Bw()V
2019-02-04 20:08:30 +00:00
throw v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:catchall_1
move-exception v0
monitor-exit p0
throw v0
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
2019-03-22 22:04:12 +00:00
.method public final Br()Lokio/p;
2019-02-04 20:08:30 +00:00
.locals 2
monitor-enter p0
:try_start_0
2019-03-26 19:13:28 +00:00
iget-boolean v0, p0, Lokhttp3/internal/e/i;->bsA:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
2019-03-22 22:04:12 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->Bp()Z
2019-02-04 20:08:30 +00:00
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "reply before requesting the sink"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
:goto_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
return-object v0
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
2019-03-22 22:04:12 +00:00
.method final Bs()V
2019-02-27 21:13:14 +00:00
.locals 2
monitor-enter p0
:try_start_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsB:Lokhttp3/internal/e/i$b;
2019-02-27 21:13:14 +00:00
const/4 v1, 0x1
2019-03-26 19:13:28 +00:00
iput-boolean v1, v0, Lokhttp3/internal/e/i$b;->bsG:Z
2019-02-27 21:13:14 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->isOpen()Z
move-result v0
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->brH:Lokhttp3/internal/e/g;
2019-02-27 21:13:14 +00:00
iget v1, p0, Lokhttp3/internal/e/i;->id:I
invoke-virtual {v0, v1}, Lokhttp3/internal/e/g;->dd(I)Lokhttp3/internal/e/i;
:cond_0
return-void
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
2019-03-22 22:04:12 +00:00
.method final Bt()V
2019-02-04 20:08:30 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsB:Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->bsG:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsB:Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->closed:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->bsG:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->closed:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
:cond_0
const/4 v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
2019-02-27 21:13:14 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->isOpen()Z
2019-02-04 20:08:30 +00:00
move-result v1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_2
2019-03-26 19:13:28 +00:00
sget-object v0, Lokhttp3/internal/e/b;->bqX:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {p0, v0}, Lokhttp3/internal/e/i;->b(Lokhttp3/internal/e/b;)V
2019-02-04 20:08:30 +00:00
return-void
:cond_2
if-nez v1, :cond_3
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->brH:Lokhttp3/internal/e/g;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v1, p0, Lokhttp3/internal/e/i;->id:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, v1}, Lokhttp3/internal/e/g;->dd(I)Lokhttp3/internal/e/i;
2019-02-04 20:08:30 +00:00
:cond_3
return-void
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
2019-03-22 22:04:12 +00:00
.method final Bu()V
2019-02-04 20:08:30 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->closed:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->bsG:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
2019-02-27 21:13:14 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
return-void
:cond_0
2019-02-27 21:13:14 +00:00
new-instance v1, Lokhttp3/internal/e/n;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v1, v0}, Lokhttp3/internal/e/n;-><init>(Lokhttp3/internal/e/b;)V
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
throw v1
2019-02-04 20:08:30 +00:00
:cond_1
new-instance v0, Ljava/io/IOException;
const-string v1, "stream finished"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_2
new-instance v0, Ljava/io/IOException;
const-string v1, "stream closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
2019-03-22 22:04:12 +00:00
.method final Bv()V
2019-02-04 20:08:30 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/InterruptedIOException;
}
.end annotation
:try_start_0
invoke-virtual {p0}, Ljava/lang/Object;->wait()V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
new-instance v0, Ljava/io/InterruptedIOException;
invoke-direct {v0}, Ljava/io/InterruptedIOException;-><init>()V
throw v0
.end method
2019-02-27 21:13:14 +00:00
.method final am(J)V
2019-02-04 20:08:30 +00:00
.locals 3
2019-03-26 19:13:28 +00:00
iget-wide v0, p0, Lokhttp3/internal/e/i;->brW:J
2019-02-04 20:08:30 +00:00
add-long/2addr v0, p1
2019-03-26 19:13:28 +00:00
iput-wide v0, p0, Lokhttp3/internal/e/i;->brW:J
2019-02-04 20:08:30 +00:00
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_0
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
:cond_0
return-void
.end method
2019-02-27 21:13:14 +00:00
.method public final b(Lokhttp3/internal/e/b;)V
2019-02-04 20:08:30 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
invoke-direct {p0, p1}, Lokhttp3/internal/e/i;->d(Lokhttp3/internal/e/b;)Z
2019-02-04 20:08:30 +00:00
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->brH:Lokhttp3/internal/e/g;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v1, p0, Lokhttp3/internal/e/i;->id:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/e/g;->b(ILokhttp3/internal/e/b;)V
2019-02-04 20:08:30 +00:00
return-void
.end method
2019-02-27 21:13:14 +00:00
.method public final c(Lokhttp3/internal/e/b;)V
2019-02-04 20:08:30 +00:00
.locals 2
2019-02-27 21:13:14 +00:00
invoke-direct {p0, p1}, Lokhttp3/internal/e/i;->d(Lokhttp3/internal/e/b;)Z
2019-02-04 20:08:30 +00:00
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->brH:Lokhttp3/internal/e/g;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v1, p0, Lokhttp3/internal/e/i;->id:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/e/g;->a(ILokhttp3/internal/e/b;)V
2019-02-04 20:08:30 +00:00
return-void
.end method
2019-02-27 21:13:14 +00:00
.method final declared-synchronized e(Lokhttp3/internal/e/b;)V
2019-02-04 20:08:30 +00:00
.locals 1
monitor-enter p0
:try_start_0
2019-02-27 21:13:14 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-27 21:13:14 +00:00
iput-object p1, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized isOpen()Z
.locals 2
monitor-enter p0
:try_start_0
2019-02-27 21:13:14 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
2019-02-04 20:08:30 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v1, 0x0
if-eqz v0, :cond_0
monitor-exit p0
return v1
:cond_0
:try_start_1
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsB:Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->bsG:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsB:Lokhttp3/internal/e/i$b;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->closed:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_3
:cond_1
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->bsG:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bsC:Lokhttp3/internal/e/i$a;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->closed:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_3
:cond_2
2019-03-26 19:13:28 +00:00
iget-boolean v0, p0, Lokhttp3/internal/e/i;->bsA:Z
2019-02-04 20:08:30 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz v0, :cond_3
monitor-exit p0
return v1
:cond_3
const/4 v0, 0x1
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method