- 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
149 lines
3.4 KiB
Smali
149 lines
3.4 KiB
Smali
.class public final Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static final DEFAULT_INITIAL_CAPACITY:I = 0x20
|
|
|
|
|
|
# instance fields
|
|
.field private size:I
|
|
|
|
.field private values:[J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
const/16 v0, 0x20
|
|
|
|
.line 15
|
|
invoke-direct {p0, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(I)V
|
|
.locals 0
|
|
|
|
.line 19
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 20
|
|
new-array p1, p1, [J
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->values:[J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final add(J)V
|
|
.locals 3
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->size:I
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->values:[J
|
|
|
|
.line 25
|
|
array-length v2, v1
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
.line 26
|
|
invoke-static {v1, v0}, Ljava/util/Arrays;->copyOf([JI)[J
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->values:[J
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->values:[J
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->size:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
iput v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->size:I
|
|
|
|
.line 28
|
|
aput-wide p1, v0, v1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final get(I)J
|
|
.locals 3
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->size:I
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->values:[J
|
|
|
|
.line 36
|
|
aget-wide v1, v0, p1
|
|
|
|
return-wide v1
|
|
|
|
.line 34
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Invalid index "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, ", size is "
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->size:I
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final size()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->size:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toArray()[J
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->values:[J
|
|
|
|
iget v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LongArray;->size:I
|
|
|
|
.line 46
|
|
invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([JI)[J
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|