[Galaxy Y GT-S5360 Android Development] NgamTeroxx:
im not understand why not working

.class abstract Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;

.super Ljava/lang/Object;

.source "GlobalActions.java"

# interfaces

.implements Lcom/android/internal/policy/impl/GlobalActions$Action;

# annotations

.annotation system Ldalvik/annotation/EnclosingClass;

value = Lcom/android/internal/policy/impl/GlobalActions;

.end annotation

.annotation system Ldalvik/annotation/InnerClass;

accessFlags = 0x40a

name = "SinglePressAction"

.end annotation

# static fields

.field protected static rebootMode:I

.field protected static final rebootOptions:[Ljava/lang/String;

# instance fields

.field private final mIconResId:I

.field private final mMessageResId:I

# direct methods

.method static constructor <clinit>()V

.locals 3

const/4 v0, 0x3

new-array v0, v0, [Ljava/lang/String;

const/4 v1, 0x0

const-string v2, "Reboot"

aput-object v2, v0, v1

const/4 v1, 0x1

const-string v2, "Hot Boot"

aput-object v2, v0, v1

const/4 v1, 0x2

const-string v2, "Recovery"

aput-object v2, v0, v1

sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

return-void

.end method

.method protected constructor <init>(II)V

.locals 0

.parameter "iconResId"

.parameter "messageResId"

.prologue

.line 453

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

.line 454

iput p1, p0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->mIconResId:I

.line 455

iput p2, p0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->mMessageResId:I

.line 456

return-void

.end method

# virtual methods

.method public create(Landroid/content/Context;Landroid/view/View;Landroid/view/ViewGroup;Landroid/view/LayoutInflater;)Landroid/view/View;

.locals 5

.parameter "context"

.parameter "convertView"

.parameter "parent"

.parameter "inflater"

.prologue

.line 466

if-eqz p2, :cond_0

move-object v2, p2

.line 470

.local v2, v:Landroid/view/View;

:goto_0

const v3, 0x1020006

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

move-result-object v0

check-cast v0, Landroid/widget/ImageView;

.line 471

.local v0, icon:Landroid/widget/ImageView;

const v3, 0x102000b

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

move-result-object v1

check-cast v1, Landroid/widget/TextView;

.line 473

.local v1, messageView:Landroid/widget/TextView;

const v3, 0x10201b2

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

move-result-object v3

const/16 v4, 0x8

invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V

.line 475

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

move-result-object v3

iget v4, p0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->mIconResId:I

invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v3

invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

.line 476

iget v3, p0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->mMessageResId:I

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

.line 478

return-object v2

.line 466

.end local v0 #icon:Landroid/widget/ImageView;

.end local v1 #messageView:Landroid/widget/TextView;

.end local v2 #v:Landroid/view/View;

:cond_0

const v3, 0x1090028

const/4 v4, 0x0

invoke-virtual {p4, v3, p3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v3

move-object v2, v3

goto :goto_0

.end method

.method public isEnabled()Z

.locals 1

.prologue

.line 459

const/4 v0, 0x1

return v0

.end method

.method public abstract onPress()V

.end method