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 30
invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/process/util/ProcessInfoHelper;->getPhoneMemoryInfo()Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;
move-result-object v1
.line 31
if-nez v1, :cond_8
const/4 v0, 0x0
.line 42
:goto_7
return v0
.line 32
: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 33
invoke-static {}, Lcom/keniu/security/newmain/cw;->a()V
.line 36
: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 37
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 38
if-eqz v0, :cond_2b
.line 39
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 40
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;->getPercent()I
move-result v0
goto :goto_7
.line 42
:cond_2b
invoke-interface {v1}, Lcom/cm/plugincluster/boost/aidl/IPhoneMemoryInfo;->getUsedMemoryPercentage()I
move-result v0
goto :goto_7
.end method
.method public static b()J
.registers 2
.prologue
.line 109
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 c()Z
.registers 6
.prologue
const/4 v0, 0x1
.line 113
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 114
const-wide/16 v4, 0x0
cmp-long v1, v2, v4
if-nez v1, :cond_10
.line 118
:cond_f
:goto_f
return v0
.line 117
:cond_10
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
sub-long v2, v4, v2
.line 118
const-wide/32 v4, 0x927c0
cmp-long v1, v2, v4
if-gtz v1, :cond_f
const/4 v0, 0x0
goto :goto_f
.end method