Adds ability for users to select posturing as the trigger for when dreams will be shown. Bug: 383208131 Test: locally - mp droid and verified posturing option is displayed in Settings Flag: android.service.dreams.allow_dream_when_postured Change-Id: Iae69b9e488181b1e2af7474e3e9879a92b51274c
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest