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

838 lines
17 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lokhttp3/internal/e/i;
.super Ljava/lang/Object;
.source "Http2Stream.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/e/i$c;,
Lokhttp3/internal/e/i$a;,
Lokhttp3/internal/e/i$b;
}
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z
# instance fields
2019-10-04 20:11:59 +00:00
.field bBF:J
2019-10-01 14:15:45 +00:00
2019-10-04 20:11:59 +00:00
.field bBG:J
.field final bBr:Lokhttp3/internal/e/g;
.field final bCi:Ljava/util/Deque;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Deque<",
"Lokhttp3/Headers;",
">;"
}
.end annotation
.end field
2019-10-04 20:11:59 +00:00
.field private bCj:Lokhttp3/internal/e/c$a;
2019-10-03 02:31:26 +00:00
2019-10-04 20:11:59 +00:00
.field bCk:Z
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
.field final bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
.field final bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
.field final bCn:Lokhttp3/internal/e/i$c;
2019-08-30 20:04:20 +00:00
2019-10-04 20:11:59 +00:00
.field final bCo:Lokhttp3/internal/e/i$c;
2019-08-30 20:04:20 +00:00
2019-07-24 11:27:29 +00:00
.field errorCode:Lokhttp3/internal/e/b;
.field final id:I
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method constructor <init>(ILokhttp3/internal/e/g;ZZLokhttp3/Headers;)V
.locals 2
.param p5 # Lokhttp3/Headers;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
2019-10-04 20:11:59 +00:00
iput-wide v0, p0, Lokhttp3/internal/e/i;->bBF:J
2019-07-24 11:27:29 +00:00
new-instance v0, Ljava/util/ArrayDeque;
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2019-10-04 20:11:59 +00:00
iput-object v0, p0, Lokhttp3/internal/e/i;->bCi:Ljava/util/Deque;
2019-07-24 11:27:29 +00:00
new-instance v0, Lokhttp3/internal/e/i$c;
invoke-direct {v0, p0}, Lokhttp3/internal/e/i$c;-><init>(Lokhttp3/internal/e/i;)V
2019-10-04 20:11:59 +00:00
iput-object v0, p0, Lokhttp3/internal/e/i;->bCn:Lokhttp3/internal/e/i$c;
2019-07-24 11:27:29 +00:00
new-instance v0, Lokhttp3/internal/e/i$c;
invoke-direct {v0, p0}, Lokhttp3/internal/e/i$c;-><init>(Lokhttp3/internal/e/i;)V
2019-10-04 20:11:59 +00:00
iput-object v0, p0, Lokhttp3/internal/e/i;->bCo:Lokhttp3/internal/e/i$c;
2019-07-24 11:27:29 +00:00
const/4 v0, 0x0
iput-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
if-eqz p2, :cond_5
iput p1, p0, Lokhttp3/internal/e/i;->id:I
2019-10-04 20:11:59 +00:00
iput-object p2, p0, Lokhttp3/internal/e/i;->bBr:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-object p1, p2, Lokhttp3/internal/e/g;->bBI:Lokhttp3/internal/e/m;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
invoke-virtual {p1}, Lokhttp3/internal/e/m;->If()I
2019-07-24 11:27:29 +00:00
move-result p1
int-to-long v0, p1
2019-10-04 20:11:59 +00:00
iput-wide v0, p0, Lokhttp3/internal/e/i;->bBG:J
2019-07-24 11:27:29 +00:00
new-instance p1, Lokhttp3/internal/e/i$b;
2019-10-04 20:11:59 +00:00
iget-object p2, p2, Lokhttp3/internal/e/g;->bBH:Lokhttp3/internal/e/m;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
invoke-virtual {p2}, Lokhttp3/internal/e/m;->If()I
2019-07-24 11:27:29 +00:00
move-result p2
int-to-long v0, p2
invoke-direct {p1, p0, v0, v1}, Lokhttp3/internal/e/i$b;-><init>(Lokhttp3/internal/e/i;J)V
2019-10-04 20:11:59 +00:00
iput-object p1, p0, Lokhttp3/internal/e/i;->bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
new-instance p1, Lokhttp3/internal/e/i$a;
invoke-direct {p1, p0}, Lokhttp3/internal/e/i$a;-><init>(Lokhttp3/internal/e/i;)V
2019-10-04 20:11:59 +00:00
iput-object p1, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-object p1, p0, Lokhttp3/internal/e/i;->bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iput-boolean p4, p1, Lokhttp3/internal/e/i$b;->bCq:Z
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-object p1, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iput-boolean p3, p1, Lokhttp3/internal/e/i$a;->bCq:Z
2019-07-24 11:27:29 +00:00
if-eqz p5, :cond_0
2019-10-04 20:11:59 +00:00
iget-object p1, p0, Lokhttp3/internal/e/i;->bCi:Ljava/util/Deque;
2019-07-24 11:27:29 +00:00
invoke-interface {p1, p5}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
:cond_0
2019-10-04 20:11:59 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->HT()Z
2019-07-24 11:27:29 +00:00
move-result p1
if-eqz p1, :cond_2
if-nez p5, :cond_1
goto :goto_0
:cond_1
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-10-04 20:11:59 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->HT()Z
2019-07-24 11:27:29 +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
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
.method static synthetic b(Lokhttp3/internal/e/i;)Ljava/util/Deque;
.locals 0
2019-10-04 20:11:59 +00:00
iget-object p0, p0, Lokhttp3/internal/e/i;->bCi:Ljava/util/Deque;
2019-07-24 11:27:29 +00:00
return-object p0
.end method
.method static synthetic c(Lokhttp3/internal/e/i;)Lokhttp3/internal/e/c$a;
.locals 0
2019-10-04 20:11:59 +00:00
iget-object p0, p0, Lokhttp3/internal/e/i;->bCj:Lokhttp3/internal/e/c$a;
2019-07-24 11:27:29 +00:00
return-object p0
.end method
.method private d(Lokhttp3/internal/e/b;)Z
.locals 2
monitor-enter p0
:try_start_0
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
const/4 v1, 0x0
if-eqz v0, :cond_0
monitor-exit p0
return v1
:cond_0
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->bCq:Z
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_1
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->bCq:Z
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_1
monitor-exit p0
return v1
:cond_1
iput-object p1, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-10-04 20:11:59 +00:00
iget-object p1, p0, Lokhttp3/internal/e/i;->bBr:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
iget v0, p0, Lokhttp3/internal/e/i;->id:I
2019-10-03 02:31:26 +00:00
invoke-virtual {p1, v0}, Lokhttp3/internal/e/g;->dH(I)Lokhttp3/internal/e/i;
2019-07-24 11:27:29 +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-10-04 20:11:59 +00:00
.method public final HT()Z
2019-10-03 02:31:26 +00:00
.locals 4
iget v0, p0, Lokhttp3/internal/e/i;->id:I
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-10-04 20:11:59 +00:00
iget-object v3, p0, Lokhttp3/internal/e/i;->bBr:Lokhttp3/internal/e/g;
2019-10-03 02:31:26 +00:00
2019-10-04 20:11:59 +00:00
iget-boolean v3, v3, Lokhttp3/internal/e/g;->bBw:Z
2019-10-03 02:31:26 +00:00
if-ne v3, v0, :cond_1
return v1
:cond_1
return v2
.end method
2019-10-04 20:11:59 +00:00
.method public final declared-synchronized HU()Lokhttp3/Headers;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCn:Lokhttp3/internal/e/i$c;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Lokhttp3/internal/e/i$c;->enter()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:goto_0
:try_start_1
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCi:Ljava/util/Deque;
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Deque;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
if-nez v0, :cond_0
2019-10-04 20:11:59 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->HZ()V
2019-07-24 11:27:29 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:cond_0
:try_start_2
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCn:Lokhttp3/internal/e/i$c;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
invoke-virtual {v0}, Lokhttp3/internal/e/i$c;->Ia()V
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCi:Ljava/util/Deque;
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Deque;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCi:Ljava/util/Deque;
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Deque;->removeFirst()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokhttp3/Headers;
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
monitor-exit p0
return-object v0
:cond_1
:try_start_3
new-instance v0, Lokhttp3/internal/e/n;
iget-object v1, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
invoke-direct {v0, v1}, Lokhttp3/internal/e/n;-><init>(Lokhttp3/internal/e/b;)V
throw v0
:catchall_0
move-exception v0
2019-10-04 20:11:59 +00:00
iget-object v1, p0, Lokhttp3/internal/e/i;->bCn:Lokhttp3/internal/e/i$c;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
invoke-virtual {v1}, Lokhttp3/internal/e/i$c;->Ia()V
2019-07-24 11:27:29 +00:00
throw v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:catchall_1
move-exception v0
monitor-exit p0
goto :goto_2
:goto_1
throw v0
:goto_2
goto :goto_1
.end method
2019-10-04 20:11:59 +00:00
.method public final HV()Lokio/q;
2019-07-24 11:27:29 +00:00
.locals 2
monitor-enter p0
:try_start_0
2019-10-04 20:11:59 +00:00
iget-boolean v0, p0, Lokhttp3/internal/e/i;->bCk:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_1
2019-10-04 20:11:59 +00:00
invoke-virtual {p0}, Lokhttp3/internal/e/i;->HT()Z
2019-07-24 11:27:29 +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-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +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-10-04 20:11:59 +00:00
.method final HW()V
2019-07-24 11:27:29 +00:00
.locals 2
monitor-enter p0
:try_start_0
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x1
2019-10-04 20:11:59 +00:00
iput-boolean v1, v0, Lokhttp3/internal/e/i$b;->bCq:Z
2019-07-24 11:27:29 +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-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bBr:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
iget v1, p0, Lokhttp3/internal/e/i;->id:I
2019-10-03 02:31:26 +00:00
invoke-virtual {v0, v1}, Lokhttp3/internal/e/g;->dH(I)Lokhttp3/internal/e/i;
2019-07-24 11:27:29 +00:00
: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-10-04 20:11:59 +00:00
.method final HX()V
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->bCq:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_1
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->closed:Z
if-eqz v0, :cond_1
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->bCq:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_0
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->closed:Z
if-eqz v0, :cond_1
:cond_0
const/4 v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
invoke-virtual {p0}, Lokhttp3/internal/e/i;->isOpen()Z
move-result v1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_2
2019-10-04 20:11:59 +00:00
sget-object v0, Lokhttp3/internal/e/b;->bAH:Lokhttp3/internal/e/b;
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, v0}, Lokhttp3/internal/e/i;->b(Lokhttp3/internal/e/b;)V
return-void
:cond_2
if-nez v1, :cond_3
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bBr:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
iget v1, p0, Lokhttp3/internal/e/i;->id:I
2019-10-03 02:31:26 +00:00
invoke-virtual {v0, v1}, Lokhttp3/internal/e/g;->dH(I)Lokhttp3/internal/e/i;
2019-07-24 11:27:29 +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-10-04 20:11:59 +00:00
.method final HY()V
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->closed:Z
if-nez v0, :cond_2
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->bCq:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_1
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
if-nez v0, :cond_0
return-void
:cond_0
new-instance v1, Lokhttp3/internal/e/n;
invoke-direct {v1, v0}, Lokhttp3/internal/e/n;-><init>(Lokhttp3/internal/e/b;)V
throw v1
: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-10-04 20:11:59 +00:00
.method final HZ()V
2019-07-24 11:27:29 +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-08-14 23:59:34 +00:00
.method final aF(J)V
2019-07-24 11:27:29 +00:00
.locals 3
2019-10-04 20:11:59 +00:00
iget-wide v0, p0, Lokhttp3/internal/e/i;->bBG:J
2019-07-24 11:27:29 +00:00
add-long/2addr v0, p1
2019-10-04 20:11:59 +00:00
iput-wide v0, p0, Lokhttp3/internal/e/i;->bBG:J
2019-07-24 11:27:29 +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
.method public final b(Lokhttp3/internal/e/b;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-direct {p0, p1}, Lokhttp3/internal/e/i;->d(Lokhttp3/internal/e/b;)Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bBr:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
iget v1, p0, Lokhttp3/internal/e/i;->id:I
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/e/g;->b(ILokhttp3/internal/e/b;)V
return-void
.end method
.method public final c(Lokhttp3/internal/e/b;)V
.locals 2
invoke-direct {p0, p1}, Lokhttp3/internal/e/i;->d(Lokhttp3/internal/e/b;)Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bBr:Lokhttp3/internal/e/g;
2019-07-24 11:27:29 +00:00
iget v1, p0, Lokhttp3/internal/e/i;->id:I
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/e/g;->a(ILokhttp3/internal/e/b;)V
return-void
.end method
.method final declared-synchronized e(Lokhttp3/internal/e/b;)V
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
if-nez v0, :cond_0
iput-object p1, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
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
iget-object v0, p0, Lokhttp3/internal/e/i;->errorCode:Lokhttp3/internal/e/b;
: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-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->bCq:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_1
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCl:Lokhttp3/internal/e/i$b;
2019-07-24 11:27:29 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$b;->closed:Z
if-eqz v0, :cond_3
:cond_1
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
2019-10-04 20:11:59 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->bCq:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_2
2019-10-04 20:11:59 +00:00
iget-object v0, p0, Lokhttp3/internal/e/i;->bCm:Lokhttp3/internal/e/i$a;
2019-07-24 11:27:29 +00:00
iget-boolean v0, v0, Lokhttp3/internal/e/i$a;->closed:Z
if-eqz v0, :cond_3
:cond_2
2019-10-04 20:11:59 +00:00
iget-boolean v0, p0, Lokhttp3/internal/e/i;->bCk:Z
2019-07-24 11:27:29 +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