A recent CL added a feature to prevent the pane height from shrinking to stop widgets from moving around. This is actually not a great experience because a temporary state can keep the pane height very tall and increase scrolling. Flag: com.android.settings.flags.display_topology_pane_in_display_list Bug: b/352648432 Test: change topology to be vertically shorter and verify the pane height shrinks Change-Id: Ic48bfecea083a45c702c8719e3c93ceba55ae872
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