ResultPageStorage.smali

.class public Lcom/cleanmaster/resultpage/storage/ResultPageStorage;
.super Ljava/lang/Object;
.source "ResultPageStorage.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/resultpage/storage/ResultPageStorage$CleanItem_DbHelper;
    }
.end annotation


# static fields
.field static a:I

.field static b:I

.field private static c:Lcom/cleanmaster/resultpage/storage/ResultPageStorage;


# instance fields
.field private d:Landroid/content/Context;

.field private e:Lcom/cleanmaster/resultpage/storage/ResultPageStorage$CleanItem_DbHelper;


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

    .prologue
    const/4 v1, -0x1

    .line 34
    const/4 v0, 0x0

    sput-object v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->c:Lcom/cleanmaster/resultpage/storage/ResultPageStorage;

    .line 192
    sput v1, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a:I

    .line 193
    sput v1, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->b:I

    return-void
.end method

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

    .prologue
    const/4 v0, 0x0

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

    .line 35
    iput-object v0, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->d:Landroid/content/Context;

    .line 36
    iput-object v0, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->e:Lcom/cleanmaster/resultpage/storage/ResultPageStorage$CleanItem_DbHelper;

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

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a(Landroid/content/Context;)V

    .line 55
    return-void
.end method

.method private a(Ljava/lang/String;)J
    .registers 13

    .prologue
    const/4 v10, 0x0

    .line 376
    const-wide/16 v8, 0x0

    .line 377
    invoke-virtual {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 378
    if-nez v0, :cond_b

    move-wide v0, v8

    .line 395
    :cond_a
    :goto_a
    return-wide v0

    .line 384
    :cond_b
    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    move-object v1, p1

    :try_start_12
    invoke-virtual/range {v0 .. v7}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_12 .. :try_end_15} :catch_38
    .catchall {:try_start_12 .. :try_end_15} :catchall_45

    move-result-object v3

    .line 385
    :try_start_16
    invoke-interface {v3}, Landroid/database/Cursor;->moveToFirst()Z
    :try_end_19
    .catch Ljava/lang/Exception; {:try_start_16 .. :try_end_19} :catch_4f
    .catchall {:try_start_16 .. :try_end_19} :catchall_4d

    move-wide v0, v8

    :goto_1a
    :try_start_1a
    invoke-interface {v3}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v2

    if-nez v2, :cond_32

    .line 386
    const-string/jumbo v2, "value"

    invoke-interface {v3, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v3, v2}, Landroid/database/Cursor;->getLong(I)J
    :try_end_2a
    .catch Ljava/lang/Exception; {:try_start_1a .. :try_end_2a} :catch_53
    .catchall {:try_start_1a .. :try_end_2a} :catchall_4d

    move-result-wide v4

    add-long v8, v0, v4

    .line 385
    :try_start_2d
    invoke-interface {v3}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_30
    .catch Ljava/lang/Exception; {:try_start_2d .. :try_end_30} :catch_4f
    .catchall {:try_start_2d .. :try_end_30} :catchall_4d

    move-wide v0, v8

    goto :goto_1a

    .line 391
    :cond_32
    if-eqz v3, :cond_a

    .line 392
    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    goto :goto_a

    .line 388
    :catch_38
    move-exception v0

    move-object v2, v0

    move-object v3, v10

    move-wide v0, v8

    .line 389
    :goto_3c
    :try_start_3c
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_3f
    .catchall {:try_start_3c .. :try_end_3f} :catchall_4d

    .line 391
    if-eqz v3, :cond_a

    .line 392
    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    goto :goto_a

    .line 391
    :catchall_45
    move-exception v0

    move-object v3, v10

    :goto_47
    if-eqz v3, :cond_4c

    .line 392
    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    :cond_4c
    throw v0

    .line 391
    :catchall_4d
    move-exception v0

    goto :goto_47

    .line 388
    :catch_4f
    move-exception v0

    move-object v2, v0

    move-wide v0, v8

    goto :goto_3c

    :catch_53
    move-exception v2

    goto :goto_3c
.end method

