mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
1013 lines
27 KiB
Smali
1013 lines
27 KiB
Smali
.class public final Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
|
.super Ljava/lang/Object;
|
|
.source "Http2Stream.kt"
|
|
|
|
# interfaces
|
|
.implements Lokio/Source;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/http2/Http2Stream;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x11
|
|
name = "FramingSource"
|
|
.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$FramingSource\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 Util.kt\nokhttp3/internal/Util\n*L\n1#1,690:1\n1#2:691\n608#3,4:692\n608#3,4:696\n556#3:700\n556#3:701\n*E\n*S KotlinDebug\n*F\n+ 1 Http2Stream.kt\nokhttp3/internal/http2/Http2Stream$FramingSource\n*L\n411#1,4:692\n422#1,4:696\n464#1:700\n483#1:701\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000@\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\t\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0086\u0004\u0018\u00002\u00020\u0001B\u0017\u0008\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0002\u0010\u0006J\u0008\u0010\u001a\u001a\u00020\u001bH\u0016J\u0018\u0010\u001c\u001a\u00020\u00032\u0006\u0010\u001d\u001a\u00020\u000f2\u0006\u0010\u001e\u001a\u00020\u0003H\u0016J\u001d\u0010\u001f\u001a\u00020\u001b2\u0006\u0010 \u001a\u00020!2\u0006\u0010\u001e\u001a\u00020\u0003H\u0000\u00a2\u0006\u0002\u0008\"J\u0008\u0010#\u001a\u00020$H\u0016J\u0010\u0010%\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u0003H\u0002R\u001a\u0010\u0007\u001a\u00020\u0005X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0008\u0010\t\"\u0004\u0008\n\u0010\u000bR\u001a\u0010\u0004\u001a\u00020\u0005X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u000c\u0010\t\"\u0004\u0008\r\u0010\u000bR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u000e\u001a\u00020\u000f\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0010\u0010\u0011R\u0011\u0010\u0012\u001a\u00020\u000f\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0013\u0010\u0011R\u001c\u0010\u0014\u001a\u0004\u0018\u00010\u0015X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0016\u0010\u0017\"\u0004\u0008\u0018\u0010\u0019\u00a8\u0006&"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/http2/Http2Stream$FramingSource;",
|
|
"Lokio/Source;",
|
|
"maxByteCount",
|
|
"",
|
|
"finished",
|
|
"",
|
|
"(Lokhttp3/internal/http2/Http2Stream;JZ)V",
|
|
"closed",
|
|
"getClosed$okhttp",
|
|
"()Z",
|
|
"setClosed$okhttp",
|
|
"(Z)V",
|
|
"getFinished$okhttp",
|
|
"setFinished$okhttp",
|
|
"readBuffer",
|
|
"Lokio/Buffer;",
|
|
"getReadBuffer",
|
|
"()Lokio/Buffer;",
|
|
"receiveBuffer",
|
|
"getReceiveBuffer",
|
|
"trailers",
|
|
"Lokhttp3/Headers;",
|
|
"getTrailers",
|
|
"()Lokhttp3/Headers;",
|
|
"setTrailers",
|
|
"(Lokhttp3/Headers;)V",
|
|
"close",
|
|
"",
|
|
"read",
|
|
"sink",
|
|
"byteCount",
|
|
"receive",
|
|
"source",
|
|
"Lokio/BufferedSource;",
|
|
"receive$okhttp",
|
|
"timeout",
|
|
"Lokio/Timeout;",
|
|
"updateConnectionFlowControl",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private closed:Z
|
|
|
|
.field private finished:Z
|
|
|
|
.field private final maxByteCount:J
|
|
|
|
.field private final readBuffer:Lokio/Buffer;
|
|
|
|
.field private final receiveBuffer:Lokio/Buffer;
|
|
|
|
.field final synthetic this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.field private trailers:Lokhttp3/Headers;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokhttp3/internal/http2/Http2Stream;JZ)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(JZ)V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 317
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->maxByteCount:J
|
|
|
|
iput-boolean p4, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z
|
|
|
|
.line 328
|
|
new-instance p1, Lokio/Buffer;
|
|
|
|
invoke-direct {p1}, Lokio/Buffer;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lokio/Buffer;
|
|
|
|
.line 331
|
|
new-instance p1, Lokio/Buffer;
|
|
|
|
invoke-direct {p1}, Lokio/Buffer;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final updateConnectionFlowControl(J)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 692
|
|
sget-boolean v1, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 693
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/AssertionError;
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, "Thread "
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v1, "Thread.currentThread()"
|
|
|
|
invoke-static {p2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, " MUST NOT hold lock on "
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 413
|
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->getConnection()Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokhttp3/internal/http2/Http2Connection;->updateConnectionFlowControl$okhttp(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 479
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->closed:Z
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
.line 481
|
|
invoke-virtual {v1}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v1
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
.line 482
|
|
invoke-virtual {v3}, Lokio/Buffer;->clear()V
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 701
|
|
check-cast v3, Ljava/lang/Object;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 484
|
|
sget-object v3, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 479
|
|
monitor-exit v0
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v0, v1, v3
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 486
|
|
invoke-direct {p0, v1, v2}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->updateConnectionFlowControl(J)V
|
|
|
|
:cond_0
|
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 488
|
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->cancelStreamIfNecessary$okhttp()V
|
|
|
|
return-void
|
|
|
|
.line 701
|
|
:cond_1
|
|
:try_start_1
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.Object"
|
|
|
|
invoke-direct {p0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 479
|
|
monitor-exit v0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final getClosed$okhttp()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->closed:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getFinished$okhttp()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getReadBuffer()Lokio/Buffer;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getReceiveBuffer()Lokio/Buffer;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lokio/Buffer;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getTrailers()Lokhttp3/Headers;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->trailers:Lokhttp3/Headers;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public read(Lokio/Buffer;J)J
|
|
.locals 17
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
move-wide/from16 v2, p2
|
|
|
|
const-string v4, "sink"
|
|
|
|
invoke-static {v0, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-ltz v6, :cond_0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v6, :cond_a
|
|
|
|
:goto_1
|
|
const/4 v6, 0x0
|
|
|
|
.line 349
|
|
move-object v9, v6
|
|
|
|
check-cast v9, Ljava/io/IOException;
|
|
|
|
iget-object v9, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 353
|
|
monitor-enter v9
|
|
|
|
:try_start_0
|
|
iget-object v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 354
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Http2Stream;->getReadTimeout$okhttp()Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->enter()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:try_start_1
|
|
iget-object v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 356
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Http2Stream;->getErrorCode$okhttp()Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
move-result-object v10
|
|
|
|
if-eqz v10, :cond_2
|
|
|
|
iget-object v6, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 358
|
|
invoke-virtual {v6}, Lokhttp3/internal/http2/Http2Stream;->getErrorException$okhttp()Ljava/io/IOException;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
new-instance v6, Lokhttp3/internal/http2/StreamResetException;
|
|
|
|
iget-object v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Http2Stream;->getErrorCode$okhttp()Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-static {v10}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-direct {v6, v10}, Lokhttp3/internal/http2/StreamResetException;-><init>(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
check-cast v6, Ljava/io/IOException;
|
|
|
|
:cond_2
|
|
:goto_2
|
|
iget-boolean v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->closed:Z
|
|
|
|
if-nez v10, :cond_9
|
|
|
|
iget-object v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
.line 363
|
|
invoke-virtual {v10}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v10
|
|
|
|
cmp-long v10, v10, v4
|
|
|
|
const-wide/16 v11, -0x1
|
|
|
|
if-lez v10, :cond_3
|
|
|
|
iget-object v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
.line 365
|
|
invoke-virtual {v10}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v13
|
|
|
|
invoke-static {v2, v3, v13, v14}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v13
|
|
|
|
invoke-virtual {v10, v0, v13, v14}, Lokio/Buffer;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v13
|
|
|
|
iget-object v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 366
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Http2Stream;->getReadBytesTotal()J
|
|
|
|
move-result-wide v15
|
|
|
|
add-long v4, v15, v13
|
|
|
|
invoke-virtual {v10, v4, v5}, Lokhttp3/internal/http2/Http2Stream;->setReadBytesTotal$okhttp(J)V
|
|
|
|
iget-object v4, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 368
|
|
invoke-virtual {v4}, Lokhttp3/internal/http2/Http2Stream;->getReadBytesTotal()J
|
|
|
|
move-result-wide v4
|
|
|
|
iget-object v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Http2Stream;->getReadBytesAcknowledged()J
|
|
|
|
move-result-wide v15
|
|
|
|
sub-long/2addr v4, v15
|
|
|
|
if-nez v6, :cond_5
|
|
|
|
iget-object v10, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 370
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Http2Stream;->getConnection()Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Http2Connection;->getOkHttpSettings()Lokhttp3/internal/http2/Settings;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v10}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I
|
|
|
|
move-result v10
|
|
|
|
div-int/lit8 v10, v10, 0x2
|
|
|
|
int-to-long v7, v10
|
|
|
|
cmp-long v7, v4, v7
|
|
|
|
if-ltz v7, :cond_5
|
|
|
|
iget-object v7, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 373
|
|
invoke-virtual {v7}, Lokhttp3/internal/http2/Http2Stream;->getConnection()Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
move-result-object v7
|
|
|
|
iget-object v8, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-virtual {v8}, Lokhttp3/internal/http2/Http2Stream;->getId()I
|
|
|
|
move-result v8
|
|
|
|
invoke-virtual {v7, v8, v4, v5}, Lokhttp3/internal/http2/Http2Connection;->writeWindowUpdateLater$okhttp(IJ)V
|
|
|
|
iget-object v4, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 374
|
|
invoke-virtual {v4}, Lokhttp3/internal/http2/Http2Stream;->getReadBytesTotal()J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-virtual {v4, v7, v8}, Lokhttp3/internal/http2/Http2Stream;->setReadBytesAcknowledged$okhttp(J)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
iget-boolean v4, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z
|
|
|
|
if-nez v4, :cond_4
|
|
|
|
if-nez v6, :cond_4
|
|
|
|
iget-object v4, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 378
|
|
invoke-virtual {v4}, Lokhttp3/internal/http2/Http2Stream;->waitForIo$okhttp()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
move-wide v13, v11
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-wide v13, v11
|
|
|
|
:cond_5
|
|
:goto_3
|
|
const/4 v4, 0x0
|
|
|
|
:goto_4
|
|
:try_start_2
|
|
iget-object v5, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 382
|
|
invoke-virtual {v5}, Lokhttp3/internal/http2/Http2Stream;->getReadTimeout$okhttp()Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
|
|
|
|
.line 384
|
|
sget-object v5, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
.line 353
|
|
monitor-exit v9
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_6
|
|
cmp-long v0, v13, v11
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 394
|
|
invoke-direct {v1, v13, v14}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->updateConnectionFlowControl(J)V
|
|
|
|
return-wide v13
|
|
|
|
:cond_7
|
|
if-nez v6, :cond_8
|
|
|
|
return-wide v11
|
|
|
|
.line 403
|
|
:cond_8
|
|
invoke-static {v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
check-cast v6, Ljava/lang/Throwable;
|
|
|
|
throw v6
|
|
|
|
.line 362
|
|
:cond_9
|
|
:try_start_3
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v2, "stream closed"
|
|
|
|
invoke-direct {v0, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
:try_start_4
|
|
iget-object v1, v1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 382
|
|
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->getReadTimeout$okhttp()Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
|
|
|
|
throw v0
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
.line 353
|
|
monitor-exit v9
|
|
|
|
throw v0
|
|
|
|
.line 344
|
|
:cond_a
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "byteCount < 0: "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v1, Ljava/lang/Throwable;
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final receive$okhttp(Lokio/BufferedSource;J)V
|
|
.locals 9
|
|
.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
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 696
|
|
sget-boolean v1, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 697
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/AssertionError;
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string p2, "Thread "
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "Thread.currentThread()"
|
|
|
|
invoke-static {p2, p3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, " MUST NOT hold lock on "
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
if-lez v2, :cond_a
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 429
|
|
monitor-enter v2
|
|
|
|
:try_start_0
|
|
iget-boolean v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z
|
|
|
|
iget-object v4, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
.line 431
|
|
invoke-virtual {v4}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
add-long/2addr v4, p2
|
|
|
|
iget-wide v6, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->maxByteCount:J
|
|
|
|
cmp-long v4, v4, v6
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-lez v4, :cond_2
|
|
|
|
move v4, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v4, v6
|
|
|
|
.line 432
|
|
:goto_1
|
|
sget-object v7, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 429
|
|
monitor-exit v2
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
.line 436
|
|
invoke-interface {p1, p2, p3}, Lokio/BufferedSource;->skip(J)V
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 437
|
|
sget-object p1, Lokhttp3/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
invoke-virtual {p0, p1}, Lokhttp3/internal/http2/Http2Stream;->closeLater(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 443
|
|
invoke-interface {p1, p2, p3}, Lokio/BufferedSource;->skip(J)V
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lokio/Buffer;
|
|
|
|
.line 448
|
|
invoke-interface {p1, v2, p2, p3}, Lokio/BufferedSource;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v7, -0x1
|
|
|
|
cmp-long v4, v2, v7
|
|
|
|
if-eqz v4, :cond_9
|
|
|
|
sub-long/2addr p2, v2
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 456
|
|
monitor-enter v2
|
|
|
|
:try_start_1
|
|
iget-boolean v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->closed:Z
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lokio/Buffer;
|
|
|
|
.line 458
|
|
invoke-virtual {v3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v3
|
|
|
|
iget-object v5, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lokio/Buffer;
|
|
|
|
.line 459
|
|
invoke-virtual {v5}, Lokio/Buffer;->clear()V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
.line 461
|
|
invoke-virtual {v3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v3, v3, v0
|
|
|
|
if-nez v3, :cond_6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
move v5, v6
|
|
|
|
:goto_2
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->readBuffer:Lokio/Buffer;
|
|
|
|
iget-object v4, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lokio/Buffer;
|
|
|
|
.line 462
|
|
check-cast v4, Lokio/Source;
|
|
|
|
invoke-virtual {v3, v4}, Lokio/Buffer;->writeAll(Lokio/Source;)J
|
|
|
|
if-eqz v5, :cond_8
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
.line 700
|
|
check-cast v3, Ljava/lang/Object;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
const-string p1, "null cannot be cast to non-null type java.lang.Object"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_8
|
|
:goto_3
|
|
move-wide v3, v0
|
|
|
|
.line 467
|
|
:goto_4
|
|
sget-object v5, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 456
|
|
monitor-exit v2
|
|
|
|
cmp-long v0, v3, v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 469
|
|
invoke-direct {p0, v3, v4}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->updateConnectionFlowControl(J)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 456
|
|
monitor-exit v2
|
|
|
|
throw p0
|
|
|
|
.line 449
|
|
:cond_9
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 429
|
|
monitor-exit v2
|
|
|
|
throw p0
|
|
|
|
:cond_a
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setClosed$okhttp(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->closed:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setFinished$okhttp(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->finished:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTrailers(Lokhttp3/Headers;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->trailers:Lokhttp3/Headers;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public timeout()Lokio/Timeout;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->this$0:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 474
|
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->getReadTimeout$okhttp()Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lokio/Timeout;
|
|
|
|
return-object p0
|
|
.end method
|