Loading packages/SystemUI/aconfig/systemui.aconfig +0 −10 Original line number Diff line number Diff line Loading @@ -1610,16 +1610,6 @@ flag { } } flag { name: "check_lockscreen_gone_transition" namespace: "systemui" description: "Run notification pipeline when the lockscreen is not in gone transition for avoiding janky frames during unlocking animation" bug: "358301118" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "notes_role_qs_tile" namespace: "systemui" Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/coordinator/VisualStabilityCoordinatorTest.kt +0 −3 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ */ package com.android.systemui.statusbar.notification.collection.coordinator import android.platform.test.annotations.EnableFlags import android.platform.test.flag.junit.FlagsParameterization import android.testing.TestableLooper.RunWithLooper import androidx.test.filters.SmallTest Loading Loading @@ -543,7 +542,6 @@ class VisualStabilityCoordinatorTest(flags: FlagsParameterization) : SysuiTestCa } @Test @EnableFlags(Flags.FLAG_CHECK_LOCKSCREEN_GONE_TRANSITION) @DisableSceneContainer fun testNotLockscreenInGoneTransitionLegacy_invalidationCalled() { // GIVEN visual stability is being maintained b/c animation is playing Loading @@ -561,7 +559,6 @@ class VisualStabilityCoordinatorTest(flags: FlagsParameterization) : SysuiTestCa } @Test @EnableFlags(Flags.FLAG_CHECK_LOCKSCREEN_GONE_TRANSITION) @EnableSceneContainer @BrokenWithSceneContainer(bugId = 377868472) // mReorderingAllowed is broken with SceneContainer fun testNotLockscreenInGoneTransition_invalidationCalled() = Loading packages/SystemUI/src/com/android/systemui/scene/ui/view/WindowRootView.kt +1 −6 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ import android.view.View import android.view.WindowInsets import android.widget.FrameLayout import androidx.core.view.updateMargins import com.android.systemui.Flags import com.android.systemui.compose.ComposeInitializer import com.android.systemui.res.R Loading Loading @@ -108,7 +107,6 @@ open class WindowRootView(context: Context, attrs: AttributeSet?) : FrameLayout( private fun applyMargins() { val count = childCount val hasFlagsEnabled = Flags.checkLockscreenGoneTransition() var hasChildMarginUpdated = false for (i in 0 until count) { val child = getChildAt(i) Loading @@ -121,13 +119,10 @@ open class WindowRootView(context: Context, attrs: AttributeSet?) : FrameLayout( ) { layoutParams.updateMargins(left = leftInset, right = rightInset) hasChildMarginUpdated = true if (!hasFlagsEnabled) { child.requestLayout() } } } } if (hasFlagsEnabled && hasChildMarginUpdated) { if (hasChildMarginUpdated) { // Request layout at once after all children's margins has updated requestLayout() } Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUserManagerImpl.java +2 −11 Original line number Diff line number Diff line Loading @@ -60,7 +60,6 @@ import androidx.annotation.WorkerThread; import com.android.internal.statusbar.NotificationVisibility; import com.android.internal.widget.LockPatternUtils; import com.android.systemui.Dumpable; import com.android.systemui.Flags; import com.android.systemui.LauncherProxyService; import com.android.systemui.broadcast.BroadcastDispatcher; import com.android.systemui.dagger.SysUISingleton; Loading Loading @@ -968,17 +967,9 @@ public class NotificationLockscreenUserManagerImpl implements private void notifyNotificationStateChanged() { if (!Looper.getMainLooper().isCurrentThread()) { if (Flags.checkLockscreenGoneTransition()) { for (NotificationStateChangedListener listener : mNotifStateChangedListeners) { mMainExecutor.execute(listener::onNotificationStateChanged); } } else { mMainExecutor.execute(() -> { for (NotificationStateChangedListener listener : mNotifStateChangedListeners) { listener.onNotificationStateChanged(); } }); } } else { for (NotificationStateChangedListener listener : mNotifStateChangedListeners) { listener.onNotificationStateChanged(); Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/VisualStabilityCoordinator.java +8 −18 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import androidx.annotation.NonNull; import androidx.annotation.VisibleForTesting; import com.android.systemui.Dumpable; import com.android.systemui.Flags; import com.android.systemui.communal.domain.interactor.CommunalSceneInteractor; import com.android.systemui.dagger.SysUISingleton; import com.android.systemui.dagger.qualifiers.Background; Loading Loading @@ -114,8 +113,6 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { @VisibleForTesting protected static final long ALLOW_SECTION_CHANGE_TIMEOUT = 500; private final boolean mCheckLockScreenTransitionEnabled = Flags.checkLockscreenGoneTransition(); @Inject public VisualStabilityCoordinator( @Background DelayableExecutor delayableExecutor, Loading Loading @@ -185,7 +182,6 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { this::onTrackingHeadsUpModeChanged); } if (mCheckLockScreenTransitionEnabled) { if (SceneContainerFlag.isEnabled()) { mJavaAdapter.alwaysCollectFlow(mKeyguardTransitionInteractor.isInTransition( Edge.create(KeyguardState.LOCKSCREEN, Scenes.Gone), null), Loading @@ -193,7 +189,6 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { } else { mKeyguardStateController.addCallback(mKeyguardFadeAwayAnimationCallback); } } pipeline.setVisualStabilityManager(mNotifStabilityManager); } Loading Loading @@ -448,7 +443,7 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { boolean wasReorderingAllowed = mReorderingAllowed; // No need to run notification pipeline when the lockscreen is in fading animation. mPipelineRunAllowed = !(isPanelCollapsingOrLaunchingActivity() || (mCheckLockScreenTransitionEnabled && mLockscreenInGoneTransition)); || mLockscreenInGoneTransition); mReorderingAllowed = isReorderingAllowed(); if (wasPipelineRunAllowed != mPipelineRunAllowed || wasReorderingAllowed != mReorderingAllowed) { Loading Loading @@ -577,9 +572,7 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { pw.println("pipelineRunAllowed: " + mPipelineRunAllowed); pw.println(" notifPanelCollapsing: " + mNotifPanelCollapsing); pw.println(" launchingNotifActivity: " + mNotifPanelLaunchingActivity); if (mCheckLockScreenTransitionEnabled) { pw.println(" lockscreenInGoneTransition: " + mLockscreenInGoneTransition); } pw.println("reorderingAllowed: " + mReorderingAllowed); pw.println(" sleepy: " + mSleepy); pw.println(" fullyDozed: " + mFullyDozed); Loading Loading @@ -638,9 +631,6 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { } private void onLockscreenInGoneTransitionChanged(boolean inGoneTransition) { if (!mCheckLockScreenTransitionEnabled) { return; } if (inGoneTransition == mLockscreenInGoneTransition) { return; } Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +0 −10 Original line number Diff line number Diff line Loading @@ -1610,16 +1610,6 @@ flag { } } flag { name: "check_lockscreen_gone_transition" namespace: "systemui" description: "Run notification pipeline when the lockscreen is not in gone transition for avoiding janky frames during unlocking animation" bug: "358301118" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "notes_role_qs_tile" namespace: "systemui" Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/coordinator/VisualStabilityCoordinatorTest.kt +0 −3 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ */ package com.android.systemui.statusbar.notification.collection.coordinator import android.platform.test.annotations.EnableFlags import android.platform.test.flag.junit.FlagsParameterization import android.testing.TestableLooper.RunWithLooper import androidx.test.filters.SmallTest Loading Loading @@ -543,7 +542,6 @@ class VisualStabilityCoordinatorTest(flags: FlagsParameterization) : SysuiTestCa } @Test @EnableFlags(Flags.FLAG_CHECK_LOCKSCREEN_GONE_TRANSITION) @DisableSceneContainer fun testNotLockscreenInGoneTransitionLegacy_invalidationCalled() { // GIVEN visual stability is being maintained b/c animation is playing Loading @@ -561,7 +559,6 @@ class VisualStabilityCoordinatorTest(flags: FlagsParameterization) : SysuiTestCa } @Test @EnableFlags(Flags.FLAG_CHECK_LOCKSCREEN_GONE_TRANSITION) @EnableSceneContainer @BrokenWithSceneContainer(bugId = 377868472) // mReorderingAllowed is broken with SceneContainer fun testNotLockscreenInGoneTransition_invalidationCalled() = Loading
packages/SystemUI/src/com/android/systemui/scene/ui/view/WindowRootView.kt +1 −6 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ import android.view.View import android.view.WindowInsets import android.widget.FrameLayout import androidx.core.view.updateMargins import com.android.systemui.Flags import com.android.systemui.compose.ComposeInitializer import com.android.systemui.res.R Loading Loading @@ -108,7 +107,6 @@ open class WindowRootView(context: Context, attrs: AttributeSet?) : FrameLayout( private fun applyMargins() { val count = childCount val hasFlagsEnabled = Flags.checkLockscreenGoneTransition() var hasChildMarginUpdated = false for (i in 0 until count) { val child = getChildAt(i) Loading @@ -121,13 +119,10 @@ open class WindowRootView(context: Context, attrs: AttributeSet?) : FrameLayout( ) { layoutParams.updateMargins(left = leftInset, right = rightInset) hasChildMarginUpdated = true if (!hasFlagsEnabled) { child.requestLayout() } } } } if (hasFlagsEnabled && hasChildMarginUpdated) { if (hasChildMarginUpdated) { // Request layout at once after all children's margins has updated requestLayout() } Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUserManagerImpl.java +2 −11 Original line number Diff line number Diff line Loading @@ -60,7 +60,6 @@ import androidx.annotation.WorkerThread; import com.android.internal.statusbar.NotificationVisibility; import com.android.internal.widget.LockPatternUtils; import com.android.systemui.Dumpable; import com.android.systemui.Flags; import com.android.systemui.LauncherProxyService; import com.android.systemui.broadcast.BroadcastDispatcher; import com.android.systemui.dagger.SysUISingleton; Loading Loading @@ -968,17 +967,9 @@ public class NotificationLockscreenUserManagerImpl implements private void notifyNotificationStateChanged() { if (!Looper.getMainLooper().isCurrentThread()) { if (Flags.checkLockscreenGoneTransition()) { for (NotificationStateChangedListener listener : mNotifStateChangedListeners) { mMainExecutor.execute(listener::onNotificationStateChanged); } } else { mMainExecutor.execute(() -> { for (NotificationStateChangedListener listener : mNotifStateChangedListeners) { listener.onNotificationStateChanged(); } }); } } else { for (NotificationStateChangedListener listener : mNotifStateChangedListeners) { listener.onNotificationStateChanged(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/VisualStabilityCoordinator.java +8 −18 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import androidx.annotation.NonNull; import androidx.annotation.VisibleForTesting; import com.android.systemui.Dumpable; import com.android.systemui.Flags; import com.android.systemui.communal.domain.interactor.CommunalSceneInteractor; import com.android.systemui.dagger.SysUISingleton; import com.android.systemui.dagger.qualifiers.Background; Loading Loading @@ -114,8 +113,6 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { @VisibleForTesting protected static final long ALLOW_SECTION_CHANGE_TIMEOUT = 500; private final boolean mCheckLockScreenTransitionEnabled = Flags.checkLockscreenGoneTransition(); @Inject public VisualStabilityCoordinator( @Background DelayableExecutor delayableExecutor, Loading Loading @@ -185,7 +182,6 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { this::onTrackingHeadsUpModeChanged); } if (mCheckLockScreenTransitionEnabled) { if (SceneContainerFlag.isEnabled()) { mJavaAdapter.alwaysCollectFlow(mKeyguardTransitionInteractor.isInTransition( Edge.create(KeyguardState.LOCKSCREEN, Scenes.Gone), null), Loading @@ -193,7 +189,6 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { } else { mKeyguardStateController.addCallback(mKeyguardFadeAwayAnimationCallback); } } pipeline.setVisualStabilityManager(mNotifStabilityManager); } Loading Loading @@ -448,7 +443,7 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { boolean wasReorderingAllowed = mReorderingAllowed; // No need to run notification pipeline when the lockscreen is in fading animation. mPipelineRunAllowed = !(isPanelCollapsingOrLaunchingActivity() || (mCheckLockScreenTransitionEnabled && mLockscreenInGoneTransition)); || mLockscreenInGoneTransition); mReorderingAllowed = isReorderingAllowed(); if (wasPipelineRunAllowed != mPipelineRunAllowed || wasReorderingAllowed != mReorderingAllowed) { Loading Loading @@ -577,9 +572,7 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { pw.println("pipelineRunAllowed: " + mPipelineRunAllowed); pw.println(" notifPanelCollapsing: " + mNotifPanelCollapsing); pw.println(" launchingNotifActivity: " + mNotifPanelLaunchingActivity); if (mCheckLockScreenTransitionEnabled) { pw.println(" lockscreenInGoneTransition: " + mLockscreenInGoneTransition); } pw.println("reorderingAllowed: " + mReorderingAllowed); pw.println(" sleepy: " + mSleepy); pw.println(" fullyDozed: " + mFullyDozed); Loading Loading @@ -638,9 +631,6 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable { } private void onLockscreenInGoneTransitionChanged(boolean inGoneTransition) { if (!mCheckLockScreenTransitionEnabled) { return; } if (inGoneTransition == mLockscreenInGoneTransition) { return; } Loading