aqg.smali
.class public Ldxoptimizer/aqg;
.super Ljava/lang/Object;
.source "PreScanLocalGameMgr.java"
# interfaces
.implements Ldxoptimizer/aep$d;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Ldxoptimizer/aqg$a;
}
.end annotation
# static fields
.field private static volatile a:Ldxoptimizer/aqg;
# instance fields
.field private b:Landroid/content/Context;
.field private c:Ljava/lang/String;
# direct methods
.method private constructor <init>(Landroid/content/Context;)V
.registers 5
.prologue
.line 53
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 54
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
iput-object v0, p0, Ldxoptimizer/aqg;->b:Landroid/content/Context;
.line 55
new-instance v0, Ljava/io/File;
iget-object v1, p0, Ldxoptimizer/aqg;->b:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object v1
const-string v2, "game_icon"
invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 56
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v1
if-nez v1, :cond_1f
.line 57
invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z
.line 59
:cond_1f
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Ldxoptimizer/aqg;->c:Ljava/lang/String;
.line 60
return-void
.end method
.method static synthetic a(Ldxoptimizer/aqg;)Landroid/content/Context;
.registers 2
.prologue
.line 33
iget-object v0, p0, Ldxoptimizer/aqg;->b:Landroid/content/Context;
return-object v0
.end method
.method public static a(Landroid/content/Context;)Ldxoptimizer/aqg;
.registers 3
.prologue
.line 43
sget-object v0, Ldxoptimizer/aqg;->a:Ldxoptimizer/aqg;
if-nez v0, :cond_13
.line 44
const-class v1, Ldxoptimizer/aqg;
monitor-enter v1
.line 45
:try_start_7
sget-object v0, Ldxoptimizer/aqg;->a:Ldxoptimizer/aqg;
if-nez v0, :cond_12
.line 46
new-instance v0, Ldxoptimizer/aqg;
invoke-direct {v0, p0}, Ldxoptimizer/aqg;-><init>(Landroid/content/Context;)V
sput-object v0, Ldxoptimizer/aqg;->a:Ldxoptimizer/aqg;
.line 48
:cond_12
monitor-exit v1
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_16
.line 50
:cond_13
sget-object v0, Ldxoptimizer/aqg;->a:Ldxoptimizer/aqg;
return-object v0
.line 48
:catchall_16
move-exception v0
:try_start_17
monitor-exit v1
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw v0
.end method
.method static synthetic a(Ldxoptimizer/aqg;Landroid/content/Context;)V
.registers 2
.prologue
.line 33
invoke-direct {p0, p1}, Ldxoptimizer/aqg;->b(Landroid/content/Context;)V
return-void
.end method
.method private a(Ljava/lang/String;Z)V
.registers 10
.prologue
const/4 v3, 0x1
.line 168
const/4 v2, 0x0
.line 169
iget-object v0, p0, Ldxoptimizer/aqg;->b:Landroid/content/Context;
invoke-static {v0}, Ldxoptimizer/arg;->R(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
.line 170
const/4 v1, 0x0
.line 171
new-instance v4, Ldxoptimizer/cgr;
invoke-direct {v4}, Ldxoptimizer/cgr;-><init>()V
.line 173
if-eqz p2, :cond_76
.line 174
iget-object v5, p0, Ldxoptimizer/aqg;->b:Landroid/content/Context;
invoke-direct {p0, v5, p1}, Ldxoptimizer/aqg;->a(Landroid/content/Context;Ljava/lang/String;)Z
move-result v5
if-nez v5, :cond_25
move v0, v2
.line 221
:goto_19
if-eqz v0, :cond_24
.line 225
invoke-virtual {v4, v1}, Ldxoptimizer/cgr;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 226
iget-object v1, p0, Ldxoptimizer/aqg;->b:Landroid/content/Context;
invoke-static {v1, v0}, Ldxoptimizer/arg;->d(Landroid/content/Context;Ljava/lang/String;)V
.line 228
:cond_24
return-void
.line 177
:cond_25
:try_start_25
new-instance v5, Ldxoptimizer/aqg$2;
invoke-direct {v5, p0}, Ldxoptimizer/aqg$2;-><init>(Ldxoptimizer/aqg;)V
.line 178
invoke-virtual {v5}, Ldxoptimizer/aqg$2;->getType()Ljava/lang/reflect/Type;
move-result-object v5
.line 177
invoke-virtual {v4, v0, v5}, Ldxoptimizer/cgr;->a(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
:try_end_34
.catch Lcom/google/gson/JsonParseException; {:try_start_25 .. :try_end_34} :catch_63
.line 182
:goto_34
if-nez v0, :cond_b5
.line 183
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
move-object v1, v0
.line 186
:goto_3c
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v5
:cond_40
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_57
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ldxoptimizer/aqg$a;
.line 187
iget-object v6, v0, Ldxoptimizer/aqg$a;->a:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_40
.line 188
invoke-interface {v1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
.line 193
:cond_57
invoke-static {}, Ldxoptimizer/aep;->a()Ldxoptimizer/aep;
move-result-object v0
invoke-virtual {v0, p1}, Ldxoptimizer/aep;->b(Ljava/lang/String;)Ldxoptimizer/aeo;
move-result-object v0
.line 194
if-nez v0, :cond_66
move v0, v2
goto :goto_19
.line 179
:catch_63
move-exception v0
move-object v0, v1
goto :goto_34
.line 196
:cond_66
new-instance v2, Ldxoptimizer/aqg$a;
invoke-direct {v2, p0}, Ldxoptimizer/aqg$a;-><init>(Ldxoptimizer/aqg;)V
.line 197
invoke-virtual {v0}, Ldxoptimizer/aeo;->d()Ljava/lang/String;
move-result-object v0
iput-object v0, v2, Ldxoptimizer/aqg$a;->a:Ljava/lang/String;
.line 198
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
move v0, v3
.line 200
goto :goto_19
.line 201
:cond_76
invoke-virtual {v0, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v5
if-nez v5, :cond_7e
move v0, v2
goto :goto_19
.line 204
:cond_7e
:try_start_7e
new-instance v5, Ldxoptimizer/aqg$3;
invoke-direct {v5, p0}, Ldxoptimizer/aqg$3;-><init>(Ldxoptimizer/aqg;)V
invoke-virtual {v5}, Ldxoptimizer/aqg$3;->getType()Ljava/lang/reflect/Type;
move-result-object v5
invoke-virtual {v4, v0, v5}, Ldxoptimizer/cgr;->a(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
:try_end_8d
.catch Lcom/google/gson/JsonParseException; {:try_start_7e .. :try_end_8d} :catch_b0
move-object v1, v0
.line 209
:goto_8e
if-nez v1, :cond_92
move v0, v2
goto :goto_19
.line 211
:cond_92
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v5
:cond_96
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_b2
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ldxoptimizer/aqg$a;
.line 212
iget-object v6, v0, Ldxoptimizer/aqg$a;->a:Ljava/lang/String;
invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_96
.line 213
invoke-interface {v1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
move v0, v3
.line 215
goto/16 :goto_19
.line 205
:catch_b0
move-exception v0
goto :goto_8e
:cond_b2
move v0, v2
goto/16 :goto_19
:cond_b5
move-object v1, v0
goto :goto_3c
.end method
.method private a(Ljava/util/ArrayList;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList",
"<",
"Ldxoptimizer/aeo;",
">;)V"
}
.end annotation
.prologue
.line 137
new-instance v1, Ldxoptimizer/cgr;
invoke-direct {v1}, Ldxoptimizer/cgr;-><init>()V
.line 138
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
.line 139
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v3
:goto_e
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_29
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ldxoptimizer/aeo;
.line 140
new-instance v4, Ldxoptimizer/aqg$a;
invoke-direct {v4, p0}, Ldxoptimizer/aqg$a;-><init>(Ldxoptimizer/aqg;)V
.line 141
invoke-virtual {v0}, Ldxoptimizer/aeo;->d()Ljava/lang/String;
move-result-object v0
iput-object v0, v4, Ldxoptimizer/aqg$a;->a:Ljava/lang/String;
.line 142
invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_e
.line 145
:cond_29
invoke-virtual {v1, v2}, Ldxoptimizer/cgr;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 146
iget-object v1, p0, Ldxoptimizer/aqg;->b:Landroid/content/Context;
invoke-static {v1, v0}, Ldxoptimizer/arg;->d(Landroid/content/Context;Ljava/lang/String;)V
.line 147
return-void
.end method
.method private a(Landroid/content/Context;Ljava/lang/String;)Z
.registers 6
.prologue
.line 121
const/4 v1, 0x0
.line 122
invoke-static {p1}, Ldxoptimizer/aqe;->b(Landroid/content/Context;)Ljava/util/HashSet;
move-result-object v0
.line 123
invoke-virtual {v0}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_9
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1d
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 124
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_9
.line 125
const/4 v0, 0x1
.line 130
:goto_1c
return v0
:cond_1d
move v0, v1
goto :goto_1c
.end method
.method static synthetic b()Ldxoptimizer/aqg;
.registers 1
.prologue
.line 33
sget-object v0, Ldxoptimizer/aqg;->a:Ldxoptimizer/aqg;
return-object v0
.end method
.method private b(Landroid/content/Context;)V
.registers 9
.prologue
const/4 v1, 0x0
.line 94
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
.line 96
new-instance v0, Ldxoptimizer/aep$b;
invoke-direct {v0}, Ldxoptimizer/aep$b;-><init>()V
.line 97
iput-boolean v1, v0, Ldxoptimizer/aep$b;->d:Z
.line 98
iput-boolean v1, v0, Ldxoptimizer/aep$b;->c:Z
.line 99
invoke-static {}, Ldxoptimizer/aep;->a()Ldxoptimizer/aep;
move-result-object v1
invoke-virtual {v1, v0}, Ldxoptimizer/aep;->a(Ldxoptimizer/aep$b;)Ljava/util/ArrayList;
move-result-object v0
.line 101
invoke-static {p1}, Ldxoptimizer/aqe;->b(Landroid/content/Context;)Ljava/util/HashSet;
move-result-object v3
.line 103
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v4
:cond_1f
:goto_1f
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_51
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ldxoptimizer/aeo;
.line 104
if-eqz v0, :cond_1f
.line 105
invoke-virtual {v0}, Ldxoptimizer/aeo;->d()Ljava/lang/String;
move-result-object v5
.line 106
invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_1f
.line 107
invoke-virtual {v3}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;
move-result-object v6
:cond_3b
invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1f
invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
.line 108
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3b
.line 109
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_1f
.line 117
:cond_51
invoke-direct {p0, v2}, Ldxoptimizer/aqg;->a(Ljava/util/ArrayList;)V
.line 118
return-void
.end method
# virtual methods
.method public a()V
.registers 3
.prologue
.line 63
invoke-static {}, Ldxoptimizer/cbn;->a()Ldxoptimizer/cbn;
move-result-object v0
new-instance v1, Ldxoptimizer/aqg$1;
invoke-direct {v1, p0}, Ldxoptimizer/aqg$1;-><init>(Ldxoptimizer/aqg;)V
invoke-virtual {v0, v1}, Ldxoptimizer/cbn;->b(Ljava/lang/Runnable;)V
.line 91
return-void
.end method
.method public onChanged(Ldxoptimizer/aep$c;)V
.registers 5
.prologue
.line 151
instance-of v0, p1, Ldxoptimizer/aep$a;
if-eqz v0, :cond_f
move-object v0, p1
.line 152
check-cast v0, Ldxoptimizer/aep$a;
iget-object v0, v0, Ldxoptimizer/aep$a;->a:Ljava/lang/String;
.line 153
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
move-result v1
if-eqz v1, :cond_10
.line 162
:cond_f
:goto_f
return-void
.line 155
:cond_10
iget v1, p1, Ldxoptimizer/aep$c;->c:I
const/4 v2, 0x3
if-ne v1, v2, :cond_1a
.line 156
const/4 v1, 0x0
invoke-direct {p0, v0, v1}, Ldxoptimizer/aqg;->a(Ljava/lang/String;Z)V
goto :goto_f
.line 157
:cond_1a
iget v1, p1, Ldxoptimizer/aep$c;->c:I
const/4 v2, 0x2
if-ne v1, v2, :cond_f
.line 158
const/4 v1, 0x1
invoke-direct {p0, v0, v1}, Ldxoptimizer/aqg;->a(Ljava/lang/String;Z)V
goto :goto_f
.end method