- 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
427 lines
8.9 KiB
Smali
427 lines
8.9 KiB
Smali
.class public Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final NONE:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
|
|
# instance fields
|
|
.field private deadlineNanoTime:J
|
|
|
|
.field private hasDeadline:Z
|
|
|
|
.field private timeoutNanos:J
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 48
|
|
new-instance v0, Lcom/mbridge/msdk/thrid/okio/Timeout$1;
|
|
|
|
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Timeout$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/mbridge/msdk/thrid/okio/Timeout;->NONE:Lcom/mbridge/msdk/thrid/okio/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()Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/Timeout;->hasDeadline:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public clearTimeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
.locals 2
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okio/Timeout;->timeoutNanos:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final deadline(JLjava/util/concurrent/TimeUnit;)Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
.locals 2
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 123
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
add-long/2addr v0, p1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okio/Timeout;->deadlineNanoTime(J)Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 122
|
|
: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 121
|
|
: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, "duration <= 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 deadlineNanoTime()J
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/Timeout;->hasDeadline:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okio/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)Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
.locals 1
|
|
|
|
.line 0
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/Timeout;->hasDeadline:Z
|
|
|
|
iput-wide p1, p0, Lcom/mbridge/msdk/thrid/okio/Timeout;->deadlineNanoTime:J
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public hasDeadline()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/Timeout;->hasDeadline:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public throwIfReached()V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 144
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okio/Timeout;->hasDeadline:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okio/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;)Lcom/mbridge/msdk/thrid/okio/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, Lcom/mbridge/msdk/thrid/okio/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, Lcom/mbridge/msdk/thrid/okio/Timeout;->timeoutNanos:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final waitUntilNotified(Ljava/lang/Object;)V
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/InterruptedIOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 192
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->hasDeadline()Z
|
|
|
|
move-result v0
|
|
|
|
.line 193
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->timeoutNanos()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
.line 196
|
|
invoke-virtual {p1}, Ljava/lang/Object;->wait()V
|
|
|
|
return-void
|
|
|
|
.line 202
|
|
:cond_0
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v5
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
cmp-long v7, v1, v3
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
.line 204
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->deadlineNanoTime()J
|
|
|
|
move-result-wide v7
|
|
|
|
sub-long/2addr v7, v5
|
|
|
|
.line 205
|
|
invoke-static {v1, v2, v7, v8}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 207
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->deadlineNanoTime()J
|
|
|
|
move-result-wide v0
|
|
|
|
sub-long v1, v0, v5
|
|
|
|
:cond_2
|
|
:goto_0
|
|
cmp-long v0, v1, v3
|
|
|
|
if-lez v0, :cond_3
|
|
|
|
const-wide/32 v3, 0xf4240
|
|
|
|
.line 215
|
|
div-long v7, v1, v3
|
|
|
|
mul-long/2addr v3, v7
|
|
|
|
sub-long v3, v1, v3
|
|
|
|
long-to-int v0, v3
|
|
|
|
.line 216
|
|
invoke-virtual {p1, v7, v8, v0}, Ljava/lang/Object;->wait(JI)V
|
|
|
|
.line 217
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v3
|
|
|
|
sub-long/2addr v3, v5
|
|
|
|
:cond_3
|
|
cmp-long p1, v3, v1
|
|
|
|
if-gez p1, :cond_4
|
|
|
|
return-void
|
|
|
|
.line 222
|
|
:cond_4
|
|
new-instance p1, Ljava/io/InterruptedIOException;
|
|
|
|
const-string v0, "timeout"
|
|
|
|
invoke-direct {p1, v0}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 225
|
|
:catch_0
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
.line 226
|
|
new-instance p1, Ljava/io/InterruptedIOException;
|
|
|
|
const-string v0, "interrupted"
|
|
|
|
invoke-direct {p1, v0}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|