Advertisement
dunc001

createDialogAdv_4.2.2

Jun 5th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.04 KB | None | 0 0
  1. .method private createDialogAdv()Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;
  2. .locals 13
  3.  
  4. const/4 v10, 0x5
  5.  
  6. const/4 v9, 0x1
  7.  
  8. const v8, 0x10405b8
  9.  
  10. const v7, 0x10405b7
  11.  
  12. const v6, 0x1080629
  13.  
  14. const-string v0, "ADVANCED POWER MENU"
  15.  
  16. const-string v1, "Begin create Dialog"
  17.  
  18. invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
  19.  
  20. new-array v0, v10, [Lcom/android/internal/policy/impl/GlobalActions$Action;
  21.  
  22. const/4 v4, 0x0
  23.  
  24. new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$23;
  25.  
  26. invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$23;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
  27.  
  28. aput-object v5, v0, v4
  29.  
  30. const/4 v4, 0x1
  31.  
  32. const v8, 0x10405bb
  33.  
  34. const v7, 0x10405ba
  35.  
  36. const v6, 0x1080623
  37.  
  38. new-instance v4, Lcom/android/internal/policy/impl/GlobalActions$20;
  39.  
  40. invoke-direct {v4, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$20;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
  41.  
  42. aput-object v4, v0, v9
  43.  
  44. const/4 v4, 0x2
  45.  
  46. const v8, 0x10405c1
  47.  
  48. const v7, 0x10405c0
  49.  
  50. const v6, 0x108062a
  51.  
  52. new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$22;
  53.  
  54. invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$22;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
  55.  
  56. aput-object v5, v0, v4
  57.  
  58. const/4 v4, 0x3
  59.  
  60. const v8, 0x10405bd
  61.  
  62. const v7, 0x10405bc
  63.  
  64. const v6, 0x1080628
  65.  
  66. new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$21;
  67.  
  68. invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$21;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
  69.  
  70. aput-object v5, v0, v4
  71.  
  72. const/4 v4, 0x4
  73.  
  74. const v8, 0x10405bf
  75.  
  76. const v7, 0x10405be
  77.  
  78. const v6, 0x1080620
  79.  
  80. new-instance v5, Lcom/android/internal/policy/impl/GlobalActions$24;
  81.  
  82. invoke-direct {v5, p0, v6, v7, v8}, Lcom/android/internal/policy/impl/GlobalActions$24;-><init>(Lcom/android/internal/policy/impl/GlobalActions;III)V
  83.  
  84. aput-object v5, v0, v4
  85.  
  86. invoke-static {v0}, Lcom/google/android/collect/Lists;->newArrayList([Ljava/lang/Object;)Ljava/util/ArrayList;
  87.  
  88. move-result-object v0
  89.  
  90. iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;
  91.  
  92. new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
  93.  
  94. const/4 v1, 0x0
  95.  
  96. 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
  97.  
  98. iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
  99.  
  100. new-instance v11, Lcom/htc/app/HtcAlertController$AlertParams;
  101.  
  102. iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
  103.  
  104. invoke-direct {v11, v0}, Lcom/htc/app/HtcAlertController$AlertParams;-><init>(Landroid/content/Context;)V
  105.  
  106. iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
  107.  
  108. iput-object v0, v11, Lcom/htc/app/HtcAlertController$AlertParams;->mAdapter:Landroid/widget/ListAdapter;
  109.  
  110. iput-object p0, v11, Lcom/htc/app/HtcAlertController$AlertParams;->mOnClickListener:Landroid/content/DialogInterface$OnClickListener;
  111.  
  112. new-instance v12, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;
  113.  
  114. iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
  115.  
  116. invoke-direct {v12, v0, v11}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;-><init>(Landroid/content/Context;Lcom/htc/app/HtcAlertController$AlertParams;)V
  117.  
  118. invoke-virtual {v12, v1}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->setCanceledOnTouchOutside(Z)V
  119.  
  120. invoke-virtual {v12}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->getListView()Landroid/widget/ListView;
  121.  
  122. move-result-object v0
  123.  
  124. invoke-virtual {v0, v9}, Landroid/widget/ListView;->setItemsCanFocus(Z)V
  125.  
  126. invoke-virtual {v12}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->getListView()Landroid/widget/ListView;
  127.  
  128. move-result-object v0
  129.  
  130. invoke-virtual {v0, v9}, Landroid/widget/ListView;->setLongClickable(Z)V
  131.  
  132. invoke-virtual {v12}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->getListView()Landroid/widget/ListView;
  133.  
  134. move-result-object v0
  135.  
  136. new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$6;
  137.  
  138. invoke-direct {v1, p0}, Lcom/android/internal/policy/impl/GlobalActions$6;-><init>(Lcom/android/internal/policy/impl/GlobalActions;)V
  139.  
  140. invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V
  141.  
  142. invoke-virtual {v12}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->getWindow()Landroid/view/Window;
  143.  
  144. move-result-object v0
  145.  
  146. const/16 v1, 0x7d9
  147.  
  148. invoke-virtual {v0, v1}, Landroid/view/Window;->setType(I)V
  149.  
  150. invoke-virtual {v12, p0}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
  151.  
  152. invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->isSense2Mode()Z
  153.  
  154. move-result v0
  155.  
  156. if-eqz v0, :cond_0
  157.  
  158. invoke-virtual {v12, p0}, Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V
  159.  
  160. :cond_0
  161. const-string v0, "ADVANCED POWER MENU"
  162.  
  163. const-string v1, "Dialog created"
  164.  
  165. invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
  166.  
  167. return-object v12
  168. .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement