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