Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3226b81b authored by Eric Biggers's avatar Eric Biggers
Browse files

Make PasswordMetrics#computeForPasswordOrPin() private

PasswordMetrics#computeForPasswordOrPin() has unnecessarily broad
visibility and was being misused by the clockwork settings app (fixed by
http://ag/23923392).  Now it is only used by PasswordMetrics itself and
unit tests, but the unit tests can just use computeForCredential()
instead.  Do that, and make computeForPasswordOrPin() a private method.

Test: atest PasswordMetricsTest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I1028e946ac97bd51c489e630d2de6df7685d454f
parent c96354dd
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