From 42801d0481aa49868dc05756923f4f3eb54a3203 Mon Sep 17 00:00:00 2001 From: Peter Liang Date: Tue, 25 Oct 2022 00:56:47 +0800 Subject: Fix the test fail of the MenuAnimationControllerTest. Root cause: looper must not be null Solution: Added looper into Fix: 255338428 Test: atest MenuAnimationControllerTest Change-Id: I54a26f4b93c27a6ea1dd4500e65ccbf371de1aa5 --- .../accessibility/floatingmenu/MenuAnimationControllerTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/MenuAnimationControllerTest.java b/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/MenuAnimationControllerTest.java index 6391a2c8eff7..dbf291c49ee5 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/MenuAnimationControllerTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/MenuAnimationControllerTest.java @@ -20,6 +20,7 @@ import static com.google.common.truth.Truth.assertThat; import android.graphics.PointF; import android.testing.AndroidTestingRunner; +import android.testing.TestableLooper; import android.view.WindowManager; import androidx.test.filters.SmallTest; @@ -32,6 +33,7 @@ import org.junit.runner.RunWith; /** Tests for {@link MenuAnimationController}. */ @RunWith(AndroidTestingRunner.class) +@TestableLooper.RunWithLooper(setAsMainLooper = true) @SmallTest public class MenuAnimationControllerTest extends SysuiTestCase { private MenuView mMenuView; -- cgit v1.2.3-59-g8ed1b