ag.smali
.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "ScreenTimeoutItemController.java"
# interfaces
.implements Lcom/cm/plugincluster/nagativescreen/interfaces/INotificationController;
# instance fields
.field private a:Landroid/content/ContentResolver;
# direct methods
.method public constructor <init>()V
.registers 3
.prologue
.line 24
invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V
.line 22
const/4 v0, 0x0
iput-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a:Landroid/content/ContentResolver;
.line 25
const v0, 0x7f0a0a26
iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->t:I
.line 26
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->c:Landroid/content/Context;
iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->t:I
invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->n:Ljava/lang/String;
.line 28
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->c:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
iput-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a:Landroid/content/ContentResolver;
.line 29
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->f:Z
.line 30
return-void
.end method
.method private f(I)Ljava/lang/String;
.registers 3
.prologue
.line 86
sparse-switch p1, :sswitch_data_18
.line 100
const-string v0, ""
:goto_5
return-object v0
.line 88
:sswitch_6
const-string v0, "15"
goto :goto_5
.line 90
:sswitch_9
const-string v0, "30"
goto :goto_5
.line 92
:sswitch_c
const-string v0, "1"
goto :goto_5
.line 94
:sswitch_f
const-string v0, "2"
goto :goto_5
.line 96
:sswitch_12
const-string v0, "5"
goto :goto_5
.line 98
:sswitch_15
const-string v0, "10"
goto :goto_5
.line 86
:sswitch_data_18
.sparse-switch
0x3a98 -> :sswitch_6
0x7530 -> :sswitch_9
0xea60 -> :sswitch_c
0x1d4c0 -> :sswitch_f
0x493e0 -> :sswitch_12
0x927c0 -> :sswitch_15
.end sparse-switch
.end method
.method private g(I)I
.registers 8
.prologue
const v4, 0x493e0
const v3, 0x1d4c0
const v2, 0xea60
const/16 v1, 0x7530
const/16 v5, 0x3a98
.line 106
.line 107
if-gt p1, v5, :cond_20
if-lez p1, :cond_20
.line 110
const/4 v0, 0x1
move v2, v1
move v1, v0
.line 127
:goto_14
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->m:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_1f
.line 128
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->m:Landroid/graphics/drawable/Drawable;
check-cast v0, Landroid/graphics/drawable/LevelListDrawable;
.line 129
invoke-virtual {v0, v1}, Landroid/graphics/drawable/LevelListDrawable;->setLevel(I)Z
.line 131
:cond_1f
return v2
.line 111
:cond_20
if-gt p1, v1, :cond_25
.line 113
const/4 v0, 0x2
move v1, v0
goto :goto_14
.line 114
:cond_25
if-gt p1, v2, :cond_2b
.line 116
const/4 v0, 0x3
move v1, v0
move v2, v3
goto :goto_14
.line 117
:cond_2b
if-gt p1, v3, :cond_31
.line 119
const/4 v0, 0x4
move v1, v0
move v2, v4
goto :goto_14
.line 120
:cond_31
if-gt p1, v4, :cond_3a
.line 121
const v1, 0x927c0
.line 122
const/4 v0, 0x5
move v2, v1
move v1, v0
goto :goto_14
.line 125
:cond_3a
const/4 v0, 0x0
move v1, v0
move v2, v5
goto :goto_14
.end method
# virtual methods
.method public a()I
.registers 4
.prologue
.line 35
:try_start_0
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a:Landroid/content/ContentResolver;
const-string/jumbo v1, "screen_off_timeout"
const/16 v2, 0x7530
invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
:try_end_a
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_a} :catch_c
move-result v0
.line 41
:goto_b
return v0
.line 39
:catch_c
move-exception v0
.line 41
const/4 v0, 0x0
goto :goto_b
.end method
.method public a(I)V
.registers 4
.prologue
.line 47
const/4 v0, 0x0
:try_start_1
iput-boolean v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->k:Z
.line 48
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a:Landroid/content/ContentResolver;
const-string/jumbo v1, "screen_off_timeout"
invoke-static {v0, v1, p1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z
.line 50
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->k()V
:try_end_e
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_e} :catch_f
.line 54
:goto_e
return-void
.line 51
:catch_f
move-exception v0
.line 52
invoke-virtual {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a(Ljava/lang/Exception;)V
goto :goto_e
.end method
.method public b(I)Ljava/lang/String;
.registers 3
.prologue
.line 183
const-string v0, ""
.line 184
packed-switch p1, :pswitch_data_14
.line 190
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getBlueColor()Ljava/lang/String;
move-result-object v0
.line 193
:goto_b
return-object v0
.line 186
:pswitch_c
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->getWhiteColor()Ljava/lang/String;
move-result-object v0
goto :goto_b
.line 184
nop
:pswitch_data_14
.packed-switch 0x1
:pswitch_c
.end packed-switch
.end method
.method public b()V
.registers 2
.prologue
.line 64
const-string v0, "android.settings.DISPLAY_SETTINGS"
invoke-virtual {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a(Ljava/lang/String;)Z
.line 65
return-void
.end method
.method public c()I
.registers 2
.prologue
.line 136
const/16 v0, 0xf
return v0
.end method
.method public d()Ljava/lang/String;
.registers 2
.prologue
.line 146
const-string v0, ""
.line 147
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a()I
move-result v0
.line 148
sparse-switch v0, :sswitch_data_36
.line 174
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreen15s:Ljava/lang/String;
.line 178
:goto_d
return-object v0
.line 150
:sswitch_e
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreen15s:Ljava/lang/String;
goto :goto_d
.line 153
:sswitch_13
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreen30s:Ljava/lang/String;
goto :goto_d
.line 156
:sswitch_18
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreen1m:Ljava/lang/String;
goto :goto_d
.line 159
:sswitch_1d
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreen2m:Ljava/lang/String;
goto :goto_d
.line 162
:sswitch_22
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreen5m:Ljava/lang/String;
goto :goto_d
.line 165
:sswitch_27
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreen10m:Ljava/lang/String;
goto :goto_d
.line 168
:sswitch_2c
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreen30m:Ljava/lang/String;
goto :goto_d
.line 171
:sswitch_31
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;
iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->lockScreenInfinity:Ljava/lang/String;
goto :goto_d
.line 148
:sswitch_data_36
.sparse-switch
0x3a98 -> :sswitch_e
0x7530 -> :sswitch_13
0xea60 -> :sswitch_18
0x1d4c0 -> :sswitch_1d
0x493e0 -> :sswitch_22
0x927c0 -> :sswitch_27
0x1b7740 -> :sswitch_2c
0x7fffffff -> :sswitch_31
.end sparse-switch
.end method
.method public f()Ljava/lang/String;
.registers 6
.prologue
const/4 v3, 0x1
const/4 v4, 0x0
.line 69
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a()I
move-result v0
.line 71
invoke-direct {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->f(I)Ljava/lang/String;
move-result-object v1
.line 72
const/16 v2, 0x7530
if-gt v0, v2, :cond_1c
.line 73
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->c:Landroid/content/Context;
const v2, 0x7f0a0a20
new-array v3, v3, [Ljava/lang/Object;
aput-object v1, v3, v4
invoke-virtual {v0, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 82
:goto_1b
return-object v0
.line 75
:cond_1c
const v2, 0xea60
if-ne v0, v2, :cond_2f
.line 76
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->c:Landroid/content/Context;
const v2, 0x7f0a0a1e
new-array v3, v3, [Ljava/lang/Object;
aput-object v1, v3, v4
invoke-virtual {v0, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
goto :goto_1b
.line 79
:cond_2f
iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->c:Landroid/content/Context;
const v2, 0x7f0a0a1f
new-array v3, v3, [Ljava/lang/Object;
aput-object v1, v3, v4
invoke-virtual {v0, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
goto :goto_1b
.end method
.method public getNotificationResId(I)I
.registers 3
.prologue
.line 141
iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->s:I
return v0
.end method
.method public onClick()V
.registers 2
.prologue
.line 58
invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a()I
move-result v0
.line 59
invoke-direct {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->g(I)I
move-result v0
invoke-virtual {p0, v0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ag;->a(I)V
.line 60
return-void
.end method