bp.smali

.class public Lcom/keniu/security/main/bp;
.super Ljava/lang/Object;
.source "NewMainPreShowUtil.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 74
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 75
    return-void
.end method

.method public static a()V
    .registers 4

    .prologue
    .line 78
    const-string/jumbo v0, "switch"

    const-string/jumbo v1, "pre_show_ring_notification"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/CloudCfgDataWrapper;->getCloudCfgBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_e

    .line 94
    :cond_d
    :goto_d
    return-void

    .line 83
    :cond_e
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    .line 84
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getPreShowFunctionFlag()J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-nez v0, :cond_d

    .line 88
    invoke-static {}, Lcom/keniu/security/main/bp;->n()Z

    move-result v0

    .line 89
    if-eqz v0, :cond_30

    .line 90
    const/16 v0, 0x12

    invoke-static {v0}, Lcom/keniu/security/main/bp;->a(I)V

    goto :goto_d

    .line 92
    :cond_30
    const/16 v0, 0x78

    invoke-static {v0}, Lcom/keniu/security/main/bp;->b(I)V

    goto :goto_d
.end method

.method private static a(I)V
    .registers 5

    .prologue
    .line 98
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/configmanager/a;->p()Z

    move-result v0

    .line 99
    if-nez v0, :cond_f

    .line 160
    :cond_e
    :goto_e
    return-void

    .line 101
    :cond_f
    invoke-static {}, Lcom/cm/plugincluster/core/proxy/CoreCommonProxy;->getLowBatteryModeManager()Lcom/cm/plugincluster/boost/process/ILowBatteryModeManager;

    move-result-object v0

    .line 102
    if-eqz v0, :cond_e

    invoke-interface {v0}, Lcom/cm/plugincluster/boost/process/ILowBatteryModeManager;->isAutoBoostModeOpened()Z

    move-result v0

    if-nez v0, :cond_e

    .line 106
    new-instance v0, Lcom/keniu/security/main/bq;

    invoke-direct {v0, p0}, Lcom/keniu/security/main/bq;-><init>(I)V

    const-wide/16 v2, 0x1f4

    invoke-static {v0, v2, v3}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->postDelayed(Ljava/lang/Runnable;J)V

    goto :goto_e
.end method

.method public static a(Landroid/content/Context;)V
    .registers 4

    .prologue
    .line 257
    new-instance v0, Lcom/keniu/security/main/bs;

    invoke-direct {v0, p0}, Lcom/keniu/security/main/bs;-><init>(Landroid/content/Context;)V

    .line 263
    invoke-static {}, Lcom/keniu/security/a/b;->a()Lcom/keniu/security/a/b;

    move-result-object v1

    const/16 v2, 0xa

    invoke-virtual {v1, v0, v2}, Lcom/keniu/security/a/b;->a(Lcom/keniu/security/a/a;I)Ljava/util/concurrent/Future;

    .line 264
    return-void
.end method

.method private static b(I)V
    .registers 5

    .prologue
    .line 165
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/system/SystemUtils;->getAndroidID_lastone(Landroid/content/Context;)I

    move-result v0

    rem-int/lit8 v0, v0, 0x2

    if-nez v0, :cond_d

    .line 218
    :cond_c
    :goto_c
    return-void

    .line 170
    :cond_d
    invoke-static {}, Lcom/keniu/security/aj;->c()Z

    move-result v0

    if-eqz v0, :cond_c

    .line 175
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/configmanager/a;->M()Z

    move-result v0

    if-eqz v0, :cond_c

    .line 180
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getIsPreBatterySaverNotificationShow()Z

    move-result v0

    if-eqz v0, :cond_c

    .line 184
    invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/acc/client/AccClientUtils;->isDeviceSupported()Z

    move-result v0

    if-eqz v0, :cond_c

    .line 187
    new-instance v0, Lcom/keniu/security/main/br;

    invoke-direct {v0, p0}, Lcom/keniu/security/main/br;-><init>(I)V

    const-wide/16 v2, 0x1f4

    invoke-static {v0, v2, v3}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->postDelayed(Ljava/lang/Runnable;J)V

    goto :goto_c
.end method

.method public static b()Z
    .registers 1

    .prologue
    .line 221
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/configmanager/a;->C()Z

    move-result v0

    if-nez v0, :cond_14

    const/4 v0, 0x1

    :goto_13
    return v0

    :cond_14
    const/4 v0, 0x0

    goto :goto_13
.end method

.method public static c()Z
    .registers 1

    .prologue
    .line 225
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/configmanager/a;->N()Z

    move-result v0

    if-nez v0, :cond_10

    const/4 v0, 0x1

    :goto_f
    return v0

    :cond_10
    const/4 v0, 0x0

    goto :goto_f
.end method

.method public static d()V
    .registers 3

    .prologue
    .line 245
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v0

    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v1

    const/4 v2, 0x2

    invoke-interface {v0, v1, v2}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->showAppLockInvalidDialog(Landroid/content/Context;I)V

    .line 247
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;

    move-result-object v0

    .line 248
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/configmanager/a;->j(Z)V

    .line 249
    return-void
.end method

.method public static e()V
    .registers 2

    .prologue
    .line 252
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v0

    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->showAppLockMiuiDialog(Landroid/content/Context;)V

    .line 253
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->setAppLockDialogShowed()V

    .line 254
    return-void
.end method

.method public static f()Z
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 272
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x16

    if-ge v1, v2, :cond_8

    .line 288
    :cond_7
    :goto_7
    return v0

    .line 277
    :cond_8
    invoke-static {}, Lcom/keniu/security/main/bz;->b()Z

    move-result v1

    if-nez v1, :cond_7

    .line 281
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;

    move-result-object v1

    .line 284
    invoke-virtual {v1}, Lcom/cleanmaster/configmanager/a;->A()J

    move-result-wide v2

    .line 285
    const-wide/16 v4, 0x0

    cmp-long v1, v2, v4

    if-nez v1, :cond_7

    .line 288
    const/4 v0, 0x1

    goto :goto_7
