Rabbit-R1/original r1/smali/smali_classes2/androidx/work/Data.smali
2024-05-21 17:08:36 -04:00

2007 lines
40 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
.field private static final TAG:Ljava/lang/String;
# 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
const-string v0, "Data"
.line 52
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;
.line 57
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
.line 69
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public constructor <init>(Landroidx/work/Data;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"other"
}
.end annotation
.line 72
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 73
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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"values"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"*>;)V"
}
.end annotation
.line 79
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 80
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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.line 517
array-length v0, p0
new-array v0, v0, [Ljava/lang/Boolean;
const/4 v1, 0x0
.line 518
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 519
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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.line 529
array-length v0, p0
new-array v0, v0, [Ljava/lang/Byte;
const/4 v1, 0x0
.line 530
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 531
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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.line 577
array-length v0, p0
new-array v0, v0, [Ljava/lang/Double;
const/4 v1, 0x0
.line 578
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 579
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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.line 565
array-length v0, p0
new-array v0, v0, [Ljava/lang/Float;
const/4 v1, 0x0
.line 566
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 567
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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.line 541
array-length v0, p0
new-array v0, v0, [Ljava/lang/Integer;
const/4 v1, 0x0
.line 542
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 543
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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.line 553
array-length v0, p0
new-array v0, v0, [Ljava/lang/Long;
const/4 v1, 0x0
.line 554
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 555
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 convertToPrimitiveArray([Ljava/lang/Byte;)[B
.locals 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.line 601
array-length v0, p0
new-array v0, v0, [B
const/4 v1, 0x0
.line 602
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 603
aget-object v2, p0, 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
.end method
.method public static convertToPrimitiveArray([Ljava/lang/Double;)[D
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.line 649
array-length v0, p0
new-array v0, v0, [D
const/4 v1, 0x0
.line 650
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 651
aget-object v2, p0, 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
.end method
.method public static convertToPrimitiveArray([Ljava/lang/Float;)[F
.locals 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.line 637
array-length v0, p0
new-array v0, v0, [F
const/4 v1, 0x0
.line 638
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 639
aget-object v2, p0, 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
.end method
.method public static convertToPrimitiveArray([Ljava/lang/Integer;)[I
.locals 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.line 613
array-length v0, p0
new-array v0, v0, [I
const/4 v1, 0x0
.line 614
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 615
aget-object v2, p0, 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
.end method
.method public static convertToPrimitiveArray([Ljava/lang/Long;)[J
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.line 625
array-length v0, p0
new-array v0, v0, [J
const/4 v1, 0x0
.line 626
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 627
aget-object v2, p0, 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
.end method
.method public static convertToPrimitiveArray([Ljava/lang/Boolean;)[Z
.locals 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.line 589
array-length v0, p0
new-array v0, v0, [Z
const/4 v1, 0x0
.line 590
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_0
.line 591
aget-object v2, p0, 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
.end method
.method public static fromByteArray([B)Landroidx/work/Data;
.locals 7
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"bytes"
}
.end annotation
const-string v0, "Error in Data#fromByteArray: "
.line 421
array-length v1, p0
const/16 v2, 0x2800
if-gt v1, v2, :cond_3
.line 426
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
.line 427
new-instance v2, Ljava/io/ByteArrayInputStream;
invoke-direct {v2, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
const/4 p0, 0x0
.line 430
: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_2
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_2
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 431
:try_start_1
invoke-virtual {v3}, Ljava/io/ObjectInputStream;->readInt()I
move-result p0
:goto_0
if-lez p0, :cond_0
.line 432
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-interface {v1, v4, v5}, 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
.line 439
: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;
.line 441
invoke-static {v3, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 445
: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_4
goto :goto_4
:catch_1
move-exception p0
goto :goto_2
:catchall_0
move-exception v1
move-object v3, p0
move-object p0, v1
goto :goto_5
:catch_2
move-exception v3
move-object v6, v3
move-object v3, p0
move-object p0, v6
:goto_2
:try_start_4
sget-object v4, Landroidx/work/Data;->TAG:Ljava/lang/String;
.line 435
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
.line 439
: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_3
goto :goto_3
:catch_3
move-exception p0
sget-object v3, Landroidx/work/Data;->TAG:Ljava/lang/String;
.line 441
invoke-static {v3, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 445
:cond_1
:goto_3
: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_4
goto :goto_4
:catch_4
move-exception p0
sget-object v2, Landroidx/work/Data;->TAG:Ljava/lang/String;
.line 447
invoke-static {v2, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 450
:goto_4
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_5
if-eqz v3, :cond_2
.line 439
: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_5
goto :goto_6
:catch_5
move-exception v1
sget-object v3, Landroidx/work/Data;->TAG:Ljava/lang/String;
.line 441
invoke-static {v3, v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 445
:cond_2
:goto_6
: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_6
goto :goto_7
:catch_6
move-exception v1
sget-object v2, Landroidx/work/Data;->TAG:Ljava/lang/String;
.line 447
invoke-static {v2, v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 449
:goto_7
throw p0
.line 422
: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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"data"
}
.end annotation
const-string v0, "Error in Data#toByteArray: "
.line 374
new-instance v1, Ljava/io/ByteArrayOutputStream;
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
const/4 v2, 0x0
.line 377
: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
.line 378
:try_start_1
invoke-virtual {p0}, Landroidx/work/Data;->size()I
move-result v2
invoke-virtual {v3, v2}, Ljava/io/ObjectOutputStream;->writeInt(I)V
.line 379
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;
.line 380
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
.line 381
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
.line 391
: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;
.line 393
invoke-static {v2, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 397
: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;
.line 399
invoke-static {v2, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 403
:goto_2
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->size()I
move-result p0
const/16 v0, 0x2800
if-gt p0, v0, :cond_1
.line 408
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p0
return-object p0
.line 404
: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;
.line 384
invoke-static {v3, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 385
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
.line 391
: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;
.line 393
invoke-static {v3, v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 397
: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;
.line 399
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
.line 391
: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;
.line 393
invoke-static {v3, v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 397
: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;
.line 399
invoke-static {v2, v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 401
:goto_8
throw p0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"o"
}
.end annotation
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-eqz p1, :cond_9
.line 458
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_1
goto :goto_4
.line 462
:cond_1
check-cast p1, Landroidx/work/Data;
iget-object v2, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 463
invoke-interface {v2}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v2
.line 464
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
.line 468
:cond_2
invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_3
:goto_0
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;
.line 469
invoke-interface {v4, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
.line 470
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_2
.line 474
: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
.line 475
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
.line 477
:cond_5
invoke-virtual {v4, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v3
:goto_1
if-nez v3, :cond_3
goto :goto_3
:cond_6
:goto_2
if-ne v4, v3, :cond_7
goto :goto_0
:cond_7
:goto_3
return v1
:cond_8
return v0
:cond_9
:goto_4
return v1
.end method
.method public getBoolean(Ljava/lang/String;Z)Z
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"key",
"defaultValue"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 91
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 92
instance-of p1, p0, Ljava/lang/Boolean;
if-eqz p1, :cond_0
.line 93
check-cast p0, Ljava/lang/Boolean;
invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
move-result p0
return p0
:cond_0
return p2
.end method
.method public getBooleanArray(Ljava/lang/String;)[Z
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"key"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 107
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 108
instance-of p1, p0, [Ljava/lang/Boolean;
if-eqz p1, :cond_0
.line 109
check-cast p0, [Ljava/lang/Boolean;
.line 110
invoke-static {p0}, Landroidx/work/Data;->convertToPrimitiveArray([Ljava/lang/Boolean;)[Z
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public getByte(Ljava/lang/String;B)B
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"key",
"defaultValue"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 124
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 125
instance-of p1, p0, Ljava/lang/Byte;
if-eqz p1, :cond_0
.line 126
check-cast p0, Ljava/lang/Byte;
invoke-virtual {p0}, Ljava/lang/Byte;->byteValue()B
move-result p0
return p0
:cond_0
return p2
.end method
.method public getByteArray(Ljava/lang/String;)[B
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"key"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 140
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 141
instance-of p1, p0, [Ljava/lang/Byte;
if-eqz p1, :cond_0
.line 142
check-cast p0, [Ljava/lang/Byte;
.line 143
invoke-static {p0}, Landroidx/work/Data;->convertToPrimitiveArray([Ljava/lang/Byte;)[B
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public getDouble(Ljava/lang/String;D)D
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"key",
"defaultValue"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 256
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 257
instance-of p1, p0, Ljava/lang/Double;
if-eqz p1, :cond_0
.line 258
check-cast p0, Ljava/lang/Double;
invoke-virtual {p0}, Ljava/lang/Double;->doubleValue()D
move-result-wide p0
return-wide p0
:cond_0
return-wide p2
.end method
.method public getDoubleArray(Ljava/lang/String;)[D
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"key"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 272
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 273
instance-of p1, p0, [Ljava/lang/Double;
if-eqz p1, :cond_0
.line 274
check-cast p0, [Ljava/lang/Double;
.line 275
invoke-static {p0}, Landroidx/work/Data;->convertToPrimitiveArray([Ljava/lang/Double;)[D
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public getFloat(Ljava/lang/String;F)F
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"key",
"defaultValue"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 223
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 224
instance-of p1, p0, Ljava/lang/Float;
if-eqz p1, :cond_0
.line 225
check-cast p0, Ljava/lang/Float;
invoke-virtual {p0}, Ljava/lang/Float;->floatValue()F
move-result p0
return p0
:cond_0
return p2
.end method
.method public getFloatArray(Ljava/lang/String;)[F
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"key"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 239
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 240
instance-of p1, p0, [Ljava/lang/Float;
if-eqz p1, :cond_0
.line 241
check-cast p0, [Ljava/lang/Float;
.line 242
invoke-static {p0}, Landroidx/work/Data;->convertToPrimitiveArray([Ljava/lang/Float;)[F
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public getInt(Ljava/lang/String;I)I
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"key",
"defaultValue"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 157
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 158
instance-of p1, p0, Ljava/lang/Integer;
if-eqz p1, :cond_0
.line 159
check-cast p0, Ljava/lang/Integer;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
return p0
:cond_0
return p2
.end method
.method public getIntArray(Ljava/lang/String;)[I
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"key"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 173
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 174
instance-of p1, p0, [Ljava/lang/Integer;
if-eqz p1, :cond_0
.line 175
check-cast p0, [Ljava/lang/Integer;
.line 176
invoke-static {p0}, Landroidx/work/Data;->convertToPrimitiveArray([Ljava/lang/Integer;)[I
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public getKeyValueMap()Ljava/util/Map;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 321
invoke-static {p0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public getLong(Ljava/lang/String;J)J
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"key",
"defaultValue"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 190
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 191
instance-of p1, p0, Ljava/lang/Long;
if-eqz p1, :cond_0
.line 192
check-cast p0, Ljava/lang/Long;
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
move-result-wide p0
return-wide p0
:cond_0
return-wide p2
.end method
.method public getLongArray(Ljava/lang/String;)[J
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"key"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 206
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 207
instance-of p1, p0, [Ljava/lang/Long;
if-eqz p1, :cond_0
.line 208
check-cast p0, [Ljava/lang/Long;
.line 209
invoke-static {p0}, Landroidx/work/Data;->convertToPrimitiveArray([Ljava/lang/Long;)[J
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public getString(Ljava/lang/String;)Ljava/lang/String;
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"key"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 289
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 290
instance-of p1, p0, Ljava/lang/String;
if-eqz p1, :cond_0
.line 291
check-cast p0, Ljava/lang/String;
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public getStringArray(Ljava/lang/String;)[Ljava/lang/String;
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"key"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 305
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
.line 306
instance-of p1, p0, [Ljava/lang/String;
if-eqz p1, :cond_0
.line 307
check-cast p0, [Ljava/lang/String;
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public hasKeyWithValueOfType(Ljava/lang/String;Ljava/lang/Class;)Z
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"key",
"klass"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/String;",
"Ljava/lang/Class<",
"TT;>;)Z"
}
.end annotation
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 349
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
if-eqz p0, :cond_0
.line 350
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p0
invoke-virtual {p2, p0}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
move-result p0
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public hashCode()I
.locals 0
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 489
invoke-interface {p0}, Ljava/util/Map;->hashCode()I
move-result p0
mul-int/lit8 p0, p0, 0x1f
return p0
.end method
.method public size()I
.locals 0
iget-object p0, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 359
invoke-interface {p0}, Ljava/util/Map;->size()I
move-result p0
return p0
.end method
.method public toByteArray()[B
.locals 0
.line 335
invoke-static {p0}, Landroidx/work/Data;->toByteArrayInternal(Landroidx/work/Data;)[B
move-result-object p0
return-object p0
.end method
.method public toString()Ljava/lang/String;
.locals 5
.line 495
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;
.line 496
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;
.line 497
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;
.line 498
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
const-string v4, " : "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, p0, Landroidx/work/Data;->mValues:Ljava/util/Map;
.line 499
invoke-interface {v3, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
.line 500
instance-of v3, v2, [Ljava/lang/Object;
if-eqz v3, :cond_0
.line 501
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
.line 503
:cond_0
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
:goto_1
const-string v2, ", "
.line 505
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
:cond_1
const-string p0, "}"
.line 508
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 509
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method