* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1848 lines
37 KiB
Smali
1848 lines
37 KiB
Smali
.class public final Lokhttp3/internal/http2/Http2ExchangeCodec;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/internal/http/ExchangeCodec;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/http2/Http2ExchangeCodec$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u000c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0018\u00002\u00020\u0001:\u0001\u0002\u00a8\u0006\u0003"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/http2/Http2ExchangeCodec;",
|
|
"Lokhttp3/internal/http/ExchangeCodec;",
|
|
"Companion",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final g:Ljava/util/List;
|
|
|
|
.field public static final h:Ljava/util/List;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
.field public final b:Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
.field public final c:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
.field public volatile d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.field public final e:Lokhttp3/Protocol;
|
|
|
|
.field public volatile f:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 12
|
|
|
|
.line 1
|
|
const-string v10, ":scheme"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v11, ":authority"
|
|
|
|
.line 4
|
|
.line 5
|
|
const-string v0, "connection"
|
|
|
|
.line 6
|
|
.line 7
|
|
const-string v1, "host"
|
|
|
|
.line 8
|
|
.line 9
|
|
const-string v2, "keep-alive"
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string v3, "proxy-connection"
|
|
|
|
.line 12
|
|
.line 13
|
|
const-string v4, "te"
|
|
|
|
.line 14
|
|
.line 15
|
|
const-string v5, "transfer-encoding"
|
|
|
|
.line 16
|
|
.line 17
|
|
const-string v6, "encoding"
|
|
|
|
.line 18
|
|
.line 19
|
|
const-string v7, "upgrade"
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v8, ":method"
|
|
|
|
.line 22
|
|
.line 23
|
|
const-string v9, ":path"
|
|
|
|
.line 24
|
|
.line 25
|
|
filled-new-array/range {v0 .. v11}, [Ljava/lang/String;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v0
|
|
|
|
.line 29
|
|
sget-object v1, Lokhttp3/internal/_UtilJvmKt;->a:Ljava/util/TimeZone;
|
|
|
|
.line 30
|
|
.line 31
|
|
const-string v1, "elements"
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
invoke-static {v0}, Lokhttp3/internal/_UtilJvmKt;->i([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object v0
|
|
|
|
.line 40
|
|
sput-object v0, Lokhttp3/internal/http2/Http2ExchangeCodec;->g:Ljava/util/List;
|
|
|
|
.line 41
|
|
.line 42
|
|
const-string v8, "encoding"
|
|
|
|
.line 43
|
|
.line 44
|
|
const-string v9, "upgrade"
|
|
|
|
.line 45
|
|
.line 46
|
|
const-string v2, "connection"
|
|
|
|
.line 47
|
|
.line 48
|
|
const-string v3, "host"
|
|
|
|
.line 49
|
|
.line 50
|
|
const-string v4, "keep-alive"
|
|
|
|
.line 51
|
|
.line 52
|
|
const-string v5, "proxy-connection"
|
|
|
|
.line 53
|
|
.line 54
|
|
const-string v6, "te"
|
|
|
|
.line 55
|
|
.line 56
|
|
const-string v7, "transfer-encoding"
|
|
|
|
.line 57
|
|
.line 58
|
|
filled-new-array/range {v2 .. v9}, [Ljava/lang/String;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result-object v0
|
|
|
|
.line 62
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
invoke-static {v0}, Lokhttp3/internal/_UtilJvmKt;->i([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result-object v0
|
|
|
|
.line 69
|
|
sput-object v0, Lokhttp3/internal/http2/Http2ExchangeCodec;->h:Ljava/util/List;
|
|
|
|
.line 70
|
|
.line 71
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/RealConnection;Lokhttp3/internal/http/RealInterceptorChain;Lokhttp3/internal/http2/Http2Connection;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "client"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "carrier"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
const-string v0, "chain"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
const-string v0, "http2Connection"
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
iput-object p2, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->a:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
.line 25
|
|
.line 26
|
|
iput-object p3, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->b:Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
.line 27
|
|
.line 28
|
|
iput-object p4, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->c:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
.line 29
|
|
.line 30
|
|
iget-object p1, p1, Lokhttp3/OkHttpClient;->r:Ljava/util/List;
|
|
|
|
.line 31
|
|
.line 32
|
|
sget-object p2, Lokhttp3/Protocol;->k:Lokhttp3/Protocol;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-interface {p1, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result p1
|
|
|
|
.line 38
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 39
|
|
.line 40
|
|
goto :goto_0
|
|
|
|
.line 41
|
|
:cond_0
|
|
sget-object p2, Lokhttp3/Protocol;->j:Lokhttp3/Protocol;
|
|
|
|
.line 42
|
|
.line 43
|
|
:goto_0
|
|
iput-object p2, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->e:Lokhttp3/Protocol;
|
|
|
|
.line 44
|
|
.line 45
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, v0, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream$FramingSink;->close()V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(Lokhttp3/Request;)V
|
|
.locals 14
|
|
|
|
.line 1
|
|
const-string v0, "request"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
return-void
|
|
|
|
.line 11
|
|
:cond_0
|
|
iget-object v0, p1, Lokhttp3/Request;->d:Lokhttp3/RequestBody;
|
|
|
|
.line 12
|
|
.line 13
|
|
const/4 v1, 0x0
|
|
|
|
.line 14
|
|
const/4 v2, 0x1
|
|
|
|
.line 15
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 16
|
|
.line 17
|
|
move v0, v2
|
|
|
|
.line 18
|
|
goto :goto_0
|
|
|
|
.line 19
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
.line 20
|
|
:goto_0
|
|
const-string v3, "request"
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
iget-object v3, p1, Lokhttp3/Request;->c:Lokhttp3/Headers;
|
|
|
|
.line 26
|
|
.line 27
|
|
new-instance v4, Ljava/util/ArrayList;
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v3}, Lokhttp3/Headers;->size()I
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result v5
|
|
|
|
.line 33
|
|
add-int/lit8 v5, v5, 0x4
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-direct {v4, v5}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
new-instance v5, Lokhttp3/internal/http2/Header;
|
|
|
|
.line 39
|
|
.line 40
|
|
sget-object v6, Lokhttp3/internal/http2/Header;->f:Lokio/ByteString;
|
|
|
|
.line 41
|
|
.line 42
|
|
iget-object v7, p1, Lokhttp3/Request;->b:Ljava/lang/String;
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-direct {v5, v6, v7}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
invoke-virtual {v4, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
new-instance v5, Lokhttp3/internal/http2/Header;
|
|
|
|
.line 51
|
|
.line 52
|
|
sget-object v6, Lokhttp3/internal/http2/Header;->g:Lokio/ByteString;
|
|
|
|
.line 53
|
|
.line 54
|
|
iget-object v7, p1, Lokhttp3/Request;->a:Lokhttp3/HttpUrl;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-static {v7}, Lokhttp3/internal/http/RequestLine;->a(Lokhttp3/HttpUrl;)Ljava/lang/String;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object v8
|
|
|
|
.line 60
|
|
invoke-direct {v5, v6, v8}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
invoke-virtual {v4, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
const-string v5, "Host"
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-virtual {p1, v5}, Lokhttp3/Request;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result-object p1
|
|
|
|
.line 72
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 73
|
|
.line 74
|
|
new-instance v5, Lokhttp3/internal/http2/Header;
|
|
|
|
.line 75
|
|
.line 76
|
|
sget-object v6, Lokhttp3/internal/http2/Header;->i:Lokio/ByteString;
|
|
|
|
.line 77
|
|
.line 78
|
|
invoke-direct {v5, v6, p1}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
invoke-virtual {v4, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
:cond_2
|
|
new-instance p1, Lokhttp3/internal/http2/Header;
|
|
|
|
.line 85
|
|
.line 86
|
|
sget-object v5, Lokhttp3/internal/http2/Header;->h:Lokio/ByteString;
|
|
|
|
.line 87
|
|
.line 88
|
|
iget-object v6, v7, Lokhttp3/HttpUrl;->a:Ljava/lang/String;
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-direct {p1, v5, v6}, Lokhttp3/internal/http2/Header;-><init>(Lokio/ByteString;Ljava/lang/String;)V
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
invoke-virtual {v4, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
invoke-virtual {v3}, Lokhttp3/Headers;->size()I
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result p1
|
|
|
|
.line 100
|
|
move v5, v1
|
|
|
|
.line 101
|
|
:goto_1
|
|
if-ge v5, p1, :cond_5
|
|
|
|
.line 102
|
|
.line 103
|
|
invoke-virtual {v3, v5}, Lokhttp3/Headers;->c(I)Ljava/lang/String;
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
move-result-object v6
|
|
|
|
.line 107
|
|
sget-object v7, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
.line 108
|
|
.line 109
|
|
const-string v8, "US"
|
|
|
|
.line 110
|
|
.line 111
|
|
invoke-static {v7, v8}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
invoke-virtual {v6, v7}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
.line 115
|
|
.line 116
|
|
.line 117
|
|
move-result-object v6
|
|
|
|
.line 118
|
|
const-string v7, "toLowerCase(...)"
|
|
|
|
.line 119
|
|
.line 120
|
|
invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 121
|
|
.line 122
|
|
.line 123
|
|
sget-object v7, Lokhttp3/internal/http2/Http2ExchangeCodec;->g:Ljava/util/List;
|
|
|
|
.line 124
|
|
.line 125
|
|
invoke-interface {v7, v6}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
.line 126
|
|
.line 127
|
|
.line 128
|
|
move-result v7
|
|
|
|
.line 129
|
|
if-eqz v7, :cond_3
|
|
|
|
.line 130
|
|
.line 131
|
|
const-string v7, "te"
|
|
|
|
.line 132
|
|
.line 133
|
|
invoke-static {v6, v7}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 134
|
|
.line 135
|
|
.line 136
|
|
move-result v7
|
|
|
|
.line 137
|
|
if-eqz v7, :cond_4
|
|
|
|
.line 138
|
|
.line 139
|
|
invoke-virtual {v3, v5}, Lokhttp3/Headers;->k(I)Ljava/lang/String;
|
|
|
|
.line 140
|
|
.line 141
|
|
.line 142
|
|
move-result-object v7
|
|
|
|
.line 143
|
|
const-string v8, "trailers"
|
|
|
|
.line 144
|
|
.line 145
|
|
invoke-static {v7, v8}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 146
|
|
.line 147
|
|
.line 148
|
|
move-result v7
|
|
|
|
.line 149
|
|
if-eqz v7, :cond_4
|
|
|
|
.line 150
|
|
.line 151
|
|
:cond_3
|
|
new-instance v7, Lokhttp3/internal/http2/Header;
|
|
|
|
.line 152
|
|
.line 153
|
|
invoke-virtual {v3, v5}, Lokhttp3/Headers;->k(I)Ljava/lang/String;
|
|
|
|
.line 154
|
|
.line 155
|
|
.line 156
|
|
move-result-object v8
|
|
|
|
.line 157
|
|
invoke-direct {v7, v6, v8}, Lokhttp3/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 158
|
|
.line 159
|
|
.line 160
|
|
invoke-virtual {v4, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 161
|
|
.line 162
|
|
.line 163
|
|
:cond_4
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
.line 164
|
|
.line 165
|
|
goto :goto_1
|
|
|
|
.line 166
|
|
:cond_5
|
|
iget-object v8, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->c:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
.line 167
|
|
.line 168
|
|
invoke-virtual {v8}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 169
|
|
.line 170
|
|
.line 171
|
|
const-string p1, "requestHeaders"
|
|
|
|
.line 172
|
|
.line 173
|
|
invoke-static {v4, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 174
|
|
.line 175
|
|
.line 176
|
|
xor-int/lit8 v9, v0, 0x1
|
|
|
|
.line 177
|
|
.line 178
|
|
iget-object p1, v8, Lokhttp3/internal/http2/Http2Connection;->A:Lokhttp3/internal/http2/Http2Writer;
|
|
|
|
.line 179
|
|
.line 180
|
|
monitor-enter p1
|
|
|
|
.line 181
|
|
:try_start_0
|
|
monitor-enter v8
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 182
|
|
:try_start_1
|
|
iget v3, v8, Lokhttp3/internal/http2/Http2Connection;->i:I
|
|
|
|
.line 183
|
|
.line 184
|
|
const v5, 0x3fffffff # 1.9999999f
|
|
|
|
.line 185
|
|
.line 186
|
|
.line 187
|
|
if-le v3, v5, :cond_6
|
|
|
|
.line 188
|
|
.line 189
|
|
sget-object v3, Lokhttp3/internal/http2/ErrorCode;->k:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
.line 190
|
|
.line 191
|
|
invoke-virtual {v8, v3}, Lokhttp3/internal/http2/Http2Connection;->f(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
.line 192
|
|
.line 193
|
|
.line 194
|
|
goto :goto_2
|
|
|
|
.line 195
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 196
|
|
goto/16 :goto_3
|
|
|
|
.line 197
|
|
.line 198
|
|
:cond_6
|
|
:goto_2
|
|
iget-boolean v3, v8, Lokhttp3/internal/http2/Http2Connection;->j:Z
|
|
|
|
.line 199
|
|
.line 200
|
|
if-nez v3, :cond_c
|
|
|
|
.line 201
|
|
.line 202
|
|
iget v7, v8, Lokhttp3/internal/http2/Http2Connection;->i:I
|
|
|
|
.line 203
|
|
.line 204
|
|
add-int/lit8 v3, v7, 0x2
|
|
|
|
.line 205
|
|
.line 206
|
|
iput v3, v8, Lokhttp3/internal/http2/Http2Connection;->i:I
|
|
|
|
.line 207
|
|
.line 208
|
|
new-instance v6, Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 209
|
|
.line 210
|
|
const/4 v11, 0x0
|
|
|
|
.line 211
|
|
const/4 v10, 0x0
|
|
|
|
.line 212
|
|
invoke-direct/range {v6 .. v11}, Lokhttp3/internal/http2/Http2Stream;-><init>(ILokhttp3/internal/http2/Http2Connection;ZZLokhttp3/Headers;)V
|
|
|
|
.line 213
|
|
.line 214
|
|
.line 215
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 216
|
|
.line 217
|
|
iget-wide v10, v8, Lokhttp3/internal/http2/Http2Connection;->x:J
|
|
|
|
.line 218
|
|
.line 219
|
|
iget-wide v12, v8, Lokhttp3/internal/http2/Http2Connection;->y:J
|
|
|
|
.line 220
|
|
.line 221
|
|
cmp-long v0, v10, v12
|
|
|
|
.line 222
|
|
.line 223
|
|
if-gez v0, :cond_7
|
|
|
|
.line 224
|
|
.line 225
|
|
iget-wide v10, v6, Lokhttp3/internal/http2/Http2Stream;->h:J
|
|
|
|
.line 226
|
|
.line 227
|
|
iget-wide v12, v6, Lokhttp3/internal/http2/Http2Stream;->i:J
|
|
|
|
.line 228
|
|
.line 229
|
|
cmp-long v0, v10, v12
|
|
|
|
.line 230
|
|
.line 231
|
|
if-ltz v0, :cond_8
|
|
|
|
.line 232
|
|
.line 233
|
|
:cond_7
|
|
move v1, v2
|
|
|
|
.line 234
|
|
:cond_8
|
|
invoke-virtual {v6}, Lokhttp3/internal/http2/Http2Stream;->j()Z
|
|
|
|
.line 235
|
|
.line 236
|
|
.line 237
|
|
move-result v0
|
|
|
|
.line 238
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 239
|
|
.line 240
|
|
iget-object v0, v8, Lokhttp3/internal/http2/Http2Connection;->f:Ljava/util/LinkedHashMap;
|
|
|
|
.line 241
|
|
.line 242
|
|
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
.line 243
|
|
.line 244
|
|
.line 245
|
|
move-result-object v2
|
|
|
|
.line 246
|
|
invoke-interface {v0, v2, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 247
|
|
.line 248
|
|
.line 249
|
|
:cond_9
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 250
|
|
.line 251
|
|
:try_start_2
|
|
monitor-exit v8
|
|
|
|
.line 252
|
|
iget-object v0, v8, Lokhttp3/internal/http2/Http2Connection;->A:Lokhttp3/internal/http2/Http2Writer;
|
|
|
|
.line 253
|
|
.line 254
|
|
invoke-virtual {v0, v7, v4, v9}, Lokhttp3/internal/http2/Http2Writer;->f(ILjava/util/ArrayList;Z)V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
.line 255
|
|
.line 256
|
|
.line 257
|
|
monitor-exit p1
|
|
|
|
.line 258
|
|
if-eqz v1, :cond_a
|
|
|
|
.line 259
|
|
.line 260
|
|
iget-object p1, v8, Lokhttp3/internal/http2/Http2Connection;->A:Lokhttp3/internal/http2/Http2Writer;
|
|
|
|
.line 261
|
|
.line 262
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Writer;->flush()V
|
|
|
|
.line 263
|
|
.line 264
|
|
.line 265
|
|
:cond_a
|
|
iput-object v6, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 266
|
|
.line 267
|
|
iget-boolean p1, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->f:Z
|
|
|
|
.line 268
|
|
.line 269
|
|
if-nez p1, :cond_b
|
|
|
|
.line 270
|
|
.line 271
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 272
|
|
.line 273
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 274
|
|
.line 275
|
|
.line 276
|
|
iget-object p1, p1, Lokhttp3/internal/http2/Http2Stream;->n:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
.line 277
|
|
.line 278
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->b:Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
.line 279
|
|
.line 280
|
|
iget v0, v0, Lokhttp3/internal/http/RealInterceptorChain;->g:I
|
|
|
|
.line 281
|
|
.line 282
|
|
int-to-long v0, v0
|
|
|
|
.line 283
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
.line 284
|
|
.line 285
|
|
invoke-virtual {p1, v0, v1, v2}, Lokio/Timeout;->g(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 286
|
|
.line 287
|
|
.line 288
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 289
|
|
.line 290
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 291
|
|
.line 292
|
|
.line 293
|
|
iget-object p1, p1, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
.line 294
|
|
.line 295
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->b:Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
.line 296
|
|
.line 297
|
|
iget v0, v0, Lokhttp3/internal/http/RealInterceptorChain;->h:I
|
|
|
|
.line 298
|
|
.line 299
|
|
int-to-long v0, v0
|
|
|
|
.line 300
|
|
invoke-virtual {p1, v0, v1, v2}, Lokio/Timeout;->g(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 301
|
|
.line 302
|
|
.line 303
|
|
return-void
|
|
|
|
.line 304
|
|
:cond_b
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 305
|
|
.line 306
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 307
|
|
.line 308
|
|
.line 309
|
|
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->l:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
.line 310
|
|
.line 311
|
|
invoke-virtual {p1, v0}, Lokhttp3/internal/http2/Http2Stream;->g(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
.line 312
|
|
.line 313
|
|
.line 314
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
.line 315
|
|
.line 316
|
|
const-string v0, "Canceled"
|
|
|
|
.line 317
|
|
.line 318
|
|
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 319
|
|
.line 320
|
|
.line 321
|
|
throw p1
|
|
|
|
.line 322
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
.line 323
|
|
goto :goto_4
|
|
|
|
.line 324
|
|
:cond_c
|
|
:try_start_3
|
|
new-instance v0, Lokhttp3/internal/http2/ConnectionShutdownException;
|
|
|
|
.line 325
|
|
.line 326
|
|
invoke-direct {v0}, Ljava/io/IOException;-><init>()V
|
|
|
|
.line 327
|
|
.line 328
|
|
.line 329
|
|
throw v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
.line 330
|
|
:goto_3
|
|
:try_start_4
|
|
monitor-exit v8
|
|
|
|
.line 331
|
|
throw v0
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
.line 332
|
|
:goto_4
|
|
monitor-exit p1
|
|
|
|
.line 333
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final c()Z
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 5
|
|
.line 6
|
|
monitor-enter v0
|
|
|
|
.line 7
|
|
:try_start_0
|
|
iget-object v2, v0, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-boolean v3, v2, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v4, 0x1
|
|
|
|
.line 12
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
iget-object v2, v2, Lokhttp3/internal/http2/Http2Stream$FramingSource;->h:Lokio/Buffer;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v2}, Lokio/Buffer;->D()Z
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result v2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 20
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
move v2, v4
|
|
|
|
.line 23
|
|
goto :goto_0
|
|
|
|
.line 24
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 25
|
|
goto :goto_1
|
|
|
|
.line 26
|
|
:cond_0
|
|
move v2, v1
|
|
|
|
.line 27
|
|
:goto_0
|
|
monitor-exit v0
|
|
|
|
.line 28
|
|
if-ne v2, v4, :cond_1
|
|
|
|
.line 29
|
|
.line 30
|
|
return v4
|
|
|
|
.line 31
|
|
:cond_1
|
|
return v1
|
|
|
|
.line 32
|
|
:goto_1
|
|
monitor-exit v0
|
|
|
|
.line 33
|
|
throw v1
|
|
|
|
.line 34
|
|
:cond_2
|
|
return v1
|
|
.end method
|
|
|
|
.method public final cancel()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
iput-boolean v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->f:Z
|
|
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->l:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v0, v1}, Lokhttp3/internal/http2/Http2Stream;->g(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d(Lokhttp3/Response;)Lokio/Source;
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "response"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-object p1, p1, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
|
|
|
|
.line 12
|
|
.line 13
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final e(Z)Lokhttp3/Response$Builder;
|
|
.locals 10
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_f
|
|
|
|
.line 4
|
|
.line 5
|
|
monitor-enter v0
|
|
|
|
.line 6
|
|
:cond_0
|
|
:goto_0
|
|
:try_start_0
|
|
iget-object v1, v0, Lokhttp3/internal/http2/Http2Stream;->j:Ljava/util/ArrayDeque;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->isEmpty()Z
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v1
|
|
|
|
.line 12
|
|
const/4 v2, 0x0
|
|
|
|
.line 13
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v1
|
|
|
|
.line 19
|
|
if-nez v1, :cond_7
|
|
|
|
.line 20
|
|
.line 21
|
|
const/4 v1, 0x1
|
|
|
|
.line 22
|
|
if-nez p1, :cond_3
|
|
|
|
.line 23
|
|
.line 24
|
|
iget-object v3, v0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
iget-object v3, v0, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
|
|
|
.line 30
|
|
.line 31
|
|
iget-boolean v4, v3, Lokhttp3/internal/http2/Http2Stream$FramingSink;->g:Z
|
|
|
|
.line 32
|
|
.line 33
|
|
if-nez v4, :cond_2
|
|
|
|
.line 34
|
|
.line 35
|
|
iget-boolean v3, v3, Lokhttp3/internal/http2/Http2Stream$FramingSink;->c:Z
|
|
|
|
.line 36
|
|
.line 37
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 38
|
|
.line 39
|
|
goto :goto_1
|
|
|
|
.line 40
|
|
:cond_1
|
|
move v3, v2
|
|
|
|
.line 41
|
|
goto :goto_2
|
|
|
|
.line 42
|
|
:cond_2
|
|
:goto_1
|
|
move v3, v1
|
|
|
|
.line 43
|
|
:goto_2
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 44
|
|
.line 45
|
|
:cond_3
|
|
move v2, v1
|
|
|
|
.line 46
|
|
:cond_4
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 47
|
|
.line 48
|
|
iget-object v1, v0, Lokhttp3/internal/http2/Http2Stream;->n:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v1}, Lokio/AsyncTimeout;->h()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
goto :goto_3
|
|
|
|
.line 54
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 55
|
|
goto/16 :goto_7
|
|
|
|
.line 56
|
|
.line 57
|
|
:cond_5
|
|
:goto_3
|
|
:try_start_1
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->m()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 61
|
|
.line 62
|
|
:try_start_2
|
|
iget-object v1, v0, Lokhttp3/internal/http2/Http2Stream;->n:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->l()V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
goto :goto_0
|
|
|
|
.line 68
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 69
|
|
if-eqz v2, :cond_6
|
|
|
|
.line 70
|
|
.line 71
|
|
iget-object v1, v0, Lokhttp3/internal/http2/Http2Stream;->n:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;->l()V
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
:cond_6
|
|
throw p1
|
|
|
|
.line 77
|
|
:cond_7
|
|
iget-object v1, v0, Lokhttp3/internal/http2/Http2Stream;->j:Ljava/util/ArrayDeque;
|
|
|
|
.line 78
|
|
.line 79
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->isEmpty()Z
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
move-result v1
|
|
|
|
.line 83
|
|
if-nez v1, :cond_d
|
|
|
|
.line 84
|
|
.line 85
|
|
iget-object v1, v0, Lokhttp3/internal/http2/Http2Stream;->j:Ljava/util/ArrayDeque;
|
|
|
|
.line 86
|
|
.line 87
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->removeFirst()Ljava/lang/Object;
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
move-result-object v1
|
|
|
|
.line 91
|
|
const-string v3, "removeFirst(...)"
|
|
|
|
.line 92
|
|
.line 93
|
|
invoke-static {v1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
check-cast v1, Lokhttp3/Headers;
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
.line 97
|
|
.line 98
|
|
monitor-exit v0
|
|
|
|
.line 99
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->e:Lokhttp3/Protocol;
|
|
|
|
.line 100
|
|
.line 101
|
|
const-string v3, "headerBlock"
|
|
|
|
.line 102
|
|
.line 103
|
|
invoke-static {v1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
const-string v3, "protocol"
|
|
|
|
.line 107
|
|
.line 108
|
|
invoke-static {v0, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 109
|
|
.line 110
|
|
.line 111
|
|
new-instance v3, Lokhttp3/Headers$Builder;
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-direct {v3}, Lokhttp3/Headers$Builder;-><init>()V
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
invoke-virtual {v1}, Lokhttp3/Headers;->size()I
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
move-result v4
|
|
|
|
.line 120
|
|
const/4 v5, 0x0
|
|
|
|
.line 121
|
|
move-object v6, v5
|
|
|
|
.line 122
|
|
:goto_4
|
|
if-ge v2, v4, :cond_a
|
|
|
|
.line 123
|
|
.line 124
|
|
invoke-virtual {v1, v2}, Lokhttp3/Headers;->c(I)Ljava/lang/String;
|
|
|
|
.line 125
|
|
.line 126
|
|
.line 127
|
|
move-result-object v7
|
|
|
|
.line 128
|
|
invoke-virtual {v1, v2}, Lokhttp3/Headers;->k(I)Ljava/lang/String;
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
move-result-object v8
|
|
|
|
.line 132
|
|
const-string v9, ":status"
|
|
|
|
.line 133
|
|
.line 134
|
|
invoke-static {v7, v9}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 135
|
|
.line 136
|
|
.line 137
|
|
move-result v9
|
|
|
|
.line 138
|
|
if-eqz v9, :cond_8
|
|
|
|
.line 139
|
|
.line 140
|
|
const-string v6, "HTTP/1.1 "
|
|
|
|
.line 141
|
|
.line 142
|
|
invoke-virtual {v6, v8}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 143
|
|
.line 144
|
|
.line 145
|
|
move-result-object v6
|
|
|
|
.line 146
|
|
invoke-static {v6}, Lokhttp3/internal/http/StatusLine$Companion;->a(Ljava/lang/String;)Lokhttp3/internal/http/StatusLine;
|
|
|
|
.line 147
|
|
.line 148
|
|
.line 149
|
|
move-result-object v6
|
|
|
|
.line 150
|
|
goto :goto_5
|
|
|
|
.line 151
|
|
:cond_8
|
|
sget-object v9, Lokhttp3/internal/http2/Http2ExchangeCodec;->h:Ljava/util/List;
|
|
|
|
.line 152
|
|
.line 153
|
|
invoke-interface {v9, v7}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
.line 154
|
|
.line 155
|
|
.line 156
|
|
move-result v9
|
|
|
|
.line 157
|
|
if-nez v9, :cond_9
|
|
|
|
.line 158
|
|
.line 159
|
|
invoke-virtual {v3, v7, v8}, Lokhttp3/Headers$Builder;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 160
|
|
.line 161
|
|
.line 162
|
|
:cond_9
|
|
:goto_5
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 163
|
|
.line 164
|
|
goto :goto_4
|
|
|
|
.line 165
|
|
:cond_a
|
|
if-eqz v6, :cond_c
|
|
|
|
.line 166
|
|
.line 167
|
|
new-instance v1, Lokhttp3/Response$Builder;
|
|
|
|
.line 168
|
|
.line 169
|
|
invoke-direct {v1}, Lokhttp3/Response$Builder;-><init>()V
|
|
|
|
.line 170
|
|
.line 171
|
|
.line 172
|
|
const-string v2, "protocol"
|
|
|
|
.line 173
|
|
.line 174
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 175
|
|
.line 176
|
|
.line 177
|
|
iput-object v0, v1, Lokhttp3/Response$Builder;->b:Lokhttp3/Protocol;
|
|
|
|
.line 178
|
|
.line 179
|
|
iget v0, v6, Lokhttp3/internal/http/StatusLine;->b:I
|
|
|
|
.line 180
|
|
.line 181
|
|
iput v0, v1, Lokhttp3/Response$Builder;->c:I
|
|
|
|
.line 182
|
|
.line 183
|
|
iget-object v0, v6, Lokhttp3/internal/http/StatusLine;->c:Ljava/lang/String;
|
|
|
|
.line 184
|
|
.line 185
|
|
const-string v2, "message"
|
|
|
|
.line 186
|
|
.line 187
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 188
|
|
.line 189
|
|
.line 190
|
|
iput-object v0, v1, Lokhttp3/Response$Builder;->d:Ljava/lang/String;
|
|
|
|
.line 191
|
|
.line 192
|
|
invoke-virtual {v3}, Lokhttp3/Headers$Builder;->b()Lokhttp3/Headers;
|
|
|
|
.line 193
|
|
.line 194
|
|
.line 195
|
|
move-result-object v0
|
|
|
|
.line 196
|
|
const-string v2, "headers"
|
|
|
|
.line 197
|
|
.line 198
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 199
|
|
.line 200
|
|
.line 201
|
|
invoke-virtual {v0}, Lokhttp3/Headers;->g()Lokhttp3/Headers$Builder;
|
|
|
|
.line 202
|
|
.line 203
|
|
.line 204
|
|
move-result-object v0
|
|
|
|
.line 205
|
|
iput-object v0, v1, Lokhttp3/Response$Builder;->f:Lokhttp3/Headers$Builder;
|
|
|
|
.line 206
|
|
.line 207
|
|
if-eqz p1, :cond_b
|
|
|
|
.line 208
|
|
.line 209
|
|
iget p1, v1, Lokhttp3/Response$Builder;->c:I
|
|
|
|
.line 210
|
|
.line 211
|
|
const/16 v0, 0x64
|
|
|
|
.line 212
|
|
.line 213
|
|
if-ne p1, v0, :cond_b
|
|
|
|
.line 214
|
|
.line 215
|
|
return-object v5
|
|
|
|
.line 216
|
|
:cond_b
|
|
return-object v1
|
|
|
|
.line 217
|
|
:cond_c
|
|
new-instance p1, Ljava/net/ProtocolException;
|
|
|
|
.line 218
|
|
.line 219
|
|
const-string v0, "Expected \':status\' header not present"
|
|
|
|
.line 220
|
|
.line 221
|
|
invoke-direct {p1, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 222
|
|
.line 223
|
|
.line 224
|
|
throw p1
|
|
|
|
.line 225
|
|
:cond_d
|
|
:try_start_3
|
|
iget-object p1, v0, Lokhttp3/internal/http2/Http2Stream;->q:Ljava/io/IOException;
|
|
|
|
.line 226
|
|
.line 227
|
|
if-eqz p1, :cond_e
|
|
|
|
.line 228
|
|
.line 229
|
|
goto :goto_6
|
|
|
|
.line 230
|
|
:cond_e
|
|
new-instance p1, Lokhttp3/internal/http2/StreamResetException;
|
|
|
|
.line 231
|
|
.line 232
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
.line 233
|
|
.line 234
|
|
.line 235
|
|
move-result-object v1
|
|
|
|
.line 236
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 237
|
|
.line 238
|
|
.line 239
|
|
invoke-direct {p1, v1}, Lokhttp3/internal/http2/StreamResetException;-><init>(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
.line 240
|
|
.line 241
|
|
.line 242
|
|
:goto_6
|
|
throw p1
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
.line 243
|
|
:goto_7
|
|
monitor-exit v0
|
|
|
|
.line 244
|
|
throw p1
|
|
|
|
.line 245
|
|
:cond_f
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
.line 246
|
|
.line 247
|
|
const-string v0, "stream wasn\'t created"
|
|
|
|
.line 248
|
|
.line 249
|
|
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 250
|
|
.line 251
|
|
.line 252
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final f()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->c:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Connection;->flush()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final g()Lokio/Socket;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final h(Lokhttp3/Response;)J
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "response"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p1}, Lokhttp3/internal/http/HttpHeaders;->a(Lokhttp3/Response;)Z
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v0
|
|
|
|
.line 10
|
|
if-nez v0, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 13
|
|
.line 14
|
|
return-wide v0
|
|
|
|
.line 15
|
|
:cond_0
|
|
invoke-static {p1}, Lokhttp3/internal/_UtilJvmKt;->d(Lokhttp3/Response;)J
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-wide v0
|
|
|
|
.line 19
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final i()Lokhttp3/internal/http/ExchangeCodec$Carrier;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->a:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final j(Lokhttp3/Request;J)Lokio/Sink;
|
|
.locals 0
|
|
|
|
.line 1
|
|
const-string p2, "request"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object p1, p0, Lokhttp3/internal/http2/Http2ExchangeCodec;->d:Lokhttp3/internal/http2/Http2Stream;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-object p1, p1, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
|
|
|
|
.line 12
|
|
.line 13
|
|
return-object p1
|
|
.end method
|