FramedConnection.smali
.class public final Lcom/squareup/okhttp/internal/framed/FramedConnection;
.super Ljava/lang/Object;
.source "FramedConnection.java"
# interfaces
.implements Ljava/io/Closeable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/squareup/okhttp/internal/framed/FramedConnection$Reader;,
Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;
}
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z = false
.field private static final OKHTTP_CLIENT_WINDOW_SIZE:I = 0x1000000
.field private static final executor:Ljava/util/concurrent/ExecutorService;
# instance fields
.field bytesLeftInWriteWindow:J
.field final client:Z
.field private final currentPushRequests:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field final frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
.field private final handler:Lcom/squareup/okhttp/internal/framed/IncomingStreamHandler;
.field private final hostName:Ljava/lang/String;
.field private idleStartTimeNs:J
.field private lastGoodStreamId:I
.field private nextPingId:I
.field private nextStreamId:I
.field final okHttpSettings:Lcom/squareup/okhttp/internal/framed/Settings;
.field final peerSettings:Lcom/squareup/okhttp/internal/framed/Settings;
.field private pings:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Lcom/squareup/okhttp/internal/framed/Ping;",
">;"
}
.end annotation
.end field
.field final protocol:Lcom/squareup/okhttp/Protocol;
.field private final pushExecutor:Ljava/util/concurrent/ExecutorService;
.field private final pushObserver:Lcom/squareup/okhttp/internal/framed/PushObserver;
.field final readerRunnable:Lcom/squareup/okhttp/internal/framed/FramedConnection$Reader;
.field private receivedInitialPeerSettings:Z
.field private shutdown:Z
.field final socket:Ljava/net/Socket;
.field private final streams:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Lcom/squareup/okhttp/internal/framed/FramedStream;",
">;"
}
.end annotation
.end field
.field unacknowledgedBytesRead:J
.field final variant:Lcom/squareup/okhttp/internal/framed/Variant;
# direct methods
.method static constructor <clinit>()V
.registers 9
.line 1
new-instance v8, Ljava/util/concurrent/ThreadPoolExecutor;
const/4 v1, 0x0
const v2, 0x7fffffff
const-wide/16 v3, 0x3c
sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v6, Ljava/util/concurrent/SynchronousQueue;
invoke-direct {v6}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
const/4 v0, 0x1
const-string v7, "OkHttp FramedConnection"
.line 2
invoke-static {v7, v0}, Lcom/squareup/okhttp/internal/Util;->threadFactory(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
move-result-object v7
move-object v0, v8
invoke-direct/range {v0 .. v7}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
sput-object v8, Lcom/squareup/okhttp/internal/framed/FramedConnection;->executor:Ljava/util/concurrent/ExecutorService;
return-void
.end method
.method private constructor <init>(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)V
.registers 16
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
.line 4
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
iput-wide v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->idleStartTimeNs:J
const-wide/16 v0, 0x0
.line 5
iput-wide v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->unacknowledgedBytesRead:J
.line 6
new-instance v0, Lcom/squareup/okhttp/internal/framed/Settings;
invoke-direct {v0}, Lcom/squareup/okhttp/internal/framed/Settings;-><init>()V
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->okHttpSettings:Lcom/squareup/okhttp/internal/framed/Settings;
.line 7
new-instance v0, Lcom/squareup/okhttp/internal/framed/Settings;
invoke-direct {v0}, Lcom/squareup/okhttp/internal/framed/Settings;-><init>()V
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->peerSettings:Lcom/squareup/okhttp/internal/framed/Settings;
const/4 v0, 0x0
.line 8
iput-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->receivedInitialPeerSettings:Z
.line 9
new-instance v1, Ljava/util/LinkedHashSet;
invoke-direct {v1}, Ljava/util/LinkedHashSet;-><init>()V
iput-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->currentPushRequests:Ljava/util/Set;
.line 10
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->protocol:Lcom/squareup/okhttp/Protocol;
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$000(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Lcom/squareup/okhttp/Protocol;
move-result-object v1
iput-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->protocol:Lcom/squareup/okhttp/Protocol;
.line 11
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->pushObserver:Lcom/squareup/okhttp/internal/framed/PushObserver;
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$100(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Lcom/squareup/okhttp/internal/framed/PushObserver;
move-result-object v1
iput-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushObserver:Lcom/squareup/okhttp/internal/framed/PushObserver;
.line 12
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->client:Z
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$200(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Z
move-result v1
iput-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->client:Z
.line 13
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->handler:Lcom/squareup/okhttp/internal/framed/IncomingStreamHandler;
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$300(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Lcom/squareup/okhttp/internal/framed/IncomingStreamHandler;
move-result-object v1
iput-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->handler:Lcom/squareup/okhttp/internal/framed/IncomingStreamHandler;
.line 14
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->client:Z
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$200(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Z
move-result v1
const/4 v2, 0x2
const/4 v3, 0x1
if-eqz v1, :cond_4e
const/4 v1, 0x1
goto :goto_4f
:cond_4e
const/4 v1, 0x2
:goto_4f
iput v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextStreamId:I
.line 15
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->client:Z
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$200(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Z
move-result v1
if-eqz v1, :cond_62
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->protocol:Lcom/squareup/okhttp/Protocol;
sget-object v4, Lcom/squareup/okhttp/Protocol;->HTTP_2:Lcom/squareup/okhttp/Protocol;
if-ne v1, v4, :cond_62
.line 16
iget v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextStreamId:I
add-int/2addr v1, v2
iput v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextStreamId:I
.line 17
:cond_62
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->client:Z
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$200(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Z
move-result v1
if-eqz v1, :cond_69
const/4 v2, 0x1
:cond_69
iput v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextPingId:I
.line 18
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->client:Z
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$200(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Z
move-result v1
const/4 v2, 0x7
if-eqz v1, :cond_79
.line 19
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->okHttpSettings:Lcom/squareup/okhttp/internal/framed/Settings;
const/high16 v4, 0x1000000
invoke-virtual {v1, v2, v0, v4}, Lcom/squareup/okhttp/internal/framed/Settings;->set(III)Lcom/squareup/okhttp/internal/framed/Settings;
.line 20
:cond_79
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->hostName:Ljava/lang/String;
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$400(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Ljava/lang/String;
move-result-object v1
iput-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
.line 21
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->protocol:Lcom/squareup/okhttp/Protocol;
sget-object v4, Lcom/squareup/okhttp/Protocol;->HTTP_2:Lcom/squareup/okhttp/Protocol;
const/4 v5, 0x0
if-ne v1, v4, :cond_c1
.line 22
new-instance v1, Lcom/squareup/okhttp/internal/framed/Http2;
invoke-direct {v1}, Lcom/squareup/okhttp/internal/framed/Http2;-><init>()V
iput-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->variant:Lcom/squareup/okhttp/internal/framed/Variant;
.line 23
new-instance v1, Ljava/util/concurrent/ThreadPoolExecutor;
const/4 v7, 0x0
const/4 v8, 0x1
const-wide/16 v9, 0x3c
sget-object v11, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v12, Ljava/util/concurrent/LinkedBlockingQueue;
invoke-direct {v12}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
new-array v4, v3, [Ljava/lang/Object;
iget-object v6, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
aput-object v6, v4, v0
const-string v6, "OkHttp %s Push Observer"
.line 24
invoke-static {v6, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-static {v4, v3}, Lcom/squareup/okhttp/internal/Util;->threadFactory(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
move-result-object v13
move-object v6, v1
invoke-direct/range {v6 .. v13}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
iput-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushExecutor:Ljava/util/concurrent/ExecutorService;
.line 25
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->peerSettings:Lcom/squareup/okhttp/internal/framed/Settings;
const v3, 0xffff
invoke-virtual {v1, v2, v0, v3}, Lcom/squareup/okhttp/internal/framed/Settings;->set(III)Lcom/squareup/okhttp/internal/framed/Settings;
.line 26
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->peerSettings:Lcom/squareup/okhttp/internal/framed/Settings;
const/4 v2, 0x5
const/16 v3, 0x4000
invoke-virtual {v1, v2, v0, v3}, Lcom/squareup/okhttp/internal/framed/Settings;->set(III)Lcom/squareup/okhttp/internal/framed/Settings;
goto :goto_ce
.line 27
:cond_c1
sget-object v0, Lcom/squareup/okhttp/Protocol;->SPDY_3:Lcom/squareup/okhttp/Protocol;
if-ne v1, v0, :cond_107
.line 28
new-instance v0, Lcom/squareup/okhttp/internal/framed/Spdy3;
invoke-direct {v0}, Lcom/squareup/okhttp/internal/framed/Spdy3;-><init>()V
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->variant:Lcom/squareup/okhttp/internal/framed/Variant;
.line 29
iput-object v5, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushExecutor:Ljava/util/concurrent/ExecutorService;
.line 30
:goto_ce
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->peerSettings:Lcom/squareup/okhttp/internal/framed/Settings;
const/high16 v1, 0x10000
invoke-virtual {v0, v1}, Lcom/squareup/okhttp/internal/framed/Settings;->getInitialWindowSize(I)I
move-result v0
int-to-long v0, v0
iput-wide v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->bytesLeftInWriteWindow:J
.line 31
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->socket:Ljava/net/Socket;
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$500(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Ljava/net/Socket;
move-result-object v0
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->socket:Ljava/net/Socket;
.line 32
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->variant:Lcom/squareup/okhttp/internal/framed/Variant;
# getter for: Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->socket:Ljava/net/Socket;
invoke-static {p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;->access$500(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)Ljava/net/Socket;
move-result-object p1
invoke-static {p1}, Lokio/Okio;->sink(Ljava/net/Socket;)Lokio/Sink;
move-result-object p1
invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Sink;)Lokio/BufferedSink;
move-result-object p1
iget-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->client:Z
invoke-interface {v0, p1, v1}, Lcom/squareup/okhttp/internal/framed/Variant;->newWriter(Lokio/BufferedSink;Z)Lcom/squareup/okhttp/internal/framed/FrameWriter;
move-result-object p1
iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
.line 33
new-instance p1, Lcom/squareup/okhttp/internal/framed/FramedConnection$Reader;
invoke-direct {p1, p0, v5}, Lcom/squareup/okhttp/internal/framed/FramedConnection$Reader;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection;Lcom/squareup/okhttp/internal/framed/FramedConnection$1;)V
iput-object p1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->readerRunnable:Lcom/squareup/okhttp/internal/framed/FramedConnection$Reader;
.line 34
new-instance p1, Ljava/lang/Thread;
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->readerRunnable:Lcom/squareup/okhttp/internal/framed/FramedConnection$Reader;
invoke-direct {p1, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
invoke-virtual {p1}, Ljava/lang/Thread;->start()V
return-void
.line 35
:cond_107
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p1
.end method
.method synthetic constructor <init>(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;Lcom/squareup/okhttp/internal/framed/FramedConnection$1;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0, p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection$Builder;)V
return-void
.end method
.method static synthetic access$1000(Lcom/squareup/okhttp/internal/framed/FramedConnection;Lcom/squareup/okhttp/internal/framed/ErrorCode;Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->close(Lcom/squareup/okhttp/internal/framed/ErrorCode;Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
return-void
.end method
.method static synthetic access$1100(Lcom/squareup/okhttp/internal/framed/FramedConnection;I)Z
.registers 2
.line 1
invoke-direct {p0, p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushedStream(I)Z
move-result p0
return p0
.end method
.method static synthetic access$1200(Lcom/squareup/okhttp/internal/framed/FramedConnection;ILokio/BufferedSource;IZ)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0, p1, p2, p3, p4}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushDataLater(ILokio/BufferedSource;IZ)V
return-void
.end method
.method static synthetic access$1300(Lcom/squareup/okhttp/internal/framed/FramedConnection;ILjava/util/List;Z)V
.registers 4
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushHeadersLater(ILjava/util/List;Z)V
return-void
.end method
.method static synthetic access$1400(Lcom/squareup/okhttp/internal/framed/FramedConnection;)Z
.registers 1
.line 1
iget-boolean p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->shutdown:Z
return p0
.end method
.method static synthetic access$1402(Lcom/squareup/okhttp/internal/framed/FramedConnection;Z)Z
.registers 2
.line 1
iput-boolean p1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->shutdown:Z
return p1
.end method
.method static synthetic access$1500(Lcom/squareup/okhttp/internal/framed/FramedConnection;)I
.registers 1
.line 1
iget p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->lastGoodStreamId:I
return p0
.end method
.method static synthetic access$1502(Lcom/squareup/okhttp/internal/framed/FramedConnection;I)I
.registers 2
.line 1
iput p1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->lastGoodStreamId:I
return p1
.end method
.method static synthetic access$1600(Lcom/squareup/okhttp/internal/framed/FramedConnection;)I
.registers 1
.line 1
iget p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextStreamId:I
return p0
.end method
.method static synthetic access$1700(Lcom/squareup/okhttp/internal/framed/FramedConnection;)Ljava/util/Map;
.registers 1
.line 1
iget-object p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
return-object p0
.end method
.method static synthetic access$1800(Lcom/squareup/okhttp/internal/framed/FramedConnection;)Lcom/squareup/okhttp/internal/framed/IncomingStreamHandler;
.registers 1
.line 1
iget-object p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->handler:Lcom/squareup/okhttp/internal/framed/IncomingStreamHandler;
return-object p0
.end method
.method static synthetic access$1900()Ljava/util/concurrent/ExecutorService;
.registers 1
.line 1
sget-object v0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->executor:Ljava/util/concurrent/ExecutorService;
return-object v0
.end method
.method static synthetic access$2000(Lcom/squareup/okhttp/internal/framed/FramedConnection;ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
.registers 3
.line 1
invoke-direct {p0, p1, p2}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushResetLater(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
return-void
.end method
.method static synthetic access$2100(Lcom/squareup/okhttp/internal/framed/FramedConnection;)Z
.registers 1
.line 1
iget-boolean p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->receivedInitialPeerSettings:Z
return p0
.end method
.method static synthetic access$2102(Lcom/squareup/okhttp/internal/framed/FramedConnection;Z)Z
.registers 2
.line 1
iput-boolean p1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->receivedInitialPeerSettings:Z
return p1
.end method
.method static synthetic access$2200(Lcom/squareup/okhttp/internal/framed/FramedConnection;I)Lcom/squareup/okhttp/internal/framed/Ping;
.registers 2
.line 1
invoke-direct {p0, p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->removePing(I)Lcom/squareup/okhttp/internal/framed/Ping;
move-result-object p0
return-object p0
.end method
.method static synthetic access$2300(Lcom/squareup/okhttp/internal/framed/FramedConnection;ZIILcom/squareup/okhttp/internal/framed/Ping;)V
.registers 5
.line 1
invoke-direct {p0, p1, p2, p3, p4}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->writePingLater(ZIILcom/squareup/okhttp/internal/framed/Ping;)V
return-void
.end method
.method static synthetic access$2400(Lcom/squareup/okhttp/internal/framed/FramedConnection;ILjava/util/List;)V
.registers 3
.line 1
invoke-direct {p0, p1, p2}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushRequestLater(ILjava/util/List;)V
return-void
.end method
.method static synthetic access$2500(Lcom/squareup/okhttp/internal/framed/FramedConnection;)Lcom/squareup/okhttp/internal/framed/PushObserver;
.registers 1
.line 1
iget-object p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushObserver:Lcom/squareup/okhttp/internal/framed/PushObserver;
return-object p0
.end method
.method static synthetic access$2600(Lcom/squareup/okhttp/internal/framed/FramedConnection;)Ljava/util/Set;
.registers 1
.line 1
iget-object p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->currentPushRequests:Ljava/util/Set;
return-object p0
.end method
.method static synthetic access$700(Lcom/squareup/okhttp/internal/framed/FramedConnection;ZIILcom/squareup/okhttp/internal/framed/Ping;)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0, p1, p2, p3, p4}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->writePing(ZIILcom/squareup/okhttp/internal/framed/Ping;)V
return-void
.end method
.method static synthetic access$900(Lcom/squareup/okhttp/internal/framed/FramedConnection;)Ljava/lang/String;
.registers 1
.line 1
iget-object p0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
return-object p0
.end method
.method private close(Lcom/squareup/okhttp/internal/framed/ErrorCode;Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 2
:try_start_1
invoke-virtual {p0, p1}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->shutdown(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
:try_end_4
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_4} :catch_6
move-object p1, v0
goto :goto_7
:catch_6
move-exception p1
.line 3
:goto_7
monitor-enter p0
.line 4
:try_start_8
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_2e
.line 5
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v1
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-interface {v3}, Ljava/util/Map;->size()I
move-result v3
new-array v3, v3, [Lcom/squareup/okhttp/internal/framed/FramedStream;
invoke-interface {v1, v3}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v1
check-cast v1, [Lcom/squareup/okhttp/internal/framed/FramedStream;
.line 6
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-interface {v3}, Ljava/util/Map;->clear()V
.line 7
invoke-direct {p0, v2}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->setIdle(Z)V
goto :goto_2f
:cond_2e
move-object v1, v0
.line 8
:goto_2f
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
if-eqz v3, :cond_4a
.line 9
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
invoke-interface {v3}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v3
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
invoke-interface {v4}, Ljava/util/Map;->size()I
move-result v4
new-array v4, v4, [Lcom/squareup/okhttp/internal/framed/Ping;
invoke-interface {v3, v4}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v3
check-cast v3, [Lcom/squareup/okhttp/internal/framed/Ping;
.line 10
iput-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
move-object v0, v3
.line 11
:cond_4a
monitor-exit p0
:try_end_4b
.catchall {:try_start_8 .. :try_end_4b} :catchall_82
if-eqz v1, :cond_60
.line 12
array-length v3, v1
move-object v4, p1
const/4 p1, 0x0
:goto_50
if-ge p1, v3, :cond_5f
aget-object v5, v1, p1
.line 13
:try_start_54
invoke-virtual {v5, p2}, Lcom/squareup/okhttp/internal/framed/FramedStream;->close(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
:try_end_57
.catch Ljava/io/IOException; {:try_start_54 .. :try_end_57} :catch_58
goto :goto_5c
:catch_58
move-exception v5
if-eqz v4, :cond_5c
move-object v4, v5
:cond_5c
:goto_5c
add-int/lit8 p1, p1, 0x1
goto :goto_50
:cond_5f
move-object p1, v4
:cond_60
if-eqz v0, :cond_6d
.line 14
array-length p2, v0
:goto_63
if-ge v2, p2, :cond_6d
aget-object v1, v0, v2
.line 15
invoke-virtual {v1}, Lcom/squareup/okhttp/internal/framed/Ping;->cancel()V
add-int/lit8 v2, v2, 0x1
goto :goto_63
.line 16
:cond_6d
:try_start_6d
iget-object p2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {p2}, Ljava/io/Closeable;->close()V
:try_end_72
.catch Ljava/io/IOException; {:try_start_6d .. :try_end_72} :catch_73
goto :goto_77
:catch_73
move-exception p2
if-nez p1, :cond_77
move-object p1, p2
.line 17
:cond_77
:goto_77
:try_start_77
iget-object p2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->socket:Ljava/net/Socket;
invoke-virtual {p2}, Ljava/net/Socket;->close()V
:try_end_7c
.catch Ljava/io/IOException; {:try_start_77 .. :try_end_7c} :catch_7d
goto :goto_7e
:catch_7d
move-exception p1
:goto_7e
if-nez p1, :cond_81
return-void
.line 18
:cond_81
throw p1
:catchall_82
move-exception p1
.line 19
:try_start_83
monitor-exit p0
:try_end_84
.catchall {:try_start_83 .. :try_end_84} :catchall_82
goto :goto_86
:goto_85
throw p1
:goto_86
goto :goto_85
.end method
.method private newStream(ILjava/util/List;ZZ)Lcom/squareup/okhttp/internal/framed/FramedStream;
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/squareup/okhttp/internal/framed/Header;",
">;ZZ)",
"Lcom/squareup/okhttp/internal/framed/FramedStream;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
xor-int/lit8 v6, p3, 0x1
xor-int/lit8 p4, p4, 0x1
.line 2
iget-object v7, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
monitor-enter v7
.line 3
:try_start_7
monitor-enter p0
:try_end_8
.catchall {:try_start_7 .. :try_end_8} :catchall_65
.line 4
:try_start_8
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->shutdown:Z
if-nez v0, :cond_5a
.line 5
iget v8, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextStreamId:I
.line 6
iget v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextStreamId:I
add-int/lit8 v0, v0, 0x2
iput v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextStreamId:I
.line 7
new-instance v9, Lcom/squareup/okhttp/internal/framed/FramedStream;
move-object v0, v9
move v1, v8
move-object v2, p0
move v3, v6
move v4, p4
move-object v5, p2
invoke-direct/range {v0 .. v5}, Lcom/squareup/okhttp/internal/framed/FramedStream;-><init>(ILcom/squareup/okhttp/internal/framed/FramedConnection;ZZLjava/util/List;)V
.line 8
invoke-virtual {v9}, Lcom/squareup/okhttp/internal/framed/FramedStream;->isOpen()Z
move-result v0
if-eqz v0, :cond_32
.line 9
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1, v9}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v0, 0x0
.line 10
invoke-direct {p0, v0}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->setIdle(Z)V
.line 11
:cond_32
monitor-exit p0
:try_end_33
.catchall {:try_start_8 .. :try_end_33} :catchall_62
if-nez p1, :cond_40
.line 12
:try_start_35
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
move v1, v6
move v2, p4
move v3, v8
move v4, p1
move-object v5, p2
invoke-interface/range {v0 .. v5}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->synStream(ZZIILjava/util/List;)V
goto :goto_49
.line 13
:cond_40
iget-boolean p4, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->client:Z
if-nez p4, :cond_52
.line 14
iget-object p4, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {p4, p1, v8, p2}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->pushPromise(IILjava/util/List;)V
.line 15
:goto_49
monitor-exit v7
:try_end_4a
.catchall {:try_start_35 .. :try_end_4a} :catchall_65
if-nez p3, :cond_51
.line 16
iget-object p1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {p1}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->flush()V
:cond_51
return-object v9
.line 17
:cond_52
:try_start_52
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "client streams shouldn\'t have associated stream IDs"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:try_end_5a
.catchall {:try_start_52 .. :try_end_5a} :catchall_65
.line 18
:cond_5a
:try_start_5a
new-instance p1, Ljava/io/IOException;
const-string p2, "shutdown"
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_62
move-exception p1
.line 19
monitor-exit p0
:try_end_64
.catchall {:try_start_5a .. :try_end_64} :catchall_62
:try_start_64
throw p1
:catchall_65
move-exception p1
.line 20
monitor-exit v7
:try_end_67
.catchall {:try_start_64 .. :try_end_67} :catchall_65
throw p1
.end method
.method private pushDataLater(ILokio/BufferedSource;IZ)V
.registers 14
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v5, Lokio/Buffer;
invoke-direct {v5}, Lokio/Buffer;-><init>()V
int-to-long v0, p3
.line 2
invoke-interface {p2, v0, v1}, Lokio/BufferedSource;->require(J)V
.line 3
invoke-interface {p2, v5, v0, v1}, Lokio/Source;->read(Lokio/Buffer;J)J
.line 4
invoke-virtual {v5}, Lokio/Buffer;->size()J
move-result-wide v2
cmp-long p2, v2, v0
if-nez p2, :cond_35
.line 5
iget-object p2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushExecutor:Ljava/util/concurrent/ExecutorService;
new-instance v8, Lcom/squareup/okhttp/internal/framed/FramedConnection$6;
const/4 v0, 0x2
new-array v3, v0, [Ljava/lang/Object;
const/4 v0, 0x0
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
aput-object v1, v3, v0
const/4 v0, 0x1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v0
const-string v2, "OkHttp %s Push Data[%s]"
move-object v0, v8
move-object v1, p0
move v4, p1
move v6, p3
move v7, p4
invoke-direct/range {v0 .. v7}, Lcom/squareup/okhttp/internal/framed/FramedConnection$6;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection;Ljava/lang/String;[Ljava/lang/Object;ILokio/Buffer;IZ)V
invoke-interface {p2, v8}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.line 6
:cond_35
new-instance p1, Ljava/io/IOException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v5}, Lokio/Buffer;->size()J
move-result-wide v0
invoke-virtual {p2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p4, " != "
invoke-virtual {p2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method private pushHeadersLater(ILjava/util/List;Z)V
.registers 13
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/squareup/okhttp/internal/framed/Header;",
">;Z)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushExecutor:Ljava/util/concurrent/ExecutorService;
new-instance v8, Lcom/squareup/okhttp/internal/framed/FramedConnection$5;
const/4 v1, 0x2
new-array v4, v1, [Ljava/lang/Object;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
const/4 v2, 0x0
aput-object v1, v4, v2
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v4, v2
const-string v3, "OkHttp %s Push Headers[%s]"
move-object v1, v8
move-object v2, p0
move v5, p1
move-object v6, p2
move v7, p3
invoke-direct/range {v1 .. v7}, Lcom/squareup/okhttp/internal/framed/FramedConnection$5;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;Z)V
invoke-interface {v0, v8}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method private pushRequestLater(ILjava/util/List;)V
.registers 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/squareup/okhttp/internal/framed/Header;",
">;)V"
}
.end annotation
.line 1
monitor-enter p0
.line 2
:try_start_1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->currentPushRequests:Ljava/util/Set;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_14
.line 3
sget-object p2, Lcom/squareup/okhttp/internal/framed/ErrorCode;->PROTOCOL_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
invoke-virtual {p0, p1, p2}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->writeSynResetLater(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
.line 4
monitor-exit p0
return-void
.line 5
:cond_14
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->currentPushRequests:Ljava/util/Set;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 6
monitor-exit p0
:try_end_1e
.catchall {:try_start_1 .. :try_end_1e} :catchall_3e
.line 7
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushExecutor:Ljava/util/concurrent/ExecutorService;
new-instance v7, Lcom/squareup/okhttp/internal/framed/FramedConnection$4;
const/4 v1, 0x2
new-array v4, v1, [Ljava/lang/Object;
const/4 v1, 0x0
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
aput-object v2, v4, v1
const/4 v1, 0x1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v4, v1
const-string v3, "OkHttp %s Push Request[%s]"
move-object v1, v7
move-object v2, p0
move v5, p1
move-object v6, p2
invoke-direct/range {v1 .. v6}, Lcom/squareup/okhttp/internal/framed/FramedConnection$4;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;)V
invoke-interface {v0, v7}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
:catchall_3e
move-exception p1
.line 8
:try_start_3f
monitor-exit p0
:try_end_40
.catchall {:try_start_3f .. :try_end_40} :catchall_3e
throw p1
.end method
.method private pushResetLater(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
.registers 11
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pushExecutor:Ljava/util/concurrent/ExecutorService;
new-instance v7, Lcom/squareup/okhttp/internal/framed/FramedConnection$7;
const/4 v1, 0x2
new-array v4, v1, [Ljava/lang/Object;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
const/4 v2, 0x0
aput-object v1, v4, v2
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v4, v2
const-string v3, "OkHttp %s Push Reset[%s]"
move-object v1, v7
move-object v2, p0
move v5, p1
move-object v6, p2
invoke-direct/range {v1 .. v6}, Lcom/squareup/okhttp/internal/framed/FramedConnection$7;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection;Ljava/lang/String;[Ljava/lang/Object;ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
invoke-interface {v0, v7}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method private pushedStream(I)Z
.registers 5
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->protocol:Lcom/squareup/okhttp/Protocol;
sget-object v1, Lcom/squareup/okhttp/Protocol;->HTTP_2:Lcom/squareup/okhttp/Protocol;
const/4 v2, 0x1
if-ne v0, v1, :cond_d
if-eqz p1, :cond_d
and-int/2addr p1, v2
if-nez p1, :cond_d
goto :goto_e
:cond_d
const/4 v2, 0x0
:goto_e
return v2
.end method
.method private declared-synchronized removePing(I)Lcom/squareup/okhttp/internal/framed/Ping;
.registers 3
monitor-enter p0
.line 1
:try_start_1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
if-eqz v0, :cond_12
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/squareup/okhttp/internal/framed/Ping;
:try_end_11
.catchall {:try_start_1 .. :try_end_11} :catchall_15
goto :goto_13
:cond_12
const/4 p1, 0x0
:goto_13
monitor-exit p0
return-object p1
:catchall_15
move-exception p1
monitor-exit p0
throw p1
.end method
.method private declared-synchronized setIdle(Z)V
.registers 4
monitor-enter p0
if-eqz p1, :cond_a
.line 1
:try_start_3
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
goto :goto_f
:catchall_8
move-exception p1
goto :goto_13
:cond_a
const-wide v0, 0x7fffffffffffffffL
:goto_f
iput-wide v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->idleStartTimeNs:J
:try_end_11
.catchall {:try_start_3 .. :try_end_11} :catchall_8
.line 2
monitor-exit p0
return-void
:goto_13
monitor-exit p0
throw p1
.end method
.method private writePing(ZIILcom/squareup/okhttp/internal/framed/Ping;)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
monitor-enter v0
if-eqz p4, :cond_8
.line 2
:try_start_5
invoke-virtual {p4}, Lcom/squareup/okhttp/internal/framed/Ping;->send()V
.line 3
:cond_8
iget-object p4, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {p4, p1, p2, p3}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->ping(ZII)V
.line 4
monitor-exit v0
return-void
:catchall_f
move-exception p1
monitor-exit v0
:try_end_11
.catchall {:try_start_5 .. :try_end_11} :catchall_f
throw p1
.end method
.method private writePingLater(ZIILcom/squareup/okhttp/internal/framed/Ping;)V
.registers 15
.line 1
sget-object v0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->executor:Ljava/util/concurrent/ExecutorService;
new-instance v9, Lcom/squareup/okhttp/internal/framed/FramedConnection$3;
const/4 v1, 0x3
new-array v4, v1, [Ljava/lang/Object;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
const/4 v2, 0x0
aput-object v1, v4, v2
.line 2
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v4, v2
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x2
aput-object v1, v4, v2
const-string v3, "OkHttp %s ping %08x%08x"
move-object v1, v9
move-object v2, p0
move v5, p1
move v6, p2
move v7, p3
move-object v8, p4
invoke-direct/range {v1 .. v8}, Lcom/squareup/okhttp/internal/framed/FramedConnection$3;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection;Ljava/lang/String;[Ljava/lang/Object;ZIILcom/squareup/okhttp/internal/framed/Ping;)V
.line 3
invoke-interface {v0, v9}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
# virtual methods
.method addBytesToWriteWindow(J)V
.registers 6
.line 1
iget-wide v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->bytesLeftInWriteWindow:J
add-long/2addr v0, p1
iput-wide v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->bytesLeftInWriteWindow:J
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_e
.line 2
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
:cond_e
return-void
.end method
.method public close()V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
sget-object v0, Lcom/squareup/okhttp/internal/framed/ErrorCode;->NO_ERROR:Lcom/squareup/okhttp/internal/framed/ErrorCode;
sget-object v1, Lcom/squareup/okhttp/internal/framed/ErrorCode;->CANCEL:Lcom/squareup/okhttp/internal/framed/ErrorCode;
invoke-direct {p0, v0, v1}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->close(Lcom/squareup/okhttp/internal/framed/ErrorCode;Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
return-void
.end method
.method public flush()V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {v0}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->flush()V
return-void
.end method
.method public declared-synchronized getIdleStartTimeNs()J
.registers 3
monitor-enter p0
.line 1
:try_start_1
iget-wide v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->idleStartTimeNs:J
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_5
monitor-exit p0
return-wide v0
:catchall_5
move-exception v0
monitor-exit p0
throw v0
.end method
.method public getProtocol()Lcom/squareup/okhttp/Protocol;
.registers 2
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->protocol:Lcom/squareup/okhttp/Protocol;
return-object v0
.end method
.method declared-synchronized getStream(I)Lcom/squareup/okhttp/internal/framed/FramedStream;
.registers 3
monitor-enter p0
.line 1
:try_start_1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/squareup/okhttp/internal/framed/FramedStream;
:try_end_d
.catchall {:try_start_1 .. :try_end_d} :catchall_f
monitor-exit p0
return-object p1
:catchall_f
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized isIdle()Z
.registers 6
monitor-enter p0
.line 1
:try_start_1
iget-wide v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->idleStartTimeNs:J
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_11
const-wide v2, 0x7fffffffffffffffL
cmp-long v4, v0, v2
if-eqz v4, :cond_e
const/4 v0, 0x1
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
monitor-exit p0
return v0
:catchall_11
move-exception v0
monitor-exit p0
throw v0
.end method
.method public newStream(Ljava/util/List;ZZ)Lcom/squareup/okhttp/internal/framed/FramedStream;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/squareup/okhttp/internal/framed/Header;",
">;ZZ)",
"Lcom/squareup/okhttp/internal/framed/FramedStream;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 1
invoke-direct {p0, v0, p1, p2, p3}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->newStream(ILjava/util/List;ZZ)Lcom/squareup/okhttp/internal/framed/FramedStream;
move-result-object p1
return-object p1
.end method
.method public declared-synchronized openStreamCount()I
.registers 2
monitor-enter p0
.line 1
:try_start_1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->size()I
move-result v0
:try_end_7
.catchall {:try_start_1 .. :try_end_7} :catchall_9
monitor-exit p0
return v0
:catchall_9
move-exception v0
monitor-exit p0
throw v0
.end method
.method public ping()Lcom/squareup/okhttp/internal/framed/Ping;
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Lcom/squareup/okhttp/internal/framed/Ping;
invoke-direct {v0}, Lcom/squareup/okhttp/internal/framed/Ping;-><init>()V
.line 2
monitor-enter p0
.line 3
:try_start_6
iget-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->shutdown:Z
if-nez v1, :cond_2f
.line 4
iget v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextPingId:I
.line 5
iget v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextPingId:I
add-int/lit8 v2, v2, 0x2
iput v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->nextPingId:I
.line 6
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
if-nez v2, :cond_1d
new-instance v2, Ljava/util/HashMap;
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
iput-object v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
.line 7
:cond_1d
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->pings:Ljava/util/Map;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-interface {v2, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 8
monitor-exit p0
:try_end_27
.catchall {:try_start_6 .. :try_end_27} :catchall_37
const/4 v2, 0x0
const v3, 0x4f4b6f6b
.line 9
invoke-direct {p0, v2, v1, v3, v0}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->writePing(ZIILcom/squareup/okhttp/internal/framed/Ping;)V
return-object v0
.line 10
:cond_2f
:try_start_2f
new-instance v0, Ljava/io/IOException;
const-string v1, "shutdown"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catchall_37
move-exception v0
.line 11
monitor-exit p0
:try_end_39
.catchall {:try_start_2f .. :try_end_39} :catchall_37
throw v0
.end method
.method public pushStream(ILjava/util/List;Z)Lcom/squareup/okhttp/internal/framed/FramedStream;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/squareup/okhttp/internal/framed/Header;",
">;Z)",
"Lcom/squareup/okhttp/internal/framed/FramedStream;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->client:Z
if-nez v0, :cond_18
.line 2
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->protocol:Lcom/squareup/okhttp/Protocol;
sget-object v1, Lcom/squareup/okhttp/Protocol;->HTTP_2:Lcom/squareup/okhttp/Protocol;
if-ne v0, v1, :cond_10
const/4 v0, 0x0
.line 3
invoke-direct {p0, p1, p2, p3, v0}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->newStream(ILjava/util/List;ZZ)Lcom/squareup/okhttp/internal/framed/FramedStream;
move-result-object p1
return-object p1
.line 4
:cond_10
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "protocol != HTTP_2"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 5
:cond_18
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Client cannot push requests."
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method declared-synchronized removeStream(I)Lcom/squareup/okhttp/internal/framed/FramedStream;
.registers 3
monitor-enter p0
.line 1
:try_start_1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/squareup/okhttp/internal/framed/FramedStream;
if-eqz p1, :cond_1b
.line 2
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-eqz v0, :cond_1b
const/4 v0, 0x1
.line 3
invoke-direct {p0, v0}, Lcom/squareup/okhttp/internal/framed/FramedConnection;->setIdle(Z)V
.line 4
:cond_1b
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
:try_end_1e
.catchall {:try_start_1 .. :try_end_1e} :catchall_20
.line 5
monitor-exit p0
return-object p1
:catchall_20
move-exception p1
monitor-exit p0
throw p1
.end method
.method public sendConnectionPreface()V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {v0}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->connectionPreface()V
.line 2
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->okHttpSettings:Lcom/squareup/okhttp/internal/framed/Settings;
invoke-interface {v0, v1}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->settings(Lcom/squareup/okhttp/internal/framed/Settings;)V
.line 3
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->okHttpSettings:Lcom/squareup/okhttp/internal/framed/Settings;
const/high16 v1, 0x10000
invoke-virtual {v0, v1}, Lcom/squareup/okhttp/internal/framed/Settings;->getInitialWindowSize(I)I
move-result v0
if-eq v0, v1, :cond_1e
.line 4
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
const/4 v3, 0x0
sub-int/2addr v0, v1
int-to-long v0, v0
invoke-interface {v2, v3, v0, v1}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->windowUpdate(IJ)V
:cond_1e
return-void
.end method
.method public shutdown(Lcom/squareup/okhttp/internal/framed/ErrorCode;)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
monitor-enter v0
.line 2
:try_start_3
monitor-enter p0
:try_end_4
.catchall {:try_start_3 .. :try_end_4} :catchall_1d
.line 3
:try_start_4
iget-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->shutdown:Z
if-eqz v1, :cond_b
.line 4
monitor-exit p0
:try_end_9
.catchall {:try_start_4 .. :try_end_9} :catchall_1a
:try_start_9
monitor-exit v0
:try_end_a
.catchall {:try_start_9 .. :try_end_a} :catchall_1d
return-void
:cond_b
const/4 v1, 0x1
.line 5
:try_start_c
iput-boolean v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->shutdown:Z
.line 6
iget v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->lastGoodStreamId:I
.line 7
monitor-exit p0
:try_end_11
.catchall {:try_start_c .. :try_end_11} :catchall_1a
.line 8
:try_start_11
iget-object v2, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
sget-object v3, Lcom/squareup/okhttp/internal/Util;->EMPTY_BYTE_ARRAY:[B
invoke-interface {v2, v1, p1, v3}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->goAway(ILcom/squareup/okhttp/internal/framed/ErrorCode;[B)V
.line 9
monitor-exit v0
:try_end_19
.catchall {:try_start_11 .. :try_end_19} :catchall_1d
return-void
:catchall_1a
move-exception p1
.line 10
:try_start_1b
monitor-exit p0
:try_end_1c
.catchall {:try_start_1b .. :try_end_1c} :catchall_1a
:try_start_1c
throw p1
:catchall_1d
move-exception p1
.line 11
monitor-exit v0
:try_end_1f
.catchall {:try_start_1c .. :try_end_1f} :catchall_1d
throw p1
.end method
.method public writeData(IZLokio/Buffer;J)V
.registers 14
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
const-wide/16 v1, 0x0
cmp-long v3, p4, v1
if-nez v3, :cond_d
.line 1
iget-object p4, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {p4, p2, p1, p3, v0}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->data(ZILokio/Buffer;I)V
return-void
:cond_d
:goto_d
cmp-long v3, p4, v1
if-lez v3, :cond_62
.line 2
monitor-enter p0
.line 3
:goto_12
:try_start_12
iget-wide v3, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->bytesLeftInWriteWindow:J
cmp-long v5, v3, v1
if-gtz v5, :cond_30
.line 4
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->streams:Ljava/util/Map;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-interface {v3, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_28
.line 5
invoke-virtual {p0}, Ljava/lang/Object;->wait()V
goto :goto_12
.line 6
:cond_28
new-instance p1, Ljava/io/IOException;
const-string p2, "stream closed"
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
:try_end_30
.catch Ljava/lang/InterruptedException; {:try_start_12 .. :try_end_30} :catch_5a
.catchall {:try_start_12 .. :try_end_30} :catchall_58
.line 7
:cond_30
:try_start_30
iget-wide v3, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->bytesLeftInWriteWindow:J
invoke-static {p4, p5, v3, v4}, Ljava/lang/Math;->min(JJ)J
move-result-wide v3
long-to-int v4, v3
.line 8
iget-object v3, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {v3}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->maxDataLength()I
move-result v3
invoke-static {v4, v3}, Ljava/lang/Math;->min(II)I
move-result v3
.line 9
iget-wide v4, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->bytesLeftInWriteWindow:J
int-to-long v6, v3
sub-long/2addr v4, v6
iput-wide v4, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->bytesLeftInWriteWindow:J
.line 10
monitor-exit p0
:try_end_48
.catchall {:try_start_30 .. :try_end_48} :catchall_58
sub-long/2addr p4, v6
.line 11
iget-object v4, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
if-eqz p2, :cond_53
cmp-long v5, p4, v1
if-nez v5, :cond_53
const/4 v5, 0x1
goto :goto_54
:cond_53
const/4 v5, 0x0
:goto_54
invoke-interface {v4, v5, p1, p3, v3}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->data(ZILokio/Buffer;I)V
goto :goto_d
:catchall_58
move-exception p1
goto :goto_60
.line 12
:catch_5a
:try_start_5a
new-instance p1, Ljava/io/InterruptedIOException;
invoke-direct {p1}, Ljava/io/InterruptedIOException;-><init>()V
throw p1
.line 13
:goto_60
monitor-exit p0
:try_end_61
.catchall {:try_start_5a .. :try_end_61} :catchall_58
throw p1
:cond_62
return-void
.end method
.method writeSynReply(IZLjava/util/List;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(IZ",
"Ljava/util/List<",
"Lcom/squareup/okhttp/internal/framed/Header;",
">;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {v0, p2, p1, p3}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->synReply(ZILjava/util/List;)V
return-void
.end method
.method writeSynReset(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->frameWriter:Lcom/squareup/okhttp/internal/framed/FrameWriter;
invoke-interface {v0, p1, p2}, Lcom/squareup/okhttp/internal/framed/FrameWriter;->rstStream(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
return-void
.end method
.method writeSynResetLater(ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
.registers 11
.line 1
sget-object v0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->executor:Ljava/util/concurrent/ExecutorService;
new-instance v7, Lcom/squareup/okhttp/internal/framed/FramedConnection$1;
const/4 v1, 0x2
new-array v4, v1, [Ljava/lang/Object;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
const/4 v2, 0x0
aput-object v1, v4, v2
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v4, v2
const-string v3, "OkHttp %s stream %d"
move-object v1, v7
move-object v2, p0
move v5, p1
move-object v6, p2
invoke-direct/range {v1 .. v6}, Lcom/squareup/okhttp/internal/framed/FramedConnection$1;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection;Ljava/lang/String;[Ljava/lang/Object;ILcom/squareup/okhttp/internal/framed/ErrorCode;)V
invoke-interface {v0, v7}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
return-void
.end method
.method writeWindowUpdateLater(IJ)V
.registers 13
.line 1
sget-object v0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->executor:Ljava/util/concurrent/ExecutorService;
new-instance v8, Lcom/squareup/okhttp/internal/framed/FramedConnection$2;
const/4 v1, 0x2
new-array v4, v1, [Ljava/lang/Object;
iget-object v1, p0, Lcom/squareup/okhttp/internal/framed/FramedConnection;->hostName:Ljava/lang/String;
const/4 v2, 0x0
aput-object v1, v4, v2
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v4, v2
const-string v3, "OkHttp Window Update %s stream %d"
move-object v1, v8
move-object v2, p0
move v5, p1
move-wide v6, p2
invoke-direct/range {v1 .. v7}, Lcom/squareup/okhttp/internal/framed/FramedConnection$2;-><init>(Lcom/squareup/okhttp/internal/framed/FramedConnection;Ljava/lang/String;[Ljava/lang/Object;IJ)V
invoke-interface {v0, v8}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method