i.smali
.class final Lcom/squareup/okhttp/internal/framed/i;
.super Ljava/lang/Object;
.source "FramedStream.java"
# interfaces
.implements Lokio/r;
# static fields
.field private static synthetic $assertionsDisabled:Z
# instance fields
.field private final byH:Lokio/d;
.field private byI:Z
.field private synthetic byJ:Lcom/squareup/okhttp/internal/framed/h;
.field private closed:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 470
const-class v0, Lcom/squareup/okhttp/internal/framed/h;
invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z
move-result v0
if-nez v0, :cond_c
const/4 v0, 0x1
:goto_9
sput-boolean v0, Lcom/squareup/okhttp/internal/framed/i;->$assertionsDisabled:Z
return-void
:cond_c
const/4 v0, 0x0
goto :goto_9
.end method
.method constructor <init>(Lcom/squareup/okhttp/internal/framed/h;)V
.registers 3
.prologue
.line 470
iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 477
new-instance v0, Lokio/d;
invoke-direct {v0}, Lokio/d;-><init>()V
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
return-void
.end method
.method static synthetic a(Lcom/squareup/okhttp/internal/framed/i;)Z
.registers 2
.prologue
.line 470
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byI:Z
return v0
.end method
.method static synthetic a(Lcom/squareup/okhttp/internal/framed/i;Z)Z
.registers 2
.prologue
.line 470
iput-boolean p1, p0, Lcom/squareup/okhttp/internal/framed/i;->byI:Z
return p1
.end method
.method static synthetic b(Lcom/squareup/okhttp/internal/framed/i;)Z
.registers 2
.prologue
.line 470
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/i;->closed:Z
return v0
.end method
.method private bb(Z)V
.registers 8
.prologue
.line 501
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
monitor-enter v1
.line 502
:try_start_3
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->h(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
move-result-object v0
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/k;->enter()V
:try_end_c
.catchall {:try_start_3 .. :try_end_c} :catchall_37
.line 504
:goto_c
:try_start_c
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
iget-wide v2, v0, Lcom/squareup/okhttp/internal/framed/h;->byc:J
const-wide/16 v4, 0x0
cmp-long v0, v2, v4
if-gtz v0, :cond_3a
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byI:Z
if-nez v0, :cond_3a
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/i;->closed:Z
if-nez v0, :cond_3a
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->e(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/ErrorCode;
move-result-object v0
if-nez v0, :cond_3a
.line 505
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->f(Lcom/squareup/okhttp/internal/framed/h;)V
:try_end_2b
.catchall {:try_start_c .. :try_end_2b} :catchall_2c
goto :goto_c
.line 508
:catchall_2c
move-exception v0
:try_start_2d
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v2}, Lcom/squareup/okhttp/internal/framed/h;->h(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
move-result-object v2
invoke-virtual {v2}, Lcom/squareup/okhttp/internal/framed/k;->Hy()V
throw v0
.line 514
:catchall_37
move-exception v0
monitor-exit v1
:try_end_39
.catchall {:try_start_2d .. :try_end_39} :catchall_37
throw v0
.line 508
:cond_3a
:try_start_3a
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->h(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
move-result-object v0
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/k;->Hy()V
.line 511
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->i(Lcom/squareup/okhttp/internal/framed/h;)V
.line 512
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
iget-wide v2, v0, Lcom/squareup/okhttp/internal/framed/h;->byc:J
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
.line 2067
iget-wide v4, v0, Lokio/d;->size:J
.line 512
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J
move-result-wide v4
.line 513
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
iget-wide v2, v0, Lcom/squareup/okhttp/internal/framed/h;->byc:J
sub-long/2addr v2, v4
iput-wide v2, v0, Lcom/squareup/okhttp/internal/framed/h;->byc:J
.line 514
monitor-exit v1
:try_end_5c
.catchall {:try_start_3a .. :try_end_5c} :catchall_37
.line 516
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->h(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
move-result-object v0
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/k;->enter()V
.line 518
:try_start_65
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->b(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/d;
move-result-object v0
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/h;->c(Lcom/squareup/okhttp/internal/framed/h;)I
move-result v1
if-eqz p1, :cond_8b
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
.line 3067
iget-wide v2, v2, Lokio/d;->size:J
.line 518
cmp-long v2, v4, v2
if-nez v2, :cond_8b
const/4 v2, 0x1
:goto_7c
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
invoke-virtual/range {v0 .. v5}, Lcom/squareup/okhttp/internal/framed/d;->a(IZLokio/d;J)V
:try_end_81
.catchall {:try_start_65 .. :try_end_81} :catchall_8d
.line 520
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->h(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
move-result-object v0
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/k;->Hy()V
.line 521
return-void
.line 518
:cond_8b
const/4 v2, 0x0
goto :goto_7c
.line 520
:catchall_8d
move-exception v0
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/h;->h(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
move-result-object v1
invoke-virtual {v1}, Lcom/squareup/okhttp/internal/framed/k;->Hy()V
throw v0
.end method
# virtual methods
.method public final a(Lokio/d;J)V
.registers 8
.prologue
.line 488
sget-boolean v0, Lcom/squareup/okhttp/internal/framed/i;->$assertionsDisabled:Z
if-nez v0, :cond_12
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_12
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 489
:cond_12
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
invoke-virtual {v0, p1, p2, p3}, Lokio/d;->a(Lokio/d;J)V
.line 490
:goto_17
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
.line 1067
iget-wide v0, v0, Lokio/d;->size:J
.line 490
const-wide/16 v2, 0x4000
cmp-long v0, v0, v2
if-ltz v0, :cond_26
.line 491
const/4 v0, 0x0
invoke-direct {p0, v0}, Lcom/squareup/okhttp/internal/framed/i;->bb(Z)V
goto :goto_17
.line 493
:cond_26
return-void
.end method
.method public final close()V
.registers 7
.prologue
const-wide/16 v4, 0x0
const/4 v2, 0x1
.line 540
sget-boolean v0, Lcom/squareup/okhttp/internal/framed/i;->$assertionsDisabled:Z
if-nez v0, :cond_15
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_15
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 541
:cond_15
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
monitor-enter v1
.line 542
:try_start_18
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/i;->closed:Z
if-eqz v0, :cond_1e
monitor-exit v1
.line 560
:goto_1d
return-void
.line 543
:cond_1e
monitor-exit v1
:try_end_1f
.catchall {:try_start_18 .. :try_end_1f} :catchall_3b
.line 544
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
iget-object v0, v0, Lcom/squareup/okhttp/internal/framed/h;->byD:Lcom/squareup/okhttp/internal/framed/i;
iget-boolean v0, v0, Lcom/squareup/okhttp/internal/framed/i;->byI:Z
if-nez v0, :cond_4e
.line 546
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
.line 5067
iget-wide v0, v0, Lokio/d;->size:J
.line 546
cmp-long v0, v0, v4
if-lez v0, :cond_3e
.line 547
:goto_2f
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
.line 6067
iget-wide v0, v0, Lokio/d;->size:J
.line 547
cmp-long v0, v0, v4
if-lez v0, :cond_4e
.line 548
invoke-direct {p0, v2}, Lcom/squareup/okhttp/internal/framed/i;->bb(Z)V
goto :goto_2f
.line 543
:catchall_3b
move-exception v0
:try_start_3c
monitor-exit v1
:try_end_3d
.catchall {:try_start_3c .. :try_end_3d} :catchall_3b
throw v0
.line 552
:cond_3e
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->b(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/d;
move-result-object v0
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v1}, Lcom/squareup/okhttp/internal/framed/h;->c(Lcom/squareup/okhttp/internal/framed/h;)I
move-result v1
const/4 v3, 0x0
invoke-virtual/range {v0 .. v5}, Lcom/squareup/okhttp/internal/framed/d;->a(IZLokio/d;J)V
.line 555
:cond_4e
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
monitor-enter v1
.line 556
const/4 v0, 0x1
:try_start_52
iput-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/i;->closed:Z
.line 557
monitor-exit v1
:try_end_55
.catchall {:try_start_52 .. :try_end_55} :catchall_64
.line 558
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->b(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/d;
move-result-object v0
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/d;->flush()V
.line 559
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->g(Lcom/squareup/okhttp/internal/framed/h;)V
goto :goto_1d
.line 557
:catchall_64
move-exception v0
:try_start_65
monitor-exit v1
:try_end_66
.catchall {:try_start_65 .. :try_end_66} :catchall_64
throw v0
.end method
.method public final flush()V
.registers 5
.prologue
.line 525
sget-boolean v0, Lcom/squareup/okhttp/internal/framed/i;->$assertionsDisabled:Z
if-nez v0, :cond_12
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_12
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.line 526
:cond_12
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
monitor-enter v1
.line 527
:try_start_15
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->i(Lcom/squareup/okhttp/internal/framed/h;)V
.line 528
monitor-exit v1
:try_end_1b
.catchall {:try_start_15 .. :try_end_1b} :catchall_33
.line 529
:goto_1b
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byH:Lokio/d;
.line 4067
iget-wide v0, v0, Lokio/d;->size:J
.line 529
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-lez v0, :cond_36
.line 530
const/4 v0, 0x0
invoke-direct {p0, v0}, Lcom/squareup/okhttp/internal/framed/i;->bb(Z)V
.line 531
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->b(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/d;
move-result-object v0
invoke-virtual {v0}, Lcom/squareup/okhttp/internal/framed/d;->flush()V
goto :goto_1b
.line 528
:catchall_33
move-exception v0
:try_start_34
monitor-exit v1
:try_end_35
.catchall {:try_start_34 .. :try_end_35} :catchall_33
throw v0
.line 533
:cond_36
return-void
.end method
.method public final timeout()Lokio/t;
.registers 2
.prologue
.line 536
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/i;->byJ:Lcom/squareup/okhttp/internal/framed/h;
invoke-static {v0}, Lcom/squareup/okhttp/internal/framed/h;->h(Lcom/squareup/okhttp/internal/framed/h;)Lcom/squareup/okhttp/internal/framed/k;
move-result-object v0
return-object v0
.end method