diff options
author | 2025-03-18 00:52:16 +0000 | |
---|---|---|
committer | 2025-03-18 03:00:12 +0000 | |
commit | a5bb866c0f1b72ac8740f743ec908d7fcd2b600c (patch) | |
tree | bbc9e48bc45795cec024ba4f5fbc52e498d12e58 /libs/androidfw/LocaleDataLookup.cpp | |
parent | 1163e15e4ff3ca775d353196af815a5661e307b2 (diff) |
LockPatternUtils: simplify querying of credential shareability
Instead of creating a UserManager for the desired userId and then
calling the deprecated method
UserManager#isCredentialSharableWithParent() which uses
UserManager#getUserProperties(UserHandle).isCredentialShareableWithParent(),
just call
UserManager#getUserProperties(UserHandle).isCredentialShareableWithParent()
directly. The result is the same.
Also add the missing "e" to
LockPatternUtils#isCredentialSharableWithParent().
Note that UserManagerInternal (which is part of system_server) cannot be
used in LockPatternUtils (which is used by other system processes too).
Bug: 403355811
Test: atest FrameworksServicesTests:com.android.server.locksettings
Test: atest FrameworksCoreTests:LockPatternUtilsTest
Flag: EXEMPT refactor
Change-Id: I74357bfcaaf344c9eef6cb57022ff7b4a260b14e
Diffstat (limited to 'libs/androidfw/LocaleDataLookup.cpp')
0 files changed, 0 insertions, 0 deletions