Elements on the subpage get disabled if there are no enabled shortcut targets for the relevant type. In the case of A11y button, the items on its fragment become unsearchable when the setting is disabled. Test: Manually verify conditions described above & in bug Bug: 349180207 Flag: com.android.settings.accessibility.fix_a11y_settings_search Change-Id: Id39e2eda6c9d1de4cdbfcbc22b8a1f443e2822d9
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