ai.smali

.class public Lcom/cleanmaster/notification/ai;
.super Ljava/lang/Object;
.source "PermanentNotificationConfigManager.java"


# static fields
.field private static a:Lcom/cleanmaster/notification/ai;

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


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

    .prologue
    .line 31
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/utils/CommonUtils;->getMCC(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

    return-void
.end method

.method private constructor <init>()V
    .registers 1

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

    .line 35
    return-void
.end method

.method public static declared-synchronized a()Lcom/cleanmaster/notification/ai;
    .registers 2

    .prologue
    .line 38
    const-class v1, Lcom/cleanmaster/notification/ai;

    monitor-enter v1

    :try_start_3
    sget-object v0, Lcom/cleanmaster/notification/ai;->a:Lcom/cleanmaster/notification/ai;

    if-nez v0, :cond_e

    .line 39
    new-instance v0, Lcom/cleanmaster/notification/ai;

    invoke-direct {v0}, Lcom/cleanmaster/notification/ai;-><init>()V

    sput-object v0, Lcom/cleanmaster/notification/ai;->a:Lcom/cleanmaster/notification/ai;

    .line 41
    :cond_e
    sget-object v0, Lcom/cleanmaster/notification/ai;->a:Lcom/cleanmaster/notification/ai;
    :try_end_10
    .catchall {:try_start_3 .. :try_end_10} :catchall_12

    monitor-exit v1

    return-object v0

    .line 38
    :catchall_12
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method private b(I)I
    .registers 3

    .prologue
    const/4 v0, 0x1

    .line 147
    if-eq p1, v0, :cond_6

    if-eqz p1, :cond_6

    move p1, v0

    .line 150
    :cond_6
    return p1
.end method

.method public static h()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 239
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x10

    if-lt v1, v2, :cond_8

    .line 247
    :cond_7
    :goto_7
    return v0

    .line 243
    :cond_8
    sget-object v1, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_7

    .line 244
    const-string v1, "452,515,214,502,722,732,405,410"

    sget-object v2, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_7

    const/4 v0, 0x1

    goto :goto_7
.end method

.method public static i()Z
    .registers 3

    .prologue
    const/4 v0, 0x1

    .line 254
    invoke-static {}, Lcom/keniu/security/l;->d()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

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotifFeatureMultiLineStatus()I

    move-result v1

    .line 255
    const/4 v2, -0x1

    if-ne v1, v2, :cond_1f

    .line 256
    invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;

    .line 257
    invoke-static {}, Lcom/keniu/security/l;->d()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

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotifFeatureMultiLineStatus()I

    move-result v1

    .line 259
    :cond_1f
    if-ne v1, v0, :cond_22

    :goto_21
    return v0

    :cond_22
    const/4 v0, 0x0

    goto :goto_21
.end method

.method public static j()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 265
    sget-object v1, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_15

    .line 266
    const-string v1, "432\uff0c424\uff0c724\uff0c520\uff0c222\uff0c286"

    sget-object v2, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_15

    const/4 v0, 0x1

    .line 268
    :cond_15
    return v0
.end method

.method public static k()Z
    .registers 5

    .prologue
    const/4 v1, 0x0

    .line 278
    const-string v0, ""

    .line 281
    :try_start_3
    const-string v2, "permanent_notification"

    const-string v3, "show_notification_guide_country"

    const-string v4, "255,234,505,460"

    invoke-static {v2, v3, v4}, Lcom/cleanmaster/hpsharelib/cloudconfig/CloudCfgDataWrapper;->getCloudCfgStringValue(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_c} :catch_2c

    move-result-object v0

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

    move-result v2

    if-eqz v2, :cond_15

    .line 286
    const-string v0, "255,234,505,460"

    .line 289
    :cond_15
    sget-object v2, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

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

    move-result v2

    if-nez v2, :cond_2a

    .line 290
    sget-object v2, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    const/4 v2, -0x1

    if-eq v0, v2, :cond_28

    const/4 v0, 0x1

    .line 293
    :goto_27
    return v0

    :cond_28
    move v0, v1

    .line 290
    goto :goto_27

    :cond_2a
    move v0, v1

    .line 293
    goto :goto_27

    .line 282
    :catch_2c
    move-exception v2

    goto :goto_d
.end method

.method public static l()Z
    .registers 5

    .prologue
    const/4 v1, 0x0

    .line 305
    const/4 v0, 0x0

    .line 308
    :try_start_2
    const-string v2, "permanent_notification"

    const-string v3, "show_notification_replace_country"

    const-string v4, "255,234,505,460"

    invoke-static {v2, v3, v4}, Lcom/cleanmaster/hpsharelib/cloudconfig/CloudCfgDataWrapper;->getCloudCfgStringValue(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_b} :catch_29

    move-result-object v0

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

    move-result v2

    if-nez v2, :cond_27

    sget-object v2, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

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

    move-result v2

    if-nez v2, :cond_27

    .line 313
    sget-object v2, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    const/4 v2, -0x1

    if-eq v0, v2, :cond_25

    const/4 v0, 0x1

    .line 316
    :goto_24
    return v0

    :cond_25
    move v0, v1

    .line 313
    goto :goto_24

    :cond_27
    move v0, v1

    .line 316
    goto :goto_24

    .line 309
    :catch_29
    move-exception v2

    goto :goto_c
.end method

.method public static m()J
    .registers 4

    .prologue
    const/4 v0, 0x7

    .line 327
    invoke-static {}, Lcom/keniu/security/l;->d()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

    .line 328
    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isPermanentNotificationHasOpened()Z

    move-result v2

    .line 329
    invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;

    move-result-object v3

    invoke-virtual {v3}, Lcom/cleanmaster/notification/ai;->b()Z

    move-result v3

    .line 331
    if-nez v2, :cond_27

    if-nez v3, :cond_27

    .line 341
    invoke-static {}, Lcom/keniu/security/af;->c()Z

    move-result v0

    if-eqz v0, :cond_23

    .line 342
    const-wide/32 v0, 0xf731400

    .line 377
    :goto_22
    return-wide v0

    .line 344
    :cond_23
    const-wide/32 v0, 0x240c8400

    goto :goto_22

    .line 346
    :cond_27
    if-eqz v3, :cond_3c

    .line 348
    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorCancelCount()I

    move-result v1

    .line 350
    packed-switch v1, :pswitch_data_40

    .line 373
    :goto_30
    :pswitch_30
    const v1, 0x5265c00

    mul-int/2addr v0, v1

    int-to-long v0, v0

    goto :goto_22

    .line 357
    :pswitch_36
    const/16 v0, 0xe

    .line 358
    goto :goto_30

    .line 361
    :pswitch_39
    const/16 v0, 0x15

    .line 362
    goto :goto_30

    .line 377
    :cond_3c
    const-wide/16 v0, -0x1

    goto :goto_22

    .line 350
    nop

    :pswitch_data_40
    .packed-switch 0x0
        :pswitch_30
        :pswitch_30
        :pswitch_36
        :pswitch_39
    .end packed-switch
.end method

.method private n()Z
    .registers 4

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 169
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->isMiui()Z

    move-result v2

    if-eqz v2, :cond_9

    .line 187
    :cond_8
    :goto_8
    return v0

    .line 173
    :cond_9
    invoke-virtual {p0}, Lcom/cleanmaster/notification/ai;->e()Z

    move-result v2

    if-nez v2, :cond_8

    .line 174
    invoke-static {}, Lcom/keniu/security/af;->c()Z

    move-result v2

    if-eqz v2, :cond_1d

    .line 175
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/ConflictCommons;->isCNVersion()Z

    move-result v2

    if-nez v2, :cond_8

    move v0, v1

    .line 178
    goto :goto_8

    .line 180
    :cond_1d
    invoke-static {}, Lcom/keniu/security/af;->b()Z

    move-result v2

    if-nez v2, :cond_8

    move v0, v1

    .line 183
    goto :goto_8
.end method


# virtual methods
.method public a(I)I
    .registers 4

    .prologue
    .line 141
    invoke-direct {p0, p1}, Lcom/cleanmaster/notification/ai;->b(I)I

    move-result v0

    .line 142
    invoke-static {}, Lcom/keniu/security/l;->d()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

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

    .line 143
    return v0
.end method

.method public b()Z
    .registers 5

    .prologue
    const/4 v3, 0x3

    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 45
    invoke-static {}, Lcom/keniu/security/l;->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;->getPermanentNotifSwitch()I

    move-result v2

    .line 47
    packed-switch v2, :pswitch_data_56

    .line 67
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/keniu/security/af;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_44

    .line 68
    invoke-direct {p0}, Lcom/cleanmaster/notification/ai;->n()Z

    move-result v0

    .line 79
    :goto_20
    if-nez v0, :cond_49

    .line 80
    invoke-static {}, Lcom/keniu/security/l;->d()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, 0x2

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

    .line 85
    :cond_2e
    :goto_2e
    :pswitch_2e
    return v0

    .line 51
    :pswitch_2f
    invoke-static {}, Lcom/cleanmaster/hpsharelib/oeam/OEMConfig;->isSupportNoticationToggle()Z

    move-result v2

    if-eqz v2, :cond_2e

    .line 52
    invoke-static {}, Lcom/keniu/security/l;->d()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, v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotifSwitch(I)V

    move v0, v1

    .line 53
    goto :goto_2e

    :pswitch_42
    move v0, v1

    .line 63
    goto :goto_2e

    .line 70
    :cond_44
    invoke-virtual {p0}, Lcom/cleanmaster/notification/ai;->c()Z

    move-result v0

    goto :goto_20

    .line 82
    :cond_49
    invoke-static {}, Lcom/keniu/security/l;->d()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

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

    goto :goto_2e

    .line 47
    nop

    :pswitch_data_56
    .packed-switch 0x0
        :pswitch_2e
        :pswitch_42
        :pswitch_2f
        :pswitch_42
    .end packed-switch
.end method

.method public c()Z
    .registers 3

    .prologue
    const/4 v1, 0x0

    .line 120
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->isMiui()Z

    move-result v0

    if-eqz v0, :cond_7

    .line 128
    :cond_7
    return v1
.end method

.method public d()I
    .registers 3

    .prologue
    .line 132
    invoke-static {}, Lcom/keniu/security/l;->d()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;->getPermanentNotifStyle()I

    move-result v0

    .line 133
    invoke-direct {p0, v0}, Lcom/cleanmaster/notification/ai;->b(I)I

    move-result v1

    .line 134
    if-eq v0, v1, :cond_15

    .line 135
    invoke-virtual {p0, v1}, Lcom/cleanmaster/notification/ai;->a(I)I

    .line 137
    :cond_15
    return v1
.end method

.method public e()Z
    .registers 4

    .prologue
    const/4 v0, 0x1

    .line 162
    sget-object v1, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

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

    move-result v1

    if-nez v1, :cond_14

    .line 163
    const-string v1, "310,311,250,262,222,466,208,214,450,302,440,268,202,240,334,724,286,234,420,452,722,520,515,255"

    sget-object v2, Lcom/cleanmaster/notification/ai;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_15

    .line 165
    :cond_14
    :goto_14
    return v0

    .line 163
    :cond_15
    const/4 v0, 0x0

    goto :goto_14
.end method

.method public f()Z
    .registers 5

    .prologue
    const/4 v0, 0x1

    .line 194
    invoke-static {}, Lcom/keniu/security/l;->d()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

    .line 195
    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotifDialogTipsStatus()I

    move-result v2

    .line 196
    if-ltz v2, :cond_25

    const/4 v3, 0x3

    if-ge v2, v3, :cond_25

    invoke-static {}, Lcom/keniu/security/af;->c()Z

    move-result v2

    if-eqz v2, :cond_25

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotifStyle()I

    move-result v2

    if-ne v2, v0, :cond_25

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

    move-result v1

    if-nez v1, :cond_25

    .line 199
    :goto_24
    return v0

    :cond_25
    const/4 v0, 0x0

    goto :goto_24
.end method

.method public g()Z
    .registers 4

    .prologue
    const/4 v0, 0x1

    .line 203
    invoke-static {}, Lcom/keniu/security/l;->d()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

    .line 204
    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotifDialogTipsStatus()I

    move-result v2

    .line 205
    if-nez v2, :cond_22

    invoke-static {}, Lcom/keniu/security/af;->c()Z

    move-result v2

    if-eqz v2, :cond_22

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotifStyle()I

    move-result v2

    if-ne v2, v0, :cond_22

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

    move-result v1

    if-nez v1, :cond_22

    .line 208
    :goto_21
    return v0

    :cond_22
    const/4 v0, 0x0

    goto :goto_21
.end method