summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/biometrics/AuthDialogCallback.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix BiometricPrompt cannot detect when press the notification in LSVincent Wang2022-07-131-5/+6
| | | | | | | | | | | | | | In bug 236934379, when AuthContainerView with requestID x closed, the requestID of IBiometricSysuiReceiver already became to x+1, we should skip to notify wrong receiver to avoid biometric state abnormal. Bug: 236934379 Test: 1. Reference b/236934379 2. Check biometric prompt work normally 3. "atest AuthContainerViewTest" pass 4. "atest AuthControllerTest" pass Change-Id: I5c6c669dc81d7d032ec3a53462b110e1e542055a
* Remove face to fingerprint multi-sensor behavior.Joe Bolinger2022-02-281-5/+0
| | | | | | | | | | | | Refactor existing tests to remove unnecessary mocks and boilerplate code to cover more of the real behavior. This is prep for adding new tests in another change to add the new face and fingerprint behavior. Bug: 217393533 Test: atest AuthBiometricViewTest AuthContainerViewTest Test: manual (authenticate using test app) Change-Id: If984d1c07fee98d2d7a20cb0025ad434ad9977f4
* Delay starting fingerprint sensor when using multi-sensor devices.Joe Bolinger2021-05-201-1/+6
| | | | | | | | | | Fix: 183951321 Test: atest com.android.server.biometrics Test: atest com.android.systemui.biometrics Test: manual with integration app Change-Id: Ib1e92278d695b0ce5b6f799f51007262ade31f05
* Start UDFPS sensors only after BiometricPrompt UI is showingKevin Chyn2020-11-131-0/+5
| | | | | | | | | | | | | | | | | | | | Since UDFPS sensors have a UI affordance, and the affordance is controlled by FingerprintAuthenticationClient, start the prepared sensor only after the BiometricPrompt dialog is done animating. Plumbing-wise, adds: 1) Adds AuthSession.STATE_AUTH_STARTED_UI_SHOWING 2) Adds IBiometricSysuiReceiver#onDialogAnimatedIn Since not all sensors are started immediately anymore, adds logic in BiometricScheduler when attempting to cancel auth for a sensor that's waiting for cookie (HAL still idle). Fixes: 171931476 Test: atest com.android.server.biometrics Test: atest com.android.systemui.biometrics Change-Id: Iaedc26c51e274614ac2af6ebd98afe26263dad81
* Send "early canceled" to privileged clientsKevin Chyn2020-03-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | The navigation bar dismissal animation caused by "activity finish" should be invoked in some cases immediately when the user cancels authentication. Add a "early user cancel" message for ConfirmDeviceCredentialActivity to subscribe to. This message is sent immediately when the user invokes a back gesture or cancels authentication. Bug: 148273355 Test: Set up work profile with separate password and biometric Unlock work profile Lock screen Open work profile app Cancel authentication at various states in various ways Notice no navigation bar jank Test: atest com.android.systemui.biometrics Change-Id: I89c5b5e2782339cae15f936268e6e7b8ad4e5359
* Pass operationId to LSS, add HAT to KeyStoreKevin Chyn2020-03-121-1/+3
| | | | | | | | | | | | | | Since we're now allowing auth-per-use credential keys, we need to pass the operationId to SystemUI, which owns the call to verify credential. Upon receiving a non-null HAT, it should be sent to KeyStore. Bug: 148425329 Test: atest com.android.systemui.biometrics Test: atest com.android.server.biometrics Change-Id: Iea737bf2dc0d81d87419df96d5cb43d51f10c6e3
* 12/n: Add LockPatternView for setDeviceCredentialAllowed(true)Kevin Chyn2019-10-031-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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
* 4/n: Rename files to make more senseKevin Chyn2019-08-301-0/+53
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