Add ability to show/hide Wi-Fi settings, and all related sub-settings.

This adds a new boolean flag, config_show_wifi_settings, which when set
to false will hide the "Wi-Fi" page in network & internet (there is no
key value associated with this preference page). It will also hide
nested pages from search results, such as Wi-Fi preferences.

Bug: 62379554
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=ConfigureWifiSettingsTest
and
make RunSettingsRoboTests
ROBOTEST_FILTER=WifiSettingsTest
and
make RunSettingsRoboTests
ROBOTEST_FILTER=WifiMasterSwitchPreferenceControllerTest
all pass.

Change-Id: Iedc6bc272e0cb2b561c6bf25968e70f355aaaa8e
This commit is contained in:
Ben Lin
2017-12-20 12:37:10 -08:00
parent 8a05bef170
commit 848f67d17a
8 changed files with 111 additions and 10 deletions

View File

@@ -49,6 +49,11 @@
<!--Whether help links are defined. -->
<bool name="config_has_help">false</bool>
<!-- Whether Wi-Fi settings should be shown or not.
This also controls whether Wi-fi related sub-settings (e.g. Wi-Fi preferences) will
surface in search results or not.-->
<bool name="config_show_wifi_settings">true</bool>
<!-- Whether location mode is available or not. -->
<bool name="config_location_mode_available">true</bool>