apkfuckery/com.discord/smali_classes2/b0/x.smali

232 lines
3.8 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public Lb0/x;
2019-11-28 00:30:53 +00:00
.super Ljava/lang/Object;
.source "Timeout.kt"
# static fields
2020-02-20 19:33:18 +00:00
.field public static final d:Lb0/x;
2019-11-28 00:30:53 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public a:Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.field public b:J
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.field public c:J
2019-11-28 00:30:53 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
.locals 1
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
new-instance v0, Lb0/x$a;
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
invoke-direct {v0}, Lb0/x$a;-><init>()V
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
sput-object v0, Lb0/x;->d:Lb0/x;
2019-11-28 00:30:53 +00:00
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
2020-02-20 19:33:18 +00:00
.method public a()Lb0/x;
2019-12-06 03:29:40 +00:00
.locals 1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
iput-boolean v0, p0, Lb0/x;->a:Z
2019-12-06 03:29:40 +00:00
return-object p0
2019-11-28 00:30:53 +00:00
.end method
2020-02-20 19:33:18 +00:00
.method public a(J)Lb0/x;
2019-11-28 00:30:53 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
const/4 v0, 0x1
2020-02-20 19:33:18 +00:00
iput-boolean v0, p0, Lb0/x;->a:Z
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
iput-wide p1, p0, Lb0/x;->b:J
2019-12-06 03:29:40 +00:00
return-object p0
2019-11-28 00:30:53 +00:00
.end method
2020-02-20 19:33:18 +00:00
.method public a(JLjava/util/concurrent/TimeUnit;)Lb0/x;
2019-12-06 03:29:40 +00:00
.locals 3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p3, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-wide/16 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
cmp-long v2, p1, v0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-ltz v2, :cond_0
const/4 v0, 0x1
goto :goto_0
2019-11-28 00:30:53 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
if-eqz v0, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-wide p1
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
iput-wide p1, p0, Lb0/x;->c:J
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object p0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
const-string p3, "timeout < 0: "
invoke-static {p3, p1, p2}, Le/e/b/a/a;->a(Ljava/lang/String;J)Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
:cond_2
const-string p1, "unit"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-11-28 00:30:53 +00:00
.end method
2020-02-20 19:33:18 +00:00
.method public b()Lb0/x;
2019-11-28 00:30:53 +00:00
.locals 2
const-wide/16 v0, 0x0
2020-02-20 19:33:18 +00:00
iput-wide v0, p0, Lb0/x;->c:J
2019-11-28 00:30:53 +00:00
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public c()J
.locals 2
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/x;->a:Z
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v0, p0, Lb0/x;->b:J
2019-12-06 03:29:40 +00:00
return-wide v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "No deadline"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
2019-11-28 00:30:53 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public d()Z
.locals 1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/x;->a:Z
2019-12-06 03:29:40 +00:00
return v0
.end method
.method public e()V
2019-11-28 00:30:53 +00:00
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
move-result v0
if-nez v0, :cond_2
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/x;->a:Z
2019-11-28 00:30:53 +00:00
if-eqz v0, :cond_1
2020-02-20 19:33:18 +00:00
iget-wide v0, p0, Lb0/x;->b:J
2019-11-28 00:30:53 +00:00
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
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
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
2019-12-06 03:29:40 +00:00
.method public f()J
.locals 2
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v0, p0, Lb0/x;->c:J
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-wide v0
2019-11-28 00:30:53 +00:00
.end method