Loading packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/ExpandedAnimationControllerTest.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -76,6 +76,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testExpansionAndCollapse() throws InterruptedException { public void testExpansionAndCollapse() throws InterruptedException { Runnable afterExpand = Mockito.mock(Runnable.class); Runnable afterExpand = Mockito.mock(Runnable.class); mExpandedController.expandFromStack(afterExpand); mExpandedController.expandFromStack(afterExpand); Loading @@ -93,6 +94,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testOnChildAdded() throws InterruptedException { public void testOnChildAdded() throws InterruptedException { expand(); expand(); Loading @@ -105,6 +107,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testOnChildRemoved() throws InterruptedException { public void testOnChildRemoved() throws InterruptedException { expand(); expand(); Loading @@ -116,6 +119,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testBubbleDraggedNotDismissedSnapsBack() throws InterruptedException { public void testBubbleDraggedNotDismissedSnapsBack() throws InterruptedException { expand(); expand(); Loading @@ -133,6 +137,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testBubbleDismissed() throws InterruptedException { public void testBubbleDismissed() throws InterruptedException { expand(); expand(); Loading packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/PhysicsAnimationLayoutTest.java +12 −0 Original line number Original line Diff line number Diff line Loading @@ -38,6 +38,7 @@ import androidx.test.filters.SmallTest; import com.google.android.collect.Sets; import com.google.android.collect.Sets; import org.junit.Before; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runner.RunWith; import org.mockito.InOrder; import org.mockito.InOrder; Loading Loading @@ -76,6 +77,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testHierarchyChanges() throws InterruptedException { public void testHierarchyChanges() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading @@ -101,6 +103,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testUpdateValueNotChained() throws InterruptedException { public void testUpdateValueNotChained() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading @@ -127,11 +130,13 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testUpdateValueXChained() throws InterruptedException { public void testUpdateValueXChained() throws InterruptedException { testChainedTranslationAnimations(); testChainedTranslationAnimations(); } } @Test @Test @Ignore public void testSetEndActions() throws InterruptedException { public void testSetEndActions() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading Loading @@ -175,6 +180,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testRemoveEndListeners() throws InterruptedException { public void testRemoveEndListeners() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading Loading @@ -213,6 +219,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testSetController() throws InterruptedException { public void testSetController() throws InterruptedException { // Add the bubbles, then set the controller, to make sure that a controller added to an // Add the bubbles, then set the controller, to make sure that a controller added to an // already-initialized view works correctly. // already-initialized view works correctly. Loading Loading @@ -269,6 +276,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testArePropertiesAnimating() throws InterruptedException { public void testArePropertiesAnimating() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading @@ -293,6 +301,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testCancelAllAnimations() throws InterruptedException { public void testCancelAllAnimations() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading Loading @@ -346,6 +355,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testPhysicsAnimator() throws InterruptedException { public void testPhysicsAnimator() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading Loading @@ -390,6 +400,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testAnimationsForChildrenFromIndex() throws InterruptedException { public void testAnimationsForChildrenFromIndex() throws InterruptedException { // Don't chain since we're going to invoke each animation independently. // Don't chain since we're going to invoke each animation independently. mTestableController.setChainedProperties(new HashSet<>()); mTestableController.setChainedProperties(new HashSet<>()); Loading @@ -415,6 +426,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testAnimationsForChildrenFromIndex_noChildren() { public void testAnimationsForChildrenFromIndex_noChildren() { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); Loading Loading
packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/ExpandedAnimationControllerTest.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -76,6 +76,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testExpansionAndCollapse() throws InterruptedException { public void testExpansionAndCollapse() throws InterruptedException { Runnable afterExpand = Mockito.mock(Runnable.class); Runnable afterExpand = Mockito.mock(Runnable.class); mExpandedController.expandFromStack(afterExpand); mExpandedController.expandFromStack(afterExpand); Loading @@ -93,6 +94,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testOnChildAdded() throws InterruptedException { public void testOnChildAdded() throws InterruptedException { expand(); expand(); Loading @@ -105,6 +107,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testOnChildRemoved() throws InterruptedException { public void testOnChildRemoved() throws InterruptedException { expand(); expand(); Loading @@ -116,6 +119,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testBubbleDraggedNotDismissedSnapsBack() throws InterruptedException { public void testBubbleDraggedNotDismissedSnapsBack() throws InterruptedException { expand(); expand(); Loading @@ -133,6 +137,7 @@ public class ExpandedAnimationControllerTest extends PhysicsAnimationLayoutTestC } } @Test @Test @Ignore public void testBubbleDismissed() throws InterruptedException { public void testBubbleDismissed() throws InterruptedException { expand(); expand(); Loading
packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/PhysicsAnimationLayoutTest.java +12 −0 Original line number Original line Diff line number Diff line Loading @@ -38,6 +38,7 @@ import androidx.test.filters.SmallTest; import com.google.android.collect.Sets; import com.google.android.collect.Sets; import org.junit.Before; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runner.RunWith; import org.mockito.InOrder; import org.mockito.InOrder; Loading Loading @@ -76,6 +77,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testHierarchyChanges() throws InterruptedException { public void testHierarchyChanges() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading @@ -101,6 +103,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testUpdateValueNotChained() throws InterruptedException { public void testUpdateValueNotChained() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading @@ -127,11 +130,13 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testUpdateValueXChained() throws InterruptedException { public void testUpdateValueXChained() throws InterruptedException { testChainedTranslationAnimations(); testChainedTranslationAnimations(); } } @Test @Test @Ignore public void testSetEndActions() throws InterruptedException { public void testSetEndActions() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading Loading @@ -175,6 +180,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testRemoveEndListeners() throws InterruptedException { public void testRemoveEndListeners() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading Loading @@ -213,6 +219,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testSetController() throws InterruptedException { public void testSetController() throws InterruptedException { // Add the bubbles, then set the controller, to make sure that a controller added to an // Add the bubbles, then set the controller, to make sure that a controller added to an // already-initialized view works correctly. // already-initialized view works correctly. Loading Loading @@ -269,6 +276,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testArePropertiesAnimating() throws InterruptedException { public void testArePropertiesAnimating() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading @@ -293,6 +301,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testCancelAllAnimations() throws InterruptedException { public void testCancelAllAnimations() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading Loading @@ -346,6 +355,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testPhysicsAnimator() throws InterruptedException { public void testPhysicsAnimator() throws InterruptedException { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); addOneMoreThanBubbleLimitBubbles(); addOneMoreThanBubbleLimitBubbles(); Loading Loading @@ -390,6 +400,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testAnimationsForChildrenFromIndex() throws InterruptedException { public void testAnimationsForChildrenFromIndex() throws InterruptedException { // Don't chain since we're going to invoke each animation independently. // Don't chain since we're going to invoke each animation independently. mTestableController.setChainedProperties(new HashSet<>()); mTestableController.setChainedProperties(new HashSet<>()); Loading @@ -415,6 +426,7 @@ public class PhysicsAnimationLayoutTest extends PhysicsAnimationLayoutTestCase { } } @Test @Test @Ignore public void testAnimationsForChildrenFromIndex_noChildren() { public void testAnimationsForChildrenFromIndex_noChildren() { mLayout.setActiveController(mTestableController); mLayout.setActiveController(mTestableController); Loading