main.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical"
  6. >
  7. <TextView
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:text="Framework commands"
  11. />
  12. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:orientation="horizontal"
  16. >
  17. <Button
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:text="WifiManager"
  21. android:onClick="wifiManagerInfo"
  22. />
  23. <Button
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:text="WifiInfo"
  27. android:onClick="wifiInfo"
  28. />
  29. <Button
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:text="Networks"
  33. android:onClick="wifiConfiguredNetworks"
  34. />
  35. </LinearLayout>
  36. <TextView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:text="wpa_supplicant commands"
  40. />
  41. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:orientation="horizontal"
  45. >
  46. <Button
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:text="wpa_supplicant commands"
  50. android:onClick="runWpaCommands"
  51. />
  52. </LinearLayout>
  53. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:orientation="horizontal"
  57. >
  58. <Button
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:text="Credentials"
  62. android:onClick="runWpaCredentials"
  63. />
  64. </LinearLayout>
  65. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:orientation="horizontal"
  69. >
  70. <Button
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:text="log:info"
  74. android:onClick="wpaLogLevelInfo"
  75. />
  76. <Button
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:text="log:debug"
  80. android:onClick="wpaLogLevelDebug"
  81. />
  82. <Button
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:text="log:excessive"
  86. android:onClick="wpaLogLevelExcessive"
  87. />
  88. </LinearLayout>
  89. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:orientation="horizontal"
  93. >
  94. <EditText android:id="@+id/edit_cmd"
  95. android:layout_weight="1"
  96. android:layout_width="0dp"
  97. android:layout_height="wrap_content"
  98. android:hint="wpa_cli command"
  99. />
  100. <Button
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="Run"
  104. android:onClick="runWpaCliCmd"
  105. />
  106. </LinearLayout>
  107. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:orientation="horizontal"
  111. >
  112. <Button
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:text="Shell commands"
  116. android:onClick="runCommands"
  117. />
  118. </LinearLayout>
  119. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  120. android:layout_width="match_parent"
  121. android:layout_height="wrap_content"
  122. android:orientation="horizontal"
  123. >
  124. <Button
  125. android:layout_width="wrap_content"
  126. android:layout_height="wrap_content"
  127. android:text="QR Scan"
  128. android:onClick="runQrScan"
  129. />
  130. <Button
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:text="QR Input"
  134. android:onClick="runQrInput"
  135. />
  136. <Button
  137. android:layout_width="wrap_content"
  138. android:layout_height="wrap_content"
  139. android:text="QR Display"
  140. android:onClick="runQrDisplay"
  141. />
  142. </LinearLayout>
  143. <TextView
  144. android:layout_width="wrap_content"
  145. android:layout_height="wrap_content"
  146. android:text="NFC commands"
  147. />
  148. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:orientation="horizontal"
  152. >
  153. <Button
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:text="WPS handover request"
  157. android:onClick="nfcWpsHandoverRequest"
  158. />
  159. </LinearLayout>
  160. </LinearLayout>