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