DPM: Prevent mixing password quality and complexity

Prevent a mix of password requirements in the form of quality and
complexity, except in one approved scenario (password quality on the
profile DPM instance, complexity on the parent DPM instance).

Bug: 165573442
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.ManagedProfilePasswordTest
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testGetPasswordExpiration
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTestApi30
Change-Id: I67c15377f12c6fb0c0c5756d279fd44623158781
3 files changed