Advertisement
dunc001

createDialogAdv_4.1

Jun 5th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. .method private createDialogAdv()Lcom/htc/widget/HtcAlertDialog;
  2. .locals 11
  3.  
  4. const/4 v10, 0x5
  5.  
  6. const/4 v9, 0x1
  7.  
  8. const v8, 0x1040520
  9.  
  10. const v7, 0x104051f
  11.  
  12. const v6, 0x108073b
  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, 0x1040523
  33.  
  34. const v7, 0x1040522
  35.  
  36. const v6, 0x1080735
  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, 0x1040529
  47.  
  48. const v7, 0x1040528
  49.  
  50. const v6, 0x108073c
  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, 0x1040525
  61.  
  62. const v7, 0x1040524
  63.  
  64. const v6, 0x108073a
  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, 0x1040527
  75.  
  76. const v7, 0x1040526
  77.  
  78. const v6, 0x1080732
  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 v4, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
  93.  
  94. const/4 v5, 0x0
  95.  
  96. invoke-direct {v4, p0, v5}, 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 v4, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
  99.  
  100. invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->isSense2Mode()Z
  101.  
  102. move-result v4
  103.  
  104. if-eqz v4, :cond_2
  105.  
  106. const v1, 0x20c00d1
  107.  
  108. :goto_0
  109. const/4 v2, 0x0
  110.  
  111. new-instance v2, Lcom/htc/widget/HtcAlertDialog$Builder;
  112.  
  113. iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
  114.  
  115. invoke-direct {v2, v0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V
  116.  
  117. iget-object v4, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;
  118.  
  119. invoke-virtual {v2, v4, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;
  120.  
  121. move-result-object v4
  122.  
  123. invoke-virtual {v4, v9}, Lcom/htc/widget/HtcAlertDialog$Builder;->setInverseBackgroundForced(Z)Lcom/htc/widget/HtcAlertDialog$Builder;
  124.  
  125. invoke-virtual {v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;
  126.  
  127. move-result-object v3
  128.  
  129. invoke-virtual {v3}, Lcom/htc/widget/HtcAlertDialog;->getWindow()Landroid/view/Window;
  130.  
  131. move-result-object v4
  132.  
  133. const/16 v5, 0x7d8
  134.  
  135. invoke-virtual {v4, v5}, Landroid/view/Window;->setType(I)V
  136.  
  137. iget-object v4, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
  138.  
  139. invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
  140.  
  141. move-result-object v4
  142.  
  143. const v5, 0x1110003
  144.  
  145. invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getBoolean(I)Z
  146.  
  147. move-result v4
  148.  
  149. if-nez v4, :cond_0
  150.  
  151. invoke-virtual {v3}, Lcom/htc/widget/HtcAlertDialog;->getWindow()Landroid/view/Window;
  152.  
  153. move-result-object v4
  154.  
  155. const/4 v1, 0x4
  156.  
  157. const/4 v2, 0x4
  158.  
  159. :cond_0
  160. invoke-direct {p0}, Lcom/android/internal/policy/impl/GlobalActions;->isSense2Mode()Z
  161.  
  162. move-result v4
  163.  
  164. if-eqz v4, :cond_1
  165.  
  166. invoke-virtual {v3, p0}, Lcom/htc/widget/HtcAlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V
  167.  
  168. :cond_1
  169. const-string v0, "ADVANCED POWER MENU"
  170.  
  171. const-string v1, "Dialog created"
  172.  
  173. invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
  174.  
  175. return-object v3
  176.  
  177. :cond_2
  178. const v1, 0x1040139
  179.  
  180. goto :goto_0
  181. .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement