a.smali
.class public Lcom/cleanmaster/ui/game/leftstone/a/a;
.super Ljava/lang/Object;
.source "GamePushAgent.java"
# interfaces
.implements Lcom/cm/plugincluster/monitor/interfaces/IMonitor;
# static fields
.field private static b:Lcom/cleanmaster/ui/game/leftstone/a/a;
# instance fields
.field private a:Lcom/cm/plugincluster/gamebox/GameBoxAgent;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 25
const/4 v0, 0x0
sput-object v0, Lcom/cleanmaster/ui/game/leftstone/a/a;->b:Lcom/cleanmaster/ui/game/leftstone/a/a;
return-void
.end method
.method private constructor <init>()V
.registers 1
.prologue
.line 22
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 23
return-void
.end method
.method public static declared-synchronized a()Lcom/cleanmaster/ui/game/leftstone/a/a;
.registers 2
.prologue
.line 28
const-class v1, Lcom/cleanmaster/ui/game/leftstone/a/a;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/cleanmaster/ui/game/leftstone/a/a;->b:Lcom/cleanmaster/ui/game/leftstone/a/a;
if-nez v0, :cond_e
.line 29
new-instance v0, Lcom/cleanmaster/ui/game/leftstone/a/a;
invoke-direct {v0}, Lcom/cleanmaster/ui/game/leftstone/a/a;-><init>()V
sput-object v0, Lcom/cleanmaster/ui/game/leftstone/a/a;->b:Lcom/cleanmaster/ui/game/leftstone/a/a;
.line 31
:cond_e
sget-object v0, Lcom/cleanmaster/ui/game/leftstone/a/a;->b:Lcom/cleanmaster/ui/game/leftstone/a/a;
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_12
monitor-exit v1
return-object v0
.line 28
:catchall_12
move-exception v0
monitor-exit v1
throw v0
.end method
# virtual methods
.method public b()V
.registers 3
.prologue
.line 35
const/16 v0, 0x12
const v1, 0x4fffffff # 8.5899341E9f
invoke-static {v0, p0, v1}, Lcom/cleanmaster/hpsharelib/utils/MonitorManagerUtil;->addMonitor(ILcom/cm/plugincluster/monitor/interfaces/IMonitor;I)Z
.line 37
return-void
.end method
.method public monitorNotify(ILjava/lang/Object;Ljava/lang/Object;)I
.registers 10
.prologue
const/4 v5, 0x0
.line 41
if-eqz p2, :cond_5
if-nez p3, :cond_6
.line 93
:cond_5
:goto_5
return v5
.line 43
:cond_6
instance-of v0, p2, Ljava/lang/String;
if-eqz v0, :cond_5
instance-of v0, p3, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;
if-eqz v0, :cond_5
.line 44
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 45
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_5
.line 47
sget-object v1, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageChannel;->CHANNEL_GAME:Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageChannel;
invoke-virtual {v1}, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageChannel;->value()I
move-result v1
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_5
.line 51
invoke-static {}, Lcom/keniu/security/update/push/n;->a()Lcom/keniu/security/update/push/b/b;
move-result-object v1
.line 52
if-eqz v1, :cond_5
.line 54
invoke-interface {v1, v0}, Lcom/keniu/security/update/push/b/b;->a(Ljava/lang/String;)Ljava/util/List;
move-result-object v0
.line 55
if-eqz v0, :cond_5
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
if-eqz v1, :cond_5
.line 57
const/4 v1, 0x0
.line 58
check-cast p3, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;
.line 59
sget-object v2, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;->ACTION_GAME_BOX_ICON_NEW:Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;
invoke-virtual {v2}, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;->value()I
move-result v2
invoke-virtual {p3}, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;->value()I
move-result v3
if-ne v2, v3, :cond_92
.line 60
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_4d
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_c4
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/keniu/security/update/push/b/d;
.line 61
invoke-virtual {v0}, Lcom/keniu/security/update/push/b/d;->c()I
move-result v3
if-lez v3, :cond_4d
invoke-virtual {v0}, Lcom/keniu/security/update/push/b/d;->c()I
move-result v3
sget-object v4, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;->ACTION_GAME_BOX_ICON_NEW:Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;
invoke-virtual {v4}, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;->value()I
move-result v4
if-ne v3, v4, :cond_4d
.line 66
:goto_6b
if-eqz v0, :cond_5
.line 69
invoke-virtual {v0}, Lcom/keniu/security/update/push/b/d;->i()Ljava/lang/String;
move-result-object v1
.line 70
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_5
.line 72
iget-object v2, p0, Lcom/cleanmaster/ui/game/leftstone/a/a;->a:Lcom/cm/plugincluster/gamebox/GameBoxAgent;
if-nez v2, :cond_81
.line 73
invoke-static {}, Lcom/cm/plugincluster/gamebox/GameBoxPluginDelegate;->fetchGameBoxAgentInstance()Lcom/cm/plugincluster/gamebox/GameBoxAgent;
move-result-object v2
iput-object v2, p0, Lcom/cleanmaster/ui/game/leftstone/a/a;->a:Lcom/cm/plugincluster/gamebox/GameBoxAgent;
.line 76
:cond_81
iget-object v2, p0, Lcom/cleanmaster/ui/game/leftstone/a/a;->a:Lcom/cm/plugincluster/gamebox/GameBoxAgent;
if-eqz v2, :cond_5
.line 77
iget-object v2, p0, Lcom/cleanmaster/ui/game/leftstone/a/a;->a:Lcom/cm/plugincluster/gamebox/GameBoxAgent;
sget-object v3, Lcom/keniu/security/update/c/a/a/b;->i:Ljava/lang/String;
invoke-virtual {v0, v3}, Lcom/keniu/security/update/push/b/d;->getValue(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-interface {v2, v1, v0}, Lcom/cm/plugincluster/gamebox/GameBoxAgent;->parseGameBoxInfos(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_5
.line 80
:cond_92
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_96
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_c2
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/keniu/security/update/push/b/d;
.line 81
invoke-virtual {v0}, Lcom/keniu/security/update/push/b/d;->c()I
move-result v3
if-lez v3, :cond_96
invoke-virtual {v0}, Lcom/keniu/security/update/push/b/d;->c()I
move-result v3
sget-object v4, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;->ACTION_GAME_BOX:Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;
invoke-virtual {v4}, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageAction;->value()I
move-result v4
if-ne v3, v4, :cond_96
.line 87
:goto_b4
if-eqz v0, :cond_5
.line 89
invoke-virtual {v0}, Lcom/keniu/security/update/push/b/d;->i()Ljava/lang/String;
move-result-object v0
.line 90
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_5
goto/16 :goto_5
:cond_c2
move-object v0, v1
goto :goto_b4
:cond_c4
move-object v0, v1
goto :goto_6b
.end method