Every launch of the activity with either ACTION_SET_NEW_PASSWORD or ACTION_SET_NEW_PARENT_PROFILE_PASSWORD is logged, regardless of whether extra EXTRA_PASSWORD_COMPLEXITY is used or whether the caller has the required permisssion or not - action: ACTION_SET_NEW_PASSWORD or ACTION_SET_NEW_PARENT_PROFILE_PASSWORD - pageId: SET_NEW_PASSWORD_ACTIVITY - key: calling app package name - value: raw value of intent extra EXTRA_PASSWORD_COMPLEXITY, or Integer.MIN_VALUE if it does not exist Bug: 120840632 Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/password/PasswordUtilsTest.java atest packages/apps/Settings/tests/robotests/src/com/android/settings/password/SetNewPasswordActivityTest.java Change-Id: I57dc55110f7f284ddad7d3fc971d1f2298b46cbd
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.