Add the mic and camera toggles to the page. Also create an helper class to keep binder calls to the system_server at a minimum. Test: make RunSettingsRoboTests Test: atest SettingsUnitTests Test: Manual Bug: 183985427 Change-Id: Iff6ee1c9a2c30095307f636decbcfcf298ed31b0
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.