2020-04-17 19:35:49 +00:00
|
|
|
.class public final Ld0/c;
|
2020-02-20 19:33:18 +00:00
|
|
|
.super Ljava/lang/Object;
|
2020-04-17 19:35:49 +00:00
|
|
|
.source "AsyncTimeout.kt"
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
# interfaces
|
|
|
|
.implements Ld0/u;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic d:Ld0/b;
|
|
|
|
|
|
|
|
.field public final synthetic e:Ld0/u;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
# direct methods
|
2020-04-17 19:35:49 +00:00
|
|
|
.method public constructor <init>(Ld0/b;Ld0/u;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ld0/u;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iput-object p1, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
iput-object p2, p0, Ld0/c;->e:Ld0/u;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public close()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ld0/b;->g()V
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v0, p0, Ld0/c;->e:Ld0/u;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ld0/u;->close()V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iget-object v1, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ld0/b;->a(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
iget-object v1, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ld0/b;->a(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v1, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ld0/b;->a(Z)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public flush()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ld0/b;->g()V
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v0, p0, Ld0/c;->e:Ld0/u;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ld0/u;->flush()V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iget-object v1, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ld0/b;->a(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
iget-object v1, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ld0/b;->a(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v1, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ld0/b;->a(Z)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public timeout()Ld0/x;
|
2020-03-27 22:23:51 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
iget-object v0, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "AsyncTimeout.sink("
|
|
|
|
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Ld0/c;->e:Ld0/u;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
const/16 v1, 0x29
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public write(Ld0/e;J)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
iget-wide v1, p1, Ld0/e;->e:J
|
|
|
|
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
|
|
|
|
move-wide v5, p2
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, Lf/n/a/j/a;->a(JJJ)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
|
|
|
|
cmp-long v3, p2, v1
|
|
|
|
|
|
|
|
if-lez v3, :cond_4
|
|
|
|
|
|
|
|
iget-object v3, p1, Ld0/e;->d:Ld0/r;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/high16 v4, 0x10000
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
|
|
|
cmp-long v6, v1, v4
|
|
|
|
|
|
|
|
if-gez v6, :cond_2
|
|
|
|
|
|
|
|
iget v4, v3, Ld0/r;->c:I
|
|
|
|
|
|
|
|
iget v5, v3, Ld0/r;->b:I
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
|
|
|
add-long/2addr v1, v4
|
|
|
|
|
|
|
|
cmp-long v4, v1, p2
|
|
|
|
|
|
|
|
if-ltz v4, :cond_0
|
|
|
|
|
|
|
|
move-wide v1, p2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v3, v3, Ld0/r;->f:Ld0/r;
|
|
|
|
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {}, Ly/u/b/j;->throwNpe()V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
iget-object v4, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ld0/b;->g()V
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v4, p0, Ld0/c;->e:Ld0/u;
|
|
|
|
|
|
|
|
invoke-interface {v4, p1, v1, v2}, Ld0/u;->write(Ld0/e;J)V
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
sub-long/2addr p2, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
iget-object v2, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Ld0/b;->a(Z)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
iget-object p2, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Ld0/b;->a(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
iget-object p2, p0, Ld0/c;->d:Ld0/b;
|
|
|
|
|
|
|
|
invoke-virtual {p2, v3}, Ld0/b;->a(Z)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-static {}, Ly/u/b/j;->throwNpe()V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_4
|
2020-03-27 22:23:51 +00:00
|
|
|
return-void
|
2020-04-17 19:35:49 +00:00
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const-string p1, "source"
|
|
|
|
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
2020-02-20 19:33:18 +00:00
|
|
|
.end method
|