Password Quality: Change to SecurityException

Change CTS tests to expect a SecurityException when setPasswordQuality
is called on the Parent Profile DevicePolicyManager instance.

Also address comments from previous code review.

Bug: 165573442
Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testDevicePolicyManagerParentSupport
Change-Id: I808ae9e09ea03cd4f039471b9ac320090c752115
1 file changed