Loading packages/SystemUI/tests/src/com/android/systemui/shade/GlanceableHubContainerControllerTest.kt +6 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import com.google.common.truth.Truth.assertThat import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.test.UnconfinedTestDispatcher import org.junit.After import org.junit.Assert.assertThrows import org.junit.Assume.assumeTrue import org.junit.Before Loading Loading @@ -118,6 +119,11 @@ class GlanceableHubContainerControllerTest : SysuiTestCase() { initAndAttachContainerView() } @After fun tearDown() { ViewUtils.detachView(parentView) } @Test fun isEnabled_communalEnabled_returnsTrue() { communalRepository.setIsCommunalEnabled(true) Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -315,6 +315,8 @@ public class ScrimControllerTest extends SysuiTestCase { @After public void tearDown() { // Detaching view stops flow collection and prevents memory leak. ViewUtils.detachView(mScrimBehind); finishAnimationsImmediately(); Arrays.stream(ScrimState.values()).forEach((scrim) -> { scrim.setAodFrontScrimAlpha(0f); Loading Loading
packages/SystemUI/tests/src/com/android/systemui/shade/GlanceableHubContainerControllerTest.kt +6 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import com.google.common.truth.Truth.assertThat import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.test.UnconfinedTestDispatcher import org.junit.After import org.junit.Assert.assertThrows import org.junit.Assume.assumeTrue import org.junit.Before Loading Loading @@ -118,6 +119,11 @@ class GlanceableHubContainerControllerTest : SysuiTestCase() { initAndAttachContainerView() } @After fun tearDown() { ViewUtils.detachView(parentView) } @Test fun isEnabled_communalEnabled_returnsTrue() { communalRepository.setIsCommunalEnabled(true) Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -315,6 +315,8 @@ public class ScrimControllerTest extends SysuiTestCase { @After public void tearDown() { // Detaching view stops flow collection and prevents memory leak. ViewUtils.detachView(mScrimBehind); finishAnimationsImmediately(); Arrays.stream(ScrimState.values()).forEach((scrim) -> { scrim.setAodFrontScrimAlpha(0f); Loading