soul-browser/app/smali_classes4/okhttp3/internal/http2/Http2Stream.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

1331 lines
27 KiB
Smali

.class public final Lokhttp3/internal/http2/Http2Stream;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lokhttp3/internal/concurrent/Lockable;
.implements Lokio/Socket;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/http2/Http2Stream$Companion;,
Lokhttp3/internal/http2/Http2Stream$FramingSink;,
Lokhttp3/internal/http2/Http2Stream$FramingSource;,
Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u0018\u00002\u00020\u00012\u00020\u0002:\u0004\u0003\u0004\u0005\u0006\u00a8\u0006\u0007"
}
d2 = {
"Lokhttp3/internal/http2/Http2Stream;",
"Lokhttp3/internal/concurrent/Lockable;",
"Lokio/Socket;",
"FramingSource",
"FramingSink",
"Companion",
"StreamTimeout",
"okhttp"
}
k = 0x1
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
value = {
"SMAP\nHttp2Stream.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Http2Stream.kt\nokhttp3/internal/http2/Http2Stream\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 Lockable.kt\nokhttp3/internal/concurrent/LockableKt\n*L\n1#1,743:1\n1#2:744\n63#3:745\n63#3:746\n63#3:747\n63#3:748\n63#3:749\n49#3,4:750\n63#3:754\n38#3:755\n63#3:756\n63#3:757\n49#3,4:758\n63#3:762\n38#3:763\n49#3,4:764\n49#3,4:768\n63#3:772\n38#3:773\n63#3:774\n38#3:775\n49#3,4:776\n63#3:780\n38#3:781\n34#3:782\n*S KotlinDebug\n*F\n+ 1 Http2Stream.kt\nokhttp3/internal/http2/Http2Stream\n*L\n89#1:745\n114#1:746\n136#1:747\n149#1:748\n175#1:749\n200#1:750,4\n203#1:754\n207#1:755\n214#1:756\n227#1:757\n272#1:758,4\n274#1:762\n280#1:763\n294#1:764,4\n304#1:768,4\n307#1:772\n321#1:773\n329#1:774\n332#1:775\n543#1:776,4\n547#1:780\n693#1:781\n713#1:782\n*E\n"
}
.end annotation
# instance fields
.field public final c:I
.field public final f:Lokhttp3/internal/http2/Http2Connection;
.field public final g:Lokhttp3/internal/http2/flowcontrol/WindowCounter;
.field public h:J
.field public i:J
.field public final j:Ljava/util/ArrayDeque;
.field public k:Z
.field public final l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
.field public final m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
.field public final n:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.field public final o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.field public p:Lokhttp3/internal/http2/ErrorCode;
.field public q:Ljava/io/IOException;
# direct methods
.method public constructor <init>(ILokhttp3/internal/http2/Http2Connection;ZZLokhttp3/Headers;)V
.locals 3
.line 1
const-string v0, "connection"
.line 2
.line 3
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 7
.line 8
.line 9
iput p1, p0, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 10
.line 11
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 12
.line 13
new-instance v0, Lokhttp3/internal/http2/flowcontrol/WindowCounter;
.line 14
.line 15
invoke-direct {v0, p1}, Lokhttp3/internal/http2/flowcontrol/WindowCounter;-><init>(I)V
.line 16
.line 17
.line 18
iput-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->g:Lokhttp3/internal/http2/flowcontrol/WindowCounter;
.line 19
.line 20
iget-object p1, p2, Lokhttp3/internal/http2/Http2Connection;->v:Lokhttp3/internal/http2/Settings;
.line 21
.line 22
invoke-virtual {p1}, Lokhttp3/internal/http2/Settings;->a()I
.line 23
.line 24
.line 25
move-result p1
.line 26
int-to-long v0, p1
.line 27
iput-wide v0, p0, Lokhttp3/internal/http2/Http2Stream;->i:J
.line 28
.line 29
new-instance p1, Ljava/util/ArrayDeque;
.line 30
.line 31
invoke-direct {p1}, Ljava/util/ArrayDeque;-><init>()V
.line 32
.line 33
.line 34
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->j:Ljava/util/ArrayDeque;
.line 35
.line 36
new-instance v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;
.line 37
.line 38
iget-object p2, p2, Lokhttp3/internal/http2/Http2Connection;->u:Lokhttp3/internal/http2/Settings;
.line 39
.line 40
invoke-virtual {p2}, Lokhttp3/internal/http2/Settings;->a()I
.line 41
.line 42
.line 43
move-result p2
.line 44
int-to-long v1, p2
.line 45
invoke-direct {v0, p0, v1, v2, p4}, Lokhttp3/internal/http2/Http2Stream$FramingSource;-><init>(Lokhttp3/internal/http2/Http2Stream;JZ)V
.line 46
.line 47
.line 48
iput-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
.line 49
.line 50
new-instance p2, Lokhttp3/internal/http2/Http2Stream$FramingSink;
.line 51
.line 52
invoke-direct {p2, p0, p3}, Lokhttp3/internal/http2/Http2Stream$FramingSink;-><init>(Lokhttp3/internal/http2/Http2Stream;Z)V
.line 53
.line 54
.line 55
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
.line 56
.line 57
new-instance p2, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 58
.line 59
invoke-direct {p2, p0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;-><init>(Lokhttp3/internal/http2/Http2Stream;)V
.line 60
.line 61
.line 62
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->n:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 63
.line 64
new-instance p2, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 65
.line 66
invoke-direct {p2, p0}, Lokhttp3/internal/http2/Http2Stream$StreamTimeout;-><init>(Lokhttp3/internal/http2/Http2Stream;)V
.line 67
.line 68
.line 69
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->o:Lokhttp3/internal/http2/Http2Stream$StreamTimeout;
.line 70
.line 71
if-eqz p5, :cond_1
.line 72
.line 73
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->i()Z
.line 74
.line 75
.line 76
move-result p2
.line 77
if-nez p2, :cond_0
.line 78
.line 79
invoke-virtual {p1, p5}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
.line 80
.line 81
.line 82
return-void
.line 83
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
.line 84
.line 85
const-string p2, "locally-initiated streams shouldn\'t have headers yet"
.line 86
.line 87
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
.line 88
.line 89
.line 90
throw p1
.line 91
:cond_1
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->i()Z
.line 92
.line 93
.line 94
move-result p1
.line 95
if-eqz p1, :cond_2
.line 96
.line 97
return-void
.line 98
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
.line 99
.line 100
const-string p2, "remotely-initiated streams should have headers"
.line 101
.line 102
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
.line 103
.line 104
.line 105
throw p1
.end method
# virtual methods
.method public final a()Lokio/Source;
.locals 1
.line 1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
.line 2
.line 3
return-object v0
.end method
.method public final b()Lokio/Sink;
.locals 1
.line 1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
.line 2
.line 3
return-object v0
.end method
.method public final c()V
.locals 3
.line 1
sget-object v0, Lokhttp3/internal/_UtilJvmKt;->a:Ljava/util/TimeZone;
.line 2
.line 3
monitor-enter p0
.line 4
:try_start_0
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
.line 5
.line 6
iget-boolean v1, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Z
.line 7
.line 8
if-nez v1, :cond_1
.line 9
.line 10
iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->i:Z
.line 11
.line 12
if-eqz v0, :cond_1
.line 13
.line 14
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
.line 15
.line 16
iget-boolean v1, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->c:Z
.line 17
.line 18
if-nez v1, :cond_0
.line 19
.line 20
iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->g:Z
.line 21
.line 22
if-eqz v0, :cond_1
.line 23
.line 24
goto :goto_0
.line 25
:catchall_0
move-exception v0
.line 26
goto :goto_2
.line 27
:cond_0
:goto_0
const/4 v0, 0x1
.line 28
goto :goto_1
.line 29
:cond_1
const/4 v0, 0x0
.line 30
:goto_1
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->j()Z
.line 31
.line 32
.line 33
move-result v1
.line 34
sget-object v2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 35
.line 36
monitor-exit p0
.line 37
if-eqz v0, :cond_2
.line 38
.line 39
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->l:Lokhttp3/internal/http2/ErrorCode;
.line 40
.line 41
const/4 v1, 0x0
.line 42
invoke-virtual {p0, v0, v1}, Lokhttp3/internal/http2/Http2Stream;->e(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V
.line 43
.line 44
.line 45
return-void
.line 46
:cond_2
if-nez v1, :cond_3
.line 47
.line 48
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 49
.line 50
iget v1, p0, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 51
.line 52
invoke-virtual {v0, v1}, Lokhttp3/internal/http2/Http2Connection;->e(I)Lokhttp3/internal/http2/Http2Stream;
.line 53
.line 54
.line 55
:cond_3
return-void
.line 56
:goto_2
monitor-exit p0
.line 57
throw v0
.end method
.method public final cancel()V
.locals 1
.line 1
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->l:Lokhttp3/internal/http2/ErrorCode;
.line 2
.line 3
invoke-virtual {p0, v0}, Lokhttp3/internal/http2/Http2Stream;->g(Lokhttp3/internal/http2/ErrorCode;)V
.line 4
.line 5
.line 6
return-void
.end method
.method public final d()V
.locals 2
.line 1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
.line 2
.line 3
iget-boolean v1, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->g:Z
.line 4
.line 5
if-nez v1, :cond_3
.line 6
.line 7
iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->c:Z
.line 8
.line 9
if-nez v0, :cond_2
.line 10
.line 11
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
.line 12
.line 13
.line 14
move-result-object v0
.line 15
if-eqz v0, :cond_1
.line 16
.line 17
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->q:Ljava/io/IOException;
.line 18
.line 19
if-eqz v0, :cond_0
.line 20
.line 21
goto :goto_0
.line 22
:cond_0
new-instance v0, Lokhttp3/internal/http2/StreamResetException;
.line 23
.line 24
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
.line 25
.line 26
.line 27
move-result-object v1
.line 28
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
.line 29
.line 30
.line 31
invoke-direct {v0, v1}, Lokhttp3/internal/http2/StreamResetException;-><init>(Lokhttp3/internal/http2/ErrorCode;)V
.line 32
.line 33
.line 34
:goto_0
throw v0
.line 35
:cond_1
return-void
.line 36
:cond_2
new-instance v0, Ljava/io/IOException;
.line 37
.line 38
const-string v1, "stream finished"
.line 39
.line 40
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 41
.line 42
.line 43
throw v0
.line 44
:cond_3
new-instance v0, Ljava/io/IOException;
.line 45
.line 46
const-string v1, "stream closed"
.line 47
.line 48
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 49
.line 50
.line 51
throw v0
.end method
.method public final e(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V
.locals 1
.line 1
const-string v0, "rstStatusCode"
.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-virtual {p0, p1, p2}, Lokhttp3/internal/http2/Http2Stream;->f(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z
.line 7
.line 8
.line 9
move-result p2
.line 10
if-nez p2, :cond_0
.line 11
.line 12
return-void
.line 13
:cond_0
iget-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 14
.line 15
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 16
.line 17
.line 18
const-string v0, "statusCode"
.line 19
.line 20
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 21
.line 22
.line 23
iget-object p2, p2, Lokhttp3/internal/http2/Http2Connection;->A:Lokhttp3/internal/http2/Http2Writer;
.line 24
.line 25
iget v0, p0, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 26
.line 27
invoke-virtual {p2, v0, p1}, Lokhttp3/internal/http2/Http2Writer;->j(ILokhttp3/internal/http2/ErrorCode;)V
.line 28
.line 29
.line 30
return-void
.end method
.method public final f(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z
.locals 2
.line 1
sget-object v0, Lokhttp3/internal/_UtilJvmKt;->a:Ljava/util/TimeZone;
.line 2
.line 3
monitor-enter p0
.line 4
:try_start_0
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
.line 5
.line 6
.line 7
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 8
const/4 v1, 0x0
.line 9
if-eqz v0, :cond_0
.line 10
.line 11
monitor-exit p0
.line 12
return v1
.line 13
:cond_0
:try_start_1
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->p:Lokhttp3/internal/http2/ErrorCode;
.line 14
.line 15
iput-object p2, p0, Lokhttp3/internal/http2/Http2Stream;->q:Ljava/io/IOException;
.line 16
.line 17
const-string p1, "null cannot be cast to non-null type java.lang.Object"
.line 18
.line 19
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 20
.line 21
.line 22
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
.line 23
.line 24
.line 25
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
.line 26
.line 27
iget-boolean p1, p1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Z
.line 28
.line 29
if-eqz p1, :cond_1
.line 30
.line 31
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
.line 32
.line 33
iget-boolean p1, p1, Lokhttp3/internal/http2/Http2Stream$FramingSink;->c:Z
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 34
.line 35
if-eqz p1, :cond_1
.line 36
.line 37
monitor-exit p0
.line 38
return v1
.line 39
:catchall_0
move-exception p1
.line 40
goto :goto_0
.line 41
:cond_1
:try_start_2
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 42
.line 43
monitor-exit p0
.line 44
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 45
.line 46
iget p2, p0, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 47
.line 48
invoke-virtual {p1, p2}, Lokhttp3/internal/http2/Http2Connection;->e(I)Lokhttp3/internal/http2/Http2Stream;
.line 49
.line 50
.line 51
const/4 p1, 0x1
.line 52
return p1
.line 53
:goto_0
monitor-exit p0
.line 54
throw p1
.end method
.method public final g(Lokhttp3/internal/http2/ErrorCode;)V
.locals 2
.line 1
const-string v0, "errorCode"
.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/4 v0, 0x0
.line 7
invoke-virtual {p0, p1, v0}, Lokhttp3/internal/http2/Http2Stream;->f(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)Z
.line 8
.line 9
.line 10
move-result v0
.line 11
if-nez v0, :cond_0
.line 12
.line 13
return-void
.line 14
:cond_0
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 15
.line 16
iget v1, p0, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 17
.line 18
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/http2/Http2Connection;->k(ILokhttp3/internal/http2/ErrorCode;)V
.line 19
.line 20
.line 21
return-void
.end method
.method public final h()Lokhttp3/internal/http2/ErrorCode;
.locals 1
.line 1
monitor-enter p0
.line 2
:try_start_0
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->p:Lokhttp3/internal/http2/ErrorCode;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 3
.line 4
monitor-exit p0
.line 5
return-object v0
.line 6
:catchall_0
move-exception v0
.line 7
monitor-exit p0
.line 8
throw v0
.end method
.method public final i()Z
.locals 4
.line 1
iget v0, p0, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 2
.line 3
const/4 v1, 0x1
.line 4
and-int/2addr v0, v1
.line 5
const/4 v2, 0x0
.line 6
if-ne v0, v1, :cond_0
.line 7
.line 8
move v0, v1
.line 9
goto :goto_0
.line 10
:cond_0
move v0, v2
.line 11
:goto_0
iget-object v3, p0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 12
.line 13
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 14
.line 15
.line 16
if-ne v1, v0, :cond_1
.line 17
.line 18
return v1
.line 19
:cond_1
return v2
.end method
.method public final j()Z
.locals 3
.line 1
monitor-enter p0
.line 2
:try_start_0
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
.line 3
.line 4
.line 5
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 6
const/4 v1, 0x0
.line 7
if-eqz v0, :cond_0
.line 8
.line 9
monitor-exit p0
.line 10
return v1
.line 11
:cond_0
:try_start_1
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
.line 12
.line 13
iget-boolean v2, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Z
.line 14
.line 15
if-nez v2, :cond_1
.line 16
.line 17
iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSource;->i:Z
.line 18
.line 19
if-eqz v0, :cond_3
.line 20
.line 21
goto :goto_0
.line 22
:catchall_0
move-exception v0
.line 23
goto :goto_1
.line 24
:cond_1
:goto_0
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->m:Lokhttp3/internal/http2/Http2Stream$FramingSink;
.line 25
.line 26
iget-boolean v2, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->c:Z
.line 27
.line 28
if-nez v2, :cond_2
.line 29
.line 30
iget-boolean v0, v0, Lokhttp3/internal/http2/Http2Stream$FramingSink;->g:Z
.line 31
.line 32
if-eqz v0, :cond_3
.line 33
.line 34
:cond_2
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->k:Z
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 35
.line 36
if-eqz v0, :cond_3
.line 37
.line 38
monitor-exit p0
.line 39
return v1
.line 40
:cond_3
monitor-exit p0
.line 41
const/4 v0, 0x1
.line 42
return v0
.line 43
:goto_1
monitor-exit p0
.line 44
throw v0
.end method
.method public final k(Lokhttp3/Headers;Z)V
.locals 2
.line 1
const-string v0, "headers"
.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
sget-object v0, Lokhttp3/internal/_UtilJvmKt;->a:Ljava/util/TimeZone;
.line 7
.line 8
monitor-enter p0
.line 9
:try_start_0
iget-boolean v0, p0, Lokhttp3/internal/http2/Http2Stream;->k:Z
.line 10
.line 11
const/4 v1, 0x1
.line 12
if-eqz v0, :cond_1
.line 13
.line 14
const-string v0, ":status"
.line 15
.line 16
invoke-virtual {p1, v0}, Lokhttp3/Headers;->a(Ljava/lang/String;)Ljava/lang/String;
.line 17
.line 18
.line 19
move-result-object v0
.line 20
if-nez v0, :cond_1
.line 21
.line 22
const-string v0, ":method"
.line 23
.line 24
invoke-virtual {p1, v0}, Lokhttp3/Headers;->a(Ljava/lang/String;)Ljava/lang/String;
.line 25
.line 26
.line 27
move-result-object v0
.line 28
if-eqz v0, :cond_0
.line 29
.line 30
goto :goto_0
.line 31
:cond_0
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
.line 32
.line 33
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 34
.line 35
.line 36
goto :goto_1
.line 37
:catchall_0
move-exception p1
.line 38
goto :goto_2
.line 39
:cond_1
:goto_0
iput-boolean v1, p0, Lokhttp3/internal/http2/Http2Stream;->k:Z
.line 40
.line 41
iget-object v0, p0, Lokhttp3/internal/http2/Http2Stream;->j:Ljava/util/ArrayDeque;
.line 42
.line 43
invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
.line 44
.line 45
.line 46
:goto_1
if-eqz p2, :cond_2
.line 47
.line 48
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->l:Lokhttp3/internal/http2/Http2Stream$FramingSource;
.line 49
.line 50
iput-boolean v1, p1, Lokhttp3/internal/http2/Http2Stream$FramingSource;->f:Z
.line 51
.line 52
:cond_2
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->j()Z
.line 53
.line 54
.line 55
move-result p1
.line 56
const-string p2, "null cannot be cast to non-null type java.lang.Object"
.line 57
.line 58
invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 59
.line 60
.line 61
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
.line 62
.line 63
.line 64
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 65
.line 66
monitor-exit p0
.line 67
if-nez p1, :cond_3
.line 68
.line 69
iget-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->f:Lokhttp3/internal/http2/Http2Connection;
.line 70
.line 71
iget p2, p0, Lokhttp3/internal/http2/Http2Stream;->c:I
.line 72
.line 73
invoke-virtual {p1, p2}, Lokhttp3/internal/http2/Http2Connection;->e(I)Lokhttp3/internal/http2/Http2Stream;
.line 74
.line 75
.line 76
:cond_3
return-void
.line 77
:goto_2
monitor-exit p0
.line 78
throw p1
.end method
.method public final l(Lokhttp3/internal/http2/ErrorCode;)V
.locals 1
.line 1
const-string v0, "errorCode"
.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
monitor-enter p0
.line 7
:try_start_0
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Stream;->h()Lokhttp3/internal/http2/ErrorCode;
.line 8
.line 9
.line 10
move-result-object v0
.line 11
if-nez v0, :cond_0
.line 12
.line 13
iput-object p1, p0, Lokhttp3/internal/http2/Http2Stream;->p:Lokhttp3/internal/http2/ErrorCode;
.line 14
.line 15
const-string p1, "null cannot be cast to non-null type java.lang.Object"
.line 16
.line 17
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 18
.line 19
.line 20
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
.line 21
.line 22
.line 23
goto :goto_0
.line 24
:catchall_0
move-exception p1
.line 25
goto :goto_1
.line 26
:cond_0
:goto_0
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 27
.line 28
monitor-exit p0
.line 29
return-void
.line 30
:goto_1
monitor-exit p0
.line 31
throw p1
.end method
.method public final m()V
.locals 1
.line 1
:try_start_0
const-string v0, "null cannot be cast to non-null type java.lang.Object"
.line 2
.line 3
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
invoke-virtual {p0}, Ljava/lang/Object;->wait()V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
.line 7
.line 8
.line 9
return-void
.line 10
:catch_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
.line 11
.line 12
.line 13
move-result-object v0
.line 14
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
.line 15
.line 16
.line 17
new-instance v0, Ljava/io/InterruptedIOException;
.line 18
.line 19
invoke-direct {v0}, Ljava/io/InterruptedIOException;-><init>()V
.line 20
.line 21
.line 22
throw v0
.end method