a.smali

.class public Lcom/cleanmaster/service/c/a;
.super Ljava/lang/Object;
.source "BgScanHelper.java"


# direct methods
.method public static a()Z
    .registers 8

    .prologue
    const/4 v0, 0x1

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

    move-result-object v1

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

    move-result-object v1

    .line 17
    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v2

    invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getLastFuncRecomScanFinish()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    .line 18
    const-wide/16 v4, -0x1

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    cmp-long v3, v4, v6

    if-nez v3, :cond_2f

    .line 19
    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v1

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

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setLastFuncRecomScanFinish(Ljava/lang/Long;)V

    .line 31
    :goto_2e
    return v0

    .line 22
    :cond_2f
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    .line 23
    const-string v3, "junk_scan_eng_bg_setting"

    const-string v6, "junk_scan_bg_hour_period"

    const/4 v7, 0x6

    invoke-static {v3, v6, v7}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v3

    .line 27
    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    sub-long/2addr v4, v6

    int-to-long v2, v3

    const-wide/32 v6, 0x36ee80

    mul-long/2addr v2, v6

    cmp-long v2, v4, v2

    if-ltz v2, :cond_5a

    .line 28
    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v1

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

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setLastFuncRecomScanFinish(Ljava/lang/Long;)V

    goto :goto_2e

    .line 31
    :cond_5a
    const/4 v0, 0x0

    goto :goto_2e
.end method

.method public static b()Z
    .registers 8

    .prologue
    const/4 v0, 0x0

    const/4 v1, 0x1

    .line 36
    const-string v2, "junk_scan_eng_bg_setting"

    const-string v3, "junk_scan_bg_media_store_scan_en"

    invoke-static {v2, v3, v1}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v2

    if-nez v2, :cond_d

    .line 50
    :cond_c
    :goto_c
    return v0

    .line 39
    :cond_d
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v2

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

    move-result-object v2

    .line 40
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v2

    invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getLastMediaStoreScanFinish()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    .line 41
    const-wide/16 v4, -0x1

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    cmp-long v3, v4, v6

    if-nez v3, :cond_2d

    move v0, v1

    .line 42
    goto :goto_c

    .line 45
    :cond_2d
    const-string v3, "junk_scan_eng_bg_setting"

    const-string v4, "junk_scan_bg_media_store_scan_time"

    const-wide/32 v6, 0xf731400

    invoke-static {v3, v4, v6, v7}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getLongValue(Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v4

    .line 46
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    .line 47
    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    sub-long v2, v6, v2

    cmp-long v2, v2, v4

    if-ltz v2, :cond_c

    move v0, v1

    .line 48
    goto :goto_c
.end method

.method public static c()Z
    .registers 4

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

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

    move-result-object v2

    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v2

    invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isTurnedToJunk()Z

    move-result v2

    if-nez v2, :cond_28

    .line 56
    invoke-static {}, Lcom/keniu/security/af;->c()Z

    move-result v2

    if-eqz v2, :cond_28

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

    move-result-object v2

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

    move-result-object v2

    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v2

    invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getFirstBgScanSuccessed()Z

    move-result v2

    if-eqz v2, :cond_29

    .line 64
    :cond_28
    :goto_28
    return v0

    .line 60
    :cond_29
    const-string v2, "junk_scan_eng_bg_setting"

    const-string v3, "junk_show_notify_for_not_turn_to_junk"

    .line 61
    invoke-static {v2, v3, v1}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_28

    move v0, v1

    .line 64
    goto :goto_28
.end method