New metric: Log requiring of password complexity.

SET_PASSWORD_COMPLEXITY
A profile owner or a device owner may set password requirements in the
form of a platform-defined password complexity level (none, low, medium
or high). See DevicePolicyManager.setRequiredPasswordComplexity for more
details.
We log this metric when the password complexity requirement was set to a
value different to a previous password complexity (or quality).
We log the administrator app package, the complexity level required, and
whether it was applied device-wide or only for the managed profile.

Cherry-picked from commit 1b72c156f471ff472f023d789af6d3f5eda87ecc

Bug: 179180345
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPasswordMethodsLogged
Merged-In: Iae040027a4c40c52eab5970089e35c8145396b35
Change-Id: Iae040027a4c40c52eab5970089e35c8145396b35
1 file changed
tree: 478a6f970f13c2d0e5590160a73a129a755e9028
  1. stats/