Skip to content
Commit 60e0f7f6 authored by Bernard Chau's avatar Bernard Chau
Browse files

New extra and helper methods to set screenlock to a specific complexity level

- updated complexity bucket metrics order and comments so that the
buckets metrics are sorted in ascending order of quality
- added helper method to sanitize complexity level (default to none if
invalid)
- added helper method to get min quality allowed at a complexity level
- added helper method to return the minimum metrics to fulfil minimum complexity
and dpm requirements

Bug: 111173457
Test: atest FrameworksCoreTests:PasswordMetricsTest
      manual test with TestDpc (ag/5901733)

Change-Id: Icf7c81bea0b66a47c4ee5913cfa0e713b3fa77b6
parent 4c18eece
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment