- 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
215 lines
4.1 KiB
Smali
215 lines
4.1 KiB
Smali
.class public final Lcom/google/android/exoplayer2/util/TimedValueQueue;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public first:I
|
|
|
|
.field public size:I
|
|
|
|
.field public timestamps:[J
|
|
|
|
.field public values:[Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 33
|
|
invoke-direct {p0, v0}, Lcom/google/android/exoplayer2/util/TimedValueQueue;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(I)V
|
|
.locals 1
|
|
|
|
.line 37
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 38
|
|
new-array v0, p1, [J
|
|
|
|
iput-object v0, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->timestamps:[J
|
|
|
|
.line 39
|
|
invoke-static {p1}, Lcom/google/android/exoplayer2/util/TimedValueQueue;->newArray(I)[Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->values:[Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static newArray(I)[Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 174
|
|
new-array p0, p0, [Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public declared-synchronized poll(J)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 95
|
|
:try_start_0
|
|
invoke-virtual {p0, p1, p2, v0}, Lcom/google/android/exoplayer2/util/TimedValueQueue;->poll(JZ)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final poll(JZ)Ljava/lang/Object;
|
|
.locals 7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-wide v1, 0x7fffffffffffffffL
|
|
|
|
:goto_0
|
|
iget v3, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->size:I
|
|
|
|
if-lez v3, :cond_1
|
|
|
|
iget-object v3, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->timestamps:[J
|
|
|
|
iget v4, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->first:I
|
|
|
|
.line 113
|
|
aget-wide v4, v3, v4
|
|
|
|
sub-long v3, p1, v4
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
cmp-long v5, v3, v5
|
|
|
|
if-gez v5, :cond_0
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
neg-long v5, v3
|
|
|
|
cmp-long v1, v5, v1
|
|
|
|
if-ltz v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 118
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/util/TimedValueQueue;->popFirst()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
move-wide v1, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public declared-synchronized pollFloor(J)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 82
|
|
:try_start_0
|
|
invoke-virtual {p0, p1, p2, v0}, Lcom/google/android/exoplayer2/util/TimedValueQueue;->poll(JZ)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final popFirst()Ljava/lang/Object;
|
|
.locals 5
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->size:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 125
|
|
:goto_0
|
|
invoke-static {v0}, Lcom/google/android/exoplayer2/util/Assertions;->checkState(Z)V
|
|
|
|
iget-object v0, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->values:[Ljava/lang/Object;
|
|
|
|
iget v2, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->first:I
|
|
|
|
.line 126
|
|
aget-object v3, v0, v2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 127
|
|
aput-object v4, v0, v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
.line 128
|
|
array-length v0, v0
|
|
|
|
rem-int/2addr v2, v0
|
|
|
|
iput v2, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->first:I
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->size:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lcom/google/android/exoplayer2/util/TimedValueQueue;->size:I
|
|
|
|
return-object v3
|
|
.end method
|