c.smali

.class public Lcom/cm/reminder/system/c;
.super Ljava/lang/Object;
.source "SyncTaskManager.java"

# interfaces
.implements Ljava/lang/Runnable;


# static fields
.field static a:Lcom/cm/reminder/system/c;


# instance fields
.field private volatile b:Z

.field private c:J

.field private d:J

.field private volatile e:Z


# direct methods
.method public constructor <init>()V
    .registers 4

    .prologue
    const/4 v2, 0x0

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

    .line 16
    iput-boolean v2, p0, Lcom/cm/reminder/system/c;->b:Z

    .line 18
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/cm/reminder/system/c;->c:J

    .line 20
    const-wide/16 v0, 0x7d0

    iput-wide v0, p0, Lcom/cm/reminder/system/c;->d:J

    .line 23
    iput-boolean v2, p0, Lcom/cm/reminder/system/c;->e:Z

    return-void
.end method

.method public static a()Lcom/cm/reminder/system/c;
    .registers 2

    .prologue
    .line 26
    sget-object v0, Lcom/cm/reminder/system/c;->a:Lcom/cm/reminder/system/c;

    if-nez v0, :cond_13

    .line 27
    const-class v1, Lcom/cm/reminder/system/c;

    monitor-enter v1

    .line 28
    :try_start_7
    sget-object v0, Lcom/cm/reminder/system/c;->a:Lcom/cm/reminder/system/c;

    if-nez v0, :cond_12

    .line 29
    new-instance v0, Lcom/cm/reminder/system/c;

    invoke-direct {v0}, Lcom/cm/reminder/system/c;-><init>()V

    sput-object v0, Lcom/cm/reminder/system/c;->a:Lcom/cm/reminder/system/c;

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

    .line 33
    :cond_13
    sget-object v0, Lcom/cm/reminder/system/c;->a:Lcom/cm/reminder/system/c;

    return-object v0

    .line 31
    :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 f()V
    .registers 3

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

    move-result-wide v0

    iput-wide v0, p0, Lcom/cm/reminder/system/c;->c:J

    .line 62
    return-void
.end method


# virtual methods
.method public b()V
    .registers 5

    .prologue
    .line 40
    invoke-static {}, Lcom/cm/reminder/system/a/a;->f()V

    .line 42
    iget-boolean v0, p0, Lcom/cm/reminder/system/c;->b:Z

    if-eqz v0, :cond_8

    .line 58
    :cond_7
    :goto_7
    return-void

    .line 43
    :cond_8
    invoke-virtual {p0}, Lcom/cm/reminder/system/c;->c()J

    move-result-wide v0

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

    move-result-wide v2

    .line 46
    sub-long v0, v2, v0

    iget-wide v2, p0, Lcom/cm/reminder/system/c;->d:J

    cmp-long v0, v0, v2

    if-ltz v0, :cond_7

    .line 47
    invoke-direct {p0}, Lcom/cm/reminder/system/c;->f()V

    .line 48
    invoke-virtual {p0}, Lcom/cm/reminder/system/c;->d()Z

    move-result v0

    iput-boolean v0, p0, Lcom/cm/reminder/system/c;->e:Z

    .line 49
    iget-boolean v0, p0, Lcom/cm/reminder/system/c;->e:Z

    if-eqz v0, :cond_32

    .line 50
    invoke-static {p0}, Lcom/cm/reminder/d/a;->a(Ljava/lang/Runnable;)V

    .line 52
    const-wide/16 v0, 0x7d0

    invoke-static {p0, v0, v1}, Lcom/cm/reminder/d/a;->a(Ljava/lang/Runnable;J)V

    .line 56
    :goto_2d
    const-wide/16 v0, 0x3e8

    iput-wide v0, p0, Lcom/cm/reminder/system/c;->d:J

    goto :goto_7

    .line 54
    :cond_32
    invoke-static {p0}, Lcom/cm/reminder/d/a;->a(Ljava/lang/Runnable;)V

    goto :goto_2d
.end method

.method public c()J
    .registers 3

    .prologue
    .line 78
    iget-wide v0, p0, Lcom/cm/reminder/system/c;->c:J

    return-wide v0
.end method

.method public d()Z
    .registers 3

    .prologue
    .line 82
    const-string v0, "key_com_cm_reminder_system_is_first"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->getBooleanValue(Ljava/lang/String;Z)Z

    move-result v0

    .line 83
    return v0
.end method

.method public e()V
    .registers 3

    .prologue
    .line 87
    const-string v0, "key_com_cm_reminder_system_is_first"

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->setBooleanValue(Ljava/lang/String;Z)V

    .line 88
    return-void
.end method

.method public run()V
    .registers 4

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 66
    iput-boolean v2, p0, Lcom/cm/reminder/system/c;->b:Z

    .line 67
    invoke-virtual {p0}, Lcom/cm/reminder/system/c;->d()Z

    move-result v0

    iput-boolean v0, p0, Lcom/cm/reminder/system/c;->e:Z

    .line 68
    iget-boolean v0, p0, Lcom/cm/reminder/system/c;->e:Z

    if-eqz v0, :cond_17

    .line 69
    invoke-virtual {p0}, Lcom/cm/reminder/system/c;->e()V

    .line 70
    invoke-static {v2}, Lcom/cm/reminder/notification/b;->a(Z)V

    .line 74
    :goto_14
    iput-boolean v1, p0, Lcom/cm/reminder/system/c;->b:Z

    .line 75
    return-void

    .line 72
    :cond_17
    invoke-static {v1}, Lcom/cm/reminder/notification/b;->a(Z)V

    goto :goto_14
.end method