- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
904 lines
20 KiB
Smali
904 lines
20 KiB
Smali
.class public final Landroidx/datastore/preferences/protobuf/Internal;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/datastore/preferences/protobuf/Internal$FloatList;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$DoubleList;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$LongList;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$BooleanList;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$IntList;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$ProtobufList;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$MapAdapter;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$ListAdapter;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$EnumVerifier;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$EnumLiteMap;,
|
|
Landroidx/datastore/preferences/protobuf/Internal$EnumLite;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final DEFAULT_BUFFER_SIZE:I = 0x1000
|
|
|
|
.field public static final EMPTY_BYTE_ARRAY:[B
|
|
|
|
.field public static final EMPTY_BYTE_BUFFER:Ljava/nio/ByteBuffer;
|
|
|
|
.field public static final EMPTY_CODED_INPUT_STREAM:Landroidx/datastore/preferences/protobuf/CodedInputStream;
|
|
|
|
.field static final ISO_8859_1:Ljava/nio/charset/Charset;
|
|
|
|
.field static final UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const-string v0, "UTF-8"
|
|
|
|
.line 58
|
|
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/datastore/preferences/protobuf/Internal;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
const-string v0, "ISO-8859-1"
|
|
|
|
.line 59
|
|
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/datastore/preferences/protobuf/Internal;->ISO_8859_1:Ljava/nio/charset/Charset;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [B
|
|
|
|
sput-object v0, Landroidx/datastore/preferences/protobuf/Internal;->EMPTY_BYTE_ARRAY:[B
|
|
|
|
.line 378
|
|
invoke-static {v0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Landroidx/datastore/preferences/protobuf/Internal;->EMPTY_BYTE_BUFFER:Ljava/nio/ByteBuffer;
|
|
|
|
.line 382
|
|
invoke-static {v0}, Landroidx/datastore/preferences/protobuf/CodedInputStream;->newInstance([B)Landroidx/datastore/preferences/protobuf/CodedInputStream;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/datastore/preferences/protobuf/Internal;->EMPTY_CODED_INPUT_STREAM:Landroidx/datastore/preferences/protobuf/CodedInputStream;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 56
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static byteArrayDefaultValue(Ljava/lang/String;)[B
|
|
.locals 1
|
|
|
|
sget-object v0, Landroidx/datastore/preferences/protobuf/Internal;->ISO_8859_1:Ljava/nio/charset/Charset;
|
|
|
|
.line 119
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static byteBufferDefaultValue(Ljava/lang/String;)Ljava/nio/ByteBuffer;
|
|
.locals 0
|
|
|
|
.line 128
|
|
invoke-static {p0}, Landroidx/datastore/preferences/protobuf/Internal;->byteArrayDefaultValue(Ljava/lang/String;)[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static bytesDefaultValue(Ljava/lang/String;)Landroidx/datastore/preferences/protobuf/ByteString;
|
|
.locals 1
|
|
|
|
sget-object v0, Landroidx/datastore/preferences/protobuf/Internal;->ISO_8859_1:Ljava/nio/charset/Charset;
|
|
|
|
.line 111
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Landroidx/datastore/preferences/protobuf/ByteString;->copyFrom([B)Landroidx/datastore/preferences/protobuf/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 64
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;",
|
|
"Ljava/lang/String;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
.line 72
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static copyByteBuffer(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
|
|
.locals 1
|
|
|
|
.line 139
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
.line 142
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
|
|
|
|
.line 143
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->capacity()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 144
|
|
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
|
|
|
|
.line 145
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static equals(Ljava/util/List;Ljava/util/List;)Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"[B>;",
|
|
"Ljava/util/List<",
|
|
"[B>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 259
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v2
|
|
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
.line 260
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
.line 261
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [B
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, [B
|
|
|
|
invoke-static {v1, v3}, Ljava/util/Arrays;->equals([B[B)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static equalsByteBuffer(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Z
|
|
.locals 2
|
|
|
|
.line 306
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->capacity()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Ljava/nio/Buffer;->capacity()I
|
|
|
|
move-result v1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
.line 311
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static equalsByteBuffer(Ljava/util/List;Ljava/util/List;)Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Ljava/nio/ByteBuffer;",
|
|
">;",
|
|
"Ljava/util/List<",
|
|
"Ljava/nio/ByteBuffer;",
|
|
">;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 316
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v2
|
|
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
.line 319
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
.line 320
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/nio/ByteBuffer;
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/nio/ByteBuffer;
|
|
|
|
invoke-static {v1, v3}, Landroidx/datastore/preferences/protobuf/Internal;->equalsByteBuffer(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getDefaultInstance(Ljava/lang/Class;)Landroidx/datastore/preferences/protobuf/MessageLite;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T::",
|
|
"Landroidx/datastore/preferences/protobuf/MessageLite;",
|
|
">(",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
const-string v0, "getDefaultInstance"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v2, v1, [Ljava/lang/Class;
|
|
|
|
.line 366
|
|
invoke-virtual {p0, v0, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
.line 367
|
|
invoke-virtual {v0, v0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/datastore/preferences/protobuf/MessageLite;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 369
|
|
new-instance v1, Ljava/lang/RuntimeException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "Failed to get default instance for "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v1, p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public static hashBoolean(Z)I
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/16 p0, 0x4cf
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 p0, 0x4d5
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static hashCode(Ljava/util/List;)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"[B>;)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 271
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [B
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
.line 272
|
|
invoke-static {v1}, Landroidx/datastore/preferences/protobuf/Internal;->hashCode([B)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static hashCode([B)I
|
|
.locals 2
|
|
|
|
.line 283
|
|
array-length v0, p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p0, v1, v0}, Landroidx/datastore/preferences/protobuf/Internal;->hashCode([BII)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static hashCode([BII)I
|
|
.locals 0
|
|
|
|
.line 292
|
|
invoke-static {p2, p0, p1, p2}, Landroidx/datastore/preferences/protobuf/Internal;->partialHash(I[BII)I
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
:cond_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static hashCodeByteBuffer(Ljava/nio/ByteBuffer;)I
|
|
.locals 6
|
|
|
|
.line 340
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->hasArray()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 342
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->capacity()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->array()[B
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->arrayOffset()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->capacity()I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {v0, v2, v3, p0}, Landroidx/datastore/preferences/protobuf/Internal;->partialHash(I[BII)I
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, p0
|
|
|
|
:goto_0
|
|
return v1
|
|
|
|
.line 348
|
|
:cond_1
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->capacity()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v2, 0x1000
|
|
|
|
if-le v0, v2, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->capacity()I
|
|
|
|
move-result v2
|
|
|
|
.line 349
|
|
:goto_1
|
|
new-array v0, v2, [B
|
|
|
|
.line 350
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v3
|
|
|
|
.line 351
|
|
invoke-virtual {v3}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
|
|
|
|
.line 352
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->capacity()I
|
|
|
|
move-result p0
|
|
|
|
.line 353
|
|
:goto_2
|
|
invoke-virtual {v3}, Ljava/nio/Buffer;->remaining()I
|
|
|
|
move-result v4
|
|
|
|
if-lez v4, :cond_4
|
|
|
|
.line 355
|
|
invoke-virtual {v3}, Ljava/nio/Buffer;->remaining()I
|
|
|
|
move-result v4
|
|
|
|
if-gt v4, v2, :cond_3
|
|
|
|
invoke-virtual {v3}, Ljava/nio/Buffer;->remaining()I
|
|
|
|
move-result v4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move v4, v2
|
|
|
|
:goto_3
|
|
const/4 v5, 0x0
|
|
|
|
.line 356
|
|
invoke-virtual {v3, v0, v5, v4}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;
|
|
|
|
.line 357
|
|
invoke-static {p0, v0, v5, v4}, Landroidx/datastore/preferences/protobuf/Internal;->partialHash(I[BII)I
|
|
|
|
move-result p0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
if-nez p0, :cond_5
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
move v1, p0
|
|
|
|
:goto_4
|
|
return v1
|
|
.end method
|
|
|
|
.method public static hashCodeByteBuffer(Ljava/util/List;)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Ljava/nio/ByteBuffer;",
|
|
">;)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 330
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/nio/ByteBuffer;
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
.line 331
|
|
invoke-static {v1}, Landroidx/datastore/preferences/protobuf/Internal;->hashCodeByteBuffer(Ljava/nio/ByteBuffer;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static hashEnum(Landroidx/datastore/preferences/protobuf/Internal$EnumLite;)I
|
|
.locals 0
|
|
|
|
.line 245
|
|
invoke-interface {p0}, Landroidx/datastore/preferences/protobuf/Internal$EnumLite;->getNumber()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static hashEnumList(Ljava/util/List;)I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Landroidx/datastore/preferences/protobuf/Internal$EnumLite;",
|
|
">;)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 251
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/datastore/preferences/protobuf/Internal$EnumLite;
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
.line 252
|
|
invoke-static {v1}, Landroidx/datastore/preferences/protobuf/Internal;->hashEnum(Landroidx/datastore/preferences/protobuf/Internal$EnumLite;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static hashLong(J)I
|
|
.locals 2
|
|
|
|
const/16 v0, 0x20
|
|
|
|
ushr-long v0, p0, v0
|
|
|
|
xor-long/2addr p0, v0
|
|
|
|
long-to-int p0, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isValidUtf8(Landroidx/datastore/preferences/protobuf/ByteString;)Z
|
|
.locals 0
|
|
|
|
.line 176
|
|
invoke-virtual {p0}, Landroidx/datastore/preferences/protobuf/ByteString;->isValidUtf8()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isValidUtf8([B)Z
|
|
.locals 0
|
|
|
|
.line 181
|
|
invoke-static {p0}, Landroidx/datastore/preferences/protobuf/Utf8;->isValidUtf8([B)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static mergeMessage(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 387
|
|
check-cast p0, Landroidx/datastore/preferences/protobuf/MessageLite;
|
|
|
|
invoke-interface {p0}, Landroidx/datastore/preferences/protobuf/MessageLite;->toBuilder()Landroidx/datastore/preferences/protobuf/MessageLite$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p1, Landroidx/datastore/preferences/protobuf/MessageLite;
|
|
|
|
invoke-interface {p0, p1}, Landroidx/datastore/preferences/protobuf/MessageLite$Builder;->mergeFrom(Landroidx/datastore/preferences/protobuf/MessageLite;)Landroidx/datastore/preferences/protobuf/MessageLite$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p0}, Landroidx/datastore/preferences/protobuf/MessageLite$Builder;->buildPartial()Landroidx/datastore/preferences/protobuf/MessageLite;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static partialHash(I[BII)I
|
|
.locals 2
|
|
|
|
move v0, p2
|
|
|
|
:goto_0
|
|
add-int v1, p2, p3
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
mul-int/lit8 p0, p0, 0x1f
|
|
|
|
.line 299
|
|
aget-byte v1, p1, v0
|
|
|
|
add-int/2addr p0, v1
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static stringDefaultValue(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 100
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
sget-object v1, Landroidx/datastore/preferences/protobuf/Internal;->ISO_8859_1:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object p0
|
|
|
|
sget-object v1, Landroidx/datastore/preferences/protobuf/Internal;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-direct {v0, p0, v1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static toByteArray(Ljava/lang/String;)[B
|
|
.locals 1
|
|
|
|
sget-object v0, Landroidx/datastore/preferences/protobuf/Internal;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
.line 186
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static toStringUtf8([B)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 191
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
sget-object v1, Landroidx/datastore/preferences/protobuf/Internal;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-direct {v0, p0, v1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
|
|
|
|
return-object v0
|
|
.end method
|