BoostCubeCloudConfig$CloudBoostKey.smali

.class public Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudBoostKey;
.super Ljava/lang/Object;
.source "BoostCubeCloudConfig.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "CloudBoostKey"
.end annotation


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static getCloudOnScreenNotificationIntervalKey()I
    .registers 3

    .prologue
    .line 889
    const-string v0, "boost_cfg"

    const-string v1, "boost_noti_interval"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$Common;->getIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public static isLowMemoryShowToast()Z
    .registers 3

    .prologue
    .line 927
    const-string/jumbo v0, "process_settings"

    const-string v1, "low_mem_toast_show_rate"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudBoostKey;->isMatchRate(Ljava/lang/String;Ljava/lang/String;I)Z

    move-result v0

    return v0
.end method

.method private static isMatchRate(Ljava/lang/String;Ljava/lang/String;I)Z
    .registers 5

    .prologue
    const/16 v0, 0x64

    .line 934
    invoke-static {p0, p1, p2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$Common;->getIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v1

    .line 935
    if-gez v1, :cond_12

    .line 940
    :goto_8
    invoke-static {p2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudSecurityUtils;->matchRate(I)I

    move-result v0

    const/16 v1, 0x14

    if-ne v0, v1, :cond_16

    const/4 v0, 0x1

    :goto_11
    return v0

    .line 937
    :cond_12
    if-le v1, v0, :cond_18

    move p2, v0

    .line 938
    goto :goto_8

    .line 940
    :cond_16
    const/4 v0, 0x0

    goto :goto_11

    :cond_18
    move p2, v1

    goto :goto_8
.end method

.method public static isOnScreenTemperatureNotificationValid(I)Z
    .registers 4

    .prologue
    const/4 v0, 0x0

    .line 945
    .line 946
    packed-switch p0, :pswitch_data_26

    .line 968
    :cond_4
    :goto_4
    return v0

    .line 948
    :pswitch_5
    const-string v1, "boost_cfg"

    const-string v2, "boost_noti_recent"

    invoke-static {v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudSecurityUtils;->isRangeValid(Ljava/lang/String;Ljava/lang/String;)I

    move-result v1

    .line 965
    :goto_d
    const/16 v2, 0x14

    if-ne v1, v2, :cond_4

    .line 966
    const/4 v0, 0x1

    goto :goto_4

    .line 953
    :pswitch_13
    const-string v1, "boost_cfg"

    const-string v2, "boost_noti_cpu"

    invoke-static {v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudSecurityUtils;->isRangeValid(Ljava/lang/String;Ljava/lang/String;)I

    move-result v1

    goto :goto_d

    .line 958
    :pswitch_1c
    const-string v1, "boost_cfg"

    const-string v2, "boost_noti_process"

    invoke-static {v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudSecurityUtils;->isRangeValid(Ljava/lang/String;Ljava/lang/String;)I

    move-result v1

    goto :goto_d

    .line 946
    nop

    :pswitch_data_26
    .packed-switch 0x1
        :pswitch_5
        :pswitch_13
        :pswitch_1c
    .end packed-switch
.end method

.method public static isShowAbnormalToastByCloudCtrl()Z
    .registers 3

    .prologue
    .line 920
    const-string/jumbo v0, "process_settings"

    const-string v1, "abnormal_toast_show_rate"

    const/16 v2, 0x64

    invoke-static {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudBoostKey;->isMatchRate(Ljava/lang/String;Ljava/lang/String;I)Z

    move-result v0

    return v0
.end method

.method public static isShowHighUsageTextInNotification()Z
    .registers 4

    .prologue
    const/16 v3, 0x14

    .line 912
    const-string/jumbo v0, "process_settings"

    const-string v1, "check_mcc_high_mem_usage"

    invoke-static {v0, v1}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudSecurityUtils;->isMccValid(Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    .line 913
    const-string/jumbo v1, "process_settings"

    const-string v2, "check_rate_high_mem_usage"

    invoke-static {v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudSecurityUtils;->isRangeValid(Ljava/lang/String;Ljava/lang/String;)I

    move-result v1

    .line 914
    if-ne v3, v0, :cond_1a

    if-ne v3, v1, :cond_1a

    const/4 v0, 0x1

    .line 916
    :goto_19
    return v0

    .line 914
    :cond_1a
    const/4 v0, 0x0

    goto :goto_19
.end method

.method public static isShowNewUserActiveNotification()Z
    .registers 3

    .prologue
    .line 907
    const-string v0, "boost_cfg"

    const-string v1, "boost_new_active_notification"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/cloudconfig/BoostCubeCloudConfig$CloudSecurityUtils;->getCloudSwitchValid(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v0

    return v0
.end method