From 8afdd40f0e01465de5eb42b0d4d2650cbbb37e49 Mon Sep 17 00:00:00 2001 From: Michal Brzezinski Date: Mon, 26 Jul 2021 17:31:09 +0100 Subject: [PATCH] Moving smartspace to the right on the lockscreen for split shade There is a new view managed by ConstraintLayout guidelines that serves as container for smartspace and is placed on the right. It's visible only in split shade and then it contains Smartspace. Smartspace view is switching between the default (current) view container and the new split shade container. Switching Smartspace view and visibility of its containers is managed by LockscreenSmartspaceController. Bug: 193654214 Test: KeyguardClockSwitchControllerTest, LockscreenSmartspaceControllerTest, KeyguardClockPositionAlgorithmTest Change-Id: I1afcdf7f3c750c36b995f1d6fd9d4393eee8cbef Merged-In: I1afcdf7f3c750c36b995f1d6fd9d4393eee8cbef --- .../layout/keyguard_clock_switch.xml | 10 ++ .../res/layout/status_bar_expanded.xml | 12 ++ .../KeyguardClockSwitchController.java | 56 ++++------ .../LockscreenSmartspaceController.kt | 93 +++++++++++++++- .../phone/KeyguardClockPositionAlgorithm.java | 43 ++------ .../NotificationPanelViewController.java | 23 +++- .../KeyguardClockSwitchControllerTest.java | 15 ++- .../LockscreenSmartspaceControllerTest.kt | 1 - .../KeyguardClockPositionAlgorithmTest.java | 103 +++++------------- .../phone/NotificationPanelViewTest.java | 9 ++ 10 files changed, 202 insertions(+), 163 deletions(-) diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml index 28c61663bd4d7..6016aafbd6aee 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml @@ -68,6 +68,16 @@ lockScreenWeight="400" /> + + + + +