251 lines
6.1 KiB
Smali
251 lines
6.1 KiB
Smali
.class public final Landroidx/core/content/c;
|
|
.super Ljava/lang/Object;
|
|
.source "ContentValues.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nContentValues.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ContentValues.kt\nandroidx/core/content/ContentValuesKt\n*L\n1#1,46:1\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000\u001a\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u001a=\u0010\u0006\u001a\u00020\u00052.\u0010\u0004\u001a\u0018\u0012\u0014\u0008\u0001\u0012\u0010\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u00010\u0000\"\u0010\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u0001\u00a2\u0006\u0004\u0008\u0006\u0010\u0007\u00a8\u0006\u0008"
|
|
}
|
|
d2 = {
|
|
"",
|
|
"Lkotlin/Pair;",
|
|
"",
|
|
"",
|
|
"pairs",
|
|
"Landroid/content/ContentValues;",
|
|
"a",
|
|
"([Lkotlin/Pair;)Landroid/content/ContentValues;",
|
|
"core-ktx_release"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final varargs a([Lkotlin/Pair;)Landroid/content/ContentValues;
|
|
.locals 6
|
|
.param p0 # [Lkotlin/Pair;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"([",
|
|
"Lkotlin/Pair<",
|
|
"Ljava/lang/String;",
|
|
"+",
|
|
"Ljava/lang/Object;",
|
|
">;)",
|
|
"Landroid/content/ContentValues;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "pairs"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->q(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/content/ContentValues;
|
|
|
|
array-length v1, p0
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/ContentValues;-><init>(I)V
|
|
|
|
.line 2
|
|
array-length v1, p0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_a
|
|
|
|
aget-object v3, p0, v2
|
|
|
|
invoke-virtual {v3}, Lkotlin/Pair;->component1()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
invoke-virtual {v3}, Lkotlin/Pair;->component2()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v4}, Landroid/content/ContentValues;->putNull(Ljava/lang/String;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 4
|
|
:cond_0
|
|
instance-of v5, v3, Ljava/lang/String;
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 5
|
|
:cond_1
|
|
instance-of v5, v3, Ljava/lang/Integer;
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
check-cast v3, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 6
|
|
:cond_2
|
|
instance-of v5, v3, Ljava/lang/Long;
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
check-cast v3, Ljava/lang/Long;
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 7
|
|
:cond_3
|
|
instance-of v5, v3, Ljava/lang/Boolean;
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
check-cast v3, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Boolean;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 8
|
|
:cond_4
|
|
instance-of v5, v3, Ljava/lang/Float;
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
check-cast v3, Ljava/lang/Float;
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Float;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 9
|
|
:cond_5
|
|
instance-of v5, v3, Ljava/lang/Double;
|
|
|
|
if-eqz v5, :cond_6
|
|
|
|
check-cast v3, Ljava/lang/Double;
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Double;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 10
|
|
:cond_6
|
|
instance-of v5, v3, [B
|
|
|
|
if-eqz v5, :cond_7
|
|
|
|
check-cast v3, [B
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;[B)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 11
|
|
:cond_7
|
|
instance-of v5, v3, Ljava/lang/Byte;
|
|
|
|
if-eqz v5, :cond_8
|
|
|
|
check-cast v3, Ljava/lang/Byte;
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Byte;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 12
|
|
:cond_8
|
|
instance-of v5, v3, Ljava/lang/Short;
|
|
|
|
if-eqz v5, :cond_9
|
|
|
|
check-cast v3, Ljava/lang/Short;
|
|
|
|
invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Short;)V
|
|
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 13
|
|
:cond_9
|
|
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 14
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Illegal value type "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " for key \""
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 p0, 0x22
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_a
|
|
return-object v0
|
|
.end method
|