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