Loading packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/Notifications.kt +2 −1 Original line number Diff line number Diff line Loading @@ -126,7 +126,8 @@ fun SceneScope.HeadsUpNotificationSpace( " size=${coordinates.size}" + " bounds=$boundsInWindow" } viewModel.onHeadsUpTopChanged(boundsInWindow.top) // Note: boundsInWindow doesn't scroll off the screen stackScrollView.setHeadsUpTop(boundsInWindow.top) } ) { content {} Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/data/repository/NotificationPlaceholderRepository.kt +0 −3 Original line number Diff line number Diff line Loading @@ -38,9 +38,6 @@ class NotificationPlaceholderRepository @Inject constructor() { */ val shadeScrimBounds = MutableStateFlow<ShadeScrimBounds?>(null) /** the y position of the top of the HUN area */ val headsUpTop = MutableStateFlow(0f) /** height made available to the notifications in the size-constrained mode of lock screen. */ val constrainedAvailableSpace = MutableStateFlow(0) Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/domain/interactor/NotificationStackAppearanceInteractor.kt +0 −7 Original line number Diff line number Diff line Loading @@ -79,9 +79,6 @@ constructor( */ val scrolledToTop: StateFlow<Boolean> = placeholderRepository.scrolledToTop.asStateFlow() /** The y-coordinate in px of bottom of the contents of the HUN. */ val headsUpTop: StateFlow<Float> = placeholderRepository.headsUpTop.asStateFlow() /** * The amount in px that the notification stack should scroll due to internal expansion. This * should only happen when a notification expansion hits the bottom of the screen, so it is Loading Loading @@ -125,8 +122,4 @@ constructor( fun setConstrainedAvailableSpace(height: Int) { placeholderRepository.constrainedAvailableSpace.value = height } fun setHeadsUpTop(headsUpTop: Float) { placeholderRepository.headsUpTop.value = headsUpTop } } packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationScrollViewModel.kt +0 −2 Original line number Diff line number Diff line Loading @@ -139,8 +139,6 @@ constructor( */ val scrolledToTop: Flow<Boolean> = stackAppearanceInteractor.scrolledToTop.dumpValue("scrolledToTop") /** The y-coordinate in px of bottom of the contents of the HUN. */ val headsUpTop: Flow<Float> = stackAppearanceInteractor.headsUpTop.dumpValue("headsUpTop") /** Receives the amount (px) that the stack should scroll due to internal expansion. */ val syntheticScrollConsumer: (Float) -> Unit = stackAppearanceInteractor::setSyntheticScroll Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationsPlaceholderViewModel.kt +0 −4 Original line number Diff line number Diff line Loading @@ -60,10 +60,6 @@ constructor( interactor.setConstrainedAvailableSpace(height) } fun onHeadsUpTopChanged(headsUpTop: Float) { interactor.setHeadsUpTop(headsUpTop) } /** Sets the content alpha for the current state of the brightness mirror */ fun setAlphaForBrightnessMirror(alpha: Float) { interactor.setAlphaForBrightnessMirror(alpha) Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/Notifications.kt +2 −1 Original line number Diff line number Diff line Loading @@ -126,7 +126,8 @@ fun SceneScope.HeadsUpNotificationSpace( " size=${coordinates.size}" + " bounds=$boundsInWindow" } viewModel.onHeadsUpTopChanged(boundsInWindow.top) // Note: boundsInWindow doesn't scroll off the screen stackScrollView.setHeadsUpTop(boundsInWindow.top) } ) { content {} Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/data/repository/NotificationPlaceholderRepository.kt +0 −3 Original line number Diff line number Diff line Loading @@ -38,9 +38,6 @@ class NotificationPlaceholderRepository @Inject constructor() { */ val shadeScrimBounds = MutableStateFlow<ShadeScrimBounds?>(null) /** the y position of the top of the HUN area */ val headsUpTop = MutableStateFlow(0f) /** height made available to the notifications in the size-constrained mode of lock screen. */ val constrainedAvailableSpace = MutableStateFlow(0) Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/domain/interactor/NotificationStackAppearanceInteractor.kt +0 −7 Original line number Diff line number Diff line Loading @@ -79,9 +79,6 @@ constructor( */ val scrolledToTop: StateFlow<Boolean> = placeholderRepository.scrolledToTop.asStateFlow() /** The y-coordinate in px of bottom of the contents of the HUN. */ val headsUpTop: StateFlow<Float> = placeholderRepository.headsUpTop.asStateFlow() /** * The amount in px that the notification stack should scroll due to internal expansion. This * should only happen when a notification expansion hits the bottom of the screen, so it is Loading Loading @@ -125,8 +122,4 @@ constructor( fun setConstrainedAvailableSpace(height: Int) { placeholderRepository.constrainedAvailableSpace.value = height } fun setHeadsUpTop(headsUpTop: Float) { placeholderRepository.headsUpTop.value = headsUpTop } }
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationScrollViewModel.kt +0 −2 Original line number Diff line number Diff line Loading @@ -139,8 +139,6 @@ constructor( */ val scrolledToTop: Flow<Boolean> = stackAppearanceInteractor.scrolledToTop.dumpValue("scrolledToTop") /** The y-coordinate in px of bottom of the contents of the HUN. */ val headsUpTop: Flow<Float> = stackAppearanceInteractor.headsUpTop.dumpValue("headsUpTop") /** Receives the amount (px) that the stack should scroll due to internal expansion. */ val syntheticScrollConsumer: (Float) -> Unit = stackAppearanceInteractor::setSyntheticScroll Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationsPlaceholderViewModel.kt +0 −4 Original line number Diff line number Diff line Loading @@ -60,10 +60,6 @@ constructor( interactor.setConstrainedAvailableSpace(height) } fun onHeadsUpTopChanged(headsUpTop: Float) { interactor.setHeadsUpTop(headsUpTop) } /** Sets the content alpha for the current state of the brightness mirror */ fun setAlphaForBrightnessMirror(alpha: Float) { interactor.setAlphaForBrightnessMirror(alpha) Loading