Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationShadeDepthController.kt +5 −15 Original line number Diff line number Diff line Loading @@ -81,7 +81,6 @@ class NotificationShadeDepthController @Inject constructor( } lateinit var root: View private var blurRoot: View? = null private var keyguardAnimator: Animator? = null private var notificationAnimator: Animator? = null private var updateScheduled: Boolean = false Loading Loading @@ -235,7 +234,7 @@ class NotificationShadeDepthController @Inject constructor( val opaque = scrimsVisible && !blursDisabledForAppLaunch Trace.traceCounter(Trace.TRACE_TAG_APP, "shade_blur_radius", blur) blurUtils.applyBlur(blurRoot?.viewRootImpl ?: root.viewRootImpl, blur, opaque) blurUtils.applyBlur(root.viewRootImpl, blur, opaque) lastAppliedBlur = blur wallpaperController.setNotificationShadeZoom(zoomOut) listeners.forEach { Loading Loading @@ -271,7 +270,6 @@ class NotificationShadeDepthController @Inject constructor( override fun onAnimationEnd(animation: Animator?) { keyguardAnimator = null wakeAndUnlockBlurRadius = 0f scheduleUpdate() } }) start() Loading Loading @@ -302,7 +300,6 @@ class NotificationShadeDepthController @Inject constructor( override fun onDozeAmountChanged(linear: Float, eased: Float) { wakeAndUnlockBlurRadius = blurUtils.blurRadiusOfRatio(eased) scheduleUpdate() } } Loading Loading @@ -439,12 +436,11 @@ class NotificationShadeDepthController @Inject constructor( shadeAnimation.animateTo(blurUtils.blurRadiusOfRatio(targetBlurNormalized).toInt()) } private fun scheduleUpdate(viewToBlur: View? = null) { private fun scheduleUpdate() { if (updateScheduled) { return } updateScheduled = true blurRoot = viewToBlur choreographer.postFrameCallback(updateBlurCallback) } Loading Loading @@ -495,16 +491,11 @@ class NotificationShadeDepthController @Inject constructor( */ private var pendingRadius = -1 /** * View on {@link Surface} that wants depth. */ private var view: View? = null private var springAnimation = SpringAnimation(this, object : FloatPropertyCompat<DepthAnimation>("blurRadius") { override fun setValue(rect: DepthAnimation?, value: Float) { radius = value scheduleUpdate(view) scheduleUpdate() } override fun getValue(rect: DepthAnimation?): Float { Loading @@ -519,11 +510,10 @@ class NotificationShadeDepthController @Inject constructor( springAnimation.addEndListener { _, _, _, _ -> pendingRadius = -1 } } fun animateTo(newRadius: Int, viewToBlur: View? = null) { if (pendingRadius == newRadius && view == viewToBlur) { fun animateTo(newRadius: Int) { if (pendingRadius == newRadius) { return } view = viewToBlur pendingRadius = newRadius springAnimation.animateToFinalPosition(newRadius.toFloat()) } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java +0 −2 Original line number Diff line number Diff line Loading @@ -394,8 +394,6 @@ public interface CentralSurfaces extends Dumpable, ActivityStarter, LifecycleOwn void fadeKeyguardAfterLaunchTransition(Runnable beforeFading, Runnable endRunnable, Runnable cancelRunnable); void fadeKeyguardWhilePulsing(); void animateKeyguardUnoccluding(); void startLaunchTransitionTimeout(); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java +0 −13 Original line number Diff line number Diff line Loading @@ -3004,19 +3004,6 @@ public class CentralSurfacesImpl extends CoreStartable implements mLaunchTransitionCancelRunnable = null; } /** * Fades the content of the Keyguard while we are dozing and makes it invisible when finished * fading. */ @Override public void fadeKeyguardWhilePulsing() { mNotificationPanelViewController.fadeOut(0, FADE_KEYGUARD_DURATION_PULSING, ()-> { hideKeyguard(); mStatusBarKeyguardViewManager.onKeyguardFadedAway(); }).start(); } /** * Plays the animation when an activity that was occluding Keyguard goes away. */ Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeServiceHost.java +2 −6 Original line number Diff line number Diff line Loading @@ -209,12 +209,8 @@ public final class DozeServiceHost implements DozeHost { void updateDozing() { Assert.isMainThread(); // When in wake-and-unlock while pulsing, keep dozing state until fully unlocked. boolean dozing = mDozingRequested && mStatusBarStateController.getState() == StatusBarState.KEYGUARD || mBiometricUnlockControllerLazy.get().getMode() == BiometricUnlockController.MODE_WAKE_AND_UNLOCK_PULSING; boolean dozing = mDozingRequested && mStatusBarStateController.getState() == StatusBarState.KEYGUARD; // When in wake-and-unlock we may not have received a change to StatusBarState // but we still should not be dozing, manually set to false. if (mBiometricUnlockControllerLazy.get().getMode() Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +13 −19 Original line number Diff line number Diff line Loading @@ -836,15 +836,10 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb }); } else { executeAfterKeyguardGoneAction(); boolean wakeUnlockPulsing = mBiometricUnlockController.getMode() == MODE_WAKE_AND_UNLOCK_PULSING; mCentralSurfaces.setKeyguardFadingAway(startTime, delay, fadeoutDuration); mBiometricUnlockController.startKeyguardFadingAway(); hideBouncer(true /* destroyView */); if (wakeUnlockPulsing) { mCentralSurfaces.fadeKeyguardWhilePulsing(); wakeAndUnlockDejank(); } else { boolean staying = mStatusBarStateController.leaveOpenOnKeyguardHide(); if (!staying) { mNotificationShadeWindowController.setKeyguardFadingAway(true); Loading @@ -860,7 +855,6 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb mCentralSurfaces.finishKeyguardFadingAway(); mBiometricUnlockController.finishKeyguardFadingAway(); } } updateStates(); mNotificationShadeWindowController.setKeyguardShowing(false); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationShadeDepthController.kt +5 −15 Original line number Diff line number Diff line Loading @@ -81,7 +81,6 @@ class NotificationShadeDepthController @Inject constructor( } lateinit var root: View private var blurRoot: View? = null private var keyguardAnimator: Animator? = null private var notificationAnimator: Animator? = null private var updateScheduled: Boolean = false Loading Loading @@ -235,7 +234,7 @@ class NotificationShadeDepthController @Inject constructor( val opaque = scrimsVisible && !blursDisabledForAppLaunch Trace.traceCounter(Trace.TRACE_TAG_APP, "shade_blur_radius", blur) blurUtils.applyBlur(blurRoot?.viewRootImpl ?: root.viewRootImpl, blur, opaque) blurUtils.applyBlur(root.viewRootImpl, blur, opaque) lastAppliedBlur = blur wallpaperController.setNotificationShadeZoom(zoomOut) listeners.forEach { Loading Loading @@ -271,7 +270,6 @@ class NotificationShadeDepthController @Inject constructor( override fun onAnimationEnd(animation: Animator?) { keyguardAnimator = null wakeAndUnlockBlurRadius = 0f scheduleUpdate() } }) start() Loading Loading @@ -302,7 +300,6 @@ class NotificationShadeDepthController @Inject constructor( override fun onDozeAmountChanged(linear: Float, eased: Float) { wakeAndUnlockBlurRadius = blurUtils.blurRadiusOfRatio(eased) scheduleUpdate() } } Loading Loading @@ -439,12 +436,11 @@ class NotificationShadeDepthController @Inject constructor( shadeAnimation.animateTo(blurUtils.blurRadiusOfRatio(targetBlurNormalized).toInt()) } private fun scheduleUpdate(viewToBlur: View? = null) { private fun scheduleUpdate() { if (updateScheduled) { return } updateScheduled = true blurRoot = viewToBlur choreographer.postFrameCallback(updateBlurCallback) } Loading Loading @@ -495,16 +491,11 @@ class NotificationShadeDepthController @Inject constructor( */ private var pendingRadius = -1 /** * View on {@link Surface} that wants depth. */ private var view: View? = null private var springAnimation = SpringAnimation(this, object : FloatPropertyCompat<DepthAnimation>("blurRadius") { override fun setValue(rect: DepthAnimation?, value: Float) { radius = value scheduleUpdate(view) scheduleUpdate() } override fun getValue(rect: DepthAnimation?): Float { Loading @@ -519,11 +510,10 @@ class NotificationShadeDepthController @Inject constructor( springAnimation.addEndListener { _, _, _, _ -> pendingRadius = -1 } } fun animateTo(newRadius: Int, viewToBlur: View? = null) { if (pendingRadius == newRadius && view == viewToBlur) { fun animateTo(newRadius: Int) { if (pendingRadius == newRadius) { return } view = viewToBlur pendingRadius = newRadius springAnimation.animateToFinalPosition(newRadius.toFloat()) } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfaces.java +0 −2 Original line number Diff line number Diff line Loading @@ -394,8 +394,6 @@ public interface CentralSurfaces extends Dumpable, ActivityStarter, LifecycleOwn void fadeKeyguardAfterLaunchTransition(Runnable beforeFading, Runnable endRunnable, Runnable cancelRunnable); void fadeKeyguardWhilePulsing(); void animateKeyguardUnoccluding(); void startLaunchTransitionTimeout(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java +0 −13 Original line number Diff line number Diff line Loading @@ -3004,19 +3004,6 @@ public class CentralSurfacesImpl extends CoreStartable implements mLaunchTransitionCancelRunnable = null; } /** * Fades the content of the Keyguard while we are dozing and makes it invisible when finished * fading. */ @Override public void fadeKeyguardWhilePulsing() { mNotificationPanelViewController.fadeOut(0, FADE_KEYGUARD_DURATION_PULSING, ()-> { hideKeyguard(); mStatusBarKeyguardViewManager.onKeyguardFadedAway(); }).start(); } /** * Plays the animation when an activity that was occluding Keyguard goes away. */ Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeServiceHost.java +2 −6 Original line number Diff line number Diff line Loading @@ -209,12 +209,8 @@ public final class DozeServiceHost implements DozeHost { void updateDozing() { Assert.isMainThread(); // When in wake-and-unlock while pulsing, keep dozing state until fully unlocked. boolean dozing = mDozingRequested && mStatusBarStateController.getState() == StatusBarState.KEYGUARD || mBiometricUnlockControllerLazy.get().getMode() == BiometricUnlockController.MODE_WAKE_AND_UNLOCK_PULSING; boolean dozing = mDozingRequested && mStatusBarStateController.getState() == StatusBarState.KEYGUARD; // When in wake-and-unlock we may not have received a change to StatusBarState // but we still should not be dozing, manually set to false. if (mBiometricUnlockControllerLazy.get().getMode() Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +13 −19 Original line number Diff line number Diff line Loading @@ -836,15 +836,10 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb }); } else { executeAfterKeyguardGoneAction(); boolean wakeUnlockPulsing = mBiometricUnlockController.getMode() == MODE_WAKE_AND_UNLOCK_PULSING; mCentralSurfaces.setKeyguardFadingAway(startTime, delay, fadeoutDuration); mBiometricUnlockController.startKeyguardFadingAway(); hideBouncer(true /* destroyView */); if (wakeUnlockPulsing) { mCentralSurfaces.fadeKeyguardWhilePulsing(); wakeAndUnlockDejank(); } else { boolean staying = mStatusBarStateController.leaveOpenOnKeyguardHide(); if (!staying) { mNotificationShadeWindowController.setKeyguardFadingAway(true); Loading @@ -860,7 +855,6 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb mCentralSurfaces.finishKeyguardFadingAway(); mBiometricUnlockController.finishKeyguardFadingAway(); } } updateStates(); mNotificationShadeWindowController.setKeyguardShowing(false); Loading