TrustAgentListPreferenceController gets a list of trust agents and add them to the security_category preference category at runtime. However, this update process is always ran - even if the controller is explicitly disabled/not available. This fixes this. Bug: None Test: Updated TrustAgentListPreferenceControllerTest. Change-Id: Ic95d219bc1d0c7cfa0c4eed0d3dd12dec0e14df6
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.