From 4591d82bdf25631927ec00f30ee85306c243ecc1 Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Mon, 19 Nov 2018 15:48:29 +0800 Subject: [PATCH] Upload basic UI files for Wi-Fi DPP Settings development. WifiDppQrCodeScannerActivity is the activity for user to scan QR code and add device to a saved network. Bug: 118797380 Test: manual Change-Id: If2c8c5ba1620e5584fb47ba7b0ea2bc2d7acb641 --- AndroidManifest.xml | 3 + res/layout/wifi_dpp_activity.xml | 36 ++++++ res/layout/wifi_dpp_fragment_footer.xml | 44 +++++++ res/layout/wifi_dpp_fragment_header.xml | 34 ++++++ .../wifi_dpp_qrcode_scanner_fragment.xml | 52 +++++++++ res/values/strings.xml | 4 + .../wifi/dpp/WifiDppConfiguratorActivity.java | 91 +++++++++++++++ .../wifi/dpp/WifiDppQrCodeBaseFragment.java | 107 ++++++++++++++++++ .../dpp/WifiDppQrCodeScannerFragment.java | 55 +++++++++ .../dpp/WifiDppConfiguratorActivityTest.java | 57 ++++++++++ .../dpp/WifiDppQrCodeScannerFragmentTest.java | 55 +++++++++ 11 files changed, 538 insertions(+) create mode 100644 res/layout/wifi_dpp_activity.xml create mode 100644 res/layout/wifi_dpp_fragment_footer.xml create mode 100644 res/layout/wifi_dpp_fragment_header.xml create mode 100644 res/layout/wifi_dpp_qrcode_scanner_fragment.xml create mode 100644 src/com/android/settings/wifi/dpp/WifiDppConfiguratorActivity.java create mode 100644 src/com/android/settings/wifi/dpp/WifiDppQrCodeBaseFragment.java create mode 100644 src/com/android/settings/wifi/dpp/WifiDppQrCodeScannerFragment.java create mode 100644 tests/unit/src/com/android/settings/wifi/dpp/WifiDppConfiguratorActivityTest.java create mode 100644 tests/unit/src/com/android/settings/wifi/dpp/WifiDppQrCodeScannerFragmentTest.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 1bd458a66e8..2d2f5843cf3 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -3018,6 +3018,9 @@ + + diff --git a/res/layout/wifi_dpp_activity.xml b/res/layout/wifi_dpp_activity.xml new file mode 100644 index 00000000000..a833dcc757c --- /dev/null +++ b/res/layout/wifi_dpp_activity.xml @@ -0,0 +1,36 @@ + + + + + + + + + + diff --git a/res/layout/wifi_dpp_fragment_footer.xml b/res/layout/wifi_dpp_fragment_footer.xml new file mode 100644 index 00000000000..98c6485236b --- /dev/null +++ b/res/layout/wifi_dpp_fragment_footer.xml @@ -0,0 +1,44 @@ + + + + + +