aw.smali
.class public Lcom/cleanmaster/gameboost/aw;
.super Ljava/lang/Object;
.source "GameBoostPresenter.java"
# interfaces
.implements Lcom/cleanmaster/gameboost/IPresenter;
# instance fields
.field private a:Landroid/content/Context;
.field private b:Lcom/cleanmaster/gameboost/ui/IGameBoostView;
.field private c:Z
.field private final d:Ljava/lang/String;
.field private e:Z
.field private f:Ljava/lang/String;
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.registers 6
.prologue
const/4 v2, 0x1
const/4 v1, 0x0
.line 52
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 46
iput-boolean v2, p0, Lcom/cleanmaster/gameboost/aw;->c:Z
.line 49
iput-boolean v1, p0, Lcom/cleanmaster/gameboost/aw;->e:Z
.line 72
const-string v0, "GameBoostPresenter"
iput-object v0, p0, Lcom/cleanmaster/gameboost/aw;->f:Ljava/lang/String;
.line 53
iput-object p1, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
.line 54
check-cast p1, Lcom/cleanmaster/gameboost/ui/IGameBoostView;
iput-object p1, p0, Lcom/cleanmaster/gameboost/aw;->b:Lcom/cleanmaster/gameboost/ui/IGameBoostView;
.line 55
iput-object p2, p0, Lcom/cleanmaster/gameboost/aw;->d:Ljava/lang/String;
.line 57
const/16 v0, 0x13
invoke-static {v0}, Lcom/cm/c/b;->a(I)I
move-result v0
.line 58
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
.line 59
if-eqz v0, :cond_25
.line 60
iput-boolean v2, p0, Lcom/cleanmaster/gameboost/aw;->e:Z
.line 62
:cond_25
iget-boolean v0, p0, Lcom/cleanmaster/gameboost/aw;->e:Z
if-eqz v0, :cond_2e
.line 63
const-string v0, "108525"
invoke-static {v0}, Lcom/cleanmaster/gameboost/util/RewardVideoUtil;->a(Ljava/lang/String;)V
.line 65
:cond_2e
return-void
.end method
.method static synthetic a(Lcom/cleanmaster/gameboost/aw;)Lcom/cleanmaster/gameboost/ui/IGameBoostView;
.registers 2
.prologue
.line 40
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->b:Lcom/cleanmaster/gameboost/ui/IGameBoostView;
return-object v0
.end method
.method static synthetic a(Lcom/cleanmaster/gameboost/aw;Ljava/lang/String;)V
.registers 2
.prologue
.line 40
invoke-direct {p0, p1}, Lcom/cleanmaster/gameboost/aw;->a(Ljava/lang/String;)V
return-void
.end method
.method private a(Ljava/lang/String;)V
.registers 7
.prologue
.line 310
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 311
iget-object v2, p0, Lcom/cleanmaster/gameboost/aw;->b:Lcom/cleanmaster/gameboost/ui/IGameBoostView;
const/4 v3, 0x2
invoke-interface {v2, v3}, Lcom/cleanmaster/gameboost/ui/IGameBoostView;->updateViewByAnimator(I)V
.line 312
invoke-static {}, Lcom/cleanmaster/gameboost/GameBoostManager;->a()Lcom/cleanmaster/gameboost/GameBoostManager;
move-result-object v2
iget-object v3, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
new-instance v4, Lcom/cleanmaster/gameboost/be;
invoke-direct {v4, p0, v0, v1, p1}, Lcom/cleanmaster/gameboost/be;-><init>(Lcom/cleanmaster/gameboost/aw;JLjava/lang/String;)V
invoke-virtual {v2, v3, p1, v4}, Lcom/cleanmaster/gameboost/GameBoostManager;->a(Landroid/content/Context;Ljava/lang/String;Lcom/cleanmaster/gameboost/GameBoostManager$Callback;)V
.line 346
return-void
.end method
.method public static a()Z
.registers 4
.prologue
.line 306
const/16 v0, 0xe
const-string v1, "vip_function_entrance"
const-string v2, "open"
const/4 v3, 0x0
invoke-static {v0, v1, v2, v3}, Lcom/cleanmaster/hpsharelib/recommendapps/CloudConfigDataGetter;->getBooleanValue(ILjava/lang/String;Ljava/lang/String;Z)Z
move-result v0
return v0
.end method
.method static synthetic b(Lcom/cleanmaster/gameboost/aw;)Ljava/lang/String;
.registers 2
.prologue
.line 40
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->f:Ljava/lang/String;
return-object v0
.end method
.method static synthetic b(Lcom/cleanmaster/gameboost/aw;Ljava/lang/String;)V
.registers 2
.prologue
.line 40
invoke-direct {p0, p1}, Lcom/cleanmaster/gameboost/aw;->b(Ljava/lang/String;)V
return-void
.end method
.method private b(Ljava/lang/String;)V
.registers 7
.prologue
.line 349
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 350
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 351
iget-object v1, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 352
iget-object v1, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
.line 354
const/4 v2, 0x0
:try_start_18
invoke-virtual {v1, p1, v2}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object v2
invoke-virtual {v2, v1}, Landroid/content/pm/ApplicationInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;
move-result-object v1
invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object v1
.line 355
invoke-static {}, Lcom/cleanmaster/gameboost/GameBoostManager;->a()Lcom/cleanmaster/gameboost/GameBoostManager;
move-result-object v2
iget-object v3, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
new-instance v4, Lcom/cleanmaster/gameboost/bg;
invoke-direct {v4, p0, p1}, Lcom/cleanmaster/gameboost/bg;-><init>(Lcom/cleanmaster/gameboost/aw;Ljava/lang/String;)V
invoke-virtual {v2, v3, v1, v0, v4}, Lcom/cleanmaster/gameboost/GameBoostManager;->a(Landroid/content/Context;Ljava/lang/String;Ljava/util/List;Lcom/cleanmaster/gameboost/ILocalVpnConnectCallback;)V
:try_end_32
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_18 .. :try_end_32} :catch_33
.line 393
:goto_32
return-void
.line 390
:catch_33
move-exception v0
.line 391
invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V
goto :goto_32
.end method
.method static synthetic c(Lcom/cleanmaster/gameboost/aw;)Landroid/content/Context;
.registers 2
.prologue
.line 40
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
return-object v0
.end method
.method static synthetic c(Lcom/cleanmaster/gameboost/aw;Ljava/lang/String;)V
.registers 2
.prologue
.line 40
invoke-direct {p0, p1}, Lcom/cleanmaster/gameboost/aw;->c(Ljava/lang/String;)V
return-void
.end method
.method private c(Ljava/lang/String;)V
.registers 6
.prologue
.line 396
new-instance v0, Lcom/cleanmaster/gameboost/bj;
invoke-direct {v0, p0, p1}, Lcom/cleanmaster/gameboost/bj;-><init>(Lcom/cleanmaster/gameboost/aw;Ljava/lang/String;)V
const-wide/16 v2, 0x7d0
invoke-static {v0, v2, v3}, Lcom/cleanmaster/gameboost/util/BackgroundThread;->a(Ljava/lang/Runnable;J)V
.line 412
return-void
.end method
# virtual methods
.method public checkBoostByLogic()Z
.registers 3
.prologue
const/4 v0, 0x1
.line 77
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/aw;->isVip()Z
move-result v1
if-eqz v1, :cond_8
.line 85
:cond_7
:goto_7
return v0
.line 81
:cond_8
iget-object v1, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-static {v1}, Lcom/cleanmaster/gameboost/GameBoostManager;->c(Landroid/content/Context;)Z
move-result v1
if-nez v1, :cond_7
.line 85
const/4 v0, 0x0
goto :goto_7
.end method
.method public checkVipByLogic()V
.registers 3
.prologue
.line 180
invoke-static {}, Lcom/cm/plugincluster/vipinterface/VipSdkDelegate;->getVipSdk()Lcom/cm/plugincluster/vipinterface/IVipSdk;
move-result-object v0
invoke-interface {v0}, Lcom/cm/plugincluster/vipinterface/IVipSdk;->getVipManager()Lcom/cm/plugincluster/vipinterface/vip/ICmVipManager;
move-result-object v0
new-instance v1, Lcom/cleanmaster/gameboost/az;
invoke-direct {v1, p0}, Lcom/cleanmaster/gameboost/az;-><init>(Lcom/cleanmaster/gameboost/aw;)V
invoke-interface {v0, v1}, Lcom/cm/plugincluster/vipinterface/vip/ICmVipManager;->isVip(Lcom/cm/plugincluster/vipinterface/vip/ICmVipStateCallBack;)V
.line 198
return-void
.end method
.method public getGamePackages()Ljava/util/List;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
.line 69
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/cleanmaster/gameboost/a/c;->b(Landroid/content/Context;)Ljava/util/ArrayList;
move-result-object v0
return-object v0
.end method
.method public isActive()Z
.registers 2
.prologue
.line 259
iget-boolean v0, p0, Lcom/cleanmaster/gameboost/aw;->c:Z
return v0
.end method
.method public isVip()Z
.registers 5
.prologue
const/4 v0, 0x1
.line 126
invoke-static {}, Lcom/cm/plugincluster/vipinterface/VipSdkDelegate;->getVipSdk()Lcom/cm/plugincluster/vipinterface/IVipSdk;
move-result-object v1
invoke-interface {v1}, Lcom/cm/plugincluster/vipinterface/IVipSdk;->getVipManager()Lcom/cm/plugincluster/vipinterface/vip/ICmVipManager;
move-result-object v1
new-instance v2, Lcom/cleanmaster/gameboost/ay;
invoke-direct {v2, p0}, Lcom/cleanmaster/gameboost/ay;-><init>(Lcom/cleanmaster/gameboost/aw;)V
invoke-interface {v1, v2}, Lcom/cm/plugincluster/vipinterface/vip/ICmVipManager;->isVip(Lcom/cm/plugincluster/vipinterface/vip/ICmVipStateCallBack;)V
.line 151
invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v1
const-string v2, "get_vip_stats"
const/4 v3, 0x2
invoke-virtual {v1, v2, v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getIntValue(Ljava/lang/String;I)I
move-result v1
.line 152
if-ne v1, v0, :cond_1f
.line 155
:goto_1e
return v0
:cond_1f
const/4 v0, 0x0
goto :goto_1e
.end method
.method public onDestroy()V
.registers 2
.prologue
.line 254
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cleanmaster/gameboost/aw;->c:Z
.line 255
return-void
.end method
.method public stopBoost()V
.registers 4
.prologue
.line 224
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/cleanmaster/gameboost/a/c;->f(Landroid/content/Context;)V
.line 225
invoke-static {}, Lcom/cleanmaster/gameboost/GameBoostManager;->a()Lcom/cleanmaster/gameboost/GameBoostManager;
move-result-object v0
iget-object v1, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
new-instance v2, Lcom/cleanmaster/gameboost/bb;
invoke-direct {v2, p0}, Lcom/cleanmaster/gameboost/bb;-><init>(Lcom/cleanmaster/gameboost/aw;)V
invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/gameboost/GameBoostManager;->a(Landroid/content/Context;Lcom/cleanmaster/gameboost/ILocalVpnConnectCallback;)V
.line 250
return-void
.end method
.method public toBoost(Ljava/lang/String;)V
.registers 10
.prologue
const/16 v7, 0xc8
const/16 v6, 0x64
const/4 v5, 0x1
const/4 v4, 0x2
const/4 v3, 0x0
.line 271
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->b:Lcom/cleanmaster/gameboost/ui/IGameBoostView;
invoke-interface {v0}, Lcom/cleanmaster/gameboost/ui/IGameBoostView;->checkBoostClick()Z
move-result v0
if-nez v0, :cond_1b
.line 272
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
const-string v1, "\u8bf7\u9009\u62e9\u6e38\u620f"
invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
.line 299
:goto_1a
return-void
.line 276
:cond_1b
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/cleanmaster/gameboost/util/k;->a(Landroid/content/Context;)I
move-result v0
const/4 v1, -0x1
if-ne v0, v1, :cond_30
.line 277
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
const-string v1, "\u52a0\u901f\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u662f\u5426\u6b63\u5e38"
invoke-static {v0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
goto :goto_1a
.line 281
:cond_30
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/cleanmaster/gameboost/localVpn/d;->a(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_42
.line 282
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
check-cast v0, Landroid/app/Activity;
const/16 v1, 0x214a
invoke-static {v0, v1}, Lcom/cleanmaster/gameboost/localVpn/d;->a(Landroid/app/Activity;I)V
goto :goto_1a
.line 286
:cond_42
invoke-virtual {p0}, Lcom/cleanmaster/gameboost/aw;->checkBoostByLogic()Z
move-result v0
if-nez v0, :cond_7f
.line 287
invoke-static {v4, v5, v3}, Lcom/cleanmaster/gameboost/b/h;->a(BBB)V
.line 288
invoke-static {}, Lcom/cleanmaster/gameboost/aw;->a()Z
move-result v0
if-eqz v0, :cond_77
.line 289
const v0, 0x19800e
const/4 v1, 0x4
new-array v1, v1, [Ljava/lang/Object;
iget-object v2, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
aput-object v2, v1, v3
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v1, v5
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v1, v4
const/4 v2, 0x3
iget-object v3, p0, Lcom/cleanmaster/gameboost/aw;->d:Ljava/lang/String;
aput-object v3, v1, v2
invoke-static {v0, v1}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;
.line 290
const-string v0, "\u6e38\u620f\u52a0\u901f"
iget-object v1, p0, Lcom/cleanmaster/gameboost/aw;->d:Ljava/lang/String;
invoke-static {v6, v7, v0, v4, v1}, Lcom/cleanmaster/gameboost/b/b;->a(SSLjava/lang/String;BLjava/lang/String;)V
goto :goto_1a
.line 292
:cond_77
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->b:Lcom/cleanmaster/gameboost/ui/IGameBoostView;
iget-boolean v1, p0, Lcom/cleanmaster/gameboost/aw;->e:Z
invoke-interface {v0, v1}, Lcom/cleanmaster/gameboost/ui/IGameBoostView;->showVipView(Z)V
goto :goto_1a
.line 297
:cond_7f
invoke-direct {p0, p1}, Lcom/cleanmaster/gameboost/aw;->a(Ljava/lang/String;)V
goto :goto_1a
.end method
.method public toSetting()V
.registers 4
.prologue
.line 264
new-instance v0, Landroid/content/Intent;
iget-object v1, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
const-class v2, Lcom/cleanmaster/gameboost/GameBoostSettingActivity;
invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 265
iget-object v1, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
.line 266
return-void
.end method
.method public toVip(Ljava/lang/String;)V
.registers 7
.prologue
const/4 v4, 0x6
const/4 v3, 0x1
const/4 v2, 0x0
.line 90
const/4 v0, 0x3
invoke-static {v2, v0, v2}, Lcom/cleanmaster/gameboost/b/h;->a(BBB)V
.line 92
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->isNetworkActive(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_12
.line 93
invoke-static {v2, v4, v3}, Lcom/cleanmaster/gameboost/b/h;->a(BBB)V
.line 95
:cond_12
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;
move-result-object v0
const-string v1, "com.tencent.mm"
invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/PackageUtils;->isHasPackage(Landroid/content/Context;Ljava/lang/String;)Z
move-result v0
.line 96
if-nez v0, :cond_22
.line 97
const/4 v0, 0x2
invoke-static {v2, v4, v0}, Lcom/cleanmaster/gameboost/b/h;->a(BBB)V
.line 100
:cond_22
invoke-static {}, Lcom/cm/plugincluster/vipinterface/VipSdkDelegate;->getVipSdk()Lcom/cm/plugincluster/vipinterface/IVipSdk;
move-result-object v0
invoke-interface {v0}, Lcom/cm/plugincluster/vipinterface/IVipSdk;->getVipManager()Lcom/cm/plugincluster/vipinterface/vip/ICmVipManager;
move-result-object v0
new-instance v1, Lcom/cleanmaster/gameboost/ax;
invoke-direct {v1, p0, p1}, Lcom/cleanmaster/gameboost/ax;-><init>(Lcom/cleanmaster/gameboost/aw;Ljava/lang/String;)V
invoke-interface {v0, v3, v3, v1}, Lcom/cm/plugincluster/vipinterface/vip/ICmVipManager;->startQuickToPay(IILcom/cm/plugincluster/vipinterface/pay/ICmPayCallBack;)V
.line 122
return-void
.end method
.method public toWatchAD(Ljava/lang/String;)V
.registers 5
.prologue
const/4 v1, 0x2
.line 202
const/4 v0, 0x0
invoke-static {v1, v1, v0}, Lcom/cleanmaster/gameboost/b/h;->a(BBB)V
.line 204
iget-boolean v0, p0, Lcom/cleanmaster/gameboost/aw;->e:Z
if-nez v0, :cond_a
.line 220
:goto_9
return-void
.line 208
:cond_a
const-string v1, "108525"
iget-object v0, p0, Lcom/cleanmaster/gameboost/aw;->a:Landroid/content/Context;
check-cast v0, Landroid/app/Activity;
new-instance v2, Lcom/cleanmaster/gameboost/ba;
invoke-direct {v2, p0, p1}, Lcom/cleanmaster/gameboost/ba;-><init>(Lcom/cleanmaster/gameboost/aw;Ljava/lang/String;)V
invoke-static {v1, v0, v2}, Lcom/cleanmaster/gameboost/util/RewardVideoUtil;->a(Ljava/lang/String;Landroid/app/Activity;Lcom/cleanmaster/gameboost/util/RewardVideoUtil$Callback;)Z
goto :goto_9
.end method