.end method

.method public static g()Z
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 297
    invoke-static {}, Lcom/keniu/security/main/bz;->b()Z

    move-result v1

    if-eqz v1, :cond_8

    .line 306
    :cond_7
    :goto_7
    return v0

    .line 301
    :cond_8
    invoke-static {}, Lcom/keniu/security/main/bp;->h()I

    move-result v1

    .line 302
    const/16 v2, 0x9

    const-string/jumbo v3, "recommend_cms_security_redpoint"

    const-string v4, "interval"

    const/4 v5, 0x3

    invoke-static {v2, v3, v4, v5}, Lcom/cleanmaster/recommendapps/b;->a(ILjava/lang/String;Ljava/lang/String;I)I

    move-result v2

    .line 303
    if-lt v1, v2, :cond_7

    .line 306
    const/4 v0, 0x1

    goto :goto_7
.end method

.method public static h()I
    .registers 4

    .prologue
    .line 310
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/configmanager/a;->A()J

    move-result-wide v0

    .line 311
    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-nez v2, :cond_14

    const/4 v0, 0x1

    :goto_13
    return v0

    :cond_14
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sub-long v0, v2, v0

    const-wide/32 v2, 0x5265c00

    div-long/2addr v0, v2

    long-to-int v0, v0

    goto :goto_13
.end method

.method public static i()Z
    .registers 1

    .prologue
    .line 319
    const/4 v0, 0x1

    return v0
.end method

.method public static j()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 323
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/ConflictCommons;->isCNVersion()Z

    move-result v1

    if-nez v1, :cond_8

    .line 326
    :goto_7
    return v0

    :cond_8
    const-string v1, "main_is_flow_monitor_show_in_main"

    const-string v2, "main_is_flow_monitor_show_section"

    invoke-static {v1, v0, v2}, Lcom/keniu/security/main/bn;->a(Ljava/lang/String;ZLjava/lang/String;)Z

    move-result v0

    goto :goto_7
.end method

.method public static k()Z
    .registers 4

    .prologue
    const/4 v1, 0x1

    .line 331
    const-string v0, "main_tab_news_showed_always_show"

    const-string v2, "main_tab_news_section"

    invoke-static {v0, v1, v2}, Lcom/keniu/security/main/bn;->a(Ljava/lang/String;ZLjava/lang/String;)Z

    move-result v0

    .line 333
    if-eqz v0, :cond_1a

    .line 334
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->isNewsTabShowedinMain()Z

    move-result v0

    .line 335
    if-eqz v0, :cond_1a

    .line 350
    :cond_19
    :goto_19
    return v1

    .line 341
    :cond_1a
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/ConflictCommons;->isCNVersion()Z

    move-result v0

    if-nez v0, :cond_2c

    .line 342
    const/4 v0, 0x0

    .line 345
    :goto_21
    const-string v2, "main_is_news_tab_show"

    const-string v3, "main_tab_news_section"

    invoke-static {v2, v0, v3}, Lcom/keniu/security/main/bn;->a(Ljava/lang/String;ZLjava/lang/String;)Z

    move-result v0

    .line 347
    if-eqz v0, :cond_19

    goto :goto_19

    :cond_2c
    move v0, v1

    goto :goto_21
.end method

.method public static l()Z
    .registers 5

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    const/4 v4, -0x1

    .line 355
    const-string/jumbo v0, "switch"

    const-string/jumbo v3, "pre_show_problem_update_interval"

    invoke-static {v0, v3, v4}, Lcom/cleanmaster/hpsharelib/cloudconfig/CloudCfgDataWrapper;->getCloudCfgIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v0

    .line 356
    if-ne v0, v4, :cond_19

    move v0, v1

    .line 357
    :goto_10
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/ConflictCommons;->isCNVersion()Z

    move-result v3

    if-eqz v3, :cond_1b

    if-nez v0, :cond_1b

    :goto_18
    return v1

    :cond_19
    move v0, v2

    .line 356
    goto :goto_10

    :cond_1b
    move v1, v2

    .line 357
    goto :goto_18
.end method

.method static synthetic m()V
    .registers 0

    .prologue
    .line 42
    invoke-static {}, Lcom/keniu/security/main/bp;->o()V

    return-void
.end method

.method private static n()Z
    .registers 6

    .prologue
    .line 230
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    .line 231
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getPreShowFunctionFlag()J

    move-result-wide v2

    .line 232
    const-wide/16 v4, 0x0

    cmp-long v1, v2, v4

    if-nez v1, :cond_22

    .line 233
    invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/configmanager/a;->f()Z

    move-result v0

    if-nez v0, :cond_22

    const/4 v0, 0x1

    .line 232
    :goto_21
    return v0

    .line 233
    :cond_22
    const/4 v0, 0x0

    goto :goto_21
.end method

.method private static o()V
    .registers 8

    .prologue
    const-wide/16 v6, 0x2

    .line 237
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    .line 238
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getPreShowFunctionFlag()J

    move-result-wide v2

    .line 239
    and-long v4, v2, v6

    cmp-long v1, v4, v6

    if-eqz v1, :cond_20

    .line 240
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;

    move-result-object v0

    or-long/2addr v2, v6

    invoke-virtual {v0, v2, v3}, Lcom/cleanmaster/hpsharelib/configmanager/UIConfigManager;->setPreShowFunctionFlag(J)V

    .line 242
    :cond_20
    return-void
.end method