605 lines
15 KiB
Smali
605 lines
15 KiB
Smali
.class public Lcom/moji/preferences/SettingPrefer;
|
|
.super Lcom/moji/tool/preferences/core/BasePreferences;
|
|
.source "SettingPrefer.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static a:Landroid/content/Context;
|
|
|
|
.field private static b:Lcom/moji/preferences/SettingPrefer;
|
|
|
|
.field private static volatile e:Ljava/lang/Integer;
|
|
|
|
.field private static j:Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field private d:Ljava/lang/String;
|
|
|
|
.field private f:Ljava/lang/Boolean;
|
|
|
|
.field private g:Ljava/lang/Integer;
|
|
|
|
.field private h:Ljava/lang/Integer;
|
|
|
|
.field private i:Ljava/lang/Integer;
|
|
|
|
.field private k:Ljava/lang/String;
|
|
|
|
.field private final l:[I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 24
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/moji/preferences/SettingPrefer;->a:Landroid/content/Context;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 87
|
|
sput-object v0, Lcom/moji/preferences/SettingPrefer;->e:Ljava/lang/Integer;
|
|
|
|
.line 203
|
|
sput-object v0, Lcom/moji/preferences/SettingPrefer;->j:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 28
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer;->a:Landroid/content/Context;
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/tool/preferences/core/BasePreferences;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 50
|
|
iput-object v0, p0, Lcom/moji/preferences/SettingPrefer;->d:Ljava/lang/String;
|
|
|
|
.line 89
|
|
iput-object v0, p0, Lcom/moji/preferences/SettingPrefer;->f:Ljava/lang/Boolean;
|
|
|
|
.line 90
|
|
iput-object v0, p0, Lcom/moji/preferences/SettingPrefer;->g:Ljava/lang/Integer;
|
|
|
|
.line 150
|
|
iput-object v0, p0, Lcom/moji/preferences/SettingPrefer;->h:Ljava/lang/Integer;
|
|
|
|
.line 193
|
|
iput-object v0, p0, Lcom/moji/preferences/SettingPrefer;->i:Ljava/lang/Integer;
|
|
|
|
.line 211
|
|
iput-object v0, p0, Lcom/moji/preferences/SettingPrefer;->k:Ljava/lang/String;
|
|
|
|
const/16 v0, 0xc
|
|
|
|
.line 320
|
|
new-array v0, v0, [I
|
|
|
|
fill-array-data v0, :array_0
|
|
|
|
iput-object v0, p0, Lcom/moji/preferences/SettingPrefer;->l:[I
|
|
|
|
return-void
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x14
|
|
0x13
|
|
0x15
|
|
0x15
|
|
0x15
|
|
0x16
|
|
0x17
|
|
0x17
|
|
0x17
|
|
0x17
|
|
0x16
|
|
0x16
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public static declared-synchronized c()Lcom/moji/preferences/SettingPrefer;
|
|
.locals 2
|
|
|
|
const-class v0, Lcom/moji/preferences/SettingPrefer;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 32
|
|
:try_start_0
|
|
sget-object v1, Lcom/moji/preferences/SettingPrefer;->b:Lcom/moji/preferences/SettingPrefer;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 33
|
|
new-instance v1, Lcom/moji/preferences/SettingPrefer;
|
|
|
|
invoke-direct {v1}, Lcom/moji/preferences/SettingPrefer;-><init>()V
|
|
|
|
sput-object v1, Lcom/moji/preferences/SettingPrefer;->b:Lcom/moji/preferences/SettingPrefer;
|
|
|
|
.line 35
|
|
:cond_0
|
|
sget-object v1, Lcom/moji/preferences/SettingPrefer;->b:Lcom/moji/preferences/SettingPrefer;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 31
|
|
monitor-exit v0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method private d(I)V
|
|
.locals 1
|
|
|
|
.line 264
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->AUTO_UPDATE_RANDOM_MINUTES:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 41
|
|
sget-object v0, Lcom/moji/preferences/PreferenceNameEnum;->SETTING_PREFERENCE:Lcom/moji/preferences/PreferenceNameEnum;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/PreferenceNameEnum;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(F)V
|
|
.locals 2
|
|
|
|
.line 282
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_UPDATE_INTERVAL:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/SettingPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Float;)V
|
|
|
|
.line 283
|
|
new-instance v0, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/preferences/ProcessPrefer;->a(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(I)V
|
|
.locals 1
|
|
|
|
.line 93
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->SETTING_RECORD_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(J)V
|
|
.locals 1
|
|
|
|
.line 183
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_CITY_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Long;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 236
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_START_UPDATE_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/String;)V
|
|
|
|
.line 237
|
|
new-instance v0, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/preferences/ProcessPrefer;->r(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 1
|
|
|
|
.line 228
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_AUTO_UPDATE:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Boolean;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public b(I)V
|
|
.locals 1
|
|
|
|
.line 101
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->USER_VIP_CONFIG_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(J)V
|
|
.locals 1
|
|
|
|
.line 392
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->RECORD_TIMESTAMP:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Long;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 268
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_END_UPDATE_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/String;)V
|
|
|
|
.line 269
|
|
new-instance v0, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/preferences/ProcessPrefer;->s(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(I)V
|
|
.locals 1
|
|
|
|
.line 368
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_APP_VERSION:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/SettingPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()I
|
|
.locals 2
|
|
|
|
.line 97
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->SETTING_RECORD_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 2
|
|
|
|
.line 105
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->USER_VIP_CONFIG_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public f()J
|
|
.locals 3
|
|
|
|
.line 179
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_CITY_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1, v2}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public g()Z
|
|
.locals 2
|
|
|
|
.line 232
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_AUTO_UPDATE:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Z)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public h()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 242
|
|
invoke-virtual {p0}, Lcom/moji/preferences/SettingPrefer;->i()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0xa
|
|
|
|
const/16 v2, 0x3c
|
|
|
|
if-ge v0, v2, :cond_1
|
|
|
|
.line 244
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "06:"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "0"
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
if-gt v2, v0, :cond_3
|
|
|
|
const/16 v3, 0x78
|
|
|
|
if-ge v0, v3, :cond_3
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
.line 247
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "07:"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "0"
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_1
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const-string v0, "06:00"
|
|
|
|
.line 251
|
|
:goto_2
|
|
sget-object v1, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_START_UPDATE_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v1, v0}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public i()I
|
|
.locals 2
|
|
|
|
.line 255
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->AUTO_UPDATE_RANDOM_MINUTES:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 257
|
|
new-instance v0, Ljava/util/Random;
|
|
|
|
invoke-direct {v0}, Ljava/util/Random;-><init>()V
|
|
|
|
const/16 v1, 0x77
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/Random;->nextInt(I)I
|
|
|
|
move-result v0
|
|
|
|
.line 258
|
|
invoke-direct {p0, v0}, Lcom/moji/preferences/SettingPrefer;->d(I)V
|
|
|
|
:cond_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public j()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 273
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_END_UPDATE_TIME:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const-string v1, "22:00"
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public k()F
|
|
.locals 2
|
|
|
|
.line 287
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_UPDATE_INTERVAL:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;Ljava/lang/Float;)Ljava/lang/Float;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public l()I
|
|
.locals 2
|
|
|
|
.line 372
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->KEY_APP_VERSION:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public m()J
|
|
.locals 3
|
|
|
|
.line 396
|
|
sget-object v0, Lcom/moji/preferences/SettingPrefer$KeyConstant;->RECORD_TIMESTAMP:Lcom/moji/preferences/SettingPrefer$KeyConstant;
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1, v2}, Lcom/moji/preferences/SettingPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|