bqh$1.smali

.class Ldxoptimizer/bqh$1;
.super Ljava/lang/Object;
.source "AppInstallTask.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Ldxoptimizer/bqh;->a()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ldxoptimizer/bqh;


# direct methods
.method constructor <init>(Ldxoptimizer/bqh;)V
    .registers 2

    .prologue
    .line 82
    iput-object p1, p0, Ldxoptimizer/bqh$1;->a:Ldxoptimizer/bqh;

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

    return-void
.end method


# virtual methods
.method public run()V
    .registers 11

    .prologue
    const-wide/32 v8, 0x493e0

    const/4 v6, 0x1

    .line 85
    iget-object v0, p0, Ldxoptimizer/bqh$1;->a:Ldxoptimizer/bqh;

    invoke-static {v0}, Ldxoptimizer/bqh;->a(Ldxoptimizer/bqh;)Landroid/content/Context;

    move-result-object v0

    const-string v1, "power"

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

    move-result-object v0

    check-cast v0, Landroid/os/PowerManager;

    .line 86
    const/4 v1, 0x0

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

    move-result-wide v2

    .line 89
    const/4 v4, 0x1

    :try_start_18
    const-string v5, "safeupgrade"

    invoke-virtual {v0, v4, v5}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object v1

    .line 90
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0xe

    if-lt v0, v4, :cond_49

    .line 91
    const-wide/32 v4, 0x493e0

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

    .line 98
    :goto_2a
    iget-object v0, p0, Ldxoptimizer/bqh$1;->a:Ldxoptimizer/bqh;

    invoke-static {v0}, Ldxoptimizer/bqh;->b(Ldxoptimizer/bqh;)V
    :try_end_2f
    .catchall {:try_start_18 .. :try_end_2f} :catchall_4d

    .line 101
    if-eqz v1, :cond_34

    .line 102
    :try_start_31
    invoke-virtual {v1}, Landroid/os/PowerManager$WakeLock;->release()V
    :try_end_34
    .catch Ljava/lang/Exception; {:try_start_31 .. :try_end_34} :catch_69

    .line 110
    :cond_34
    :goto_34
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    sub-long/2addr v0, v2

    cmp-long v0, v0, v8

    if-lez v0, :cond_48

    .line 111
    const-string v0, "asu_c"

    const-string v1, "asu_iato"

    .line 113
    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    .line 111
    invoke-static {v0, v1, v2}, Ldxoptimizer/cgh;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Number;)V

    .line 116
    :cond_48
    return-void

    .line 93
    :cond_49
    :try_start_49
    invoke-virtual {v1}, Landroid/os/PowerManager$WakeLock;->acquire()V
    :try_end_4c
    .catchall {:try_start_49 .. :try_end_4c} :catchall_4d

    goto :goto_2a

    .line 100
    :catchall_4d
    move-exception v0

    .line 101
    if-eqz v1, :cond_53

    .line 102
    :try_start_50
    invoke-virtual {v1}, Landroid/os/PowerManager$WakeLock;->release()V
    :try_end_53
    .catch Ljava/lang/Exception; {:try_start_50 .. :try_end_53} :catch_6e

    .line 110
    :cond_53
    :goto_53
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    sub-long v2, v4, v2

    cmp-long v1, v2, v8

    if-lez v1, :cond_68

    .line 111
    const-string v1, "asu_c"

    const-string v2, "asu_iato"

    .line 113
    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    .line 111
    invoke-static {v1, v2, v3}, Ldxoptimizer/cgh;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Number;)V

    :cond_68
    throw v0

    .line 107
    :catch_69
    move-exception v0

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

    goto :goto_34

    .line 107
    :catch_6e
    move-exception v1

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

    goto :goto_53
.end method