From 1adcfa6eb12c8562b41e6ac5d4f2c6e90c65378d Mon Sep 17 00:00:00 2001 From: Kateryna Ivanova Date: Wed, 21 Jun 2023 09:20:35 +0000 Subject: Improve transition between AOD and lockscreen when media is playing for split shade * hide the targets before AOD -> Lockscreen transition to avoid jump of the media object Bug: 174229939 Test: manual test for switching between AOD and lockscreen while media is playing and with ring doorbell card Test: atest CardPagerAdapterTest, BcSmartspaceViewTest Change-Id: I9ad176b726beb2b7d7e07eb9b4c42d0f317ed53c --- .../android/systemui/plugins/BcSmartspaceDataPlugin.java | 10 ++++++++++ .../android/keyguard/KeyguardClockSwitchController.java | 7 +++++++ .../android/keyguard/KeyguardStatusViewController.java | 10 ++++++++++ .../systemui/shade/NotificationPanelViewController.java | 2 ++ .../lockscreen/LockscreenSmartspaceController.kt | 12 ++++++++++++ .../keyguard/KeyguardClockSwitchControllerTest.java | 14 ++++++++++++++ .../keyguard/KeyguardStatusViewControllerTest.java | 15 +++++++++++++++ 7 files changed, 70 insertions(+) diff --git a/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/BcSmartspaceDataPlugin.java b/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/BcSmartspaceDataPlugin.java index 1811c02d549d..64c0f99f4ba7 100644 --- a/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/BcSmartspaceDataPlugin.java +++ b/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins/BcSmartspaceDataPlugin.java @@ -127,6 +127,16 @@ public interface BcSmartspaceDataPlugin extends Plugin { */ void setDozeAmount(float amount); + /** + * Set if dozing is true or false + */ + default void setDozing(boolean dozing) {} + + /** + * Set if split shade enabled + */ + default void setSplitShadeEnabled(boolean enabled) {} + /** * Set the current keyguard bypass enabled status. */ diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java index 41c1eda42e83..a0261309d61a 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java @@ -351,6 +351,13 @@ public class KeyguardClockSwitchController extends ViewController