pc.smali

.class public Ldxoptimizer/pc;
.super Ldxoptimizer/pf;
.source "SoundStateTracker.java"


# static fields
.field private static final a:[I

.field private static final b:[I

.field private static final e:[I


# instance fields
.field private f:I


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

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 18
    new-array v0, v3, [I

    const v1, 0x7f020327

    aput v1, v0, v2

    sput-object v0, Ldxoptimizer/pc;->a:[I

    .line 22
    new-array v0, v3, [I

    const v1, 0x7f020329

    aput v1, v0, v2

    sput-object v0, Ldxoptimizer/pc;->b:[I

    .line 26
    new-array v0, v3, [I

    const v1, 0x7f020328

    aput v1, v0, v2

    sput-object v0, Ldxoptimizer/pc;->e:[I

    return-void
.end method

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

    .prologue
    .line 33
    const/4 v0, 0x5

    invoke-direct {p0, v0}, Ldxoptimizer/pf;-><init>(I)V

    .line 30
    const/4 v0, 0x2

    iput v0, p0, Ldxoptimizer/pc;->f:I

    .line 34
    return-void
.end method


# virtual methods
.method public a(Landroid/content/Context;I)I
    .registers 5

    .prologue
    const/4 v1, 0x0

    .line 38
    iget v0, p0, Ldxoptimizer/pc;->f:I

    packed-switch v0, :pswitch_data_1a

    .line 46
    sget-object v0, Ldxoptimizer/pc;->a:[I

    aget v0, v0, v1

    :goto_a
    return v0

    .line 40
    :pswitch_b
    sget-object v0, Ldxoptimizer/pc;->e:[I

    aget v0, v0, v1

    goto :goto_a

    .line 42
    :pswitch_10
    sget-object v0, Ldxoptimizer/pc;->b:[I

    aget v0, v0, v1

    goto :goto_a

    .line 44
    :pswitch_15
    sget-object v0, Ldxoptimizer/pc;->a:[I

    aget v0, v0, v1

    goto :goto_a

    .line 38
    :pswitch_data_1a
    .packed-switch 0x0
        :pswitch_b
        :pswitch_10
        :pswitch_15
    .end packed-switch
.end method

.method public a(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 4

    .prologue
    .line 70
    const-string v0, "audio"

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

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    invoke-virtual {v0}, Landroid/media/AudioManager;->getMode()I

    move-result v0

    iput v0, p0, Ldxoptimizer/pc;->f:I

    .line 71
    return-void
.end method

.method public a(Landroid/content/Context;Ldxoptimizer/or;Landroid/graphics/Rect;)V
    .registers 12

    .prologue
    const v1, 0x7f080db1

    const/4 v7, 0x2

    const/4 v3, 0x1

    const/4 v4, 0x0

    .line 75
    const-string v0, "audio"

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

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    .line 76
    const v2, 0x7f080896

    .line 77
    invoke-virtual {v0}, Landroid/media/AudioManager;->getRingerMode()I

    move-result v6

    .line 79
    if-nez v6, :cond_5c

    .line 80
    invoke-virtual {v0, v3}, Landroid/media/AudioManager;->setRingerMode(I)V

    .line 83
    invoke-virtual {v0}, Landroid/media/AudioManager;->getRingerMode()I

    move-result v5

    if-ne v6, v5, :cond_53

    move v5, v3

    .line 89
    :goto_21
    if-eq v6, v3, :cond_25

    if-eqz v5, :cond_31

    .line 90
    :cond_25
    invoke-virtual {v0, v7}, Landroid/media/AudioManager;->setRingerMode(I)V

    .line 91
    invoke-virtual {v0}, Landroid/media/AudioManager;->getRingerMode()I

    move-result v5

    if-eq v6, v5, :cond_31

    .line 92
    const v2, 0x7f080db0

    .line 95
    :cond_31
    if-ne v6, v7, :cond_3d

    .line 96
    invoke-virtual {v0, v4}, Landroid/media/AudioManager;->setRingerMode(I)V

    .line 97
    invoke-virtual {v0}, Landroid/media/AudioManager;->getRingerMode()I

    move-result v5

    if-eq v6, v5, :cond_3d

    move v2, v1

    .line 101
    :cond_3d
    if-eqz v6, :cond_58

    if-eq v6, v3, :cond_58

    if-eq v6, v7, :cond_58

    .line 104
    :goto_43
    if-eqz v3, :cond_5a

    .line 105
    invoke-virtual {v0, v4}, Landroid/media/AudioManager;->setRingerMode(I)V

    .line 106
    invoke-virtual {v0}, Landroid/media/AudioManager;->getRingerMode()I

    move-result v0

    if-eq v6, v0, :cond_5a

    move v0, v1

    .line 110
    :goto_4f
    invoke-static {v0, v4}, Ldxoptimizer/cct;->a(II)V

    .line 111
    return-void

    .line 86
    :cond_53
    const v2, 0x7f080db2

    move v5, v4

    goto :goto_21

    :cond_58
    move v3, v4

    .line 101
    goto :goto_43

    :cond_5a
    move v0, v2

    goto :goto_4f

    :cond_5c
    move v5, v4

    goto :goto_21
.end method

.method public a_(Landroid/content/Context;)V
    .registers 3

    .prologue
    .line 61
    const-string v0, "audio"

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

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    .line 62
    if-eqz v0, :cond_10

    .line 63
    invoke-virtual {v0}, Landroid/media/AudioManager;->getRingerMode()I

    move-result v0

    iput v0, p0, Ldxoptimizer/pc;->f:I

    .line 65
    :cond_10
    return-void
.end method