Use Robolectric for tests so that we don't have to deploy to a device emulator. TestHandler is not available in Robolectric tests, so this CL includes a substitute. Flag: com.android.settings.flags.display_topology_pane_in_display_list Test: atest <all moved tests> Bug: b/399743032 Change-Id: I95721d9b90376374da7011e42c70e474b494e992
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