agg.smali
.class public Ldxoptimizer/agg;
.super Ljava/lang/Object;
.source "DownloadPubApi.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Ldxoptimizer/agg$a;,
Ldxoptimizer/agg$b;
}
.end annotation
# static fields
.field private static a:Ljava/util/HashSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashSet",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 56
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
sput-object v0, Ldxoptimizer/agg;->a:Ljava/util/HashSet;
return-void
.end method
.method public static a(JJ)I
.registers 8
.prologue
const-wide/16 v2, 0x0
.line 166
const/4 v0, 0x0
.line 167
cmp-long v1, p0, v2
if-lez v1, :cond_c
.line 168
const-wide/16 v0, 0x64
mul-long/2addr v0, p2
div-long/2addr v0, p0
long-to-int v0, v0
.line 170
:cond_c
cmp-long v1, p2, v2
if-lez v1, :cond_13
if-nez v0, :cond_13
.line 171
const/4 v0, 0x1
.line 173
:cond_13
return v0
.end method
.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
.registers 4
.prologue
.line 313
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Ldxoptimizer/afz;->a(Landroid/content/Context;)Ldxoptimizer/yr;
move-result-object v0
.line 314
invoke-virtual {v0, p1, p2}, Ldxoptimizer/yr;->c(Ljava/lang/String;Ljava/lang/String;)Ldxoptimizer/yq;
move-result-object v0
.line 316
if-nez v0, :cond_10
const/4 v0, -0x1
:goto_f
return v0
:cond_10
iget v0, v0, Ldxoptimizer/yq;->n:I
goto :goto_f
.end method
.method public static a(Landroid/content/Context;JILdxoptimizer/afa;)V
.registers 8
.prologue
.line 109
const/4 v0, 0x0
.line 110
const/4 v1, 0x5
if-eq p3, v1, :cond_7
const/4 v1, -0x1
if-ne p3, v1, :cond_8
.line 112
:cond_7
const/4 v0, 0x1
.line 114
:cond_8
invoke-static {p0, p1, p2, v0, p4}, Ldxoptimizer/agg;->a(Landroid/content/Context;JZLdxoptimizer/afa;)V
.line 115
return-void
.end method
.method private static a(Landroid/content/Context;JLdxoptimizer/afa;)V
.registers 9
.prologue
const/4 v4, 0x0
.line 64
new-instance v0, Ldxoptimizer/cca;
invoke-direct {v0, p0}, Ldxoptimizer/cca;-><init>(Landroid/content/Context;)V
.line 65
const v1, 0x7f080509
invoke-virtual {v0, v1}, Ldxoptimizer/cca;->setTitle(I)V
.line 66
const v1, 0x7f0805c0
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
.line 67
invoke-static {p1, p2}, Ldxoptimizer/cfa;->a(J)Ljava/lang/String;
move-result-object v3
aput-object v3, v2, v4
.line 66
invoke-virtual {p0, v1, v2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ldxoptimizer/cca;->b(Ljava/lang/CharSequence;)V
.line 68
const v1, 0x7f080538
invoke-virtual {v0, v4, v1}, Ldxoptimizer/cca;->a(ZI)Landroid/widget/CheckBox;
move-result-object v1
.line 69
const v2, 0x7f08053f
new-instance v3, Ldxoptimizer/agg$1;
invoke-direct {v3, p0, v1, p3}, Ldxoptimizer/agg$1;-><init>(Landroid/content/Context;Landroid/widget/CheckBox;Ldxoptimizer/afa;)V
invoke-virtual {v0, v2, v3}, Ldxoptimizer/cca;->a(ILandroid/view/View$OnClickListener;)V
.line 76
const v1, 0x7f0804fc
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Ldxoptimizer/cca;->c(ILandroid/view/View$OnClickListener;)V
.line 77
invoke-virtual {v0}, Ldxoptimizer/cca;->show()V
.line 78
return-void
.end method
.method public static a(Landroid/content/Context;JZLdxoptimizer/afa;)V
.registers 8
.prologue
const/4 v2, 0x0
.line 132
invoke-static {p0}, Ldxoptimizer/cee;->b(Landroid/content/Context;)I
move-result v0
.line 133
const/4 v1, -0x1
if-ne v0, v1, :cond_f
.line 134
const v0, 0x7f080791
invoke-static {p0, v0, v2}, Ldxoptimizer/cgi;->a(Landroid/content/Context;II)Landroid/widget/Toast;
.line 145
:goto_e
return-void
.line 135
:cond_f
invoke-static {}, Ldxoptimizer/cey;->g()Z
move-result v1
if-nez v1, :cond_1c
.line 136
const v0, 0x7f080dfe
invoke-static {p0, v0, v2}, Ldxoptimizer/cgi;->a(Landroid/content/Context;II)Landroid/widget/Toast;
goto :goto_e
.line 138
:cond_1c
if-eqz p3, :cond_2b
const/4 v1, 0x4
if-ne v0, v1, :cond_2b
.line 139
invoke-static {p0}, Ldxoptimizer/agg;->a(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_2b
.line 140
invoke-static {p0, p1, p2, p4}, Ldxoptimizer/agg;->a(Landroid/content/Context;JLdxoptimizer/afa;)V
goto :goto_e
.line 142
:cond_2b
invoke-interface {p4}, Ldxoptimizer/afa;->a()V
goto :goto_e
.end method
.method public static a(Ldxoptimizer/yr;Ljava/lang/String;Ldxoptimizer/agg$a;)V
.registers 7
.prologue
.line 206
invoke-interface {p2}, Ldxoptimizer/agg$a;->getDownloadItems()Ljava/util/List;
move-result-object v0
.line 207
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_8
:goto_8
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2a
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ldxoptimizer/agg$b;
.line 208
invoke-interface {v0}, Ldxoptimizer/agg$b;->getDownloadState()I
move-result v2
.line 209
const/4 v3, 0x2
if-eq v2, v3, :cond_1e
const/4 v3, 0x1
if-ne v2, v3, :cond_8
.line 211
:cond_1e
invoke-interface {v0}, Ldxoptimizer/agg$b;->getPackageName()Ljava/lang/String;
move-result-object v2
.line 212
invoke-interface {v0}, Ldxoptimizer/agg$b;->getListener()Ldxoptimizer/yx;
move-result-object v0
.line 211
invoke-virtual {p0, p1, v2, v0}, Ldxoptimizer/yr;->a(Ljava/lang/String;Ljava/lang/String;Ldxoptimizer/yx;)V
goto :goto_8
.line 215
:cond_2a
return-void
.end method
.method public static varargs a(Ldxoptimizer/yr;Ljava/lang/String;ZZ[Ldxoptimizer/agg$a;)V
.registers 7
.prologue
.line 241
invoke-static {p1, p3}, Ldxoptimizer/agg;->b(Ljava/lang/String;Z)Z
move-result v0
if-eqz v0, :cond_13
.line 243
new-instance v0, Ldxoptimizer/agg$2;
invoke-direct {v0, p4, p0, p2}, Ldxoptimizer/agg$2;-><init>([Ldxoptimizer/agg$a;Ldxoptimizer/yr;Z)V
.line 253
new-instance v1, Ldxoptimizer/agg$3;
invoke-direct {v1, v0, p0, p1}, Ldxoptimizer/agg$3;-><init>(Landroid/os/Handler;Ldxoptimizer/yr;Ljava/lang/String;)V
.line 258
invoke-virtual {v1}, Ldxoptimizer/agg$3;->start()V
.line 260
:cond_13
return-void
.end method
.method public static varargs a(Ldxoptimizer/yr;Ljava/lang/String;Z[Ldxoptimizer/agg$a;)V
.registers 5
.prologue
.line 230
const/4 v0, 0x1
invoke-static {p0, p1, p2, v0, p3}, Ldxoptimizer/agg;->a(Ldxoptimizer/yr;Ljava/lang/String;ZZ[Ldxoptimizer/agg$a;)V
.line 231
return-void
.end method
.method public static varargs a(Ldxoptimizer/yr;Ljava/lang/String;[Ldxoptimizer/agg$a;)V
.registers 5
.prologue
.line 222
const/4 v0, 0x0
const/4 v1, 0x1
invoke-static {p0, p1, v0, v1, p2}, Ldxoptimizer/agg;->a(Ldxoptimizer/yr;Ljava/lang/String;ZZ[Ldxoptimizer/agg$a;)V
.line 223
return-void
.end method
.method static synthetic a(Ldxoptimizer/yr;Ljava/util/List;Ldxoptimizer/agg$a;Z)V
.registers 4
.prologue
.line 30
invoke-static {p0, p1, p2, p3}, Ldxoptimizer/agg;->b(Ldxoptimizer/yr;Ljava/util/List;Ldxoptimizer/agg$a;Z)V
return-void
.end method
.method public static a(Ljava/lang/String;Z)V
.registers 3
.prologue
.line 180
if-eqz p1, :cond_8
.line 181
sget-object v0, Ldxoptimizer/agg;->a:Ljava/util/HashSet;
invoke-virtual {v0, p0}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 185
:goto_7
return-void
.line 183
:cond_8
sget-object v0, Ldxoptimizer/agg;->a:Ljava/util/HashSet;
invoke-virtual {v0, p0}, Ljava/util/HashSet;->remove(Ljava/lang/Object;)Z
goto :goto_7
.end method
.method public static a(Landroid/content/Context;)Z
.registers 2
.prologue
.line 59
invoke-static {p0}, Ldxoptimizer/agc;->a(Landroid/content/Context;)Z
move-result v0
return v0
.end method
.method private static a(Ldxoptimizer/yq;)Z
.registers 3
.prologue
.line 308
invoke-virtual {p0}, Ldxoptimizer/yq;->a()Ljava/lang/String;
move-result-object v0
.line 309
new-instance v1, Ljava/io/File;
invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v1}, Ljava/io/File;->exists()Z
move-result v0
return v0
.end method
.method private static b(Ldxoptimizer/yr;Ljava/util/List;Ldxoptimizer/agg$a;Z)V
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ldxoptimizer/yr;",
"Ljava/util/List",
"<",
"Ldxoptimizer/yq;",
">;",
"Ldxoptimizer/agg$a;",
"Z)V"
}
.end annotation
.prologue
const/4 v10, 0x6
const/4 v3, 0x1
const/4 v2, 0x0
.line 264
.line 265
invoke-interface {p2}, Ldxoptimizer/agg$a;->getDownloadItems()Ljava/util/List;
move-result-object v0
.line 266
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v5
move v1, v2
:goto_c
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_94
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ldxoptimizer/agg$b;
.line 267
invoke-interface {v0}, Ldxoptimizer/agg$b;->getDownloadState()I
move-result v4
.line 268
if-nez p3, :cond_24
const/4 v6, 0x4
if-eq v4, v6, :cond_24
const/4 v6, 0x3
if-ne v4, v6, :cond_9c
.line 270
:cond_24
invoke-interface {v0}, Ldxoptimizer/agg$b;->getPackageName()Ljava/lang/String;
move-result-object v6
.line 271
const/4 v4, 0x0
.line 272
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v7
:cond_2d
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_9a
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ldxoptimizer/yq;
.line 273
iget-object v8, v1, Ldxoptimizer/yq;->b:Ljava/lang/String;
invoke-virtual {v8, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v8
if-eqz v8, :cond_2d
.line 278
:goto_41
if-nez v1, :cond_4d
.line 279
const/4 v1, 0x5
invoke-interface {v0, v1}, Ldxoptimizer/agg$b;->setDownloadState(I)V
.line 280
invoke-interface {v0, v2}, Ldxoptimizer/agg$b;->setDownloadProgress(I)V
:cond_4a
:goto_4a
move v0, v3
:goto_4b
move v1, v0
.line 301
goto :goto_c
.line 282
:cond_4d
iget v4, v1, Ldxoptimizer/yq;->n:I
if-eq v4, v10, :cond_7f
.line 283
iget v4, v1, Ldxoptimizer/yq;->n:I
invoke-interface {v0, v4}, Ldxoptimizer/agg$b;->setDownloadState(I)V
.line 291
:cond_56
:goto_56
iget-wide v6, v1, Ldxoptimizer/yq;->f:J
iget-wide v8, v1, Ldxoptimizer/yq;->o:J
invoke-static {v6, v7, v8, v9}, Ldxoptimizer/agg;->a(JJ)I
move-result v4
.line 292
invoke-interface {v0, v4}, Ldxoptimizer/agg$b;->setDownloadProgress(I)V
.line 293
iget v4, v1, Ldxoptimizer/yq;->n:I
const/4 v6, 0x2
if-eq v4, v6, :cond_6f
iget v4, v1, Ldxoptimizer/yq;->n:I
const/4 v6, 0x7
if-eq v4, v6, :cond_6f
iget v4, v1, Ldxoptimizer/yq;->n:I
if-ne v4, v3, :cond_4a
.line 296
:cond_6f
iget-object v4, v1, Ldxoptimizer/yq;->a:Ljava/lang/String;
iget-object v1, v1, Ldxoptimizer/yq;->b:Ljava/lang/String;
new-array v6, v3, [Ldxoptimizer/yx;
invoke-interface {v0}, Ldxoptimizer/agg$b;->getListener()Ldxoptimizer/yx;
move-result-object v0
aput-object v0, v6, v2
invoke-virtual {p0, v4, v1, v6}, Ldxoptimizer/yr;->a(Ljava/lang/String;Ljava/lang/String;[Ldxoptimizer/yx;)V
goto :goto_4a
.line 285
:cond_7f
invoke-static {v1}, Ldxoptimizer/agg;->a(Ldxoptimizer/yq;)Z
move-result v4
if-eqz v4, :cond_89
.line 286
invoke-interface {v0, v10}, Ldxoptimizer/agg$b;->setDownloadState(I)V
goto :goto_56
.line 287
:cond_89
invoke-static {v1}, Ldxoptimizer/agg;->a(Ldxoptimizer/yq;)Z
move-result v4
if-nez v4, :cond_56
.line 288
const/4 v4, -0x1
invoke-interface {v0, v4}, Ldxoptimizer/agg$b;->setDownloadState(I)V
goto :goto_56
.line 302
:cond_94
if-eqz v1, :cond_99
.line 303
invoke-interface {p2}, Ldxoptimizer/agg$a;->notifyDownloadStateChanged()V
.line 305
:cond_99
return-void
:cond_9a
move-object v1, v4
goto :goto_41
:cond_9c
move v0, v1
goto :goto_4b
.end method
.method public static b(Ljava/lang/String;Z)Z
.registers 4
.prologue
.line 194
sget-object v0, Ldxoptimizer/agg;->a:Ljava/util/HashSet;
invoke-virtual {v0, p0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
move-result v0
.line 195
if-eqz v0, :cond_f
if-eqz p1, :cond_f
.line 196
sget-object v1, Ldxoptimizer/agg;->a:Ljava/util/HashSet;
invoke-virtual {v1, p0}, Ljava/util/HashSet;->remove(Ljava/lang/Object;)Z
.line 198
:cond_f
return v0
.end method