From 5179ac6f5736b43c793b87efb7f0b6c3f3234a3e Mon Sep 17 00:00:00 2001 From: Alex Johnston Date: Tue, 7 Jan 2020 14:23:26 +0000 Subject: [PATCH] Update work profile app lock to latest spec * Removed old background image of work profile lock * 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: Ic2a0b0b572da383846ee113d32450fe3734dfd02 --- .../res/drawable/auth_dialog_enterprise.xml | 25 +++++++ .../auth_credential_pattern_view.xml | 67 +++++++++--------- .../layout/auth_credential_password_view.xml | 30 +++----- .../layout/auth_credential_pattern_view.xml | 69 ++++++++++--------- packages/SystemUI/res/values/styles.xml | 41 +++++++++++ .../biometrics/AuthBiometricView.java | 1 + .../biometrics/AuthCredentialView.java | 14 ++++ 7 files changed, 160 insertions(+), 87 deletions(-) create mode 100644 packages/SystemUI/res/drawable/auth_dialog_enterprise.xml diff --git a/packages/SystemUI/res/drawable/auth_dialog_enterprise.xml b/packages/SystemUI/res/drawable/auth_dialog_enterprise.xml new file mode 100644 index 0000000000000..c547c52a4077e --- /dev/null +++ b/packages/SystemUI/res/drawable/auth_dialog_enterprise.xml @@ -0,0 +1,25 @@ + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml b/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml index c3fa39e5a87f5..c40e47df9a55d 100644 --- a/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml +++ b/packages/SystemUI/res/layout-land/auth_credential_pattern_view.xml @@ -34,20 +34,15 @@ android:layout_weight="1"/> + android:id="@+id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + style="@style/TextAppearance.AuthCredential.Title"/> + style="@style/TextAppearance.AuthCredential.Description"/> + + + + + + + + + + - - - - - - \ No newline at end of file diff --git a/packages/SystemUI/res/layout/auth_credential_password_view.xml b/packages/SystemUI/res/layout/auth_credential_password_view.xml index 4aed0333e9ca8..a1c593fa455cd 100644 --- a/packages/SystemUI/res/layout/auth_credential_password_view.xml +++ b/packages/SystemUI/res/layout/auth_credential_password_view.xml @@ -28,20 +28,15 @@ android:layout_weight="1"/> + android:id="@+id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + style="@style/TextAppearance.AuthCredential.Title"/> + style="@style/TextAppearance.AuthCredential.Description"/> + android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii" + style="@style/TextAppearance.AuthCredential.PasswordEntry"/> + android:id="@+id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + style="@style/TextAppearance.AuthCredential.Title"/> + style="@style/TextAppearance.AuthCredential.Description"/> + android:layout_weight="1"/> - + android:paddingLeft="0dp" + android:paddingRight="0dp" + android:paddingTop="0dp" + android:paddingBottom="16dp" + android:clipToPadding="false"> - + + + + + + + + + + + + + + + + + + +