mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-11-06 02:19:22 +08:00
432 lines
8.8 KiB
Smali
432 lines
8.8 KiB
Smali
|
.class public final Lb/r;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source ""
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.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<",
|
||
|
"Lb/C$a;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final f:Ljava/util/Deque;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Deque<",
|
||
|
"Lb/C$a;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final g:Ljava/util/Deque;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Deque<",
|
||
|
"Lb/C;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
const/16 v0, 0x40
|
||
|
|
||
|
iput v0, p0, Lb/r;->a:I
|
||
|
|
||
|
const/4 v0, 0x5
|
||
|
|
||
|
iput v0, p0, Lb/r;->b:I
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayDeque;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lb/r;->e:Ljava/util/Deque;
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayDeque;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
new-instance v0, Ljava/util/ArrayDeque;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lb/r;->g:Ljava/util/Deque;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.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
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {p1, p2}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_2
|
||
|
|
||
|
if-eqz p3, :cond_0
|
||
|
|
||
|
invoke-direct {p0}, Lb/r;->c()V
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p0}, Lb/r;->b()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iget-object p2, p0, Lb/r;->c:Ljava/lang/Runnable;
|
||
|
|
||
|
monitor-exit p0
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-nez p1, :cond_1
|
||
|
|
||
|
if-eqz p2, :cond_1
|
||
|
|
||
|
invoke-interface {p2}, Ljava/lang/Runnable;->run()V
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
|
||
|
:cond_2
|
||
|
: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
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method private c(Lb/C$a;)I
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lb/C$a;
|
||
|
|
||
|
invoke-virtual {v2}, Lb/C$a;->c()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {p1}, Lb/C$a;->c()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method private c()V
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Deque;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iget v1, p0, Lb/r;->a:I
|
||
|
|
||
|
if-lt v0, v1, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lb/r;->e:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Deque;->isEmpty()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v0, p0, Lb/r;->e:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:cond_2
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Lb/C$a;
|
||
|
|
||
|
invoke-direct {p0, v1}, Lb/r;->c(Lb/C$a;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
iget v3, p0, Lb/r;->b:I
|
||
|
|
||
|
if-ge v2, v3, :cond_3
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
||
|
|
||
|
iget-object v2, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v2, v1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
invoke-virtual {p0}, Lb/r;->a()Ljava/util/concurrent/ExecutorService;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {v2, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
|
||
|
|
||
|
:cond_3
|
||
|
iget-object v1, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Deque;->size()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
iget v2, p0, Lb/r;->a:I
|
||
|
|
||
|
if-lt v1, v2, :cond_2
|
||
|
|
||
|
:cond_4
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public declared-synchronized a()Ljava/util/concurrent/ExecutorService;
|
||
|
.locals 9
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lb/r;->d:Ljava/util/concurrent/ExecutorService;
|
||
|
|
||
|
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 v7, Ljava/util/concurrent/SynchronousQueue;
|
||
|
|
||
|
invoke-direct {v7}, Ljava/util/concurrent/SynchronousQueue;-><init>()V
|
||
|
|
||
|
const-string v1, "OkHttp Dispatcher"
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
invoke-static {v1, v8}, Lb/a/d;->a(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
|
||
|
|
||
|
iput-object v0, p0, Lb/r;->d:Ljava/util/concurrent/ExecutorService;
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lb/r;->d:Ljava/util/concurrent/ExecutorService;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method declared-synchronized a(Lb/C$a;)V
|
||
|
.locals 2
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Deque;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iget v1, p0, Lb/r;->a:I
|
||
|
|
||
|
if-ge v0, v1, :cond_0
|
||
|
|
||
|
invoke-direct {p0, p1}, Lb/r;->c(Lb/C$a;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iget v1, p0, Lb/r;->b:I
|
||
|
|
||
|
if-ge v0, v1, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
invoke-virtual {p0}, Lb/r;->a()Ljava/util/concurrent/ExecutorService;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lb/r;->e:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
:goto_0
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public declared-synchronized b()I
|
||
|
.locals 2
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Deque;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iget-object v1, p0, Lb/r;->g:Ljava/util/Deque;
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Deque;->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 b(Lb/C$a;)V
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Lb/r;->f:Ljava/util/Deque;
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
invoke-direct {p0, v0, p1, v1}, Lb/r;->a(Ljava/util/Deque;Ljava/lang/Object;Z)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|