diff --git a/packages/SystemUI/compose/scene/tests/Android.bp b/packages/SystemUI/compose/scene/tests/Android.bp index 3509504b6357c2333c7eb0f7d6452c5f1334e978..2ab27af377006e48a45fc4185812067264681576 100644 --- a/packages/SystemUI/compose/scene/tests/Android.bp +++ b/packages/SystemUI/compose/scene/tests/Android.bp @@ -37,6 +37,7 @@ android_test { ], static_libs: [ + "platform-test-annotations", "PlatformComposeSceneTransitionLayoutTestsUtils", "PlatformMotionTestingCompose", "androidx.test.runner", diff --git a/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/AnchoredSizeTest.kt b/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/AnchoredSizeTest.kt index 7b992124d836700bd024984c5457e28a72614102..6233608dfad094cc4a948224c92d75a5fdf4927e 100644 --- a/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/AnchoredSizeTest.kt +++ b/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/transformation/AnchoredSizeTest.kt @@ -16,6 +16,7 @@ package com.android.compose.animation.scene.transformation +import android.platform.test.annotations.MotionTest import androidx.compose.animation.core.LinearEasing import androidx.compose.animation.core.tween import androidx.compose.foundation.layout.Box @@ -38,6 +39,7 @@ import platform.test.motion.compose.createComposeMotionTestRule import platform.test.motion.testing.createGoldenPathManager @RunWith(AndroidJUnit4::class) +@MotionTest class AnchoredSizeTest { private val goldenPaths = createGoldenPathManager("frameworks/base/packages/SystemUI/compose/scene/tests/goldens") diff --git a/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt b/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt index 259ece9fdf3f881219f4cf47c8bfaf1bbbe977e6..6c42662f2cdd5d8e411ff5b5332af83f11ff39a2 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/animation/TransitionAnimatorTest.kt @@ -18,6 +18,7 @@ package com.android.systemui.animation import android.animation.AnimatorSet import android.graphics.drawable.GradientDrawable +import android.platform.test.annotations.MotionTest import android.view.ViewGroup import android.widget.FrameLayout import androidx.test.ext.junit.rules.ActivityScenarioRule @@ -44,6 +45,7 @@ import platform.test.screenshot.GoldenPathManager import platform.test.screenshot.PathConfig @SmallTest +@MotionTest @RunWith(AndroidJUnit4::class) class TransitionAnimatorTest : SysuiTestCase() { companion object { diff --git a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerContentTest.kt b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerContentTest.kt index 9a3667819ec74275722277b775d2123ed324e2e1..d32d12c83a8d1d7f59b3d9172981205464c6289e 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerContentTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/BouncerContentTest.kt @@ -17,6 +17,7 @@ package com.android.systemui.bouncer.ui.composable import android.app.AlertDialog +import android.platform.test.annotations.MotionTest import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -55,6 +56,7 @@ import platform.test.screenshot.Displays.FoldableInner @RunWith(AndroidJUnit4::class) @LargeTest +@MotionTest class BouncerContentTest : SysuiTestCase() { private val deviceSpec = DeviceEmulationSpec(FoldableInner) private val kosmos = testKosmos() diff --git a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/PatternBouncerTest.kt b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/PatternBouncerTest.kt index 4f6f98e8fdb0a7d6c3f8d309176a9a035b633021..2948c0274525e563c7034724cd51cd6e122fa625 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/PatternBouncerTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/bouncer/ui/composable/PatternBouncerTest.kt @@ -16,6 +16,7 @@ package com.android.systemui.bouncer.ui.composable +import android.platform.test.annotations.MotionTest import androidx.compose.foundation.layout.size import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -44,6 +45,7 @@ import platform.test.motion.golden.DataPointTypes @RunWith(AndroidJUnit4::class) @LargeTest +@MotionTest class PatternBouncerTest : SysuiTestCase() { private val kosmos = testKosmos()