- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
437 lines
10 KiB
Smali
437 lines
10 KiB
Smali
.class Landroidx/media/AudioAttributesImplBase$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/media/AudioAttributesImpl$Builder;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/media/AudioAttributesImplBase;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mContentType:I
|
|
|
|
.field private mFlags:I
|
|
|
|
.field private mLegacyStream:I
|
|
|
|
.field private mUsage:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 189
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mUsage:I
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mLegacyStream:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroidx/media/AudioAttributesCompat;)V
|
|
.locals 1
|
|
|
|
.line 192
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mUsage:I
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mLegacyStream:I
|
|
|
|
.line 193
|
|
invoke-virtual {p1}, Landroidx/media/AudioAttributesCompat;->getUsage()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mUsage:I
|
|
|
|
.line 194
|
|
invoke-virtual {p1}, Landroidx/media/AudioAttributesCompat;->getContentType()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
.line 195
|
|
invoke-virtual {p1}, Landroidx/media/AudioAttributesCompat;->getFlags()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
.line 196
|
|
invoke-virtual {p1}, Landroidx/media/AudioAttributesCompat;->getRawLegacyStreamType()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mLegacyStream:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setInternalLegacyStreamType(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x4
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
.line 311
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "Invalid stream type "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " for AudioAttributesCompat"
|
|
|
|
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
|
|
|
|
const-string v1, "AudioAttributesCompat"
|
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_0
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_1
|
|
iput v1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_2
|
|
iput v1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_3
|
|
iget v2, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_4
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
iget v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_5
|
|
iput v1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_6
|
|
iput v1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_7
|
|
const/4 v0, 0x2
|
|
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_8
|
|
iput v1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_1
|
|
|
|
:goto_0
|
|
:pswitch_9
|
|
iput v1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_a
|
|
iput v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
.line 313
|
|
:goto_1
|
|
invoke-static {p1}, Landroidx/media/AudioAttributesImplBase;->usageForStreamType(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mUsage:I
|
|
|
|
return-object p0
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public build()Landroidx/media/AudioAttributesImpl;
|
|
.locals 5
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 202
|
|
new-instance v0, Landroidx/media/AudioAttributesImplBase;
|
|
|
|
iget v1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
iget v2, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
iget v3, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mUsage:I
|
|
|
|
iget v4, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mLegacyStream:I
|
|
|
|
invoke-direct {v0, v1, v2, v3, v4}, Landroidx/media/AudioAttributesImplBase;-><init>(IIII)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic setContentType(I)Landroidx/media/AudioAttributesImpl$Builder;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 183
|
|
invoke-virtual {p0, p1}, Landroidx/media/AudioAttributesImplBase$Builder;->setContentType(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setContentType(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 0
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mContentType:I
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setFlags(I)Landroidx/media/AudioAttributesImpl$Builder;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 183
|
|
invoke-virtual {p0, p1}, Landroidx/media/AudioAttributesImplBase$Builder;->setFlags(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setFlags(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 0
|
|
and-int/lit16 p1, p1, 0x3ff
|
|
|
|
iget v0, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
or-int/2addr p1, v0
|
|
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mFlags:I
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic setLegacyStreamType(I)Landroidx/media/AudioAttributesImpl$Builder;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 183
|
|
invoke-virtual {p0, p1}, Landroidx/media/AudioAttributesImplBase$Builder;->setLegacyStreamType(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setLegacyStreamType(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
const/16 v0, 0xa
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mLegacyStream:I
|
|
|
|
.line 271
|
|
invoke-direct {p0, p1}, Landroidx/media/AudioAttributesImplBase$Builder;->setInternalLegacyStreamType(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 266
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "STREAM_ACCESSIBILITY is not a legacy stream type that was used for audio playback"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public bridge synthetic setUsage(I)Landroidx/media/AudioAttributesImpl$Builder;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 183
|
|
invoke-virtual {p0, p1}, Landroidx/media/AudioAttributesImplBase$Builder;->setUsage(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setUsage(I)Landroidx/media/AudioAttributesImplBase$Builder;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 0
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mUsage:I
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_0
|
|
const/16 p1, 0xc
|
|
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mUsage:I
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_1
|
|
iput p1, p0, Landroidx/media/AudioAttributesImplBase$Builder;->mUsage:I
|
|
|
|
:goto_0
|
|
return-object p0
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|