From ca91fe8bbf83f72a89d0325d3127b945ed918f11 Mon Sep 17 00:00:00 2001 From: Justin Weir Date: Wed, 19 Jul 2023 11:30:23 -0400 Subject: [PATCH] Delete CentralSurfaces.getShadeViewController Fixes: 288868098 Test: updated and ran affected tests Change-Id: Ic169e34e058abee5dd76aa0cb860c5f1965916a1 --- .../recents/OverviewProxyService.java | 24 +++++++------------ .../statusbar/phone/ActivityStarterImpl.kt | 4 +++- .../statusbar/phone/CentralSurfaces.java | 4 ---- .../statusbar/phone/CentralSurfacesImpl.java | 3 +-- .../recents/OverviewProxyServiceTest.kt | 3 +++ .../phone/ActivityStarterImplTest.kt | 3 +++ .../phone/PhoneStatusBarViewControllerTest.kt | 8 ------- 7 files changed, 19 insertions(+), 30 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java index 207cc13982790..a737a8bca5850 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java @@ -78,7 +78,6 @@ import com.android.internal.annotations.VisibleForTesting; import com.android.internal.app.AssistUtils; import com.android.internal.app.IVoiceInteractionSessionListener; import com.android.internal.logging.UiEventLogger; -import com.android.internal.policy.ScreenDecorationsUtils; import com.android.internal.util.ScreenshotHelper; import com.android.internal.util.ScreenshotRequest; import com.android.systemui.Dumpable; @@ -143,6 +142,7 @@ public class OverviewProxyService implements CallbackController> mCentralSurfacesOptionalLazy; + private final Lazy mShadeViewControllerLazy; private SysUiState mSysUiState; private final Handler mHandler; private final Lazy mNavBarControllerLazy; @@ -201,11 +201,7 @@ public class OverviewProxyService implements CallbackController { if (event.getActionMasked() == ACTION_DOWN) { - ShadeViewController shadeViewController = - centralSurfaces.getShadeViewController(); - if (shadeViewController != null) { - shadeViewController.startExpandLatencyTracking(); - } + mShadeViewControllerLazy.get().startExpandLatencyTracking(); } mHandler.post(() -> { int action = event.getActionMasked(); @@ -552,8 +548,10 @@ public class OverviewProxyService implements CallbackController navBarControllerLazy, Lazy> centralSurfacesOptionalLazy, + Lazy shadeViewControllerLazy, NavigationModeController navModeController, - NotificationShadeWindowController statusBarWinController, SysUiState sysUiState, + NotificationShadeWindowController statusBarWinController, + SysUiState sysUiState, UserTracker userTracker, ScreenLifecycle screenLifecycle, WakefulnessLifecycle wakefulnessLifecycle, @@ -573,6 +571,7 @@ public class OverviewProxyService implements CallbackController