- 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
229 lines
4.3 KiB
Smali
229 lines
4.3 KiB
Smali
.class public Lokio/Timeout;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final NONE:Lokio/Timeout;
|
|
|
|
|
|
# instance fields
|
|
.field public deadlineNanoTime:J
|
|
|
|
.field public hasDeadline:Z
|
|
|
|
.field public timeoutNanos:J
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 48
|
|
new-instance v0, Lokio/Timeout$1;
|
|
|
|
invoke-direct {v0}, Lokio/Timeout$1;-><init>()V
|
|
|
|
sput-object v0, Lokio/Timeout;->NONE:Lokio/Timeout;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 69
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public clearDeadline()Lokio/Timeout;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lokio/Timeout;->hasDeadline:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public clearTimeout()Lokio/Timeout;
|
|
.locals 2
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
iput-wide v0, p0, Lokio/Timeout;->timeoutNanos:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public deadlineNanoTime()J
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lokio/Timeout;->hasDeadline:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-wide v0, p0, Lokio/Timeout;->deadlineNanoTime:J
|
|
|
|
return-wide v0
|
|
|
|
.line 104
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "No deadline"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public deadlineNanoTime(J)Lokio/Timeout;
|
|
.locals 1
|
|
|
|
.line 0
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lokio/Timeout;->hasDeadline:Z
|
|
|
|
iput-wide p1, p0, Lokio/Timeout;->deadlineNanoTime:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public hasDeadline()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lokio/Timeout;->hasDeadline:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public throwIfReached()V
|
|
.locals 4
|
|
|
|
.line 144
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-boolean v0, p0, Lokio/Timeout;->hasDeadline:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-wide v0, p0, Lokio/Timeout;->deadlineNanoTime:J
|
|
|
|
.line 149
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v2
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 150
|
|
:cond_0
|
|
new-instance v0, Ljava/io/InterruptedIOException;
|
|
|
|
const-string v1, "deadline reached"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 145
|
|
:cond_2
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
.line 146
|
|
new-instance v0, Ljava/io/InterruptedIOException;
|
|
|
|
const-string v1, "interrupted"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
.locals 2
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 83
|
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Lokio/Timeout;->timeoutNanos:J
|
|
|
|
return-object p0
|
|
|
|
.line 82
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "unit == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 81
|
|
:cond_1
|
|
new-instance p3, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "timeout < 0: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p3, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p3
|
|
.end method
|
|
|
|
.method public timeoutNanos()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lokio/Timeout;->timeoutNanos:J
|
|
|
|
return-wide v0
|
|
.end method
|