- 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
523 lines
12 KiB
Smali
523 lines
12 KiB
Smali
.class public abstract Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;,
|
|
Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final EMPTY:Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 224
|
|
new-instance v0, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$1;
|
|
|
|
invoke-direct {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->EMPTY:Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getFirstWindowIndex(Z)I
|
|
.locals 0
|
|
|
|
.line 303
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->isEmpty()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public abstract getIndexOfPeriod(Ljava/lang/Object;)I
|
|
.end method
|
|
|
|
.method public getLastWindowIndex(Z)I
|
|
.locals 0
|
|
|
|
.line 298
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->isEmpty()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getWindowCount()I
|
|
|
|
move-result p1
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getNextPeriodIndex(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;IZ)I
|
|
.locals 1
|
|
|
|
.line 326
|
|
invoke-virtual {p0, p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getPeriod(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;
|
|
|
|
move-result-object p2
|
|
|
|
iget p2, p2, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;->windowIndex:I
|
|
|
|
.line 327
|
|
invoke-virtual {p0, p2, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getWindow(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;->lastPeriodIndex:I
|
|
|
|
if-ne v0, p1, :cond_1
|
|
|
|
.line 328
|
|
invoke-virtual {p0, p2, p4, p5}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getNextWindowIndex(IIZ)I
|
|
|
|
move-result p1
|
|
|
|
const/4 p2, -0x1
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
return p2
|
|
|
|
.line 332
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getWindow(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
|
|
move-result-object p1
|
|
|
|
iget p1, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;->firstPeriodIndex:I
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getNextWindowIndex(IIZ)I
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
if-eq p2, v0, :cond_2
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ne p2, v1, :cond_1
|
|
|
|
.line 272
|
|
invoke-virtual {p0, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getLastWindowIndex(Z)I
|
|
|
|
move-result p2
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
.line 273
|
|
invoke-virtual {p0, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getFirstWindowIndex(Z)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
add-int/2addr p1, v0
|
|
|
|
:goto_0
|
|
return p1
|
|
|
|
.line 275
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
return p1
|
|
|
|
.line 267
|
|
:cond_3
|
|
invoke-virtual {p0, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getLastWindowIndex(Z)I
|
|
|
|
move-result p2
|
|
|
|
if-ne p1, p2, :cond_4
|
|
|
|
const/4 p1, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
add-int/2addr p1, v0
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getPeriod(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 374
|
|
invoke-virtual {p0, p1, p2, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getPeriod(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;Z)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public abstract getPeriod(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;Z)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;
|
|
.end method
|
|
|
|
.method public abstract getPeriodCount()I
|
|
.end method
|
|
|
|
.method public final getPeriodPosition(Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;IJ)Landroid/util/Pair;
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;",
|
|
"Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;",
|
|
"IJ)",
|
|
"Landroid/util/Pair<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Long;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v6, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move-wide v4, p4
|
|
|
|
.line 347
|
|
invoke-virtual/range {v0 .. v7}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getPeriodPosition(Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;IJJ)Landroid/util/Pair;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getPeriodPosition(Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;IJJ)Landroid/util/Pair;
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;",
|
|
"Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;",
|
|
"IJJ)",
|
|
"Landroid/util/Pair<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/lang/Long;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 353
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getWindowCount()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {p3, v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Assertions;->checkIndex(III)I
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v2, p0
|
|
|
|
move v3, p3
|
|
|
|
move-object v4, p1
|
|
|
|
move-wide v6, p6
|
|
|
|
.line 354
|
|
invoke-virtual/range {v2 .. v7}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getWindow(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;ZJ)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
|
|
const-wide p6, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
cmp-long p3, p4, p6
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
.line 356
|
|
invoke-virtual {p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;->getDefaultPositionUs()J
|
|
|
|
move-result-wide p4
|
|
|
|
cmp-long p3, p4, p6
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
.line 361
|
|
:cond_0
|
|
iget p3, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;->firstPeriodIndex:I
|
|
|
|
.line 362
|
|
invoke-virtual {p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;->getPositionInFirstPeriodUs()J
|
|
|
|
move-result-wide v0
|
|
|
|
add-long/2addr v0, p4
|
|
|
|
.line 363
|
|
invoke-virtual {p0, p3, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getPeriod(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p4}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;->getDurationUs()J
|
|
|
|
move-result-wide p4
|
|
|
|
:goto_0
|
|
cmp-long v2, p4, p6
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
cmp-long v2, v0, p4
|
|
|
|
if-ltz v2, :cond_1
|
|
|
|
.line 364
|
|
iget v2, p1, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;->lastPeriodIndex:I
|
|
|
|
if-ge p3, v2, :cond_1
|
|
|
|
sub-long/2addr v0, p4
|
|
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
.line 367
|
|
invoke-virtual {p0, p3, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getPeriod(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p4}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;->getDurationUs()J
|
|
|
|
move-result-wide p4
|
|
|
|
goto :goto_0
|
|
|
|
.line 369
|
|
:cond_1
|
|
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p1, p2}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getPreviousWindowIndex(IIZ)I
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
if-eq p2, v0, :cond_2
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ne p2, v1, :cond_1
|
|
|
|
.line 289
|
|
invoke-virtual {p0, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getFirstWindowIndex(Z)I
|
|
|
|
move-result p2
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
.line 290
|
|
invoke-virtual {p0, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getLastWindowIndex(Z)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sub-int/2addr p1, v0
|
|
|
|
:goto_0
|
|
return p1
|
|
|
|
.line 292
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
return p1
|
|
|
|
.line 284
|
|
:cond_3
|
|
invoke-virtual {p0, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getFirstWindowIndex(Z)I
|
|
|
|
move-result p2
|
|
|
|
if-ne p1, p2, :cond_4
|
|
|
|
const/4 p1, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
sub-int/2addr p1, v0
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getWindow(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 308
|
|
invoke-virtual {p0, p1, p2, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getWindow(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;Z)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getWindow(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;Z)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
.locals 6
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move v3, p3
|
|
|
|
.line 313
|
|
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getWindow(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;ZJ)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public abstract getWindow(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;ZJ)Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;
|
|
.end method
|
|
|
|
.method public abstract getWindowCount()I
|
|
.end method
|
|
|
|
.method public final isEmpty()Z
|
|
.locals 1
|
|
|
|
.line 256
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getWindowCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isLastPeriod(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;IZ)Z
|
|
.locals 0
|
|
|
|
.line 340
|
|
invoke-virtual/range {p0 .. p5}, Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline;->getNextPeriodIndex(ILcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Period;Lcom/mbridge/msdk/playercommon/exoplayer2/Timeline$Window;IZ)I
|
|
|
|
move-result p1
|
|
|
|
const/4 p2, -0x1
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|