Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method private createDialogAdv()Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;
- .locals 13
- const/4 v10, 0x5
- const/4 v9, 0x1
- const v8, 0x10405b8
- const v7, 0x10405b7
- const v6, 0x1080629
- const-string v0, "ADVANCED POWER MENU"
- const-string v1, "Begin create Dialog"
- invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
- new-array v0, v10, [Lcom/android/internal/policy/impl/GlobalActions$Action;
- const/4 v4, 0x0
- new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$23;
- invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$23;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v5, v0, v4
- const/4 v4, 0x1
- const v8, 0x10405bb
- const v7, 0x10405ba
- const v6, 0x1080623
- new-instance v4, Lcom/android/internal/policy/impl/GlobalActions$20;
- invoke-direct {v4, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$20;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v4, v0, v9
- const/4 v4, 0x2
- const v8, 0x10405c1
- const v7, 0x10405c0
- const v6, 0x108062a
- new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$22;
- invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$22;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v5, v0, v4
- const/4 v4, 0x3
- const v8, 0x10405bd
- const v7, 0x10405bc
- const v6, 0x1080628
- new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$21;
- invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$21;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v5, v0, v4
- const/4 v4, 0x4
- const v8, 0x10405bf
- const v7, 0x10405be
- const v6, 0x1080620
- new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$24;
- invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$24;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
- aput-object v5, v0, v4
- 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;
- 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;
- new-instance v11, Lcom/htc/app/HtcAlertController$AlertParams;
- iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
- invoke-direct {v11, v0}, Lcom/htc/app/HtcAlertController$AlertParams;-><init>(Landroid/content/Context;)V
- iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
- iput-object v0, v11, Lcom/htc/app/HtcAlertController$AlertParams;->mAdapter:Landroid/widget/ListAdapter;
- iput-object p0, v11, Lcom/htc/app/HtcAlertController$AlertParams;->mOnClickListener:Landroid/content/DialogInterface$OnClickListener;
- new-instance v12, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;
- iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
- invoke-direct {v12, v0, v11}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;-><init>(Landroid/content/Context;Lcom/htc/app/HtcAlertController$AlertParams;)V
- invoke-virtual {v12, v1}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->setCanceledOnTouchOutside(Z)V
- invoke-virtual {v12}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->getListView()Landroid/widget/ListView;
- move-result-object v0
- invoke-virtual {v0, v9}, Landroid/widget/ListView;->setItemsCanFocus(Z)V
- invoke-virtual {v12}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->getListView()Landroid/widget/ListView;
- move-result-object v0
- invoke-virtual {v0, v9}, Landroid/widget/ListView;->setLongClickable(Z)V
- invoke-virtual {v12}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->getListView()Landroid/widget/ListView;
- move-result-object v0
- new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$6;
- invoke-direct {v1, p0}, Lcom/android/internal/policy/impl/GlobalActions$6;-><init>(Lcom/android/internal/policy/impl/GlobalActions;)V
- invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V
- invoke-virtual {v12}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->getWindow()Landroid/view/Window;
- move-result-object v0
- const/16 v1, 0x7d9
- invoke-virtual {v0, v1}, Landroid/view/Window;->setType(I)V
- invoke-virtual {v12, p0}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
- invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->isSense2Mode()Z
- move-result v0
- if-eqz v0, :cond_0
- invoke-virtual {v12, p0}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V
- :cond_0
- const-string v0, "ADVANCED POWER MENU"
- const-string v1, "Dialog created"
- invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
- return-object v12
- .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement