From 2ff62e2c7b1ecf2f4463cc8b683ea52e32337b9d Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Thu, 3 Dec 2009 10:53:50 -0800 Subject: [PATCH] Wifi diagnostic app to enable debug and provide information This is the first checkin on the wifi diagnostic app. Right now, it supports using the WifiManager API, shows the configuration details and provides status on the supplicant, network and wifi state along with some additional details. More to come: - add more API and status on any additional fields - provide a way to show some logs Bug: 2302130 --- AndroidManifest.xml | 33 ++ res/layout/wifi_api_test.xml | 46 ++ res/layout/wifi_config_info.xml | 33 ++ res/layout/wifi_status_test.xml | 129 ++++++ res/values/strings.xml | 86 ++++ res/xml/testing_settings.xml | 9 + res/xml/testing_wifi_settings.xml | 45 ++ .../android/settings/wifi/WifiAPITest.java | 146 +++++++ .../android/settings/wifi/WifiConfigInfo.java | 63 +++ src/com/android/settings/wifi/WifiInfo.java | 36 ++ .../android/settings/wifi/WifiStatusTest.java | 408 ++++++++++++++++++ 11 files changed, 1034 insertions(+) create mode 100644 res/layout/wifi_api_test.xml create mode 100644 res/layout/wifi_config_info.xml create mode 100644 res/layout/wifi_status_test.xml create mode 100644 res/xml/testing_wifi_settings.xml create mode 100644 src/com/android/settings/wifi/WifiAPITest.java create mode 100644 src/com/android/settings/wifi/WifiConfigInfo.java create mode 100644 src/com/android/settings/wifi/WifiInfo.java create mode 100644 src/com/android/settings/wifi/WifiStatusTest.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 4700fb5ec0d..1bed0523c97 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -103,6 +103,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/wifi_config_info.xml b/res/layout/wifi_config_info.xml new file mode 100644 index 00000000000..0aeff6e47a1 --- /dev/null +++ b/res/layout/wifi_config_info.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + diff --git a/res/layout/wifi_status_test.xml b/res/layout/wifi_status_test.xml new file mode 100644 index 00000000000..5b8ec5d14d8 --- /dev/null +++ b/res/layout/wifi_status_test.xml @@ -0,0 +1,129 @@ + + + + + + + + +