Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/coordinator/RankingCoordinatorTest.java +18 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,24 @@ public class RankingCoordinatorTest extends SysuiTestCase { verify(mSilentHeaderController).setClearSectionEnabled(eq(false)); } @Test public void testSilentHeader_clearableBundle_enableClearSectionTrue() { // Set up bundle with clearable listEntry child BundleEntry bundleEntry = new BundleEntry(BundleSpec.Companion.getNEWS()); ListEntry listEntry = new ListEntry(mEntry.getKey(), 0L) { @Nullable @Override public NotificationEntry getRepresentativeEntry() { return mEntry; } }; setSbnClearable(true); bundleEntry.addChild(listEntry); mSilentSectioner.onEntriesUpdated(Arrays.asList(bundleEntry)); verify(mSilentHeaderController).setClearSectionEnabled(eq(true)); } @Test public void testUnfilteredState() { // GIVEN no suppressed visual effects + app not suspended Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/coordinator/RankingCoordinatorTest.java +18 −0 Original line number Diff line number Diff line Loading @@ -154,6 +154,24 @@ public class RankingCoordinatorTest extends SysuiTestCase { verify(mSilentHeaderController).setClearSectionEnabled(eq(false)); } @Test public void testSilentHeader_clearableBundle_enableClearSectionTrue() { // Set up bundle with clearable listEntry child BundleEntry bundleEntry = new BundleEntry(BundleSpec.Companion.getNEWS()); ListEntry listEntry = new ListEntry(mEntry.getKey(), 0L) { @Nullable @Override public NotificationEntry getRepresentativeEntry() { return mEntry; } }; setSbnClearable(true); bundleEntry.addChild(listEntry); mSilentSectioner.onEntriesUpdated(Arrays.asList(bundleEntry)); verify(mSilentHeaderController).setClearSectionEnabled(eq(true)); } @Test public void testUnfilteredState() { // GIVEN no suppressed visual effects + app not suspended Loading