Loading packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/row/BundleHeader.kt +1 −1 Original line number Diff line number Diff line Loading @@ -203,7 +203,7 @@ private fun ContentScope.BundleHeaderContent( ExpansionControl( collapsed = collapsed, numberToShow = if (collapsed) viewModel.numberOfChildren else null, numberToShow = viewModel.numberOfChildren, modifier = Modifier.padding(start = 8.dp, end = 16.dp).semantics(mergeDescendants = false) { contentDescription = viewModel.numberOfChildrenContentDescription Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/coordinator/RowAlertTimeCoordinatorTest.kt +7 −1 Original line number Diff line number Diff line Loading @@ -87,7 +87,13 @@ class RowAlertTimeCoordinatorTest : SysuiTestCase() { } } val expectedTimesSet = mapOf(entry1 to 10L, entry2 to 20L, summary to 8L, child1 to 0L, child2 to 8L) mapOf( entry1 to 10L, entry2 to 20L, summary to 8L, child1 to 0L, child2 to 8L, ) assertThat(actualTimesSet).containsExactlyEntriesIn(expectedTimesSet) } } packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/render/RenderStageManagerTest.kt +2 −4 Original line number Diff line number Diff line Loading @@ -198,7 +198,7 @@ class RenderStageManagerTest : SysuiTestCase() { notif(4), group(notif(5), notif(6), notif(7)), notif(8), bundle(group(notif(9)), notif(10)), bundle(group(notif(9)), notif(10)) ) private class FakeNotifViewRenderer : NotifViewRenderer { Loading @@ -208,8 +208,6 @@ class RenderStageManagerTest : SysuiTestCase() { override fun getRowController(entry: NotificationEntry): NotifRowController = mock() override fun getBundleController(entry: BundleEntry): NotifRowController = mock() override fun onDispatchComplete() {} } Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainerTest.java +11 −1 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ import java.util.List; @SmallTest @RunWith(AndroidJUnit4.class) @RunWithLooper //@DisableFlags(AsyncGroupHeaderViewInflation.FLAG_NAME) public class NotificationChildrenContainerTest extends SysuiTestCase { private ExpandableNotificationRow mGroup; Loading Loading @@ -134,12 +135,21 @@ public class NotificationChildrenContainerTest extends SysuiTestCase { ComposeView headerView = new ComposeView(mContext); mChildrenContainer.setBundleHeaderView(headerView); mChildrenContainer.setBundleHeaderViewModel(mock(BundleHeaderViewModel.class)); mChildrenContainer.getContainingNotification().expandNotification(); mChildrenContainer.setChildrenExpanded(true); Assert.assertEquals(mChildrenContainer.getMaxAllowedVisibleChildren(), NotificationChildrenContainer.NUMBER_OF_CHILDREN_BUNDLE_EXPANDED); } @Test @EnableFlags(NotificationBundleUi.FLAG_NAME) public void testGetMaxAllowedVisibleChildren_bundle_userLocked() { ComposeView headerView = new ComposeView(mContext); mChildrenContainer.setBundleHeaderView(headerView); mChildrenContainer.setBundleHeaderViewModel(mock(BundleHeaderViewModel.class)); mGroup.setUserLocked(true); Assert.assertEquals(mChildrenContainer.getMaxAllowedVisibleChildren(), NotificationChildrenContainer.NUMBER_OF_CHILDREN_BUNDLE_EXPANDED); } @Test public void testShowingAsLowPriority_lowPriority() { Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotifPipeline.kt +0 −8 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.systemui.statusbar.notification.collection import com.android.systemui.dagger.SysUISingleton import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderBundleEntryListener import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderEntryListener import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderGroupListener import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderListListener Loading Loading @@ -254,13 +253,6 @@ constructor( mRenderStageManager.addOnAfterRenderEntryListener(listener) } /** * Called at the end of the pipeline after a bundle entry has been handed off to the view layer. */ fun addOnAfterRenderBundleEntryListener(listener: OnAfterRenderBundleEntryListener) { mRenderStageManager.addOnAfterRenderBundleEntryListener(listener) } /** * Get an object which can be used to update a notification (internally to the pipeline) in * response to a user action. Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/row/BundleHeader.kt +1 −1 Original line number Diff line number Diff line Loading @@ -203,7 +203,7 @@ private fun ContentScope.BundleHeaderContent( ExpansionControl( collapsed = collapsed, numberToShow = if (collapsed) viewModel.numberOfChildren else null, numberToShow = viewModel.numberOfChildren, modifier = Modifier.padding(start = 8.dp, end = 16.dp).semantics(mergeDescendants = false) { contentDescription = viewModel.numberOfChildrenContentDescription Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/coordinator/RowAlertTimeCoordinatorTest.kt +7 −1 Original line number Diff line number Diff line Loading @@ -87,7 +87,13 @@ class RowAlertTimeCoordinatorTest : SysuiTestCase() { } } val expectedTimesSet = mapOf(entry1 to 10L, entry2 to 20L, summary to 8L, child1 to 0L, child2 to 8L) mapOf( entry1 to 10L, entry2 to 20L, summary to 8L, child1 to 0L, child2 to 8L, ) assertThat(actualTimesSet).containsExactlyEntriesIn(expectedTimesSet) } }
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/render/RenderStageManagerTest.kt +2 −4 Original line number Diff line number Diff line Loading @@ -198,7 +198,7 @@ class RenderStageManagerTest : SysuiTestCase() { notif(4), group(notif(5), notif(6), notif(7)), notif(8), bundle(group(notif(9)), notif(10)), bundle(group(notif(9)), notif(10)) ) private class FakeNotifViewRenderer : NotifViewRenderer { Loading @@ -208,8 +208,6 @@ class RenderStageManagerTest : SysuiTestCase() { override fun getRowController(entry: NotificationEntry): NotifRowController = mock() override fun getBundleController(entry: BundleEntry): NotifRowController = mock() override fun onDispatchComplete() {} } Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainerTest.java +11 −1 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ import java.util.List; @SmallTest @RunWith(AndroidJUnit4.class) @RunWithLooper //@DisableFlags(AsyncGroupHeaderViewInflation.FLAG_NAME) public class NotificationChildrenContainerTest extends SysuiTestCase { private ExpandableNotificationRow mGroup; Loading Loading @@ -134,12 +135,21 @@ public class NotificationChildrenContainerTest extends SysuiTestCase { ComposeView headerView = new ComposeView(mContext); mChildrenContainer.setBundleHeaderView(headerView); mChildrenContainer.setBundleHeaderViewModel(mock(BundleHeaderViewModel.class)); mChildrenContainer.getContainingNotification().expandNotification(); mChildrenContainer.setChildrenExpanded(true); Assert.assertEquals(mChildrenContainer.getMaxAllowedVisibleChildren(), NotificationChildrenContainer.NUMBER_OF_CHILDREN_BUNDLE_EXPANDED); } @Test @EnableFlags(NotificationBundleUi.FLAG_NAME) public void testGetMaxAllowedVisibleChildren_bundle_userLocked() { ComposeView headerView = new ComposeView(mContext); mChildrenContainer.setBundleHeaderView(headerView); mChildrenContainer.setBundleHeaderViewModel(mock(BundleHeaderViewModel.class)); mGroup.setUserLocked(true); Assert.assertEquals(mChildrenContainer.getMaxAllowedVisibleChildren(), NotificationChildrenContainer.NUMBER_OF_CHILDREN_BUNDLE_EXPANDED); } @Test public void testShowingAsLowPriority_lowPriority() { Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotifPipeline.kt +0 −8 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package com.android.systemui.statusbar.notification.collection import com.android.systemui.dagger.SysUISingleton import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderBundleEntryListener import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderEntryListener import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderGroupListener import com.android.systemui.statusbar.notification.collection.listbuilder.OnAfterRenderListListener Loading Loading @@ -254,13 +253,6 @@ constructor( mRenderStageManager.addOnAfterRenderEntryListener(listener) } /** * Called at the end of the pipeline after a bundle entry has been handed off to the view layer. */ fun addOnAfterRenderBundleEntryListener(listener: OnAfterRenderBundleEntryListener) { mRenderStageManager.addOnAfterRenderBundleEntryListener(listener) } /** * Get an object which can be used to update a notification (internally to the pipeline) in * response to a user action. Loading