Merge changes from topic "locksettings-aosp" into main
* changes:
LockSettingsService: remove obsolete EventLog logging
Ensure that LockSettingsService waits for gatekeeperd to be ready
Make PasswordMetrics#computeForPasswordOrPin() private
Remove PasswordMetrics#validatePassword()
Enforce minimum pattern length in PasswordMetrics
Properly validate credential in setLock(int, byte[], int, byte[])
DPMS: allow getPasswordMinimumMetrics() to anyone who can set LSKF
Allow constructing a PIN LockscreenCredential with mInvalidChars
Make LockSettingsService enforce basic requirements for new credentials
Add and use PasswordMetrics#validateCredential()
Make LockscreenCredential remember whether it has invalid chars
Allow LockscreenCredential to represent any proposed credential
Convert LockscreenCredentialTest to JUnit4
Handle incomplete protectors in destroyAllWeakTokenBasedProtectors()
LockSettingsService: remove redundant calls to verifyChallenge()