527 lines
9.8 KiB
Smali
527 lines
9.8 KiB
Smali
.class public final Landroidx/core/util/SparseIntArrayKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SparseIntArray.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final contains(Landroid/util/SparseIntArray;I)Z
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseIntArray;->indexOfKey(I)I
|
|
|
|
move-result p0
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
|
|
:cond_1
|
|
const-string p0, "$this$contains"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final containsKey(Landroid/util/SparseIntArray;I)Z
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseIntArray;->indexOfKey(I)I
|
|
|
|
move-result p0
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
|
|
:cond_1
|
|
const-string p0, "$this$containsKey"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final containsValue(Landroid/util/SparseIntArray;I)Z
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseIntArray;->indexOfValue(I)I
|
|
|
|
move-result p0
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
|
|
:cond_1
|
|
const-string p0, "$this$containsValue"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final forEach(Landroid/util/SparseIntArray;Lkotlin/jvm/functions/Function2;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/util/SparseIntArray;",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/util/SparseIntArray;->keyAt(I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0, v0}, Landroid/util/SparseIntArray;->valueAt(I)I
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {p1, v2, v3}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p0, "action"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p0, "$this$forEach"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final getOrDefault(Landroid/util/SparseIntArray;II)I
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroid/util/SparseIntArray;->get(II)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string p0, "$this$getOrDefault"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final getOrElse(Landroid/util/SparseIntArray;ILkotlin/jvm/functions/Function0;)I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/util/SparseIntArray;",
|
|
"I",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Ljava/lang/Integer;",
|
|
">;)I"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseIntArray;->indexOfKey(I)I
|
|
|
|
move-result p1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseIntArray;->valueAt(I)I
|
|
|
|
move-result p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-interface {p2}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/Number;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Number;->intValue()I
|
|
|
|
move-result p0
|
|
|
|
:goto_0
|
|
return p0
|
|
|
|
:cond_1
|
|
const-string p0, "defaultValue"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p0, "$this$getOrElse"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final getSize(Landroid/util/SparseIntArray;)I
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string p0, "$this$size"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final isEmpty(Landroid/util/SparseIntArray;)Z
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
|
|
:cond_1
|
|
const-string p0, "$this$isEmpty"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final isNotEmpty(Landroid/util/SparseIntArray;)Z
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
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
|
|
|
|
:cond_1
|
|
const-string p0, "$this$isNotEmpty"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final keyIterator(Landroid/util/SparseIntArray;)Lj0/i/q;
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
new-instance v0, Landroidx/core/util/SparseIntArrayKt$keyIterator$1;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/core/util/SparseIntArrayKt$keyIterator$1;-><init>(Landroid/util/SparseIntArray;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string p0, "$this$keyIterator"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final plus(Landroid/util/SparseIntArray;Landroid/util/SparseIntArray;)Landroid/util/SparseIntArray;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
invoke-direct {v0, v2}, Landroid/util/SparseIntArray;-><init>(I)V
|
|
|
|
invoke-static {v0, p0}, Landroidx/core/util/SparseIntArrayKt;->putAll(Landroid/util/SparseIntArray;Landroid/util/SparseIntArray;)V
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/util/SparseIntArrayKt;->putAll(Landroid/util/SparseIntArray;Landroid/util/SparseIntArray;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string p0, "other"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "$this$plus"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final putAll(Landroid/util/SparseIntArray;Landroid/util/SparseIntArray;)V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/util/SparseIntArray;->keyAt(I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v0}, Landroid/util/SparseIntArray;->valueAt(I)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0, v2, v3}, Landroid/util/SparseIntArray;->put(II)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p0, "other"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p0, "$this$putAll"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final remove(Landroid/util/SparseIntArray;II)Z
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseIntArray;->indexOfKey(I)I
|
|
|
|
move-result p1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseIntArray;->valueAt(I)I
|
|
|
|
move-result v0
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseIntArray;->removeAt(I)V
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
const-string p0, "$this$remove"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final set(Landroid/util/SparseIntArray;II)V
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroid/util/SparseIntArray;->put(II)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p0, "$this$set"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final valueIterator(Landroid/util/SparseIntArray;)Lj0/i/q;
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
new-instance v0, Landroidx/core/util/SparseIntArrayKt$valueIterator$1;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/core/util/SparseIntArrayKt$valueIterator$1;-><init>(Landroid/util/SparseIntArray;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string p0, "$this$valueIterator"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|