apkfuckery/com.discord/smali/androidx/work/Data.smali

1285 lines
27 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Landroidx/work/Data;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "Data.java"
2019-02-04 20:08:30 +00:00
# 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
# instance fields
.field 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 static constructor <clinit>()V
.locals 1
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 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 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 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 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 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 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 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 6
.param p0 # [B
.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
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalStateException;
}
.end annotation
array-length v0, p0
const/16 v1, 0x2800
if-gt v0, v1, :cond_3
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
new-instance v1, Ljava/io/ByteArrayInputStream;
invoke-direct {v1, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
const/4 p0, 0x0
:try_start_0
new-instance v2, Ljava/io/ObjectInputStream;
invoke-direct {v2, v1}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_2
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
invoke-virtual {v2}, Ljava/io/ObjectInputStream;->readInt()I
move-result p0
:goto_0
if-lez p0, :cond_0
invoke-virtual {v2}, Ljava/io/ObjectInputStream;->readUTF()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
move-result-object v4
invoke-interface {v0, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
.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 {v2}, 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
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
:goto_1
:try_start_3
invoke-virtual {v1}, Ljava/io/ByteArrayInputStream;->close()V
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_4
goto :goto_4
:catch_1
move-exception p0
goto :goto_2
:catchall_0
move-exception v0
move-object v2, p0
move-object p0, v0
goto :goto_5
:catch_2
move-exception v2
move-object v5, v2
move-object v2, p0
move-object p0, v5
:goto_2
:try_start_4
invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
if-eqz v2, :cond_1
:try_start_5
invoke-virtual {v2}, Ljava/io/ObjectInputStream;->close()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
goto :goto_3
:catch_3
move-exception p0
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
:cond_1
:goto_3
:try_start_6
invoke-virtual {v1}, Ljava/io/ByteArrayInputStream;->close()V
:try_end_6
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_4
goto :goto_4
:catch_4
move-exception p0
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
:goto_4
new-instance p0, Landroidx/work/Data;
invoke-direct {p0, v0}, Landroidx/work/Data;-><init>(Ljava/util/Map;)V
return-object p0
:catchall_1
move-exception p0
:goto_5
if-eqz v2, :cond_2
:try_start_7
invoke-virtual {v2}, Ljava/io/ObjectInputStream;->close()V
:try_end_7
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_5
goto :goto_6
:catch_5
move-exception v0
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:cond_2
:goto_6
:try_start_8
invoke-virtual {v1}, Ljava/io/ByteArrayInputStream;->close()V
:try_end_8
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_6
goto :goto_7
:catch_6
move-exception v0
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:goto_7
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
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
.method public static toByteArray(Landroidx/work/Data;)[B
.locals 4
.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
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalStateException;
}
.end annotation
new-instance v0, Ljava/io/ByteArrayOutputStream;
invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
const/4 v1, 0x0
:try_start_0
new-instance v2, Ljava/io/ObjectOutputStream;
invoke-direct {v2, v0}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
invoke-virtual {p0}, Landroidx/work/Data;->size()I
move-result v1
invoke-virtual {v2, v1}, 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 v1
if-eqz v1, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/Map$Entry;
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/io/ObjectOutputStream;->writeUTF(Ljava/lang/String;)V
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v1
invoke-virtual {v2, v1}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:cond_0
:try_start_2
invoke-virtual {v2}, 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
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
:goto_1
:try_start_3
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_4
goto :goto_4
:catchall_0
move-exception p0
goto :goto_5
:catch_1
move-exception p0
move-object v1, v2
goto :goto_2
:catchall_1
move-exception p0
move-object v2, v1
goto :goto_5
:catch_2
move-exception p0
:goto_2
:try_start_4
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
if-eqz v1, :cond_1
:try_start_5
invoke-virtual {v1}, Ljava/io/ObjectOutputStream;->close()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
goto :goto_3
:catch_3
move-exception p0
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
:cond_1
:goto_3
:try_start_6
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_6
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_4
goto :goto_4
:catch_4
move-exception p0
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
:goto_4
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->size()I
move-result p0
const/16 v1, 0x2800
if-gt p0, v1, :cond_2
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p0
return-object p0
:cond_2
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
:goto_5
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_5
goto :goto_6
:catch_5
move-exception v1
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
:cond_3
:goto_6
:try_start_8
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V
:try_end_8
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_6
goto :goto_7
:catch_6
move-exception v0
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:goto_7
throw p0
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
# virtual methods
.method public final equals(Ljava/lang/Object;)Z
.locals 2
if-ne p0, p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
if-eqz p1, :cond_2
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
if-eq v0, v1, :cond_1
goto :goto_0
:cond_1
check-cast p1, Landroidx/work/Data;
iget-object v0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
iget-object p1, p1, Landroidx/work/Data;->mValues:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_2
:goto_0
const/4 p1, 0x0
return p1
.end method
.method public final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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 final 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