apkfuckery/com.discord/smali/androidx/work/Data.smali
2020-09-16 23:45:23 +00:00

1690 lines
36 KiB
Smali

.class public final Landroidx/work/Data;
.super Ljava/lang/Object;
.source "Data.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/work/Data$Builder;
}
.end annotation
# static fields
.field public static final EMPTY:Landroidx/work/Data;
.field public static final MAX_DATA_BYTES:I = 0x2800
.annotation build Landroid/annotation/SuppressLint;
value = {
"MinMaxConstant"
}
.end annotation
.end field
.field public static final TAG:Ljava/lang/String;
# instance fields
.field public mValues:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "Data"
invoke-static {v0}, Landroidx/work/Logger;->tagWithPrefix(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
sput-object v0, Landroidx/work/Data;->TAG:Ljava/lang/String;
new-instance v0, Landroidx/work/Data$Builder;
invoke-direct {v0}, Landroidx/work/Data$Builder;-><init>()V
invoke-virtual {v0}, Landroidx/work/Data$Builder;->build()Landroidx/work/Data;
move-result-object v0
sput-object v0, Landroidx/work/Data;->EMPTY:Landroidx/work/Data;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public constructor <init>(Landroidx/work/Data;)V
.locals 1
.param p1 # Landroidx/work/Data;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/HashMap;
iget-object p1, p1, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-direct {v0, p1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
iput-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
return-void
.end method
.method public constructor <init>(Ljava/util/Map;)V
.locals 1
.param p1 # Ljava/util/Map;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"*>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0, p1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
iput-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
return-void
.end method
.method public static convertPrimitiveBooleanArray([Z)[Ljava/lang/Boolean;
.locals 3
.param p0 # [Z
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
array-length v0, p0
new-array v0, v0, [Ljava/lang/Boolean;
const/4 v1, 0x0
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
aget-boolean v2, p0, v1
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v2
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public static convertPrimitiveByteArray([B)[Ljava/lang/Byte;
.locals 3
.param p0 # [B
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
array-length v0, p0
new-array v0, v0, [Ljava/lang/Byte;
const/4 v1, 0x0
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
aget-byte v2, p0, v1
invoke-static {v2}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object v2
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public static convertPrimitiveDoubleArray([D)[Ljava/lang/Double;
.locals 4
.param p0 # [D
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
array-length v0, p0
new-array v0, v0, [Ljava/lang/Double;
const/4 v1, 0x0
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
aget-wide v2, p0, v1
invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
move-result-object v2
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public static convertPrimitiveFloatArray([F)[Ljava/lang/Float;
.locals 3
.param p0 # [F
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
array-length v0, p0
new-array v0, v0, [Ljava/lang/Float;
const/4 v1, 0x0
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
aget v2, p0, v1
invoke-static {v2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v2
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public static convertPrimitiveIntArray([I)[Ljava/lang/Integer;
.locals 3
.param p0 # [I
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
array-length v0, p0
new-array v0, v0, [Ljava/lang/Integer;
const/4 v1, 0x0
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
aget v2, p0, v1
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public static convertPrimitiveLongArray([J)[Ljava/lang/Long;
.locals 4
.param p0 # [J
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
array-length v0, p0
new-array v0, v0, [Ljava/lang/Long;
const/4 v1, 0x0
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
aget-wide v2, p0, v1
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public static fromByteArray([B)Landroidx/work/Data;
.locals 7
.param p0 # [B
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/room/TypeConverter;
.end annotation
const-string v0, "Error in Data#fromByteArray: "
array-length v1, p0
const/16 v2, 0x2800
if-gt v1, v2, :cond_3
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
new-instance v2, Ljava/io/ByteArrayInputStream;
invoke-direct {v2, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
const/4 p0, 0x0
:try_start_0
new-instance v3, Ljava/io/ObjectInputStream;
invoke-direct {v3, v2}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_3
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
invoke-virtual {v3}, Ljava/io/ObjectInputStream;->readInt()I
move-result p0
:goto_0
if-lez p0, :cond_0
invoke-virtual {v3}, Ljava/io/ObjectInputStream;->readUTF()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
move-result-object v5
invoke-virtual {v1, v4, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
add-int/lit8 p0, p0, -0x1
goto :goto_0
:cond_0
:try_start_2
invoke-virtual {v3}, Ljava/io/ObjectInputStream;->close()V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
goto :goto_1
:catch_0
move-exception p0
sget-object v3, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v3, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_1
:try_start_3
invoke-virtual {v2}, Ljava/io/ByteArrayInputStream;->close()V
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_6
goto :goto_5
:catch_1
move-exception p0
goto :goto_3
:catch_2
move-exception p0
goto :goto_3
:catchall_0
move-exception v1
move-object v3, p0
move-object p0, v1
goto :goto_6
:catch_3
move-exception v3
goto :goto_2
:catch_4
move-exception v3
:goto_2
move-object v6, v3
move-object v3, p0
move-object p0, v6
:goto_3
:try_start_4
sget-object v4, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v4, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
if-eqz v3, :cond_1
:try_start_5
invoke-virtual {v3}, Ljava/io/ObjectInputStream;->close()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_5
goto :goto_4
:catch_5
move-exception p0
sget-object v3, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v3, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_1
:goto_4
:try_start_6
invoke-virtual {v2}, Ljava/io/ByteArrayInputStream;->close()V
:try_end_6
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_6
goto :goto_5
:catch_6
move-exception p0
sget-object v2, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v2, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_5
new-instance p0, Landroidx/work/Data;
invoke-direct {p0, v1}, Landroidx/work/Data;-><init>(Ljava/util/Map;)V
return-object p0
:catchall_1
move-exception p0
:goto_6
if-eqz v3, :cond_2
:try_start_7
invoke-virtual {v3}, Ljava/io/ObjectInputStream;->close()V
:try_end_7
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_7
goto :goto_7
:catch_7
move-exception v1
sget-object v3, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v3, v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_2
:goto_7
:try_start_8
invoke-virtual {v2}, Ljava/io/ByteArrayInputStream;->close()V
:try_end_8
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_8
goto :goto_8
:catch_8
move-exception v1
sget-object v2, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v2, v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_8
throw p0
:cond_3
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "Data cannot occupy more than 10240 bytes when serialized"
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static toByteArrayInternal(Landroidx/work/Data;)[B
.locals 5
.param p0 # Landroidx/work/Data;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation build Landroidx/room/TypeConverter;
.end annotation
const-string v0, "Error in Data#toByteArray: "
new-instance v1, Ljava/io/ByteArrayOutputStream;
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
const/4 v2, 0x0
:try_start_0
new-instance v3, Ljava/io/ObjectOutputStream;
invoke-direct {v3, v1}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
invoke-virtual {p0}, Landroidx/work/Data;->size()I
move-result v2
invoke-virtual {v3, v2}, Ljava/io/ObjectOutputStream;->writeInt(I)V
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p0
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/io/ObjectOutputStream;->writeUTF(Ljava/lang/String;)V
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
invoke-virtual {v3, v2}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:cond_0
:try_start_2
invoke-virtual {v3}, Ljava/io/ObjectOutputStream;->close()V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
goto :goto_1
:catch_0
move-exception p0
sget-object v2, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v2, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_1
:try_start_3
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
goto :goto_2
:catch_1
move-exception p0
sget-object v2, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v2, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_2
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->size()I
move-result p0
const/16 v0, 0x2800
if-gt p0, v0, :cond_1
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p0
return-object p0
:cond_1
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "Data cannot occupy more than 10240 bytes when serialized"
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
:catchall_0
move-exception p0
move-object v2, v3
goto :goto_6
:catch_2
move-exception p0
move-object v2, v3
goto :goto_3
:catchall_1
move-exception p0
goto :goto_6
:catch_3
move-exception p0
:goto_3
:try_start_4
sget-object v3, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v3, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
if-eqz v2, :cond_2
:try_start_5
invoke-virtual {v2}, Ljava/io/ObjectOutputStream;->close()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4
goto :goto_4
:catch_4
move-exception v2
sget-object v3, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v3, v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_2
:goto_4
:try_start_6
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_6
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5
goto :goto_5
:catch_5
move-exception v1
sget-object v2, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v2, v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_5
return-object p0
:goto_6
if-eqz v2, :cond_3
:try_start_7
invoke-virtual {v2}, Ljava/io/ObjectOutputStream;->close()V
:try_end_7
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_6
goto :goto_7
:catch_6
move-exception v2
sget-object v3, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v3, v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_3
:goto_7
:try_start_8
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_8
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_7
goto :goto_8
:catch_7
move-exception v1
sget-object v2, Landroidx/work/Data;->TAG:Ljava/lang/String;
invoke-static {v2, v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_8
throw p0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 6
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-eqz p1, :cond_9
const-class v2, Landroidx/work/Data;
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_1
goto :goto_2
:cond_1
check-cast p1, Landroidx/work/Data;
iget-object v2, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v2}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v2
iget-object v3, p1, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v3}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v3
invoke-interface {v2, v3}, Ljava/util/Set;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_2
return v1
:cond_2
invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_3
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_8
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
iget-object v4, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v4, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
iget-object v5, p1, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v5, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
if-eqz v4, :cond_6
if-nez v3, :cond_4
goto :goto_0
:cond_4
instance-of v5, v4, [Ljava/lang/Object;
if-eqz v5, :cond_5
instance-of v5, v3, [Ljava/lang/Object;
if-eqz v5, :cond_5
check-cast v4, [Ljava/lang/Object;
check-cast v3, [Ljava/lang/Object;
invoke-static {v4, v3}, Ljava/util/Arrays;->deepEquals([Ljava/lang/Object;[Ljava/lang/Object;)Z
move-result v3
goto :goto_1
:cond_5
invoke-virtual {v4, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v3
goto :goto_1
:cond_6
:goto_0
if-ne v4, v3, :cond_7
const/4 v3, 0x1
goto :goto_1
:cond_7
const/4 v3, 0x0
:goto_1
if-nez v3, :cond_3
return v1
:cond_8
return v0
:cond_9
:goto_2
return v1
.end method
.method public getBoolean(Ljava/lang/String;Z)Z
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, Ljava/lang/Boolean;
if-eqz v0, :cond_0
check-cast p1, Ljava/lang/Boolean;
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
return p1
:cond_0
return p2
.end method
.method public getBooleanArray(Ljava/lang/String;)[Z
.locals 3
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, [Ljava/lang/Boolean;
if-eqz v0, :cond_1
check-cast p1, [Ljava/lang/Boolean;
array-length v0, p1
new-array v0, v0, [Z
const/4 v1, 0x0
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
aget-object v2, p1, v1
invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z
move-result v2
aput-boolean v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
:cond_1
const/4 p1, 0x0
return-object p1
.end method
.method public getByte(Ljava/lang/String;B)B
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, Ljava/lang/Byte;
if-eqz v0, :cond_0
check-cast p1, Ljava/lang/Byte;
invoke-virtual {p1}, Ljava/lang/Byte;->byteValue()B
move-result p1
return p1
:cond_0
return p2
.end method
.method public getByteArray(Ljava/lang/String;)[B
.locals 3
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, [Ljava/lang/Byte;
if-eqz v0, :cond_1
check-cast p1, [Ljava/lang/Byte;
array-length v0, p1
new-array v0, v0, [B
const/4 v1, 0x0
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
aget-object v2, p1, v1
invoke-virtual {v2}, Ljava/lang/Byte;->byteValue()B
move-result v2
aput-byte v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
:cond_1
const/4 p1, 0x0
return-object p1
.end method
.method public getDouble(Ljava/lang/String;D)D
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, Ljava/lang/Double;
if-eqz v0, :cond_0
check-cast p1, Ljava/lang/Double;
invoke-virtual {p1}, Ljava/lang/Double;->doubleValue()D
move-result-wide p1
return-wide p1
:cond_0
return-wide p2
.end method
.method public getDoubleArray(Ljava/lang/String;)[D
.locals 4
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, [Ljava/lang/Double;
if-eqz v0, :cond_1
check-cast p1, [Ljava/lang/Double;
array-length v0, p1
new-array v0, v0, [D
const/4 v1, 0x0
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
aget-object v2, p1, v1
invoke-virtual {v2}, Ljava/lang/Double;->doubleValue()D
move-result-wide v2
aput-wide v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
:cond_1
const/4 p1, 0x0
return-object p1
.end method
.method public getFloat(Ljava/lang/String;F)F
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, Ljava/lang/Float;
if-eqz v0, :cond_0
check-cast p1, Ljava/lang/Float;
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
move-result p1
return p1
:cond_0
return p2
.end method
.method public getFloatArray(Ljava/lang/String;)[F
.locals 3
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, [Ljava/lang/Float;
if-eqz v0, :cond_1
check-cast p1, [Ljava/lang/Float;
array-length v0, p1
new-array v0, v0, [F
const/4 v1, 0x0
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
aget-object v2, p1, v1
invoke-virtual {v2}, Ljava/lang/Float;->floatValue()F
move-result v2
aput v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
:cond_1
const/4 p1, 0x0
return-object p1
.end method
.method public getInt(Ljava/lang/String;I)I
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, Ljava/lang/Integer;
if-eqz v0, :cond_0
check-cast p1, Ljava/lang/Integer;
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
move-result p1
return p1
:cond_0
return p2
.end method
.method public getIntArray(Ljava/lang/String;)[I
.locals 3
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, [Ljava/lang/Integer;
if-eqz v0, :cond_1
check-cast p1, [Ljava/lang/Integer;
array-length v0, p1
new-array v0, v0, [I
const/4 v1, 0x0
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
aget-object v2, p1, v1
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
aput v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
:cond_1
const/4 p1, 0x0
return-object p1
.end method
.method public getKeyValueMap()Ljava/util/Map;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public getLong(Ljava/lang/String;J)J
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, Ljava/lang/Long;
if-eqz v0, :cond_0
check-cast p1, Ljava/lang/Long;
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide p1
return-wide p1
:cond_0
return-wide p2
.end method
.method public getLongArray(Ljava/lang/String;)[J
.locals 4
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, [Ljava/lang/Long;
if-eqz v0, :cond_1
check-cast p1, [Ljava/lang/Long;
array-length v0, p1
new-array v0, v0, [J
const/4 v1, 0x0
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
aget-object v2, p1, v1
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
move-result-wide v2
aput-wide v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
:cond_1
const/4 p1, 0x0
return-object p1
.end method
.method public getString(Ljava/lang/String;)Ljava/lang/String;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, Ljava/lang/String;
if-eqz v0, :cond_0
check-cast p1, Ljava/lang/String;
return-object p1
:cond_0
const/4 p1, 0x0
return-object p1
.end method
.method public getStringArray(Ljava/lang/String;)[Ljava/lang/String;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
instance-of v0, p1, [Ljava/lang/String;
if-eqz v0, :cond_0
check-cast p1, [Ljava/lang/String;
return-object p1
:cond_0
const/4 p1, 0x0
return-object p1
.end method
.method public hasKeyWithValueOfType(Ljava/lang/String;Ljava/lang/Class;)Z
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/Class;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/String;",
"Ljava/lang/Class<",
"TT;>;)Z"
}
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_0
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p1
invoke-virtual {p2, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->hashCode()I
move-result v0
mul-int/lit8 v0, v0, 0x1f
return v0
.end method
.method public size()I
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->size()I
move-result v0
return v0
.end method
.method public toByteArray()[B
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
invoke-static {p0}, Landroidx/work/Data;->toByteArrayInternal(Landroidx/work/Data;)[B
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Data {"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z
move-result v1
if-nez v1, :cond_1
iget-object v1, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, " : "
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v3, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
instance-of v3, v2, [Ljava/lang/Object;
if-eqz v3, :cond_0
check-cast v2, [Ljava/lang/Object;
invoke-static {v2}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_1
:cond_0
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
:goto_1
const-string v2, ", "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
:cond_1
const-string/jumbo v1, "}"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method