Currently the order is hardcoded to be Primary, Work, Private. But SettingsLib in frameworks uses the order returned by UserManager's getProfiles API. This causes inconsistency across various Settings pages. Changing the order to be the one returned by UserManager. Bug: 304366476 Test: manual Test: atest ProfileSelectFragmentTest Change-Id: I9953f211bfbeab129aa6b7c7ec0fe294e91dda26
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.