2019-11-28 00:30:53 +00:00
|
|
|
.class public final Lokhttp3/p;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
2019-11-28 00:30:53 +00:00
|
|
|
.source "Dispatcher.kt"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
# instance fields
|
2019-12-03 21:42:56 +00:00
|
|
|
.field private brA:Ljava/lang/Runnable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
.field private brB:Ljava/util/concurrent/ExecutorService;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
.field private final brC:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayDeque<",
|
|
|
|
"Lokhttp3/y$a;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
.field private final brD:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayDeque<",
|
|
|
|
"Lokhttp3/y$a;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
.field private final brE:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayDeque<",
|
|
|
|
"Lokhttp3/y;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
.field private bry:I
|
|
|
|
|
|
|
|
.field private brz:I
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# direct methods
|
2019-11-28 00:30:53 +00:00
|
|
|
.method public constructor <init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const/16 v0, 0x40
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iput v0, p0, Lokhttp3/p;->bry:I
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x5
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iput v0, p0, Lokhttp3/p;->brz:I
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayDeque;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/p;->brC:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayDeque;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/p;->brD:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayDeque;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/p;->brE:Ljava/util/ArrayDeque;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
.method private declared-synchronized FH()Ljava/util/concurrent/ExecutorService;
|
2019-11-28 00:30:53 +00:00
|
|
|
.locals 9
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brB:Ljava/util/concurrent/ExecutorService;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const v3, 0x7fffffff
|
|
|
|
|
|
|
|
const-wide/16 v4, 0x3c
|
|
|
|
|
|
|
|
sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/util/concurrent/SynchronousQueue;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
|
|
|
|
|
|
|
|
move-object v7, v1
|
|
|
|
|
|
|
|
check-cast v7, Ljava/util/concurrent/BlockingQueue;
|
|
|
|
|
|
|
|
const-string v1, "OkHttp Dispatcher"
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
invoke-static {v1, v8}, Lokhttp3/internal/b;->h(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/p;->brB:Ljava/util/concurrent/ExecutorService;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brB:Ljava/util/concurrent/ExecutorService;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
.method private final FI()Z
|
2019-11-28 00:30:53 +00:00
|
|
|
.locals 9
|
|
|
|
|
|
|
|
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
sget-boolean v2, Lkotlin/v;->bgG:Z
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
const-string v1, "Assertion failed"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v2, p0, Lokhttp3/p;->brC:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "readyAsyncCalls.iterator()"
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Lokhttp3/y$a;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v4, p0, Lokhttp3/p;->brD:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/util/ArrayDeque;->size()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget v5, p0, Lokhttp3/p;->bry:I
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
if-ge v4, v5, :cond_3
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v4, v3, Lokhttp3/y$a;->bty:Ljava/util/concurrent/atomic/AtomicInteger;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget v5, p0, Lokhttp3/p;->brz:I
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
if-ge v4, v5, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->remove()V
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v4, v3, Lokhttp3/y$a;->bty:Ljava/util/concurrent/atomic/AtomicInteger;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
|
|
|
|
|
|
|
|
const-string v4, "asyncCall"
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v4, p0, Lokhttp3/p;->brD:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, v3}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2019-12-03 21:42:56 +00:00
|
|
|
invoke-direct {p0}, Lokhttp3/p;->FJ()I
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-lez v2, :cond_4
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
2019-12-03 21:42:56 +00:00
|
|
|
sget-object v4, Lkotlin/Unit;->bgF:Lkotlin/Unit;
|
2019-11-28 00:30:53 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
if-ge v3, v4, :cond_7
|
|
|
|
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
check-cast v5, Lokhttp3/y$a;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
invoke-direct {p0}, Lokhttp3/p;->FH()Ljava/util/concurrent/ExecutorService;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
const-string v7, "executorService"
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v7, v5, Lokhttp3/y$a;->btA:Lokhttp3/y;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v7, v7, Lokhttp3/y;->btu:Lokhttp3/w;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v7, v7, Lokhttp3/w;->bsK:Lokhttp3/p;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-static {v7}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
xor-int/2addr v7, v1
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
sget-boolean v8, Lkotlin/v;->bgG:Z
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
if-eqz v8, :cond_6
|
|
|
|
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
const-string v1, "Assertion failed"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
:goto_4
|
|
|
|
:try_start_1
|
|
|
|
move-object v7, v5
|
|
|
|
|
|
|
|
check-cast v7, Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
invoke-interface {v6, v7}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/util/concurrent/RejectedExecutionException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v6
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
new-instance v7, Ljava/io/InterruptedIOException;
|
|
|
|
|
|
|
|
const-string v8, "executor rejected"
|
|
|
|
|
|
|
|
invoke-direct {v7, v8}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v6, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-virtual {v7, v6}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v6, v5, Lokhttp3/y$a;->btA:Lokhttp3/y;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-static {v6}, Lokhttp3/y;->c(Lokhttp3/y;)Lokhttp3/internal/b/k;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
move-object v8, v7
|
|
|
|
|
|
|
|
check-cast v8, Ljava/io/IOException;
|
|
|
|
|
|
|
|
invoke-virtual {v6, v8}, Lokhttp3/internal/b/k;->d(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v6, v5, Lokhttp3/y$a;->btz:Lokhttp3/g;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v8, v5, Lokhttp3/y$a;->btA:Lokhttp3/y;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
check-cast v8, Lokhttp3/f;
|
|
|
|
|
|
|
|
check-cast v7, Ljava/io/IOException;
|
|
|
|
|
|
|
|
invoke-interface {v6, v8, v7}, Lokhttp3/g;->a(Lokhttp3/f;Ljava/io/IOException;)V
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v6, v5, Lokhttp3/y$a;->btA:Lokhttp3/y;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v6, v6, Lokhttp3/y;->btu:Lokhttp3/w;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v6, v6, Lokhttp3/w;->bsK:Lokhttp3/p;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v6, v5}, Lokhttp3/p;->b(Lokhttp3/y$a;)V
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:goto_6
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v1, v5, Lokhttp3/y$a;->btA:Lokhttp3/y;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v1, v1, Lokhttp3/y;->btu:Lokhttp3/w;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v1, v1, Lokhttp3/w;->bsK:Lokhttp3/p;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v5}, Lokhttp3/p;->b(Lokhttp3/y$a;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:catchall_1
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
.method private declared-synchronized FJ()I
|
2019-11-28 00:30:53 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brD:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v1, p0, Lokhttp3/p;->brE:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Ljava/util/Deque;Ljava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
2019-11-28 00:30:53 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Ljava/util/Deque<",
|
|
|
|
"TT;>;TT;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object p1, p0, Lokhttp3/p;->brA:Ljava/lang/Runnable;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
sget-object p2, Lkotlin/Unit;->bgF:Lkotlin/Unit;
|
2019-11-28 00:30:53 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
invoke-direct {p0}, Lokhttp3/p;->FI()Z
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:try_start_1
|
|
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
|
|
|
|
const-string p2, "Call wasn\'t in-flight!"
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Lokhttp3/y$a;)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
const-string v0, "call"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brC:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p1, Lokhttp3/y$a;->btA:Lokhttp3/y;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-boolean v0, v0, Lokhttp3/y;->btw:Z
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
invoke-virtual {p1}, Lokhttp3/y$a;->Gn()Ljava/lang/String;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v1, p0, Lokhttp3/p;->brD:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Lokhttp3/y$a;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
invoke-virtual {v2}, Lokhttp3/y$a;->Gn()Ljava/lang/String;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-static {v3, v0}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v1, p0, Lokhttp3/p;->brC:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Lokhttp3/y$a;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
invoke-virtual {v2}, Lokhttp3/y$a;->Gn()Ljava/lang/String;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-static {v3, v0}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
|
|
|
const-string v0, "other"
|
|
|
|
|
|
|
|
invoke-static {v2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, v2, Lokhttp3/y$a;->bty:Ljava/util/concurrent/atomic/AtomicInteger;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iput-object v0, p1, Lokhttp3/y$a;->bty:Ljava/util/concurrent/atomic/AtomicInteger;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
:cond_4
|
2019-12-03 21:42:56 +00:00
|
|
|
sget-object p1, Lkotlin/Unit;->bgF:Lkotlin/Unit;
|
2019-11-28 00:30:53 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
invoke-direct {p0}, Lokhttp3/p;->FI()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw p1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
.method public final declared-synchronized a(Lokhttp3/y;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
monitor-enter p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
:try_start_0
|
|
|
|
const-string v0, "call"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-28 00:30:53 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brE:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->add(Ljava/lang/Object;)Z
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Lokhttp3/y$a;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "call"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p1, Lokhttp3/y$a;->bty:Ljava/util/concurrent/atomic/AtomicInteger;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brD:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Deque;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1}, Lokhttp3/p;->a(Ljava/util/Deque;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Lokhttp3/y;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "call"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brE:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Deque;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, p1}, Lokhttp3/p;->a(Ljava/util/Deque;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final declared-synchronized cancelAll()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brC:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lokhttp3/y$a;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v1, v1, Lokhttp3/y$a;->btA:Lokhttp3/y;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lokhttp3/y;->cancel()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brD:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lokhttp3/y$a;
|
|
|
|
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v1, v1, Lokhttp3/y$a;->btA:Lokhttp3/y;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lokhttp3/y;->cancel()V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-03 21:42:56 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/p;->brE:Ljava/util/ArrayDeque;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayDeque;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lokhttp3/y;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lokhttp3/y;->cancel()V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|