From c4fe7059a08df11fb8a9ecfe09033065abe9dc83 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Wed, 23 Mar 2022 14:47:25 -0400 Subject: [PATCH] Update dream blur and fade to match the bouncer scrim The bouncer scrim now fades in much faster, so update the blur effect to match the bouncer fade-in effect. This will make the dream blur out faster as well. Test: locally on device Test: atest DreamOverlayContainerViewControllerTest Bug: 220307939 Change-Id: I7702d9e179f155d515a8988ffdf5999d827492f2 --- .../dreams/DreamOverlayContainerViewController.java | 8 ++++++-- .../DreamOverlayContainerViewControllerTest.java | 11 ++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/dreams/DreamOverlayContainerViewController.java b/packages/SystemUI/src/com/android/systemui/dreams/DreamOverlayContainerViewController.java index 330bd6cb82812..456119068b93d 100644 --- a/packages/SystemUI/src/com/android/systemui/dreams/DreamOverlayContainerViewController.java +++ b/packages/SystemUI/src/com/android/systemui/dreams/DreamOverlayContainerViewController.java @@ -23,6 +23,7 @@ import android.util.MathUtils; import android.view.View; import android.view.ViewGroup; +import com.android.keyguard.BouncerPanelExpansionCalculator; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dreams.complication.ComplicationHostViewController; import com.android.systemui.dreams.dagger.DreamOverlayComponent; @@ -93,9 +94,12 @@ public class DreamOverlayContainerViewController extends ViewController