InterestedUtils$4.smali

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

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;


# direct methods
.method constructor <init>(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)V
    .registers 2

    .prologue
    .line 576
    iput-object p1, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

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

    return-void
.end method


# virtual methods
.method public run()V
    .registers 7

    .prologue
    const/4 v3, 0x1

    .line 580
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mPkgLock:Ljava/lang/Object;
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$300(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1

    .line 581
    :try_start_8
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$400(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v0

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

    move-result v0

    if-nez v0, :cond_78

    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$500(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v0

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

    move-result v0

    if-nez v0, :cond_78

    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    .line 582
    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$400(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v0

    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$500(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v2

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

    move-result v0

    if-eqz v0, :cond_78

    .line 584
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # invokes: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->isNotifyTimeFull()Z
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$200(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Z

    move-result v0

    if-nez v0, :cond_3c

    .line 585
    monitor-exit v1

    .line 621
    :goto_3b
    return-void

    .line 590
    :cond_3c
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mNotifyType:I
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$600(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)I

    move-result v0

    if-ne v0, v3, :cond_c5

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

    move-result-wide v2

    const-wide/high16 v4, 0x4024000000000000L    # 10.0

    mul-double/2addr v2, v4

    double-to-int v0, v2

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

    if-nez v0, :cond_8f

    .line 596
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$400(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mNotifyType:I
    invoke-static {v3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$600(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)I

    move-result v3

    # invokes: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->showNotification(Ljava/lang/String;I)V
    invoke-static {v0, v2, v3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$700(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;I)V

    .line 610
    :goto_61
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$500(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    # invokes: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->addPlanCount(Ljava/lang/String;I)V
    invoke-static {v0, v2, v3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$100(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;I)V

    .line 615
    :goto_6d
    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;->setInterestLastNotifyTime()V

    .line 617
    :cond_78
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    const/4 v2, 0x0

    # setter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInOpenDelayTime:Z
    invoke-static {v0, v2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$802(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Z)Z

    .line 618
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    const/4 v2, 0x0

    # setter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mInterestPkgName:Ljava/lang/String;
    invoke-static {v0, v2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$502(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;)Ljava/lang/String;

    .line 619
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    const/4 v2, 0x0

    # setter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;
    invoke-static {v0, v2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$402(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;)Ljava/lang/String;

    .line 620
    monitor-exit v1

    goto :goto_3b

    :catchall_8c
    move-exception v0

    monitor-exit v1
    :try_end_8e
    .catchall {:try_start_8 .. :try_end_8e} :catchall_8c

    throw v0

    .line 599
    :cond_8f
    :try_start_8f
    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

    const/4 v2, 0x1

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

    .line 600
    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

    const/4 v2, 0x2

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

    .line 601
    invoke-static {}, Lcom/cm/plugincluster/core/proxy/CoreCommonProxy;->getUsedMemoryWatcher()Lcom/cm/plugincluster/boost/process/IUsedMemoryWatcher;

    move-result-object v0

    .line 602
    if-nez v0, :cond_af

    .line 603
    monitor-exit v1

    goto :goto_3b

    .line 606
    :cond_af
    const/4 v2, 0x1

    iget-object v3, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;
    invoke-static {v3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$400(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Lcom/cm/plugincluster/boost/process/IUsedMemoryWatcher;->showNotifyAfterDUExit(ILjava/lang/String;)Z

    .line 607
    const/4 v0, 0x1

    const/4 v2, 0x6

    iget-object v3, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;
    invoke-static {v3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$400(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v2, v3}, Lcom/cleanmaster/hpsharelib/func/interested/ReportUtil;->reportShow(ZILjava/lang/String;)V

    goto :goto_61

    .line 612
    :cond_c5
    iget-object v0, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    iget-object v2, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mCurrentPkgName:Ljava/lang/String;
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$400(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils$4;->this$0:Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;

    # getter for: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->mNotifyType:I
    invoke-static {v3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$600(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;)I

    move-result v3

    # invokes: Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->showNotification(Ljava/lang/String;I)V
    invoke-static {v0, v2, v3}, Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;->access$700(Lcom/cleanmaster/hpsharelib/func/interested/InterestedUtils;Ljava/lang/String;I)V
    :try_end_d6
    .catchall {:try_start_8f .. :try_end_d6} :catchall_8c

    goto :goto_6d
.end method