XploitSPY/server/app/factory/decompiled/smali/c/r.smali

432 lines
8.8 KiB
Smali
Raw Normal View History

2020-03-24 03:54:23 +08:00
.class public final Lc/r;
2020-01-11 23:35:37 +08:00
.super Ljava/lang/Object;
.source ""
# instance fields
2020-03-24 03:54:23 +08:00
.field private a:I
.field private b:I
.field private c:Ljava/lang/Runnable;
.field private d:Ljava/util/concurrent/ExecutorService;
.field private final e:Ljava/util/Deque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Deque<",
"Lc/C$a;",
">;"
}
.end annotation
.end field
.field private final f:Ljava/util/Deque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Deque<",
"Lc/C$a;",
">;"
}
.end annotation
.end field
.field private final g:Ljava/util/Deque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Deque<",
"Lc/C;",
">;"
}
.end annotation
.end field
2020-01-11 23:35:37 +08:00
# direct methods
2020-03-24 03:54:23 +08:00
.method public constructor <init>()V
2020-01-11 23:35:37 +08:00
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-03-24 03:54:23 +08:00
const/16 v0, 0x40
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput v0, p0, Lc/r;->a:I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const/4 v0, 0x5
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput v0, p0, Lc/r;->b:I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
new-instance v0, Ljava/util/ArrayDeque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput-object v0, p0, Lc/r;->e:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
new-instance v0, Ljava/util/ArrayDeque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput-object v0, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
new-instance v0, Ljava/util/ArrayDeque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput-object v0, p0, Lc/r;->g:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
return-void
.end method
2020-03-24 03:54:23 +08:00
.method private a(Ljava/util/Deque;Ljava/lang/Object;Z)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Deque<",
"TT;>;TT;Z)V"
}
.end annotation
monitor-enter p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:try_start_0
invoke-interface {p1, p2}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result p1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz p1, :cond_2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz p3, :cond_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p0}, Lc/r;->c()V
2020-01-11 23:35:37 +08:00
:cond_0
2020-03-24 03:54:23 +08:00
invoke-virtual {p0}, Lc/r;->b()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result p1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object p2, p0, Lc/r;->c:Ljava/lang/Runnable;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-nez p1, :cond_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz p2, :cond_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {p2}, Ljava/lang/Runnable;->run()V
2020-01-11 23:35:37 +08:00
:cond_1
2020-03-24 03:54:23 +08:00
return-void
2020-01-11 23:35:37 +08:00
:cond_2
2020-03-24 03:54:23 +08:00
:try_start_1
new-instance p1, Ljava/lang/AssertionError;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-string p2, "Call wasn\'t in-flight!"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p1, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
2020-01-11 23:35:37 +08:00
throw p1
2020-03-24 03:54:23 +08:00
:catchall_0
move-exception p1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2020-01-11 23:35:37 +08:00
throw p1
.end method
2020-03-24 03:54:23 +08:00
.method private c(Lc/C$a;)I
.locals 4
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
2020-01-11 23:35:37 +08:00
move-result-object v0
2020-03-24 03:54:23 +08:00
const/4 v1, 0x0
2020-01-11 23:35:37 +08:00
:cond_0
2020-03-24 03:54:23 +08:00
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v2, :cond_1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
check-cast v2, Lc/C$a;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {v2}, Lc/C$a;->c()Ljava/lang/String;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {p1}, Lc/C$a;->c()Ljava/lang/String;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v3
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v2, :cond_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
add-int/lit8 v1, v1, 0x1
2020-01-11 23:35:37 +08:00
goto :goto_0
:cond_1
2020-03-24 03:54:23 +08:00
return v1
.end method
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
.method private c()V
.locals 4
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Deque;->size()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget v1, p0, Lc/r;->a:I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-lt v0, v1, :cond_0
2020-01-11 23:35:37 +08:00
return-void
:cond_0
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/r;->e:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Deque;->isEmpty()Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v0, :cond_1
2020-01-11 23:35:37 +08:00
return-void
2020-03-24 03:54:23 +08:00
:cond_1
iget-object v0, p0, Lc/r;->e:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
2020-01-11 23:35:37 +08:00
move-result-object v0
2020-03-24 03:54:23 +08:00
:cond_2
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-eqz v1, :cond_4
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
check-cast v1, Lc/C$a;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p0, v1}, Lc/r;->c(Lc/C$a;)I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget v3, p0, Lc/r;->b:I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-ge v2, v3, :cond_3
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v2, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v2, v1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {p0}, Lc/r;->a()Ljava/util/concurrent/ExecutorService;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v2, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_3
iget-object v1, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v1}, Ljava/util/Deque;->size()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget v2, p0, Lc/r;->a:I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-lt v1, v2, :cond_2
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_4
return-void
2020-01-11 23:35:37 +08:00
.end method
2020-03-24 03:54:23 +08:00
# virtual methods
.method public declared-synchronized a()Ljava/util/concurrent/ExecutorService;
.locals 9
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
monitor-enter p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:try_start_0
iget-object v0, p0, Lc/r;->d:Ljava/util/concurrent/ExecutorService;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-nez v0, :cond_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
new-instance v0, Ljava/util/concurrent/ThreadPoolExecutor;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const/4 v2, 0x0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const v3, 0x7fffffff
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-wide/16 v4, 0x3c
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
new-instance v7, Ljava/util/concurrent/SynchronousQueue;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {v7}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-string v1, "OkHttp Dispatcher"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const/4 v8, 0x0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-static {v1, v8}, Lc/a/d;->a(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object v8
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-object v1, v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iput-object v0, p0, Lc/r;->d:Ljava/util/concurrent/ExecutorService;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:cond_0
iget-object v0, p0, Lc/r;->d:Ljava/util/concurrent/ExecutorService;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
monitor-exit p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return-object v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:catchall_0
move-exception v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
monitor-exit p0
2020-01-11 23:35:37 +08:00
throw v0
.end method
2020-03-24 03:54:23 +08:00
.method declared-synchronized a(Lc/C$a;)V
2020-01-11 23:35:37 +08:00
.locals 2
2020-03-24 03:54:23 +08:00
monitor-enter p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:try_start_0
iget-object v0, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Deque;->size()I
2020-01-11 23:35:37 +08:00
move-result v0
2020-03-24 03:54:23 +08:00
iget v1, p0, Lc/r;->a:I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-ge v0, v1, :cond_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p0, p1}, Lc/r;->c(Lc/C$a;)I
2020-01-11 23:35:37 +08:00
move-result v0
2020-03-24 03:54:23 +08:00
iget v1, p0, Lc/r;->b:I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
if-ge v0, v1, :cond_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0, p1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {p0}, Lc/r;->a()Ljava/util/concurrent/ExecutorService;
2020-01-11 23:35:37 +08:00
move-result-object v0
2020-03-24 03:54:23 +08:00
invoke-interface {v0, p1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
goto :goto_0
2020-01-11 23:35:37 +08:00
:cond_0
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/r;->e:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0, p1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
2020-01-11 23:35:37 +08:00
:try_end_0
2020-03-24 03:54:23 +08:00
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-01-11 23:35:37 +08:00
:goto_0
2020-03-24 03:54:23 +08:00
monitor-exit p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return-void
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:catchall_0
move-exception p1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
monitor-exit p0
2020-01-11 23:35:37 +08:00
throw p1
.end method
2020-03-24 03:54:23 +08:00
.method public declared-synchronized b()I
2020-01-11 23:35:37 +08:00
.locals 2
2020-03-24 03:54:23 +08:00
monitor-enter p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:try_start_0
iget-object v0, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v0}, Ljava/util/Deque;->size()I
2020-01-11 23:35:37 +08:00
move-result v0
2020-03-24 03:54:23 +08:00
iget-object v1, p0, Lc/r;->g:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-interface {v1}, Ljava/util/Deque;->size()I
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
add-int/2addr v0, v1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
monitor-exit p0
2020-01-11 23:35:37 +08:00
return v0
2020-03-24 03:54:23 +08:00
:catchall_0
move-exception v0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
monitor-exit p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
throw v0
2020-01-11 23:35:37 +08:00
.end method
2020-03-24 03:54:23 +08:00
.method b(Lc/C$a;)V
2020-01-11 23:35:37 +08:00
.locals 2
2020-03-24 03:54:23 +08:00
iget-object v0, p0, Lc/r;->f:Ljava/util/Deque;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const/4 v1, 0x1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {p0, v0, p1, v1}, Lc/r;->a(Ljava/util/Deque;Ljava/lang/Object;Z)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return-void
2020-01-11 23:35:37 +08:00
.end method