apkfuckery/com.discord/smali/androidx/media/AudioAttributesImplBase.smali

434 lines
10 KiB
Smali
Raw Normal View History

2019-12-12 08:58:10 +00:00
.class public Landroidx/media/AudioAttributesImplBase;
.super Ljava/lang/Object;
.source "AudioAttributesImplBase.java"
# interfaces
.implements Landroidx/media/AudioAttributesImpl;
# instance fields
.field public mContentType:I
.field public mFlags:I
.field public mLegacyStream:I
.field public mUsage:I
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
iput v0, p0, Landroidx/media/AudioAttributesImplBase;->mContentType:I
iput v0, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
const/4 v0, -0x1
iput v0, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
return-void
.end method
.method public constructor <init>(IIII)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
iput v0, p0, Landroidx/media/AudioAttributesImplBase;->mContentType:I
iput v0, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
const/4 v0, -0x1
iput v0, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
iput p1, p0, Landroidx/media/AudioAttributesImplBase;->mContentType:I
iput p2, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
iput p3, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
iput p4, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
return-void
.end method
.method public static fromBundle(Landroid/os/Bundle;)Landroidx/media/AudioAttributesImpl;
.locals 5
if-nez p0, :cond_0
const/4 p0, 0x0
return-object p0
:cond_0
const/4 v0, 0x0
const-string v1, "androidx.media.audio_attrs.USAGE"
invoke-virtual {p0, v1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v1
const-string v2, "androidx.media.audio_attrs.CONTENT_TYPE"
invoke-virtual {p0, v2, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v2
const-string v3, "androidx.media.audio_attrs.FLAGS"
invoke-virtual {p0, v3, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v0
const/4 v3, -0x1
const-string v4, "androidx.media.audio_attrs.LEGACY_STREAM_TYPE"
invoke-virtual {p0, v4, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result p0
new-instance v3, Landroidx/media/AudioAttributesImplBase;
invoke-direct {v3, v2, v0, v1, p0}, Landroidx/media/AudioAttributesImplBase;-><init>(IIII)V
return-object v3
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 3
instance-of v0, p1, Landroidx/media/AudioAttributesImplBase;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
check-cast p1, Landroidx/media/AudioAttributesImplBase;
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mContentType:I
invoke-virtual {p1}, Landroidx/media/AudioAttributesImplBase;->getContentType()I
move-result v2
if-ne v0, v2, :cond_1
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
invoke-virtual {p1}, Landroidx/media/AudioAttributesImplBase;->getFlags()I
move-result v2
if-ne v0, v2, :cond_1
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
invoke-virtual {p1}, Landroidx/media/AudioAttributesImplBase;->getUsage()I
move-result v2
if-ne v0, v2, :cond_1
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
iget p1, p1, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
if-ne v0, p1, :cond_1
const/4 v1, 0x1
:cond_1
return v1
.end method
.method public getAudioAttributes()Ljava/lang/Object;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getContentType()I
.locals 1
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mContentType:I
return v0
.end method
.method public getFlags()I
.locals 3
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
invoke-virtual {p0}, Landroidx/media/AudioAttributesImplBase;->getLegacyStreamType()I
move-result v1
const/4 v2, 0x6
if-ne v1, v2, :cond_0
or-int/lit8 v0, v0, 0x4
goto :goto_0
:cond_0
const/4 v2, 0x7
if-ne v1, v2, :cond_1
or-int/lit8 v0, v0, 0x1
:cond_1
:goto_0
and-int/lit16 v0, v0, 0x111
return v0
.end method
.method public getLegacyStreamType()I
.locals 3
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
const/4 v1, -0x1
if-eq v0, v1, :cond_0
return v0
:cond_0
const/4 v0, 0x0
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
iget v2, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
invoke-static {v0, v1, v2}, Landroidx/media/AudioAttributesCompat;->toVolumeStreamType(ZII)I
move-result v0
return v0
.end method
.method public getRawLegacyStreamType()I
.locals 1
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
return v0
.end method
.method public getUsage()I
.locals 1
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
return v0
.end method
.method public getVolumeControlStream()I
.locals 3
iget v0, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
const/4 v2, 0x1
invoke-static {v2, v0, v1}, Landroidx/media/AudioAttributesCompat;->toVolumeStreamType(ZII)I
move-result v0
return v0
.end method
.method public hashCode()I
.locals 3
const/4 v0, 0x4
new-array v0, v0, [Ljava/lang/Object;
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mContentType:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x0
aput-object v1, v0, v2
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x2
aput-object v1, v0, v2
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x3
aput-object v1, v0, v2
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public toBundle()Landroid/os/Bundle;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
const-string v2, "androidx.media.audio_attrs.USAGE"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mContentType:I
const-string v2, "androidx.media.audio_attrs.CONTENT_TYPE"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
const-string v2, "androidx.media.audio_attrs.FLAGS"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
const/4 v2, -0x1
if-eq v1, v2, :cond_0
const-string v2, "androidx.media.audio_attrs.LEGACY_STREAM_TYPE"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
:cond_0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "AudioAttributesCompat:"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
const/4 v2, -0x1
if-eq v1, v2, :cond_0
const-string v1, " stream="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mLegacyStream:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, " derived"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_0
const-string v1, " usage="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mUsage:I
invoke-static {v1}, Landroidx/media/AudioAttributesCompat;->usageToString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " content="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mContentType:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, " flags=0x"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/media/AudioAttributesImplBase;->mFlags:I
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method