[Galaxy Y GT-S5360 General] minhvn09:
help me

help me

.class Lcom/android/internal/policy/impl/GlobalActions;
.super Ljava/lang/Object;
.source "GlobalActions.java"

# interfaces
.implements Landroid/content/DialogInterface$OnDismissListener;
.implements Landroid/content/DialogInterface$OnClickListener;

# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;,
Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;,
Lcom/android/internal/policy/impl/GlobalActions$Action;,
Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
}
.end annotation

# static fields
.field private static final MESSAGE_DISMISS:I = 0x0

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

# instance fields
.field private mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

.field private mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

.field private mAirplaneState:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

.field private final mAudioManager:Landroid/media/AudioManager;

.field private mBroadcastReceiver:Landroid/content/BroadcastReceiver;

.field private final mContext:Landroid/content/Context;

.field private mDeviceProvisioned:Z

.field private mDialog:Landroid/app/AlertDialog;

.field private mHandler:Landroid/os/Handler;

.field private mIsWaitingForEcmExit:Z

.field private mItems:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Lcom/android/internal/policy/impl/GlobalActions$Action;",
">;"
}
.end annotation
.end field

.field private mKeyguardShowing:Z

.field mPhoneStateListener:Landroid/telephony/PhoneStateListener;

.field private mSilentModeToggle:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

.field private mStatusBar:Landroid/app/StatusBarManager;

# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 4
.parameter "context"

.prologue
const/4 v3, 0x0

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

.line 81
iput-boolean v3, p0, Lcom/android/internal/policy/impl/GlobalActions;->mKeyguardShowing:Z

.line 82
iput-boolean v3, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDeviceProvisioned:Z

.line 83
sget-object v2, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;->Off:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

iput-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneState:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

.line 84
iput-boolean v3, p0, Lcom/android/internal/policy/impl/GlobalActions;->mIsWaitingForEcmExit:Z

.line 562
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$5;

invoke-direct {v2, p0}, Lcom/android/internal/policy/impl/GlobalActions$5;-><init>(Lcom/android/internal/policy/impl/GlobalActions;)V

iput-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mBroadcastReceiver:Landroid/content/BroadcastReceiver;

.line 583
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$6;

invoke-direct {v2, p0}, Lcom/android/internal/policy/impl/GlobalActions$6;-><init>(Lcom/android/internal/policy/impl/GlobalActions;)V

iput-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mPhoneStateListener:Landroid/telephony/PhoneStateListener;

.line 594
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$7;

invoke-direct {v2, p0}, Lcom/android/internal/policy/impl/GlobalActions$7;-><init>(Lcom/android/internal/policy/impl/GlobalActions;)V

iput-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mHandler:Landroid/os/Handler;

.line 90
iput-object p1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

.line 91
iget-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

const-string v3, "audio"

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

move-result-object v2

check-cast v2, Landroid/media/AudioManager;

iput-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAudioManager:Landroid/media/AudioManager;

.line 94
new-instance v0, Landroid/content/IntentFilter;

invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

.line 95
.local v0, filter:Landroid/content/IntentFilter;
const-string v2, "android.intent.action.CLOSE_SYSTEM_DIALOGS"

invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 96
const-string v2, "android.intent.action.SCREEN_OFF"

invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 97
const-string v2, "android.intent.action.EMERGENCY_CALLBACK_MODE_CHANGED"

invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 98
iget-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mBroadcastReceiver:Landroid/content/BroadcastReceiver;

