Update work profile app lock to latest spec

* Updated text and description for PIN, password and pattern
* Added enterprise logo to work profile lock

Bug: 141290838
Test: Manual testing
      atest com.android.systemui.biometrics.AuthBiometricViewTest
      atest com.android.systemui.biometrics.AuthContainerViewTest

Change-Id: Iac6c9ca15e7446cbd7cce9fc1a1ac4e1c867bf31
This commit is contained in:
Alex Johnston
2020-01-07 15:40:05 +00:00
parent 8b15d86c5a
commit 403c330135
2 changed files with 56 additions and 0 deletions

View File

@@ -688,6 +688,15 @@ public final class Utils extends com.android.settingslib.Utils {
return um.getCredentialOwnerProfile(userId);
}
/**
* Returns the credential type of the given user id.
*/
public static @LockPatternUtils.CredentialType int getCredentialType(Context context,
int userId) {
final LockPatternUtils lpu = new LockPatternUtils(context);
return lpu.getCredentialTypeForUser(userId);
}
private static final StringBuilder sBuilder = new StringBuilder(50);
private static final java.util.Formatter sFormatter = new java.util.Formatter(
sBuilder, Locale.getDefault());