InterestedUtils.smali

.class public Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;
.super Ljava/lang/Object;
.source "InterestedUtils.java"


# static fields
.field public static final INSTALL_AFTER:I = 0x1

.field public static final INSTALL_BEFORE:I = 0x2

.field public static final INSTALL_NONE:I = 0x0

.field public static final ONE_DAY:J = 0x5265c00L

.field public static final PLAN_CM_INTEREST_OPEN:I = 0x1

.field public static final PLAN_INTEREST_CLOSE:I = 0x3

.field public static final PLAN_REMOVE_SHORTCUT:I = 0x4

.field public static final TAG:Ljava/lang/String; = "InterestedUtils"

.field private static mInstance:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

.field public static final mIsDebug:Z

.field private static mSelfPkgName:Ljava/lang/String;


# instance fields
.field private mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

.field private mCurrentClosedPkgName:Ljava/lang/String;

.field private mCurrentPkgName:Ljava/lang/String;

.field private mDelayTime:J

.field private mInOpenDelayTime:Z

.field private mInterestPkgName:Ljava/lang/String;

.field private mIsOpeningPermantNotify:Z

.field private mNotifyType:I

.field private mPkgLock:Ljava/lang/Object;

.field private mTopOpenWatcherRunable:Ljava/lang/Runnable;


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

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

    sput-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mSelfPkgName:Ljava/lang/String;

    return-void
