Add jank detection when click the following preferences, - SwitchPreference Single target, detect click in InstrumentedPreferenceFragment - PrimarySwitchPreference Two target, only detect click switch in switch's onClick() - MainSwitchPreference Single target, detect click in TogglePreferenceController - SettingsMainSwitchPreference Single target, detect click in its onSwitchChanged() Bug: 230285829 Test: manual & robo tests Change-Id: I97a13e05a601237b16cd2d903ba2fb6ec4a69a74
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.