Dynamically showing "driving mode" in "Connection preferences" summary. In cl/196700988, when driving mode is available/not available will using Settings.System to set flag. Example : driving mode is available : Settings.System.putInt(mContentResolver, DRIVING_MODE_SETTINGS_ENABLED, 1) driving mode is not available : Settings.System.putInt(mContentResolver, DRIVING_MODE_SETTINGS_ENABLED, 0); This CL using Settings.System to get driving mode state that used to dynamically showing "driving mode" Bug: 79299421 Test: make -j50 RunSettingsRoboTests ROBOTEST_FILTER=AdvancedConnectedDeviceControllerTest Change-Id: I702fa4fbc752c7b470184cf58f2e604f9f28c057 Merged-In: I702fa4fbc752c7b470184cf58f2e604f9f28c057
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.