842 lines
18 KiB
Smali
842 lines
18 KiB
Smali
.class public final Lokhttp3/internal/f/i;
|
|
.super Ljava/lang/Object;
|
|
.source "Http2Stream.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/f/i$c;,
|
|
Lokhttp3/internal/f/i$a;,
|
|
Lokhttp3/internal/f/i$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final synthetic $assertionsDisabled:Z
|
|
|
|
|
|
# instance fields
|
|
.field final bqN:Lokhttp3/internal/f/g;
|
|
|
|
.field private final brF:Ljava/util/Deque;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Deque<",
|
|
"Lokhttp3/Headers;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private brG:Z
|
|
|
|
.field final brH:Lokhttp3/internal/f/i$b;
|
|
|
|
.field final brI:Lokhttp3/internal/f/i$a;
|
|
|
|
.field final brJ:Lokhttp3/internal/f/i$c;
|
|
|
|
.field final brK:Lokhttp3/internal/f/i$c;
|
|
|
|
.field brc:J
|
|
|
|
.field brd:J
|
|
|
|
.field errorCode:Lokhttp3/internal/f/b;
|
|
|
|
.field final id:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(ILokhttp3/internal/f/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
|
|
|
|
iput-wide v0, p0, Lokhttp3/internal/f/i;->brc:J
|
|
|
|
new-instance v0, Ljava/util/ArrayDeque;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/f/i;->brF:Ljava/util/Deque;
|
|
|
|
new-instance v0, Lokhttp3/internal/f/i$c;
|
|
|
|
invoke-direct {v0, p0}, Lokhttp3/internal/f/i$c;-><init>(Lokhttp3/internal/f/i;)V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/f/i;->brJ:Lokhttp3/internal/f/i$c;
|
|
|
|
new-instance v0, Lokhttp3/internal/f/i$c;
|
|
|
|
invoke-direct {v0, p0}, Lokhttp3/internal/f/i$c;-><init>(Lokhttp3/internal/f/i;)V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/f/i;->brK:Lokhttp3/internal/f/i$c;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/f/i;->errorCode:Lokhttp3/internal/f/b;
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
iput p1, p0, Lokhttp3/internal/f/i;->id:I
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/f/i;->bqN:Lokhttp3/internal/f/g;
|
|
|
|
iget-object p1, p2, Lokhttp3/internal/f/g;->brf:Lokhttp3/internal/f/m;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/internal/f/m;->BP()I
|
|
|
|
move-result p1
|
|
|
|
int-to-long v0, p1
|
|
|
|
iput-wide v0, p0, Lokhttp3/internal/f/i;->brd:J
|
|
|
|
new-instance p1, Lokhttp3/internal/f/i$b;
|
|
|
|
iget-object p2, p2, Lokhttp3/internal/f/g;->bre:Lokhttp3/internal/f/m;
|
|
|
|
invoke-virtual {p2}, Lokhttp3/internal/f/m;->BP()I
|
|
|
|
move-result p2
|
|
|
|
int-to-long v0, p2
|
|
|
|
invoke-direct {p1, p0, v0, v1}, Lokhttp3/internal/f/i$b;-><init>(Lokhttp3/internal/f/i;J)V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
new-instance p1, Lokhttp3/internal/f/i$a;
|
|
|
|
invoke-direct {p1, p0}, Lokhttp3/internal/f/i$a;-><init>(Lokhttp3/internal/f/i;)V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
iput-boolean p4, p1, Lokhttp3/internal/f/i$b;->brM:Z
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iput-boolean p3, p1, Lokhttp3/internal/f/i$a;->brM:Z
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/f/i;->brF:Ljava/util/Deque;
|
|
|
|
invoke-interface {p1, p5}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokhttp3/internal/f/i;->BE()Z
|
|
|
|
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
|
|
invoke-virtual {p0}, Lokhttp3/internal/f/i;->BE()Z
|
|
|
|
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 private d(Lokhttp3/internal/f/b;)Z
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->errorCode:Lokhttp3/internal/f/b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
monitor-exit p0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$b;->brM:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$a;->brM:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
monitor-exit p0
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
iput-object p1, p0, Lokhttp3/internal/f/i;->errorCode:Lokhttp3/internal/f/b;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/f/i;->bqN:Lokhttp3/internal/f/g;
|
|
|
|
iget v0, p0, Lokhttp3/internal/f/i;->id:I
|
|
|
|
invoke-virtual {p1, v0}, Lokhttp3/internal/f/g;->dd(I)Lokhttp3/internal/f/i;
|
|
|
|
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
|
|
.method public final BE()Z
|
|
.locals 4
|
|
|
|
iget v0, p0, Lokhttp3/internal/f/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
|
|
iget-object v3, p0, Lokhttp3/internal/f/i;->bqN:Lokhttp3/internal/f/g;
|
|
|
|
iget-boolean v3, v3, Lokhttp3/internal/f/g;->bqS:Z
|
|
|
|
if-ne v3, v0, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
return v2
|
|
.end method
|
|
|
|
.method public final declared-synchronized BF()Lokhttp3/Headers;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brJ:Lokhttp3/internal/f/i$c;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/f/i$c;->enter()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:goto_0
|
|
:try_start_1
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brF:Ljava/util/Deque;
|
|
|
|
invoke-interface {v0}, Ljava/util/Deque;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->errorCode:Lokhttp3/internal/f/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokhttp3/internal/f/i;->BJ()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
:try_start_2
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brJ:Lokhttp3/internal/f/i$c;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/f/i$c;->BK()V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brF:Ljava/util/Deque;
|
|
|
|
invoke-interface {v0}, Ljava/util/Deque;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brF:Ljava/util/Deque;
|
|
|
|
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/f/n;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/f/i;->errorCode:Lokhttp3/internal/f/b;
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/internal/f/n;-><init>(Lokhttp3/internal/f/b;)V
|
|
|
|
throw v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/f/i;->brJ:Lokhttp3/internal/f/i$c;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/internal/f/i$c;->BK()V
|
|
|
|
throw v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final BG()Lokio/q;
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/f/i;->brG:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokhttp3/internal/f/i;->BE()Z
|
|
|
|
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
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
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
|
|
|
|
.method final BH()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$b;->brM:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$b;->closed:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$a;->brM:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/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/f/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
|
|
|
|
sget-object v0, Lokhttp3/internal/f/b;->bqd:Lokhttp3/internal/f/b;
|
|
|
|
invoke-virtual {p0, v0}, Lokhttp3/internal/f/i;->b(Lokhttp3/internal/f/b;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
if-nez v1, :cond_3
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->bqN:Lokhttp3/internal/f/g;
|
|
|
|
iget v1, p0, Lokhttp3/internal/f/i;->id:I
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/internal/f/g;->dd(I)Lokhttp3/internal/f/i;
|
|
|
|
: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
|
|
|
|
.method final BI()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$a;->closed:Z
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$a;->brM:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->errorCode:Lokhttp3/internal/f/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v1, Lokhttp3/internal/f/n;
|
|
|
|
invoke-direct {v1, v0}, Lokhttp3/internal/f/n;-><init>(Lokhttp3/internal/f/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
|
|
|
|
.method final BJ()V
|
|
.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
|
|
|
|
.method final a(Lokhttp3/Headers;Z)V
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/f/i;->brG:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
invoke-static {v0, p1}, Lokhttp3/internal/f/i$b;->a(Lokhttp3/internal/f/i$b;Lokhttp3/Headers;)Lokhttp3/Headers;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iput-boolean v1, p0, Lokhttp3/internal/f/i;->brG:Z
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brF:Ljava/util/Deque;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
|
|
|
|
:goto_1
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
iput-boolean v1, p1, Lokhttp3/internal/f/i$b;->brM:Z
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Lokhttp3/internal/f/i;->isOpen()Z
|
|
|
|
move-result p1
|
|
|
|
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 p1, :cond_3
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/f/i;->bqN:Lokhttp3/internal/f/g;
|
|
|
|
iget p2, p0, Lokhttp3/internal/f/i;->id:I
|
|
|
|
invoke-virtual {p1, p2}, Lokhttp3/internal/f/g;->dd(I)Lokhttp3/internal/f/i;
|
|
|
|
:cond_3
|
|
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 final an(J)V
|
|
.locals 3
|
|
|
|
iget-wide v0, p0, Lokhttp3/internal/f/i;->brd:J
|
|
|
|
add-long/2addr v0, p1
|
|
|
|
iput-wide v0, p0, Lokhttp3/internal/f/i;->brd:J
|
|
|
|
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/f/b;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lokhttp3/internal/f/i;->d(Lokhttp3/internal/f/b;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->bqN:Lokhttp3/internal/f/g;
|
|
|
|
iget v1, p0, Lokhttp3/internal/f/i;->id:I
|
|
|
|
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/f/g;->b(ILokhttp3/internal/f/b;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c(Lokhttp3/internal/f/b;)V
|
|
.locals 2
|
|
|
|
invoke-direct {p0, p1}, Lokhttp3/internal/f/i;->d(Lokhttp3/internal/f/b;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->bqN:Lokhttp3/internal/f/g;
|
|
|
|
iget v1, p0, Lokhttp3/internal/f/i;->id:I
|
|
|
|
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/f/g;->a(ILokhttp3/internal/f/b;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method final declared-synchronized e(Lokhttp3/internal/f/b;)V
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->errorCode:Lokhttp3/internal/f/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/f/i;->errorCode:Lokhttp3/internal/f/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/f/i;->errorCode:Lokhttp3/internal/f/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
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$b;->brM:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brH:Lokhttp3/internal/f/i$b;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$b;->closed:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$a;->brM:Z
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/f/i;->brI:Lokhttp3/internal/f/i$a;
|
|
|
|
iget-boolean v0, v0, Lokhttp3/internal/f/i$a;->closed:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
:cond_2
|
|
iget-boolean v0, p0, Lokhttp3/internal/f/i;->brG:Z
|
|
: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
|