mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
174 lines
4.6 KiB
Smali
174 lines
4.6 KiB
Smali
|
.class final Lokio/SocketAsyncTimeout;
|
||
|
.super Lokio/AsyncTimeout;
|
||
|
.source "JvmOkio.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
bv = {
|
||
|
0x1,
|
||
|
0x0,
|
||
|
0x3
|
||
|
}
|
||
|
d1 = {
|
||
|
"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0000\u0008\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0012\u0010\u0005\u001a\u00020\u00062\u0008\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0014J\u0008\u0010\u0008\u001a\u00020\tH\u0014R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\n"
|
||
|
}
|
||
|
d2 = {
|
||
|
"Lokio/SocketAsyncTimeout;",
|
||
|
"Lokio/AsyncTimeout;",
|
||
|
"socket",
|
||
|
"Ljava/net/Socket;",
|
||
|
"(Ljava/net/Socket;)V",
|
||
|
"newTimeoutException",
|
||
|
"Ljava/io/IOException;",
|
||
|
"cause",
|
||
|
"timedOut",
|
||
|
"",
|
||
|
"okio"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x4,
|
||
|
0x0
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final socket:Ljava/net/Socket;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Ljava/net/Socket;)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "socket"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 141
|
||
|
invoke-direct {p0}, Lokio/AsyncTimeout;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Lokio/SocketAsyncTimeout;->socket:Ljava/net/Socket;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method protected newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
|
||
|
.locals 1
|
||
|
|
||
|
.line 143
|
||
|
new-instance p0, Ljava/net/SocketTimeoutException;
|
||
|
|
||
|
const-string v0, "timeout"
|
||
|
|
||
|
invoke-direct {p0, v0}, Ljava/net/SocketTimeoutException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
.line 145
|
||
|
check-cast p1, Ljava/lang/Throwable;
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/net/SocketTimeoutException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
||
|
|
||
|
.line 147
|
||
|
:cond_0
|
||
|
check-cast p0, Ljava/io/IOException;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method protected timedOut()V
|
||
|
.locals 5
|
||
|
|
||
|
const-string v0, "Failed to close timed out socket "
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v1, p0, Lokio/SocketAsyncTimeout;->socket:Ljava/net/Socket;
|
||
|
|
||
|
.line 152
|
||
|
invoke-virtual {v1}, Ljava/net/Socket;->close()V
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
|
||
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v1
|
||
|
|
||
|
.line 156
|
||
|
invoke-static {v1}, Lokio/Okio;->isAndroidGetsocknameError(Ljava/lang/AssertionError;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
.line 159
|
||
|
invoke-static {}, Lokio/Okio__JvmOkioKt;->access$getLogger$p()Ljava/util/logging/Logger;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
|
||
|
|
||
|
new-instance v4, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v4, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
iget-object p0, p0, Lokio/SocketAsyncTimeout;->socket:Ljava/net/Socket;
|
||
|
|
||
|
invoke-virtual {v4, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast v1, Ljava/lang/Throwable;
|
||
|
|
||
|
invoke-virtual {v2, v3, p0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 161
|
||
|
:cond_0
|
||
|
check-cast v1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v1
|
||
|
|
||
|
:catch_1
|
||
|
move-exception v1
|
||
|
|
||
|
.line 154
|
||
|
invoke-static {}, Lokio/Okio__JvmOkioKt;->access$getLogger$p()Ljava/util/logging/Logger;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
sget-object v3, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
|
||
|
|
||
|
new-instance v4, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v4, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
iget-object p0, p0, Lokio/SocketAsyncTimeout;->socket:Ljava/net/Socket;
|
||
|
|
||
|
invoke-virtual {v4, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast v1, Ljava/lang/Throwable;
|
||
|
|
||
|
invoke-virtual {v2, v3, p0, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|