The executor factory can bind with an UI page life cycle and could auto-shutdown when the onStop(). Bug: 384795117 Test: manual Flag: EXEMPT bug fix Change-Id: Ibd2538fa2def86b08d3874a44f23ae2450483a6e
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