[Galaxy S II Android Development] remuntada78:
SimUnlockScreen.smali added in red, :good:

.class public Lcom/android/internal/policy/impl/SimUnlockScreen;
.super Landroid/widget/LinearLayout;
.source "SimUnlockScreen.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/android/internal/policy/impl/KeyguardScreen;
.implements Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$AirplaneModeChangeCallback;

# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;,
Lcom/android/internal/policy/impl/SimUnlockScreen$CheckSimPin;
}
.end annotation

# static fields
.field private static final DEBUG:Z = true

.field private static final DIGITS:[C = null

.field private static final DIGIT_PRESS_WAKE_MILLIS:I = 0x1388

.field private static final TAG:Ljava/lang/String; = "SimUnlockScreen"

# instance fields
.field private mBackSpaceButton:Landroid/view/View;

.field private final mCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

.field private mCreationOrientation:I

.field private mEmergencyCallButton:Landroid/widget/Button;

.field private mEnteredDigits:I

.field private final mEnteredPin:[I

.field private mHeaderText:Landroid/widget/TextView;

.field private mKeyboardHidden:I

.field private mKeyguardStatusViewManager:Lcom/android/internal/policy/impl/KeyguardStatusViewManager;

.field private mLastNumber:Ljava/lang/String;

.field private mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

.field private mLockinfoText:Landroid/widget/TextView;

.field private mOkButton:Landroid/widget/TextView;

.field private mPinText:Landroid/widget/TextView;

.field private mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

.field private final mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

.field private num_of_retry:I

[COLOR="Red"].field mButtonPressed:Landroid/view/View;[/COLOR]

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

.prologue
.line 89
const/16 v0, 0xa

new-array v0, v0, [C

fill-array-data v0, :array_a

sput-object v0, Lcom/android/internal/policy/impl/SimUnlockScreen;->DIGITS:[C

return-void

:array_a
.array-data 0x2
0x30t 0x0t
0x31t 0x0t
0x32t 0x0t
0x33t 0x0t
0x34t 0x0t
0x35t 0x0t
0x36t 0x0t
0x37t 0x0t
0x38t 0x0t
0x39t 0x0t
.end array-data
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;Lcom/android/internal/widget/LockPatternUtils;)V
.registers 16
.parameter "context"
.parameter "configuration"
.parameter "updateMonitor"
.parameter "callback"
.parameter "lockpatternutils"

.prologue
const/4 v2, 0x0

const/4 v5, 0x0

const/4 v7, 0x1

.line 100
invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

.line 76
const/16 v0, 0x8

new-array v0, v0, [I

fill-array-data v0, :array_104

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEnteredPin:[I

.line 77
iput v5, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEnteredDigits:I

.line 79
iput-object v2, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

.line 90
iput v5, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->num_of_retry:I

.line 101
iput-object p3, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

.line 102
iput-object p4, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

.line 104
iget v0, p2, Landroid/content/res/Configuration;->orientation:I

iput v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mCreationOrientation:I

.line 105
iget v0, p2, Landroid/content/res/Configuration;->hardKeyboardHidden:I

iput v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mKeyboardHidden:I

.line 106
iput-object p5, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

.line 108
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

move-result-object v6

.line 109
.local v6, inflater:Landroid/view/LayoutInflater;
iget v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mKeyboardHidden:I

if-ne v0, v7, :cond_e5

.line 110
const v0, 0x1090080

invoke-virtual {v6, v0, p0, v7}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

.line 120
:goto_31
invoke-direct {p0}, Lcom/android/internal/policy/impl/SimUnlockScreen;->getSimLockInfoResult()I

move-result v0

iput v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->num_of_retry:I

.line 121
const-string v0, "SimUnlockScreen"

new-instance v1, Ljava/lang/StringBuilder;

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

const-string v2, "SimUnlockScreen: num_of_retry is "

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

move-result-object v1

iget v2, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->num_of_retry:I

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v1

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

move-result-object v1

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

[COLOR="Red"] .line 122
const v0, 0x01080131

invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mButtonPressed:Landroid/view/View;

iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mButtonPressed:Landroid/view/View;

invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

check-cast v0, Landroid/widget/ImageView;

invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v4

invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v4

const-string v8, "button_pressed_color"

const v9, -0x1

invoke-static {v4, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v4

invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setColorFilter(I)V[/COLOR]

.line 123
const v0, 0x1020372

invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

.line 124
const v0, 0x1020373

invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mLockinfoText:Landroid/widget/TextView;

.line 125
const v0, 0x1020375

invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mPinText:Landroid/widget/TextView;

.line 126
const v0, 0x1020376

invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mBackSpaceButton:Landroid/view/View;

.line 127
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mBackSpaceButton:Landroid/view/View;

invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

.line 130
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mBackSpaceButton:Landroid/view/View;

const v1, 0x10404bf

invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

move-result-object v1

invoke-virtual {v0, v1}, Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V

.line 132
const v0, 0x1020345

invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mOkButton:Landroid/widget/TextView;

.line 133
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

invoke-virtual {v0, p0}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->registerAirplaneCallbacks(Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$AirplaneModeChangeCallback;)V

.line 135
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

const v1, 0x10403cf

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

iget-object v4, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v4

invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v4

const-string v8, "checkbox_preference"

const v9, 0x1

invoke-static {v4, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v4

if-eqz v4, :cond_skip1

iget-object v4, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v4

invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v4

const-string v8, "text_color"

const v9, -0x1

invoke-static {v4, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v4

invoke-virtual {v0, v4}, Landroid/widget/TextView;->setTextColor(I)V

:cond_skip1

.line 136
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mPinText:Landroid/widget/TextView;

invoke-virtual {v0, v5}, Landroid/view/View;->setFocusable(Z)V

.line 138
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mOkButton:Landroid/widget/TextView;

invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

.line 140
new-instance v0, Lcom/android/internal/policy/impl/KeyguardStatusViewManager;

move-object v1, p0

move-object v2, p3

move-object v3, p5

move-object v4, p4

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/KeyguardStatusViewManager;-><init>(Landroid/view/View;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardScreenCallback;Z)V

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mKeyguardStatusViewManager:Lcom/android/internal/policy/impl/KeyguardStatusViewManager;

.line 144
invoke-static {}, Lcom/android/internal/policy/impl/sec/SamsungLockScreenProperties;->isDirectCallToEcc()Z

move-result v0

if-eqz v0, :cond_de

.line 145
const v0, 0x102033f

invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/Button;

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEmergencyCallButton:Landroid/widget/Button;

.line 146
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v1, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEmergencyCallButton:Landroid/widget/Button;

invoke-virtual {v0, v1}, Lcom/android/internal/widget/LockPatternUtils;->updateEmergencyCallButtonState(Landroid/widget/Button;)V

.line 147
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEmergencyCallButton:Landroid/widget/Button;

invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

.line 148
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEmergencyCallButton:Landroid/widget/Button;

const v1, 0x10403e4

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

.line 151
:cond_de
invoke-virtual {p0, v7}, Landroid/view/View;->setFocusableInTouchMode(Z)V

.line 153
invoke-virtual {p0}, Lcom/android/internal/policy/impl/SimUnlockScreen;->setLockInfoText()V

.line 154
return-void

.line 112
:cond_e5
invoke-static {}, Lcom/android/internal/policy/impl/sec/SamsungLockScreenProperties;->isTabletDevice()Z

move-result v0

if-nez v0, :cond_fd

iget v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mCreationOrientation:I

const/4 v1, 0x2

if-ne v0, v1, :cond_fd

.line 113
const v0, 0x1090081

invoke-virtual {v6, v0, p0, v7}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

.line 117
:goto_f6
new-instance v0, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;

invoke-direct {v0, p0, v2}, Lcom/android/internal/policy/impl/SimUnlockScreen$TouchInput;-><init>(Lcom/android/internal/policy/impl/SimUnlockScreen;Lcom/android/internal/policy/impl/SimUnlockScreen$1;)V

goto/16 :goto_31

.line 115
:cond_fd
const v0, 0x1090082

invoke-virtual {v6, v0, p0, v7}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

goto :goto_f6

.line 76
:array_104
.array-data 0x4
0x0t 0x0t 0x0t 0x0t
0x0t 0x0t 0x0t 0x0t
0x0t 0x0t 0x0t 0x0t
0x0t 0x0t 0x0t 0x0t
0x0t 0x0t 0x0t 0x0t
0x0t 0x0t 0x0t 0x0t
0x0t 0x0t 0x0t 0x0t
0x0t 0x0t 0x0t 0x0t
.end array-data
.end method

.method static synthetic access$100(Lcom/android/internal/policy/impl/SimUnlockScreen;)Landroid/app/ProgressDialog;
.registers 2
.parameter "x0"

.prologue
.line 59
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

return-object v0
.end method

.method static synthetic access$1002(Lcom/android/internal/policy/impl/SimUnlockScreen;I)I
.registers 2
.parameter "x0"
.parameter "x1"

.prologue
.line 59
iput p1, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEnteredDigits:I

return p1
.end method

.method static synthetic access$1100(Lcom/android/internal/policy/impl/SimUnlockScreen;I)V
.registers 2
.parameter "x0"
.parameter "x1"

.prologue
.line 59
invoke-direct {p0, p1}, Lcom/android/internal/policy/impl/SimUnlockScreen;->reportDigit(I)V

return-void
.end method

.method static synthetic access$200(Lcom/android/internal/policy/impl/SimUnlockScreen;)Landroid/content/Context;
.registers 2
.parameter "x0"

.prologue
.line 59
iget-object v0, p0, Landroid/view/View;->mContext:Landroid/content/Context;

return-object v0
.end method

.method static synthetic access$300(Lcom/android/internal/policy/impl/SimUnlockScreen;)Landroid/content/Context;
.registers 2
.parameter "x0"

.prologue
.line 59
iget-object v0, p0, Landroid/view/View;->mContext:Landroid/content/Context;

return-object v0
.end method

.method static synthetic access$400(Lcom/android/internal/policy/impl/SimUnlockScreen;)Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;
.registers 2
.parameter "x0"

.prologue
.line 59
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

return-object v0
.end method

.method static synthetic access$500(Lcom/android/internal/policy/impl/SimUnlockScreen;)Lcom/android/internal/policy/impl/KeyguardScreenCallback;
.registers 2
.parameter "x0"

.prologue
.line 59
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

return-object v0
.end method

.method static synthetic access$600(Lcom/android/internal/policy/impl/SimUnlockScreen;)I
.registers 2
.parameter "x0"

.prologue
.line 59
iget v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->num_of_retry:I

return v0
.end method

.method static synthetic access$602(Lcom/android/internal/policy/impl/SimUnlockScreen;I)I
.registers 2
.parameter "x0"
.parameter "x1"

.prologue
.line 59
iput p1, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->num_of_retry:I

return p1
.end method

.method static synthetic access$700(Lcom/android/internal/policy/impl/SimUnlockScreen;)I
.registers 2
.parameter "x0"

.prologue
.line 59
invoke-direct {p0}, Lcom/android/internal/policy/impl/SimUnlockScreen;->getSimLockInfoResult()I

move-result v0

return v0
.end method

.method static synthetic access$800(Lcom/android/internal/policy/impl/SimUnlockScreen;)Landroid/widget/TextView;
.registers 2
.parameter "x0"

.prologue
.line 59
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

return-object v0
.end method

.method static synthetic access$900(Lcom/android/internal/policy/impl/SimUnlockScreen;)Landroid/widget/TextView;
.registers 2
.parameter "x0"

.prologue
.line 59
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mPinText:Landroid/widget/TextView;

return-object v0
.end method

.method private checkPin()V
.registers 6

.prologue
.line 335
iget v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEnteredDigits:I

const/4 v1, 0x4

if-ge v0, v1, :cond_26

.line 337
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

const v1, 0x10400fd

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

iget-object v2, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "checkbox_preference"

const v4, 0x1

invoke-static {v2, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

if-eqz v2, :cond_skip2

iget-object v2, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "text_color"

const v4, -0x1

invoke-static {v2, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

:cond_skip2

.line 338
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mHeaderText:Landroid/widget/TextView;

const/4 v1, 0x1

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setSelected(Z)V

.line 339
invoke-virtual {p0}, Lcom/android/internal/policy/impl/SimUnlockScreen;->setLockInfoText()V

.line 340
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mPinText:Landroid/widget/TextView;

const-string v1, ""

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

iget-object v2, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mPinText:Landroid/widget/TextView;

invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "checkbox_preference"

const v4, 0x1

invoke-static {v2, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

if-eqz v2, :cond_skip3

iget-object v2, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mPinText:Landroid/widget/TextView;

invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "text_color"

const v4, -0x1

invoke-static {v2, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

:cond_skip3

.line 341
const/4 v0, 0x0

iput v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mEnteredDigits:I

.line 342
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-interface {v0}, Lcom/android/internal/policy/impl/KeyguardScreenCallback;->pokeWakelock()V

.line 390
:goto_25
return-void

.line 345
:cond_26
invoke-direct {p0}, Lcom/android/internal/policy/impl/SimUnlockScreen;->getSimUnlockProgressDialog()Landroid/app/Dialog;

move-result-object v0

invoke-virtual {v0}, Landroid/app/Dialog;->show()V

.line 347
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

const v1, 0x927c0

invoke-interface {v0, v1}, Lcom/android/internal/policy/impl/KeyguardScreenCallback;->pokeWakelock(I)V

.line 349
new-instance v0, Lcom/android/internal/policy/impl/SimUnlockScreen$1;

iget-object v1, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mPinText:Landroid/widget/TextView;

invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

move-result-object v1

invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

move-result-object v1

invoke-direct {v0, p0, v1}, Lcom/android/internal/policy/impl/SimUnlockScreen$1;-><init>(Lcom/android/internal/policy/impl/SimUnlockScreen;Ljava/lang/String;)V

invoke-virtual {v0}, Ljava/lang/Thread;->start()V

goto :goto_25
.end method

.method private getSimLockInfoResult()I
.registers 5

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

.line 166
.local v0, result:I
:try_start_1
const-string v1, "phoneext"

invoke-static {v1}, Landroid/os/ServiceManager;->checkService(Ljava/lang/String;)Landroid/os/IBinder;

move-result-object v1

invoke-static {v1}, Lcom/android/internal/telephony/ITelephonyExt$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/telephony/ITelephonyExt;

move-result-object v1

invoke-interface {v1}, Lcom/android/internal/telephony/ITelephonyExt;->getSimPinRetry()I

move-result v0

.line 170
invoke-static {}, Lcom/android/internal/policy/impl/sec/MultiSimUtils;->isMultiSIMDevice()Z

move-result v1

if-eqz v1, :cond_29

invoke-static {}, Lcom/android/internal/policy/impl/sec/MultiSimUtils;->getCurrentPinLockSlot()I

move-result v1

if-lez v1, :cond_29

.line 172
const-string v1, "phoneext2"

invoke-static {v1}, Landroid/os/ServiceManager;->checkService(Ljava/lang/String;)Landroid/os/IBinder;

move-result-object v1

invoke-static {v1}, Lcom/android/internal/telephony/ITelephonyExt$Stub;->asInterface(Landroid/os/IBinder;)Lcom/android/internal/telephony/ITelephonyExt;

move-result-object v1

invoke-interface {v1}, Lcom/android/internal/telephony/ITelephonyExt;->getSimPinRetry()I
:try_end_28
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_28} :catch_42

move-result v0

.line 179
:cond_29
:goto_29
const-string v1, "SimUnlockScreen"

new-instance v2, Ljava/lang/StringBuilder;

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

const-string v3, "getSimLockInfoResult(): num_of_retry is "

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

move-result-object v2

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

move-result-object v2

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

move-result-object v2

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

.line 180
return v0

.line 177
:catch_42
move-exception v1

goto :goto_29
.end method

.method private getSimUnlockProgressDialog()Landroid/app/Dialog;
.registers 4

.prologue
.line 320
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

if-nez v0, :cond_32

.line 321
new-instance v0, Landroid/app/ProgressDialog;

iget-object v1, p0, Landroid/view/View;->mContext:Landroid/content/Context;

invoke-direct {v0, v1}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

iput-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

.line 322
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

iget-object v1, p0, Landroid/view/View;->mContext:Landroid/content/Context;

const v2, 0x104040b

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

move-result-object v1

invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

.line 324
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

const/4 v1, 0x1

invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

.line 325
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCancelable(Z)V

.line 326
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

invoke-virtual {v0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

move-result-object v0

const/16 v1, 0x7d9

invoke-virtual {v0, v1}, Landroid/view/Window;->setType(I)V

.line 329
:cond_32
iget-object v0, p0, Lcom/android/internal/policy/impl/SimUnlockScreen;->mSimUnlockProgressDialog:Landroid/app/ProgressDialog;

return-object v0
.end method