k.smali
.class public final Lokhttp3/internal/http2/k;
.super Ljava/lang/Object;
.source "Http2Connection.java"
# interfaces
.implements Ljava/io/Closeable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/http2/k$c;,
Lokhttp3/internal/http2/k$e;,
Lokhttp3/internal/http2/k$a;,
Lokhttp3/internal/http2/k$b;,
Lokhttp3/internal/http2/k$d;
}
.end annotation
# static fields
.field private static final a:Ljava/util/concurrent/ExecutorService;
# instance fields
.field final b:Z
.field final c:Lokhttp3/internal/http2/k$c;
.field final d:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Lokhttp3/internal/http2/p;",
">;"
}
.end annotation
.end field
.field final e:Ljava/lang/String;
.field f:I
.field g:I
.field private h:Z
.field private final i:Ljava/util/concurrent/ScheduledExecutorService;
.field private final j:Ljava/util/concurrent/ExecutorService;
.field final k:Lokhttp3/internal/http2/PushObserver;
.field private l:J
.field private m:J
.field private n:J
.field private o:J
.field private p:J
.field private q:J
.field private r:J
.field s:J
.field t:J
.field u:Lokhttp3/internal/http2/t;
.field final v:Lokhttp3/internal/http2/t;
.field final w:Ljava/net/Socket;
.field final x:Lokhttp3/internal/http2/q;
.field final y:Lokhttp3/internal/http2/k$e;
.field final z:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
# 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 Http2Connection"
.line 2
invoke-static {v7, v0}, Lokhttp3/a/e;->a(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, Lokhttp3/internal/http2/k;->a:Ljava/util/concurrent/ExecutorService;
return-void
.end method
.method constructor <init>(Lokhttp3/internal/http2/k$a;)V
.registers 25
move-object/from16 v0, p0
move-object/from16 v1, p1
.line 1
invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v2, Ljava/util/LinkedHashMap;
invoke-direct {v2}, Ljava/util/LinkedHashMap;-><init>()V
iput-object v2, v0, Lokhttp3/internal/http2/k;->d:Ljava/util/Map;
const-wide/16 v2, 0x0
.line 3
iput-wide v2, v0, Lokhttp3/internal/http2/k;->l:J
.line 4
iput-wide v2, v0, Lokhttp3/internal/http2/k;->m:J
.line 5
iput-wide v2, v0, Lokhttp3/internal/http2/k;->n:J
.line 6
iput-wide v2, v0, Lokhttp3/internal/http2/k;->o:J
.line 7
iput-wide v2, v0, Lokhttp3/internal/http2/k;->p:J
.line 8
iput-wide v2, v0, Lokhttp3/internal/http2/k;->q:J
.line 9
iput-wide v2, v0, Lokhttp3/internal/http2/k;->r:J
.line 10
iput-wide v2, v0, Lokhttp3/internal/http2/k;->s:J
.line 11
new-instance v2, Lokhttp3/internal/http2/t;
invoke-direct {v2}, Lokhttp3/internal/http2/t;-><init>()V
iput-object v2, v0, Lokhttp3/internal/http2/k;->u:Lokhttp3/internal/http2/t;
.line 12
new-instance v2, Lokhttp3/internal/http2/t;
invoke-direct {v2}, Lokhttp3/internal/http2/t;-><init>()V
iput-object v2, v0, Lokhttp3/internal/http2/k;->v:Lokhttp3/internal/http2/t;
.line 13
new-instance v2, Ljava/util/LinkedHashSet;
invoke-direct {v2}, Ljava/util/LinkedHashSet;-><init>()V
iput-object v2, v0, Lokhttp3/internal/http2/k;->z:Ljava/util/Set;
.line 14
iget-object v2, v1, Lokhttp3/internal/http2/k$a;->f:Lokhttp3/internal/http2/PushObserver;
iput-object v2, v0, Lokhttp3/internal/http2/k;->k:Lokhttp3/internal/http2/PushObserver;
.line 15
iget-boolean v2, v1, Lokhttp3/internal/http2/k$a;->g:Z
iput-boolean v2, v0, Lokhttp3/internal/http2/k;->b:Z
.line 16
iget-object v3, v1, Lokhttp3/internal/http2/k$a;->e:Lokhttp3/internal/http2/k$c;
iput-object v3, v0, Lokhttp3/internal/http2/k;->c:Lokhttp3/internal/http2/k$c;
const/4 v3, 0x2
const/4 v4, 0x1
if-eqz v2, :cond_47
const/4 v2, 0x1
goto :goto_48
:cond_47
const/4 v2, 0x2
.line 17
:goto_48
iput v2, v0, Lokhttp3/internal/http2/k;->g:I
.line 18
iget-boolean v2, v1, Lokhttp3/internal/http2/k$a;->g:Z
if-eqz v2, :cond_53
.line 19
iget v2, v0, Lokhttp3/internal/http2/k;->g:I
add-int/2addr v2, v3
iput v2, v0, Lokhttp3/internal/http2/k;->g:I
.line 20
:cond_53
iget-boolean v2, v1, Lokhttp3/internal/http2/k$a;->g:Z
const/4 v3, 0x7
if-eqz v2, :cond_5f
.line 21
iget-object v2, v0, Lokhttp3/internal/http2/k;->u:Lokhttp3/internal/http2/t;
const/high16 v5, 0x1000000
invoke-virtual {v2, v3, v5}, Lokhttp3/internal/http2/t;->a(II)Lokhttp3/internal/http2/t;
.line 22
:cond_5f
iget-object v2, v1, Lokhttp3/internal/http2/k$a;->b:Ljava/lang/String;
iput-object v2, v0, Lokhttp3/internal/http2/k;->e:Ljava/lang/String;
.line 23
new-instance v2, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
new-array v5, v4, [Ljava/lang/Object;
iget-object v6, v0, Lokhttp3/internal/http2/k;->e:Ljava/lang/String;
const/4 v7, 0x0
aput-object v6, v5, v7
const-string v6, "OkHttp %s Writer"
.line 24
invoke-static {v6, v5}, Lokhttp3/a/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v5
invoke-static {v5, v7}, Lokhttp3/a/e;->a(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
move-result-object v5
invoke-direct {v2, v4, v5}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;)V
iput-object v2, v0, Lokhttp3/internal/http2/k;->i:Ljava/util/concurrent/ScheduledExecutorService;
.line 25
iget v2, v1, Lokhttp3/internal/http2/k$a;->h:I
if-eqz v2, :cond_8f
.line 26
iget-object v8, v0, Lokhttp3/internal/http2/k;->i:Ljava/util/concurrent/ScheduledExecutorService;
new-instance v9, Lokhttp3/internal/http2/k$b;
invoke-direct {v9, v0}, Lokhttp3/internal/http2/k$b;-><init>(Lokhttp3/internal/http2/k;)V
iget v2, v1, Lokhttp3/internal/http2/k$a;->h:I
int-to-long v10, v2
int-to-long v12, v2
sget-object v14, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-interface/range {v8 .. v14}, Ljava/util/concurrent/ScheduledExecutorService;->scheduleAtFixedRate(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
.line 27
:cond_8f
new-instance v2, Ljava/util/concurrent/ThreadPoolExecutor;
const/16 v16, 0x0
const/16 v17, 0x1
const-wide/16 v18, 0x3c
sget-object v20, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v21, Ljava/util/concurrent/LinkedBlockingQueue;
invoke-direct/range {v21 .. v21}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
new-array v5, v4, [Ljava/lang/Object;
iget-object v6, v0, Lokhttp3/internal/http2/k;->e:Ljava/lang/String;
aput-object v6, v5, v7
const-string v6, "OkHttp %s Push Observer"
.line 28
invoke-static {v6, v5}, Lokhttp3/a/e;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v5
invoke-static {v5, v4}, Lokhttp3/a/e;->a(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
move-result-object v22
move-object v15, v2
invoke-direct/range {v15 .. v22}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
iput-object v2, v0, Lokhttp3/internal/http2/k;->j:Ljava/util/concurrent/ExecutorService;
.line 29
iget-object v2, v0, Lokhttp3/internal/http2/k;->v:Lokhttp3/internal/http2/t;
const v4, 0xffff
invoke-virtual {v2, v3, v4}, Lokhttp3/internal/http2/t;->a(II)Lokhttp3/internal/http2/t;
.line 30
iget-object v2, v0, Lokhttp3/internal/http2/k;->v:Lokhttp3/internal/http2/t;
const/4 v3, 0x5
const/16 v4, 0x4000
invoke-virtual {v2, v3, v4}, Lokhttp3/internal/http2/t;->a(II)Lokhttp3/internal/http2/t;
.line 31
iget-object v2, v0, Lokhttp3/internal/http2/k;->v:Lokhttp3/internal/http2/t;
invoke-virtual {v2}, Lokhttp3/internal/http2/t;->c()I
move-result v2
int-to-long v2, v2
iput-wide v2, v0, Lokhttp3/internal/http2/k;->t:J
.line 32
iget-object v2, v1, Lokhttp3/internal/http2/k$a;->a:Ljava/net/Socket;
iput-object v2, v0, Lokhttp3/internal/http2/k;->w:Ljava/net/Socket;
.line 33
new-instance v2, Lokhttp3/internal/http2/q;
iget-object v3, v1, Lokhttp3/internal/http2/k$a;->d:Lokio/BufferedSink;
iget-boolean v4, v0, Lokhttp3/internal/http2/k;->b:Z
invoke-direct {v2, v3, v4}, Lokhttp3/internal/http2/q;-><init>(Lokio/BufferedSink;Z)V
iput-object v2, v0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
.line 34
new-instance v2, Lokhttp3/internal/http2/k$e;
new-instance v3, Lokhttp3/internal/http2/Http2Reader;
iget-object v1, v1, Lokhttp3/internal/http2/k$a;->c:Lokio/BufferedSource;
iget-boolean v4, v0, Lokhttp3/internal/http2/k;->b:Z
invoke-direct {v3, v1, v4}, Lokhttp3/internal/http2/Http2Reader;-><init>(Lokio/BufferedSource;Z)V
invoke-direct {v2, v0, v3}, Lokhttp3/internal/http2/k$e;-><init>(Lokhttp3/internal/http2/k;Lokhttp3/internal/http2/Http2Reader;)V
iput-object v2, v0, Lokhttp3/internal/http2/k;->y:Lokhttp3/internal/http2/k$e;
return-void
.end method
.method private declared-synchronized a(Lokhttp3/a/b;)V
.registers 3
monitor-enter p0
.line 70
:try_start_1
iget-boolean v0, p0, Lokhttp3/internal/http2/k;->h:Z
if-nez v0, :cond_a
.line 71
iget-object v0, p0, Lokhttp3/internal/http2/k;->j:Ljava/util/concurrent/ExecutorService;
invoke-interface {v0, p1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
:try_end_a
.catchall {:try_start_1 .. :try_end_a} :catchall_c
.line 72
:cond_a
monitor-exit p0
return-void
:catchall_c
move-exception p1
monitor-exit p0
throw p1
.end method
.method static synthetic a(Lokhttp3/internal/http2/k;)V
.registers 1
.line 1
invoke-direct {p0}, Lokhttp3/internal/http2/k;->o()V
return-void
.end method
.method static synthetic a(Lokhttp3/internal/http2/k;Z)Z
.registers 2
.line 2
iput-boolean p1, p0, Lokhttp3/internal/http2/k;->h:Z
return p1
.end method
.method static synthetic b(Lokhttp3/internal/http2/k;)J
.registers 3
.line 1
iget-wide v0, p0, Lokhttp3/internal/http2/k;->m:J
return-wide v0
.end method
.method static synthetic b()Ljava/util/concurrent/ExecutorService;
.registers 1
.line 2
sget-object v0, Lokhttp3/internal/http2/k;->a:Ljava/util/concurrent/ExecutorService;
return-object v0
.end method
.method private b(ILjava/util/List;Z)Lokhttp3/internal/http2/p;
.registers 14
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lokhttp3/internal/http2/Header;",
">;Z)",
"Lokhttp3/internal/http2/p;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
xor-int/lit8 v6, p3, 0x1
const/4 v4, 0x0
.line 3
iget-object v7, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
monitor-enter v7
.line 4
:try_start_6
monitor-enter p0
:try_end_7
.catchall {:try_start_6 .. :try_end_7} :catchall_78
.line 5
:try_start_7
iget v0, p0, Lokhttp3/internal/http2/k;->g:I
const v1, 0x3fffffff # 1.9999999f
if-le v0, v1, :cond_13
.line 6
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
invoke-virtual {p0, v0}, Lokhttp3/internal/http2/k;->a(Lokhttp3/internal/http2/ErrorCode;)V
.line 7
:cond_13
iget-boolean v0, p0, Lokhttp3/internal/http2/k;->h:Z
if-nez v0, :cond_6f
.line 8
iget v8, p0, Lokhttp3/internal/http2/k;->g:I
.line 9
iget v0, p0, Lokhttp3/internal/http2/k;->g:I
add-int/lit8 v0, v0, 0x2
iput v0, p0, Lokhttp3/internal/http2/k;->g:I
.line 10
new-instance v9, Lokhttp3/internal/http2/p;
const/4 v5, 0x0
move-object v0, v9
move v1, v8
move-object v2, p0
move v3, v6
invoke-direct/range {v0 .. v5}, Lokhttp3/internal/http2/p;-><init>(ILokhttp3/internal/http2/k;ZZLokhttp3/u;)V
if-eqz p3, :cond_3c
.line 11
iget-wide v0, p0, Lokhttp3/internal/http2/k;->t:J
const-wide/16 v2, 0x0
cmp-long p3, v0, v2
if-eqz p3, :cond_3c
iget-wide v0, v9, Lokhttp3/internal/http2/p;->b:J
cmp-long p3, v0, v2
if-nez p3, :cond_3a
goto :goto_3c
:cond_3a
const/4 p3, 0x0
goto :goto_3d
:cond_3c
:goto_3c
const/4 p3, 0x1
.line 12
:goto_3d
invoke-virtual {v9}, Lokhttp3/internal/http2/p;->g()Z
move-result v0
if-eqz v0, :cond_4c
.line 13
iget-object v0, p0, Lokhttp3/internal/http2/k;->d: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;
.line 14
:cond_4c
monitor-exit p0
:try_end_4d
.catchall {:try_start_7 .. :try_end_4d} :catchall_75
if-nez p1, :cond_55
.line 15
:try_start_4f
iget-object v0, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {v0, v6, v8, p1, p2}, Lokhttp3/internal/http2/q;->a(ZIILjava/util/List;)V
goto :goto_5e
.line 16
:cond_55
iget-boolean v0, p0, Lokhttp3/internal/http2/k;->b:Z
if-nez v0, :cond_67
.line 17
iget-object v0, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {v0, p1, v8, p2}, Lokhttp3/internal/http2/q;->pushPromise(IILjava/util/List;)V
.line 18
:goto_5e
monitor-exit v7
:try_end_5f
.catchall {:try_start_4f .. :try_end_5f} :catchall_78
if-eqz p3, :cond_66
.line 19
iget-object p1, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {p1}, Lokhttp3/internal/http2/q;->flush()V
:cond_66
return-object v9
.line 20
:cond_67
:try_start_67
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_6f
.catchall {:try_start_67 .. :try_end_6f} :catchall_78
.line 21
:cond_6f
:try_start_6f
new-instance p1, Lokhttp3/internal/http2/ConnectionShutdownException;
invoke-direct {p1}, Lokhttp3/internal/http2/ConnectionShutdownException;-><init>()V
throw p1
:catchall_75
move-exception p1
.line 22
monitor-exit p0
:try_end_77
.catchall {:try_start_6f .. :try_end_77} :catchall_75
:try_start_77
throw p1
:catchall_78
move-exception p1
.line 23
monitor-exit v7
:try_end_7a
.catchall {:try_start_77 .. :try_end_7a} :catchall_78
throw p1
.end method
.method static synthetic c(Lokhttp3/internal/http2/k;)J
.registers 5
.line 1
iget-wide v0, p0, Lokhttp3/internal/http2/k;->m:J
const-wide/16 v2, 0x1
add-long/2addr v2, v0
iput-wide v2, p0, Lokhttp3/internal/http2/k;->m:J
return-wide v0
.end method
.method static synthetic d(Lokhttp3/internal/http2/k;)J
.registers 3
.line 1
iget-wide v0, p0, Lokhttp3/internal/http2/k;->l:J
return-wide v0
.end method
.method static synthetic e(Lokhttp3/internal/http2/k;)J
.registers 5
.line 1
iget-wide v0, p0, Lokhttp3/internal/http2/k;->l:J
const-wide/16 v2, 0x1
add-long/2addr v2, v0
iput-wide v2, p0, Lokhttp3/internal/http2/k;->l:J
return-wide v0
.end method
.method static synthetic f(Lokhttp3/internal/http2/k;)Z
.registers 1
.line 1
iget-boolean p0, p0, Lokhttp3/internal/http2/k;->h:Z
return p0
.end method
.method static synthetic g(Lokhttp3/internal/http2/k;)Ljava/util/concurrent/ScheduledExecutorService;
.registers 1
.line 1
iget-object p0, p0, Lokhttp3/internal/http2/k;->i:Ljava/util/concurrent/ScheduledExecutorService;
return-object p0
.end method
.method static synthetic h(Lokhttp3/internal/http2/k;)J
.registers 5
.line 1
iget-wide v0, p0, Lokhttp3/internal/http2/k;->o:J
const-wide/16 v2, 0x1
add-long/2addr v2, v0
iput-wide v2, p0, Lokhttp3/internal/http2/k;->o:J
return-wide v0
.end method
.method static synthetic i(Lokhttp3/internal/http2/k;)J
.registers 5
.line 1
iget-wide v0, p0, Lokhttp3/internal/http2/k;->q:J
const-wide/16 v2, 0x1
add-long/2addr v2, v0
iput-wide v2, p0, Lokhttp3/internal/http2/k;->q:J
return-wide v0
.end method
.method private o()V
.registers 3
.line 1
:try_start_0
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
invoke-virtual {p0, v0, v1}, Lokhttp3/internal/http2/k;->a(Lokhttp3/internal/http2/ErrorCode;Lokhttp3/internal/http2/ErrorCode;)V
:try_end_7
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_7} :catch_7
:catch_7
return-void
.end method
# virtual methods
.method declared-synchronized a(I)Lokhttp3/internal/http2/p;
.registers 3
monitor-enter p0
.line 3
:try_start_1
iget-object v0, p0, Lokhttp3/internal/http2/k;->d: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, Lokhttp3/internal/http2/p;
: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 a(Ljava/util/List;Z)Lokhttp3/internal/http2/p;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lokhttp3/internal/http2/Header;",
">;Z)",
"Lokhttp3/internal/http2/p;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 4
invoke-direct {p0, v0, p1, p2}, Lokhttp3/internal/http2/k;->b(ILjava/util/List;Z)Lokhttp3/internal/http2/p;
move-result-object p1
return-object p1
.end method
.method a(IJ)V
.registers 13
.line 19
:try_start_0
iget-object v0, p0, Lokhttp3/internal/http2/k;->i:Ljava/util/concurrent/ScheduledExecutorService;
new-instance v8, Lokhttp3/internal/http2/e;
const-string v3, "OkHttp Window Update %s stream %d"
const/4 v1, 0x2
new-array v4, v1, [Ljava/lang/Object;
const/4 v1, 0x0
iget-object v2, p0, Lokhttp3/internal/http2/k;->e:Ljava/lang/String;
aput-object v2, v4, v1
const/4 v1, 0x1
.line 20
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v4, v1
move-object v1, v8
move-object v2, p0
move v5, p1
move-wide v6, p2
invoke-direct/range {v1 .. v7}, Lokhttp3/internal/http2/e;-><init>(Lokhttp3/internal/http2/k;Ljava/lang/String;[Ljava/lang/Object;IJ)V
.line 21
invoke-interface {v0, v8}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
:try_end_1f
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_1f} :catch_1f
:catch_1f
return-void
.end method
.method a(ILjava/util/List;)V
.registers 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lokhttp3/internal/http2/Header;",
">;)V"
}
.end annotation
.line 54
monitor-enter p0
.line 55
:try_start_1
iget-object v0, p0, Lokhttp3/internal/http2/k;->z: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 56
sget-object p2, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
invoke-virtual {p0, p1, p2}, Lokhttp3/internal/http2/k;->c(ILokhttp3/internal/http2/ErrorCode;)V
.line 57
monitor-exit p0
return-void
.line 58
:cond_14
iget-object v0, p0, Lokhttp3/internal/http2/k;->z: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 59
monitor-exit p0
:try_end_1e
.catchall {:try_start_1 .. :try_end_1e} :catchall_3c
.line 60
:try_start_1e
new-instance v0, Lokhttp3/internal/http2/g;
const-string v4, "OkHttp %s Push Request[%s]"
const/4 v1, 0x2
new-array v5, v1, [Ljava/lang/Object;
const/4 v1, 0x0
iget-object v2, p0, Lokhttp3/internal/http2/k;->e:Ljava/lang/String;
aput-object v2, v5, v1
const/4 v1, 0x1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v5, v1
move-object v2, v0
move-object v3, p0
move v6, p1
move-object v7, p2
invoke-direct/range {v2 .. v7}, Lokhttp3/internal/http2/g;-><init>(Lokhttp3/internal/http2/k;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;)V
invoke-direct {p0, v0}, Lokhttp3/internal/http2/k;->a(Lokhttp3/a/b;)V
:try_end_3b
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_1e .. :try_end_3b} :catch_3b
:catch_3b
return-void
:catchall_3c
move-exception p1
.line 61
:try_start_3d
monitor-exit p0
:try_end_3e
.catchall {:try_start_3d .. :try_end_3e} :catchall_3c
throw p1
.end method
.method a(ILjava/util/List;Z)V
.registers 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lokhttp3/internal/http2/Header;",
">;Z)V"
}
.end annotation
.line 62
:try_start_0
new-instance v7, Lokhttp3/internal/http2/h;
const-string v2, "OkHttp %s Push Headers[%s]"
const/4 v0, 0x2
new-array v3, v0, [Ljava/lang/Object;
const/4 v0, 0x0
iget-object v1, p0, Lokhttp3/internal/http2/k;->e: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
move-object v0, v7
move-object v1, p0
move v4, p1
move-object v5, p2
move v6, p3
invoke-direct/range {v0 .. v6}, Lokhttp3/internal/http2/h;-><init>(Lokhttp3/internal/http2/k;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;Z)V
invoke-direct {p0, v7}, Lokhttp3/internal/http2/k;->a(Lokhttp3/a/b;)V
:try_end_1e
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_1e} :catch_1e
:catch_1e
return-void
.end method
.method a(ILokhttp3/internal/http2/ErrorCode;)V
.registers 10
.line 69
new-instance v6, Lokhttp3/internal/http2/j;
const/4 v0, 0x2
new-array v3, v0, [Ljava/lang/Object;
iget-object v0, p0, Lokhttp3/internal/http2/k;->e:Ljava/lang/String;
const/4 v1, 0x0
aput-object v0, v3, v1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const/4 v1, 0x1
aput-object v0, v3, v1
const-string v2, "OkHttp %s Push Reset[%s]"
move-object v0, v6
move-object v1, p0
move v4, p1
move-object v5, p2
invoke-direct/range {v0 .. v5}, Lokhttp3/internal/http2/j;-><init>(Lokhttp3/internal/http2/k;Ljava/lang/String;[Ljava/lang/Object;ILokhttp3/internal/http2/ErrorCode;)V
invoke-direct {p0, v6}, Lokhttp3/internal/http2/k;->a(Lokhttp3/a/b;)V
return-void
.end method
.method a(ILokio/BufferedSource;IZ)V
.registers 13
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 63
new-instance v5, Lokio/Buffer;
invoke-direct {v5}, Lokio/Buffer;-><init>()V
int-to-long v0, p3
.line 64
invoke-interface {p2, v0, v1}, Lokio/BufferedSource;->require(J)V
.line 65
invoke-interface {p2, v5, v0, v1}, Lokio/Source;->read(Lokio/Buffer;J)J
.line 66
invoke-virtual {v5}, Lokio/Buffer;->size()J
move-result-wide v2
cmp-long p2, v2, v0
if-nez p2, :cond_33
.line 67
new-instance p2, Lokhttp3/internal/http2/i;
const/4 v0, 0x2
new-array v3, v0, [Ljava/lang/Object;
const/4 v0, 0x0
iget-object v1, p0, Lokhttp3/internal/http2/k;->e: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, p2
move-object v1, p0
move v4, p1
move v6, p3
move v7, p4
invoke-direct/range {v0 .. v7}, Lokhttp3/internal/http2/i;-><init>(Lokhttp3/internal/http2/k;Ljava/lang/String;[Ljava/lang/Object;ILokio/Buffer;IZ)V
invoke-direct {p0, p2}, Lokhttp3/internal/http2/k;->a(Lokhttp3/a/b;)V
return-void
.line 68
:cond_33
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 public a(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 5
iget-object p4, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {p4, p2, p1, p3, v0}, Lokhttp3/internal/http2/q;->data(ZILokio/Buffer;I)V
return-void
:cond_d
:goto_d
cmp-long v3, p4, v1
if-lez v3, :cond_69
.line 6
monitor-enter p0
.line 7
:goto_12
:try_start_12
iget-wide v3, p0, Lokhttp3/internal/http2/k;->t:J
cmp-long v5, v3, v1
if-gtz v5, :cond_30
.line 8
iget-object v3, p0, Lokhttp3/internal/http2/k;->d: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 9
invoke-virtual {p0}, Ljava/lang/Object;->wait()V
goto :goto_12
.line 10
: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 11
:cond_30
:try_start_30
iget-wide v3, p0, Lokhttp3/internal/http2/k;->t:J
invoke-static {p4, p5, v3, v4}, Ljava/lang/Math;->min(JJ)J
move-result-wide v3
long-to-int v4, v3
.line 12
iget-object v3, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {v3}, Lokhttp3/internal/http2/q;->maxDataLength()I
move-result v3
invoke-static {v4, v3}, Ljava/lang/Math;->min(II)I
move-result v3
.line 13
iget-wide v4, p0, Lokhttp3/internal/http2/k;->t:J
int-to-long v6, v3
sub-long/2addr v4, v6
iput-wide v4, p0, Lokhttp3/internal/http2/k;->t:J
.line 14
monitor-exit p0
:try_end_48
.catchall {:try_start_30 .. :try_end_48} :catchall_58
sub-long/2addr p4, v6
.line 15
iget-object v4, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
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-virtual {v4, v5, p1, p3, v3}, Lokhttp3/internal/http2/q;->data(ZILokio/Buffer;I)V
goto :goto_d
:catchall_58
move-exception p1
goto :goto_67
.line 16
:catch_5a
:try_start_5a
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V
.line 17
new-instance p1, Ljava/io/InterruptedIOException;
invoke-direct {p1}, Ljava/io/InterruptedIOException;-><init>()V
throw p1
.line 18
:goto_67
monitor-exit p0
:try_end_68
.catchall {:try_start_5a .. :try_end_68} :catchall_58
throw p1
:cond_69
return-void
.end method
.method public a(Lokhttp3/internal/http2/ErrorCode;)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 24
iget-object v0, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
monitor-enter v0
.line 25
:try_start_3
monitor-enter p0
:try_end_4
.catchall {:try_start_3 .. :try_end_4} :catchall_1d
.line 26
:try_start_4
iget-boolean v1, p0, Lokhttp3/internal/http2/k;->h:Z
if-eqz v1, :cond_b
.line 27
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 28
:try_start_c
iput-boolean v1, p0, Lokhttp3/internal/http2/k;->h:Z
.line 29
iget v1, p0, Lokhttp3/internal/http2/k;->f:I
.line 30
monitor-exit p0
:try_end_11
.catchall {:try_start_c .. :try_end_11} :catchall_1a
.line 31
:try_start_11
iget-object v2, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
sget-object v3, Lokhttp3/a/e;->a:[B
invoke-virtual {v2, v1, p1, v3}, Lokhttp3/internal/http2/q;->a(ILokhttp3/internal/http2/ErrorCode;[B)V
.line 32
monitor-exit v0
:try_end_19
.catchall {:try_start_11 .. :try_end_19} :catchall_1d
return-void
:catchall_1a
move-exception p1
.line 33
: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 34
monitor-exit v0
:try_end_1f
.catchall {:try_start_1c .. :try_end_1f} :catchall_1d
throw p1
.end method
.method a(Lokhttp3/internal/http2/ErrorCode;Lokhttp3/internal/http2/ErrorCode;)V
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
.line 35
:try_start_1
invoke-virtual {p0, p1}, Lokhttp3/internal/http2/k;->a(Lokhttp3/internal/http2/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 36
:goto_7
monitor-enter p0
.line 37
:try_start_8
iget-object v1, p0, Lokhttp3/internal/http2/k;->d:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z
move-result v1
if-nez v1, :cond_29
.line 38
iget-object v0, p0, Lokhttp3/internal/http2/k;->d:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
iget-object v1, p0, Lokhttp3/internal/http2/k;->d:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->size()I
move-result v1
new-array v1, v1, [Lokhttp3/internal/http2/p;
invoke-interface {v0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lokhttp3/internal/http2/p;
.line 39
iget-object v1, p0, Lokhttp3/internal/http2/k;->d:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->clear()V
.line 40
:cond_29
monitor-exit p0
:try_end_2a
.catchall {:try_start_8 .. :try_end_2a} :catchall_5c
if-eqz v0, :cond_3d
.line 41
array-length v1, v0
const/4 v2, 0x0
:goto_2e
if-ge v2, v1, :cond_3d
aget-object v3, v0, v2
.line 42
:try_start_32
invoke-virtual {v3, p2}, Lokhttp3/internal/http2/p;->a(Lokhttp3/internal/http2/ErrorCode;)V
:try_end_35
.catch Ljava/io/IOException; {:try_start_32 .. :try_end_35} :catch_36
goto :goto_3a
:catch_36
move-exception v3
if-eqz p1, :cond_3a
move-object p1, v3
:cond_3a
:goto_3a
add-int/lit8 v2, v2, 0x1
goto :goto_2e
.line 43
:cond_3d
:try_start_3d
iget-object p2, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {p2}, Lokhttp3/internal/http2/q;->close()V
:try_end_42
.catch Ljava/io/IOException; {:try_start_3d .. :try_end_42} :catch_43
goto :goto_47
:catch_43
move-exception p2
if-nez p1, :cond_47
move-object p1, p2
.line 44
:cond_47
:goto_47
:try_start_47
iget-object p2, p0, Lokhttp3/internal/http2/k;->w:Ljava/net/Socket;
invoke-virtual {p2}, Ljava/net/Socket;->close()V
:try_end_4c
.catch Ljava/io/IOException; {:try_start_47 .. :try_end_4c} :catch_4d
goto :goto_4e
:catch_4d
move-exception p1
.line 45
:goto_4e
iget-object p2, p0, Lokhttp3/internal/http2/k;->i:Ljava/util/concurrent/ScheduledExecutorService;
invoke-interface {p2}, Ljava/util/concurrent/ScheduledExecutorService;->shutdown()V
.line 46
iget-object p2, p0, Lokhttp3/internal/http2/k;->j:Ljava/util/concurrent/ExecutorService;
invoke-interface {p2}, Ljava/util/concurrent/ExecutorService;->shutdown()V
if-nez p1, :cond_5b
return-void
.line 47
:cond_5b
throw p1
:catchall_5c
move-exception p1
.line 48
:try_start_5d
monitor-exit p0
:try_end_5e
.catchall {:try_start_5d .. :try_end_5e} :catchall_5c
goto :goto_60
:goto_5f
throw p1
:goto_60
goto :goto_5f
.end method
.method a(Z)V
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p1, :cond_21
.line 49
iget-object p1, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {p1}, Lokhttp3/internal/http2/q;->connectionPreface()V
.line 50
iget-object p1, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
iget-object v0, p0, Lokhttp3/internal/http2/k;->u:Lokhttp3/internal/http2/t;
invoke-virtual {p1, v0}, Lokhttp3/internal/http2/q;->b(Lokhttp3/internal/http2/t;)V
.line 51
iget-object p1, p0, Lokhttp3/internal/http2/k;->u:Lokhttp3/internal/http2/t;
invoke-virtual {p1}, Lokhttp3/internal/http2/t;->c()I
move-result p1
const v0, 0xffff
if-eq p1, v0, :cond_21
.line 52
iget-object v1, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
const/4 v2, 0x0
sub-int/2addr p1, v0
int-to-long v3, p1
invoke-virtual {v1, v2, v3, v4}, Lokhttp3/internal/http2/q;->windowUpdate(IJ)V
.line 53
:cond_21
new-instance p1, Ljava/lang/Thread;
iget-object v0, p0, Lokhttp3/internal/http2/k;->y:Lokhttp3/internal/http2/k$e;
invoke-direct {p1, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
invoke-virtual {p1}, Ljava/lang/Thread;->start()V
return-void
.end method
.method a(ZII)V
.registers 5
.line 22
:try_start_0
iget-object v0, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {v0, p1, p2, p3}, Lokhttp3/internal/http2/q;->ping(ZII)V
:try_end_5
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_5} :catch_6
goto :goto_9
.line 23
:catch_6
invoke-direct {p0}, Lokhttp3/internal/http2/k;->o()V
:goto_9
return-void
.end method
.method b(ILokhttp3/internal/http2/ErrorCode;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 24
iget-object v0, p0, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {v0, p1, p2}, Lokhttp3/internal/http2/q;->a(ILokhttp3/internal/http2/ErrorCode;)V
return-void
.end method
.method b(I)Z
.registers 3
const/4 v0, 0x1
if-eqz p1, :cond_7
and-int/2addr p1, v0
if-nez p1, :cond_7
goto :goto_8
:cond_7
const/4 v0, 0x0
:goto_8
return v0
.end method
.method public declared-synchronized b(J)Z
.registers 9
monitor-enter p0
.line 25
:try_start_1
iget-boolean v0, p0, Lokhttp3/internal/http2/k;->h:Z
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_1b
const/4 v1, 0x0
if-eqz v0, :cond_8
monitor-exit p0
return v1
.line 26
:cond_8
:try_start_8
iget-wide v2, p0, Lokhttp3/internal/http2/k;->o:J
iget-wide v4, p0, Lokhttp3/internal/http2/k;->n:J
cmp-long v0, v2, v4
if-gez v0, :cond_18
iget-wide v2, p0, Lokhttp3/internal/http2/k;->r:J
:try_end_12
.catchall {:try_start_8 .. :try_end_12} :catchall_1b
cmp-long v0, p1, v2
if-ltz v0, :cond_18
monitor-exit p0
return v1
:cond_18
const/4 p1, 0x1
.line 27
monitor-exit p0
return p1
:catchall_1b
move-exception p1
monitor-exit p0
throw p1
.end method
.method declared-synchronized c(I)Lokhttp3/internal/http2/p;
.registers 3
monitor-enter p0
.line 2
:try_start_1
iget-object v0, p0, Lokhttp3/internal/http2/k;->d: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, Lokhttp3/internal/http2/p;
.line 3
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
:try_end_10
.catchall {:try_start_1 .. :try_end_10} :catchall_12
.line 4
monitor-exit p0
return-object p1
:catchall_12
move-exception p1
monitor-exit p0
throw p1
.end method
.method c(ILokhttp3/internal/http2/ErrorCode;)V
.registers 11
.line 5
:try_start_0
iget-object v0, p0, Lokhttp3/internal/http2/k;->i:Ljava/util/concurrent/ScheduledExecutorService;
new-instance v7, Lokhttp3/internal/http2/d;
const-string v3, "OkHttp %s stream %d"
const/4 v1, 0x2
new-array v4, v1, [Ljava/lang/Object;
const/4 v1, 0x0
iget-object v2, p0, Lokhttp3/internal/http2/k;->e: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
move-object v1, v7
move-object v2, p0
move v5, p1
move-object v6, p2
invoke-direct/range {v1 .. v6}, Lokhttp3/internal/http2/d;-><init>(Lokhttp3/internal/http2/k;Ljava/lang/String;[Ljava/lang/Object;ILokhttp3/internal/http2/ErrorCode;)V
invoke-interface {v0, v7}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
:try_end_1f
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_0 .. :try_end_1f} :catch_1f
:catch_1f
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, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode;
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
invoke-virtual {p0, v0, v1}, Lokhttp3/internal/http2/k;->a(Lokhttp3/internal/http2/ErrorCode;Lokhttp3/internal/http2/ErrorCode;)V
return-void
.end method
.method public declared-synchronized d()I
.registers 3
monitor-enter p0
.line 2
:try_start_1
iget-object v0, p0, Lokhttp3/internal/http2/k;->v:Lokhttp3/internal/http2/t;
const v1, 0x7fffffff
invoke-virtual {v0, v1}, Lokhttp3/internal/http2/t;->b(I)I
move-result v0
:try_end_a
.catchall {:try_start_1 .. :try_end_a} :catchall_c
monitor-exit p0
return v0
:catchall_c
move-exception v0
monitor-exit p0
throw v0
.end method
.method declared-synchronized d(J)V
.registers 6
monitor-enter p0
.line 3
:try_start_1
iget-wide v0, p0, Lokhttp3/internal/http2/k;->s:J
add-long/2addr v0, p1
iput-wide v0, p0, Lokhttp3/internal/http2/k;->s:J
.line 4
iget-wide p1, p0, Lokhttp3/internal/http2/k;->s:J
iget-object v0, p0, Lokhttp3/internal/http2/k;->u:Lokhttp3/internal/http2/t;
invoke-virtual {v0}, Lokhttp3/internal/http2/t;->c()I
move-result v0
div-int/lit8 v0, v0, 0x2
int-to-long v0, v0
cmp-long v2, p1, v0
if-ltz v2, :cond_1f
const/4 p1, 0x0
.line 5
iget-wide v0, p0, Lokhttp3/internal/http2/k;->s:J
invoke-virtual {p0, p1, v0, v1}, Lokhttp3/internal/http2/k;->a(IJ)V
const-wide/16 p1, 0x0
.line 6
iput-wide p1, p0, Lokhttp3/internal/http2/k;->s:J
:try_end_1f
.catchall {:try_start_1 .. :try_end_1f} :catchall_21
.line 7
:cond_1f
monitor-exit p0
return-void
:catchall_21
move-exception p1
monitor-exit p0
throw p1
.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, Lokhttp3/internal/http2/k;->x:Lokhttp3/internal/http2/q;
invoke-virtual {v0}, Lokhttp3/internal/http2/q;->flush()V
return-void
.end method
.method g()V
.registers 7
.line 2
monitor-enter p0
.line 3
:try_start_1
iget-wide v0, p0, Lokhttp3/internal/http2/k;->o:J
iget-wide v2, p0, Lokhttp3/internal/http2/k;->n:J
cmp-long v4, v0, v2
if-gez v4, :cond_b
monitor-exit p0
return-void
.line 4
:cond_b
iget-wide v0, p0, Lokhttp3/internal/http2/k;->n:J
const-wide/16 v2, 0x1
add-long/2addr v0, v2
iput-wide v0, p0, Lokhttp3/internal/http2/k;->n:J
.line 5
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
const-wide/32 v2, 0x3b9aca00
add-long/2addr v0, v2
iput-wide v0, p0, Lokhttp3/internal/http2/k;->r:J
.line 6
monitor-exit p0
:try_end_1d
.catchall {:try_start_1 .. :try_end_1d} :catchall_32
.line 7
:try_start_1d
iget-object v0, p0, Lokhttp3/internal/http2/k;->i:Ljava/util/concurrent/ScheduledExecutorService;
new-instance v1, Lokhttp3/internal/http2/f;
const-string v2, "OkHttp %s ping"
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
const/4 v4, 0x0
iget-object v5, p0, Lokhttp3/internal/http2/k;->e:Ljava/lang/String;
aput-object v5, v3, v4
invoke-direct {v1, p0, v2, v3}, Lokhttp3/internal/http2/f;-><init>(Lokhttp3/internal/http2/k;Ljava/lang/String;[Ljava/lang/Object;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
:try_end_31
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_1d .. :try_end_31} :catch_31
:catch_31
return-void
:catchall_32
move-exception v0
.line 8
:try_start_33
monitor-exit p0
:try_end_34
.catchall {:try_start_33 .. :try_end_34} :catchall_32
throw v0
.end method
.method public n()V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
.line 1
invoke-virtual {p0, v0}, Lokhttp3/internal/http2/k;->a(Z)V
return-void
.end method