.end method

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

    .prologue
    const/4 v2, 0x0

    const/4 v0, 0x0

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

    .line 70
    iput-boolean v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    .line 72
    iput-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;

    .line 74
    iput-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentClosedPkgName:Ljava/lang/String;

    .line 76
    iput-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;

    .line 78
    const-wide/16 v0, 0x4e20

    iput-wide v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mDelayTime:J

    .line 79
    new-instance v0, Ljava/lang/Object;

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

    iput-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mPkgLock:Ljava/lang/Object;

    .line 81
    const/4 v0, 0x1

    iput v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mNotifyType:I

    .line 83
    new-instance v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-direct {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;-><init>()V

    iput-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    .line 88
    iput-boolean v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mIsOpeningPermantNotify:Z

    .line 576
    new-instance v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;

    invoke-direct {v0, p0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;-><init>(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)V

    iput-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mTopOpenWatcherRunable:Ljava/lang/Runnable;

    return-void
.end method

.method static synthetic access$000(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .registers 4

    .prologue
    .line 49
    invoke-direct {p0, p1, p2, p3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->deleteShortCutJustForPkg(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$100(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;I)V
    .registers 3

    .prologue
    .line 49
    invoke-direct {p0, p1, p2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->addPlanCount(Ljava/lang/String;I)V

    return-void
.end method

.method static synthetic access$200(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Z
    .registers 2

    .prologue
    .line 49
    invoke-direct {p0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->isNotifyTimeFull()Z

    move-result v0

    return v0
.end method

.method static synthetic access$300(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/Object;
    .registers 2

    .prologue
    .line 49
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mPkgLock:Ljava/lang/Object;

    return-object v0
.end method

.method static synthetic access$400(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;
    .registers 2

    .prologue
    .line 49
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$402(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;)Ljava/lang/String;
    .registers 2

    .prologue
    .line 49
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$500(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;
    .registers 2

    .prologue
    .line 49
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$502(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;)Ljava/lang/String;
    .registers 2

    .prologue
    .line 49
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$600(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)I
    .registers 2

    .prologue
    .line 49
    iget v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mNotifyType:I

    return v0
.end method

.method static synthetic access$700(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;I)V
    .registers 3

    .prologue
    .line 49
    invoke-direct {p0, p1, p2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->showNotification(Ljava/lang/String;I)V

    return-void
.end method

.method static synthetic access$802(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Z)Z
    .registers 2

    .prologue
    .line 49
    iput-boolean p1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    return p1
.end method

.method private addPlanCount(Ljava/lang/String;I)V
    .registers 5

    .prologue
    .line 630
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v0, p1, p2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->getPlanUseCountByPkgName(Ljava/lang/String;I)I

    move-result v0

    .line 631
    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    add-int/lit8 v0, v0, 0x1

    invoke-virtual {v1, p1, p2, v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->setPlanUseCountByPkgName(Ljava/lang/String;II)V

    .line 632
    return-void
.end method

.method private deleteShortCutJustForPkg(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .registers 11

    .prologue
    .line 703
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_c

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 784
    :cond_c
    :goto_c
    return-void

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

    move-result-object v0

    invoke-static {v0, p2, p3}, Lcom/cleanmaster/hpsharelib/base/Commons;->hasShortcut(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_c

    .line 711
    invoke-static {}, Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;->getInstance()Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, p2, v1}, Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;->getLabelNameOut(Ljava/lang/String;Landroid/content/pm/PackageInfo;)Ljava/lang/String;

    move-result-object v3

    .line 713
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 714
    invoke-virtual {v0, p2, p3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 715
    const/high16 v1, 0x10000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 716
    const-string v1, "extra.from"

    const/4 v2, 0x2

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

    .line 717
    const-string v1, "android.intent.category.LAUNCHER"

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

    .line 718
    const-string v1, "android.intent.action.MAIN"

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

    .line 720
    new-instance v1, Landroid/content/Intent;

    const-string v2, "com.android.launcher.action.UNINSTALL_SHORTCUT"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 721
    const-string v2, "android.intent.extra.shortcut.NAME"

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

    .line 722
    const-string v2, "duplicate"

    const/4 v4, 0x0

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

    .line 723
    const-string v2, "android.intent.extra.shortcut.INTENT"

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

    .line 724
    invoke-virtual {p1, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 728
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v6

    new-instance v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$5;

    move-object v1, p0

    move-object v2, p1

    move-object v4, p3

    move-object v5, p2

    invoke-direct/range {v0 .. v5}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$5;-><init>(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    const-wide/16 v2, 0x3e8

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

    goto :goto_c
.end method

.method private getAppInstallTime(Landroid/content/Context;Ljava/lang/String;)J
    .registers 7

    .prologue
    const-wide/16 v0, 0x0

    .line 202
    if-eqz p1, :cond_6

    if-nez p2, :cond_7

    .line 221
    :cond_6
    :goto_6
    return-wide v0

    .line 207
    :cond_7
    :try_start_7
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0x8

    if-le v2, v3, :cond_19

    .line 208
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, p2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v2

    .line 209
    iget-wide v0, v2, Landroid/content/pm/PackageInfo;->firstInstallTime:J

    goto :goto_6

    .line 212
    :cond_19
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, p2, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v2

    .line 213
    iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;

    .line 214
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/io/File;->lastModified()J
    :try_end_2c
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_7 .. :try_end_2c} :catch_30
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_2c} :catch_2e

    move-result-wide v0

    goto :goto_6

    .line 220
    :catch_2e
    move-exception v2

    goto :goto_6

    .line 217
    :catch_30
    move-exception v2

    goto :goto_6
.end method

.method public static getInstance()Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;
    .registers 2

    .prologue
    .line 91
    sget-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInstance:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    if-nez v0, :cond_23

    .line 92
    const-class v1, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    monitor-enter v1

    .line 93
    :try_start_7
    sget-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInstance:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    if-nez v0, :cond_1c

    .line 94
    new-instance v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    invoke-direct {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;-><init>()V

    sput-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInstance:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

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

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mSelfPkgName:Ljava/lang/String;

    .line 97
    :cond_1c
    sget-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInstance:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    monitor-exit v1

    .line 100
    :goto_1f
    return-object v0

    .line 98
    :catchall_20
    move-exception v0

    monitor-exit v1
    :try_end_22
    .catchall {:try_start_7 .. :try_end_22} :catchall_20

    throw v0

    .line 100
    :cond_23
    sget-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInstance:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    goto :goto_1f
.end method

.method private isNotifyTimeFull()Z
    .registers 5

    .prologue
    .line 108
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()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;->getInterestLastNotifyTime()J

    move-result-wide v0

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

    cmp-long v2, v0, v2

    if-lez v2, :cond_21

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

    move-result-wide v2

    sub-long v0, v2, v0

    const-wide/32 v2, 0x927c0

    cmp-long v0, v0, v2

    if-gez v0, :cond_21

    .line 110
    const/4 v0, 0x0

    .line 112
    :goto_20
    return v0

    :cond_21
    const/4 v0, 0x1

    goto :goto_20
.end method

.method private openPermantNotifyForInterest()V
    .registers 6

    .prologue
    const/4 v4, 0x0

    const/4 v1, 0x1

    .line 518
    iget-boolean v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mIsOpeningPermantNotify:Z

    if-eqz v0, :cond_7

    .line 562
    :goto_6
    return-void

    .line 522
    :cond_7
    iput-boolean v1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mIsOpeningPermantNotify:Z

    .line 524
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()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;->isInterestOpenPermantNotify()Z

    move-result v0

    if-nez v0, :cond_74

    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    .line 525
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->isNeedOpenPermantNotify()Z

    move-result v0

    if-eqz v0, :cond_74

    .line 528
    :try_start_1f
    invoke-static {}, Lcom/cleanmaster/hpsharelib/synipc/SyncIpcCtrl;->getIns()Lcom/cleanmaster/hpsharelib/synipc/SyncIpcCtrl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/synipc/SyncIpcCtrl;->getIPCClient()Lcom/cleanmaster/hpsharelib/synipc/ISyncIpcService;

    move-result-object v0

    .line 529
    if-eqz v0, :cond_69

    invoke-interface {v0}, Lcom/cleanmaster/hpsharelib/synipc/ISyncIpcService;->isNotificationOpen()Z

    move-result v1

    if-nez v1, :cond_69

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

    move-result-object v1

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

    move-result-object v1

    const/4 v2, 0x3

    .line 532
    invoke-virtual {v1, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotifSwitch(I)V

    .line 534
    invoke-interface {v0}, Lcom/cleanmaster/hpsharelib/synipc/ISyncIpcService;->startNotification()V

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

    move-result-object v1

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

    move-result-object v1

    const/4 v2, 0x1

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

    .line 538
    const/4 v1, 0x4

    invoke-interface {v0, v1}, Lcom/cleanmaster/hpsharelib/synipc/ISyncIpcService;->updateNotification(I)V

    .line 540
    invoke-static {}, Ljava/lang/Math;->random()D

    move-result-wide v0

    const-wide/high16 v2, 0x4024000000000000L    # 10.0

    mul-double/2addr v0, v2

    double-to-int v0, v0

    .line 541
    rem-int/lit8 v0, v0, 0x2

    if-nez v0, :cond_77

    .line 543
    invoke-static {}, Lcom/cm/plugincluster/common/notification/proxy/PermanentNotificationProxy;->getInstance()Lcom/cm/plugincluster/common/notification/interfaces/IPermanentNotification;

    move-result-object v0

    const/4 v1, 0x0

    .line 544
    invoke-interface {v0, v1}, Lcom/cm/plugincluster/common/notification/interfaces/IPermanentNotification;->changeNotificationStyleIfNeed(I)Z

    .line 545
    const/4 v0, 0x1

    const/16 v1, 0x8

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/func/interested/ReportUtil;->reportShow(ZILjava/lang/String;)V
    :try_end_69
    .catch Landroid/os/RemoteException; {:try_start_1f .. :try_end_69} :catch_87

    .line 558
    :cond_69
    :goto_69
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()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;->setInterestOpenPermantNotify()V

    .line 561
    :cond_74
    iput-boolean v4, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mIsOpeningPermantNotify:Z

    goto :goto_6

    .line 548
    :cond_77
    :try_start_77
    invoke-static {}, Lcom/cm/plugincluster/common/notification/proxy/PermanentNotificationProxy;->getInstance()Lcom/cm/plugincluster/common/notification/interfaces/IPermanentNotification;

    move-result-object v0

    const/4 v1, 0x1

    .line 549
    invoke-interface {v0, v1}, Lcom/cm/plugincluster/common/notification/interfaces/IPermanentNotification;->changeNotificationStyleIfNeed(I)Z

    .line 550
    const/4 v0, 0x1

    const/16 v1, 0x9

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/func/interested/ReportUtil;->reportShow(ZILjava/lang/String;)V
    :try_end_86
    .catch Landroid/os/RemoteException; {:try_start_77 .. :try_end_86} :catch_87

    goto :goto_69

    .line 555
    :catch_87
    move-exception v0

    goto :goto_69
.end method

.method private removeRunable(Ljava/lang/Runnable;)V
    .registers 5

    .prologue
    const/4 v2, 0x0

    .line 489
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v0

    iget-object v1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mTopOpenWatcherRunable:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 490
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    .line 491
    iput-object v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;

    .line 492
    sput-object v2, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mSelfPkgName:Ljava/lang/String;

    .line 493
    return-void
.end method

.method private showNotification(Ljava/lang/String;I)V
    .registers 12

    .prologue
    const/4 v8, 0x2

    const/4 v1, 0x0

    const/4 v7, 0x1

    .line 648
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()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;->isCpuReminder()Z

    move-result v0

    .line 649
    if-nez v0, :cond_12

    .line 690
    :cond_11
    :goto_11
    return-void

    .line 652
    :cond_12
    invoke-virtual {p0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->cancelNotification()V

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

    move-result-object v0

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

    move-result-object v2

    .line 655
    const v0, 0x22c073

    new-array v3, v1, [Ljava/lang/Object;

    invoke-static {v0, v3}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cm/plugincluster/common/IBoostModule;

    .line 656
    if-eqz v0, :cond_11

    .line 657
    new-instance v3, Landroid/content/Intent;

    const/16 v4, 0xa

    invoke-interface {v0, v4}, Lcom/cm/plugincluster/common/IBoostModule;->getActivityClassByType(I)Ljava/lang/Class;

    move-result-object v0

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

    .line 658
    const-string v0, "from_type"

    const/4 v4, 0x7

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

    .line 660
    const-string v0, "push_pkg"

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

    .line 661
    const-string v0, "push_type"

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

    .line 663
    new-instance v0, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;

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

    .line 664
    const/16 v4, 0x205

    iput v4, v0, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mNotifyId:I

    .line 665
    iput-boolean v7, v0, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mIsInterest:Z

    .line 666
    invoke-static {}, Lcom/cleanmaster/hpsharelib/oeam/OEMConfig;->isSetOFFNotificationSetting()Z

    move-result v4

    if-eqz v4, :cond_58

    .line 668
    iput-boolean v7, v0, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mIsUserAllow:Z

    .line 671
    :cond_58
    new-instance v4, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

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

    .line 672
    const/16 v5, 0x902

    iput v5, v4, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mFunction:I

    .line 673
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    sget v6, Lcom/cleanmaster/hpsharelib/R$string;->du_notify_title:I

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTickerTitle:Ljava/lang/CharSequence;

    .line 674
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    sget v6, Lcom/cleanmaster/hpsharelib/R$string;->du_notify_title:I

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTitle:Ljava/lang/CharSequence;

    .line 675
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v5, Lcom/cleanmaster/hpsharelib/R$string;->du_notify_content:I

    invoke-virtual {v2, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v4, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mContent:Ljava/lang/CharSequence;

    .line 676
    iput v8, v4, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mLeftIconType:I

    .line 677
    iput-object v3, v4, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mIntent:Landroid/content/Intent;

    .line 679
    invoke-static {v0, v4}, Lcom/cleanmaster/hpsharelib/notification/NotificationManagerWrapper;->sendNotification(Lcom/cm/plugincluster/common/notification/define/NotificationSetting;Lcom/cm/plugincluster/common/notification/define/NotificationModel;)Z

    move-result v0

    .line 680
    if-eqz v0, :cond_11

    .line 683
    if-ne p2, v7, :cond_97

    .line 684
    const/4 v0, 0x4

    .line 688
    :goto_92
    invoke-static {v7, v0, p1}, Lcom/cleanmaster/hpsharelib/func/interested/ReportUtil;->reportShow(ZILjava/lang/String;)V

    goto/16 :goto_11

    .line 685
    :cond_97
    if-ne p2, v8, :cond_9b

    .line 686
    const/4 v0, 0x5

    goto :goto_92

    :cond_9b
    move v0, v1

    goto :goto_92
.end method

.method private triggerCMBeforeInterestOpenPlan(Ljava/lang/String;Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;)Z
    .registers 11

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 308
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()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 v3

    .line 310
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_24

    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_24

    .line 312
    iget-boolean v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    if-eqz v0, :cond_23

    .line 313
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mTopOpenWatcherRunable:Ljava/lang/Runnable;

    invoke-direct {p0, v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->removeRunable(Ljava/lang/Runnable;)V

    .line 378
    :cond_23
    :goto_23
    return v2

    .line 318
    :cond_24
    iget-boolean v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    if-nez v0, :cond_96

    .line 321
    invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInterestOpenTime()J

    move-result-wide v4

    .line 322
    invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInterestOpenName()Ljava/lang/String;

    move-result-object v0

    .line 323
    const-wide/16 v6, 0x0

    cmp-long v6, v4, v6

    if-lez v6, :cond_43

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

    move-result-wide v6

    sub-long v4, v6, v4

    const-wide/32 v6, 0x5265c00

    cmp-long v4, v4, v6

    if-ltz v4, :cond_98

    .line 326
    :cond_43
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v0, p1, v1}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->getPlanUseCountByPkgName(Ljava/lang/String;I)I

    move-result v0

    .line 327
    iget v4, p2, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanCount:I

    if-lt v0, v4, :cond_53

    .line 328
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v0, p1, p2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->removeCfgByPkgName(Ljava/lang/String;Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;)V

    goto :goto_23

    .line 333
    :cond_53
    invoke-virtual {v3, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestOpenCount(I)V

    .line 334
    const-string v0, ""

    invoke-virtual {v3, v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestOpenName(Ljava/lang/String;)V

    .line 335
    invoke-virtual {v3, p1, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestFirstNotifyClicked(Ljava/lang/String;Z)V

    .line 336
    invoke-virtual {v3, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setDuCPUChecked(Z)V

    .line 337
    invoke-virtual {v3, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setMemNotifyTrigger(Z)V

    .line 342
    :cond_64
    invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInterestOpenCount()I

    move-result v4

    .line 343
    if-nez v4, :cond_a6

    .line 345
    const-wide/16 v6, 0x4e20

    iput-wide v6, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mDelayTime:J

    .line 346
    add-int/lit8 v0, v4, 0x1

    .line 347
    invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestOpenTime()V

    .line 349
    iput v1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mNotifyType:I

    .line 350
    invoke-virtual {v3, v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestOpenCount(I)V

    .line 351
    invoke-virtual {v3, p1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestOpenName(Ljava/lang/String;)V

    move v0, v1

    .line 368
    :goto_7c
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v3

    iget-object v4, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mTopOpenWatcherRunable:Ljava/lang/Runnable;

    invoke-virtual {v3, v4}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 369
    if-eqz v0, :cond_c2

    .line 370
    iput-boolean v1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    .line 371
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;

    .line 372
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v0

    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mTopOpenWatcherRunable:Ljava/lang/Runnable;

    iget-wide v4, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mDelayTime:J

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

    :cond_96
    :goto_96
    move v2, v1

    .line 378
    goto :goto_23

    .line 338
    :cond_98
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_64

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_64

    goto/16 :goto_23

    .line 354
    :cond_a6
    if-ne v4, v1, :cond_c7

    .line 356
    invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getDuCPUChecked()Z

    move-result v0

    if-nez v0, :cond_c5

    invoke-virtual {v3, p1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isInterestFirstNotifyClicked(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_c5

    .line 359
    const-wide/16 v6, 0x1b58

    iput-wide v6, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mDelayTime:J

    .line 360
    const/4 v0, 0x2

    iput v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mNotifyType:I

    move v0, v1

    .line 364
    :goto_bc
    add-int/lit8 v4, v4, 0x1

    .line 365
    invoke-virtual {v3, v4}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestOpenCount(I)V

    goto :goto_7c

    .line 374
    :cond_c2
    iput-boolean v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    goto :goto_96

    :cond_c5
    move v0, v2

    goto :goto_bc

    :cond_c7
    move v0, v2

    goto :goto_7c
.end method

.method private triggerInterestClosePlan(Ljava/lang/String;)Z
    .registers 14

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 386
    invoke-static {}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudSwitchKey;->getDuPolicySwitchString()Z

    move-result v2

    .line 387
    if-nez v2, :cond_9

    .line 481
    :cond_8
    :goto_8
    return v0

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

    move-result-object v2

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

    move-result-object v2

    .line 394
    invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInterestLastNotifyJunk()J

    move-result-wide v4

    .line 395
    invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInterestLastNotifyMem()J

    move-result-wide v6

    .line 396
    invoke-static {v4, v5, v6, v7}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v4

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

    move-result-wide v6

    .line 398
    sub-long v8, v6, v4

    .line 399
    const-wide/16 v10, 0x0

    cmp-long v3, v4, v10

    if-lez v3, :cond_30

    const-wide/32 v4, 0x5265c00

    cmp-long v3, v8, v4

    if-lez v3, :cond_8

    .line 403
    :cond_30
    new-instance v3, Ljava/util/Random;

    invoke-direct {v3}, Ljava/util/Random;-><init>()V

    const/4 v4, 0x2

    invoke-virtual {v3, v4}, Ljava/util/Random;->nextInt(I)I

    move-result v3

    .line 407
    if-nez v3, :cond_50

    .line 408
    invoke-virtual {v2, v6, v7}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestLastNotifyJunk(J)V

    .line 410
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v0

    new-instance v2, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$2;

    invoke-direct {v2, p0, p1}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$2;-><init>(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;)V

    const-wide/32 v4, 0xea60

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

    move v0, v1

    .line 435
    goto :goto_8

    .line 436
    :cond_50
    if-ne v3, v1, :cond_8

    .line 438
    invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getMemoryTrigger()Z

    move-result v3

    .line 439
    if-nez v3, :cond_8

    .line 443
    invoke-virtual {v2, v6, v7}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setInterestLastNotifyMem(J)V

    .line 445
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v0

    new-instance v2, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$3;

    invoke-direct {v2, p0, p1}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$3;-><init>(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;)V

    const-wide/32 v4, 0x493e0

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

    move v0, v1

    .line 478
    goto :goto_8
.end method


# virtual methods
.method public cancelNotification()V
    .registers 2

    .prologue
    .line 639
    const/16 v0, 0x205

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/notification/NotificationManagerWrapper;->cancelNotification(I)V

    .line 641
    return-void
.end method

.method public isInInterestIMSecurity(Ljava/lang/String;)Z
    .registers 3

    .prologue
    .line 119
    invoke-static {p1}, Lcom/cleanmaster/hpsharelib/func/interested/SecurityPlan;->isCallSecurity(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public isInInterestPlanState()Z
    .registers 2

    .prologue
    .line 510
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->isInPlanState()Z

    move-result v0

    return v0
.end method

.method public isPkgInInterestList(Ljava/lang/String;)Z
    .registers 3

    .prologue
    .line 570
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->isPkgInInterestList(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public onAppClosed(Ljava/lang/String;)V
    .registers 8

    .prologue
    .line 231
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 301
    :cond_6
    return-void

    .line 235
    :cond_7
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentClosedPkgName:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_17

    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentClosedPkgName:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_6

    .line 239
    :cond_17
    sget-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mSelfPkgName:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_27

    sget-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mSelfPkgName:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_6

    .line 243
    :cond_27
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentClosedPkgName:Ljava/lang/String;

    .line 246
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->getPlanByPkgName(Ljava/lang/String;)Lcom/cleanmaster/hpsharelib/func/interested/InterestedModel;

    move-result-object v0

    .line 248
    if-eqz v0, :cond_6

    iget-object v1, v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedModel;->mPkgName:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_6

    iget-object v1, v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedModel;->mPlanList:Ljava/util/List;

    if-eqz v1, :cond_6

    .line 250
    iget-object v0, v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedModel;->mPlanList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_43
    :goto_43
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_6

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;

    .line 251
    if-eqz v0, :cond_43

    iget v2, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanCount:I

    if-lez v2, :cond_43

    .line 255
    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    iget v3, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanId:I

    invoke-virtual {v2, p1, v3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->getPlanUseCountByPkgName(Ljava/lang/String;I)I

    move-result v2

    .line 257
    iget v3, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanCount:I

    if-lt v2, v3, :cond_67

    .line 258
    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v2, p1, v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->removeCfgByPkgName(Ljava/lang/String;Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;)V

    goto :goto_43

    .line 262
    :cond_67
    iget v2, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanInstall:I

    const/4 v3, 0x1

    if-ne v2, v3, :cond_7a

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

    move-result-object v2

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

    move-result-object v2

    .line 264
    invoke-virtual {v2, p1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isPkgAfterInstalled(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_43

    .line 268
    :cond_7a
    iget v2, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanInstall:I

    const/4 v3, 0x2

    if-ne v2, v3, :cond_8d

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

    move-result-object v2

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

    move-result-object v2

    .line 270
    invoke-virtual {v2, p1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isPkgAfterInstalled(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_43

    .line 274
    :cond_8d
    iget v2, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanId:I

    const/4 v3, 0x3

    if-ne v2, v3, :cond_9c

    .line 277
    invoke-direct {p0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->isNotifyTimeFull()Z

    move-result v0

    if-eqz v0, :cond_43

    .line 281
    invoke-direct {p0, p1}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->triggerInterestClosePlan(Ljava/lang/String;)Z

    goto :goto_43

    .line 282
    :cond_9c
    iget v2, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanId:I

    const/4 v3, 0x4

    if-ne v2, v3, :cond_43

    .line 284
    iget-object v0, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mIntentName:Ljava/lang/String;

    .line 286
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_43

    .line 287
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v2

    new-instance v3, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$1;

    invoke-direct {v3, p0, p1, v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$1;-><init>(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;Ljava/lang/String;)V

    const-wide/16 v4, 0x4e20

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

    goto :goto_43
.end method

.method public onAppOpen(Ljava/lang/String;)V
    .registers 8

    .prologue
    const/4 v5, 0x1

    .line 137
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 199
    :cond_7
    :goto_7
    return-void

    .line 141
    :cond_8
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_18

    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_7

    .line 145
    :cond_18
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;

    .line 147
    sget-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mSelfPkgName:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_37

    sget-object v0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mSelfPkgName:Ljava/lang/String;

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_37

    .line 149
    iget-boolean v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    if-eqz v0, :cond_33

    .line 150
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mTopOpenWatcherRunable:Ljava/lang/Runnable;

    invoke-direct {p0, v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->removeRunable(Ljava/lang/Runnable;)V

    .line 152
    :cond_33
    invoke-direct {p0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->openPermantNotifyForInterest()V

    goto :goto_7

    .line 155
    :cond_37
    invoke-direct {p0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->isNotifyTimeFull()Z

    move-result v0

    if-eqz v0, :cond_7

    .line 160
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->getPlanByPkgName(Ljava/lang/String;)Lcom/cleanmaster/hpsharelib/func/interested/InterestedModel;

    move-result-object v1

    .line 163
    const/4 v0, 0x0

    .line 165
    if-eqz v1, :cond_7

    iget-object v2, v1, Lcom/cleanmaster/hpsharelib/func/interested/InterestedModel;->mPkgName:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_7

    iget-object v2, v1, Lcom/cleanmaster/hpsharelib/func/interested/InterestedModel;->mPlanList:Ljava/util/List;

    if-eqz v2, :cond_7

    .line 167
    iget-object v1, v1, Lcom/cleanmaster/hpsharelib/func/interested/InterestedModel;->mPlanList:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    move v1, v0

    :cond_59
    :goto_59
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_9a

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;

    .line 168
    if-eqz v0, :cond_7

    .line 171
    iget v3, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanCount:I

    if-lez v3, :cond_59

    .line 175
    iget v3, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanInstall:I

    if-ne v3, v5, :cond_7d

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

    move-result-object v3

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

    move-result-object v3

    .line 177
    invoke-virtual {v3, p1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isPkgAfterInstalled(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_59

    .line 181
    :cond_7d
    iget v3, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanInstall:I

    const/4 v4, 0x2

    if-ne v3, v4, :cond_90

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

    move-result-object v3

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

    move-result-object v3

    .line 183
    invoke-virtual {v3, p1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isPkgAfterInstalled(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_59

    .line 187
    :cond_90
    iget v3, v0, Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;->mPlanId:I

    if-ne v3, v5, :cond_a7

    .line 189
    invoke-direct {p0, p1, v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->triggerCMBeforeInterestOpenPlan(Ljava/lang/String;Lcom/cleanmaster/hpsharelib/func/interested/InPlanModel;)Z

    move-result v0

    :goto_98
    move v1, v0

    .line 192
    goto :goto_59

    .line 194
    :cond_9a
    if-nez v1, :cond_7

    iget-boolean v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z

    if-eqz v0, :cond_7

    .line 195
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mTopOpenWatcherRunable:Ljava/lang/Runnable;

    invoke-direct {p0, v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->removeRunable(Ljava/lang/Runnable;)V

    goto/16 :goto_7

    :cond_a7
    move v0, v1

    goto :goto_98
.end method

.method public onUpdateMessage(Ljava/lang/String;)V
    .registers 3

    .prologue
    .line 500
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCfg:Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedCloudCfg;->onInterestedCfgChanged(Ljava/lang/String;)V

    .line 504
    return-void
.end method

.method public sendSecurityIMNotification(Ljava/lang/String;)I
    .registers 3

    .prologue
    .line 128
    invoke-static {p1}, Lcom/cleanmaster/hpsharelib/func/interested/SecurityPlan;->sendSecurityNotification(Ljava/lang/String;)I

    move-result v0

    return v0
.end method