Loading core/java/com/android/internal/statusbar/IStatusBar.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -169,7 +169,7 @@ oneway interface IStatusBar /** * Used to hide the authentication dialog, e.g. when the application cancels authentication. */ void hideAuthenticationDialog(); void hideAuthenticationDialog(long requestId); /* Used to notify the biometric service of events that occur outside of an operation. */ void setBiometicContextListener(in IBiometricContextListener listener); Loading core/java/com/android/internal/statusbar/IStatusBarService.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ interface IStatusBarService // Used to show an error - the dialog will dismiss after a certain amount of time void onBiometricError(int modality, int error, int vendorCode); // Used to hide the authentication dialog, e.g. when the application cancels authentication void hideAuthenticationDialog(); void hideAuthenticationDialog(long requestId); // Used to notify the biometric service of events that occur outside of an operation. void setBiometicContextListener(in IBiometricContextListener listener); Loading packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java +14 −2 Original line number Diff line number Diff line Loading @@ -126,7 +126,7 @@ public class AuthContainerView extends LinearLayout int[] mSensorIds; boolean mSkipIntro; long mOperationId; long mRequestId; long mRequestId = -1; boolean mSkipAnimation = false; @BiometricMultiSensorMode int mMultiSensorConfig = BIOMETRIC_MULTI_SENSOR_DEFAULT; } Loading Loading @@ -598,6 +598,11 @@ public class AuthContainerView extends LinearLayout return mConfig.mOpPackageName; } @Override public long getRequestId() { return mConfig.mRequestId; } @Override public void animateToCredentialUI() { mBiometricView.startTransitionToCredentialUI(); Loading Loading @@ -678,8 +683,10 @@ public class AuthContainerView extends LinearLayout return; } mContainerState = STATE_GONE; if (isAttachedToWindow()) { mWindowManager.removeView(this); } } private void onDialogAnimatedIn() { if (mContainerState == STATE_PENDING_DISMISS) { Loading @@ -687,6 +694,11 @@ public class AuthContainerView extends LinearLayout animateAway(AuthDialogCallback.DISMISSED_USER_CANCELED); return; } if (mContainerState == STATE_ANIMATING_OUT || mContainerState == STATE_GONE) { Log.d(TAG, "onDialogAnimatedIn(): ignore, already animating out or gone - state: " + mContainerState); return; } mContainerState = STATE_SHOWING; if (mBiometricView != null) { mConfig.mCallback.onDialogAnimatedIn(); Loading packages/SystemUI/src/com/android/systemui/biometrics/AuthController.java +6 −1 Original line number Diff line number Diff line Loading @@ -768,7 +768,7 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba } @Override public void hideAuthenticationDialog() { public void hideAuthenticationDialog(long requestId) { if (DEBUG) Log.d(TAG, "hideAuthenticationDialog: " + mCurrentDialog); if (mCurrentDialog == null) { Loading @@ -777,6 +777,11 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba if (DEBUG) Log.d(TAG, "dialog already gone"); return; } if (requestId != mCurrentDialog.getRequestId()) { Log.w(TAG, "ignore - ids do not match: " + requestId + " current: " + mCurrentDialog.getRequestId()); return; } mCurrentDialog.dismissFromSystemServer(); Loading packages/SystemUI/src/com/android/systemui/biometrics/AuthDialog.java +3 −0 Original line number Diff line number Diff line Loading @@ -150,6 +150,9 @@ public interface AuthDialog { */ String getOpPackageName(); /** The requestId of the underlying operation within the framework. */ long getRequestId(); /** * Animate to credential UI. Typically called after biometric is locked out. */ Loading Loading
core/java/com/android/internal/statusbar/IStatusBar.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -169,7 +169,7 @@ oneway interface IStatusBar /** * Used to hide the authentication dialog, e.g. when the application cancels authentication. */ void hideAuthenticationDialog(); void hideAuthenticationDialog(long requestId); /* Used to notify the biometric service of events that occur outside of an operation. */ void setBiometicContextListener(in IBiometricContextListener listener); Loading
core/java/com/android/internal/statusbar/IStatusBarService.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ interface IStatusBarService // Used to show an error - the dialog will dismiss after a certain amount of time void onBiometricError(int modality, int error, int vendorCode); // Used to hide the authentication dialog, e.g. when the application cancels authentication void hideAuthenticationDialog(); void hideAuthenticationDialog(long requestId); // Used to notify the biometric service of events that occur outside of an operation. void setBiometicContextListener(in IBiometricContextListener listener); Loading
packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java +14 −2 Original line number Diff line number Diff line Loading @@ -126,7 +126,7 @@ public class AuthContainerView extends LinearLayout int[] mSensorIds; boolean mSkipIntro; long mOperationId; long mRequestId; long mRequestId = -1; boolean mSkipAnimation = false; @BiometricMultiSensorMode int mMultiSensorConfig = BIOMETRIC_MULTI_SENSOR_DEFAULT; } Loading Loading @@ -598,6 +598,11 @@ public class AuthContainerView extends LinearLayout return mConfig.mOpPackageName; } @Override public long getRequestId() { return mConfig.mRequestId; } @Override public void animateToCredentialUI() { mBiometricView.startTransitionToCredentialUI(); Loading Loading @@ -678,8 +683,10 @@ public class AuthContainerView extends LinearLayout return; } mContainerState = STATE_GONE; if (isAttachedToWindow()) { mWindowManager.removeView(this); } } private void onDialogAnimatedIn() { if (mContainerState == STATE_PENDING_DISMISS) { Loading @@ -687,6 +694,11 @@ public class AuthContainerView extends LinearLayout animateAway(AuthDialogCallback.DISMISSED_USER_CANCELED); return; } if (mContainerState == STATE_ANIMATING_OUT || mContainerState == STATE_GONE) { Log.d(TAG, "onDialogAnimatedIn(): ignore, already animating out or gone - state: " + mContainerState); return; } mContainerState = STATE_SHOWING; if (mBiometricView != null) { mConfig.mCallback.onDialogAnimatedIn(); Loading
packages/SystemUI/src/com/android/systemui/biometrics/AuthController.java +6 −1 Original line number Diff line number Diff line Loading @@ -768,7 +768,7 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba } @Override public void hideAuthenticationDialog() { public void hideAuthenticationDialog(long requestId) { if (DEBUG) Log.d(TAG, "hideAuthenticationDialog: " + mCurrentDialog); if (mCurrentDialog == null) { Loading @@ -777,6 +777,11 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba if (DEBUG) Log.d(TAG, "dialog already gone"); return; } if (requestId != mCurrentDialog.getRequestId()) { Log.w(TAG, "ignore - ids do not match: " + requestId + " current: " + mCurrentDialog.getRequestId()); return; } mCurrentDialog.dismissFromSystemServer(); Loading
packages/SystemUI/src/com/android/systemui/biometrics/AuthDialog.java +3 −0 Original line number Diff line number Diff line Loading @@ -150,6 +150,9 @@ public interface AuthDialog { */ String getOpPackageName(); /** The requestId of the underlying operation within the framework. */ long getRequestId(); /** * Animate to credential UI. Typically called after biometric is locked out. */ Loading