apkfuckery/com.discord/smali/f/c/a/k1.smali

650 lines
15 KiB
Smali
Raw Normal View History

2020-05-11 19:22:21 +00:00
.class public Lf/c/a/k1;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "PackageHandler.java"
# interfaces
2020-05-11 19:22:21 +00:00
.implements Lf/c/a/v0;
2019-12-06 03:29:40 +00:00
# instance fields
2020-05-11 19:22:21 +00:00
.field public a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
.field public b:Lf/c/a/w0;
2019-12-06 03:29:40 +00:00
.field public c:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
2020-05-11 19:22:21 +00:00
"Lf/c/a/s0;",
2019-12-06 03:29:40 +00:00
">;"
}
.end annotation
.end field
.field public d:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
2020-05-11 19:22:21 +00:00
"Lf/c/a/s;",
2019-12-06 03:29:40 +00:00
">;"
}
.end annotation
.end field
.field public e:Ljava/util/concurrent/atomic/AtomicBoolean;
.field public f:Z
.field public g:Landroid/content/Context;
2020-05-11 19:22:21 +00:00
.field public h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
.field public i:Lf/c/a/n0;
2019-12-06 03:29:40 +00:00
# direct methods
2020-05-11 19:22:21 +00:00
.method public constructor <init>(Lf/c/a/s0;Landroid/content/Context;Z)V
2019-12-06 03:29:40 +00:00
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-05-11 19:22:21 +00:00
new-instance v0, Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
const-string v1, "PackageHandler"
const/4 v2, 0x0
2020-05-11 19:22:21 +00:00
invoke-direct {v0, v1, v2}, Lf/c/a/p0;-><init>(Ljava/lang/String;Z)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/k1;->a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-static {}, Lf/c/a/z;->a()Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
sget-object v0, Lf/c/a/z;->i:Lf/c/a/n0;
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_0
2020-05-11 19:22:21 +00:00
sget-object v0, Lf/c/a/n0;->d:Lf/c/a/n0;
2019-12-06 03:29:40 +00:00
:cond_0
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/k1;->i:Lf/c/a/n0;
2019-12-06 03:29:40 +00:00
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/k1;->c:Ljava/lang/ref/WeakReference;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iput-object p2, p0, Lf/c/a/k1;->g:Landroid/content/Context;
2019-12-06 03:29:40 +00:00
xor-int/lit8 p1, p3, 0x1
2020-05-11 19:22:21 +00:00
iput-boolean p1, p0, Lf/c/a/k1;->f:Z
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object p1, p0, Lf/c/a/k1;->a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
new-instance p2, Lf/c/a/k1$a;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-direct {p2, p0}, Lf/c/a/k1$a;-><init>(Lf/c/a/k1;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object p1, p1, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, p2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
return-void
.end method
# virtual methods
.method public final a()V
.locals 6
2020-05-11 19:22:21 +00:00
sget-object v0, Lf/c/a/z;->b:Lf/c/a/w0;
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_0
2020-05-11 19:22:21 +00:00
new-instance v0, Lf/c/a/n1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-direct {v0, p0}, Lf/c/a/n1;-><init>(Lf/c/a/v0;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_0
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/n1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, p0}, Lf/c/a/n1;->a(Lf/c/a/v0;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
sget-object v0, Lf/c/a/z;->b:Lf/c/a/w0;
2019-12-06 03:29:40 +00:00
:goto_0
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/k1;->b:Lf/c/a/w0;
2019-12-06 03:29:40 +00:00
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/k1;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
2019-12-06 03:29:40 +00:00
const-string v0, "Package queue"
const/4 v1, 0x1
const/4 v2, 0x0
:try_start_0
2020-05-11 19:22:21 +00:00
iget-object v3, p0, Lf/c/a/k1;->g:Landroid/content/Context;
2019-12-06 03:29:40 +00:00
const-string v4, "AdjustIoPackageQueue"
const-class v5, Ljava/util/List;
2020-05-11 19:22:21 +00:00
invoke-static {v3, v4, v0, v5}, Lf/c/a/a2;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
move-result-object v3
check-cast v3, Ljava/util/List;
2020-05-11 19:22:21 +00:00
iput-object v3, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception v3
2020-05-11 19:22:21 +00:00
iget-object v4, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
const/4 v5, 0x2
new-array v5, v5, [Ljava/lang/Object;
aput-object v0, v5, v2
invoke-virtual {v3}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v5, v1
2020-05-11 19:22:21 +00:00
check-cast v4, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v0, "Failed to read %s file (%s)"
2020-05-11 19:22:21 +00:00
invoke-virtual {v4, v0, v5}, Lf/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
:goto_1
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_1
2020-05-11 19:22:21 +00:00
iget-object v3, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v1, v1, [Ljava/lang/Object;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v1, v2
2020-05-11 19:22:21 +00:00
check-cast v3, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v0, "Package handler read %d packages"
2020-05-11 19:22:21 +00:00
invoke-virtual {v3, v0, v1}, Lf/c/a/b1;->a(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
goto :goto_2
:cond_1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
:goto_2
return-void
.end method
2020-05-11 19:22:21 +00:00
.method public a(Lf/c/a/o1;)V
2019-12-06 03:29:40 +00:00
.locals 2
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
new-instance v1, Lf/c/a/k1$c;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-direct {v1, p0}, Lf/c/a/k1$c;-><init>(Lf/c/a/k1;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v0, v0, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->c:Ljava/lang/ref/WeakReference;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/s0;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/g;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, p1}, Lf/c/a/g;->a(Lf/c/a/o1;)V
2019-12-06 03:29:40 +00:00
:cond_0
return-void
.end method
2020-05-11 19:22:21 +00:00
.method public a(Lf/c/a/o1;Lf/c/a/s;)V
2019-12-06 03:29:40 +00:00
.locals 7
const/4 v0, 0x1
2020-05-11 19:22:21 +00:00
iput-boolean v0, p1, Lf/c/a/o1;->e:Z
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v1, p0, Lf/c/a/k1;->c:Ljava/lang/ref/WeakReference;
2019-12-06 03:29:40 +00:00
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
2020-05-11 19:22:21 +00:00
check-cast v1, Lf/c/a/s0;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
2020-05-11 19:22:21 +00:00
check-cast v1, Lf/c/a/g;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {v1, p1}, Lf/c/a/g;->a(Lf/c/a/o1;)V
2019-12-06 03:29:40 +00:00
:cond_0
2020-05-11 19:22:21 +00:00
new-instance p1, Lf/c/a/k1$d;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-direct {p1, p0}, Lf/c/a/k1$d;-><init>(Lf/c/a/k1;)V
2019-12-06 03:29:40 +00:00
if-nez p2, :cond_1
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
return-void
:cond_1
2020-05-11 19:22:21 +00:00
invoke-virtual {p2}, Lf/c/a/s;->n()I
2019-12-06 03:29:40 +00:00
move-result p2
2020-05-11 19:22:21 +00:00
iget-object v1, p0, Lf/c/a/k1;->i:Lf/c/a/n0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-static {p2, v1}, Lf/c/a/a2;->a(ILf/c/a/n0;)J
2019-12-06 03:29:40 +00:00
move-result-wide v1
long-to-double v3, v1
const-wide v5, 0x408f400000000000L # 1000.0
div-double/2addr v3, v5
2020-05-11 19:22:21 +00:00
sget-object v5, Lf/c/a/a2;->a:Ljava/text/DecimalFormat;
2019-12-06 03:29:40 +00:00
invoke-virtual {v5, v3, v4}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v3
2020-05-11 19:22:21 +00:00
iget-object v4, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
const/4 v5, 0x2
new-array v5, v5, [Ljava/lang/Object;
const/4 v6, 0x0
aput-object v3, v5, v6
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
aput-object p2, v5, v0
2020-05-11 19:22:21 +00:00
check-cast v4, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string p2, "Waiting for %s seconds before retrying the %d time"
2020-05-11 19:22:21 +00:00
invoke-virtual {v4, p2, v5}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object p2, p0, Lf/c/a/k1;->a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
2020-05-11 19:22:21 +00:00
iget-object p2, p2, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
invoke-virtual {p2, p1, v1, v2, v0}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
return-void
.end method
2020-05-11 19:22:21 +00:00
.method public a(Lf/c/a/u1;)V
2019-12-06 03:29:40 +00:00
.locals 3
if-eqz p1, :cond_1
2020-05-11 19:22:21 +00:00
new-instance v0, Lf/c/a/u1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-direct {v0}, Lf/c/a/u1;-><init>()V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v1, p1, Lf/c/a/u1;->a:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
new-instance v2, Ljava/util/HashMap;
invoke-direct {v2, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
2020-05-11 19:22:21 +00:00
iput-object v2, v0, Lf/c/a/u1;->a:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
:cond_0
2020-05-11 19:22:21 +00:00
iget-object p1, p1, Lf/c/a/u1;->b:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_2
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1, p1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
2020-05-11 19:22:21 +00:00
iput-object v1, v0, Lf/c/a/u1;->b:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_1
const/4 v0, 0x0
:cond_2
:goto_0
2020-05-11 19:22:21 +00:00
iget-object p1, p0, Lf/c/a/k1;->a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
new-instance v1, Lf/c/a/k1$e;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-direct {v1, p0, v0}, Lf/c/a/k1$e;-><init>(Lf/c/a/k1;Lf/c/a/u1;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object p1, p1, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
return-void
.end method
.method public final b()V
.locals 5
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
2020-05-11 19:22:21 +00:00
iget-boolean v0, p0, Lf/c/a/k1;->f:Z
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
if-eqz v0, :cond_1
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v1, v1, [Ljava/lang/Object;
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v2, "Package handler is paused"
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, v2, v1}, Lf/c/a/b1;->a(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
return-void
:cond_1
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->e:Ljava/util/concurrent/atomic/AtomicBoolean;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z
move-result v0
if-eqz v0, :cond_2
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v1, v1, [Ljava/lang/Object;
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v2, "Package handler is already sending"
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, v2, v1}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
return-void
:cond_2
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/s;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v1, p0, Lf/c/a/k1;->b:Lf/c/a/w0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v3, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v3
sub-int/2addr v3, v2
2020-05-11 19:22:21 +00:00
check-cast v1, Lf/c/a/n1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v2, v1, Lf/c/a/n1;->a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
new-instance v4, Lf/c/a/m1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-direct {v4, v1, v0, v3}, Lf/c/a/m1;-><init>(Lf/c/a/n1;Lf/c/a/s;I)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v0, v2, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v4}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
return-void
.end method
2020-05-11 19:22:21 +00:00
.method public b(Lf/c/a/u1;)V
2019-12-06 03:29:40 +00:00
.locals 6
if-nez p1, :cond_0
return-void
:cond_0
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
new-array v2, v1, [Ljava/lang/Object;
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v3, "Updating package handler queue"
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, v3, v2}, Lf/c/a/b1;->a(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
new-array v3, v2, [Ljava/lang/Object;
2020-05-11 19:22:21 +00:00
iget-object v4, p1, Lf/c/a/u1;->a:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
aput-object v4, v3, v1
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v4, "Session callback parameters: %s"
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, v4, v3}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v2, v2, [Ljava/lang/Object;
2020-05-11 19:22:21 +00:00
iget-object v3, p1, Lf/c/a/u1;->b:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
aput-object v3, v2, v1
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v1, "Session partner parameters: %s"
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, v1, v2}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v0}, Ljava/util/List;->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_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
2020-05-11 19:22:21 +00:00
check-cast v1, Lf/c/a/s;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {v1}, Lf/c/a/s;->i()Ljava/util/Map;
2019-12-06 03:29:40 +00:00
move-result-object v2
2020-05-11 19:22:21 +00:00
iget-object v3, p1, Lf/c/a/u1;->a:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {v1}, Lf/c/a/s;->b()Ljava/util/Map;
2019-12-06 03:29:40 +00:00
move-result-object v4
const-string v5, "Callback"
2020-05-11 19:22:21 +00:00
invoke-static {v3, v4, v5}, Lf/c/a/a2;->a(Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;)Ljava/util/Map;
2019-12-06 03:29:40 +00:00
move-result-object v3
const-string v4, "callback_params"
2020-05-11 19:22:21 +00:00
invoke-static {v2, v4, v3}, Lf/c/a/j1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v3, p1, Lf/c/a/u1;->b:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {v1}, Lf/c/a/s;->j()Ljava/util/Map;
2019-12-06 03:29:40 +00:00
move-result-object v1
const-string v4, "Partner"
2020-05-11 19:22:21 +00:00
invoke-static {v3, v1, v4}, Lf/c/a/a2;->a(Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;)Ljava/util/Map;
2019-12-06 03:29:40 +00:00
move-result-object v1
const-string v3, "partner_params"
2020-05-11 19:22:21 +00:00
invoke-static {v2, v3, v1}, Lf/c/a/j1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_1
2020-05-11 19:22:21 +00:00
invoke-virtual {p0}, Lf/c/a/k1;->d()V
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public c()V
.locals 2
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
new-instance v1, Lf/c/a/k1$b;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-direct {v1, p0}, Lf/c/a/k1$b;-><init>(Lf/c/a/k1;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v0, v0, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
return-void
.end method
.method public final d()V
.locals 4
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v1, p0, Lf/c/a/k1;->g:Landroid/content/Context;
2019-12-06 03:29:40 +00:00
const-string v2, "AdjustIoPackageQueue"
const-string v3, "Package queue"
2020-05-11 19:22:21 +00:00
invoke-static {v0, v1, v2, v3}, Lf/c/a/a2;->a(Ljava/lang/Object;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/k1;->h:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
2020-05-11 19:22:21 +00:00
iget-object v2, p0, Lf/c/a/k1;->d:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x0
aput-object v2, v1, v3
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v2, "Package handler wrote %d packages"
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, v2, v1}, Lf/c/a/b1;->a(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
return-void
.end method