The default settings observer delay is 10s for background service. It cause the apps get the settings update delay and lead a unsync behavior. Update the settings change without delay. Bug: 327094397 Test: Manual test with bug steps Test: atest KeyboardVibrationTogglePreferenceControllerTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f2174611b8be192815f16e0ebc42eebfe3bfca0d) Merged-In: Ib1c23ec9e1442e8397c7a36ffa157594ac64a9b3 Change-Id: Ib1c23ec9e1442e8397c7a36ffa157594ac64a9b3
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.