Loading packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardViewController.java +15 −3 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud @NonNull private final StatusBarKeyguardViewManager mKeyguardViewManager; private boolean mForceShow; private boolean mQsExpanded; protected UdfpsKeyguardViewController( @NonNull UdfpsKeyguardView view, Loading Loading @@ -64,7 +65,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud protected void onViewDetached() { super.onViewDetached(); mStatusBarStateController.removeCallback(mStateListener); mAlternateAuthInterceptor.reset(); mAlternateAuthInterceptor.resetForceShow(); mKeyguardViewManager.setAlternateAuthInterceptor(null); } Loading Loading @@ -100,6 +101,11 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud if (mForceShow) { return false; } if (mQsExpanded) { return true; } return super.shouldPauseAuth(); } Loading Loading @@ -130,7 +136,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud } @Override public boolean reset() { public boolean resetForceShow() { if (!mForceShow) { return false; } Loading @@ -140,7 +146,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud } @Override public boolean isShowingAlternativeAuth() { public boolean isShowingAlternateAuth() { return mForceShow; } Loading @@ -149,6 +155,12 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud return mView.isAnimating(); } @Override public void setQsExpanded(boolean expanded) { mQsExpanded = expanded; updatePauseAuth(); } @Override public void dump(PrintWriter pw) { pw.print(getTag()); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +4 −3 Original line number Diff line number Diff line Loading @@ -1824,6 +1824,7 @@ public class NotificationPanelViewController extends PanelViewController { mNotificationContainerParent.setQsExpanded(expanded); mPulseExpansionHandler.setQsExpanded(expanded); mKeyguardBypassController.setQSExpanded(expanded); mStatusBarKeyguardViewManager.setQsExpanded(expanded); } } Loading Loading @@ -3389,7 +3390,7 @@ public class NotificationPanelViewController extends PanelViewController { return new TouchHandler() { @Override public boolean onInterceptTouchEvent(MotionEvent event) { if (mStatusBarKeyguardViewManager.isShowingAlternativeAuthOrAnimating()) { if (mStatusBarKeyguardViewManager.isShowingAlternateAuthOrAnimating()) { return true; } if (mBlockTouches || mQsFullyExpanded && mQs.disallowPanelTouches()) { Loading Loading @@ -3420,8 +3421,8 @@ public class NotificationPanelViewController extends PanelViewController { @Override public boolean onTouch(View v, MotionEvent event) { final boolean showingOrAnimatingAltAuth = mStatusBarKeyguardViewManager.isShowingAlternativeAuthOrAnimating(); if (showingOrAnimatingAltAuth) { mStatusBarKeyguardViewManager.isShowingAlternateAuthOrAnimating(); if (showingOrAnimatingAltAuth && event.getAction() == MotionEvent.ACTION_DOWN) { mStatusBarKeyguardViewManager.resetAlternateAuth(); } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java +1 −1 Original line number Diff line number Diff line Loading @@ -454,7 +454,7 @@ public abstract class PanelViewController { mView.postOnAnimation(mPostCollapseRunnable); } } else if (!mStatusBar.isBouncerShowing() && !mStatusBarKeyguardViewManager.isShowingAlternativeAuthOrAnimating()) { && !mStatusBarKeyguardViewManager.isShowingAlternateAuthOrAnimating()) { boolean expands = onEmptySpaceClick(mInitialTouchX); onTrackingStopped(expands); } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -4187,7 +4187,7 @@ public class StatusBar extends SystemUI implements DemoMode, mNotificationPanelViewController.isLaunchingAffordanceWithPreview(); mScrimController.setLaunchingAffordanceWithPreview(launchingAffordanceWithPreview); if (mStatusBarKeyguardViewManager.isShowingAlternativeAuth()) { if (mStatusBarKeyguardViewManager.isShowingAlternateAuth()) { mScrimController.transitionTo(ScrimState.AUTH_SCRIMMED); } else if (mBouncerShowing) { // Bouncer needs the front scrim when it's on top of an activity, Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +25 −10 Original line number Diff line number Diff line Loading @@ -476,11 +476,12 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb return; } if (mAlternateAuthInterceptor != null && mAlternateAuthInterceptor.showAlternativeAuthMethod()) { mStatusBar.updateScrimController(); if (mAlternateAuthInterceptor != null) { mAfterKeyguardGoneAction = r; mKeyguardGoneCancelAction = cancelAction; if (mAlternateAuthInterceptor.showAlternativeAuthMethod()) { mStatusBar.updateScrimController(); } return; } Loading Loading @@ -528,7 +529,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb * Stop showing any alternate auth methods */ public void resetAlternateAuth() { if (mAlternateAuthInterceptor != null && mAlternateAuthInterceptor.reset()) { if (mAlternateAuthInterceptor != null && mAlternateAuthInterceptor.resetForceShow()) { mStatusBar.updateScrimController(); } } Loading Loading @@ -1125,18 +1126,27 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb setDozing(isDozing); } /** * Set whether qs is currently expanded */ public void setQsExpanded(boolean expanded) { if (mAlternateAuthInterceptor != null) { mAlternateAuthInterceptor.setQsExpanded(expanded); } } public KeyguardBouncer getBouncer() { return mBouncer; } public boolean isShowingAlternativeAuth() { public boolean isShowingAlternateAuth() { return mAlternateAuthInterceptor != null && mAlternateAuthInterceptor.isShowingAlternativeAuth(); && mAlternateAuthInterceptor.isShowingAlternateAuth(); } public boolean isShowingAlternativeAuthOrAnimating() { public boolean isShowingAlternateAuthOrAnimating() { return mAlternateAuthInterceptor != null && (mAlternateAuthInterceptor.isShowingAlternativeAuth() && (mAlternateAuthInterceptor.isShowingAlternateAuth() || mAlternateAuthInterceptor.isAnimating()); } Loading Loading @@ -1169,12 +1179,12 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb * reset the state to the default (only keyguard showing, no auth methods showing) * @return whether alternative auth method was newly hidden */ boolean reset(); boolean resetForceShow(); /** * @return true if alternative auth method is showing */ boolean isShowingAlternativeAuth(); boolean isShowingAlternateAuth(); /** * print information for the alternate auth interceptor registered Loading @@ -1185,5 +1195,10 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb * @return true if the new auth method is currently animating in or out. */ boolean isAnimating(); /** * Set whether qs is currently expanded */ void setQsExpanded(boolean expanded); } } Loading
packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardViewController.java +15 −3 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud @NonNull private final StatusBarKeyguardViewManager mKeyguardViewManager; private boolean mForceShow; private boolean mQsExpanded; protected UdfpsKeyguardViewController( @NonNull UdfpsKeyguardView view, Loading Loading @@ -64,7 +65,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud protected void onViewDetached() { super.onViewDetached(); mStatusBarStateController.removeCallback(mStateListener); mAlternateAuthInterceptor.reset(); mAlternateAuthInterceptor.resetForceShow(); mKeyguardViewManager.setAlternateAuthInterceptor(null); } Loading Loading @@ -100,6 +101,11 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud if (mForceShow) { return false; } if (mQsExpanded) { return true; } return super.shouldPauseAuth(); } Loading Loading @@ -130,7 +136,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud } @Override public boolean reset() { public boolean resetForceShow() { if (!mForceShow) { return false; } Loading @@ -140,7 +146,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud } @Override public boolean isShowingAlternativeAuth() { public boolean isShowingAlternateAuth() { return mForceShow; } Loading @@ -149,6 +155,12 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud return mView.isAnimating(); } @Override public void setQsExpanded(boolean expanded) { mQsExpanded = expanded; updatePauseAuth(); } @Override public void dump(PrintWriter pw) { pw.print(getTag()); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +4 −3 Original line number Diff line number Diff line Loading @@ -1824,6 +1824,7 @@ public class NotificationPanelViewController extends PanelViewController { mNotificationContainerParent.setQsExpanded(expanded); mPulseExpansionHandler.setQsExpanded(expanded); mKeyguardBypassController.setQSExpanded(expanded); mStatusBarKeyguardViewManager.setQsExpanded(expanded); } } Loading Loading @@ -3389,7 +3390,7 @@ public class NotificationPanelViewController extends PanelViewController { return new TouchHandler() { @Override public boolean onInterceptTouchEvent(MotionEvent event) { if (mStatusBarKeyguardViewManager.isShowingAlternativeAuthOrAnimating()) { if (mStatusBarKeyguardViewManager.isShowingAlternateAuthOrAnimating()) { return true; } if (mBlockTouches || mQsFullyExpanded && mQs.disallowPanelTouches()) { Loading Loading @@ -3420,8 +3421,8 @@ public class NotificationPanelViewController extends PanelViewController { @Override public boolean onTouch(View v, MotionEvent event) { final boolean showingOrAnimatingAltAuth = mStatusBarKeyguardViewManager.isShowingAlternativeAuthOrAnimating(); if (showingOrAnimatingAltAuth) { mStatusBarKeyguardViewManager.isShowingAlternateAuthOrAnimating(); if (showingOrAnimatingAltAuth && event.getAction() == MotionEvent.ACTION_DOWN) { mStatusBarKeyguardViewManager.resetAlternateAuth(); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java +1 −1 Original line number Diff line number Diff line Loading @@ -454,7 +454,7 @@ public abstract class PanelViewController { mView.postOnAnimation(mPostCollapseRunnable); } } else if (!mStatusBar.isBouncerShowing() && !mStatusBarKeyguardViewManager.isShowingAlternativeAuthOrAnimating()) { && !mStatusBarKeyguardViewManager.isShowingAlternateAuthOrAnimating()) { boolean expands = onEmptySpaceClick(mInitialTouchX); onTrackingStopped(expands); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −1 Original line number Diff line number Diff line Loading @@ -4187,7 +4187,7 @@ public class StatusBar extends SystemUI implements DemoMode, mNotificationPanelViewController.isLaunchingAffordanceWithPreview(); mScrimController.setLaunchingAffordanceWithPreview(launchingAffordanceWithPreview); if (mStatusBarKeyguardViewManager.isShowingAlternativeAuth()) { if (mStatusBarKeyguardViewManager.isShowingAlternateAuth()) { mScrimController.transitionTo(ScrimState.AUTH_SCRIMMED); } else if (mBouncerShowing) { // Bouncer needs the front scrim when it's on top of an activity, Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +25 −10 Original line number Diff line number Diff line Loading @@ -476,11 +476,12 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb return; } if (mAlternateAuthInterceptor != null && mAlternateAuthInterceptor.showAlternativeAuthMethod()) { mStatusBar.updateScrimController(); if (mAlternateAuthInterceptor != null) { mAfterKeyguardGoneAction = r; mKeyguardGoneCancelAction = cancelAction; if (mAlternateAuthInterceptor.showAlternativeAuthMethod()) { mStatusBar.updateScrimController(); } return; } Loading Loading @@ -528,7 +529,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb * Stop showing any alternate auth methods */ public void resetAlternateAuth() { if (mAlternateAuthInterceptor != null && mAlternateAuthInterceptor.reset()) { if (mAlternateAuthInterceptor != null && mAlternateAuthInterceptor.resetForceShow()) { mStatusBar.updateScrimController(); } } Loading Loading @@ -1125,18 +1126,27 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb setDozing(isDozing); } /** * Set whether qs is currently expanded */ public void setQsExpanded(boolean expanded) { if (mAlternateAuthInterceptor != null) { mAlternateAuthInterceptor.setQsExpanded(expanded); } } public KeyguardBouncer getBouncer() { return mBouncer; } public boolean isShowingAlternativeAuth() { public boolean isShowingAlternateAuth() { return mAlternateAuthInterceptor != null && mAlternateAuthInterceptor.isShowingAlternativeAuth(); && mAlternateAuthInterceptor.isShowingAlternateAuth(); } public boolean isShowingAlternativeAuthOrAnimating() { public boolean isShowingAlternateAuthOrAnimating() { return mAlternateAuthInterceptor != null && (mAlternateAuthInterceptor.isShowingAlternativeAuth() && (mAlternateAuthInterceptor.isShowingAlternateAuth() || mAlternateAuthInterceptor.isAnimating()); } Loading Loading @@ -1169,12 +1179,12 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb * reset the state to the default (only keyguard showing, no auth methods showing) * @return whether alternative auth method was newly hidden */ boolean reset(); boolean resetForceShow(); /** * @return true if alternative auth method is showing */ boolean isShowingAlternativeAuth(); boolean isShowingAlternateAuth(); /** * print information for the alternate auth interceptor registered Loading @@ -1185,5 +1195,10 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb * @return true if the new auth method is currently animating in or out. */ boolean isAnimating(); /** * Set whether qs is currently expanded */ void setQsExpanded(boolean expanded); } }