mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
2045 lines
55 KiB
Smali
2045 lines
55 KiB
Smali
|
.class public final Lokhttp3/internal/http2/Http2Stream;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "Http2Stream.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lokhttp3/internal/http2/Http2Stream$FramingSource;,
|
||
|
Lokhttp3/internal/http2/Http2Stream$FramingSink;,
|
||
|
Lokhttp3/internal/http2/Http2Stream$StreamTimeout;,
|
||
|
Lokhttp3/internal/http2/Http2Stream$Companion;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
||
|
value = "SMAP\nHttp2Stream.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Http2Stream.kt\nokhttp3/internal/http2/Http2Stream\n+ 2 Util.kt\nokhttp3/internal/Util\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,690:1\n608#2,4:691\n608#2,4:696\n556#2:700\n608#2,4:701\n608#2,4:705\n556#2:709\n556#2:710\n608#2,4:711\n556#2:715\n550#2:716\n1#3:695\n*E\n*S KotlinDebug\n*F\n+ 1 Http2Stream.kt\nokhttp3/internal/http2/Http2Stream\n*L\n176#1,4:691\n255#1,4:696\n266#1:700\n274#1,4:701\n284#1,4:705\n298#1:709\n308#1:710\n494#1,4:711\n639#1:715\n659#1:716\n*E\n"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
bv = {
|
||
|
0x1,
|
||
|
0x0,
|
||
|
0x3
|
||
|
}
|
||
|
d1 = {
|
||
|
"\u0000\u008a\u0001\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0010\t\n\u0002\u0008\t\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0010\u0002\n\u0002\u0008\u000c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0008\u0006\u0018\u0000 _2\u00020\u0001:\u0004_`abB1\u0008\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\u0008\u001a\u00020\u0007\u0012\u0008\u0010\t\u001a\u0004\u0018\u00010\n\u00a2\u0006\u0002\u0010\u000bJ\u000e\u0010@\u001a\u00020A2\u0006\u0010B\u001a\u00020#J\r\u0010C\u001a\u00020AH\u0000\u00a2\u0006\u0002\u0008DJ\r\u0010E\u001a\u00020AH\u0000\u00a2\u0006\u0002\u0008FJ\u0018\u0010G\u001a\u00020A2\u0006\u0010H\u001a\u00020\u000f2\u0008\u0010\u0014\u001a\u0004\u0018\u00010\u0015J\u001a\u0010I\u001a\u00020\u00072\u0006\u0010\u000e\u001a\u00020\u000f2\u0008\u0010\u0014\u001a\u0004\u0018\u00010\u0015H\u0002J\u000e\u0010J\u001a\u00020A2\u0006\u0010\u000e\u001a\u00020\u000fJ\u000e\u0010K\u001a\u00020A2\u0006\u0010L\u001a\u00020\nJ\u0006\u0010M\u001a\u00020NJ\u0006\u0010O\u001a\u00020PJ\u0006\u0010,\u001a\u00020QJ\u0016\u0010R\u001a\u00020A2\u0006\u00104\u001a\u00020S2\u0006\u0010T\u001a\u00020\u0003J\u0016\u0010U\u001a\u00020A2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u0008\u001a\u00020\u0007J\u000e\u0010V\u001a\u00020A2\u0006\u0010\u000e\u001a\u00020\u000fJ\u0006\u0010W\u001a\u00020\nJ\u0006\u0010L\u001a\u00020\nJ\r\u0010X\u001a\u00020AH\u0000\u00a2\u0006\u0002\u0008YJ$\u0010Z\u001a\u00020A2\u000c\u0010[\u001a\u0008\u0012\u0004\u0012\u00020]0\\2\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010^\u001a\u00020\u0007J\u0006\u0010>\u001a\u00020QR\u0011\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000c\u0010\rR\u001e\u0010\u000e\u001a\u0004\u0018\u00010\u000f8@X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0010\u0010\u0011\"\u0004\u0008\u0012\u0010\u0013R\u001c\u0010\u0014\u001a\u0004\u0018\u00010\u0015X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0016\u0010\u0017\"\u0004\u0008\u0018\u0010\u0019R\u000e\u0010\u001a\u001a\u00020\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u001b\u001a\u0008\u0012\u0004\u0012\u00020\n0\u001cX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u001d\u0010\u001eR\u0011\u0010\u001f\u001a\u00020\u00078F\u00a2\u0006\u0006\u001a\u0004\u0008\u001f\u0010 R\u0011\u0010!\u001a\u00020\u00078F\u00a2\u0006\u0006\u001a\u0004\u0008!\u0010 R$\u0010$\u001a\u00020#2\u0006\u0010\"\u001a\u00020#@@X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008%\u0010&\"\u0004\u0008\'\u0010(R$\u0010)\u001a\u00020#2\u0006\u0010\"\u001a\u00020#@@X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008*\u0010&\"\u0004\u0008+\u0010(R\u0018\u0010,\u001a\u00060-R\u00020\u0000X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008.\u0010/R\u0018\u00100\u001a\u000601R\u00020\u0000X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u00082\u00103R\u0018\u00104\u001a\u000605R\u00020\u0000X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u00086\u00107R$\u00108\u001a\u00020#2\u0006\u0010\"\u001a\u00020#@@X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u00089\u0010&\"\u0004\u0008:\u0010(R$\u0010;\u001a\u00020#2\u0006\u0010\"\u001a\u00020#@@X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008<\u0010&\"\u0004\u0008=\u0010(R\u0018\u0010>\u001a\u00060-R\u00020\u0000X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008?\u0010/\u00a8\u0006c"
|
||
|
}
|
||
|
d2 = {
|
||
|
"Lokhttp3/internal/http2/Http2Stream;",
|
||
|
"",
|
||
|
"id",
|
||
|
"",
|
||
|
"connection",
|
||
|
"Lokhttp3/internal/http2/Http2Connection;",
|
||
|
"outFinished",
|
||
|
"",
|
||
|
"inFinished",
|
||
|
"headers",
|
||
|
"Lokhttp3/Headers;",
|
||
|
"(ILokhttp3/internal/http2/Http2Connection;ZZLokhttp3/Headers;)V",
|
||
|
"getConnection",
|
||
|
"()Lokhttp3/internal/http2/Http2Connection;",
|
||
|
"errorCode",
|
||
|
"Lokhttp3/internal/http2/ErrorCode;",
|
||
|
"getErrorCode$okhttp",
|
||
|
"()Lokhttp3/internal/http2/ErrorCode;",
|
||
|
"setErrorCode$okhttp",
|
||
|
"(Lokhttp3/internal/http2/ErrorCode;)V",
|
||
|
"errorException",
|
||
|
"Ljava/io/IOException;",
|
||
|
"getErrorException$okhttp",
|
||
|
"()Ljava/io/IOException;",
|
||
|
"setErrorException$okhttp",
|
||
|
"(Ljava/io/IOException;)V",
|
||
|
"hasResponseHeaders",
|
||
|
"headersQueue",
|
||
|
"Ljava/util/ArrayDeque;",
|
||
|
"getId",
|
||
|
"()I",
|
||
|
"isLocallyInitiated",
|
||
|
"()Z",
|
||
|
"isOpen",
|
||
|
"<set-?>",
|
||
|
"",
|
||
|
"readBytesAcknowledged",
|
||
|
"getReadBytesAcknowledged",
|
||
|
"()J",
|
||
|
"setReadBytesAcknowledged$okhttp",
|
||
|
"(J)V",
|
||
|
"readBytesTotal",
|
||
|
"getReadBytesTotal",
|
||
|
"setReadBytesTotal$okhttp",
|
||
|
"readTimeout",
|
||
|
"Lokhttp3/internal/http2/Http2Stream$StreamTimeout;",
|
||
|
"getReadTimeout$okhttp",
|
||
|
"()Lokhttp3/internal/http2/Http2Stream$StreamTimeout;",
|
||
|
"sink",
|
||
|
"Lokhttp3/internal/http2/Http2Stream$FramingSink;",
|
||
|
"getSink$okhttp",
|
||
|
"()Lokhttp3/internal/http2/Http2Stream$FramingSink;",
|
||
|
"source",
|
||
|
"Lokhttp3/internal/http2/Http2Stream$FramingSource;",
|
||
|
"getSource$okhttp",
|
||
|
"()Lokhttp3/internal/http2/Http2Stream$FramingSource;",
|
||
|
"writeBytesMaximum",
|
||
|
"getWriteBytesMaximum",
|
||
|
"setWriteBytesMaximum$okhttp",
|
||
|
"writeBytesTotal",
|
||
|
"getWriteBytesTotal",
|
||
|
"setWriteBytesTotal$okhttp",
|
||
|
"writeTimeout",
|
||
|
"getWriteTimeout$okhttp",
|
||
|
"addBytesToWriteWindow",
|
||
|
"",
|
||
|
"delta",
|
||
|
"cancelStreamIfNecessary",
|
||
|
"cancelStreamIfNecessary$okhttp",
|
||
|
"checkOutNotClosed",
|
||
|
"checkOutNotClosed$okhttp",
|
||
|
"close",
|
||
|
"rstStatusCode",
|
||
|
"closeInternal",
|
||
|
"closeLater",
|
||
|
"enqueueTrailers",
|
||
|
"trailers",
|
||
|
"getSink",
|
||
|
"Lokio/Sink;",
|
||
|
"getSource",
|
||
|
"Lokio/Source;",
|
||
|
"Lokio/Timeout;",
|
||
|
"receiveData",
|
||
|
"Lokio/BufferedSource;",
|
||
|
"length",
|
||
|
"receiveHeaders",
|
||
|
"receiveRstStream",
|
||
|
"takeHeaders",
|
||
|
"waitForIo",
|
||
|
"waitForIo$okhttp",
|
||
|
"writeHeaders",
|
||
|
"responseHeaders",
|
||
|
"",
|
||
|
"Lokhttp3/internal/http2/Header;",
|
||
|
"flushHeaders",
|
||
|
"Companion",
|
||
|
"FramingSink",
|
||
|
"FramingSource",
|
||
|
"StreamTimeout",
|
||
|
"okhttp"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x4,
|
||
|
0x0
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final Companion:Lokhttp3/internal/http2/Http2Stream$Companion;
|
||
|
|
||
|
.field public static final EMIT_BUFFER_SIZE:J = 0x4000L
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
.field private errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
.field private errorException:Ljava/io/IOException;
|
||
|
|
||
|
.field private hasResponseHeaders:Z
|
||
|
|
||
|
.field private final headersQueue:Ljava/util/ArrayDeque;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/ArrayDeque<",
|
||
|
"Lokhttp3/Headers;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final id:I
|
||
|
|
||
|
.field private readBytesAcknowledged:J
|
||
|
|
||
|
.field private readBytesTotal:J
|
||
|
|
||
|
.field private final readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
.field private final sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
.field private final source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.field private writeBytesMaximum:J
|
||
|
|
||
|
.field private writeBytesTotal:J
|
||
|
|
||
|
.field private final writeTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 2
|
||
|
|
||
|
new-instance v0, Lokhttp3/internal/http2/Http2Stream$Companion;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v0, v1}, Lokhttp3/internal/http2/Http2Stream$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
sput-object v0, Lokhttp3/internal/http2/Http2Stream;->Companion:Lokhttp3/internal/http2/Http2Stream$Companion;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(ILokhttp3/internal/http2/Http2Connection;ZZLokhttp3/Headers;)V
|
||
|
.locals 3
|
||
|
|
||
|
const-string v0, "connection"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 38
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput p1, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
.line 61
|
||
|
invoke-virtual {p2}, Lokhttp3/internal/http2/Http2Connection;->getPeerSettings()Lokhttp3/internal/http2/Settings;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
int-to-long v0, p1
|
||
|
|
||
|
iput-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->writeBytesMaximum:J
|
||
|
|
||
|
.line 65
|
||
|
new-instance p1, Ljava/util/ArrayDeque;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/util/ArrayDeque;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/ArrayDeque;
|
||
|
|
||
|
.line 70
|
||
|
new-instance v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 71
|
||
|
invoke-virtual {p2}, Lokhttp3/internal/http2/Http2Connection;->getOkHttpSettings()Lokhttp3/internal/http2/Settings;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-virtual {p2}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
int-to-long v1, p2
|
||
|
|
||
|
.line 70
|
||
|
invoke-direct {v0, p0, v1, v2, p4}, Lokhttp3/internal/http2/Http2Stream$FramingSource;-><init>(Lokhttp3/internal/http2/Http2Stream;JZ)V
|
||
|
|
||
|
iput-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 74
|
||
|
new-instance p2, Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
invoke-direct {p2, p0, p3}, Lokhttp3/internal/http2/Http2Stream$FramingSink;-><init>(Lokhttp3/internal/http2/Http2Stream;Z)V
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
.line 77
|
||
|
new-instance p2, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
invoke-direct {p2, p0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;-><init>(Lokhttp3/internal/http2/Http2Stream;)V
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
.line 78
|
||
|
new-instance p2, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
invoke-direct {p2, p0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;-><init>(Lokhttp3/internal/http2/Http2Stream;)V
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->writeTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
if-eqz p5, :cond_1
|
||
|
|
||
|
.line 94
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
xor-int/lit8 p0, p0, 0x1
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
.line 95
|
||
|
check-cast p1, Ljava/util/Collection;
|
||
|
|
||
|
invoke-interface {p1, p5}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 94
|
||
|
:cond_0
|
||
|
new-instance p0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string p1, "locally-initiated streams shouldn\'t have headers yet"
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p0
|
||
|
|
||
|
.line 97
|
||
|
:cond_1
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
if-eqz p0, :cond_2
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
:cond_2
|
||
|
new-instance p0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string p1, "remotely-initiated streams should have headers"
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method private final closeInternal(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z
|
||
|
.locals 2
|
||
|
|
||
|
.line 696
|
||
|
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 697
|
||
|
:cond_0
|
||
|
new-instance p1, Ljava/lang/AssertionError;
|
||
|
|
||
|
new-instance p2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v0, "Thread "
|
||
|
|
||
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "Thread.currentThread()"
|
||
|
|
||
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-string v0, " MUST NOT hold lock on "
|
||
|
|
||
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
check-cast p1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
.line 257
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 259
|
||
|
monitor-exit p0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:cond_2
|
||
|
:try_start_1
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 261
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getFinished$okhttp()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->getFinished()Z
|
||
|
|
||
|
move-result v0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 262
|
||
|
monitor-exit p0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:cond_3
|
||
|
:try_start_2
|
||
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException;
|
||
|
|
||
|
.line 700
|
||
|
move-object p1, p0
|
||
|
|
||
|
check-cast p1, Ljava/lang/Object;
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
|
||
|
|
||
|
.line 267
|
||
|
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
.line 257
|
||
|
monitor-exit p0
|
||
|
|
||
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
iget p0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
.line 268
|
||
|
invoke-virtual {p1, p0}, Lokhttp3/internal/http2/Http2Connection;->removeStream$okhttp(I)Lokhttp3/internal/http2/Http2Stream;
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
return p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
.line 257
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final addBytesToWriteWindow(J)V
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->writeBytesMaximum:J
|
||
|
|
||
|
add-long/2addr v0, p1
|
||
|
|
||
|
iput-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->writeBytesMaximum:J
|
||
|
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
cmp-long p1, p1, v0
|
||
|
|
||
|
if-lez p1, :cond_0
|
||
|
|
||
|
.line 715
|
||
|
check-cast p0, Ljava/lang/Object;
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final cancelStreamIfNecessary$okhttp()V
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 711
|
||
|
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 712
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/lang/AssertionError;
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v2, "Thread "
|
||
|
|
||
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
const-string v3, "Thread.currentThread()"
|
||
|
|
||
|
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, " MUST NOT hold lock on "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v0, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
check-cast v0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
.line 498
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 499
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getFinished$okhttp()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_3
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getClosed$okhttp()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->getFinished()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->getClosed()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 500
|
||
|
:goto_1
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isOpen()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
.line 501
|
||
|
sget-object v2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 498
|
||
|
monitor-exit p0
|
||
|
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
.line 506
|
||
|
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-virtual {p0, v0, v1}, Lokhttp3/internal/http2/Http2Stream;->close(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_4
|
||
|
if-nez v1, :cond_5
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
iget p0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
.line 508
|
||
|
invoke-virtual {v0, p0}, Lokhttp3/internal/http2/Http2Connection;->removeStream$okhttp(I)Lokhttp3/internal/http2/Http2Stream;
|
||
|
|
||
|
:cond_5
|
||
|
:goto_2
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
.line 498
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public final checkOutNotClosed$okhttp()V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
.line 646
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->getClosed()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_3
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
.line 647
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->getFinished()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 648
|
||
|
:cond_0
|
||
|
new-instance v0, Lokhttp3/internal/http2/StreamResetException;
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-direct {v0, p0}, Lokhttp3/internal/http2/StreamResetException;-><init>(Lokhttp3/internal/http2/ErrorCode;)V
|
||
|
|
||
|
:goto_0
|
||
|
check-cast v0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
|
||
|
.line 647
|
||
|
:cond_2
|
||
|
new-instance p0, Ljava/io/IOException;
|
||
|
|
||
|
const-string v0, "stream finished"
|
||
|
|
||
|
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p0
|
||
|
|
||
|
.line 646
|
||
|
:cond_3
|
||
|
new-instance p0, Ljava/io/IOException;
|
||
|
|
||
|
const-string v0, "stream closed"
|
||
|
|
||
|
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public final close(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "rstStatusCode"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 237
|
||
|
invoke-direct {p0, p1, p2}, Lokhttp3/internal/http2/Http2Stream;->closeInternal(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
iget-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
iget p0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
.line 240
|
||
|
invoke-virtual {p2, p0, p1}, Lokhttp3/internal/http2/Http2Connection;->writeSynReset$okhttp(ILokhttp3/internal/http2/ErrorCode;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final closeLater(Lokhttp3/internal/http2/ErrorCode;)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "errorCode"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 247
|
||
|
invoke-direct {p0, p1, v0}, Lokhttp3/internal/http2/Http2Stream;->closeInternal(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
iget p0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
.line 250
|
||
|
invoke-virtual {v0, p0, p1}, Lokhttp3/internal/http2/Http2Connection;->writeSynResetLater$okhttp(ILokhttp3/internal/http2/ErrorCode;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final enqueueTrailers(Lokhttp3/Headers;)V
|
||
|
.locals 2
|
||
|
|
||
|
const-string v0, "trailers"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 202
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
.line 203
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->getFinished()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
xor-int/2addr v0, v1
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 204
|
||
|
invoke-virtual {p1}, Lokhttp3/Headers;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
.line 205
|
||
|
invoke-virtual {v0, p1}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->setTrailers(Lokhttp3/Headers;)V
|
||
|
|
||
|
.line 206
|
||
|
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 202
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
:try_start_1
|
||
|
const-string p1, "trailers.size() == 0"
|
||
|
|
||
|
.line 204
|
||
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p1, "already finished"
|
||
|
|
||
|
.line 203
|
||
|
new-instance v0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
.line 202
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final getConnection()Lokhttp3/internal/http2/Http2Connection;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final declared-synchronized getErrorCode$okhttp()Lokhttp3/internal/http2/ErrorCode;
|
||
|
.locals 1
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 87
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public final getErrorException$okhttp()Ljava/io/IOException;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final getId()I
|
||
|
.locals 0
|
||
|
|
||
|
iget p0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public final getReadBytesAcknowledged()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->readBytesAcknowledged:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public final getReadBytesTotal()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->readBytesTotal:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public final getReadTimeout$okhttp()Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final getSink()Lokio/Sink;
|
||
|
.locals 2
|
||
|
|
||
|
.line 223
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
.line 224
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
:goto_1
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 227
|
||
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 223
|
||
|
monitor-exit p0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
.line 228
|
||
|
check-cast p0, Lokio/Sink;
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_2
|
||
|
:try_start_1
|
||
|
const-string v0, "reply before requesting the sink"
|
||
|
|
||
|
.line 224
|
||
|
new-instance v1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v1
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
.line 223
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public final getSink$okhttp()Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final getSource()Lokio/Source;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 214
|
||
|
check-cast p0, Lokio/Source;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final getSource$okhttp()Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final getWriteBytesMaximum()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->writeBytesMaximum:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public final getWriteBytesTotal()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->writeBytesTotal:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public final getWriteTimeout$okhttp()Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->writeTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final isLocallyInitiated()Z
|
||
|
.locals 3
|
||
|
|
||
|
iget v0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
and-int/2addr v0, v1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-ne v0, v1, :cond_0
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
move v0, v2
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
.line 127
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Connection;->getClient$okhttp()Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
if-ne p0, v0, :cond_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
move v1, v2
|
||
|
|
||
|
:goto_1
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method public final declared-synchronized isOpen()Z
|
||
|
.locals 2
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 113
|
||
|
monitor-exit p0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:cond_0
|
||
|
:try_start_1
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 117
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getFinished$okhttp()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getClosed$okhttp()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->getFinished()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->getClosed()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
:cond_2
|
||
|
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 118
|
||
|
monitor-exit p0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
.line 120
|
||
|
:cond_3
|
||
|
monitor-exit p0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
return p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public final readTimeout()Lokio/Timeout;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
.line 209
|
||
|
check-cast p0, Lokio/Timeout;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final receiveData(Lokio/BufferedSource;I)V
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "source"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 701
|
||
|
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 702
|
||
|
:cond_0
|
||
|
new-instance p1, Ljava/lang/AssertionError;
|
||
|
|
||
|
new-instance p2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v0, "Thread "
|
||
|
|
||
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "Thread.currentThread()"
|
||
|
|
||
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-string v0, " MUST NOT hold lock on "
|
||
|
|
||
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
check-cast p1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
int-to-long v0, p2
|
||
|
|
||
|
.line 276
|
||
|
invoke-virtual {p0, p1, v0, v1}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->receive$okhttp(Lokio/BufferedSource;J)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final receiveHeaders(Lokhttp3/Headers;Z)V
|
||
|
.locals 2
|
||
|
|
||
|
const-string v0, "headers"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 705
|
||
|
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 706
|
||
|
:cond_0
|
||
|
new-instance p1, Ljava/lang/AssertionError;
|
||
|
|
||
|
new-instance p2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v0, "Thread "
|
||
|
|
||
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "Thread.currentThread()"
|
||
|
|
||
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-string v0, " MUST NOT hold lock on "
|
||
|
|
||
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
check-cast p1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
.line 287
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
if-nez p2, :cond_2
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 292
|
||
|
invoke-virtual {v0, p1}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->setTrailers(Lokhttp3/Headers;)V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_3
|
||
|
:goto_1
|
||
|
iput-boolean v1, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/ArrayDeque;
|
||
|
|
||
|
.line 290
|
||
|
check-cast v0, Ljava/util/Collection;
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
:goto_2
|
||
|
if-eqz p2, :cond_4
|
||
|
|
||
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 295
|
||
|
invoke-virtual {p1, v1}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->setFinished$okhttp(Z)V
|
||
|
|
||
|
.line 297
|
||
|
:cond_4
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->isOpen()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
.line 709
|
||
|
move-object p2, p0
|
||
|
|
||
|
check-cast p2, Ljava/lang/Object;
|
||
|
|
||
|
invoke-virtual {p2}, Ljava/lang/Object;->notifyAll()V
|
||
|
|
||
|
.line 299
|
||
|
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 287
|
||
|
monitor-exit p0
|
||
|
|
||
|
if-nez p1, :cond_5
|
||
|
|
||
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
iget p0, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
.line 301
|
||
|
invoke-virtual {p1, p0}, Lokhttp3/internal/http2/Http2Connection;->removeStream$okhttp(I)Lokhttp3/internal/http2/Http2Stream;
|
||
|
|
||
|
:cond_5
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
.line 287
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final declared-synchronized receiveRstStream(Lokhttp3/internal/http2/ErrorCode;)V
|
||
|
.locals 1
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v0, "errorCode"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
.line 710
|
||
|
move-object p1, p0
|
||
|
|
||
|
check-cast p1, Ljava/lang/Object;
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 310
|
||
|
:cond_0
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final setErrorCode$okhttp(Lokhttp3/internal/http2/ErrorCode;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final setErrorException$okhttp(Ljava/io/IOException;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final setReadBytesAcknowledged$okhttp(J)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-wide p1, p0, Lokhttp3/internal/http2/Http2Stream;->readBytesAcknowledged:J
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final setReadBytesTotal$okhttp(J)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-wide p1, p0, Lokhttp3/internal/http2/Http2Stream;->readBytesTotal:J
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final setWriteBytesMaximum$okhttp(J)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-wide p1, p0, Lokhttp3/internal/http2/Http2Stream;->writeBytesMaximum:J
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final setWriteBytesTotal$okhttp(J)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-wide p1, p0, Lokhttp3/internal/http2/Http2Stream;->writeBytesTotal:J
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final declared-synchronized takeHeaders()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/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
.line 137
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->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/http2/Http2Stream;->headersQueue:Ljava/util/ArrayDeque;
|
||
|
|
||
|
.line 139
|
||
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
.line 140
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->waitForIo$okhttp()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/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
.line 143
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/ArrayDeque;
|
||
|
|
||
|
.line 145
|
||
|
check-cast v0, Ljava/util/Collection;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
xor-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->headersQueue:Ljava/util/ArrayDeque;
|
||
|
|
||
|
.line 146
|
||
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->removeFirst()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "headersQueue.removeFirst()"
|
||
|
|
||
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
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
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException;
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 148
|
||
|
:goto_1
|
||
|
check-cast v0, Ljava/lang/Throwable;
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
new-instance v0, Lokhttp3/internal/http2/StreamResetException;
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lokhttp3/internal/http2/StreamResetException;-><init>(Lokhttp3/internal/http2/ErrorCode;)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:goto_2
|
||
|
throw v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->readTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
.line 143
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()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
|
||
|
.end method
|
||
|
|
||
|
.method public final declared-synchronized trailers()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/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->errorException:Ljava/io/IOException;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 158
|
||
|
:goto_0
|
||
|
check-cast v0, Ljava/lang/Throwable;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Lokhttp3/internal/http2/StreamResetException;
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->errorCode:Lokhttp3/internal/http2/ErrorCode;
|
||
|
|
||
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-direct {v0, v1}, Lokhttp3/internal/http2/StreamResetException;-><init>(Lokhttp3/internal/http2/ErrorCode;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:goto_1
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 160
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getFinished$okhttp()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getReceiveBuffer()Lokio/Buffer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lokio/Buffer;->exhausted()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getReadBuffer()Lokio/Buffer;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lokio/Buffer;->exhausted()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->source:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
||
|
|
||
|
.line 163
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->getTrailers()Lokhttp3/Headers;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
sget-object v0, Lokhttp3/internal/Util;->EMPTY_HEADERS:Lokhttp3/Headers;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
:goto_3
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_4
|
||
|
:try_start_1
|
||
|
const-string v0, "too early; can\'t read the trailers yet"
|
||
|
|
||
|
.line 160
|
||
|
new-instance v1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v1
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public final waitForIo$okhttp()V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/InterruptedIOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 716
|
||
|
:try_start_0
|
||
|
check-cast p0, Ljava/lang/Object;
|
||
|
|
||
|
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
|
||
|
|
||
|
.line 661
|
||
|
:catch_0
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Thread;->interrupt()V
|
||
|
|
||
|
.line 662
|
||
|
new-instance p0, Ljava/io/InterruptedIOException;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/io/InterruptedIOException;-><init>()V
|
||
|
|
||
|
check-cast p0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public final writeHeaders(Ljava/util/List;ZZ)V
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/List<",
|
||
|
"Lokhttp3/internal/http2/Header;",
|
||
|
">;ZZ)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "responseHeaders"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 691
|
||
|
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 692
|
||
|
:cond_0
|
||
|
new-instance p1, Ljava/lang/AssertionError;
|
||
|
|
||
|
new-instance p2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string p3, "Thread "
|
||
|
|
||
|
invoke-direct {p2, p3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
const-string v0, "Thread.currentThread()"
|
||
|
|
||
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {p3}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-string p3, " MUST NOT hold lock on "
|
||
|
|
||
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
check-cast p1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
.line 179
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
monitor-enter p0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
:try_start_0
|
||
|
iput-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->hasResponseHeaders:Z
|
||
|
|
||
|
if-eqz p2, :cond_2
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->sink:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
||
|
|
||
|
.line 182
|
||
|
invoke-virtual {v1, v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->setFinished(Z)V
|
||
|
|
||
|
.line 184
|
||
|
:cond_2
|
||
|
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
.line 179
|
||
|
monitor-exit p0
|
||
|
|
||
|
if-nez p3, :cond_4
|
||
|
|
||
|
iget-object p3, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
.line 189
|
||
|
monitor-enter p3
|
||
|
|
||
|
:try_start_1
|
||
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
.line 190
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Connection;->getWriteBytesTotal()J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
invoke-virtual {v3}, Lokhttp3/internal/http2/Http2Connection;->getWriteBytesMaximum()J
|
||
|
|
||
|
move-result-wide v3
|
||
|
|
||
|
cmp-long v1, v1, v3
|
||
|
|
||
|
if-ltz v1, :cond_3
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 191
|
||
|
:goto_1
|
||
|
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
.line 189
|
||
|
monitor-exit p3
|
||
|
|
||
|
move p3, v0
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
monitor-exit p3
|
||
|
|
||
|
throw p0
|
||
|
|
||
|
:cond_4
|
||
|
:goto_2
|
||
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
iget v1, p0, Lokhttp3/internal/http2/Http2Stream;->id:I
|
||
|
|
||
|
.line 194
|
||
|
invoke-virtual {v0, v1, p2, p1}, Lokhttp3/internal/http2/Http2Connection;->writeHeaders$okhttp(IZLjava/util/List;)V
|
||
|
|
||
|
if-eqz p3, :cond_5
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->connection:Lokhttp3/internal/http2/Http2Connection;
|
||
|
|
||
|
.line 197
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Connection;->flush()V
|
||
|
|
||
|
:cond_5
|
||
|
return-void
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
.line 179
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final writeTimeout()Lokio/Timeout;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream;->writeTimeout:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
||
|
|
||
|
.line 211
|
||
|
check-cast p0, Lokio/Timeout;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|