a.smali

.class public Lcom/cleanmaster/push/a;
.super Ljava/lang/Object;
.source "CacheScanPush.java"

# interfaces
.implements Lcom/cm/plugincluster/core/interfaces/junk/ICacheScanPush;


# static fields
.field private static volatile a:Lcom/cleanmaster/push/a;


# instance fields
.field private b:Z

.field private final c:J


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 36
    const/4 v0, 0x0

    sput-object v0, Lcom/cleanmaster/push/a;->a:Lcom/cleanmaster/push/a;

    return-void
.end method

.method public constructor <init>()V
    .registers 3

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

    .line 64
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/cleanmaster/push/a;->b:Z

    .line 66
    const-wide/16 v0, 0x5dc

    iput-wide v0, p0, Lcom/cleanmaster/push/a;->c:J

    .line 38
    return-void
.end method

.method public static a()Lcom/cleanmaster/push/a;
    .registers 2

    .prologue
    .line 41
    sget-object v0, Lcom/cleanmaster/push/a;->a:Lcom/cleanmaster/push/a;

    if-eqz v0, :cond_7

    .line 42
    sget-object v0, Lcom/cleanmaster/push/a;->a:Lcom/cleanmaster/push/a;

    .line 46
    :goto_6
    return-object v0

    .line 44
    :cond_7
    const-class v1, Lcom/cleanmaster/push/a;

    monitor-enter v1

    .line 45
    :try_start_a
    new-instance v0, Lcom/cleanmaster/push/a;

    invoke-direct {v0}, Lcom/cleanmaster/push/a;-><init>()V

    sput-object v0, Lcom/cleanmaster/push/a;->a:Lcom/cleanmaster/push/a;

    .line 46
    sget-object v0, Lcom/cleanmaster/push/a;->a:Lcom/cleanmaster/push/a;

    monitor-exit v1

    goto :goto_6

    .line 47
    :catchall_15
    move-exception v0

    monitor-exit v1
    :try_end_17
    .catchall {:try_start_a .. :try_end_17} :catchall_15

    throw v0
.end method

.method private a(II)Ljava/lang/String;
    .registers 9

    .prologue
    const/4 v3, 0x4

    const/4 v2, 0x3

    const/4 v1, 0x2

    const/4 v0, 0x1

    const/4 v4, 0x0

    .line 411
    .line 412
    sparse-switch p1, :sswitch_data_40

    move v5, v4

    .line 436
    :goto_9
    sparse-switch p2, :sswitch_data_5e

    move v0, v4

    .line 459
    :goto_d
    :sswitch_d
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :sswitch_25
    move v5, v0

    .line 415
    goto :goto_9

    :sswitch_27
    move v5, v1

    .line 418
    goto :goto_9

    :sswitch_29
    move v5, v2

    .line 421
    goto :goto_9

    :sswitch_2b
    move v5, v3

    .line 424
    goto :goto_9

    .line 426
    :sswitch_2d
    const/4 v5, 0x5

    .line 427
    goto :goto_9

    .line 429
    :sswitch_2f
    const/4 v5, 0x6

    .line 430
    goto :goto_9

    .line 432
    :sswitch_31
    const/4 v5, 0x7

    goto :goto_9

    :sswitch_33
    move v0, v1

    .line 442
    goto :goto_d

    :sswitch_35
    move v0, v2

    .line 445
    goto :goto_d

    :sswitch_37
    move v0, v3

    .line 448
    goto :goto_d

    .line 450
    :sswitch_39
    const/4 v0, 0x5

    .line 451
    goto :goto_d

    .line 453
    :sswitch_3b
    const/4 v0, 0x6

    .line 454
    goto :goto_d

    .line 456
    :sswitch_3d
    const/4 v0, 0x7

    goto :goto_d

    .line 412
    nop

    :sswitch_data_40
    .sparse-switch
        0x1 -> :sswitch_25
        0x3 -> :sswitch_27
        0x5 -> :sswitch_2d
        0x6 -> :sswitch_2f
        0x7 -> :sswitch_29
        0xf -> :sswitch_2b
        0xff -> :sswitch_31
    .end sparse-switch

    .line 436
    :sswitch_data_5e
    .sparse-switch
        0x5 -> :sswitch_39
        0x6 -> :sswitch_3b
        0x1e -> :sswitch_3d
        0x32 -> :sswitch_d
        0x64 -> :sswitch_33
        0x12c -> :sswitch_35
        0x1f4 -> :sswitch_37
    .end sparse-switch
