- VideoPreference now checks the view visible flag to see if it should start playing the video when the surface texture is being updated. Added a default controller for the VideoPreference to update the view visible flag of the VideoPrefernece when the setting page is paused/resumed accordingly. - add the default controller to the adaptive battery video and the adaptive brightness video. Change-Id: I1aae2148c27c7157c97541346790542c74377e5a Fixes: 111103815 Test: make RunSettingsRoboTests
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.