2020-09-02 04:07:20 +00:00
|
|
|
.class public final Lp0/c;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "AsyncTimeout.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-09-09 19:21:20 +00:00
|
|
|
.implements Lp0/v;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic d:Lp0/b;
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
.field public final synthetic e:Lp0/v;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-09-09 19:21:20 +00:00
|
|
|
.method public constructor <init>(Lp0/b;Lp0/v;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
2020-09-09 19:21:20 +00:00
|
|
|
"Lp0/v;",
|
2020-09-02 04:07:20 +00:00
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iput-object p1, p0, Lp0/c;->d:Lp0/b;
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
iput-object p2, p0, Lp0/c;->e:Lp0/v;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public close()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lp0/c;->d:Lp0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lp0/b;->i()V
|
|
|
|
|
|
|
|
:try_start_0
|
2020-09-09 19:21:20 +00:00
|
|
|
iget-object v1, p0, Lp0/c;->e:Lp0/v;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-interface {v1}, Lp0/v;->close()V
|
2020-09-02 04:07:20 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-virtual {v0}, Lp0/b;->j()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-nez v1, :cond_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lp0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
:catchall_0
|
2020-09-09 19:21:20 +00:00
|
|
|
move-exception v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
goto :goto_1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:catch_0
|
2020-09-09 19:21:20 +00:00
|
|
|
move-exception v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:try_start_1
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-virtual {v0}, Lp0/b;->j()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result v2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-nez v2, :cond_1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v0, v1}, Lp0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
|
|
|
move-result-object v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-09 19:21:20 +00:00
|
|
|
throw v1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-virtual {v0}, Lp0/b;->j()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result v0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
throw v1
|
2020-09-02 04:07:20 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public flush()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lp0/c;->d:Lp0/b;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lp0/b;->i()V
|
|
|
|
|
|
|
|
:try_start_0
|
2020-09-09 19:21:20 +00:00
|
|
|
iget-object v1, p0, Lp0/c;->e:Lp0/v;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-interface {v1}, Lp0/v;->flush()V
|
2020-09-02 04:07:20 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-virtual {v0}, Lp0/b;->j()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-nez v1, :cond_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lp0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
:catchall_0
|
2020-09-09 19:21:20 +00:00
|
|
|
move-exception v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
goto :goto_1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:catch_0
|
2020-09-09 19:21:20 +00:00
|
|
|
move-exception v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:try_start_1
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-virtual {v0}, Lp0/b;->j()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result v2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-nez v2, :cond_1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v0, v1}, Lp0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
|
|
|
move-result-object v1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-09 19:21:20 +00:00
|
|
|
throw v1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-virtual {v0}, Lp0/b;->j()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result v0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
throw v1
|
2020-09-02 04:07:20 +00:00
|
|
|
.end method
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
.method public timeout()Lp0/y;
|
2020-09-02 04:07:20 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lp0/c;->d:Lp0/b;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "AsyncTimeout.sink("
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
iget-object v1, p0, Lp0/c;->e:Lp0/v;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v1, 0x29
|
|
|
|
|
|
|
|
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(Lp0/e;J)V
|
|
|
|
.locals 7
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const-string v0, "source"
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
iget-wide v1, p1, Lp0/e;->e:J
|
|
|
|
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
|
|
|
|
move-wide v5, p2
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static/range {v1 .. v6}, Lk0/j/a;->n(JJJ)V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-09-09 19:21:20 +00:00
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p2, v0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-lez v2, :cond_6
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
iget-object v2, p1, Lp0/e;->d:Lp0/s;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
const/4 v3, 0x0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-eqz v2, :cond_5
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/high16 v4, 0x10000
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
cmp-long v6, v0, v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
if-gez v6, :cond_2
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
iget v4, v2, Lp0/s;->c:I
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
iget v5, v2, Lp0/s;->b:I
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
add-long/2addr v0, v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
cmp-long v4, v0, p2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
if-ltz v4, :cond_0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-wide v0, p2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
2020-09-09 19:21:20 +00:00
|
|
|
iget-object v2, v2, Lp0/s;->f:Lp0/s;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-eqz v2, :cond_1
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {}, Lk0/n/c/i;->throwNpe()V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
throw v3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_2
|
2020-09-09 19:21:20 +00:00
|
|
|
iget-object v2, p0, Lp0/c;->d:Lp0/b;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-virtual {v2}, Lp0/b;->i()V
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:try_start_0
|
2020-09-09 19:21:20 +00:00
|
|
|
iget-object v4, p0, Lp0/c;->e:Lp0/v;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-interface {v4, p1, v0, v1}, Lp0/v;->write(Lp0/e;J)V
|
2020-09-02 04:07:20 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-virtual {v2}, Lp0/b;->j()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result v4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-nez v4, :cond_3
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
sub-long/2addr p2, v0
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
:cond_3
|
|
|
|
invoke-virtual {v2, v3}, Lp0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
2020-09-02 04:07:20 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
goto :goto_4
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:try_start_1
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-virtual {v2}, Lp0/b;->j()Z
|
|
|
|
|
|
|
|
move-result p2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
if-nez p2, :cond_4
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v2, p1}, Lp0/b;->k(Ljava/io/IOException;)Ljava/io/IOException;
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
:goto_3
|
2020-09-02 04:07:20 +00:00
|
|
|
throw p1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
:goto_4
|
|
|
|
invoke-virtual {v2}, Lp0/b;->j()Z
|
2020-09-02 04:07:20 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result p2
|
2020-09-02 04:07:20 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
2020-09-08 08:16:32 +00:00
|
|
|
:cond_5
|
2020-09-09 19:21:20 +00:00
|
|
|
invoke-static {}, Lk0/n/c/i;->throwNpe()V
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
throw v3
|
2020-09-08 08:16:32 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
:cond_6
|
|
|
|
return-void
|
2020-09-02 04:07:20 +00:00
|
|
|
.end method
|