summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2023-07-07 17:12:02 +0000
committer Eric Biggers <ebiggers@google.com> 2023-10-06 17:03:21 +0000
commitdc151e2b57317a3a1a20a78d3a34141ad5deb2a8 (patch)
tree5dec63b084bbac0280e5fb9c8bd56f23df2e03e2 /api/api.go
parent2b32467e37e59ed4fa73f50fe1ad66c39734589c (diff)
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 Merged-In: I1028e946ac97bd51c489e630d2de6df7685d454f (cherry picked from commit 3226b81b19ad1f2e13d26b420eb0f3ef1fecc722)
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions