- 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
189 lines
5.0 KiB
Smali
189 lines
5.0 KiB
Smali
.class public final Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;
|
|
.super Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection$Factory;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final random:Ljava/util/Random;
|
|
|
|
.field private selectedIndex:I
|
|
|
|
|
|
# direct methods
|
|
.method public varargs constructor <init>(Lcom/mbridge/msdk/playercommon/exoplayer2/source/TrackGroup;[I)V
|
|
.locals 0
|
|
|
|
.line 39
|
|
invoke-direct {p0, p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;-><init>(Lcom/mbridge/msdk/playercommon/exoplayer2/source/TrackGroup;[I)V
|
|
|
|
.line 40
|
|
new-instance p1, Ljava/util/Random;
|
|
|
|
invoke-direct {p1}, Ljava/util/Random;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->random:Ljava/util/Random;
|
|
|
|
iget p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;->length:I
|
|
|
|
.line 41
|
|
invoke-virtual {p1, p2}, Ljava/util/Random;->nextInt(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->selectedIndex:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/mbridge/msdk/playercommon/exoplayer2/source/TrackGroup;[IJ)V
|
|
.locals 1
|
|
|
|
.line 46
|
|
new-instance v0, Ljava/util/Random;
|
|
|
|
invoke-direct {v0, p3, p4}, Ljava/util/Random;-><init>(J)V
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;-><init>(Lcom/mbridge/msdk/playercommon/exoplayer2/source/TrackGroup;[ILjava/util/Random;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/mbridge/msdk/playercommon/exoplayer2/source/TrackGroup;[ILjava/util/Random;)V
|
|
.locals 0
|
|
|
|
.line 51
|
|
invoke-direct {p0, p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;-><init>(Lcom/mbridge/msdk/playercommon/exoplayer2/source/TrackGroup;[I)V
|
|
|
|
iput-object p3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->random:Ljava/util/Random;
|
|
|
|
iget p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;->length:I
|
|
|
|
.line 53
|
|
invoke-virtual {p3, p1}, Ljava/util/Random;->nextInt(I)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->selectedIndex:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getSelectedIndex()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->selectedIndex:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getSelectionData()Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getSelectionReason()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final updateSelectedTrack(JJJ)V
|
|
.locals 0
|
|
|
|
.line 60
|
|
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
|
|
|
|
move-result-wide p1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
move p4, p3
|
|
|
|
move p5, p4
|
|
|
|
:goto_0
|
|
iget p6, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;->length:I
|
|
|
|
if-ge p4, p6, :cond_1
|
|
|
|
.line 63
|
|
invoke-virtual {p0, p4, p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;->isBlacklisted(IJ)Z
|
|
|
|
move-result p6
|
|
|
|
if-nez p6, :cond_0
|
|
|
|
add-int/lit8 p5, p5, 0x1
|
|
|
|
:cond_0
|
|
add-int/lit8 p4, p4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->random:Ljava/util/Random;
|
|
|
|
.line 68
|
|
invoke-virtual {p4, p5}, Ljava/util/Random;->nextInt(I)I
|
|
|
|
move-result p4
|
|
|
|
iput p4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->selectedIndex:I
|
|
|
|
iget p4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;->length:I
|
|
|
|
if-eq p5, p4, :cond_4
|
|
|
|
move p4, p3
|
|
|
|
:goto_1
|
|
iget p5, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;->length:I
|
|
|
|
if-ge p3, p5, :cond_4
|
|
|
|
.line 73
|
|
invoke-virtual {p0, p3, p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/BaseTrackSelection;->isBlacklisted(IJ)Z
|
|
|
|
move-result p5
|
|
|
|
if-nez p5, :cond_3
|
|
|
|
iget p5, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->selectedIndex:I
|
|
|
|
add-int/lit8 p6, p4, 0x1
|
|
|
|
if-ne p5, p4, :cond_2
|
|
|
|
iput p3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/trackselection/RandomTrackSelection;->selectedIndex:I
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
move p4, p6
|
|
|
|
:cond_3
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|