Loading packages/SystemUI/tests/src/com/android/systemui/wmshell/BubblesTest.java +10 −9 Original line number Diff line number Diff line Loading @@ -204,8 +204,6 @@ import com.android.wm.shell.taskview.TaskViewRepository; import com.android.wm.shell.taskview.TaskViewTransitions; import com.android.wm.shell.transition.Transitions; import kotlin.Lazy; import org.junit.After; import org.junit.Before; import org.junit.Test; Loading @@ -216,9 +214,6 @@ import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.mockito.stubbing.Answer; import platform.test.runner.parameterized.ParameterizedAndroidJunit4; import platform.test.runner.parameterized.Parameters; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; Loading @@ -227,6 +222,10 @@ import java.util.List; import java.util.Optional; import java.util.concurrent.Executor; import kotlin.Lazy; import platform.test.runner.parameterized.ParameterizedAndroidJunit4; import platform.test.runner.parameterized.Parameters; @SmallTest @RunWith(ParameterizedAndroidJunit4.class) @TestableLooper.RunWithLooper(setAsMainLooper = true) Loading Loading @@ -609,11 +608,13 @@ public class BubblesTest extends SysuiTestCase { @After public void tearDown() throws Exception { if (mBubbleData != null) { ArrayList<Bubble> bubbles = new ArrayList<>(mBubbleData.getBubbles()); for (int i = 0; i < bubbles.size(); i++) { mBubbleController.removeBubble(bubbles.get(i).getKey(), Bubbles.DISMISS_NO_LONGER_BUBBLE); } } mTestableLooper.processAllMessages(); // check that no animations are running before finishing the test to make sure that the Loading Loading
packages/SystemUI/tests/src/com/android/systemui/wmshell/BubblesTest.java +10 −9 Original line number Diff line number Diff line Loading @@ -204,8 +204,6 @@ import com.android.wm.shell.taskview.TaskViewRepository; import com.android.wm.shell.taskview.TaskViewTransitions; import com.android.wm.shell.transition.Transitions; import kotlin.Lazy; import org.junit.After; import org.junit.Before; import org.junit.Test; Loading @@ -216,9 +214,6 @@ import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.mockito.stubbing.Answer; import platform.test.runner.parameterized.ParameterizedAndroidJunit4; import platform.test.runner.parameterized.Parameters; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; Loading @@ -227,6 +222,10 @@ import java.util.List; import java.util.Optional; import java.util.concurrent.Executor; import kotlin.Lazy; import platform.test.runner.parameterized.ParameterizedAndroidJunit4; import platform.test.runner.parameterized.Parameters; @SmallTest @RunWith(ParameterizedAndroidJunit4.class) @TestableLooper.RunWithLooper(setAsMainLooper = true) Loading Loading @@ -609,11 +608,13 @@ public class BubblesTest extends SysuiTestCase { @After public void tearDown() throws Exception { if (mBubbleData != null) { ArrayList<Bubble> bubbles = new ArrayList<>(mBubbleData.getBubbles()); for (int i = 0; i < bubbles.size(); i++) { mBubbleController.removeBubble(bubbles.get(i).getKey(), Bubbles.DISMISS_NO_LONGER_BUBBLE); } } mTestableLooper.processAllMessages(); // check that no animations are running before finishing the test to make sure that the Loading