And add a "when to show" setting. Bug: 401001786 Test: manually Flag: com.android.systemui.glanceable_hub_v2 Change-Id: I5f660a1be4bdbb5ab5bb14aa070bfa81b31da6b4
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