Clear uid to package detail cache by checking locale before use. Fixes: 62422871 Test: RunSettingsRoboTest pass, manual test (1) open advance battery settings page, (2) switch locale, (3) back to advance battery settings page => pass manual test (1) open advance battery settings page, and then back to settings main page (2) switch locale, (3) go to advance battery settings page => pass Change-Id: Ifac830706539022cd9bf51d3f33e728aadc163f4
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.