.end method

.method static synthetic a(Lcom/cleanmaster/push/a;II)Ljava/lang/String;
    .registers 4

    .prologue
    .line 35
    invoke-direct {p0, p1, p2}, Lcom/cleanmaster/push/a;->a(II)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public b()V
    .registers 15

    .prologue
    const-wide/16 v12, 0x400

    const/4 v11, 0x4

    const/4 v10, 0x1

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

    move-result-object v0

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

    move-result-object v0

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

    move-result v0

    .line 465
    if-nez v0, :cond_13

    .line 528
    :cond_12
    :goto_12
    return-void

    .line 468
    :cond_13
    invoke-static {v10}, Lcom/cm/plugincluster/core/proxy/JunkSizeMgrProxy;->queryJunkSize(I)J

    move-result-wide v8

    .line 469
    const-wide/32 v0, 0x1e00000

    cmp-long v0, v8, v0

    if-ltz v0, :cond_12

    .line 472
    const/4 v0, 0x7

    invoke-static {v0}, Lcom/cm/plugincluster/core/proxy/JunkSizeMgrProxy;->queryJunkSize(I)J

    move-result-wide v0

    add-long v3, v8, v0

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

    move-result-object v0

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

    move-result-object v2

    .line 474
    new-instance v5, Landroid/content/Intent;

    invoke-direct {v5}, Landroid/content/Intent;-><init>()V

    .line 475
    const-string v0, "com.cleanmaster.junk.ui.activity.JunkManagerActivity"

    invoke-virtual {v5, v2, v0}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    .line 476
    const-string v0, ":first_junk"

    div-long v6, v8, v12

    div-long/2addr v6, v12

    long-to-int v1, v6

    invoke-virtual {v5, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 477
    const-string v0, "IsFirstJunkPush"

    invoke-virtual {v5, v0, v10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 478
    const-string v0, "fromtype"

    invoke-virtual {v5, v0, v10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;B)Landroid/content/Intent;

    .line 479
    const-string v0, "extra_from"

    invoke-virtual {v5, v0, v10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 480
    const-string v0, "extra_from_notification_type"

    invoke-virtual {v5, v0, v11}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 482
    new-instance v7, Landroid/content/Intent;

    const-class v0, Lcom/cleanmaster/push/JunkNotificationReceiver;

    invoke-direct {v7, v2, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 483
    const-string v0, "extra_from"

    invoke-virtual {v7, v0, v10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 485
    const-string v0, "extra_from_notification_type"

    invoke-virtual {v7, v0, v11}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 487
    const/4 v0, 0x0

    const/high16 v1, 0x8000000

    .line 488
    invoke-static {v2, v0, v7, v1}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v6

    .line 490
    new-instance v10, Landroid/os/Handler;

    invoke-virtual {v2}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {v10, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v0, Lcom/cleanmaster/push/g;

    move-object v1, p0

    invoke-direct/range {v0 .. v9}, Lcom/cleanmaster/push/g;-><init>(Lcom/cleanmaster/push/a;Landroid/content/Context;JLandroid/content/Intent;Landroid/app/PendingIntent;Landroid/content/Intent;J)V

    const-wide/16 v2, 0x5dc

    invoke-virtual {v10, v0, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_12
.end method

.method public startPush()V
    .registers 35

    .prologue
    .line 69
    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 v10

    .line 70
    invoke-static {v10}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v13

    .line 73
    invoke-virtual {v13}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getAutoCheckCacheSwitch()Z

    move-result v2

    .line 74
    if-nez v2, :cond_13

    .line 242
    :cond_12
    :goto_12
    return-void

    .line 77
    :cond_13
    const/4 v2, 0x1

    invoke-static {v2}, Lcom/cm/plugincluster/core/proxy/JunkSizeMgrProxy;->queryJunkSize(I)J

    move-result-wide v16

    .line 78
    const/4 v2, 0x7

    invoke-static {v2}, Lcom/cm/plugincluster/core/proxy/JunkSizeMgrProxy;->queryJunkSize(I)J

    move-result-wide v18

    .line 79
    add-long v2, v16, v18

    invoke-static {v2, v3}, Lcom/cleanmaster/hpsharelib/base/util/misc/SizeUtil;->formatSizeForJunkHeader(J)Ljava/lang/String;

    move-result-object v11

    .line 80
    const-wide/32 v2, 0x100000

    div-long v20, v16, v2

    .line 84
    const-string v2, "junk_notify_cache_setting"

    const-string v3, "JunkReminderOriSize"

    const/16 v4, 0x32

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

    move-result v2

    .line 88
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/Commons;->isInPreInstallAvoidTime()Z

    move-result v3

    if-eqz v3, :cond_3a

    .line 89
    const/16 v2, 0x12c

    .line 91
    :cond_3a
    invoke-static {}, Lcom/cleanmaster/hpsharelib/oeam/OEMConfig;->isUsingSettingJunkReminderSize()Z

    move-result v3

    if-eqz v3, :cond_44

    .line 92
    invoke-virtual {v13}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getAutoCheckCacheSize()I

    move-result v2

    .line 95
    :cond_44
    const-string v3, "junk_notify_cache_setting"

    const-string v4, "JunkReminderOriTime"

    const/4 v5, 0x1

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

    move-result v3

    .line 98
    move-object/from16 v0, p0

    invoke-direct {v0, v3, v2}, Lcom/cleanmaster/push/a;->a(II)Ljava/lang/String;

    move-result-object v15

    .line 101
    invoke-virtual {v13}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isFirstJunkPush()Z

    move-result v3

    if-eqz v3, :cond_118

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

    move-result v3

    if-nez v3, :cond_118

    .line 102
    const/16 v5, 0xd

    .line 103
    const/4 v3, 0x1

    move-object/from16 v0, p0

    iput-boolean v3, v0, Lcom/cleanmaster/push/a;->b:Z

    .line 108
    :goto_66
    new-instance v8, Landroid/content/Intent;

    invoke-direct {v8}, Landroid/content/Intent;-><init>()V

    .line 109
    const-string v3, "com.cleanmaster.junk.ui.activity.JunkManagerActivity"

    invoke-virtual {v8, v10, v3}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    .line 110
    const-string v3, "IsHasCacheData"

    const/4 v4, 0x1

    invoke-virtual {v8, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 111
    const-string v3, "IsFirstJunkPush"

    move-object/from16 v0, p0

    iget-boolean v4, v0, Lcom/cleanmaster/push/a;->b:Z

    invoke-virtual {v8, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 112
    const-string v3, "PushReason"

    invoke-virtual {v8, v3, v15}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 113
    const-string v3, "fromtype"

    const/4 v4, 0x1

    invoke-virtual {v8, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;B)Landroid/content/Intent;

    .line 114
    const-string v3, "cache_scan_push_extra"

    const/4 v4, 0x1

    invoke-virtual {v8, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 115
    const-string v3, "extra_from"

    const/4 v4, 0x1

    invoke-virtual {v8, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 116
    new-instance v12, Landroid/content/Intent;

    const-class v3, Lcom/cleanmaster/push/JunkNotificationReceiver;

    invoke-direct {v12, v10, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 117
    const-string v3, "extra_from"

    const/4 v4, 0x1

    invoke-virtual {v12, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 121
    const-string v3, "junk_notify_cache_setting"

    const-string v4, "junk_notify_cache_is_top_effect"

    const/4 v6, 0x1

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

    move-result v6

    .line 122
    const-string v3, "junk_notify_setting"

    const-string v4, "junk_notify_cache_is_apk_effect"

    const/4 v7, 0x1

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

    move-result v3

    .line 123
    const-string v4, "junk_notify_cache_setting"

    const-string v7, "junk_notify_cache_is_adv_effect"

    const/4 v9, 0x1

    invoke-static {v4, v7, v9}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v4

    .line 124
    const-string v7, "junk_notify_setting"

    const-string v9, "junk_notify_cache_is_right_button"

    const/4 v14, 0x0

    invoke-static {v7, v9, v14}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z

    .line 126
    int-to-long v0, v2

    move-wide/from16 v22, v0

    cmp-long v2, v20, v22

    if-ltz v2, :cond_121

    .line 128
    if-eqz v4, :cond_11d

    .line 129
    const/16 v2, 0x8

    invoke-static {v2}, Lcom/cm/plugincluster/core/proxy/JunkSizeMgrProxy;->queryJunkSize(I)J

    move-result-wide v2

    const-wide/16 v20, 0x0

    cmp-long v2, v2, v20

    if-lez v2, :cond_11b

    const/4 v2, 0x1

    .line 133
    :goto_dc
    new-instance v7, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

    invoke-direct {v7}, Lcom/cm/plugincluster/common/notification/define/NotificationModel;-><init>()V

    .line 134
    invoke-static {v10, v7, v11, v2}, Lcom/cm/plugincluster/core/proxy/JunkCommonProxy;->getNotifyCacheDayOutCloudStrContent(Landroid/content/Context;Lcom/cm/plugincluster/common/notification/define/NotificationModel;Ljava/lang/String;Z)I

    move-result v14

    .line 135
    const-string v3, "is_adv"

    const/4 v2, 0x3

    if-ne v14, v2, :cond_11f

    const/4 v2, 0x1

    :goto_eb
    invoke-virtual {v8, v3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 136
    const-string v2, "extra_from_notification_type"

    const/4 v3, 0x1

    invoke-virtual {v8, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 137
    const-string v2, "extra_from_notification_type"

    const/4 v3, 0x1

    invoke-virtual {v12, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 139
    const/4 v2, 0x0

    const/high16 v3, 0x8000000

    .line 140
    invoke-static {v10, v2, v12, v3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v9

    .line 142
    new-instance v2, Landroid/os/Handler;

    invoke-virtual {v10}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v3, Lcom/cleanmaster/push/b;

    move-object/from16 v4, p0

    invoke-direct/range {v3 .. v19}, Lcom/cleanmaster/push/b;-><init>(Lcom/cleanmaster/push/a;IZLcom/cm/plugincluster/common/notification/define/NotificationModel;Landroid/content/Intent;Landroid/app/PendingIntent;Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;ILjava/lang/String;JJ)V

    const-wide/16 v4, 0x5dc

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto/16 :goto_12

    .line 105
    :cond_118
    const/4 v5, 0x1

    goto/16 :goto_66

    .line 129
    :cond_11b
    const/4 v2, 0x0

    goto :goto_dc

    .line 131
    :cond_11d
    const/4 v2, 0x0

    goto :goto_dc

    .line 135
    :cond_11f
    const/4 v2, 0x0

    goto :goto_eb

    .line 190
    :cond_121
    if-eqz v3, :cond_12

    const/16 v2, 0x9

    invoke-static {v2}, Lcom/cm/plugincluster/core/proxy/JunkSizeMgrProxy;->queryJunkSize(I)J

    move-result-wide v2

    const-wide/16 v20, 0x0

    cmp-long v2, v2, v20

    if-lez v2, :cond_12

    .line 193
    const-string v2, "cache_less_scan_push_extra"

    const/4 v3, 0x1

    invoke-virtual {v8, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 194
    const-string v2, "extra_from_notification_type"

    const/4 v3, 0x2

    invoke-virtual {v8, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 195
    const-string v2, "extra_from_notification_type"

    const/4 v3, 0x2

    invoke-virtual {v12, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 197
    const/4 v2, 0x0

    const/high16 v3, 0x8000000

    .line 198
    invoke-static {v10, v2, v12, v3}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v26

    .line 200
    new-instance v2, Landroid/os/Handler;

    invoke-virtual {v10}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v20, Lcom/cleanmaster/push/c;

    move-object/from16 v21, p0

    move/from16 v22, v5

    move/from16 v23, v6

    move-object/from16 v24, v10

    move-object/from16 v25, v8

    move-object/from16 v27, v12

    move-object/from16 v28, v13

    move-object/from16 v29, v15

    move-wide/from16 v30, v16

    move-wide/from16 v32, v18

    invoke-direct/range {v20 .. v33}, Lcom/cleanmaster/push/c;-><init>(Lcom/cleanmaster/push/a;IZLandroid/content/Context;Landroid/content/Intent;Landroid/app/PendingIntent;Landroid/content/Intent;Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;Ljava/lang/String;JJ)V

    const-wide/16 v4, 0x5dc

    move-object/from16 v0, v20

    invoke-virtual {v2, v0, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto/16 :goto_12
.end method

.method public startPushForDu(Ljava/lang/String;)V
    .registers 9

    .prologue
    const/4 v0, 0x1

    .line 248
    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 v3

    .line 249
    invoke-static {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v5

    .line 251
    invoke-virtual {v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getAutoCheckCacheSwitch()Z

    move-result v1

    .line 252
    if-nez v1, :cond_14

    .line 301
    :goto_13
    return-void

    .line 256
    :cond_14
    invoke-virtual {v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isFirstJunkPush()Z

    move-result v1

    if-eqz v1, :cond_60

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

    move-result v1

    if-nez v1, :cond_60

    .line 257
    const/16 v2, 0xd

    .line 258
    iput-boolean v0, p0, Lcom/cleanmaster/push/a;->b:Z

    .line 262
    :goto_24
    const-string v1, "du"

    .line 263
    new-instance v4, Landroid/content/Intent;

    invoke-direct {v4}, Landroid/content/Intent;-><init>()V

    .line 264
    const-string v1, "com.cleanmaster.junk.ui.activity.JunkManagerActivity"

    invoke-virtual {v4, v3, v1}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    .line 265
    const-string v1, "IsHasCacheData"

    invoke-virtual {v4, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 266
    const-string v1, "IsFirstJunkPush"

    iget-boolean v6, p0, Lcom/cleanmaster/push/a;->b:Z

    invoke-virtual {v4, v1, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 267
    const-string v1, "PushReason"

    const-string v6, "du"

    invoke-virtual {v4, v1, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 268
    const-string v1, "fromtype"

    invoke-virtual {v4, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;B)Landroid/content/Intent;

    .line 269
    const-string v0, "pkgname"

    invoke-virtual {v4, v0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 271
    new-instance v6, Landroid/os/Handler;

    invoke-virtual {v3}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {v6, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v0, Lcom/cleanmaster/push/d;

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/cleanmaster/push/d;-><init>(Lcom/cleanmaster/push/a;ILandroid/content/Context;Landroid/content/Intent;Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;)V

    invoke-virtual {v6, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_13

    :cond_60
    move v2, v0

    .line 260
    goto :goto_24
.end method

.method public startRedPack(I)V
    .registers 5

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

    move-result-object v0

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

    move-result-object v0

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

    move-result-object v1

    .line 308
    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getAutoCheckCacheSwitch()Z

    move-result v1

    .line 309
    if-nez v1, :cond_13

    .line 356
    :goto_12
    return-void

    .line 312
    :cond_13
    new-instance v1, Landroid/os/Handler;

    invoke-virtual {v0}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v2, Lcom/cleanmaster/push/e;

    invoke-direct {v2, p0, v0, p1}, Lcom/cleanmaster/push/e;-><init>(Lcom/cleanmaster/push/a;Landroid/content/Context;I)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_12
.end method

.method public startRedPackAtTime()V
    .registers 4

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

    move-result-object v0

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

    move-result-object v0

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

    move-result-object v1

    .line 364
    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getAutoCheckCacheSwitch()Z

    move-result v1

    .line 365
    if-nez v1, :cond_13

    .line 408
    :goto_12
    return-void

    .line 368
    :cond_13
    new-instance v1, Landroid/os/Handler;

    invoke-virtual {v0}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v2, Lcom/cleanmaster/push/f;

    invoke-direct {v2, p0, v0}, Lcom/cleanmaster/push/f;-><init>(Lcom/cleanmaster/push/a;Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_12
.end method