ak.smali
.class public Lcom/cleanmaster/notification/ak;
.super Ljava/lang/Object;
.source "PermanentNotificationManager.java"
# interfaces
.implements Lcom/cm/plugincluster/common/notification/interfaces/IPermanentNotification;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/cleanmaster/notification/ak$a;
}
.end annotation
# static fields
.field private static C:I
.field private static D:Landroid/os/Handler;
.field private static F:Ljava/lang/Boolean;
.field private static I:Landroid/app/AlarmManager;
.field private static J:Z
.field private static K:Lcom/cleanmaster/notification/ak;
.field private static final b:Ljava/lang/String;
.field private static c:Z
# instance fields
.field private A:Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;
.field private B:J
.field private final E:Landroid/app/NotificationManager;
.field private G:Ljava/lang/ref/SoftReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/SoftReference",
"<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
.end field
.field private H:Ljava/lang/ref/SoftReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/SoftReference",
"<",
"Landroid/graphics/Canvas;",
">;"
}
.end annotation
.end field
.field private final L:I
.field public a:Lcom/cleanmaster/service/PermanentService;
.field private d:Landroid/graphics/Paint;
.field private e:Landroid/graphics/PaintFlagsDrawFilter;
.field private f:Z
.field private g:Z
.field private h:Z
.field private i:Z
.field private j:Z
.field private k:Z
.field private l:Z
.field private m:Z
.field private n:I
.field private o:Z
.field private p:I
.field private q:I
.field private r:I
.field private s:Ljava/lang/String;
.field private t:Ljava/lang/Boolean;
.field private u:Lcom/cleanmaster/notification/ak$a;
.field private v:I
.field private w:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.field private x:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.field private y:Ljava/lang/String;
.field private z:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 4
.prologue
const/4 v3, 0x0
const/4 v2, 0x0
.line 112
invoke-static {}, Lcom/keniu/security/f;->a()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/cleanmaster/notification/ak;->b:Ljava/lang/String;
.line 156
sput v3, Lcom/cleanmaster/notification/ak;->C:I
.line 158
new-instance v0, Landroid/os/Handler;
invoke-static {}, Lcom/keniu/security/l;->e()Lcom/keniu/security/l;
move-result-object v1
invoke-virtual {v1}, Lcom/keniu/security/l;->l()Landroid/os/Handler;
move-result-object v1
invoke-virtual {v1}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
sput-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
.line 163
sput-object v2, Lcom/cleanmaster/notification/ak;->F:Ljava/lang/Boolean;
.line 168
sput-object v2, Lcom/cleanmaster/notification/ak;->I:Landroid/app/AlarmManager;
.line 169
sput-boolean v3, Lcom/cleanmaster/notification/ak;->J:Z
.line 171
sput-object v2, Lcom/cleanmaster/notification/ak;->K:Lcom/cleanmaster/notification/ak;
return-void
.end method
.method private constructor <init>()V
.registers 5
.prologue
const/4 v3, 0x1
const/4 v2, 0x0
const/4 v1, 0x0
const/4 v0, -0x1
.line 181
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 125
iput-boolean v2, p0, Lcom/cleanmaster/notification/ak;->f:Z
.line 126
iput-boolean v3, p0, Lcom/cleanmaster/notification/ak;->g:Z
.line 129
iput-boolean v3, p0, Lcom/cleanmaster/notification/ak;->i:Z
.line 130
iput-boolean v2, p0, Lcom/cleanmaster/notification/ak;->j:Z
.line 135
iput v0, p0, Lcom/cleanmaster/notification/ak;->n:I
.line 138
iput v0, p0, Lcom/cleanmaster/notification/ak;->p:I
.line 139
iput v0, p0, Lcom/cleanmaster/notification/ak;->q:I
.line 141
iput v0, p0, Lcom/cleanmaster/notification/ak;->r:I
.line 142
const-string v0, ""
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->s:Ljava/lang/String;
.line 143
iput-object v1, p0, Lcom/cleanmaster/notification/ak;->t:Ljava/lang/Boolean;
.line 149
const-string v0, ""
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->y:Ljava/lang/String;
.line 162
iput-object v1, p0, Lcom/cleanmaster/notification/ak;->a:Lcom/cleanmaster/service/PermanentService;
.line 165
iput-object v1, p0, Lcom/cleanmaster/notification/ak;->G:Ljava/lang/ref/SoftReference;
.line 166
iput-object v1, p0, Lcom/cleanmaster/notification/ak;->H:Ljava/lang/ref/SoftReference;
.line 174
const/4 v0, 0x3
iput v0, p0, Lcom/cleanmaster/notification/ak;->L:I
.line 182
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
const-string v1, "notification"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/NotificationManager;
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->E:Landroid/app/NotificationManager;
.line 183
return-void
.end method
.method private declared-synchronized A()V
.registers 10
.prologue
const/4 v3, 0x1
.line 1163
monitor-enter p0
:try_start_2
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1165
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
:try_end_7
.catchall {:try_start_2 .. :try_end_7} :catchall_114
const/16 v1, 0xe
if-ge v0, v1, :cond_d
.line 1238
:cond_b
:goto_b
monitor-exit p0
return-void
.line 1169
:cond_d
:try_start_d
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v2
.line 1171
invoke-static {v2}, Lcom/cleanmaster/notification/ak;->b(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_b
.line 1175
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cleanmaster/notification/ai;->a(I)I
.line 1176
invoke-static {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
.line 1177
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotifFeatureSwitchChecked(Z)V
.line 1178
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotifFeatureFunctionChecked(Z)V
.line 1179
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotifFeatureCommonAppChecked(Z)V
:try_end_2f
.catchall {:try_start_d .. :try_end_2f} :catchall_114
.line 1182
:try_start_2f
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cleanmaster/notification/aj;->getTopPriorityTitles(I)Ljava/util/ArrayList;
move-result-object v0
.line 1183
if-nez v0, :cond_11c
.line 1184
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
move-object v1, v0
.line 1187
:goto_40
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v0
if-ge v0, v3, :cond_53
.line 1188
invoke-interface {v1}, Ljava/util/List;->clear()V
.line 1189
const v0, 0x7f0a09ff
invoke-virtual {v2, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 1192
:cond_53
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
if-eqz v0, :cond_5c
.line 1193
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 1196
:cond_5c
invoke-direct {p0, v2}, Lcom/cleanmaster/notification/ak;->g(Landroid/content/Context;)Landroid/widget/RemoteViews;
move-result-object v3
.line 1200
invoke-static {}, Lcom/cleanmaster/notification/ai;->i()Z
move-result v0
if-eqz v0, :cond_106
.line 1201
new-instance v0, Landroid/widget/RemoteViews;
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v4
const v5, 0x7f04017e
invoke-direct {v0, v4, v5}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
.line 1206
:goto_72
const v4, 0x7f10061e
invoke-virtual {v3}, Landroid/widget/RemoteViews;->clone()Landroid/widget/RemoteViews;
move-result-object v5
invoke-virtual {v0, v4, v5}, Landroid/widget/RemoteViews;->addView(ILandroid/widget/RemoteViews;)V
.line 1208
const v4, 0x7f100626
invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v5
const v6, 0x7f0a0f70
invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v5
invoke-virtual {v0, v4, v5}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
.line 1209
const v4, 0x7f100627
invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v5
const v6, 0x7f0a0f71
invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v5
const/4 v6, 0x1
new-array v6, v6, [Ljava/lang/Object;
const/4 v7, 0x0
const/4 v8, 0x0
invoke-interface {v1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
aput-object v1, v6, v7
invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v4, v1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
.line 1211
new-instance v1, Landroid/content/Intent;
const-class v4, Lcom/cleanmaster/service/PermanentService;
invoke-direct {v1, v2, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 1212
const-string v4, "extra_data"
const/16 v5, 0xce
invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 1213
const-string v4, "cheOnAppUsageChangeExck_type"
const/16 v5, 0x131
invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 1214
sget-object v4, Lcom/cleanmaster/notification/ak;->b:Ljava/lang/String;
invoke-virtual {v1, v4}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 1215
const/16 v4, 0xce
const/high16 v5, 0x10000000
invoke-static {v2, v4, v1, v5}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v1
.line 1216
const v4, 0x7f100625
invoke-virtual {v0, v4, v1}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
.line 1217
const v4, 0x7f100626
invoke-virtual {v0, v4, v1}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
.line 1219
invoke-direct {p0, v2}, Lcom/cleanmaster/notification/ak;->f(Landroid/content/Context;)Landroid/app/Notification;
move-result-object v1
.line 1220
const/16 v2, 0x10
iput v2, v1, Landroid/app/Notification;->flags:I
.line 1222
invoke-static {}, Lcom/cleanmaster/notification/ai;->i()Z
move-result v2
if-eqz v2, :cond_117
.line 1223
iput-object v3, v1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
:try_end_eb
.catch Ljava/lang/Exception; {:try_start_2f .. :try_end_eb} :catch_103
.catchall {:try_start_2f .. :try_end_eb} :catchall_114
.line 1226
:try_start_eb
const-class v2, Landroid/app/Notification;
const-string v3, "bigContentView"
invoke-virtual {v2, v3}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v2
.line 1227
const/4 v3, 0x1
invoke-virtual {v2, v3}, Ljava/lang/reflect/Field;->setAccessible(Z)V
.line 1228
invoke-virtual {v2, v1, v0}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_fa
.catch Ljava/lang/Exception; {:try_start_eb .. :try_end_fa} :catch_11a
.catchall {:try_start_eb .. :try_end_fa} :catchall_114
.line 1235
:goto_fa
:try_start_fa
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->E:Landroid/app/NotificationManager;
const/16 v2, 0x3001
invoke-virtual {v0, v2, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
goto/16 :goto_b
.line 1236
:catch_103
move-exception v0
goto/16 :goto_b
.line 1203
:cond_106
new-instance v0, Landroid/widget/RemoteViews;
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v4
const v5, 0x7f04017f
invoke-direct {v0, v4, v5}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
:try_end_112
.catch Ljava/lang/Exception; {:try_start_fa .. :try_end_112} :catch_103
.catchall {:try_start_fa .. :try_end_112} :catchall_114
goto/16 :goto_72
.line 1163
:catchall_114
move-exception v0
monitor-exit p0
throw v0
.line 1232
:cond_117
:try_start_117
iput-object v0, v1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
:try_end_119
.catch Ljava/lang/Exception; {:try_start_117 .. :try_end_119} :catch_103
.catchall {:try_start_117 .. :try_end_119} :catchall_114
goto :goto_fa
.line 1229
:catch_11a
move-exception v0
goto :goto_fa
:cond_11c
move-object v1, v0
goto/16 :goto_40
.end method
.method private declared-synchronized B()V
.registers 4
.prologue
.line 1241
monitor-enter p0
:try_start_1
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1243
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->b()Z
:try_end_b
.catchall {:try_start_1 .. :try_end_b} :catchall_ef
move-result v0
.line 1244
if-nez v0, :cond_10
.line 1304
:cond_e
:goto_e
monitor-exit p0
return-void
.line 1248
:cond_10
:try_start_10
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0xe
if-lt v0, v1, :cond_e
.line 1252
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->f:Z
if-nez v0, :cond_e
.line 1254
invoke-static {}, Lcom/keniu/security/af;->c()Z
move-result v0
.line 1255
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 1256
invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isPermanentNotificationCleanFontImage()Z
move-result v1
.line 1257
if-nez v0, :cond_67
if-eqz v1, :cond_67
.line 1258
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
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationCleanFontImage(Z)V
:try_end_3a
.catchall {:try_start_10 .. :try_end_3a} :catchall_ef
.line 1260
:try_start_3a
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->getDataDir(Landroid/content/Context;)Ljava/io/File;
move-result-object v1
invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "function_icons"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 1263
new-instance v1, Ljava/io/File;
invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 1264
invoke-static {v1}, Lcom/cleanmaster/base/util/system/NotificationUtil;->deleteDirectory(Ljava/io/File;)V
:try_end_67
.catch Ljava/lang/Exception; {:try_start_3a .. :try_end_67} :catch_f2
.catchall {:try_start_3a .. :try_end_67} :catchall_ef
.line 1270
:cond_67
:goto_67
:try_start_67
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/aj;->h()V
.line 1271
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/aj;->i()Z
move-result v0
if-nez v0, :cond_7f
.line 1272
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/aj;->j()V
.line 1275
:cond_7f
invoke-static {}, Lcom/cleanmaster/notification/ag;->a()Lcom/cleanmaster/notification/ag;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ag;->b()V
.line 1276
invoke-static {}, Lcom/cleanmaster/notification/c;->a()Lcom/cleanmaster/notification/c;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/c;->b()V
.line 1278
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->G()V
.line 1280
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->H()V
.line 1281
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lcom/cleanmaster/notification/ak;->b(Z)V
.line 1282
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->K()V
.line 1283
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->F()V
.line 1284
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->C()V
.line 1285
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->d()I
move-result v0
iput v0, p0, Lcom/cleanmaster/notification/ak;->v:I
.line 1286
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->D()Z
move-result v0
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->f:Z
.line 1287
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->f:Z
if-eqz v0, :cond_e
.line 1290
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;->isPermanentNotificationHasOpened()Z
move-result v0
.line 1291
if-nez v0, :cond_ce
.line 1292
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
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationHasOpened(Z)V
.line 1295
:cond_ce
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->a:Lcom/cleanmaster/service/PermanentService;
invoke-virtual {v0}, Lcom/cleanmaster/service/PermanentService;->c()V
.line 1296
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->t()V
.line 1297
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->x()V
:try_end_d9
.catch Ljava/lang/Exception; {:try_start_67 .. :try_end_d9} :catch_db
.catchall {:try_start_67 .. :try_end_d9} :catchall_ef
goto/16 :goto_e
.line 1299
:catch_db
move-exception v0
.line 1300
const/16 v1, 0x1c
:try_start_de
invoke-static {v1}, Lcom/cleanmaster/notification/bi;->a(I)Lcom/cleanmaster/notification/bi;
move-result-object v1
invoke-virtual {v1}, Lcom/cleanmaster/notification/bi;->report()V
.line 1301
invoke-static {}, Lcom/cleanmaster/base/crash/j;->e()Lcom/cleanmaster/base/crash/j;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v1, v0, v2}, Lcom/cleanmaster/base/crash/j;->a(Ljava/lang/Throwable;Z)V
:try_end_ed
.catchall {:try_start_de .. :try_end_ed} :catchall_ef
goto/16 :goto_e
.line 1241
:catchall_ef
move-exception v0
monitor-exit p0
throw v0
.line 1265
:catch_f2
move-exception v0
goto/16 :goto_67
.end method
.method private C()V
.registers 5
.prologue
const/4 v1, 0x0
.line 1307
invoke-static {}, Lcom/keniu/security/main/messagebox/MessageBox;->a()Lcom/keniu/security/main/messagebox/MessageBox;
move-result-object v0
.line 1309
if-eqz v0, :cond_55
.line 1310
invoke-virtual {v0}, Lcom/keniu/security/main/messagebox/MessageBox;->loadPermanentMessage()Z
move-result v0
.line 1312
:goto_b
if-eqz v0, :cond_4f
.line 1313
invoke-static {}, Lcom/keniu/security/update/push/k;->a()Lcom/keniu/security/update/push/c/b;
move-result-object v0
.line 1314
if-nez v0, :cond_14
.line 1331
:cond_13
:goto_13
return-void
.line 1317
:cond_14
sget-object v1, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageChannel;->CHANNEL_NOTIFICATION_WIDGET:Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageChannel;
invoke-virtual {v1}, Lcom/keniu/security/update/push/functionhandles/PushConstants$MessageChannel;->value()I
move-result v1
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
invoke-interface {v0, v1}, Lcom/keniu/security/update/push/c/b;->a(Ljava/lang/String;)Ljava/util/List;
move-result-object v0
.line 1318
if-eqz v0, :cond_13
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
if-lez v1, :cond_13
.line 1319
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
add-int/lit8 v1, v1, -0x1
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/keniu/security/update/push/c/d;
.line 1320
if-eqz v0, :cond_13
.line 1321
invoke-virtual {v0}, Lcom/keniu/security/update/push/c/d;->e()J
move-result-wide v2
iput-wide v2, p0, Lcom/cleanmaster/notification/ak;->B:J
.line 1322
sget-object v1, Lcom/keniu/security/update/c/a/a/b;->i:Ljava/lang/String;
invoke-virtual {v0, v1}, Lcom/keniu/security/update/push/c/d;->getValue(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 1323
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_13
.line 1324
const/4 v1, 0x1
invoke-direct {p0, v1, v0}, Lcom/cleanmaster/notification/ak;->a(ZLjava/lang/String;)V
goto :goto_13
.line 1329
:cond_4f
const-string v0, ""
invoke-direct {p0, v1, v0}, Lcom/cleanmaster/notification/ak;->a(ZLjava/lang/String;)V
goto :goto_13
:cond_55
move v0, v1
goto :goto_b
.end method
.method private D()Z
.registers 6
.prologue
const/4 v0, 0x1
const/4 v2, 0x0
.line 1342
.line 1344
:try_start_2
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-direct {p0, v1}, Lcom/cleanmaster/notification/ak;->e(Landroid/content/Context;)Landroid/app/Notification;
move-result-object v3
.line 1345
invoke-static {}, Lcom/cleanmaster/notification/ak;->e()Z
move-result v1
if-eqz v1, :cond_18
.line 1346
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->E:Landroid/app/NotificationManager;
const/16 v4, 0x3001
invoke-virtual {v1, v4, v3}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
.line 1360
:goto_17
return v0
.line 1349
:cond_18
const/16 v1, 0x3001
invoke-direct {p0, v1, v3}, Lcom/cleanmaster/notification/ak;->a(ILandroid/app/Notification;)Z
move-result v1
.line 1350
if-nez v1, :cond_3b
.line 1351
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->E:Landroid/app/NotificationManager;
const/16 v4, 0x3001
invoke-virtual {v1, v4, v3}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
:try_end_27
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_27} :catch_28
goto :goto_17
.line 1355
:catch_28
move-exception v0
.line 1357
const/16 v1, 0x1d
invoke-static {v1}, Lcom/cleanmaster/notification/bi;->a(I)Lcom/cleanmaster/notification/bi;
move-result-object v1
invoke-virtual {v1}, Lcom/cleanmaster/notification/bi;->report()V
.line 1358
invoke-static {}, Lcom/cleanmaster/base/crash/j;->e()Lcom/cleanmaster/base/crash/j;
move-result-object v1
invoke-virtual {v1, v0, v2}, Lcom/cleanmaster/base/crash/j;->a(Ljava/lang/Throwable;Z)V
move v0, v2
goto :goto_17
:cond_3b
move v0, v1
goto :goto_17
.end method
.method private declared-synchronized E()V
.registers 5
.prologue
.line 1493
monitor-enter p0
:try_start_1
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1494
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->f:Z
if-eqz v0, :cond_2d
.line 1495
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->u()V
.line 1496
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->L()V
.line 1497
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->y()V
.line 1499
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->E:Landroid/app/NotificationManager;
:try_end_13
.catchall {:try_start_1 .. :try_end_13} :catchall_39
if-eqz v0, :cond_1c
.line 1501
:try_start_15
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->E:Landroid/app/NotificationManager;
const/16 v1, 0x3001
invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V
:try_end_1c
.catch Ljava/lang/Exception; {:try_start_15 .. :try_end_1c} :catch_3c
.catchall {:try_start_15 .. :try_end_1c} :catchall_39
.line 1506
:cond_1c
:goto_1c
:try_start_1c
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x11
if-le v0, v1, :cond_2f
.line 1507
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->a:Lcom/cleanmaster/service/PermanentService;
invoke-virtual {v0}, Lcom/cleanmaster/service/PermanentService;->d()V
.line 1512
:goto_27
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->f:Z
.line 1513
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->o:Z
:try_end_2d
.catchall {:try_start_1c .. :try_end_2d} :catchall_39
.line 1515
:cond_2d
monitor-exit p0
return-void
.line 1509
:cond_2f
:try_start_2f
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->a:Lcom/cleanmaster/service/PermanentService;
const/4 v1, 0x1
const/4 v2, 0x0
const/16 v3, 0x3001
invoke-virtual {v0, v1, v2, v3}, Lcom/cleanmaster/service/PermanentService;->a(ZLandroid/app/Notification;I)V
:try_end_38
.catchall {:try_start_2f .. :try_end_38} :catchall_39
goto :goto_27
.line 1493
:catchall_39
move-exception v0
monitor-exit p0
throw v0
.line 1502
:catch_3c
move-exception v0
goto :goto_1c
.end method
.method private F()V
.registers 2
.prologue
.line 1612
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;->isPermanentNotifFirstShowMore()Z
move-result v0
if-nez v0, :cond_22
invoke-static {}, Lcom/cleanmaster/notification/ai;->i()Z
move-result v0
if-eqz v0, :cond_18
:cond_14
const/4 v0, 0x0
:goto_15
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->k:Z
.line 1613
return-void
.line 1612
:cond_18
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->g()Z
move-result v0
if-eqz v0, :cond_14
:cond_22
const/4 v0, 0x1
goto :goto_15
.end method
.method private G()V
.registers 3
.prologue
const/4 v0, 0x0
.line 1621
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v1
invoke-virtual {v1}, Lcom/cleanmaster/notification/aj;->c()Ljava/util/List;
move-result-object v1
iput-object v1, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
.line 1622
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->m:Z
.line 1623
const/4 v1, -0x1
iput v1, p0, Lcom/cleanmaster/notification/ak;->n:I
.line 1625
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
if-eqz v1, :cond_42
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-lez v1, :cond_42
move v1, v0
.line 1626
:goto_1d
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-ge v1, v0, :cond_3f
.line 1627
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.line 1628
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v0
.line 1629
packed-switch v0, :pswitch_data_44
.line 1626
:goto_34
:pswitch_34
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_1d
.line 1631
:pswitch_38
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->m:Z
goto :goto_34
.line 1634
:pswitch_3c
iput v1, p0, Lcom/cleanmaster/notification/ak;->n:I
goto :goto_34
.line 1639
:cond_3f
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->H()V
.line 1641
:cond_42
return-void
.line 1629
nop
:pswitch_data_44
.packed-switch 0x9
:pswitch_38
:pswitch_34
:pswitch_34
:pswitch_3c
.end packed-switch
.end method
.method private H()V
.registers 3
.prologue
.line 1644
invoke-static {}, Lcom/cleanmaster/notification/ai;->i()Z
move-result v0
if-eqz v0, :cond_13
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
const/4 v1, 0x4
if-le v0, v1, :cond_13
const/4 v0, 0x1
:goto_10
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->h:Z
.line 1645
return-void
.line 1644
:cond_13
const/4 v0, 0x0
goto :goto_10
.end method
.method private I()[Ljava/lang/String;
.registers 9
.prologue
.line 1683
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
.line 1685
new-instance v1, Ljava/lang/StringBuffer;
invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V
.line 1686
new-instance v2, Ljava/lang/StringBuffer;
invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V
.line 1687
new-instance v3, Ljava/lang/StringBuffer;
invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V
.line 1689
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;->isPermanentNotifFeatureCommonAppChecked()Z
move-result v0
if-eqz v0, :cond_50
.line 1690
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
if-eqz v0, :cond_c9
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_c9
.line 1691
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v4
:cond_2f
:goto_2f
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_c9
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.line 1692
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v5
const/16 v6, 0xc8
if-eq v5, v6, :cond_2f
.line 1693
const-string v5, "$"
invoke-virtual {v1, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
.line 1694
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
goto :goto_2f
.line 1699
:cond_50
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
if-eqz v0, :cond_c9
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_c9
.line 1700
const-string v0, "$"
invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
.line 1701
const/16 v0, 0x24
invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1703
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v4
:cond_6c
:goto_6c
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_bf
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.line 1704
const-string v5, "$"
invoke-virtual {v1, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
.line 1705
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v5
invoke-virtual {v1, v5}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1707
invoke-static {}, Lcom/cleanmaster/notification/ag;->a()Lcom/cleanmaster/notification/ag;
move-result-object v5
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v6
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
invoke-virtual {v5, v6}, Lcom/cleanmaster/notification/ag;->b(Ljava/lang/Integer;)Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;
move-result-object v5
.line 1708
if-eqz v5, :cond_6c
.line 1709
const-string v6, "$"
invoke-virtual {v2, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
move-result-object v6
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v7
invoke-virtual {v6, v7}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1710
const-string v6, "$"
invoke-virtual {v3, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
move-result-object v6
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v0
invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
move-result-object v0
const-string v6, "_"
invoke-virtual {v0, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
move-result-object v0
invoke-virtual {v5}, Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;->getType()I
move-result v5
invoke-virtual {v0, v5}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
goto :goto_6c
.line 1714
:cond_bf
const-string v0, "$"
invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
.line 1715
const/16 v0, 0x25
invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1719
:cond_c9
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/String;
const/4 v4, 0x0
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
aput-object v1, v0, v4
const/4 v1, 0x1
invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
aput-object v2, v0, v1
const/4 v1, 0x2
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
aput-object v2, v0, v1
return-object v0
.end method
.method private J()Z
.registers 3
.prologue
.line 1727
iget v0, p0, Lcom/cleanmaster/notification/ak;->n:I
const/4 v1, -0x1
if-eq v0, v1, :cond_7
const/4 v0, 0x1
:goto_6
return v0
:cond_7
const/4 v0, 0x0
goto :goto_6
.end method
.method private K()V
.registers 4
.prologue
.line 1815
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->A:Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;
if-nez v0, :cond_b
.line 1816
new-instance v0, Lcom/cleanmaster/notification/av;
invoke-direct {v0, p0}, Lcom/cleanmaster/notification/av;-><init>(Lcom/cleanmaster/notification/ak;)V
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->A:Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;
.line 1826
:cond_b
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_11
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_23
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.line 1827
iget-object v2, p0, Lcom/cleanmaster/notification/ak;->A:Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;
invoke-virtual {v0, v2}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->a(Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;)V
goto :goto_11
.line 1829
:cond_23
return-void
.end method
.method private L()V
.registers 4
.prologue
.line 1832
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->A:Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;
if-eqz v0, :cond_1f
.line 1833
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_a
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1c
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.line 1834
iget-object v2, p0, Lcom/cleanmaster/notification/ak;->A:Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;
invoke-virtual {v0, v2}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->b(Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;)V
goto :goto_a
.line 1836
:cond_1c
const/4 v0, 0x0
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->A:Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController$SwitchItemControllerListener;
.line 1838
:cond_1f
return-void
.end method
.method static synthetic a(I)I
.registers 1
.prologue
.line 84
sput p0, Lcom/cleanmaster/notification/ak;->C:I
return p0
.end method
.method private final a(Landroid/content/Context;I)Landroid/graphics/Bitmap;
.registers 16
.prologue
const/high16 v12, 0x41600000 # 14.0f
const/high16 v11, 0x40000000 # 2.0f
const/high16 v10, 0x3fc00000 # 1.5f
const/4 v9, 0x0
const/4 v4, 0x0
.line 1518
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->m:Z
if-nez v0, :cond_e
.line 1519
const/4 v6, 0x0
.line 1580
:goto_d
return-object v6
.line 1520
:cond_e
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
if-nez v0, :cond_19
.line 1521
new-instance v0, Landroid/graphics/Paint;
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
.line 1524
:cond_19
:try_start_19
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->e:Landroid/graphics/PaintFlagsDrawFilter;
if-nez v0, :cond_26
.line 1525
new-instance v0, Landroid/graphics/PaintFlagsDrawFilter;
const/4 v1, 0x0
const/4 v2, 0x3
invoke-direct {v0, v1, v2}, Landroid/graphics/PaintFlagsDrawFilter;-><init>(II)V
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->e:Landroid/graphics/PaintFlagsDrawFilter;
:try_end_26
.catch Ljava/lang/Error; {:try_start_19 .. :try_end_26} :catch_18e
.catch Ljava/lang/Exception; {:try_start_19 .. :try_end_26} :catch_18b
.line 1532
:cond_26
:goto_26
iget v0, p0, Lcom/cleanmaster/notification/ak;->v:I
packed-switch v0, :pswitch_data_194
.line 1539
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0e01d9
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I
move-result v1
.line 1540
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v2, 0x7f0e01d8
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getColor(I)I
move-result v0
move v2, v1
move v1, v0
.line 1543
:goto_43
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
const/4 v3, 0x1
invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setAntiAlias(Z)V
.line 1544
const/high16 v0, 0x42000000 # 32.0f
invoke-static {p1, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v0
.line 1545
if-gtz v0, :cond_191
.line 1546
const/16 v0, 0x20
move v3, v0
.line 1549
:goto_54
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->G:Ljava/lang/ref/SoftReference;
if-eqz v0, :cond_66
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->G:Ljava/lang/ref/SoftReference;
invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/graphics/Bitmap;
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/ui/BitmapUtil;->isInValidBitmap(Landroid/graphics/Bitmap;)Z
move-result v0
if-eqz v0, :cond_16d
.line 1550
:cond_66
sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
invoke-static {v3, v3, v0}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
move-result-object v0
.line 1551
new-instance v3, Ljava/lang/ref/SoftReference;
invoke-direct {v3, v0}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
iput-object v3, p0, Lcom/cleanmaster/notification/ak;->G:Ljava/lang/ref/SoftReference;
move-object v6, v0
.line 1557
:goto_74
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->H:Ljava/lang/ref/SoftReference;
if-eqz v0, :cond_80
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->H:Ljava/lang/ref/SoftReference;
invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_17b
.line 1558
:cond_80
new-instance v0, Landroid/graphics/Canvas;
invoke-direct {v0, v6}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
.line 1559
new-instance v3, Ljava/lang/ref/SoftReference;
invoke-direct {v3, v0}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
iput-object v3, p0, Lcom/cleanmaster/notification/ak;->H:Ljava/lang/ref/SoftReference;
.line 1564
:goto_8c
invoke-virtual {v0}, Landroid/graphics/Canvas;->save()I
.line 1565
iget-object v3, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
invoke-virtual {v3, v2}, Landroid/graphics/Paint;->setColor(I)V
.line 1566
iget-object v3, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
const/high16 v5, 0x41100000 # 9.0f
invoke-static {p1, v5}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v5
int-to-float v5, v5
invoke-virtual {v3, v5}, Landroid/graphics/Paint;->setTextSize(F)V
.line 1567
iget-object v3, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
sget-object v5, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;
invoke-virtual {v3, v5}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V
.line 1568
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v3
const-string v5, "%"
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
const/high16 v5, 0x41800000 # 16.0f
invoke-static {p1, v5}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v5
int-to-float v5, v5
const/high16 v7, 0x41700000 # 15.0f
invoke-static {p1, v7}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v7
const/high16 v8, 0x41000000 # 8.0f
invoke-static {p1, v8}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v8
div-int/lit8 v8, v8, 0x2
add-int/2addr v7, v8
int-to-float v7, v7
iget-object v8, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
invoke-virtual {v0, v3, v5, v7, v8}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
.line 1569
iget-object v3, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
invoke-virtual {v3, v1}, Landroid/graphics/Paint;->setColor(I)V
.line 1570
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
const/high16 v3, 0x40400000 # 3.0f
invoke-static {p1, v3}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v3
int-to-float v3, v3
invoke-virtual {v1, v3}, Landroid/graphics/Paint;->setStrokeWidth(F)V
.line 1571
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
sget-object v3, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
invoke-virtual {v1, v3}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
.line 1572
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->e:Landroid/graphics/PaintFlagsDrawFilter;
invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->setDrawFilter(Landroid/graphics/DrawFilter;)V
.line 1573
invoke-static {p1, v11}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v1
int-to-float v1, v1
invoke-static {p1, v11}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v3
int-to-float v3, v3
invoke-virtual {v0, v1, v3}, Landroid/graphics/Canvas;->translate(FF)V
.line 1574
invoke-static {p1, v12}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v1
int-to-float v1, v1
invoke-static {p1, v12}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v3
int-to-float v3, v3
const/high16 v5, 0x41400000 # 12.0f
invoke-static {p1, v5}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v5
int-to-float v5, v5
iget-object v7, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
invoke-virtual {v0, v1, v3, v5, v7}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
.line 1575
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setColor(I)V
.line 1576
invoke-static {p1, v10}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v1
int-to-float v1, v1
invoke-static {p1, v10}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v2
int-to-float v2, v2
invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->translate(FF)V
.line 1577
new-instance v1, Landroid/graphics/RectF;
const/high16 v2, 0x41c00000 # 24.0f
invoke-static {p1, v2}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v2
int-to-float v2, v2
const/high16 v3, 0x41c00000 # 24.0f
invoke-static {p1, v3}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->dip2px(Landroid/content/Context;F)I
move-result v3
int-to-float v3, v3
invoke-direct {v1, v9, v9, v2, v3}, Landroid/graphics/RectF;-><init>(FFFF)V
const/high16 v2, 0x42b40000 # 90.0f
if-lez p2, :cond_188
int-to-float v3, p2
const v5, 0x40666666 # 3.6f
mul-float/2addr v3, v5
:goto_144
iget-object v5, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V
.line 1578
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->d:Landroid/graphics/Paint;
invoke-virtual {v1}, Landroid/graphics/Paint;->reset()V
.line 1579
invoke-virtual {v0}, Landroid/graphics/Canvas;->restore()V
goto/16 :goto_d
.line 1534
:pswitch_153
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0e01d7
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I
move-result v1
.line 1535
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v2, 0x7f0e01d6
invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getColor(I)I
move-result v0
move v2, v1
move v1, v0
.line 1536
goto/16 :goto_43
.line 1553
:cond_16d
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->G:Ljava/lang/ref/SoftReference;
invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/graphics/Bitmap;
.line 1554
invoke-virtual {v0, v4}, Landroid/graphics/Bitmap;->eraseColor(I)V
move-object v6, v0
goto/16 :goto_74
.line 1561
:cond_17b
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->H:Ljava/lang/ref/SoftReference;
invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/graphics/Canvas;
.line 1562
invoke-virtual {v0, v6}, Landroid/graphics/Canvas;->setBitmap(Landroid/graphics/Bitmap;)V
goto/16 :goto_8c
.line 1577
:cond_188
const/high16 v3, 0x3f800000 # 1.0f
goto :goto_144
.line 1528
:catch_18b
move-exception v0
goto/16 :goto_26
.line 1527
:catch_18e
move-exception v0
goto/16 :goto_26
:cond_191
move v3, v0
goto/16 :goto_54
.line 1532
:pswitch_data_194
.packed-switch 0x1
:pswitch_153
.end packed-switch
.end method
.method public static declared-synchronized a()Lcom/cleanmaster/notification/ak;
.registers 2
.prologue
.line 186
const-class v1, Lcom/cleanmaster/notification/ak;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/cleanmaster/notification/ak;->K:Lcom/cleanmaster/notification/ak;
if-nez v0, :cond_e
.line 187
new-instance v0, Lcom/cleanmaster/notification/ak;
invoke-direct {v0}, Lcom/cleanmaster/notification/ak;-><init>()V
sput-object v0, Lcom/cleanmaster/notification/ak;->K:Lcom/cleanmaster/notification/ak;
.line 189
:cond_e
sget-object v0, Lcom/cleanmaster/notification/ak;->K:Lcom/cleanmaster/notification/ak;
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_12
monitor-exit v1
return-object v0
.line 186
:catchall_12
move-exception v0
monitor-exit v1
throw v0
.end method
.method private a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;)Ljava/lang/String;
.registers 15
.prologue
const/4 v7, 0x0
.line 1036
const-string v8, "function_icons"
.line 1037
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {p4}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ".png"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v9
.line 1038
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {p1}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->getDataDir(Landroid/content/Context;)Ljava/io/File;
move-result-object v1
invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 1039
invoke-virtual {p4, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->b(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_77
.line 1040
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getInstance()Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
move-result-object v0
.line 1041
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getTypeFaceName()Ljava/lang/String;
move-result-object v1
invoke-static {p3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I
move-result v3
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getNotificationTextSize()I
move-result v4
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getNotificationBitmapW()I
move-result v5
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getNotificationBitmapH()I
move-result v6
move-object v0, p4
move-object v2, p2
invoke-virtual/range {v0 .. v7}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->a(Ljava/lang/String;Ljava/lang/String;IIIIZ)Landroid/graphics/drawable/BitmapDrawable;
move-result-object v6
move-object v2, p4
move-object v3, p1
move-object v4, v8
move-object v5, v9
.line 1042
invoke-virtual/range {v2 .. v7}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/BitmapDrawable;Z)Ljava/lang/String;
move-result-object v0
.line 1044
:cond_77
return-object v0
.end method
.method static synthetic a(Lcom/cleanmaster/notification/ak;Ljava/util/List;)Ljava/util/List;
.registers 2
.prologue
.line 84
iput-object p1, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
return-object p1
.end method
.method private a(II)V
.registers 5
.prologue
.line 596
new-instance v0, Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;
invoke-direct {v0}, Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;-><init>()V
.line 597
invoke-virtual {v0, p1}, Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;->setDestFunctionId(I)V
.line 598
invoke-virtual {v0, p2}, Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;->setSourceFunctionId(I)V
.line 599
invoke-static {}, Lcom/cleanmaster/notification/ag;->a()Lcom/cleanmaster/notification/ag;
move-result-object v1
invoke-virtual {v1, v0}, Lcom/cleanmaster/notification/ag;->a(Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;)Z
.line 604
return-void
.end method
.method private a(ILandroid/os/Bundle;)V
.registers 9
.prologue
const/4 v1, 0x1
const/4 v2, 0x0
.line 1401
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1403
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->b()Z
move-result v0
.line 1404
iget-boolean v3, p0, Lcom/cleanmaster/notification/ak;->f:Z
if-eqz v3, :cond_19
sget v3, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v4, 0xe
if-lt v3, v4, :cond_19
if-nez v0, :cond_1a
.line 1468
:cond_19
:goto_19
return-void
.line 1408
:cond_1a
packed-switch p1, :pswitch_data_d8
.line 1464
:goto_1d
:pswitch_1d
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->J()Z
move-result v0
if-eqz v0, :cond_2f
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/ledlight/e;->a(Landroid/content/Context;)Lcom/cleanmaster/ledlight/e;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/ledlight/e;->isOn()Z
move-result v2
:cond_2f
iput-boolean v2, p0, Lcom/cleanmaster/notification/ak;->o:Z
.line 1467
:cond_31
:goto_31
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->D()Z
goto :goto_19
.line 1410
:pswitch_35
if-eqz p2, :cond_19
const-string v0, "expand_multi_line"
invoke-virtual {p2, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_19
.line 1411
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->i:Z
.line 1412
const-string v1, "expand_multi_line"
iget-boolean v2, p0, Lcom/cleanmaster/notification/ak;->i:Z
invoke-virtual {p2, v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, p0, Lcom/cleanmaster/notification/ak;->i:Z
.line 1413
iget-boolean v1, p0, Lcom/cleanmaster/notification/ak;->i:Z
if-ne v0, v1, :cond_31
goto :goto_19
.line 1421
:pswitch_50
iput-boolean v2, p0, Lcom/cleanmaster/notification/ak;->g:Z
.line 1422
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->E()V
.line 1423
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->B()V
.line 1424
iput-boolean v1, p0, Lcom/cleanmaster/notification/ak;->g:Z
goto :goto_19
.line 1427
:pswitch_5b
if-eqz p2, :cond_19
const-string v0, "light_state"
invoke-virtual {p2, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_19
.line 1428
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->o:Z
.line 1429
const-string v3, "light_state"
iget-boolean v4, p0, Lcom/cleanmaster/notification/ak;->o:Z
invoke-virtual {p2, v3, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v3
iput-boolean v3, p0, Lcom/cleanmaster/notification/ak;->o:Z
.line 1430
iget-boolean v3, p0, Lcom/cleanmaster/notification/ak;->o:Z
if-eq v3, v0, :cond_19
.line 1433
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->J()Z
move-result v0
if-eqz v0, :cond_31
iget v0, p0, Lcom/cleanmaster/notification/ak;->n:I
iget-object v3, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v3
if-ge v0, v3, :cond_31
.line 1434
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
iget v3, p0, Lcom/cleanmaster/notification/ak;->n:I
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.line 1435
iget-boolean v3, p0, Lcom/cleanmaster/notification/ak;->o:Z
if-eqz v3, :cond_97
:goto_93
invoke-virtual {v0, v1}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->a(I)V
goto :goto_31
:cond_97
move v1, v2
goto :goto_93
.line 1442
:pswitch_99
invoke-virtual {p0}, Lcom/cleanmaster/notification/ak;->f()V
goto :goto_31
.line 1445
:pswitch_9d
if-eqz p2, :cond_31
.line 1446
const-string v0, "push_home_message_alive"
const-wide/16 v4, 0x0
invoke-virtual {p2, v0, v4, v5}, Landroid/os/Bundle;->getLong(Ljava/lang/String;J)J
move-result-wide v0
iput-wide v0, p0, Lcom/cleanmaster/notification/ak;->B:J
.line 1447
const-string/jumbo v0, "update_home_message_box"
invoke-virtual {p2, v0, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
.line 1448
const-string v0, "push_message_version"
invoke-virtual {p2, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 1449
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_be
.line 1450
const-string v0, ""
.line 1452
:cond_be
invoke-direct {p0, v1, v0}, Lcom/cleanmaster/notification/ak;->a(ZLjava/lang/String;)V
.line 1453
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_31
.line 1454
new-instance v1, Lcom/cleanmaster/notification/bd$a;
invoke-direct {v1}, Lcom/cleanmaster/notification/bd$a;-><init>()V
.line 1455
iput-object v0, v1, Lcom/cleanmaster/notification/bd$a;->a:Ljava/lang/String;
.line 1456
invoke-static {v1}, Lcom/cleanmaster/notification/bd;->a(Lcom/cleanmaster/notification/bd$a;)V
goto/16 :goto_31
.line 1461
:pswitch_d3
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->F()V
goto/16 :goto_1d
.line 1408
:pswitch_data_d8
.packed-switch 0x1
:pswitch_5b
:pswitch_1d
:pswitch_d3
:pswitch_50
:pswitch_35
:pswitch_99
:pswitch_9d
.end packed-switch
.end method
.method private a(ILjava/lang/String;I)V
.registers 5
.prologue
.line 608
invoke-static {p1, p2, p3}, Lcom/cleanmaster/notification/bf;->a(ILjava/lang/String;I)Lcom/cleanmaster/notification/bf;
move-result-object v0
.line 609
invoke-virtual {v0}, Lcom/cleanmaster/notification/bf;->report()V
.line 611
return-void
.end method
.method private a(Landroid/app/Notification;Landroid/content/Context;)V
.registers 13
.prologue
const/4 v1, 0x4
const v9, 0x7f1005c7
.line 795
if-eqz p1, :cond_8
if-nez p2, :cond_9
.line 859
:cond_8
:goto_8
return-void
.line 803
:cond_9
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->d()I
move-result v0
iput v0, p0, Lcom/cleanmaster/notification/ak;->v:I
.line 804
iget v0, p0, Lcom/cleanmaster/notification/ak;->v:I
packed-switch v0, :pswitch_data_b2
.line 810
const v0, 0x7f040175
.line 814
:goto_1b
invoke-direct {p0, p2}, Lcom/cleanmaster/notification/ak;->g(Landroid/content/Context;)Landroid/widget/RemoteViews;
move-result-object v2
.line 816
iput-object v2, p1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
.line 818
iget-boolean v3, p0, Lcom/cleanmaster/notification/ak;->h:Z
if-eqz v3, :cond_8
iget-boolean v3, p0, Lcom/cleanmaster/notification/ak;->i:Z
if-eqz v3, :cond_8
.line 820
iget-object v3, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v3
.line 822
new-instance v4, Landroid/widget/RemoteViews;
invoke-virtual {p2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v5
const v6, 0x7f040173
invoke-direct {v4, v5, v6}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
.line 824
iget v5, p0, Lcom/cleanmaster/notification/ak;->v:I
packed-switch v5, :pswitch_data_b8
.line 830
const-string v5, "setBackgroundResource"
const v6, 0x7f0204ad
invoke-virtual {v4, v9, v5, v6}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
.line 834
:goto_48
invoke-virtual {v4, v9}, Landroid/widget/RemoteViews;->removeAllViews(I)V
.line 835
invoke-virtual {v2}, Landroid/widget/RemoteViews;->clone()Landroid/widget/RemoteViews;
move-result-object v2
invoke-virtual {v4, v9, v2}, Landroid/widget/RemoteViews;->addView(ILandroid/widget/RemoteViews;)V
.line 837
add-int/lit8 v2, v3, -0x4
div-int/lit8 v2, v2, 0x6
.line 838
add-int/lit8 v5, v3, -0x4
rem-int/lit8 v5, v5, 0x6
if-nez v5, :cond_95
.line 839
:goto_5c
if-le v2, v1, :cond_98
.line 841
:goto_5e
new-instance v5, Landroid/widget/RemoteViews;
invoke-virtual {p2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v2
invoke-direct {v5, v2, v0}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
.line 843
const/4 v0, 0x0
move v2, v0
:goto_69
if-ge v2, v1, :cond_9d
.line 844
invoke-virtual {v5}, Landroid/widget/RemoteViews;->clone()Landroid/widget/RemoteViews;
move-result-object v6
.line 845
mul-int/lit8 v0, v2, 0x6
add-int/lit8 v7, v0, 0x4
.line 846
add-int/lit8 v0, v7, 0x6
if-le v0, v3, :cond_9a
move v0, v3
.line 847
:goto_78
iget-object v8, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v8, v7, v0}, Ljava/util/List;->subList(II)Ljava/util/List;
move-result-object v0
.line 848
invoke-direct {p0, p2, v6, v0, v7}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;Landroid/widget/RemoteViews;Ljava/util/List;I)V
.line 849
invoke-virtual {v4, v9, v6}, Landroid/widget/RemoteViews;->addView(ILandroid/widget/RemoteViews;)V
.line 843
add-int/lit8 v0, v2, 0x1
move v2, v0
goto :goto_69
.line 806
:pswitch_88
const v0, 0x7f040174
.line 807
goto :goto_1b
.line 826
:pswitch_8c
const-string v5, "setBackgroundResource"
const v6, 0x7f020493
invoke-virtual {v4, v9, v5, v6}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
goto :goto_48
.line 838
:cond_95
add-int/lit8 v2, v2, 0x1
goto :goto_5c
:cond_98
move v1, v2
.line 839
goto :goto_5e
.line 846
:cond_9a
add-int/lit8 v0, v7, 0x6
goto :goto_78
.line 853
:cond_9d
:try_start_9d
const-class v0, Landroid/app/Notification;
const-string v1, "bigContentView"
invoke-virtual {v0, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v0
.line 854
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
.line 855
invoke-virtual {v0, p1, v4}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_ac
.catch Ljava/lang/Exception; {:try_start_9d .. :try_end_ac} :catch_ae
goto/16 :goto_8
.line 856
:catch_ae
move-exception v0
goto/16 :goto_8
.line 804
nop
:pswitch_data_b2
.packed-switch 0x1
:pswitch_88
.end packed-switch
.line 824
:pswitch_data_b8
.packed-switch 0x1
:pswitch_8c
.end packed-switch
.end method
.method public static a(Landroid/content/Context;)V
.registers 2
.prologue
.line 201
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 202
new-instance v0, Lcom/cleanmaster/notification/al;
invoke-direct {v0, p0}, Lcom/cleanmaster/notification/al;-><init>(Landroid/content/Context;)V
invoke-static {v0}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V
.line 219
return-void
.end method
.method private a(Landroid/content/Context;Landroid/widget/RemoteViews;Ljava/util/List;I)V
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Landroid/widget/RemoteViews;",
"Ljava/util/List",
"<",
"Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;",
">;I)V"
}
.end annotation
.prologue
.line 938
const/4 v0, 0x0
move v6, v0
:goto_2
invoke-interface {p3}, Ljava/util/List;->size()I
move-result v0
if-ge v6, v0, :cond_229
.line 939
invoke-direct {p0, v6}, Lcom/cleanmaster/notification/ak;->b(I)[I
move-result-object v8
.line 940
if-nez v8, :cond_12
.line 938
:goto_e
add-int/lit8 v0, v6, 0x1
move v6, v0
goto :goto_2
.line 943
:cond_12
invoke-interface {p3, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.line 944
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v9
.line 945
iget v1, p0, Lcom/cleanmaster/notification/ak;->v:I
invoke-virtual {v0, v1}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->b(I)Ljava/lang/String;
move-result-object v3
.line 946
sparse-switch v9, :sswitch_data_22e
.line 986
:cond_2d
:goto_2d
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->d()Ljava/lang/String;
move-result-object v1
.line 987
invoke-direct {p0, p1, v1, v3, v0}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;)Ljava/lang/String;
move-result-object v1
.line 988
const/4 v2, 0x1
aget v2, v8, v2
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
invoke-virtual {p2, v2, v1}, Landroid/widget/RemoteViews;->setImageViewUri(ILandroid/net/Uri;)V
.line 992
:goto_3f
const/4 v1, 0x2
aget v1, v8, v1
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->e()Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v1, v0}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
.line 994
new-instance v0, Landroid/content/Intent;
const-class v1, Lcom/cleanmaster/service/PermanentService;
invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 995
const-string v1, "cheOnAppUsageChangeExck_type"
const/16 v2, 0x131
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 996
const-string v1, "extra_data"
add-int v2, p4, v6
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 998
invoke-static {}, Lcom/cleanmaster/notification/ag;->a()Lcom/cleanmaster/notification/ag;
move-result-object v1
invoke-static {v9}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v1, v2}, Lcom/cleanmaster/notification/ag;->b(Ljava/lang/Integer;)Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;
move-result-object v1
.line 999
if-eqz v1, :cond_1d3
.line 1000
const/4 v2, 0x3
aget v2, v8, v2
const/4 v3, 0x0
invoke-virtual {p2, v2, v3}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
.line 1002
invoke-virtual {v1}, Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;->getCount()I
move-result v2
.line 1004
if-lez v2, :cond_1c6
const/16 v3, 0xa
if-ge v2, v3, :cond_1c6
.line 1005
const/4 v3, 0x3
aget v3, v8, v3
invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {p2, v3, v2}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
.line 1006
const/4 v2, 0x3
aget v2, v8, v2
const-string v3, "setBackgroundResource"
const v4, 0x7f020175
invoke-virtual {p2, v2, v3, v4}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
.line 1011
:goto_92
const-string v2, "source"
invoke-virtual {v1}, Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;->getSourceFunctionId()I
move-result v3
invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 1012
const-string v2, "dest"
invoke-virtual {v1}, Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;->getDestFunctionId()I
move-result v1
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 1029
:goto_a4
sget-object v1, Lcom/cleanmaster/notification/ak;->b:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 1030
add-int v1, p4, v6
const/high16 v2, 0x10000000
invoke-static {p1, v1, v0, v2}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v0
.line 1031
const/4 v1, 0x0
aget v1, v8, v1
invoke-virtual {p2, v1, v0}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
goto/16 :goto_e
.line 948
:sswitch_b9
const-string v2, "function_icons"
.line 949
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "memory_usage_percent"
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v3, ".png"
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
.line 950
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {p1}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->getDataDir(Landroid/content/Context;)Ljava/io/File;
move-result-object v4
invoke-virtual {v4}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v4
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
sget-object v4, Ljava/io/File;->separator:Ljava/lang/String;
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
sget-object v4, Ljava/io/File;->separator:Ljava/lang/String;
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v7
.line 951
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->z()I
move-result v1
.line 952
new-instance v4, Ljava/io/File;
invoke-direct {v4, v7}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 953
invoke-virtual {v4}, Ljava/io/File;->exists()Z
move-result v4
if-eqz v4, :cond_116
iget v4, p0, Lcom/cleanmaster/notification/ak;->p:I
if-ne v4, v1, :cond_116
iget v4, p0, Lcom/cleanmaster/notification/ak;->q:I
iget v5, p0, Lcom/cleanmaster/notification/ak;->v:I
if-eq v4, v5, :cond_22a
.line 955
:cond_116
:try_start_116
iput v1, p0, Lcom/cleanmaster/notification/ak;->p:I
.line 956
iget v1, p0, Lcom/cleanmaster/notification/ak;->v:I
iput v1, p0, Lcom/cleanmaster/notification/ak;->q:I
.line 957
iget v1, p0, Lcom/cleanmaster/notification/ak;->p:I
invoke-direct {p0, p1, v1}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;I)Landroid/graphics/Bitmap;
move-result-object v1
.line 958
new-instance v4, Landroid/graphics/drawable/BitmapDrawable;
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v5
invoke-direct {v4, v5, v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V
.line 959
const/4 v5, 0x1
move-object v1, p1
invoke-virtual/range {v0 .. v5}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/BitmapDrawable;Z)Ljava/lang/String;
:try_end_130
.catch Ljava/lang/Exception; {:try_start_116 .. :try_end_130} :catch_149
move-result-object v1
.line 963
:goto_131
const/4 v2, 0x1
aget v2, v8, v2
const-string v3, ""
invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v3
invoke-virtual {p2, v2, v3}, Landroid/widget/RemoteViews;->setImageViewUri(ILandroid/net/Uri;)V
.line 964
const/4 v2, 0x1
aget v2, v8, v2
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
invoke-virtual {p2, v2, v1}, Landroid/widget/RemoteViews;->setImageViewUri(ILandroid/net/Uri;)V
goto/16 :goto_3f
.line 960
:catch_149
move-exception v1
move-object v1, v7
goto :goto_131
:sswitch_14c
move-object v1, v0
.line 967
check-cast v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/k;
.line 968
invoke-virtual {v1}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/k;->h()Landroid/graphics/drawable/Drawable;
move-result-object v4
check-cast v4, Landroid/graphics/drawable/BitmapDrawable;
.line 969
const-string v2, "app_icons"
.line 970
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/k;->g()Ljava/lang/String;
move-result-object v1
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v3, ".png"
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
.line 971
const/4 v5, 0x0
move-object v1, p1
invoke-virtual/range {v0 .. v5}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/BitmapDrawable;Z)Ljava/lang/String;
move-result-object v1
.line 972
const/4 v2, 0x1
aget v2, v8, v2
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
invoke-virtual {p2, v2, v1}, Landroid/widget/RemoteViews;->setImageViewUri(ILandroid/net/Uri;)V
goto/16 :goto_3f
.line 976
:sswitch_180
invoke-virtual {v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->a()I
move-result v1
const/4 v2, 0x1
if-ne v1, v2, :cond_1b4
const/4 v1, 0x1
:goto_188
iput-boolean v1, p0, Lcom/cleanmaster/notification/ak;->o:Z
.line 977
iget v1, p0, Lcom/cleanmaster/notification/ak;->v:I
if-nez v1, :cond_2d
.line 978
iget-boolean v1, p0, Lcom/cleanmaster/notification/ak;->o:Z
if-eqz v1, :cond_1b6
.line 979
const/4 v1, 0x0
aget v1, v8, v1
const-string v2, "setBackgroundColor"
const v4, -0xc99b4c
invoke-virtual {p2, v1, v2, v4}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
.line 983
:goto_19d
const/4 v1, 0x2
aget v2, v8, v1
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v4
iget-boolean v1, p0, Lcom/cleanmaster/notification/ak;->o:Z
if-eqz v1, :cond_1c2
const v1, 0x7f0e0315
:goto_1ab
invoke-virtual {v4, v1}, Landroid/content/res/Resources;->getColor(I)I
move-result v1
invoke-virtual {p2, v2, v1}, Landroid/widget/RemoteViews;->setTextColor(II)V
goto/16 :goto_2d
.line 976
:cond_1b4
const/4 v1, 0x0
goto :goto_188
.line 981
:cond_1b6
const/4 v1, 0x0
aget v1, v8, v1
const-string v2, "setBackgroundResource"
const v4, 0x7f020485
invoke-virtual {p2, v1, v2, v4}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
goto :goto_19d
.line 983
:cond_1c2
const v1, 0x7f0e01df
goto :goto_1ab
.line 1008
:cond_1c6
const/4 v2, 0x3
aget v2, v8, v2
const-string v3, "setBackgroundResource"
const v4, 0x7f020176
invoke-virtual {p2, v2, v3, v4}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
goto/16 :goto_92
.line 1014
:cond_1d3
const/16 v1, 0x2a
if-ne v9, v1, :cond_216
.line 1015
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;->isNotificationWeatherRedDot()Z
move-result v1
.line 1016
if-eqz v1, :cond_203
invoke-static {}, Lcom/cleanmaster/notification/ag;->a()Lcom/cleanmaster/notification/ag;
move-result-object v1
invoke-virtual {v1}, Lcom/cleanmaster/notification/ag;->d()I
move-result v1
if-gtz v1, :cond_203
.line 1017
const/4 v1, 0x3
aget v1, v8, v1
const/4 v2, 0x0
invoke-virtual {p2, v1, v2}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
.line 1018
const/4 v1, 0x3
aget v1, v8, v1
const-string v2, "setBackgroundResource"
const v3, 0x7f020176
invoke-virtual {p2, v1, v2, v3}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
goto/16 :goto_a4
.line 1020
:cond_203
const/4 v1, 0x3
aget v1, v8, v1
const/16 v2, 0x8
invoke-virtual {p2, v1, v2}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
.line 1021
const/4 v1, 0x3
aget v1, v8, v1
const-string v2, "setBackgroundResource"
const/4 v3, 0x0
invoke-virtual {p2, v1, v2, v3}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
goto/16 :goto_a4
.line 1024
:cond_216
const/4 v1, 0x3
aget v1, v8, v1
const/16 v2, 0x8
invoke-virtual {p2, v1, v2}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
.line 1025
const/4 v1, 0x3
aget v1, v8, v1
const-string v2, "setBackgroundResource"
const/4 v3, 0x0
invoke-virtual {p2, v1, v2, v3}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
goto/16 :goto_a4
.line 1033
:cond_229
return-void
:cond_22a
move-object v1, v7
goto/16 :goto_131
.line 946
nop
:sswitch_data_22e
.sparse-switch
0x9 -> :sswitch_b9
0xc -> :sswitch_180
0xc8 -> :sswitch_14c
.end sparse-switch
.end method
.method private static a(Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;)V
.registers 2
.prologue
.line 425
invoke-static {}, Lcom/cleanmaster/notification/ak;->a()Lcom/cleanmaster/notification/ak;
move-result-object v0
invoke-direct {v0}, Lcom/cleanmaster/notification/ak;->A()V
.line 432
return-void
.end method
.method static synthetic a(Lcom/cleanmaster/notification/ak;ILandroid/os/Bundle;)V
.registers 3
.prologue
.line 84
invoke-direct {p0, p1, p2}, Lcom/cleanmaster/notification/ak;->a(ILandroid/os/Bundle;)V
return-void
.end method
.method private a(ZLjava/lang/String;)V
.registers 3
.prologue
.line 1616
iput-boolean p1, p0, Lcom/cleanmaster/notification/ak;->l:Z
.line 1617
iput-object p2, p0, Lcom/cleanmaster/notification/ak;->y:Ljava/lang/String;
.line 1618
return-void
.end method
.method private a(ILandroid/app/Notification;)Z
.registers 10
.prologue
const/4 v3, 0x2
const/4 v0, 0x1
const/4 v1, 0x0
.line 1364
.line 1366
iget-object v2, p0, Lcom/cleanmaster/notification/ak;->a:Lcom/cleanmaster/service/PermanentService;
.line 1367
if-nez v2, :cond_8
.line 1388
:goto_7
return v1
.line 1371
:cond_8
new-array v3, v3, [Ljava/lang/Class;
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v4, v3, v1
const-class v4, Landroid/app/Notification;
aput-object v4, v3, v0
.line 1374
:try_start_12
invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v4
const-string v5, "startForeground"
invoke-virtual {v4, v5, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v3
.line 1375
if-eqz v3, :cond_41
.line 1376
const/4 v4, 0x2
new-array v4, v4, [Ljava/lang/Object;
.line 1377
const/4 v5, 0x0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
aput-object v6, v4, v5
.line 1378
const/4 v5, 0x1
aput-object p2, v4, v5
.line 1379
invoke-virtual {v3, v2, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_2e
.catch Ljava/lang/Exception; {:try_start_12 .. :try_end_2e} :catch_30
:goto_2e
move v1, v0
.line 1388
goto :goto_7
.line 1382
:catch_30
move-exception v0
.line 1384
const/16 v2, 0x1e
invoke-static {v2}, Lcom/cleanmaster/notification/bi;->a(I)Lcom/cleanmaster/notification/bi;
move-result-object v2
invoke-virtual {v2}, Lcom/cleanmaster/notification/bi;->report()V
.line 1385
invoke-static {}, Lcom/cleanmaster/base/crash/j;->e()Lcom/cleanmaster/base/crash/j;
move-result-object v2
invoke-virtual {v2, v0, v1}, Lcom/cleanmaster/base/crash/j;->a(Ljava/lang/Throwable;Z)V
:cond_41
move v0, v1
goto :goto_2e
.end method
.method static synthetic a(Lcom/cleanmaster/notification/ak;)Z
.registers 2
.prologue
.line 84
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->f:Z
return v0
.end method
.method private static a(Ljava/util/Map;)Z
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map",
"<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;)Z"
}
.end annotation
.prologue
.line 262
const/4 v1, 0x0
.line 264
invoke-interface {p0}, Ljava/util/Map;->size()I
move-result v0
if-lez v0, :cond_25
.line 265
invoke-interface {p0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
.line 266
if-eqz v0, :cond_25
.line 267
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_11
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_25
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
.line 269
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
if-eqz v0, :cond_11
.line 270
const/4 v0, 0x1
.line 277
:goto_24
return v0
:cond_25
move v0, v1
goto :goto_24
.end method
.method static synthetic b(Lcom/cleanmaster/notification/ak;)V
.registers 1
.prologue
.line 84
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->x()V
return-void
.end method
.method public static b(Landroid/content/Context;)Z
.registers 3
.prologue
.line 223
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0203db
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
.line 224
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0401aa
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getLayout(I)Landroid/content/res/XmlResourceParser;
.line 225
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0a0f8b
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
.line 226
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f04028a
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getLayout(I)Landroid/content/res/XmlResourceParser;
.line 227
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0a0f75
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
.line 228
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f0206f9
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
:try_end_3c
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_3c} :catch_3e
.line 229
const/4 v0, 0x1
.line 231
:goto_3d
return v0
.line 230
:catch_3e
move-exception v0
.line 231
const/4 v0, 0x0
goto :goto_3d
.end method
.method private b(I)[I
.registers 3
.prologue
const/4 v0, 0x4
.line 1048
packed-switch p1, :pswitch_data_2a
.line 1062
const/4 v0, 0x0
:goto_5
return-object v0
.line 1050
:pswitch_6
new-array v0, v0, [I
fill-array-data v0, :array_3a
goto :goto_5
.line 1052
:pswitch_c
new-array v0, v0, [I
fill-array-data v0, :array_46
goto :goto_5
.line 1054
:pswitch_12
new-array v0, v0, [I
fill-array-data v0, :array_52
goto :goto_5
.line 1056
:pswitch_18
new-array v0, v0, [I
fill-array-data v0, :array_5e
goto :goto_5
.line 1058
:pswitch_1e
new-array v0, v0, [I
fill-array-data v0, :array_6a
goto :goto_5
.line 1060
:pswitch_24
new-array v0, v0, [I
fill-array-data v0, :array_76
goto :goto_5
.line 1048
:pswitch_data_2a
.packed-switch 0x0
:pswitch_6
:pswitch_c
:pswitch_12
:pswitch_18
:pswitch_1e
:pswitch_24
.end packed-switch
.line 1050
:array_3a
.array-data 4
0x7f1005cb
0x7f1005cc
0x7f1005cd
0x7f1005ca
.end array-data
.line 1052
:array_46
.array-data 4
0x7f1005cf
0x7f1005d0
0x7f1005d1
0x7f1005ce
.end array-data
.line 1054
:array_52
.array-data 4
0x7f1005d3
0x7f1005d4
0x7f1005d5
0x7f1005d2
.end array-data
.line 1056
:array_5e
.array-data 4
0x7f1005d7
0x7f1005d8
0x7f1005d9
0x7f1005d6
.end array-data
.line 1058
:array_6a
.array-data 4
0x7f1005db
0x7f1005dc
0x7f1005dd
0x7f1005da
.end array-data
.line 1060
:array_76
.array-data 4
0x7f1005df
0x7f1005e0
0x7f1005e1
0x7f1005de
.end array-data
.end method
.method static synthetic c(Landroid/content/Context;)V
.registers 1
.prologue
.line 84
invoke-static {p0}, Lcom/cleanmaster/notification/ak;->d(Landroid/content/Context;)V
return-void
.end method
.method static synthetic c(Lcom/cleanmaster/notification/ak;)V
.registers 1
.prologue
.line 84
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->y()V
return-void
.end method
.method static synthetic c(Z)V
.registers 1
.prologue
.line 84
invoke-static {p0}, Lcom/cleanmaster/notification/ak;->d(Z)V
return-void
.end method
.method private static d(Landroid/content/Context;)V
.registers 3
.prologue
.line 236
new-instance v0, Lcom/cleanmaster/notification/ao;
invoke-direct {v0, p0}, Lcom/cleanmaster/notification/ao;-><init>(Landroid/content/Context;)V
.line 258
sget-object v1, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
invoke-virtual {v1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 259
return-void
.end method
.method private static d(Z)V
.registers 13
.prologue
const-wide/16 v10, 0x0
const/4 v0, 0x0
const/4 v1, 0x1
.line 308
sget-boolean v2, Lcom/cleanmaster/notification/ak;->J:Z
if-eqz v2, :cond_9
.line 348
:cond_8
:goto_8
return-void
.line 312
:cond_9
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 v3
.line 315
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorCompletely()Z
move-result v4
.line 316
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorCompletely2()Z
move-result v5
.line 317
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorRunCount2()I
move-result v6
.line 320
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isPermanentNotificationHasOpened()Z
move-result v2
.line 321
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v7
invoke-virtual {v7}, Lcom/cleanmaster/notification/ai;->b()Z
move-result v7
.line 324
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorStartTime()J
move-result-wide v8
.line 326
if-nez v2, :cond_50
if-nez v7, :cond_50
move v2, v1
.line 327
:goto_32
if-eqz v2, :cond_52
.line 328
if-nez v4, :cond_8
invoke-static {}, Lcom/cleanmaster/notification/ai;->k()Z
move-result v2
if-eqz v2, :cond_8
.line 329
cmp-long v2, v8, v10
if-nez v2, :cond_43
.line 332
invoke-virtual {v3, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorRunCount(I)V
.line 334
:cond_43
sput-boolean v1, Lcom/cleanmaster/notification/ak;->J:Z
.line 336
cmp-long v2, v8, v10
if-eqz v2, :cond_4b
if-eqz p0, :cond_4c
:cond_4b
move v0, v1
:cond_4c
invoke-static {v0}, Lcom/cleanmaster/notification/ak;->e(Z)V
goto :goto_8
:cond_50
move v2, v0
.line 326
goto :goto_32
.line 338
:cond_52
if-eqz v7, :cond_8
if-nez v5, :cond_8
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorCancelCount()I
move-result v2
const/4 v4, 0x3
if-gt v2, v4, :cond_8
.line 339
invoke-static {}, Lcom/cleanmaster/notification/ai;->l()Z
move-result v2
if-nez v2, :cond_6d
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v2
invoke-virtual {v2}, Lcom/cleanmaster/notification/aj;->o()Z
move-result v2
if-eqz v2, :cond_8
.line 340
:cond_6d
if-nez v6, :cond_72
.line 341
invoke-virtual {v3, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorRunCount2(I)V
.line 344
:cond_72
sput-boolean v1, Lcom/cleanmaster/notification/ak;->J:Z
.line 346
cmp-long v2, v8, v10
if-eqz v2, :cond_7a
if-eqz p0, :cond_7b
:cond_7a
move v0, v1
:cond_7b
invoke-static {v0}, Lcom/cleanmaster/notification/ak;->e(Z)V
goto :goto_8
.end method
.method static synthetic d(Lcom/cleanmaster/notification/ak;)Z
.registers 2
.prologue
.line 84
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->m:Z
return v0
.end method
.method private e(Landroid/content/Context;)Landroid/app/Notification;
.registers 5
.prologue
.line 704
invoke-direct {p0, p1}, Lcom/cleanmaster/notification/ak;->f(Landroid/content/Context;)Landroid/app/Notification;
move-result-object v0
.line 705
sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;
const-string/jumbo v2, "vivo X9Plus"
invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_15
.line 706
iget v1, v0, Landroid/app/Notification;->flags:I
or-int/lit8 v1, v1, 0x22
iput v1, v0, Landroid/app/Notification;->flags:I
.line 709
:cond_15
invoke-direct {p0, v0, p1}, Lcom/cleanmaster/notification/ak;->a(Landroid/app/Notification;Landroid/content/Context;)V
.line 711
return-object v0
.end method
.method static synthetic e(Lcom/cleanmaster/notification/ak;)V
.registers 1
.prologue
.line 84
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->w()V
return-void
.end method
.method private static e(Z)V
.registers 5
.prologue
.line 354
invoke-static {}, Lcom/cleanmaster/notification/ai;->m()J
move-result-wide v0
.line 357
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-lez v0, :cond_a
.line 358
:cond_a
return-void
.end method
.method public static e()Z
.registers 5
.prologue
const/4 v0, 0x0
const/4 v4, 0x1
.line 752
sget-object v1, Lcom/cleanmaster/notification/ak;->F:Ljava/lang/Boolean;
if-eqz v1, :cond_d
.line 753
sget-object v0, Lcom/cleanmaster/notification/ak;->F:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
.line 777
:cond_c
:goto_c
return v0
.line 756
:cond_d
sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;
.line 757
sget-object v2, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;
.line 759
if-eqz v1, :cond_c
if-eqz v2, :cond_c
.line 763
const-string v3, "4.0.4"
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_28
.line 764
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/notification/ak;->F:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_c
.line 767
:cond_28
const-string v3, "GT-I9300"
invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_43
const-string v3, "4.0.4"
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_43
.line 768
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/notification/ak;->F:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_c
.line 770
:cond_43
const-string v3, "GT-I9100"
invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_5e
const-string v3, "4.0.4"
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_5e
.line 771
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/notification/ak;->F:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_c
.line 773
:cond_5e
const-string v3, "GT-N7000"
invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_79
const-string v1, "4.0.4"
invoke-virtual {v2, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_79
.line 774
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/notification/ak;->F:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_c
.line 777
:cond_79
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
sput-object v0, Lcom/cleanmaster/notification/ak;->F:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
goto :goto_c
.end method
.method private f(Landroid/content/Context;)Landroid/app/Notification;
.registers 10
.prologue
const/4 v1, 0x0
.line 715
new-instance v0, Landroid/support/v4/app/NotificationCompat$Builder;
const-string v2, "common"
invoke-direct {v0, p1, v2}, Landroid/support/v4/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V
.line 717
invoke-virtual {v0}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
move-result-object v2
.line 719
const v0, 0x7f0203db
iput v0, v2, Landroid/app/Notification;->icon:I
.line 721
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
invoke-static {p1}, 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;->getLastNotificationShowTime()J
move-result-wide v6
sub-long/2addr v4, v6
const-wide/32 v6, 0x2932e00
cmp-long v0, v4, v6
if-lez v0, :cond_6c
const/4 v0, 0x1
.line 722
:goto_26
iget-boolean v3, p0, Lcom/cleanmaster/notification/ak;->f:Z
if-nez v3, :cond_44
iget-boolean v3, p0, Lcom/cleanmaster/notification/ak;->g:Z
if-eqz v3, :cond_44
if-eqz v0, :cond_44
.line 723
const v0, 0x7f0a0f8b
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
iput-object v0, v2, Landroid/app/Notification;->tickerText:Ljava/lang/CharSequence;
.line 724
invoke-static {p1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
invoke-virtual {v0, v4, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setLastNotificationShowTime(J)V
.line 727
:cond_44
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->h:Z
invoke-static {v0}, Lcom/cleanmaster/base/util/system/NotificationUtil;->getNotificationWhen(Z)J
move-result-wide v4
iput-wide v4, v2, Landroid/app/Notification;->when:J
.line 729
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
const/high16 v3, 0x8000000
invoke-static {p1, v1, v0, v3}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v0
.line 730
iput-object v0, v2, Landroid/app/Notification;->contentIntent:Landroid/app/PendingIntent;
.line 732
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x10
if-lt v0, v1, :cond_6e
.line 734
const/4 v0, 0x2
.line 735
:try_start_60
const-class v1, Landroid/app/Notification;
const-string v3, "priority"
invoke-virtual {v1, v3}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
.line 736
invoke-virtual {v1, v2, v0}, Ljava/lang/reflect/Field;->setInt(Ljava/lang/Object;I)V
:try_end_6b
.catch Ljava/lang/Exception; {:try_start_60 .. :try_end_6b} :catch_8b
.line 748
:goto_6b
return-object v2
:cond_6c
move v0, v1
.line 721
goto :goto_26
.line 741
:cond_6e
:try_start_6e
const-class v0, Landroid/app/Notification;
const-string v1, "FLAG_HIGH_PRIORITY"
invoke-virtual {v0, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v0
.line 742
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->getInt(Ljava/lang/Object;)I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
.line 743
iget v1, v2, Landroid/app/Notification;->flags:I
or-int/2addr v0, v1
iput v0, v2, Landroid/app/Notification;->flags:I
:try_end_88
.catch Ljava/lang/Exception; {:try_start_6e .. :try_end_88} :catch_89
goto :goto_6b
.line 744
:catch_89
move-exception v0
goto :goto_6b
.line 737
:catch_8b
move-exception v0
goto :goto_6b
.end method
.method static synthetic f(Lcom/cleanmaster/notification/ak;)V
.registers 1
.prologue
.line 84
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->B()V
return-void
.end method
.method private f(Z)V
.registers 6
.prologue
.line 1761
if-nez p1, :cond_22
.line 1763
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
.line 1762
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
.line 1764
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getLastReportNotificationShow()J
move-result-wide v0
.line 1765
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_22
.line 1766
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
.line 1768
sub-long v0, v2, v0
const-wide/32 v2, 0x1499700
cmp-long v0, v0, v2
if-gez v0, :cond_22
.line 1774
:goto_21
return-void
.line 1773
:cond_22
const/4 v0, 0x1
invoke-static {v0}, Lcom/cleanmaster/ui/app/c/b;->g(I)V
goto :goto_21
.end method
.method private g(Landroid/content/Context;)Landroid/widget/RemoteViews;
.registers 14
.prologue
const/16 v11, 0xc9
const/16 v10, 0xc8
const/4 v9, 0x4
const/16 v8, 0x8
const/4 v2, 0x0
.line 862
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
if-eqz v0, :cond_28
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_28
.line 863
invoke-static {}, Lcom/cleanmaster/notification/ag;->a()Lcom/cleanmaster/notification/ag;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ag;->d()I
move-result v0
if-gtz v0, :cond_28
.line 864
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/aj;->d()Z
move-result v0
if-eqz v0, :cond_2b
.line 865
:cond_28
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->G()V
.line 868
:cond_2b
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v3
.line 872
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->d()I
move-result v0
iput v0, p0, Lcom/cleanmaster/notification/ak;->v:I
.line 873
iget v0, p0, Lcom/cleanmaster/notification/ak;->v:I
packed-switch v0, :pswitch_data_152
.line 879
new-instance v0, Landroid/widget/RemoteViews;
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
const v4, 0x7f0401ab
invoke-direct {v0, v1, v4}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
.line 883
:goto_4c
const v1, 0x7f10065e
const v4, 0x7f0a0f72
invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v4
invoke-virtual {v0, v1, v4}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
.line 885
iget-boolean v1, p0, Lcom/cleanmaster/notification/ak;->k:Z
if-eqz v1, :cond_13e
.line 886
const v1, 0x7f10065f
invoke-virtual {v0, v1, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
.line 891
:goto_63
iget-wide v4, p0, Lcom/cleanmaster/notification/ak;->B:J
const-wide/16 v6, 0x0
cmp-long v1, v4, v6
if-lez v1, :cond_7b
.line 892
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
const-wide/16 v6, 0x3e8
div-long/2addr v4, v6
iget-wide v6, p0, Lcom/cleanmaster/notification/ak;->B:J
cmp-long v1, v4, v6
if-ltz v1, :cond_146
move v1, v2
:goto_79
iput-boolean v1, p0, Lcom/cleanmaster/notification/ak;->l:Z
.line 895
:cond_7b
iget-boolean v1, p0, Lcom/cleanmaster/notification/ak;->l:Z
if-eqz v1, :cond_14a
.line 896
const v1, 0x7f10065c
invoke-virtual {v0, v1, v2}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
.line 901
:goto_85
new-instance v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ah;
const-string v4, ""
invoke-direct {v1, v2, v4}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ah;-><init>(ZLjava/lang/String;)V
.line 902
invoke-virtual {v1}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ah;->d()Ljava/lang/String;
move-result-object v4
.line 903
iget v5, p0, Lcom/cleanmaster/notification/ak;->v:I
invoke-virtual {v1, v5}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ah;->b(I)Ljava/lang/String;
move-result-object v5
.line 904
invoke-direct {p0, p1, v4, v5, v1}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;)Ljava/lang/String;
move-result-object v1
.line 905
const v4, 0x7f10065d
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
invoke-virtual {v0, v4, v1}, Landroid/widget/RemoteViews;->setImageViewUri(ILandroid/net/Uri;)V
.line 907
new-instance v1, Landroid/content/Intent;
const-class v4, Lcom/cleanmaster/service/PermanentService;
invoke-direct {v1, p1, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 908
const-string v4, "extra_home_message_box"
iget-boolean v5, p0, Lcom/cleanmaster/notification/ak;->l:Z
invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
.line 909
const-string v4, "push_message_version"
iget-object v5, p0, Lcom/cleanmaster/notification/ak;->y:Ljava/lang/String;
invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 910
const-string v4, "extra_data"
invoke-virtual {v1, v4, v10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 911
const-string v4, "cheOnAppUsageChangeExck_type"
const/16 v5, 0x131
invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 912
sget-object v4, Lcom/cleanmaster/notification/ak;->b:Ljava/lang/String;
invoke-virtual {v1, v4}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 913
const/high16 v4, 0x10000000
invoke-static {p1, v10, v1, v4}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v1
.line 914
const v4, 0x7f1002e6
invoke-virtual {v0, v4, v1}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
.line 916
new-instance v1, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aj;
invoke-direct {v1}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aj;-><init>()V
.line 917
invoke-virtual {v1}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aj;->d()Ljava/lang/String;
move-result-object v4
.line 918
iget v5, p0, Lcom/cleanmaster/notification/ak;->v:I
invoke-virtual {v1, v5}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/aj;->b(I)Ljava/lang/String;
move-result-object v5
.line 919
invoke-direct {p0, p1, v4, v5, v1}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;)Ljava/lang/String;
move-result-object v1
.line 920
const v4, 0x7f100660
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
invoke-virtual {v0, v4, v1}, Landroid/widget/RemoteViews;->setImageViewUri(ILandroid/net/Uri;)V
.line 921
const v1, 0x7f100661
const v4, 0x7f0a0f76
invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v4
invoke-virtual {v0, v1, v4}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
.line 922
new-instance v1, Landroid/content/Intent;
const-class v4, Lcom/cleanmaster/service/PermanentService;
invoke-direct {v1, p1, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 923
const-string v4, "extra_data"
invoke-virtual {v1, v4, v11}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 924
const-string v4, "cheOnAppUsageChangeExck_type"
const/16 v5, 0x131
invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 925
sget-object v4, Lcom/cleanmaster/notification/ak;->b:Ljava/lang/String;
invoke-virtual {v1, v4}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 926
const/high16 v4, 0x10000000
invoke-static {p1, v11, v1, v4}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v1
.line 927
const v4, 0x7f100624
invoke-virtual {v0, v4, v1}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
.line 929
if-lt v3, v9, :cond_12f
.line 930
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v1, v2, v9}, Ljava/util/List;->subList(II)Ljava/util/List;
move-result-object v1
.line 931
invoke-direct {p0, p1, v0, v1, v2}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;Landroid/widget/RemoteViews;Ljava/util/List;I)V
.line 934
:cond_12f
return-object v0
.line 875
:pswitch_130
new-instance v0, Landroid/widget/RemoteViews;
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
const v4, 0x7f0401aa
invoke-direct {v0, v1, v4}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
goto/16 :goto_4c
.line 888
:cond_13e
const v1, 0x7f10065f
invoke-virtual {v0, v1, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
goto/16 :goto_63
.line 892
:cond_146
iget-boolean v1, p0, Lcom/cleanmaster/notification/ak;->l:Z
goto/16 :goto_79
.line 898
:cond_14a
const v1, 0x7f10065c
invoke-virtual {v0, v1, v8}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
goto/16 :goto_85
.line 873
:pswitch_data_152
.packed-switch 0x1
:pswitch_130
.end packed-switch
.end method
.method static synthetic g(Lcom/cleanmaster/notification/ak;)V
.registers 1
.prologue
.line 84
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->E()V
return-void
.end method
.method private g(Z)V
.registers 6
.prologue
.line 1781
if-nez p1, :cond_21
.line 1783
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
.line 1782
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
.line 1784
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getLastReportNotificationShow()J
move-result-wide v0
.line 1785
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_21
.line 1786
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
.line 1788
sub-long v0, v2, v0
const-wide/32 v2, 0x1499700
cmp-long v0, v0, v2
if-gez v0, :cond_21
.line 1812
:cond_21
return-void
.end method
.method static synthetic h(Lcom/cleanmaster/notification/ak;)Ljava/util/List;
.registers 2
.prologue
.line 84
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
return-object v0
.end method
.method private h(Z)V
.registers 2
.prologue
.line 1942
return-void
.end method
.method static synthetic i(Lcom/cleanmaster/notification/ak;)Z
.registers 2
.prologue
.line 84
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->j:Z
return v0
.end method
.method static synthetic j(Lcom/cleanmaster/notification/ak;)Lcom/cleanmaster/notification/ak$a;
.registers 2
.prologue
.line 84
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->u:Lcom/cleanmaster/notification/ak$a;
return-object v0
.end method
.method static synthetic j()Z
.registers 1
.prologue
.line 84
sget-boolean v0, Lcom/cleanmaster/notification/ak;->c:Z
return v0
.end method
.method static synthetic k()V
.registers 0
.prologue
.line 84
invoke-static {}, Lcom/cleanmaster/notification/ak;->p()V
return-void
.end method
.method static synthetic k(Lcom/cleanmaster/notification/ak;)V
.registers 1
.prologue
.line 84
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->r()V
return-void
.end method
.method static synthetic l()I
.registers 2
.prologue
.line 84
sget v0, Lcom/cleanmaster/notification/ak;->C:I
add-int/lit8 v1, v0, 0x1
sput v1, Lcom/cleanmaster/notification/ak;->C:I
return v0
.end method
.method static synthetic l(Lcom/cleanmaster/notification/ak;)V
.registers 1
.prologue
.line 84
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->s()V
return-void
.end method
.method static synthetic m()I
.registers 1
.prologue
.line 84
sget v0, Lcom/cleanmaster/notification/ak;->C:I
return v0
.end method
.method static synthetic n()Landroid/os/Handler;
.registers 1
.prologue
.line 84
sget-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
return-object v0
.end method
.method static synthetic o()V
.registers 0
.prologue
.line 84
invoke-static {}, Lcom/cleanmaster/notification/ak;->q()V
return-void
.end method
.method private static p()V
.registers 2
.prologue
.line 281
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 283
sget-boolean v0, Lcom/cleanmaster/notification/ak;->c:Z
if-eqz v0, :cond_8
.line 301
:cond_7
:goto_7
return-void
.line 287
:cond_8
const/4 v0, 0x1
sput-boolean v0, Lcom/cleanmaster/notification/ak;->c:Z
.line 289
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0xe
if-lt v0, v1, :cond_7
.line 290
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
.line 292
const/4 v0, 0x0
invoke-static {v0}, Lcom/cleanmaster/notification/ak;->d(Z)V
.line 294
invoke-static {}, Lcom/cleanmaster/notification/ak;->a()Lcom/cleanmaster/notification/ak;
move-result-object v0
invoke-direct {v0}, Lcom/cleanmaster/notification/ak;->v()V
.line 296
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->b()Z
move-result v0
.line 297
if-eqz v0, :cond_7
.line 298
invoke-static {}, Lcom/cleanmaster/notification/ak;->a()Lcom/cleanmaster/notification/ak;
move-result-object v0
invoke-direct {v0}, Lcom/cleanmaster/notification/ak;->B()V
goto :goto_7
.end method
.method private static q()V
.registers 4
.prologue
const/4 v3, 0x0
.line 402
sput-boolean v3, Lcom/cleanmaster/notification/ak;->J:Z
.line 403
invoke-static {}, Lcom/cleanmaster/notification/s;->a()Lcom/cleanmaster/notification/s;
move-result-object v0
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/notification/s;->b(Landroid/content/Context;)V
.line 404
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
const-string v1, "alarm"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/AlarmManager;
sput-object v0, Lcom/cleanmaster/notification/ak;->I:Landroid/app/AlarmManager;
.line 405
sget-object v0, Lcom/cleanmaster/notification/ak;->I:Landroid/app/AlarmManager;
if-eqz v0, :cond_38
.line 406
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
.line 407
new-instance v1, Landroid/content/Intent;
const-class v2, Lcom/cleanmaster/notification/MonitorBroadcastReceiver;
invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 408
const/high16 v2, 0x10000000
invoke-static {v0, v3, v1, v2}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v0
.line 409
if-eqz v0, :cond_38
.line 410
sget-object v1, Lcom/cleanmaster/notification/ak;->I:Landroid/app/AlarmManager;
invoke-virtual {v1, v0}, Landroid/app/AlarmManager;->cancel(Landroid/app/PendingIntent;)V
.line 417
:cond_38
return-void
.end method
.method private r()V
.registers 4
.prologue
.line 439
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
.line 440
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorCancelCount()I
move-result v1
.line 442
const/4 v2, 0x3
if-ge v1, v2, :cond_24
.line 443
add-int/lit8 v1, v1, 0x1
.line 444
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorCancelCount(I)V
.line 445
invoke-static {}, Lcom/cleanmaster/notification/s;->a()Lcom/cleanmaster/notification/s;
move-result-object v0
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/notification/s;->a(Landroid/content/Context;)V
.line 446
const/4 v0, 0x1
invoke-static {v0}, Lcom/cleanmaster/notification/ak;->d(Z)V
.line 451
:goto_23
return-void
.line 448
:cond_24
invoke-static {}, Lcom/cleanmaster/notification/s;->a()Lcom/cleanmaster/notification/s;
move-result-object v1
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v2
invoke-virtual {v1, v2}, Lcom/cleanmaster/notification/s;->b(Landroid/content/Context;)V
.line 449
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorCompletely2()V
goto :goto_23
.end method
.method private s()V
.registers 1
.prologue
.line 457
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 458
invoke-static {}, Lcom/cleanmaster/notification/ak;->q()V
.line 459
return-void
.end method
.method private t()V
.registers 4
.prologue
.line 614
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
.line 615
const-string v1, "android.intent.action.SCREEN_OFF"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 616
const-string v1, "android.intent.action.SCREEN_ON"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 617
const-string v1, "action_reflesh_memory"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 618
new-instance v1, Lcom/cleanmaster/notification/aq;
invoke-direct {v1, p0}, Lcom/cleanmaster/notification/aq;-><init>(Lcom/cleanmaster/notification/ak;)V
iput-object v1, p0, Lcom/cleanmaster/notification/ak;->w:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.line 636
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;
move-result-object v1
iget-object v2, p0, Lcom/cleanmaster/notification/ak;->w:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->registerReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;Landroid/content/IntentFilter;)V
.line 637
return-void
.end method
.method private u()V
.registers 3
.prologue
.line 640
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->w:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
if-eqz v0, :cond_14
.line 642
:try_start_4
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;
move-result-object v0
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->w:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->unregisterReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;)V
.line 643
const/4 v0, 0x0
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->w:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
:try_end_14
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_14} :catch_15
.line 647
:cond_14
:goto_14
return-void
.line 644
:catch_15
move-exception v0
goto :goto_14
.end method
.method private v()V
.registers 4
.prologue
.line 650
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
.line 651
const-string v1, "android.intent.action.SCREEN_ON"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 652
const-string v1, "android.intent.action.USER_PRESENT"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 653
new-instance v1, Lcom/cleanmaster/notification/ar;
invoke-direct {v1, p0}, Lcom/cleanmaster/notification/ar;-><init>(Lcom/cleanmaster/notification/ak;)V
iput-object v1, p0, Lcom/cleanmaster/notification/ak;->x:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.line 671
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;
move-result-object v1
iget-object v2, p0, Lcom/cleanmaster/notification/ak;->x:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->registerReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;Landroid/content/IntentFilter;)V
.line 672
return-void
.end method
.method private declared-synchronized w()V
.registers 4
.prologue
.line 685
monitor-enter p0
:try_start_1
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->y()V
.line 686
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->x()V
.line 687
invoke-static {}, Lcom/cleanmaster/notification/ak;->a()Lcom/cleanmaster/notification/ak;
move-result-object v0
const/4 v1, 0x2
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/notification/ak;->updateSyncNotification(ILandroid/os/Bundle;)V
:try_end_10
.catchall {:try_start_1 .. :try_end_10} :catchall_12
.line 688
monitor-exit p0
return-void
.line 685
:catchall_12
move-exception v0
monitor-exit p0
throw v0
.end method
.method private declared-synchronized x()V
.registers 5
.prologue
.line 691
monitor-enter p0
:try_start_1
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->j:Z
if-nez v0, :cond_19
.line 692
new-instance v0, Lcom/cleanmaster/notification/ak$a;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/cleanmaster/notification/ak$a;-><init>(Lcom/cleanmaster/notification/ak;Lcom/cleanmaster/notification/al;)V
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->u:Lcom/cleanmaster/notification/ak$a;
.line 693
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->j:Z
.line 694
sget-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->u:Lcom/cleanmaster/notification/ak$a;
const-wide/16 v2, 0x3a98
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
:try_end_19
.catchall {:try_start_1 .. :try_end_19} :catchall_1b
.line 696
:cond_19
monitor-exit p0
return-void
.line 691
:catchall_1b
move-exception v0
monitor-exit p0
throw v0
.end method
.method private declared-synchronized y()V
.registers 3
.prologue
.line 699
monitor-enter p0
:try_start_1
sget-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->u:Lcom/cleanmaster/notification/ak$a;
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
.line 700
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cleanmaster/notification/ak;->j:Z
:try_end_b
.catchall {:try_start_1 .. :try_end_b} :catchall_d
.line 701
monitor-exit p0
return-void
.line 699
:catchall_d
move-exception v0
monitor-exit p0
throw v0
.end method
.method private z()I
.registers 3
.prologue
.line 786
invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/process/util/MemoryLastCleanHelper;->getInst()Lcom/cleanmaster/hpsharelib/boost/process/util/MemoryLastCleanHelper;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/boost/process/util/MemoryLastCleanHelper;->isLastCleanResultValid()Z
move-result v0
if-eqz v0, :cond_1b
.line 787
invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/process/util/MemoryLastCleanHelper;->getInst()Lcom/cleanmaster/hpsharelib/boost/process/util/MemoryLastCleanHelper;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/boost/process/util/MemoryLastCleanHelper;->getLastCleanMemRemained()J
move-result-wide v0
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 788
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/system/MemoryInfo;->getPercent()I
move-result v0
.line 790
:goto_1a
return v0
:cond_1b
invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/process/util/ProcessInfoHelper;->getUsedMemoryPercentage()I
move-result v0
goto :goto_1a
.end method
# virtual methods
.method public a(Lcom/cleanmaster/service/PermanentService;)V
.registers 2
.prologue
.line 1334
iput-object p1, p0, Lcom/cleanmaster/notification/ak;->a:Lcom/cleanmaster/service/PermanentService;
.line 1335
return-void
.end method
.method public a(Z)V
.registers 3
.prologue
.line 193
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->t:Ljava/lang/Boolean;
.line 194
return-void
.end method
.method public b(Z)V
.registers 10
.prologue
const/4 v6, 0x2
const/4 v0, 0x1
const/4 v7, 0x0
.line 1731
invoke-virtual {p0}, Lcom/cleanmaster/notification/ak;->h()Ljava/lang/String;
move-result-object v2
.line 1732
invoke-direct {p0}, Lcom/cleanmaster/notification/ak;->I()[Ljava/lang/String;
move-result-object v5
.line 1733
aget-object v1, v5, v7
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_24
aget-object v1, v5, v7
const/16 v3, 0x28
invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_24
.line 1734
invoke-direct {p0, p1}, Lcom/cleanmaster/notification/ak;->f(Z)V
.line 1737
:cond_24
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/ConflictCommons;->isCNVersion()Z
move-result v1
if-nez v1, :cond_43
aget-object v1, v5, v7
.line 1738
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_43
aget-object v1, v5, v7
const/16 v3, 0x2a
invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_43
.line 1739
invoke-direct {p0, p1}, Lcom/cleanmaster/notification/ak;->g(Z)V
.line 1742
:cond_43
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x16
if-le v1, v3, :cond_7b
.line 1743
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Landroid/provider/Settings$System;->canWrite(Landroid/content/Context;)Z
move-result v1
if-eqz v1, :cond_6b
.line 1744
iget v1, p0, Lcom/cleanmaster/notification/ak;->v:I
aget-object v3, v5, v7
aget-object v4, v5, v0
aget-object v5, v5, v6
move v6, v0
invoke-static/range {v0 .. v6}, Lcom/cleanmaster/notification/bh;->a(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Lcom/cleanmaster/notification/bh;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/cleanmaster/notification/bh;->a(Z)V
.line 1751
:goto_63
invoke-static {}, Lcom/cleanmaster/notification/az;->a()Lcom/cleanmaster/notification/az;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/cleanmaster/notification/az;->a(Z)V
.line 1754
return-void
.line 1746
:cond_6b
iget v1, p0, Lcom/cleanmaster/notification/ak;->v:I
aget-object v3, v5, v7
aget-object v4, v5, v0
aget-object v5, v5, v6
invoke-static/range {v0 .. v6}, Lcom/cleanmaster/notification/bh;->a(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Lcom/cleanmaster/notification/bh;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/cleanmaster/notification/bh;->a(Z)V
goto :goto_63
.line 1749
:cond_7b
iget v1, p0, Lcom/cleanmaster/notification/ak;->v:I
aget-object v3, v5, v7
aget-object v4, v5, v0
aget-object v5, v5, v6
move v6, v7
invoke-static/range {v0 .. v6}, Lcom/cleanmaster/notification/bh;->a(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Lcom/cleanmaster/notification/bh;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/cleanmaster/notification/bh;->a(Z)V
goto :goto_63
.end method
.method public b()Z
.registers 2
.prologue
.line 197
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->t:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
return v0
.end method
.method public c()V
.registers 14
.prologue
const/4 v12, 0x3
const/4 v11, 0x2
const/4 v10, -0x1
const/4 v2, 0x0
const/4 v1, 0x1
.line 466
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 v3
.line 469
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/aj;->o()Z
move-result v0
if-eqz v0, :cond_29
.line 470
invoke-static {}, Lcom/cleanmaster/notification/ag;->a()Lcom/cleanmaster/notification/ag;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ag;->e()V
.line 471
const/16 v0, 0x11
const/16 v1, 0xb
invoke-direct {p0, v0, v1}, Lcom/cleanmaster/notification/ak;->a(II)V
.line 472
invoke-virtual {v3, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setNotificationBatteryReplaceRecent(Z)V
.line 593
:cond_28
:goto_28
return-void
.line 476
:cond_29
invoke-static {}, Lcom/cleanmaster/notification/s;->a()Lcom/cleanmaster/notification/s;
move-result-object v0
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v4
invoke-virtual {v0, v4}, Lcom/cleanmaster/notification/s;->c(Landroid/content/Context;)Ljava/util/Map;
move-result-object v4
.line 484
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorRunCount()I
move-result v5
.line 485
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentNotificationMonitorRunCount2()I
move-result v6
.line 487
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->b()Z
move-result v7
.line 488
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isPermanentNotificationHasOpened()Z
move-result v0
.line 489
if-nez v0, :cond_75
if-nez v7, :cond_75
move v0, v1
.line 491
:goto_4e
invoke-static {}, Lcom/cleanmaster/notification/s;->a()Lcom/cleanmaster/notification/s;
move-result-object v8
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v9
invoke-virtual {v8, v9}, Lcom/cleanmaster/notification/s;->b(Landroid/content/Context;)V
.line 493
invoke-static {v4}, Lcom/cleanmaster/notification/ak;->a(Ljava/util/Map;)Z
move-result v4
if-eqz v4, :cond_10c
.line 495
if-eqz v0, :cond_7f
.line 497
invoke-static {}, Lcom/keniu/security/af;->c()Z
move-result v0
if-nez v0, :cond_77
.line 498
invoke-static {v3}, Lcom/cleanmaster/notification/ak;->a(Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;)V
.line 499
const/4 v0, 0x5
const-string/jumbo v1, "wg"
invoke-direct {p0, v0, v1, v5}, Lcom/cleanmaster/notification/ak;->a(ILjava/lang/String;I)V
.line 503
:goto_71
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorCompletely()V
goto :goto_28
:cond_75
move v0, v2
.line 489
goto :goto_4e
.line 501
:cond_77
const/4 v0, 0x6
const-string/jumbo v1, "wg"
invoke-direct {p0, v0, v1, v5}, Lcom/cleanmaster/notification/ak;->a(ILjava/lang/String;I)V
goto :goto_71
.line 504
:cond_7f
if-eqz v7, :cond_28
.line 506
const/4 v0, 0x7
const-string/jumbo v4, "wg"
invoke-direct {p0, v0, v4, v6}, Lcom/cleanmaster/notification/ak;->a(ILjava/lang/String;I)V
.line 508
invoke-static {}, Lcom/cleanmaster/notification/ak;->q()V
.line 510
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/aj;->l()[Ljava/lang/Integer;
move-result-object v4
.line 515
if-eqz v4, :cond_107
array-length v0, v4
if-ne v0, v11, :cond_107
aget-object v0, v4, v2
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
if-eq v0, v10, :cond_107
.line 523
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/aj;->isNotificationGameBoxShow()Z
move-result v0
if-nez v0, :cond_149
.line 524
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isGameUser()Z
move-result v3
.line 525
if-eqz v3, :cond_146
.line 527
const/16 v0, 0x14
aget-object v5, v4, v2
invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I
move-result v5
invoke-direct {p0, v0, v5}, Lcom/cleanmaster/notification/ak;->a(II)V
move v0, v1
.line 530
:goto_bc
invoke-direct {p0, v3}, Lcom/cleanmaster/notification/ak;->h(Z)V
.line 537
:goto_bf
if-nez v0, :cond_28
.line 538
invoke-static {}, Lcom/cleanmaster/notification/aj;->a()Lcom/cleanmaster/notification/aj;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/aj;->m()[Ljava/lang/Integer;
move-result-object v0
.line 544
if-eqz v0, :cond_102
array-length v3, v0
if-ne v3, v11, :cond_102
aget-object v3, v0, v2
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
move-result v3
if-eq v3, v10, :cond_102
.line 550
aget-object v3, v4, v1
if-eqz v3, :cond_fd
aget-object v3, v0, v1
if-eqz v3, :cond_fd
aget-object v3, v4, v1
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
move-result v3
aget-object v5, v0, v1
invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I
move-result v5
if-ge v3, v5, :cond_fd
.line 551
aget-object v0, v0, v2
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
aget-object v1, v4, v2
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
invoke-direct {p0, v0, v1}, Lcom/cleanmaster/notification/ak;->a(II)V
goto/16 :goto_28
.line 553
:cond_fd
invoke-static {v1}, Lcom/cleanmaster/notification/ak;->e(Z)V
goto/16 :goto_28
.line 556
:cond_102
invoke-static {v1}, Lcom/cleanmaster/notification/ak;->e(Z)V
goto/16 :goto_28
.line 560
:cond_107
invoke-static {v1}, Lcom/cleanmaster/notification/ak;->e(Z)V
goto/16 :goto_28
.line 569
:cond_10c
if-eqz v0, :cond_12a
.line 570
if-gt v5, v12, :cond_11a
.line 571
add-int/lit8 v0, v5, 0x1
.line 572
invoke-virtual {v3, v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorRunCount(I)V
.line 574
invoke-static {v1}, Lcom/cleanmaster/notification/ak;->e(Z)V
goto/16 :goto_28
.line 577
:cond_11a
invoke-static {}, Lcom/cleanmaster/notification/s;->a()Lcom/cleanmaster/notification/s;
move-result-object v0
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/notification/s;->b(Landroid/content/Context;)V
.line 578
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorCompletely()V
goto/16 :goto_28
.line 581
:cond_12a
if-gt v6, v12, :cond_136
.line 582
add-int/lit8 v0, v6, 0x1
.line 583
invoke-virtual {v3, v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorRunCount2(I)V
.line 585
invoke-static {v1}, Lcom/cleanmaster/notification/ak;->e(Z)V
goto/16 :goto_28
.line 588
:cond_136
invoke-static {}, Lcom/cleanmaster/notification/s;->a()Lcom/cleanmaster/notification/s;
move-result-object v0
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/notification/s;->b(Landroid/content/Context;)V
.line 589
invoke-virtual {v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotificationMonitorCompletely2()V
goto/16 :goto_28
:cond_146
move v0, v2
goto/16 :goto_bc
:cond_149
move v0, v2
goto/16 :goto_bf
.end method
.method public declared-synchronized callMethodByType(I)I
.registers 4
.prologue
.line 1917
monitor-enter p0
:try_start_1
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1919
sget-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
new-instance v1, Lcom/cleanmaster/notification/an;
invoke-direct {v1, p0, p1}, Lcom/cleanmaster/notification/an;-><init>(Lcom/cleanmaster/notification/ak;I)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:try_end_e
.catchall {:try_start_1 .. :try_end_e} :catchall_11
.line 1937
const/4 v0, 0x0
monitor-exit p0
return v0
.line 1917
:catchall_11
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized cancelFunctionReplace(I)V
.registers 4
.prologue
.line 1855
monitor-enter p0
:try_start_1
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1857
sget-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
new-instance v1, Lcom/cleanmaster/notification/aw;
invoke-direct {v1, p0, p1}, Lcom/cleanmaster/notification/aw;-><init>(Lcom/cleanmaster/notification/ak;I)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:try_end_e
.catchall {:try_start_1 .. :try_end_e} :catchall_10
.line 1872
monitor-exit p0
return-void
.line 1855
:catchall_10
move-exception v0
monitor-exit p0
throw v0
.end method
.method public cancelSyncNotification()V
.registers 3
.prologue
.line 1484
sget-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
new-instance v1, Lcom/cleanmaster/notification/au;
invoke-direct {v1, p0}, Lcom/cleanmaster/notification/au;-><init>(Lcom/cleanmaster/notification/ak;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 1490
return-void
.end method
.method public changeNotificationStyleIfNeed(I)Z
.registers 4
.prologue
.line 1599
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/cleanmaster/notification/ai;->a(I)I
move-result v0
.line 1600
iget v1, p0, Lcom/cleanmaster/notification/ak;->v:I
if-eq v0, v1, :cond_21
.line 1601
iput v0, p0, Lcom/cleanmaster/notification/ak;->v:I
.line 1602
invoke-virtual {p0}, Lcom/cleanmaster/notification/ak;->g()Z
move-result v0
if-eqz v0, :cond_1f
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0xe
if-lt v0, v1, :cond_1f
.line 1603
const/4 v0, -0x1
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Lcom/cleanmaster/notification/ak;->updateSyncNotification(ILandroid/os/Bundle;)V
.line 1605
:cond_1f
const/4 v0, 0x1
.line 1607
:goto_20
return v0
:cond_21
const/4 v0, 0x0
goto :goto_20
.end method
.method public declared-synchronized commitFunctionReplace(III)V
.registers 6
.prologue
.line 1875
monitor-enter p0
:try_start_1
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1877
sget-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
new-instance v1, Lcom/cleanmaster/notification/am;
invoke-direct {v1, p0, p1, p2, p3}, Lcom/cleanmaster/notification/am;-><init>(Lcom/cleanmaster/notification/ak;III)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:try_end_e
.catchall {:try_start_1 .. :try_end_e} :catchall_10
.line 1914
monitor-exit p0
return-void
.line 1875
:catchall_10
move-exception v0
monitor-exit p0
throw v0
.end method
.method public d()V
.registers 3
.prologue
.line 675
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->x:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
if-eqz v0, :cond_14
.line 677
:try_start_4
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;
move-result-object v0
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->x:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->unregisterReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;)V
.line 678
const/4 v0, 0x0
iput-object v0, p0, Lcom/cleanmaster/notification/ak;->x:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
:try_end_14
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_14} :catch_15
.line 682
:cond_14
:goto_14
return-void
.line 679
:catch_15
move-exception v0
goto :goto_14
.end method
.method public f()V
.registers 4
.prologue
.line 1471
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
if-eqz v0, :cond_1b
.line 1472
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_a
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1b
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.line 1473
const/4 v2, 0x1
invoke-virtual {v0, v2}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->c(I)V
goto :goto_a
.line 1476
:cond_1b
return-void
.end method
.method public g()Z
.registers 2
.prologue
.line 1479
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1480
iget-boolean v0, p0, Lcom/cleanmaster/notification/ak;->f:Z
return v0
.end method
.method public h()Ljava/lang/String;
.registers 6
.prologue
const/4 v4, 0x1
const/4 v3, 0x0
const/16 v2, 0x9
.line 1649
new-instance v0, Ljava/lang/StringBuffer;
invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V
.line 1651
invoke-static {}, Lcom/cleanmaster/notification/ai;->i()Z
move-result v1
if-eqz v1, :cond_51
.line 1653
invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1654
invoke-virtual {v0, v3}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1656
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v1
.line 1658
invoke-static {v1}, 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;->isPermanentNotifFeatureSwitchChecked()Z
move-result v2
if-eqz v2, :cond_45
.line 1659
invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1664
:goto_26
invoke-static {v1}, 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;->isPermanentNotifFeatureFunctionChecked()Z
move-result v2
if-eqz v2, :cond_49
.line 1665
invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1670
:goto_33
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;->isPermanentNotifFeatureCommonAppChecked()Z
move-result v1
if-eqz v1, :cond_4d
.line 1671
invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
.line 1679
:goto_40
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.line 1661
:cond_45
invoke-virtual {v0, v3}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
goto :goto_26
.line 1667
:cond_49
invoke-virtual {v0, v3}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
goto :goto_33
.line 1673
:cond_4d
invoke-virtual {v0, v3}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
goto :goto_40
.line 1676
:cond_51
invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
move-result-object v1
invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
move-result-object v1
invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
move-result-object v1
invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
move-result-object v1
invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;
goto :goto_40
.end method
.method public i()Ljava/util/List;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;",
">;"
}
.end annotation
.prologue
.line 1723
iget-object v0, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
return-object v0
.end method
.method public declared-synchronized startGuideNotifyOfOpenPermanentNotificationAndGamebox()V
.registers 9
.prologue
.line 1078
monitor-enter p0
:try_start_1
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1080
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0xe
if-lt v0, v1, :cond_10
invoke-static {}, Lcom/cleanmaster/notification/ai;->i()Z
:try_end_d
.catchall {:try_start_1 .. :try_end_d} :catchall_146
move-result v0
if-nez v0, :cond_12
.line 1160
:cond_10
:goto_10
monitor-exit p0
return-void
.line 1084
:cond_12
:try_start_12
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v0
.line 1086
invoke-static {v0}, Lcom/cleanmaster/notification/ak;->b(Landroid/content/Context;)Z
move-result v1
if-eqz v1, :cond_10
.line 1090
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v1
const/4 v2, 0x1
invoke-virtual {v1, v2}, Lcom/cleanmaster/notification/ai;->a(I)I
.line 1091
invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v1
.line 1092
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotifFeatureSwitchChecked(Z)V
.line 1093
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotifFeatureFunctionChecked(Z)V
.line 1094
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentNotifFeatureCommonAppChecked(Z)V
:try_end_34
.catchall {:try_start_12 .. :try_end_34} :catchall_146
.line 1100
:try_start_34
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v2
const/16 v3, 0x14
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
const/4 v4, 0x0
.line 1099
invoke-static {v2, v3, v4}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/am;->a(Landroid/content/Context;Ljava/lang/Integer;I)Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
move-result-object v2
.line 1101
if-eqz v2, :cond_10
.line 1106
invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;
move-result-object v3
invoke-virtual {v2}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->d()Ljava/lang/String;
move-result-object v4
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getInstance()Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
move-result-object v5
invoke-virtual {v5}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getWhiteColor()Ljava/lang/String;
move-result-object v5
.line 1105
invoke-direct {p0, v3, v4, v5, v2}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;)Ljava/lang/String;
move-result-object v3
.line 1108
iget-object v4, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
if-eqz v4, :cond_62
.line 1109
iget-object v4, p0, Lcom/cleanmaster/notification/ak;->z:Ljava/util/List;
invoke-interface {v4}, Ljava/util/List;->clear()V
.line 1112
:cond_62
invoke-direct {p0, v0}, Lcom/cleanmaster/notification/ak;->g(Landroid/content/Context;)Landroid/widget/RemoteViews;
move-result-object v4
.line 1114
new-instance v5, Landroid/widget/RemoteViews;
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v6
const v7, 0x7f04017d
invoke-direct {v5, v6, v7}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
.line 1115
const v6, 0x7f10061e
invoke-virtual {v4}, Landroid/widget/RemoteViews;->clone()Landroid/widget/RemoteViews;
move-result-object v7
invoke-virtual {v5, v6, v7}, Landroid/widget/RemoteViews;->addView(ILandroid/widget/RemoteViews;)V
.line 1116
const v6, 0x7f100622
invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v3
invoke-virtual {v5, v6, v3}, Landroid/widget/RemoteViews;->setImageViewUri(ILandroid/net/Uri;)V
.line 1117
const v3, 0x7f100623
invoke-virtual {v2}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;->e()Ljava/lang/String;
move-result-object v2
invoke-virtual {v5, v3, v2}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
.line 1119
invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getUserGameCount()I
move-result v1
.line 1120
if-lez v1, :cond_139
const/16 v2, 0xa
if-ge v1, v2, :cond_139
.line 1121
const v2, 0x7f100621
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v5, v2, v1}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
.line 1122
const v1, 0x7f100621
const-string v2, "setBackgroundResource"
const v3, 0x7f020175
invoke-virtual {v5, v1, v2, v3}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
.line 1126
:goto_af
const v1, 0x7f100621
const/4 v2, 0x0
invoke-virtual {v5, v1, v2}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
.line 1128
new-instance v1, Landroid/content/Intent;
const-class v2, Lcom/cleanmaster/service/PermanentService;
invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 1129
const-string v2, "extra_data"
const/16 v3, 0xcf
invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 1130
const-string v2, "cheOnAppUsageChangeExck_type"
const/16 v3, 0x131
invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 1131
sget-object v2, Lcom/cleanmaster/notification/ak;->b:Ljava/lang/String;
invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 1132
const/16 v2, 0xcf
const/high16 v3, 0x10000000
invoke-static {v0, v2, v1, v3}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v1
.line 1134
new-instance v2, Landroid/content/Intent;
const-class v3, Lcom/cleanmaster/service/PermanentService;
invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 1135
const-string v3, "extra_data"
const/16 v6, 0xd0
invoke-virtual {v2, v3, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 1136
const-string v3, "cheOnAppUsageChangeExck_type"
const/16 v6, 0x131
invoke-virtual {v2, v3, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
.line 1137
sget-object v3, Lcom/cleanmaster/notification/ak;->b:Ljava/lang/String;
invoke-virtual {v2, v3}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 1138
const/16 v3, 0xd0
const/high16 v6, 0x10000000
invoke-static {v0, v3, v2, v6}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v2
.line 1140
const v3, 0x7f100620
invoke-virtual {v5, v3, v1}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
.line 1141
const v1, 0x7f100626
invoke-virtual {v5, v1, v2}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
.line 1142
const v1, 0x7f100625
const/4 v2, 0x0
invoke-virtual {v5, v1, v2}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
.line 1143
const v1, 0x7f100627
const/4 v2, 0x0
invoke-virtual {v5, v1, v2}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
.line 1145
invoke-direct {p0, v0}, Lcom/cleanmaster/notification/ak;->f(Landroid/content/Context;)Landroid/app/Notification;
move-result-object v0
.line 1146
const/16 v1, 0x10
iput v1, v0, Landroid/app/Notification;->flags:I
.line 1147
iput-object v4, v0, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
:try_end_11e
.catch Ljava/lang/Exception; {:try_start_34 .. :try_end_11e} :catch_136
.catchall {:try_start_34 .. :try_end_11e} :catchall_146
.line 1150
:try_start_11e
const-class v1, Landroid/app/Notification;
const-string v2, "bigContentView"
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
.line 1151
const/4 v2, 0x1
invoke-virtual {v1, v2}, Ljava/lang/reflect/Field;->setAccessible(Z)V
.line 1152
invoke-virtual {v1, v0, v5}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_12d
.catch Ljava/lang/Exception; {:try_start_11e .. :try_end_12d} :catch_149
.catchall {:try_start_11e .. :try_end_12d} :catchall_146
.line 1156
:goto_12d
:try_start_12d
iget-object v1, p0, Lcom/cleanmaster/notification/ak;->E:Landroid/app/NotificationManager;
const/16 v2, 0x3001
invoke-virtual {v1, v2, v0}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
goto/16 :goto_10
.line 1157
:catch_136
move-exception v0
goto/16 :goto_10
.line 1124
:cond_139
const v1, 0x7f100621
const-string v2, "setBackgroundResource"
const v3, 0x7f020176
invoke-virtual {v5, v1, v2, v3}, Landroid/widget/RemoteViews;->setInt(ILjava/lang/String;I)V
:try_end_144
.catch Ljava/lang/Exception; {:try_start_12d .. :try_end_144} :catch_136
.catchall {:try_start_12d .. :try_end_144} :catchall_146
goto/16 :goto_af
.line 1078
:catchall_146
move-exception v0
monitor-exit p0
throw v0
.line 1153
:catch_149
move-exception v1
goto :goto_12d
.end method
.method public startSyncNotification()V
.registers 3
.prologue
.line 1066
sget-object v0, Lcom/cleanmaster/notification/ak;->D:Landroid/os/Handler;
new-instance v1, Lcom/cleanmaster/notification/as;
invoke-direct {v1, p0}, Lcom/cleanmaster/notification/as;-><init>(Lcom/cleanmaster/notification/ak;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 1072
return-void
.end method
.method public declared-synchronized updateNotificationPromptData(Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;)Z
.registers 5
.prologue
.line 1841
monitor-enter p0
:try_start_1
invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkServiceProcess()V
.line 1843
if-eqz p1, :cond_17
.line 1844
invoke-static {}, Lcom/cleanmaster/notification/ag;->a()Lcom/cleanmaster/notification/ag;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/cleanmaster/notification/ag;->a(Lcom/cm/plugincluster/common/notification/aidl/NotificationPromptData;)Z
move-result v0
.line 1845
if-eqz v0, :cond_15
.line 1846
const/4 v1, -0x1
const/4 v2, 0x0
invoke-virtual {p0, v1, v2}, Lcom/cleanmaster/notification/ak;->updateSyncNotification(ILandroid/os/Bundle;)V
:try_end_15
.catchall {:try_start_1 .. :try_end_15} :catchall_19
.line 1851
:cond_15
:goto_15
monitor-exit p0
return v0
:cond_17
const/4 v0, 0x0
goto :goto_15
.line 1841
:catchall_19
move-exception v0
monitor-exit p0
throw v0
.end method
.method public updateSyncNotification(ILandroid/os/Bundle;)V
.registers 5
.prologue
.line 1392
invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;
move-result-object v0
new-instance v1, Lcom/cleanmaster/notification/at;
invoke-direct {v1, p0, p1, p2}, Lcom/cleanmaster/notification/at;-><init>(Lcom/cleanmaster/notification/ak;ILandroid/os/Bundle;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 1398
return-void
.end method