Weather/smali_classes4/okhttp3/RealCall$AsyncCall.smali
2021-05-10 10:13:34 +02:00

221 lines
5.3 KiB
Smali

.class final Lokhttp3/RealCall$AsyncCall;
.super Lokhttp3/internal/NamedRunnable;
.source "RealCall.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/RealCall;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "AsyncCall"
.end annotation
# instance fields
.field final synthetic a:Lokhttp3/RealCall;
.field private final c:Lokhttp3/Callback;
# direct methods
.method constructor <init>(Lokhttp3/RealCall;Lokhttp3/Callback;)V
.locals 3
.line 109
iput-object p1, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
const-string v0, "OkHttp %s"
const/4 v1, 0x1
.line 110
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p1}, Lokhttp3/RealCall;->h()Ljava/lang/String;
move-result-object p1
const/4 v2, 0x0
aput-object p1, v1, v2
invoke-direct {p0, v0, v1}, Lokhttp3/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
.line 111
iput-object p2, p0, Lokhttp3/RealCall$AsyncCall;->c:Lokhttp3/Callback;
return-void
.end method
# virtual methods
.method a()Ljava/lang/String;
.locals 1
.line 115
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
iget-object v0, v0, Lokhttp3/RealCall;->c:Lokhttp3/Request;
invoke-virtual {v0}, Lokhttp3/Request;->a()Lokhttp3/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method protected b()V
.locals 5
const/4 v0, 0x1
const/4 v1, 0x0
.line 129
:try_start_0
iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
invoke-virtual {v2}, Lokhttp3/RealCall;->i()Lokhttp3/Response;
move-result-object v2
.line 130
iget-object v3, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
iget-object v3, v3, Lokhttp3/RealCall;->b:Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
invoke-virtual {v3}, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;->b()Z
move-result v3
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v3, :cond_0
.line 132
:try_start_1
iget-object v1, p0, Lokhttp3/RealCall$AsyncCall;->c:Lokhttp3/Callback;
iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
new-instance v3, Ljava/io/IOException;
const-string v4, "Canceled"
invoke-direct {v3, v4}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
invoke-interface {v1, v2, v3}, Lokhttp3/Callback;->a(Lokhttp3/Call;Ljava/io/IOException;)V
goto :goto_1
:catch_0
move-exception v1
goto :goto_0
.line 135
:cond_0
iget-object v1, p0, Lokhttp3/RealCall$AsyncCall;->c:Lokhttp3/Callback;
iget-object v3, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
invoke-interface {v1, v3, v2}, Lokhttp3/Callback;->a(Lokhttp3/Call;Lokhttp3/Response;)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_1
:catchall_0
move-exception v0
goto :goto_2
:catch_1
move-exception v0
move-object v1, v0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
.line 140
:try_start_2
invoke-static {}, Lokhttp3/internal/platform/Platform;->b()Lokhttp3/internal/platform/Platform;
move-result-object v0
const/4 v2, 0x4
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Callback failure for "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v4, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
invoke-virtual {v4}, Lokhttp3/RealCall;->g()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v2, v3, v1}, Lokhttp3/internal/platform/Platform;->a(ILjava/lang/String;Ljava/lang/Throwable;)V
goto :goto_1
.line 142
:cond_1
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->c:Lokhttp3/Callback;
iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
invoke-interface {v0, v2, v1}, Lokhttp3/Callback;->a(Lokhttp3/Call;Ljava/io/IOException;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 145
:goto_1
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
iget-object v0, v0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->t()Lokhttp3/Dispatcher;
move-result-object v0
invoke-virtual {v0, p0}, Lokhttp3/Dispatcher;->b(Lokhttp3/RealCall$AsyncCall;)V
return-void
:goto_2
iget-object v1, p0, Lokhttp3/RealCall$AsyncCall;->a:Lokhttp3/RealCall;
iget-object v1, v1, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->t()Lokhttp3/Dispatcher;
move-result-object v1
invoke-virtual {v1, p0}, Lokhttp3/Dispatcher;->b(Lokhttp3/RealCall$AsyncCall;)V
throw v0
.end method