From 0c7065912dc0b4fe8b9d6885b623f7fa6d4d8162 Mon Sep 17 00:00:00 2001 From: Curtis Belmonte Date: Wed, 3 Mar 2021 10:51:49 -0800 Subject: [PATCH] Adjust UDFPS prompt for 3-button nav and landscape Modifies the layout of BiometricPrompt for under-display fingerprint sensors so that the fingerprint icon is aligned with the sensor when the device is in the landscape orientation and/or using 3-button navigation. Test: atest AuthBiometricViewTest Test: Manually, using the biometric integration test app Bug: 179044674 Change-Id: I4da075b4cbf8b7119c071361336ddebd0a505ce0 --- .../res/layout/auth_biometric_contents.xml | 18 +- packages/SystemUI/res/values/styles.xml | 6 + .../biometrics/AuthBiometricUdfpsView.java | 280 ++++++++++++++---- .../biometrics/AuthBiometricView.java | 1 + .../biometrics/AuthContainerView.java | 32 ++ .../biometrics/AuthPanelController.java | 59 +++- .../biometrics/AuthBiometricViewTest.java | 56 +++- 7 files changed, 367 insertions(+), 85 deletions(-) diff --git a/packages/SystemUI/res/layout/auth_biometric_contents.xml b/packages/SystemUI/res/layout/auth_biometric_contents.xml index aed067c302536..eef37ab20c693 100644 --- a/packages/SystemUI/res/layout/auth_biometric_contents.xml +++ b/packages/SystemUI/res/layout/auth_biometric_contents.xml @@ -39,37 +39,34 @@ + android:layout_height="48dp" /> - - + + - + android:layout_height="12dp" /> + 12dp 24dp 24sp + true + marquee