aboutsummaryrefslogtreecommitdiffstats
path: root/wpadebug
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-02-22 12:20:10 (GMT)
committerJouni Malinen <j@w1.fi>2018-02-22 12:55:00 (GMT)
commit83565fd21e61230818e8a6fe77eba8ea85807674 (patch)
tree0c36175387c397fe93688268fe902551a40ff050 /wpadebug
parent8b244b00098fe57bdee4a88b5878de9ca72825c2 (diff)
downloadhostap-83565fd21e61230818e8a6fe77eba8ea85807674.zip
hostap-83565fd21e61230818e8a6fe77eba8ea85807674.tar.gz
hostap-83565fd21e61230818e8a6fe77eba8ea85807674.tar.bz2
wpadebug: Add main screen buttons for QR Code operations
These can be used for manual testing of the DPP QR Code functionality. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpadebug')
-rw-r--r--wpadebug/res/layout/main.xml24
-rw-r--r--wpadebug/src/w1/fi/wpadebug/MainActivity.java18
2 files changed, 42 insertions, 0 deletions
diff --git a/wpadebug/res/layout/main.xml b/wpadebug/res/layout/main.xml
index 6fdd565..cbdbfb9 100644
--- a/wpadebug/res/layout/main.xml
+++ b/wpadebug/res/layout/main.xml
@@ -116,6 +116,30 @@
android:onClick="runCommands"
/>
</LinearLayout>
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ >
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="QR Scan"
+ android:onClick="runQrScan"
+ />
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="QR Input"
+ android:onClick="runQrInput"
+ />
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="QR Display"
+ android:onClick="runQrDisplay"
+ />
+ </LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/wpadebug/src/w1/fi/wpadebug/MainActivity.java b/wpadebug/src/w1/fi/wpadebug/MainActivity.java
index c5d123e..4c37b48 100644
--- a/wpadebug/src/w1/fi/wpadebug/MainActivity.java
+++ b/wpadebug/src/w1/fi/wpadebug/MainActivity.java
@@ -47,6 +47,24 @@ public class MainActivity extends Activity
startActivity(intent);
}
+ public void runQrScan(View view)
+ {
+ Intent intent = new Intent(this, QrCodeScannerActivity.class);
+ startActivity(intent);
+ }
+
+ public void runQrInput(View view)
+ {
+ Intent intent = new Intent(this, InputUri.class);
+ startActivity(intent);
+ }
+
+ public void runQrDisplay(View view)
+ {
+ Intent intent = new Intent(this, QrCodeDisplayActivity.class);
+ startActivity(intent);
+ }
+
public void runWpaCommands(View view)
{
Intent intent = new Intent(this, WpaCommandListActivity.class);