mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-11-11 04:49:20 +08:00
211 lines
3.6 KiB
Smali
211 lines
3.6 KiB
Smali
|
.class public Ld/y;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source ""
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final a:Ld/y;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private b:Z
|
||
|
|
||
|
.field private c:J
|
||
|
|
||
|
.field private d:J
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Ld/x;
|
||
|
|
||
|
invoke-direct {v0}, Ld/x;-><init>()V
|
||
|
|
||
|
sput-object v0, Ld/y;->a:Ld/y;
|
||
|
|
||
|
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 a()Ld/y;
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput-boolean v0, p0, Ld/y;->b:Z
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public a(J)Ld/y;
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, Ld/y;->b:Z
|
||
|
|
||
|
iput-wide p1, p0, Ld/y;->c:J
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public a(JLjava/util/concurrent/TimeUnit;)Ld/y;
|
||
|
.locals 3
|
||
|
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
cmp-long v2, p1, v0
|
||
|
|
||
|
if-ltz v2, :cond_1
|
||
|
|
||
|
if-eqz p3, :cond_0
|
||
|
|
||
|
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
||
|
|
||
|
move-result-wide p1
|
||
|
|
||
|
iput-wide p1, p0, Ld/y;->d:J
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
: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
|
||
|
|
||
|
: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 b()Ld/y;
|
||
|
.locals 2
|
||
|
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
iput-wide v0, p0, Ld/y;->d:J
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public c()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-boolean v0, p0, Ld/y;->b:Z
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-wide v0, p0, Ld/y;->c:J
|
||
|
|
||
|
return-wide v0
|
||
|
|
||
|
: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 d()Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-boolean v0, p0, Ld/y;->b:Z
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public e()V
|
||
|
.locals 5
|
||
|
|
||
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
iget-boolean v0, p0, Ld/y;->b:Z
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget-wide v0, p0, Ld/y;->c:J
|
||
|
|
||
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
sub-long/2addr v0, v2
|
||
|
|
||
|
const-wide/16 v2, 0x0
|
||
|
|
||
|
cmp-long v4, v0, v2
|
||
|
|
||
|
if-lez v4, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
: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
|
||
|
|
||
|
:cond_2
|
||
|
new-instance v0, Ljava/io/InterruptedIOException;
|
||
|
|
||
|
const-string v1, "thread interrupted"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public f()J
|
||
|
.locals 2
|
||
|
|
||
|
iget-wide v0, p0, Ld/y;->d:J
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|