.class public Lcom/moji/alarm/clock/AlarmAlertWakeLock;
.super Ljava/lang/Object;
.source "AlarmAlertWakeLock.java"


# static fields
.field private static a:Landroid/os/PowerManager$WakeLock;


# direct methods
.method public constructor <init>()V
    .locals 0

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

    return-void
.end method

.method public static a()V
    .locals 1

    .line 26
    sget-object v0, Lcom/moji/alarm/clock/AlarmAlertWakeLock;->a:Landroid/os/PowerManager$WakeLock;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/moji/alarm/clock/AlarmAlertWakeLock;->a:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 27
    sget-object v0, Lcom/moji/alarm/clock/AlarmAlertWakeLock;->a:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V

    const/4 v0, 0x0

    .line 28
    sput-object v0, Lcom/moji/alarm/clock/AlarmAlertWakeLock;->a:Landroid/os/PowerManager$WakeLock;

    :cond_0
    return-void
.end method

.method public static a(Landroid/content/Context;)V
    .locals 2

    .line 13
    sget-object v0, Lcom/moji/alarm/clock/AlarmAlertWakeLock;->a:Landroid/os/PowerManager$WakeLock;

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const-string v0, "power"

    .line 17
    invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/os/PowerManager;

    if-nez p0, :cond_1

    return-void

    :cond_1
    const v0, 0x30000006

    const-string v1, ""

    .line 21
    invoke-virtual {p0, v0, v1}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object p0

    sput-object p0, Lcom/moji/alarm/clock/AlarmAlertWakeLock;->a:Landroid/os/PowerManager$WakeLock;

    .line 22
    sget-object p0, Lcom/moji/alarm/clock/AlarmAlertWakeLock;->a:Landroid/os/PowerManager$WakeLock;

    const-wide/16 v0, 0x7d0

    invoke-virtual {p0, v0, v1}, Landroid/os/PowerManager$WakeLock;->acquire(J)V

    return-void
.end method
