401 lines
9.6 KiB
Smali
401 lines
9.6 KiB
Smali
.class public final Landroidx/core/util/SparseBooleanArrayKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SparseBooleanArray.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final contains(Landroid/util/SparseBooleanArray;I)Z
|
|
.locals 1
|
|
|
|
const-string v0, "$this$contains"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->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
|
|
.end method
|
|
|
|
.method public static final containsKey(Landroid/util/SparseBooleanArray;I)Z
|
|
.locals 1
|
|
|
|
const-string v0, "$this$containsKey"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->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
|
|
.end method
|
|
|
|
.method public static final containsValue(Landroid/util/SparseBooleanArray;Z)Z
|
|
.locals 1
|
|
|
|
const-string v0, "$this$containsValue"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->indexOfValue(Z)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
|
|
.end method
|
|
|
|
.method public static final forEach(Landroid/util/SparseBooleanArray;Lkotlin/jvm/functions/Function2;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/util/SparseBooleanArray;",
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"-",
|
|
"Ljava/lang/Boolean;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$forEach"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "action"
|
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseBooleanArray;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_0
|
|
|
|
invoke-virtual {p0, v1}, Landroid/util/SparseBooleanArray;->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/SparseBooleanArray;->valueAt(I)Z
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
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/SparseBooleanArray;IZ)Z
|
|
.locals 1
|
|
|
|
const-string v0, "$this$getOrDefault"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroid/util/SparseBooleanArray;->get(IZ)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final getOrElse(Landroid/util/SparseBooleanArray;ILkotlin/jvm/functions/Function0;)Z
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/util/SparseBooleanArray;",
|
|
"I",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Ljava/lang/Boolean;",
|
|
">;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$getOrElse"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "defaultValue"
|
|
|
|
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->indexOfKey(I)I
|
|
|
|
move-result p1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->valueAt(I)Z
|
|
|
|
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/Boolean;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final getSize(Landroid/util/SparseBooleanArray;)I
|
|
.locals 1
|
|
|
|
const-string v0, "$this$size"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseBooleanArray;->size()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final isEmpty(Landroid/util/SparseBooleanArray;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "$this$isEmpty"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseBooleanArray;->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
|
|
.end method
|
|
|
|
.method public static final isNotEmpty(Landroid/util/SparseBooleanArray;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "$this$isNotEmpty"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseBooleanArray;->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
|
|
.end method
|
|
|
|
.method public static final keyIterator(Landroid/util/SparseBooleanArray;)Ly/h/o;
|
|
.locals 1
|
|
|
|
const-string v0, "$this$keyIterator"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Landroidx/core/util/SparseBooleanArrayKt$keyIterator$1;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/core/util/SparseBooleanArrayKt$keyIterator$1;-><init>(Landroid/util/SparseBooleanArray;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final plus(Landroid/util/SparseBooleanArray;Landroid/util/SparseBooleanArray;)Landroid/util/SparseBooleanArray;
|
|
.locals 3
|
|
|
|
const-string v0, "$this$plus"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Landroid/util/SparseBooleanArray;
|
|
|
|
invoke-virtual {p0}, Landroid/util/SparseBooleanArray;->size()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Landroid/util/SparseBooleanArray;->size()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
invoke-direct {v0, v2}, Landroid/util/SparseBooleanArray;-><init>(I)V
|
|
|
|
invoke-static {v0, p0}, Landroidx/core/util/SparseBooleanArrayKt;->putAll(Landroid/util/SparseBooleanArray;Landroid/util/SparseBooleanArray;)V
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/util/SparseBooleanArrayKt;->putAll(Landroid/util/SparseBooleanArray;Landroid/util/SparseBooleanArray;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final putAll(Landroid/util/SparseBooleanArray;Landroid/util/SparseBooleanArray;)V
|
|
.locals 4
|
|
|
|
const-string v0, "$this$putAll"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Landroid/util/SparseBooleanArray;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_0
|
|
|
|
invoke-virtual {p1, v1}, Landroid/util/SparseBooleanArray;->keyAt(I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1}, Landroid/util/SparseBooleanArray;->valueAt(I)Z
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0, v2, v3}, Landroid/util/SparseBooleanArray;->put(IZ)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final remove(Landroid/util/SparseBooleanArray;IZ)Z
|
|
.locals 1
|
|
|
|
const-string v0, "$this$remove"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->indexOfKey(I)I
|
|
|
|
move-result v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/util/SparseBooleanArray;->valueAt(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->delete(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/SparseBooleanArray;IZ)V
|
|
.locals 1
|
|
|
|
const-string v0, "$this$set"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroid/util/SparseBooleanArray;->put(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final valueIterator(Landroid/util/SparseBooleanArray;)Ly/h/h;
|
|
.locals 1
|
|
|
|
const-string v0, "$this$valueIterator"
|
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Landroidx/core/util/SparseBooleanArrayKt$valueIterator$1;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/core/util/SparseBooleanArrayKt$valueIterator$1;-><init>(Landroid/util/SparseBooleanArray;)V
|
|
|
|
return-object v0
|
|
.end method
|