Save password history length when requested quality is unspecified.
Refactored code to remove duplication in writeToXml method in the DevicePolicyManagerService class.

Bug: 32907000
Test: Atest DevicePolicyManagerTest
      manual testing

Change-Id: I2714b6a081dcaa0a07ce24a73cc97378a4b58808
2 files changed