.method private a(I)Ljava/util/List;
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/List",
            "<",
            "Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;",
            ">;"
        }
    .end annotation

    .prologue
    const/4 v9, 0x0

    .line 400
    invoke-virtual {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 401
    new-instance v8, Ljava/util/ArrayList;

    const/4 v1, 0x5

    invoke-direct {v8, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 402
    if-nez v0, :cond_f

    move-object v0, v8

    .line 424
    :goto_e
    return-object v0

    .line 408
    :cond_f
    :try_start_f
    const-string v1, "tbl_cleanitem_top1"

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const-string/jumbo v7, "value DESC"

    invoke-virtual/range {v0 .. v7}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_1c
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_1c} :catch_6f
    .catchall {:try_start_f .. :try_end_1c} :catchall_65

    move-result-object v1

    .line 409
    :try_start_1d
    invoke-interface {v1}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_20
    invoke-interface {v1}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v0

    if-nez v0, :cond_50

    .line 410
    new-instance v0, Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;

    invoke-direct {v0}, Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;-><init>()V

    invoke-virtual {v0, v1}, Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;->fromCursor(Landroid/database/Cursor;)Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;

    move-result-object v0

    .line 411
    invoke-interface {v8, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 412
    const-string v2, "top1"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 413
    invoke-interface {v8}, Ljava/util/List;->size()I
    :try_end_4d
    .catch Ljava/lang/Exception; {:try_start_1d .. :try_end_4d} :catch_5b
    .catchall {:try_start_1d .. :try_end_4d} :catchall_6d

    move-result v0

    if-le v0, p1, :cond_57

    .line 420
    :cond_50
    if-eqz v1, :cond_55

    .line 421
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    :cond_55
    :goto_55
    move-object v0, v8

    .line 424
    goto :goto_e

    .line 409
    :cond_57
    :try_start_57
    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_5a
    .catch Ljava/lang/Exception; {:try_start_57 .. :try_end_5a} :catch_5b
    .catchall {:try_start_57 .. :try_end_5a} :catchall_6d

    goto :goto_20

    .line 417
    :catch_5b
    move-exception v0

    .line 418
    :goto_5c
    :try_start_5c
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_5f
    .catchall {:try_start_5c .. :try_end_5f} :catchall_6d

    .line 420
    if-eqz v1, :cond_55

    .line 421
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    goto :goto_55

    .line 420
    :catchall_65
    move-exception v0

    move-object v1, v9

    :goto_67
    if-eqz v1, :cond_6c

    .line 421
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    :cond_6c
    throw v0

    .line 420
    :catchall_6d
    move-exception v0

    goto :goto_67

    .line 417
    :catch_6f
    move-exception v0

    move-object v1, v9

    goto :goto_5c
.end method

.method private a(Landroid/content/Context;)V
    .registers 3

    .prologue
    .line 39
    iput-object p1, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->d:Landroid/content/Context;

    .line 40
    new-instance v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage$CleanItem_DbHelper;

    invoke-direct {v0, p1}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage$CleanItem_DbHelper;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->e:Lcom/cleanmaster/resultpage/storage/ResultPageStorage$CleanItem_DbHelper;

    .line 41
    return-void
.end method

.method public static b()Lcom/cleanmaster/resultpage/storage/ResultPageStorage;
    .registers 2

    .prologue
    .line 80
    sget-object v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->c:Lcom/cleanmaster/resultpage/storage/ResultPageStorage;

    if-nez v0, :cond_13

    .line 81
    const-class v1, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;

    monitor-enter v1

    .line 82
    :try_start_7
    sget-object v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->c:Lcom/cleanmaster/resultpage/storage/ResultPageStorage;

    if-nez v0, :cond_12

    .line 83
    new-instance v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;

    invoke-direct {v0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;-><init>()V

    sput-object v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->c:Lcom/cleanmaster/resultpage/storage/ResultPageStorage;

    .line 85
    :cond_12
    monitor-exit v1
    :try_end_13
    .catchall {:try_start_7 .. :try_end_13} :catchall_16

    .line 87
    :cond_13
    sget-object v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->c:Lcom/cleanmaster/resultpage/storage/ResultPageStorage;

    return-object v0

    .line 85
    :catchall_16
    move-exception v0

    :try_start_17
    monitor-exit v1
    :try_end_18
    .catchall {:try_start_17 .. :try_end_18} :catchall_16

    throw v0
.end method

.method private b(I)Ljava/util/List;
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/List",
            "<",
            "Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;",
            ">;"
        }
    .end annotation

    .prologue
    const/4 v9, 0x0

    .line 428
    invoke-virtual {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 429
    new-instance v8, Ljava/util/ArrayList;

    const/4 v1, 0x5

    invoke-direct {v8, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 430
    if-nez v0, :cond_f

    move-object v0, v8

    .line 455
    :goto_e
    return-object v0

    .line 435
    :cond_f
    :try_start_f
    const-string v1, "tbl_cleanitem_top7"

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const-string/jumbo v7, "value DESC"

    invoke-virtual/range {v0 .. v7}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_1c
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_1c} :catch_7c
    .catch Ljava/lang/OutOfMemoryError; {:try_start_f .. :try_end_1c} :catch_65
    .catchall {:try_start_f .. :try_end_1c} :catchall_70

    move-result-object v1

    .line 437
    :try_start_1d
    invoke-interface {v1}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_20
    invoke-interface {v1}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v0

    if-nez v0, :cond_50

    .line 438
    new-instance v0, Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;

    invoke-direct {v0}, Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;-><init>()V

    invoke-virtual {v0, v1}, Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;->fromCursor(Landroid/database/Cursor;)Lcom/cm/plugincluster/cleanmaster/junk/bean/CleanItem;

    move-result-object v0

    .line 439
    const-string v2, "top7"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 440
    invoke-interface {v8, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 441
    invoke-interface {v8}, Ljava/util/List;->size()I
    :try_end_4d
    .catch Ljava/lang/Exception; {:try_start_1d .. :try_end_4d} :catch_5b
    .catch Ljava/lang/OutOfMemoryError; {:try_start_1d .. :try_end_4d} :catch_7a
    .catchall {:try_start_1d .. :try_end_4d} :catchall_78

    move-result v0

    if-le v0, p1, :cond_57

    .line 450
    :cond_50
    if-eqz v1, :cond_55

    .line 451
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    :cond_55
    :goto_55
    move-object v0, v8

    .line 455
    goto :goto_e

    .line 437
    :cond_57
    :try_start_57
    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_5a
    .catch Ljava/lang/Exception; {:try_start_57 .. :try_end_5a} :catch_5b
    .catch Ljava/lang/OutOfMemoryError; {:try_start_57 .. :try_end_5a} :catch_7a
    .catchall {:try_start_57 .. :try_end_5a} :catchall_78

    goto :goto_20

    .line 445
    :catch_5b
    move-exception v0

    .line 446
    :goto_5c
    :try_start_5c
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_5f
    .catchall {:try_start_5c .. :try_end_5f} :catchall_78

    .line 450
    if-eqz v1, :cond_55

    .line 451
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    goto :goto_55

    .line 447
    :catch_65
    move-exception v0

    move-object v1, v9

    .line 448
    :goto_67
    :try_start_67
    invoke-virtual {v0}, Ljava/lang/OutOfMemoryError;->printStackTrace()V
    :try_end_6a
    .catchall {:try_start_67 .. :try_end_6a} :catchall_78

    .line 450
    if-eqz v1, :cond_55

    .line 451
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    goto :goto_55

    .line 450
    :catchall_70
    move-exception v0

    move-object v1, v9

    :goto_72
    if-eqz v1, :cond_77

    .line 451
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    :cond_77
    throw v0

    .line 450
    :catchall_78
    move-exception v0

    goto :goto_72

    .line 447
    :catch_7a
    move-exception v0

    goto :goto_67

    .line 445
    :catch_7c
    move-exception v0

    move-object v1, v9

    goto :goto_5c
.end method

.method private f()J
    .registers 3

    .prologue
    .line 368
    const-string v0, "tbl_cleanitem_top1"

    invoke-direct {p0, v0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a(Ljava/lang/String;)J

    move-result-wide v0

    return-wide v0
.end method

.method private g()J
    .registers 3

    .prologue
    .line 372
    const-string v0, "tbl_cleanitem_top7"

    invoke-direct {p0, v0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a(Ljava/lang/String;)J

    move-result-wide v0

    return-wide v0
.end method

.method private h()I
    .registers 4

    .prologue
    .line 497
    sget v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->b:I

    if-gez v0, :cond_19

    .line 498
    iget-object v0, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->d:Landroid/content/Context;

    const-string v1, "rp"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, ":TOP7"

    invoke-virtual {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->d()I

    move-result v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    sput v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->b:I

    .line 500
    :cond_19
    sget v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->b:I

    return v0
.end method

.method private i()I
    .registers 4

    .prologue
    .line 509
    sget v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a:I

    if-gez v0, :cond_19

    .line 510
    iget-object v0, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->d:Landroid/content/Context;

    const-string v1, "rp"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, ":TOP1"

    invoke-virtual {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->c()I

    move-result v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    sput v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a:I

    .line 512
    :cond_19
    sget v0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a:I

    return v0
.end method

.method private j()Z
    .registers 6

    .prologue
    const/4 v4, 0x7

    const/4 v0, 0x1

    .line 561
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    .line 562
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 563
    invoke-virtual {v1, v4}, Ljava/util/Calendar;->get(I)I

    move-result v1

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

    if-ne v1, v4, :cond_16

    :cond_15
    :goto_15
    return v0

    :cond_16
    const/4 v0, 0x0

    goto :goto_15
.end method


# virtual methods
.method public a()Landroid/database/sqlite/SQLiteDatabase;
    .registers 3

    .prologue
    .line 44
    const/4 v0, 0x0

    .line 46
    :try_start_1
    iget-object v1, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->e:Lcom/cleanmaster/resultpage/storage/ResultPageStorage$CleanItem_DbHelper;

    invoke-virtual {v1}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage$CleanItem_DbHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_6} :catch_8

    move-result-object v0

    .line 50
    :goto_7
    return-object v0

    .line 47
    :catch_8
    move-exception v1

    .line 48
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_7
.end method

.method public c()I
    .registers 5

    .prologue
    .line 461
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    .line 462
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 463
    const/4 v1, 0x6

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v0

    return v0
.end method

.method public d()I
    .registers 6

    .prologue
    const/4 v4, 0x3

    .line 467
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    .line 468
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v0, v2, v3}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 469
    const/4 v1, 0x7

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v1

    .line 470
    const/4 v2, 0x1

    if-ne v1, v2, :cond_1b

    invoke-virtual {v0, v4}, Ljava/util/Calendar;->get(I)I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    :goto_1a
    return v0

    :cond_1b
    invoke-virtual {v0, v4}, Ljava/util/Calendar;->get(I)I

    move-result v0

    goto :goto_1a
.end method

.method public e()Lcom/cm/plugincluster/resultpage/storage/CleanResultData;
    .registers 6

    .prologue
    const/4 v4, 0x5

    .line 572
    invoke-virtual {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->c()I

    move-result v0

    .line 573
    invoke-virtual {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->d()I

    move-result v1

    .line 575
    new-instance v2, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;

    invoke-direct {v2}, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;-><init>()V

    .line 576
    invoke-direct {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->j()Z

    move-result v3

    if-eqz v3, :cond_49

    invoke-direct {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->h()I

    move-result v3

    if-ne v1, v3, :cond_49

    .line 577
    invoke-direct {p0, v4}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->b(I)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->d:Landroid/content/Context;

    invoke-static {v0, v1}, Lcom/cm/plugincluster/resultpage/storage/ResultCleanItem;->transforms(Ljava/util/List;Landroid/content/Context;)Ljava/util/List;

    move-result-object v0

    iput-object v0, v2, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;->mCleanItem:Ljava/util/List;

    .line 579
    sget-object v0, Lcom/cm/plugincluster/resultpage/storage/RankType;->TOP7:Lcom/cm/plugincluster/resultpage/storage/RankType;

    iput-object v0, v2, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;->mRankType:Lcom/cm/plugincluster/resultpage/storage/RankType;

    .line 580
    invoke-direct {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->g()J

    move-result-wide v0

    iput-wide v0, v2, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;->mTotalCleanSize:J

    .line 589
    :cond_30
    :goto_30
    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;->isJunkEFirst()Z

    move-result v0

    .line 590
    if-eqz v0, :cond_48

    invoke-virtual {v2}, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;->isNull()Z

    move-result v0

    if-nez v0, :cond_48

    .line 591
    sget-object v0, Lcom/cm/plugincluster/resultpage/storage/RankType;->FIRST:Lcom/cm/plugincluster/resultpage/storage/RankType;

    iput-object v0, v2, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;->mRankType:Lcom/cm/plugincluster/resultpage/storage/RankType;

    .line 594
    :cond_48
    return-object v2

    .line 582
    :cond_49
    invoke-direct {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->i()I

    move-result v1

    if-ne v0, v1, :cond_30

    .line 583
    invoke-direct {p0, v4}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->a(I)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->d:Landroid/content/Context;

    invoke-static {v0, v1}, Lcom/cm/plugincluster/resultpage/storage/ResultCleanItem;->transforms(Ljava/util/List;Landroid/content/Context;)Ljava/util/List;

    move-result-object v0

    iput-object v0, v2, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;->mCleanItem:Ljava/util/List;

    .line 584
    sget-object v0, Lcom/cm/plugincluster/resultpage/storage/RankType;->TOP1:Lcom/cm/plugincluster/resultpage/storage/RankType;

    iput-object v0, v2, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;->mRankType:Lcom/cm/plugincluster/resultpage/storage/RankType;

    .line 585
    invoke-direct {p0}, Lcom/cleanmaster/resultpage/storage/ResultPageStorage;->f()J

    move-result-wide v0

    iput-wide v0, v2, Lcom/cm/plugincluster/resultpage/storage/CleanResultData;->mTotalCleanSize:J

    goto :goto_30
.end method