invoke-virtual {p1, v2, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

.line 101
const-string v2, "phone"

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

move-result-object v1

check-cast v1, Landroid/telephony/TelephonyManager;

.line 103
.local v1, telephonyManager:Landroid/telephony/TelephonyManager;
iget-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mPhoneStateListener:Landroid/telephony/PhoneStateListener;

const/4 v3, 0x1

invoke-virtual {v1, v2, v3}, Landroid/telephony/TelephonyManager;->listen(Landroid/telephony/PhoneStateListener;I)V

.line 104
return-void
.end method

.method static synthetic access$000(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
.locals 1
.parameter "x0"

.prologue
.line 64
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

return-object v0
.end method

.method static synthetic access$100(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/media/AudioManager;
.locals 1
.parameter "x0"

.prologue
.line 64
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAudioManager:Landroid/media/AudioManager;

return-object v0
.end method

.method static synthetic access$1000(Lcom/android/internal/policy/impl/GlobalActions;)Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;
.locals 1
.parameter "x0"

.prologue
.line 64
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

return-object v0
.end method

.method static synthetic access$1100(Lcom/android/internal/policy/impl/GlobalActions;)Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
.locals 1
.parameter "x0"

.prologue
.line 64
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

return-object v0
.end method

.method static synthetic access$1200(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/app/AlertDialog;
.locals 1
.parameter "x0"

.prologue
.line 64
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

return-object v0
.end method

.method static synthetic access$200(Lcom/android/internal/policy/impl/GlobalActions;)Z
.locals 1
.parameter "x0"

.prologue
.line 64
iget-boolean v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mIsWaitingForEcmExit:Z

return v0
.end method

.method static synthetic access$202(Lcom/android/internal/policy/impl/GlobalActions;Z)Z
.locals 0
.parameter "x0"
.parameter "x1"

.prologue
.line 64
iput-boolean p1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mIsWaitingForEcmExit:Z

return p1
.end method

.method static synthetic access$300(Lcom/android/internal/policy/impl/GlobalActions;Z)V
.locals 0
.parameter "x0"
.parameter "x1"

.prologue
.line 64
invoke-direct {p0, p1}, Lcom/android/internal/policy/impl/GlobalActions;->changeAirplaneModeSystemSetting(Z)V

return-void
.end method

.method static synthetic access$400(Lcom/android/internal/policy/impl/GlobalActions;)Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;
.locals 1
.parameter "x0"

.prologue
.line 64
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneState:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

return-object v0
.end method

.method static synthetic access$402(Lcom/android/internal/policy/impl/GlobalActions;Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;)Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;
.locals 0
.parameter "x0"
.parameter "x1"

.prologue
.line 64
iput-object p1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneState:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

return-object p1
.end method

.method static synthetic access$600(Lcom/android/internal/policy/impl/GlobalActions;)Ljava/util/ArrayList;
.locals 1
.parameter "x0"

.prologue
.line 64
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

return-object v0
.end method

.method static synthetic access$700(Lcom/android/internal/policy/impl/GlobalActions;)Z
.locals 1
.parameter "x0"

.prologue
.line 64
iget-boolean v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mKeyguardShowing:Z

return v0
.end method

.method static synthetic access$800(Lcom/android/internal/policy/impl/GlobalActions;)Z
.locals 1
.parameter "x0"

.prologue
.line 64
iget-boolean v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDeviceProvisioned:Z

return v0
.end method

.method static synthetic access$900(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/os/Handler;
.locals 1
.parameter "x0"

.prologue
.line 64
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mHandler:Landroid/os/Handler;

return-object v0
.end method

.method private changeAirplaneModeSystemSetting(Z)V
.locals 4
.parameter "on"

.prologue
.line 608
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

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

move-result-object v1

const-string v2, "airplane_mode_on"

if-eqz p1, :cond_0

const/4 v3, 0x1

:goto_0
invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

.line 612
new-instance v0, Landroid/content/Intent;

const-string v1, "android.intent.action.AIRPLANE_MODE"

invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

.line 613
.local v0, intent:Landroid/content/Intent;
const/high16 v1, 0x2000

invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

.line 614
const-string v1, "state"

invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

.line 615
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

invoke-virtual {v1, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

.line 616
return-void

.line 608
.end local v0 #intent:Landroid/content/Intent;
:cond_0
const/4 v3, 0x0

goto :goto_0
.end method

.method private createDialog()Landroid/app/AlertDialog;
.locals 15

.prologue
const v14, 0x1080030

const/4 v13, 0x4

const/4 v12, 0x1

const/4 v11, 0x0

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

const v2, 0x1080031

const v3, 0x1080032

const v4, 0x104014e

const v5, 0x104014f

const v6, 0x1040150

move-object v1, p0

invoke-direct/range {v0 .. v6}, Lcom/android/internal/policy/impl/GlobalActions$1;-><init>(Lcom/android/internal/policy/impl/GlobalActions;IIIII)V

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mSilentModeToggle:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

.line 167
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$2;

const v2, 0x10801e4

const v3, 0x10801e5

const v4, 0x1040151

const v5, 0x1040152

const v6, 0x1040153

move-object v1, p0

invoke-direct/range {v0 .. v6}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;IIIII)V

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

.line 207
const/4 v0, 0x3

new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;

iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mSilentModeToggle:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

aput-object v1, v0, v11

iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

aput-object v1, v0, v12

const/4 v1, 0x2

new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$3;

const v3, 0x104014c

invoke-direct {v2, p0, v14, v3}, Lcom/android/internal/policy/impl/GlobalActions$3;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

aput-object v2, v0, v1

invoke-static {v0}, Lcom/google/android/collect/Lists;->newArrayList([Ljava/lang/Object;)Ljava/util/ArrayList;

move-result-object v0

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

.line 231
const-string v0, "ro.warmboot.capability"

invoke-static {v0, v11}, Landroid/os/SystemProperties;->getBoolean(Ljava/lang/String;Z)Z

move-result v10

.line 232
.local v10, warmBootCapable:Z
const-string v0, "GlobalActions"

new-instance v1, Ljava/lang/StringBuilder;

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

const-string v2, "Device WarmBoot Capability = "

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

move-result-object v1

invoke-virtual {v1, v10}, Ljava/lang/StringBuilder;->append(Z)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;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 234
if-eqz v10, :cond_0

.line 236
new-instance v9, Lcom/android/internal/policy/impl/GlobalActions$4;

const v0, 0x104014d

invoke-direct {v9, p0, v14, v0}, Lcom/android/internal/policy/impl/GlobalActions$4;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

.line 255
.local v9, suspendAction:Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

invoke-virtual {v0, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

.line 258
.end local v9 #suspendAction:Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;
:cond_0
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

const/4 v1, 0x0

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

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

.line 260
new-instance v7, Landroid/app/AlertDialog$Builder;

iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

invoke-direct {v7, v0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

.line 262
.local v7, ab:Landroid/app/AlertDialog$Builder;
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

invoke-virtual {v7, v0, p0}, Landroid/app/AlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

move-result-object v0

invoke-virtual {v0, v12}, Landroid/app/AlertDialog$Builder;->setInverseBackgroundForced(Z)Landroid/app/AlertDialog$Builder;

.line 265
invoke-virtual {v7}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

move-result-object v8

.line 266
.local v8, dialog:Landroid/app/AlertDialog;
invoke-virtual {v8}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;

move-result-object v0

const/16 v1, 0x7d8

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

.line 267
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v0

const v1, 0x10d0001

invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getBoolean(I)Z

move-result v0

if-nez v0, :cond_1

.line 269
invoke-virtual {v8}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;

move-result-object v0

invoke-virtual {v0, v13, v13}, Landroid/view/Window;->setFlags(II)V

.line 273
:cond_1
invoke-virtual {v8, p0}, Landroid/app/AlertDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

.line 275
return-object v8
.end method

.method private prepareDialog()V
.locals 3

.prologue
.line 279
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v1}, Landroid/media/AudioManager;->getRingerMode()I

move-result v1

const/4 v2, 0x2

if-eq v1, v2, :cond_0

const/4 v1, 0x1

move v0, v1

.line 281
.local v0, silentModeOn:Z
:goto_0
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mSilentModeToggle:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

if-eqz v0, :cond_1

sget-object v2, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;->On:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

:goto_1
invoke-virtual {v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->updateState(Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;)V

.line 283
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneModeOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

iget-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAirplaneState:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

invoke-virtual {v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->updateState(Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;)V

.line 284
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

invoke-virtual {v1}, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;->notifyDataSetChanged()V

.line 285
iget-boolean v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mKeyguardShowing:Z

if-eqz v1, :cond_2

.line 286
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

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

move-result-object v1

const/16 v2, 0x7d9

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

.line 290
:goto_2
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

const v2, 0x104014a

invoke-virtual {v1, v2}, Landroid/app/AlertDialog;->setTitle(I)V

.line 291
return-void

.line 279
.end local v0 #silentModeOn:Z
:cond_0
const/4 v1, 0x0

move v0, v1

goto :goto_0

.line 281
.restart local v0 #silentModeOn:Z
:cond_1
sget-object v2, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;->Off:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

goto :goto_1

.line 288
:cond_2
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

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

move-result-object v1

const/16 v2, 0x7d8

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

goto :goto_2
.end method

# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
.locals 1
.parameter "dialog"
.parameter "which"

.prologue
.line 301
invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

.line 302
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

invoke-virtual {v0, p2}, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;->getItem(I)Lcom/android/internal/policy/impl/GlobalActions$Action;

move-result-object v0

invoke-interface {v0}, Lcom/android/internal/policy/impl/GlobalActions$Action;->onPress()V

.line 303
return-void
.end method

.method public onDismiss(Landroid/content/DialogInterface;)V
.locals 2
.parameter "dialog"

.prologue
.line 296
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mStatusBar:Landroid/app/StatusBarManager;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/app/StatusBarManager;->disable(I)V

.line 297
return-void
.end method

.method public showDialog(ZZ)V
.locals 3
.parameter "keyguardShowing"
.parameter "isDeviceProvisioned"

.prologue
const/4 v2, 0x0

.line 111
iput-boolean p1, p0, Lcom/android/internal/policy/impl/GlobalActions;->mKeyguardShowing:Z

.line 112
iput-boolean p2, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDeviceProvisioned:Z

.line 113
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

if-nez v0, :cond_0

.line 114
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

const-string v1, "statusbar"

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

move-result-object v0

check-cast v0, Landroid/app/StatusBarManager;

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mStatusBar:Landroid/app/StatusBarManager;

.line 115
invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->createDialog()Landroid/app/AlertDialog;

move-result-object v0

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

.line 117
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

invoke-virtual {v0}, Landroid/app/AlertDialog;->getListView()Landroid/widget/ListView;

move-result-object v0

invoke-virtual {v0, v2}, Landroid/widget/ListView;->setFocusable(Z)V

.line 118
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

invoke-virtual {v0}, Landroid/app/AlertDialog;->getListView()Landroid/widget/ListView;

move-result-object v0

invoke-virtual {v0, v2}, Landroid/widget/ListView;->setFocusableInTouchMode(Z)V

.line 121
:cond_0
invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->prepareDialog()V

.line 123
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mStatusBar:Landroid/app/StatusBarManager;

const/4 v1, 0x1

invoke-virtual {v0, v1}, Landroid/app/StatusBarManager;->disable(I)V

.line 124
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mDialog:Landroid/app/AlertDialog;

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

.line 125
return-void
.end method