Rabbit-R1/original r1/smali/smali_classes2/androidx/media3/common/FlagSet.smali
2024-05-21 17:08:36 -04:00

262 lines
4.8 KiB
Smali

.class public final Landroidx/media3/common/FlagSet;
.super Ljava/lang/Object;
.source "FlagSet.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/media3/common/FlagSet$Builder;
}
.end annotation
# instance fields
.field private final flags:Landroid/util/SparseBooleanArray;
# direct methods
.method private constructor <init>(Landroid/util/SparseBooleanArray;)V
.locals 0
.line 170
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/media3/common/FlagSet;->flags:Landroid/util/SparseBooleanArray;
return-void
.end method
.method synthetic constructor <init>(Landroid/util/SparseBooleanArray;Landroidx/media3/common/FlagSet$1;)V
.locals 0
.line 36
invoke-direct {p0, p1}, Landroidx/media3/common/FlagSet;-><init>(Landroid/util/SparseBooleanArray;)V
return-void
.end method
# virtual methods
.method public contains(I)Z
.locals 0
iget-object p0, p0, Landroidx/media3/common/FlagSet;->flags:Landroid/util/SparseBooleanArray;
.line 181
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->get(I)Z
move-result p0
return p0
.end method
.method public varargs containsAny([I)Z
.locals 4
.line 191
array-length v0, p1
const/4 v1, 0x0
move v2, v1
:goto_0
if-ge v2, v0, :cond_1
aget v3, p1, v2
.line 192
invoke-virtual {p0, v3}, Landroidx/media3/common/FlagSet;->contains(I)Z
move-result v3
if-eqz v3, :cond_0
const/4 p0, 0x1
return p0
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return v1
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 5
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
.line 221
:cond_0
instance-of v1, p1, Landroidx/media3/common/FlagSet;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
.line 224
:cond_1
check-cast p1, Landroidx/media3/common/FlagSet;
.line 225
sget v1, Landroidx/media3/common/util/Util;->SDK_INT:I
const/16 v3, 0x18
if-ge v1, v3, :cond_5
.line 227
invoke-virtual {p0}, Landroidx/media3/common/FlagSet;->size()I
move-result v1
invoke-virtual {p1}, Landroidx/media3/common/FlagSet;->size()I
move-result v3
if-eq v1, v3, :cond_2
return v2
:cond_2
move v1, v2
.line 230
:goto_0
invoke-virtual {p0}, Landroidx/media3/common/FlagSet;->size()I
move-result v3
if-ge v1, v3, :cond_4
.line 231
invoke-virtual {p0, v1}, Landroidx/media3/common/FlagSet;->get(I)I
move-result v3
invoke-virtual {p1, v1}, Landroidx/media3/common/FlagSet;->get(I)I
move-result v4
if-eq v3, v4, :cond_3
return v2
:cond_3
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_4
return v0
:cond_5
iget-object p0, p0, Landroidx/media3/common/FlagSet;->flags:Landroid/util/SparseBooleanArray;
.line 237
iget-object p1, p1, Landroidx/media3/common/FlagSet;->flags:Landroid/util/SparseBooleanArray;
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->equals(Ljava/lang/Object;)Z
move-result p0
return p0
.end method
.method public get(I)I
.locals 2
const/4 v0, 0x0
.line 212
invoke-virtual {p0}, Landroidx/media3/common/FlagSet;->size()I
move-result v1
invoke-static {p1, v0, v1}, Landroidx/media3/common/util/Assertions;->checkIndex(III)I
iget-object p0, p0, Landroidx/media3/common/FlagSet;->flags:Landroid/util/SparseBooleanArray;
.line 213
invoke-virtual {p0, p1}, Landroid/util/SparseBooleanArray;->keyAt(I)I
move-result p0
return p0
.end method
.method public hashCode()I
.locals 3
.line 243
sget v0, Landroidx/media3/common/util/Util;->SDK_INT:I
const/16 v1, 0x18
if-ge v0, v1, :cond_1
.line 245
invoke-virtual {p0}, Landroidx/media3/common/FlagSet;->size()I
move-result v0
const/4 v1, 0x0
.line 246
:goto_0
invoke-virtual {p0}, Landroidx/media3/common/FlagSet;->size()I
move-result v2
if-ge v1, v2, :cond_0
mul-int/lit8 v0, v0, 0x1f
.line 247
invoke-virtual {p0, v1}, Landroidx/media3/common/FlagSet;->get(I)I
move-result v2
add-int/2addr v0, v2
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return v0
:cond_1
iget-object p0, p0, Landroidx/media3/common/FlagSet;->flags:Landroid/util/SparseBooleanArray;
.line 251
invoke-virtual {p0}, Landroid/util/SparseBooleanArray;->hashCode()I
move-result p0
return p0
.end method
.method public size()I
.locals 0
iget-object p0, p0, Landroidx/media3/common/FlagSet;->flags:Landroid/util/SparseBooleanArray;
.line 201
invoke-virtual {p0}, Landroid/util/SparseBooleanArray;->size()I
move-result p0
return p0
.end method