summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/biometrics/AuthPanelController.java
Commit message (Collapse)AuthorAgeFilesLines
* Update BiometricPrompt UI for large displaysKevin Chyn2021-10-061-18/+0
| | | | | | Bug: 201811580 Test: manual Change-Id: I3ff2beba20014bcc6f44a36b6f9c64f2147e23e2
* Adjust UDFPS prompt for 3-button nav and landscapeCurtis Belmonte2021-03-091-12/+51
| | | | | | | | | | | | 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
* Remove separate background for managed profilesKevin Chyn2020-01-211-22/+2
| | | | | | | | | | | | | | | | | This change removes the managed profile background to address the two issues below: 1) When one-lock is enabled, the credential UI will no longer incorrectly show the managed profile background. This bug was introduced when credential authentication UI was moved to SystemUI 2) The new managed profile authentication UX no longer uses a separate background Fixes: 147653255 Bug: 141290838 Test: atest com.android.systemui.biometrics Change-Id: Ib48f5e5c97c4c16c430625864377a001e100de1a
* Animate height animator together with the rest of the AnimatorSetKevin Chyn2019-10-251-3/+2
| | | | | | | | | | | The height animator was using the default animation duration, thus ending earlier, causing the invalidateOutline to not be invoked for the remainder of the AnimatorSet's duration. Fixes: 143371342 Test: BiometricPromptDemo, rotate to landscape, tap "Use Pattern" Change-Id: I6a46bb2f596adc20152ed25e95a66410fd57d257
* Animate panel to transparent if profile is managedKevin Chyn2019-10-041-2/+43
| | | | | | | | | | | | | For managed profiles, we need to show the managed device background with the device admin color theme during credential UI. Since it's shown on the "background" view behind the panel, we can animate/fade the biometric view down, and slide in the credential UI on the "background" layer. Bug: 140127687 Test: manual test with device admin Test: atest com.android.systemui.biometrics Change-Id: I2d0a1b4367912e4bf6ddf701ad68fc387501f048
* 13/n: persist device credential across configuration changesKevin Chyn2019-10-031-4/+7
| | | | | | | | | | | | | | | | | | | | | 1) AuthContainerView can be started in either `biometric` or `credential` views. This is to potentially support an API where only credential is allowed/requested. 2) When onSaveState, AuthContainerView saves both the states of `biometric` and `credential` visibility. In the case of configuration change, AuthController is responsibile for checking the visibility and creating a AuthContainerView with the correct initial view. 3) When AuthCredentialView is the initial view, it owns the panel expansion. 4) Added landscape layout Bug: 140127687 Test: atest com.android.systemui.biometrics Test: BiometricPromptDemo, use pattern, rotate device. auth, cancel, demo logs are correct. Change-Id: I1f501cf13b924353f251a69757fdb9d7e0bf1d21
* 12/n: Add LockPatternView for setDeviceCredentialAllowed(true)Kevin Chyn2019-10-031-16/+39
| | | | | | | | | | | | | | | | | | | | | | | | Includes lock icon, title, subtitle, description, lock pattern view. Corner radius and padding animates nicely from !=0 --> 0. Support for password/pin will come in a subsequent CL. Unit tests for AuthCredentialView will be added when password/pin are implemented. Support for persisting across configuration changes and landscape view will also be added in a subsequent change. Test: BiometricPromptDemo with the following: 1) Confirm pattern, callback received 2) Rejected, error string shown 3) Lockout (5 attempts), countdown string shown, pattern view disabled until countdown is over 4) Cancel pattern auth, callback received Test: atest BiometricServiceTest Test: atest com.android.systemui.biometrics Change-Id: Idc01e33be0074a6c8a43f60b172a4391bfbe5e8a
* 11/n: Animate panel to full-screen when "Use Password" is pressedKevin Chyn2019-10-031-7/+34
| | | | | | | | Bug: 140127687 Test: atest com.android.systemui.biometrics Test: BiometricPromptDemo, enable device credential, press password button Change-Id: I6a4c6ea7fb4a4f0c55faa049a8e7e71a1c5f19ff
* 4/n: Rename files to make more senseKevin Chyn2019-08-301-0/+105
Also flatten the directory, there isn't much point in having a sub package right now. Bug: 123378871 Test: atest com.android.systemui.biometrics Change-Id: I598f1909f6e6940d73da37921d9b5cd2c02f4331