The total number of trustagents can still be incorrect if the user enables a trustagent, and then the trust agent component gets disabled, since the user does not manually toggle the preference themselves. Fixed by switching back to the original method of using TrustAgentManager, but also pass a flag that allows us to choose on whether we want to filter the trustagents based on whether it has an activity (which not all trustagents are guaranteed to have). Bug: 240969157 Test: Local test + atest Change-Id: I5106859f61ddf36c1bf008da18be889ceaf27a8d
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.