* 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>
889 lines
19 KiB
Smali
889 lines
19 KiB
Smali
.class public final Lokio/RealBufferedSink;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lokio/BufferedSink;
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u0000\u0018\u00002\u00020\u0001\u00a8\u0006\u0002"
|
|
}
|
|
d2 = {
|
|
"Lokio/RealBufferedSink;",
|
|
"Lokio/BufferedSink;",
|
|
"okio"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nRealBufferedSink.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealBufferedSink.kt\nokio/RealBufferedSink\n+ 2 RealBufferedSink.kt\nokio/internal/-RealBufferedSink\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,142:1\n51#1:146\n51#1:152\n51#1:157\n51#1:162\n51#1:167\n51#1:172\n51#1:175\n51#1:176\n51#1:180\n51#1:185\n51#1:188\n51#1:192\n51#1:201\n51#1:210\n51#1:215\n51#1:220\n51#1:225\n51#1:230\n51#1:235\n51#1:240\n51#1:245\n51#1:250\n51#1:255\n51#1:261\n51#1:267\n51#1:279\n34#2:143\n35#2:145\n36#2,2:147\n40#2:149\n41#2:151\n42#2:153\n50#2:154\n51#2:156\n52#2:158\n56#2:159\n57#2:161\n58#2:163\n66#2:164\n67#2:166\n68#2:168\n72#2:169\n73#2:171\n74#2:173\n78#2:177\n79#2:179\n80#2:181\n88#2:182\n89#2:184\n90#2:186\n94#2,3:189\n97#2,5:193\n105#2,3:198\n108#2,5:202\n116#2:207\n117#2:209\n118#2:211\n122#2:212\n123#2:214\n124#2:216\n128#2:217\n129#2:219\n130#2:221\n134#2:222\n135#2:224\n136#2:226\n140#2:227\n141#2:229\n142#2:231\n146#2:232\n147#2:234\n148#2:236\n152#2:237\n153#2:239\n154#2:241\n158#2:242\n159#2:244\n160#2:246\n164#2:247\n165#2:249\n166#2:251\n170#2:252\n171#2:254\n172#2,2:256\n177#2:258\n178#2:260\n179#2,2:262\n184#2:264\n185#2:266\n186#2,4:268\n192#2,7:272\n199#2,16:280\n216#2:296\n218#2:297\n1#3:144\n1#3:150\n1#3:155\n1#3:160\n1#3:165\n1#3:170\n1#3:174\n1#3:178\n1#3:183\n1#3:187\n1#3:208\n1#3:213\n1#3:218\n1#3:223\n1#3:228\n1#3:233\n1#3:238\n1#3:243\n1#3:248\n1#3:253\n1#3:259\n1#3:265\n*S KotlinDebug\n*F\n+ 1 RealBufferedSink.kt\nokio/RealBufferedSink\n*L\n55#1:146\n56#1:152\n58#1:157\n59#1:162\n61#1:167\n63#1:172\n67#1:175\n78#1:176\n82#1:180\n84#1:185\n88#1:188\n93#1:192\n94#1:201\n95#1:210\n96#1:215\n97#1:220\n98#1:225\n99#1:230\n100#1:235\n101#1:240\n102#1:245\n103#1:250\n104#1:255\n105#1:261\n134#1:267\n138#1:279\n55#1:143\n55#1:145\n55#1:147,2\n56#1:149\n56#1:151\n56#1:153\n58#1:154\n58#1:156\n58#1:158\n59#1:159\n59#1:161\n59#1:163\n61#1:164\n61#1:166\n61#1:168\n63#1:169\n63#1:171\n63#1:173\n82#1:177\n82#1:179\n82#1:181\n84#1:182\n84#1:184\n84#1:186\n93#1:189,3\n93#1:193,5\n94#1:198,3\n94#1:202,5\n95#1:207\n95#1:209\n95#1:211\n96#1:212\n96#1:214\n96#1:216\n97#1:217\n97#1:219\n97#1:221\n98#1:222\n98#1:224\n98#1:226\n99#1:227\n99#1:229\n99#1:231\n100#1:232\n100#1:234\n100#1:236\n101#1:237\n101#1:239\n101#1:241\n102#1:242\n102#1:244\n102#1:246\n103#1:247\n103#1:249\n103#1:251\n104#1:252\n104#1:254\n104#1:256,2\n105#1:258\n105#1:260\n105#1:262,2\n134#1:264\n134#1:266\n134#1:268,4\n138#1:272,7\n138#1:280,16\n139#1:296\n140#1:297\n55#1:144\n56#1:150\n58#1:155\n59#1:160\n61#1:165\n63#1:170\n82#1:178\n84#1:183\n95#1:208\n96#1:213\n97#1:218\n98#1:223\n99#1:228\n100#1:233\n101#1:238\n102#1:243\n103#1:248\n104#1:253\n105#1:259\n134#1:265\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final c:Lokio/Sink;
|
|
|
|
.field public final f:Lokio/Buffer;
|
|
|
|
.field public g:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokio/Sink;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "sink"
|
|
|
|
.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-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
iput-object p1, p0, Lokio/RealBufferedSink;->c:Lokio/Sink;
|
|
|
|
.line 10
|
|
.line 11
|
|
new-instance p1, Lokio/Buffer;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iput-object p1, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final M(Ljava/lang/String;)Lokio/BufferedSink;
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "string"
|
|
|
|
.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-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
if-nez v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0, p1}, Lokio/Buffer;->S(Ljava/lang/String;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-object p0
|
|
|
|
.line 19
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v0, "closed"
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final U(JLokio/Buffer;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "source"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
if-nez v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->U(JLokio/Buffer;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
|
|
.line 19
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string p2, "closed"
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final Y(J)Lokio/BufferedSink;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->A(J)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-object p0
|
|
|
|
.line 14
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 15
|
|
.line 16
|
|
const-string p2, "closed"
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a()Lokio/BufferedSink;
|
|
.locals 8
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_3
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-wide v1, v0, Lokio/Buffer;->f:J
|
|
|
|
.line 8
|
|
.line 9
|
|
const-wide/16 v3, 0x0
|
|
|
|
.line 10
|
|
.line 11
|
|
cmp-long v5, v1, v3
|
|
|
|
.line 12
|
|
.line 13
|
|
if-nez v5, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
move-wide v1, v3
|
|
|
|
.line 16
|
|
goto :goto_0
|
|
|
|
.line 17
|
|
:cond_0
|
|
iget-object v5, v0, Lokio/Buffer;->c:Lokio/Segment;
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
iget-object v5, v5, Lokio/Segment;->g:Lokio/Segment;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
iget v6, v5, Lokio/Segment;->c:I
|
|
|
|
.line 28
|
|
.line 29
|
|
const/16 v7, 0x2000
|
|
|
|
.line 30
|
|
.line 31
|
|
if-ge v6, v7, :cond_1
|
|
|
|
.line 32
|
|
.line 33
|
|
iget-boolean v7, v5, Lokio/Segment;->e:Z
|
|
|
|
.line 34
|
|
.line 35
|
|
if-eqz v7, :cond_1
|
|
|
|
.line 36
|
|
.line 37
|
|
iget v5, v5, Lokio/Segment;->b:I
|
|
|
|
.line 38
|
|
.line 39
|
|
sub-int/2addr v6, v5
|
|
|
|
.line 40
|
|
int-to-long v5, v6
|
|
|
|
.line 41
|
|
sub-long/2addr v1, v5
|
|
|
|
.line 42
|
|
:cond_1
|
|
:goto_0
|
|
cmp-long v3, v1, v3
|
|
|
|
.line 43
|
|
.line 44
|
|
if-lez v3, :cond_2
|
|
|
|
.line 45
|
|
.line 46
|
|
iget-object v3, p0, Lokio/RealBufferedSink;->c:Lokio/Sink;
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-interface {v3, v1, v2, v0}, Lokio/Sink;->U(JLokio/Buffer;)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
:cond_2
|
|
return-object p0
|
|
|
|
.line 52
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 53
|
|
.line 54
|
|
const-string v1, "closed"
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final close()V
|
|
.locals 6
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->c:Lokio/Sink;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-boolean v1, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 4
|
|
.line 5
|
|
if-nez v1, :cond_3
|
|
|
|
.line 6
|
|
.line 7
|
|
:try_start_0
|
|
iget-object v1, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-wide v2, v1, Lokio/Buffer;->f:J
|
|
|
|
.line 10
|
|
.line 11
|
|
const-wide/16 v4, 0x0
|
|
|
|
.line 12
|
|
.line 13
|
|
cmp-long v4, v2, v4
|
|
|
|
.line 14
|
|
.line 15
|
|
if-lez v4, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-interface {v0, v2, v3, v1}, Lokio/Sink;->U(JLokio/Buffer;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
goto :goto_0
|
|
|
|
.line 21
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 22
|
|
goto :goto_1
|
|
|
|
.line 23
|
|
:cond_0
|
|
:goto_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 24
|
|
:goto_1
|
|
:try_start_1
|
|
invoke-interface {v0}, Lokio/Sink;->close()V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
goto :goto_2
|
|
|
|
.line 28
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
.line 29
|
|
if-nez v1, :cond_1
|
|
|
|
.line 30
|
|
.line 31
|
|
move-object v1, v0
|
|
|
|
.line 32
|
|
:cond_1
|
|
:goto_2
|
|
const/4 v0, 0x1
|
|
|
|
.line 33
|
|
iput-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 34
|
|
.line 35
|
|
if-nez v1, :cond_2
|
|
|
|
.line 36
|
|
.line 37
|
|
goto :goto_3
|
|
|
|
.line 38
|
|
:cond_2
|
|
throw v1
|
|
|
|
.line 39
|
|
:cond_3
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final flush()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-wide v1, v0, Lokio/Buffer;->f:J
|
|
|
|
.line 8
|
|
.line 9
|
|
const-wide/16 v3, 0x0
|
|
|
|
.line 10
|
|
.line 11
|
|
cmp-long v3, v1, v3
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v4, p0, Lokio/RealBufferedSink;->c:Lokio/Sink;
|
|
|
|
.line 14
|
|
.line 15
|
|
if-lez v3, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-interface {v4, v1, v2, v0}, Lokio/Sink;->U(JLokio/Buffer;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
:cond_0
|
|
invoke-interface {v4}, Lokio/Sink;->flush()V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
return-void
|
|
|
|
.line 24
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 25
|
|
.line 26
|
|
const-string v1, "closed"
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final isOpen()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
.line 4
|
|
.line 5
|
|
return v0
|
|
.end method
|
|
|
|
.method public final r0(Lokio/ByteString;)Lokio/BufferedSink;
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "byteString"
|
|
|
|
.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-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
if-nez v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0, p1}, Lokio/Buffer;->n(Lokio/ByteString;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-object p0
|
|
|
|
.line 19
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v0, "closed"
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final timeout()Lokio/Timeout;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->c:Lokio/Sink;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-interface {v0}, Lokio/Sink;->timeout()Lokio/Timeout;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "buffer("
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
iget-object v1, p0, Lokio/RealBufferedSink;->c:Lokio/Sink;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
const/16 v1, 0x29
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final write(Ljava/nio/ByteBuffer;)I
|
|
.locals 1
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lokio/Buffer;->write(Ljava/nio/ByteBuffer;)I
|
|
|
|
move-result p1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
return p1
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "closed"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final write([B)Lokio/BufferedSink;
|
|
.locals 2
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
iget-boolean v1, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 7
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 8
|
|
array-length v0, p1
|
|
|
|
iget-object v1, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
invoke-virtual {v1, p1, v0}, Lokio/Buffer;->o([BI)V
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
return-object p0
|
|
|
|
.line 10
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "closed"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final writeByte(I)Lokio/BufferedSink;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0, p1}, Lokio/Buffer;->v(I)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-object p0
|
|
|
|
.line 14
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 15
|
|
.line 16
|
|
const-string v0, "closed"
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final writeInt(I)Lokio/BufferedSink;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0, p1}, Lokio/Buffer;->F(I)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-object p0
|
|
|
|
.line 14
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 15
|
|
.line 16
|
|
const-string v0, "closed"
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final writeShort(I)Lokio/BufferedSink;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lokio/RealBufferedSink;->g:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lokio/RealBufferedSink;->f:Lokio/Buffer;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0, p1}, Lokio/Buffer;->L(I)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Lokio/RealBufferedSink;->a()Lokio/BufferedSink;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-object p0
|
|
|
|
.line 14
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 15
|
|
.line 16
|
|
const-string v0, "closed"
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
throw p1
|
|
.end method
|