700 lines
18 KiB
Smali
700 lines
18 KiB
Smali
.class final Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
|
.super Ljava/lang/Object;
|
|
.source "Http2Stream.java"
|
|
|
|
# interfaces
|
|
.implements Lokio/Source;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/http2/Http2Stream;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x12
|
|
name = "FramingSource"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final synthetic c:Z
|
|
|
|
|
|
# instance fields
|
|
.field a:Z
|
|
|
|
.field b:Z
|
|
|
|
.field final synthetic d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.field private final e:Lokio/Buffer;
|
|
|
|
.field private final f:Lokio/Buffer;
|
|
|
|
.field private final g:J
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 309
|
|
const-class v0, Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
sput-boolean v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->c:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Lokhttp3/internal/http2/Http2Stream;J)V
|
|
.locals 0
|
|
|
|
.line 328
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 311
|
|
new-instance p1, Lokio/Buffer;
|
|
|
|
invoke-direct {p1}, Lokio/Buffer;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->e:Lokio/Buffer;
|
|
|
|
.line 314
|
|
new-instance p1, Lokio/Buffer;
|
|
|
|
invoke-direct {p1}, Lokio/Buffer;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
.line 329
|
|
iput-wide p2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->g:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 368
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->enter()V
|
|
|
|
.line 370
|
|
:goto_0
|
|
:try_start_0
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->b:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->a:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->h:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 371
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->l()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 374
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->a()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v1, v1, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->a()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private b()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 432
|
|
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->a:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 435
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->h:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 436
|
|
:cond_0
|
|
new-instance v0, Lokhttp3/internal/http2/StreamResetException;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v1, v1, Lokhttp3/internal/http2/Http2Stream;->h:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/internal/http2/StreamResetException;-><init>(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
throw v0
|
|
|
|
.line 433
|
|
:cond_1
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "stream closed"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method a(Lokio/BufferedSource;J)V
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 379
|
|
sget-boolean v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->c:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
if-lez v2, :cond_8
|
|
|
|
.line 384
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
monitor-enter v2
|
|
|
|
.line 385
|
|
:try_start_0
|
|
iget-boolean v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->b:Z
|
|
|
|
.line 386
|
|
iget-object v4, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
invoke-virtual {v4}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
add-long/2addr v4, p2
|
|
|
|
iget-wide v6, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->g:J
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x1
|
|
|
|
cmp-long v10, v4, v6
|
|
|
|
if-lez v10, :cond_2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v4, 0x0
|
|
|
|
.line 387
|
|
:goto_1
|
|
monitor-exit v2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
.line 391
|
|
invoke-interface {p1, p2, p3}, Lokio/BufferedSource;->skip(J)V
|
|
|
|
.line 392
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
sget-object p2, Lokhttp3/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
invoke-virtual {p1, p2}, Lokhttp3/internal/http2/Http2Stream;->b(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 398
|
|
invoke-interface {p1, p2, p3}, Lokio/BufferedSource;->skip(J)V
|
|
|
|
return-void
|
|
|
|
.line 403
|
|
:cond_4
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->e:Lokio/Buffer;
|
|
|
|
invoke-interface {p1, v2, p2, p3}, Lokio/BufferedSource;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-eqz v6, :cond_7
|
|
|
|
sub-long/2addr p2, v2
|
|
|
|
.line 408
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
monitor-enter v2
|
|
|
|
.line 409
|
|
:try_start_1
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
invoke-virtual {v3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v5, v3, v0
|
|
|
|
if-nez v5, :cond_5
|
|
|
|
const/4 v8, 0x1
|
|
|
|
.line 410
|
|
:cond_5
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->e:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J
|
|
|
|
if-eqz v8, :cond_6
|
|
|
|
.line 412
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 414
|
|
:cond_6
|
|
monitor-exit v2
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v2
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p1
|
|
|
|
.line 404
|
|
:cond_7
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 387
|
|
:try_start_2
|
|
monitor-exit v2
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
throw p1
|
|
|
|
:cond_8
|
|
return-void
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 423
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 424
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->a:Z
|
|
|
|
.line 425
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
invoke-virtual {v1}, Lokio/Buffer;->clear()V
|
|
|
|
.line 426
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 427
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 428
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->j()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 427
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public read(Lokio/Buffer;J)J
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
if-ltz v2, :cond_3
|
|
|
|
.line 336
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
monitor-enter v2
|
|
|
|
.line 337
|
|
:try_start_0
|
|
invoke-direct {p0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->a()V
|
|
|
|
.line 338
|
|
invoke-direct {p0}, Lokhttp3/internal/http2/Http2Stream$FramingSource;->b()V
|
|
|
|
.line 339
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
invoke-virtual {v3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v5, v3, v0
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
const-wide/16 p1, -0x1
|
|
|
|
monitor-exit v2
|
|
|
|
return-wide p1
|
|
|
|
.line 342
|
|
:cond_0
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
iget-object v4, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Lokio/Buffer;
|
|
|
|
invoke-virtual {v4}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-static {p2, p3, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-virtual {v3, p1, p2, p3}, Lokio/Buffer;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide p1
|
|
|
|
.line 345
|
|
iget-object p3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-wide v3, p3, Lokhttp3/internal/http2/Http2Stream;->a:J
|
|
|
|
const/4 v5, 0x0
|
|
|
|
add-long/2addr v3, p1
|
|
|
|
iput-wide v3, p3, Lokhttp3/internal/http2/Http2Stream;->a:J
|
|
|
|
.line 346
|
|
iget-object p3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-wide v3, p3, Lokhttp3/internal/http2/Http2Stream;->a:J
|
|
|
|
iget-object p3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object p3, p3, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
iget-object p3, p3, Lokhttp3/internal/http2/Http2Connection;->l:Lokhttp3/internal/http2/Settings;
|
|
|
|
.line 347
|
|
invoke-virtual {p3}, Lokhttp3/internal/http2/Settings;->d()I
|
|
|
|
move-result p3
|
|
|
|
div-int/lit8 p3, p3, 0x2
|
|
|
|
int-to-long v5, p3
|
|
|
|
cmp-long p3, v3, v5
|
|
|
|
if-ltz p3, :cond_1
|
|
|
|
.line 348
|
|
iget-object p3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object p3, p3, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget v3, v3, Lokhttp3/internal/http2/Http2Stream;->c:I
|
|
|
|
iget-object v4, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-wide v4, v4, Lokhttp3/internal/http2/Http2Stream;->a:J
|
|
|
|
invoke-virtual {p3, v3, v4, v5}, Lokhttp3/internal/http2/Http2Connection;->a(IJ)V
|
|
|
|
.line 349
|
|
iget-object p3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iput-wide v0, p3, Lokhttp3/internal/http2/Http2Stream;->a:J
|
|
|
|
.line 351
|
|
:cond_1
|
|
monitor-exit v2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 354
|
|
iget-object p3, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object p3, p3, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
monitor-enter p3
|
|
|
|
.line 355
|
|
:try_start_1
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v2, v2, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
iget-wide v3, v2, Lokhttp3/internal/http2/Http2Connection;->j:J
|
|
|
|
const/4 v5, 0x0
|
|
|
|
add-long/2addr v3, p1
|
|
|
|
iput-wide v3, v2, Lokhttp3/internal/http2/Http2Connection;->j:J
|
|
|
|
.line 356
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v2, v2, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
iget-wide v2, v2, Lokhttp3/internal/http2/Http2Connection;->j:J
|
|
|
|
iget-object v4, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v4, v4, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
iget-object v4, v4, Lokhttp3/internal/http2/Http2Connection;->l:Lokhttp3/internal/http2/Settings;
|
|
|
|
.line 357
|
|
invoke-virtual {v4}, Lokhttp3/internal/http2/Settings;->d()I
|
|
|
|
move-result v4
|
|
|
|
div-int/lit8 v4, v4, 0x2
|
|
|
|
int-to-long v4, v4
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-ltz v6, :cond_2
|
|
|
|
.line 358
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v2, v2, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
iget-object v4, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v4, v4, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
iget-wide v4, v4, Lokhttp3/internal/http2/Http2Connection;->j:J
|
|
|
|
invoke-virtual {v2, v3, v4, v5}, Lokhttp3/internal/http2/Http2Connection;->a(IJ)V
|
|
|
|
.line 359
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v2, v2, Lokhttp3/internal/http2/Http2Stream;->d:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
iput-wide v0, v2, Lokhttp3/internal/http2/Http2Connection;->j:J
|
|
|
|
.line 361
|
|
:cond_2
|
|
monitor-exit p3
|
|
|
|
return-wide p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p3
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 351
|
|
:try_start_2
|
|
monitor-exit v2
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
throw p1
|
|
|
|
.line 333
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "byteCount < 0: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public timeout()Lokio/Timeout;
|
|
.locals 1
|
|
|
|
.line 419
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
return-object v0
|
|
.end method
|