170 lines
3.7 KiB
Smali
170 lines
3.7 KiB
Smali
.class public final Ln0/g0/k/b;
|
|
.super Ljava/lang/Object;
|
|
.source "RealWebSocket.kt"
|
|
|
|
# interfaces
|
|
.implements Ln0/g;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic a:Ln0/g0/k/a;
|
|
|
|
.field public final synthetic b:Ln0/a0;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ln0/g0/k/a;Ln0/a0;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ln0/a0;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
iput-object p2, p0, Ln0/g0/k/b;->b:Ln0/a0;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ln0/f;Lokhttp3/Response;)V
|
|
.locals 7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object v1, p2, Lokhttp3/Response;->p:Ln0/g0/d/c;
|
|
|
|
:try_start_0
|
|
iget-object p1, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
invoke-virtual {p1, p2, v1}, Ln0/g0/k/a;->h(Lokhttp3/Response;Ln0/g0/d/c;)V
|
|
|
|
invoke-virtual {v1}, Ln0/g0/d/c;->d()Ln0/g0/k/a$f;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
:try_start_1
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "OkHttp WebSocket "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Ln0/g0/k/b;->b:Ln0/a0;
|
|
|
|
iget-object v2, v2, Ln0/a0;->b:Ln0/w;
|
|
|
|
invoke-virtual {v2}, Ln0/w;->i()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
invoke-virtual {v2, v1, p1}, Ln0/g0/k/a;->j(Ljava/lang/String;Ln0/g0/k/a$f;)V
|
|
|
|
iget-object p1, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
iget-object p1, p1, Ln0/g0/k/a;->u:Lokhttp3/WebSocketListener;
|
|
|
|
iget-object v1, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
invoke-virtual {p1, v1, p2}, Lokhttp3/WebSocketListener;->onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V
|
|
|
|
iget-object p1, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
invoke-virtual {p1}, Ln0/g0/k/a;->k()V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
iget-object p2, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
invoke-virtual {p2, p1, v0}, Ln0/g0/k/a;->i(Ljava/lang/Exception;Lokhttp3/Response;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-virtual/range {v1 .. v6}, Ln0/g0/d/c;->a(JZZLjava/io/IOException;)Ljava/io/IOException;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
invoke-virtual {v0, p1, p2}, Ln0/g0/k/a;->i(Ljava/lang/Exception;Lokhttp3/Response;)V
|
|
|
|
invoke-static {p2}, Ln0/g0/b;->f(Ljava/io/Closeable;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "call"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public b(Ln0/f;Ljava/io/IOException;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iget-object p1, p0, Ln0/g0/k/b;->a:Ln0/g0/k/a;
|
|
|
|
invoke-virtual {p1, p2, v0}, Ln0/g0/k/a;->i(Ljava/lang/Exception;Lokhttp3/Response;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "e"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "call"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|