Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/StackScrollAlgorithmTest.kt +1 −6 Original line number Diff line number Diff line Loading @@ -6,7 +6,6 @@ import android.platform.test.flag.junit.FlagsParameterization import android.widget.FrameLayout import androidx.test.filters.SmallTest import com.android.keyguard.BouncerPanelExpansionCalculator.aboutToShowBouncerProgress import com.android.systemui.Flags import com.android.systemui.SysuiTestCase import com.android.systemui.animation.ShadeInterpolation.getContentAlpha import com.android.systemui.dump.DumpManager Loading Loading @@ -479,11 +478,7 @@ class StackScrollAlgorithmTest(flags: FlagsParameterization) : SysuiTestCase() { stackScrollAlgorithm.resetViewStates(ambientState, /* speedBumpIndex= */ 0) val marginBottom = context.resources.getDimensionPixelSize( if (Flags.notificationsRedesignFooterView()) R.dimen.notification_2025_panel_margin_bottom else R.dimen.notification_panel_margin_bottom ) context.resources.getDimensionPixelSize(R.dimen.notification_panel_margin_bottom) val fullHeight = ambientState.layoutMaxHeight + marginBottom - ambientState.stackY val centeredY = ambientState.stackY + fullHeight / 2f - emptyShadeView.height / 2f assertThat(emptyShadeView.viewState.yTranslation).isEqualTo(centeredY) Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModelTest.kt +0 −17 Original line number Diff line number Diff line Loading @@ -17,12 +17,9 @@ package com.android.systemui.statusbar.notification.stack.ui.viewmodel import android.platform.test.annotations.DisableFlags import android.platform.test.annotations.EnableFlags import android.platform.test.flag.junit.FlagsParameterization import androidx.test.filters.SmallTest import com.android.compose.animation.scene.ObservableTransitionState import com.android.systemui.Flags.FLAG_NOTIFICATIONS_REDESIGN_FOOTER_VIEW import com.android.systemui.SysuiTestCase import com.android.systemui.bouncer.data.repository.keyguardBouncerRepository import com.android.systemui.common.shared.model.NotificationContainerBounds Loading Loading @@ -298,7 +295,6 @@ class SharedNotificationContainerViewModelTest(flags: FlagsParameterization) : S } @Test @DisableFlags(FLAG_NOTIFICATIONS_REDESIGN_FOOTER_VIEW) fun validateMarginBottom() = testScope.runTest { overrideResource(R.dimen.notification_panel_margin_bottom, 50) Loading @@ -310,19 +306,6 @@ class SharedNotificationContainerViewModelTest(flags: FlagsParameterization) : S assertThat(dimens!!.marginBottom).isEqualTo(50) } @Test @EnableFlags(FLAG_NOTIFICATIONS_REDESIGN_FOOTER_VIEW) fun validateMarginBottom_footerRedesign() = testScope.runTest { overrideResource(R.dimen.notification_2025_panel_margin_bottom, 50) val dimens by collectLastValue(underTest.configurationBasedDimensions) configurationRepository.onAnyConfigurationChange() assertThat(dimens!!.marginBottom).isEqualTo(50) } @Test @DisableSceneContainer fun validateMarginTopWithLargeScreenHeader_usesHelper() = Loading packages/SystemUI/res/layout/notification_stack_scroll_layout.xml +0 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ --> <!-- This XML is served to be overridden by other OEMs/device types. --> <!-- Note: The margins may be overridden in code, see NotificationStackScrollLayout#getBottomMargin --> <com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res-auto" Loading packages/SystemUI/res/values/dimens.xml +0 −2 Original line number Diff line number Diff line Loading @@ -574,8 +574,6 @@ <dimen name="notification_panel_margin_bottom">32dp</dimen> <dimen name="notification_2025_panel_margin_bottom">64dp</dimen> <!-- The bottom padding of the panel that holds the list of notifications. --> <dimen name="notification_panel_padding_bottom">0dp</dimen> Loading packages/SystemUI/src/com/android/systemui/shade/NotificationsQSContainerController.kt +2 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,6 @@ import com.android.systemui.recents.LauncherProxyService.LauncherProxyListener import com.android.systemui.res.R import com.android.systemui.shade.domain.interactor.ShadeInteractor import com.android.systemui.shared.system.QuickStepContract import com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout import com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayoutController import com.android.systemui.statusbar.policy.SplitShadeStateController import com.android.systemui.util.LargeScreenUtils Loading Loading @@ -156,7 +155,8 @@ constructor( val splitShadeEnabledChanged = newSplitShadeEnabled != splitShadeEnabled splitShadeEnabled = newSplitShadeEnabled largeScreenShadeHeaderActive = LargeScreenUtils.shouldUseLargeScreenShadeHeader(resources) notificationsBottomMargin = NotificationStackScrollLayout.getBottomMargin(context) notificationsBottomMargin = resources.getDimensionPixelSize(R.dimen.notification_panel_margin_bottom) largeScreenShadeHeaderHeight = calculateLargeShadeHeaderHeight() shadeHeaderHeight = calculateShadeHeaderHeight() panelMarginHorizontal = Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/StackScrollAlgorithmTest.kt +1 −6 Original line number Diff line number Diff line Loading @@ -6,7 +6,6 @@ import android.platform.test.flag.junit.FlagsParameterization import android.widget.FrameLayout import androidx.test.filters.SmallTest import com.android.keyguard.BouncerPanelExpansionCalculator.aboutToShowBouncerProgress import com.android.systemui.Flags import com.android.systemui.SysuiTestCase import com.android.systemui.animation.ShadeInterpolation.getContentAlpha import com.android.systemui.dump.DumpManager Loading Loading @@ -479,11 +478,7 @@ class StackScrollAlgorithmTest(flags: FlagsParameterization) : SysuiTestCase() { stackScrollAlgorithm.resetViewStates(ambientState, /* speedBumpIndex= */ 0) val marginBottom = context.resources.getDimensionPixelSize( if (Flags.notificationsRedesignFooterView()) R.dimen.notification_2025_panel_margin_bottom else R.dimen.notification_panel_margin_bottom ) context.resources.getDimensionPixelSize(R.dimen.notification_panel_margin_bottom) val fullHeight = ambientState.layoutMaxHeight + marginBottom - ambientState.stackY val centeredY = ambientState.stackY + fullHeight / 2f - emptyShadeView.height / 2f assertThat(emptyShadeView.viewState.yTranslation).isEqualTo(centeredY) Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModelTest.kt +0 −17 Original line number Diff line number Diff line Loading @@ -17,12 +17,9 @@ package com.android.systemui.statusbar.notification.stack.ui.viewmodel import android.platform.test.annotations.DisableFlags import android.platform.test.annotations.EnableFlags import android.platform.test.flag.junit.FlagsParameterization import androidx.test.filters.SmallTest import com.android.compose.animation.scene.ObservableTransitionState import com.android.systemui.Flags.FLAG_NOTIFICATIONS_REDESIGN_FOOTER_VIEW import com.android.systemui.SysuiTestCase import com.android.systemui.bouncer.data.repository.keyguardBouncerRepository import com.android.systemui.common.shared.model.NotificationContainerBounds Loading Loading @@ -298,7 +295,6 @@ class SharedNotificationContainerViewModelTest(flags: FlagsParameterization) : S } @Test @DisableFlags(FLAG_NOTIFICATIONS_REDESIGN_FOOTER_VIEW) fun validateMarginBottom() = testScope.runTest { overrideResource(R.dimen.notification_panel_margin_bottom, 50) Loading @@ -310,19 +306,6 @@ class SharedNotificationContainerViewModelTest(flags: FlagsParameterization) : S assertThat(dimens!!.marginBottom).isEqualTo(50) } @Test @EnableFlags(FLAG_NOTIFICATIONS_REDESIGN_FOOTER_VIEW) fun validateMarginBottom_footerRedesign() = testScope.runTest { overrideResource(R.dimen.notification_2025_panel_margin_bottom, 50) val dimens by collectLastValue(underTest.configurationBasedDimensions) configurationRepository.onAnyConfigurationChange() assertThat(dimens!!.marginBottom).isEqualTo(50) } @Test @DisableSceneContainer fun validateMarginTopWithLargeScreenHeader_usesHelper() = Loading
packages/SystemUI/res/layout/notification_stack_scroll_layout.xml +0 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ --> <!-- This XML is served to be overridden by other OEMs/device types. --> <!-- Note: The margins may be overridden in code, see NotificationStackScrollLayout#getBottomMargin --> <com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res-auto" Loading
packages/SystemUI/res/values/dimens.xml +0 −2 Original line number Diff line number Diff line Loading @@ -574,8 +574,6 @@ <dimen name="notification_panel_margin_bottom">32dp</dimen> <dimen name="notification_2025_panel_margin_bottom">64dp</dimen> <!-- The bottom padding of the panel that holds the list of notifications. --> <dimen name="notification_panel_padding_bottom">0dp</dimen> Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationsQSContainerController.kt +2 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,6 @@ import com.android.systemui.recents.LauncherProxyService.LauncherProxyListener import com.android.systemui.res.R import com.android.systemui.shade.domain.interactor.ShadeInteractor import com.android.systemui.shared.system.QuickStepContract import com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout import com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayoutController import com.android.systemui.statusbar.policy.SplitShadeStateController import com.android.systemui.util.LargeScreenUtils Loading Loading @@ -156,7 +155,8 @@ constructor( val splitShadeEnabledChanged = newSplitShadeEnabled != splitShadeEnabled splitShadeEnabled = newSplitShadeEnabled largeScreenShadeHeaderActive = LargeScreenUtils.shouldUseLargeScreenShadeHeader(resources) notificationsBottomMargin = NotificationStackScrollLayout.getBottomMargin(context) notificationsBottomMargin = resources.getDimensionPixelSize(R.dimen.notification_panel_margin_bottom) largeScreenShadeHeaderHeight = calculateLargeShadeHeaderHeight() shadeHeaderHeight = calculateShadeHeaderHeight() panelMarginHorizontal = Loading