a.smali
.class public Lcom/keniu/security/newmain/d/a;
.super Ljava/lang/Object;
.source "ProcessMemoryInfoHelper.java"
# direct methods
.method public static a()I
.registers 3
.prologue
.line 33
invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/process/util/ProcessInfoHelper;->getPhoneMemoryInfo()Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;
move-result-object v1
.line 34
if-nez v1, :cond_8
const/4 v0, 0x0
.line 45
:goto_7
return v0
.line 35
:cond_8
invoke-interface {v1}, Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;->getState()I
move-result v0
const/4 v2, 0x1
if-ne v0, v2, :cond_12
.line 36
invoke-static {}, Lcom/keniu/security/newmain/fz;->a()V
.line 39
:cond_12
invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/boostengine/data/BoostDataManager;->getInstance()Lcom/cleanmaster/hpsharelib/boost/boostengine/data/BoostDataManager;
move-result-object v0
sget v2, Lcom/cleanmaster/hpsharelib/boost/boostengine/BoostEngine;->BOOST_TASK_MEM:I
.line 40
invoke-virtual {v0, v2}, Lcom/cleanmaster/hpsharelib/boost/boostengine/data/BoostDataManager;->getResult(I)Lcom/cleanmaster/hpsharelib/boost/boostengine/data/BoostResult;
move-result-object v0
check-cast v0, Lcom/cleanmaster/hpsharelib/boost/boostengine/process/ProcessResult;
.line 41
if-eqz v0, :cond_2b
.line 42
iget-wide v0, v0, Lcom/cleanmaster/hpsharelib/boost/boostengine/process/ProcessResult;->mTotalAvailMem:J
invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;->newInstance(J)Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;
move-result-object v0
.line 43
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;->getPercent()I
move-result v0
goto :goto_7
.line 45
:cond_2b
invoke-interface {v1}, Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;->getUsedMemoryPercentage()I
move-result v0
goto :goto_7
.end method
.method private static a(IJJ)I
.registers 12
.prologue
const/4 v5, 0x1
const/4 v0, 0x0
.line 93
const/16 v1, 0x9
const-string v2, "section_boost_threshold"
const-string v3, "threshold"
const-string v4, "70,70"
invoke-static {v1, v2, v3, v4}, Lcom/cleanmaster/hpsharelib/recommendapps/CloudConfigDataGetter;->getStringValue(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
.line 95
const/4 v1, 0x2
new-array v1, v1, [Ljava/lang/String;
const-string v3, "70"
aput-object v3, v1, v0
const-string v3, "70"
aput-object v3, v1, v5
.line 96
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v3
if-nez v3, :cond_25
.line 97
const-string v1, ","
invoke-virtual {v2, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v1
.line 101
:cond_25
:try_start_25
invoke-static {p1, p2}, Lcom/keniu/security/newmain/d/a;->a(J)Z
move-result v2
if-eqz v2, :cond_35
.line 102
const/4 v2, 0x1
aget-object v1, v1, v2
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v1
.line 106
:goto_32
if-lt p0, v1, :cond_3d
.line 108
:goto_34
return p0
.line 104
:cond_35
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
:try_end_3b
.catch Ljava/lang/Exception; {:try_start_25 .. :try_end_3b} :catch_3f
move-result v1
goto :goto_32
:cond_3d
move p0, v0
.line 106
goto :goto_34
.line 107
:catch_3f
move-exception v1
move p0, v0
.line 108
goto :goto_34
.end method
.method private static a(Lcom/cleanmaster/hpsharelib/boost/boostengine/process/ProcessResult;)I
.registers 7
.prologue
.line 66
if-nez p0, :cond_4
.line 67
const/4 v0, 0x0
.line 70
:goto_3
return v0
.line 69
:cond_4
iget-wide v0, p0, Lcom/cleanmaster/hpsharelib/boost/boostengine/process/ProcessResult;->mTotalAvailMem:J
invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;->newInstance(J)Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;
move-result-object v0
.line 70
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;->getPercent()I
move-result v1
iget-wide v2, v0, Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;->totalSize:J
iget-wide v4, p0, Lcom/cleanmaster/hpsharelib/boost/boostengine/process/ProcessResult;->mTotalAvailMem:J
invoke-static {v1, v2, v3, v4, v5}, Lcom/keniu/security/newmain/d/a;->a(IJJ)I
move-result v0
goto :goto_3
.end method
.method private static a(Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;)I
.registers 7
.prologue
.line 74
if-nez p0, :cond_4
.line 75
const/4 v0, 0x0
.line 80
:goto_3
return v0
.line 77
:cond_4
invoke-interface {p0}, Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;->getState()I
move-result v0
const/4 v1, 0x1
if-ne v0, v1, :cond_e
.line 78
invoke-static {}, Lcom/keniu/security/newmain/fz;->a()V
.line 80
:cond_e
invoke-interface {p0}, Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;->getUsedMemoryPercentage()I
move-result v0
invoke-interface {p0}, Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;->getTotalMemoryByte()J
move-result-wide v2
invoke-interface {p0}, Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;->getAvailableMemoryByte()J
move-result-wide v4
invoke-static {v0, v2, v3, v4, v5}, Lcom/keniu/security/newmain/d/a;->a(IJJ)I
move-result v0
goto :goto_3
.end method
.method private static a(J)Z
.registers 6
.prologue
.line 87
const/16 v0, 0x9
const-string v1, "section_boost_threshold"
const-string v2, "size"
const/4 v3, 0x4
invoke-static {v0, v1, v2, v3}, Lcom/cleanmaster/hpsharelib/recommendapps/CloudConfigDataGetter;->getIntValue(ILjava/lang/String;Ljava/lang/String;I)I
move-result v0
.line 89
mul-int/lit16 v0, v0, 0x400
mul-int/lit16 v0, v0, 0x400
int-to-long v0, v0
const-wide/16 v2, 0x400
mul-long/2addr v0, v2
cmp-long v0, p0, v0
if-lez v0, :cond_19
const/4 v0, 0x1
:goto_18
return v0
:cond_19
const/4 v0, 0x0
goto :goto_18
.end method
.method public static b()I
.registers 2
.prologue
.line 56
invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/boostengine/data/BoostDataManager;->getInstance()Lcom/cleanmaster/hpsharelib/boost/boostengine/data/BoostDataManager;
move-result-object v0
sget v1, Lcom/cleanmaster/hpsharelib/boost/boostengine/BoostEngine;->BOOST_TASK_MEM:I
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/boost/boostengine/data/BoostDataManager;->getResult(I)Lcom/cleanmaster/hpsharelib/boost/boostengine/data/BoostResult;
move-result-object v0
check-cast v0, Lcom/cleanmaster/hpsharelib/boost/boostengine/process/ProcessResult;
.line 57
if-eqz v0, :cond_13
.line 58
invoke-static {v0}, Lcom/keniu/security/newmain/d/a;->a(Lcom/cleanmaster/hpsharelib/boost/boostengine/process/ProcessResult;)I
move-result v0
.line 61
:goto_12
return v0
.line 60
:cond_13
invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/process/util/ProcessInfoHelper;->getPhoneMemoryInfo()Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;
move-result-object v0
.line 61
invoke-static {v0}, Lcom/keniu/security/newmain/d/a;->a(Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;)I
move-result v0
goto :goto_12
.end method
.method public static c()Z
.registers 8
.prologue
const/16 v7, 0x9
const/4 v1, 0x1
const/4 v0, 0x0
.line 114
const-string v2, "boost_red_dot"
const-string v3, "enable"
invoke-static {v7, v2, v3, v1}, Lcom/cleanmaster/hpsharelib/recommendapps/CloudConfigDataGetter;->getBooleanValue(ILjava/lang/String;Ljava/lang/String;Z)Z
move-result v2
.line 116
if-nez v2, :cond_f
.line 123
:cond_e
:goto_e
return v0
.line 120
:cond_f
invoke-static {}, Lcom/keniu/security/m;->d()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
invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getBoostRedDotShowTime()J
move-result-wide v2
.line 121
const-string v4, "boost_red_dot"
const-string v5, "boost_red_dot_show_interval"
const/16 v6, 0x18
invoke-static {v7, v4, v5, v6}, Lcom/cleanmaster/hpsharelib/recommendapps/CloudConfigDataGetter;->getIntValue(ILjava/lang/String;Ljava/lang/String;I)I
move-result v4
.line 123
const-wide/16 v6, 0x0
cmp-long v5, v2, v6
if-eqz v5, :cond_3c
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v6
sub-long v2, v6, v2
sget-object v5, Ljava/util/concurrent/TimeUnit;->HOURS:Ljava/util/concurrent/TimeUnit;
int-to-long v6, v4
invoke-virtual {v5, v6, v7}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v4
cmp-long v2, v2, v4
if-ltz v2, :cond_e
:cond_3c
move v0, v1
goto :goto_e
.end method
.method public static d()J
.registers 2
.prologue
.line 127
invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getBoostCleanSize()J
move-result-wide v0
return-wide v0
.end method
.method public static e()Z
.registers 6
.prologue
const/4 v0, 0x1
.line 131
invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v1
invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getBoostCleanTime()J
move-result-wide v2
.line 132
const-wide/16 v4, 0x0
cmp-long v1, v2, v4
if-nez v1, :cond_10
.line 136
:cond_f
:goto_f
return v0
.line 135
:cond_10
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v4
sub-long v2, v4, v2
.line 136
const-wide/32 v4, 0x927c0
cmp-long v1, v2, v4
if-gtz v1, :cond_f
const/4 v0, 0x0
goto :goto_f
.end method