diff options
| author | Kevin Chyn <kchyn@google.com> | 2019-01-04 14:22:34 -0800 |
|---|---|---|
| committer | Kevin Chyn <kchyn@google.com> | 2019-01-10 11:11:27 -0800 |
| commit | e19127123062a077dfc69299ab7065ee36fa2d05 (patch) | |
| tree | e9ccb11c6f87af7eef39bbb86253fe4399c9422c /core/java | |
| parent | 158fefb72d00b7c3856f4a72f6e9bc987bcc1b0d (diff) | |
2/n: Add BiometricPrompt implicit UI
In small mode, tapping the gray are is ignored. Combined
StatusBar#showBiometricTryAgain into onBiometricAuthenticated(bool)
We now create a new BiometricDialogView object for each BiometricPrompt
authenticate call. This makes the view's lifecycle much easier to manage.
Bug: 111461540
Test: Small -> Big when error or rejected
Test: Small -> Authenticated looks good
Test: Try again button is shown when rejected
Test: Icon spacing looks good after animation
Test: Big/small state persists across configuration change
Change-Id: Id0157a7506cea9b0e7de079c43f8bd5ba3cbd8c5
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/statusbar/IStatusBar.aidl | 4 | ||||
| -rw-r--r-- | core/java/com/android/internal/statusbar/IStatusBarService.aidl | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/core/java/com/android/internal/statusbar/IStatusBar.aidl b/core/java/com/android/internal/statusbar/IStatusBar.aidl index 53b56f2e937a..6a28059d3fd0 100644 --- a/core/java/com/android/internal/statusbar/IStatusBar.aidl +++ b/core/java/com/android/internal/statusbar/IStatusBar.aidl @@ -153,13 +153,11 @@ oneway interface IStatusBar void showBiometricDialog(in Bundle bundle, IBiometricServiceReceiverInternal receiver, int type, boolean requireConfirmation, int userId); // Used to hide the dialog when a biometric is authenticated - void onBiometricAuthenticated(); + void onBiometricAuthenticated(boolean authenticated); // Used to set a temporary message, e.g. fingerprint not recognized, finger moved too fast, etc void onBiometricHelp(String message); // Used to set a message - the dialog will dismiss after a certain amount of time void onBiometricError(String error); // Used to hide the biometric dialog when the AuthenticationClient is stopped void hideBiometricDialog(); - // Used to request the "try again" button for authentications which requireConfirmation=true - void showBiometricTryAgain(); } diff --git a/core/java/com/android/internal/statusbar/IStatusBarService.aidl b/core/java/com/android/internal/statusbar/IStatusBarService.aidl index 9087dd219d97..197e873a18bc 100644 --- a/core/java/com/android/internal/statusbar/IStatusBarService.aidl +++ b/core/java/com/android/internal/statusbar/IStatusBarService.aidl @@ -97,13 +97,11 @@ interface IStatusBarService void showBiometricDialog(in Bundle bundle, IBiometricServiceReceiverInternal receiver, int type, boolean requireConfirmation, int userId); // Used to hide the dialog when a biometric is authenticated - void onBiometricAuthenticated(); + void onBiometricAuthenticated(boolean authenticated); // Used to set a temporary message, e.g. fingerprint not recognized, finger moved too fast, etc void onBiometricHelp(String message); // Used to set a message - the dialog will dismiss after a certain amount of time void onBiometricError(String error); // Used to hide the biometric dialog when the AuthenticationClient is stopped void hideBiometricDialog(); - // Used to request the "try again" button for authentications which requireConfirmation=true - void showBiometricTryAgain(); } |
