Lines Matching refs:Transition
33 import android.media.videoeditor.Transition;
114 assertNull("Media Video Begin transition",
116 assertNull("Media Video End transition",
377 * To Test the Media Video API : Get Before and after transition
389 assertNull("Begin Transition", mediaVideoItem1.getBeginTransition());
390 assertNull("End Transition", mediaVideoItem1.getEndTransition());
394 null, 0, Transition.BEHAVIOR_SPEED_UP);
396 assertEquals("Begin transition", transition1,
399 assertNotNull("End Transition", mediaVideoItem1.getEndTransition());
408 "transition2", null,mediaVideoItem1, 0, Transition.BEHAVIOR_LINEAR);
410 assertNotNull("Begin transition", mediaVideoItem1.getBeginTransition());
411 assertEquals("End Transition", transition2,
487 assertNull("Media Image Begin transition",
489 assertNull("Media Image End transition",
623 * To Test the Media Image API : Get Before and after transition
635 assertNull("Begin Transition", mediaImageItem1.getBeginTransition());
636 assertNull("End Transition", mediaImageItem1.getEndTransition());
640 null, 0, Transition.BEHAVIOR_SPEED_UP);
643 assertEquals("Begin transition", transition1,
645 assertNotNull("End Transition", mediaImageItem1.getEndTransition());
654 "transition2",null, mediaImageItem1, 0, Transition.BEHAVIOR_SPEED_UP);
657 assertNotNull("Begin transition", mediaImageItem1.getBeginTransition());
658 assertEquals("End Transition", transition2,
1411 * To test Transition : Fade To Black with all behavior
1445 mediaVideoItem2, 3000, Transition.BEHAVIOR_SPEED_UP);
1448 assertTrue("Transition ID",
1455 assertEquals("Transtion Behavior", Transition.BEHAVIOR_SPEED_UP,
1465 mediaImageItem3, 1000, Transition.BEHAVIOR_SPEED_DOWN);
1468 assertTrue("Transition ID",
1475 assertEquals("Transtion Behavior", Transition.BEHAVIOR_SPEED_DOWN,
1486 mediaVideoItem4, 5000, Transition.BEHAVIOR_LINEAR);
1489 assertTrue("Transition ID",
1496 assertEquals("Transtion Behavior", Transition.BEHAVIOR_LINEAR,
1506 mediaVideoItem5, 8000, Transition.BEHAVIOR_MIDDLE_FAST);
1509 assertTrue("Transition ID",
1516 assertEquals("Transtion Behavior", Transition.BEHAVIOR_MIDDLE_FAST,
1527 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_SLOW);
1530 assertTrue("Transition ID",
1537 assertEquals("Transtion Behavior", Transition.BEHAVIOR_MIDDLE_SLOW,
1542 mediaVideoItem6, 2000, Transition.BEHAVIOR_SPEED_UP - 1);
1546 assertTrue("Transition FadeBlack with Invalid behavior", flagForException);
1550 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_FAST + 1);
1554 assertTrue("Transition FadeBlack with Invalid behavior", flagForException);
1558 * To test Transition : CrossFade with all behavior
1591 mediaVideoItem2, 3000, Transition.BEHAVIOR_SPEED_UP);
1594 assertTrue("Transition ID",
1601 assertEquals("Transtion Behavior", Transition.BEHAVIOR_SPEED_UP,
1611 mediaImageItem3, 1000, Transition.BEHAVIOR_SPEED_DOWN);
1614 assertTrue("Transition ID",
1621 assertEquals("Transtion Behavior", Transition.BEHAVIOR_SPEED_DOWN,
1632 mediaVideoItem4, 5000, Transition.BEHAVIOR_LINEAR);
1635 assertTrue("Transition ID",
1642 assertEquals("Transtion Behavior", Transition.BEHAVIOR_LINEAR,
1652 mediaVideoItem5, 8000, Transition.BEHAVIOR_MIDDLE_FAST);
1655 assertTrue("Transition ID",
1662 assertEquals("Transtion Behavior", Transition.BEHAVIOR_MIDDLE_FAST,
1673 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_SLOW);
1676 assertTrue("Transition ID",
1683 assertEquals("Transtion Behavior", Transition.BEHAVIOR_MIDDLE_SLOW,
1689 mediaVideoItem6, 2000, Transition.BEHAVIOR_SPEED_UP - 1);
1693 assertTrue("Transition FadeBlack with Invalid behavior", flagForException);
1697 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_FAST + 1);
1701 assertTrue("Transition FadeBlack with Invalid behavior", flagForException);
1705 * To test Transition : Sliding with all behavior
1742 mediaVideoItem2, 3000, Transition.BEHAVIOR_SPEED_UP,
1746 assertTrue("Transition ID",
1753 assertEquals("Transtion Behavior", Transition.BEHAVIOR_SPEED_UP,
1755 assertEquals("Transition Sliding",
1767 Transition.BEHAVIOR_SPEED_DOWN,
1771 assertTrue("Transition ID",
1778 assertEquals("Transtion Behavior", Transition.BEHAVIOR_SPEED_DOWN,
1780 assertEquals("Transition Sliding",
1792 mediaVideoItem4, 5000, Transition.BEHAVIOR_LINEAR,
1796 assertTrue("Transition ID",
1803 assertEquals("Transtion Behavior", Transition.BEHAVIOR_LINEAR,
1805 Transition Sliding",
1816 mediaVideoItem5, 8000, Transition.BEHAVIOR_MIDDLE_FAST,
1820 assertTrue("Transition ID",
1827 assertEquals("Transtion Behavior", Transition.BEHAVIOR_MIDDLE_FAST,
1829 assertEquals("Transition Sliding",
1841 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_SLOW,
1845 assertTrue("Transition ID",
1852 assertEquals("Transtion Behavior", Transition.BEHAVIOR_MIDDLE_SLOW,
1854 assertEquals("Transition Sliding",
1861 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_SLOW,
1866 assertTrue("Transition Sliding with Invalid Direction", flagForException);
1870 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_FAST + 1,
1875 assertTrue("Transition Sliding with Invalid behavior", flagForException);
1879 mediaVideoItem6, 2000, Transition.BEHAVIOR_SPEED_UP - 1,
1884 assertTrue("Transition Sliding with Invalid behavior", flagForException);
1888 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_FAST + 1,
1893 assertTrue("Transition Sliding with Invalid behavior", flagForException);
1897 * To test Transition : Alpha with all behavior
1933 mediaVideoItem2, 3000, Transition.BEHAVIOR_SPEED_UP, maskFilename,
1937 assertTrue("Transition ID",
1944 assertEquals("Transtion Behavior", Transition.BEHAVIOR_SPEED_UP,
1946 assertTrue("Transition maskFile",
1948 assertEquals("Transition BlendingPercent", 10,
1950 assertFalse("Transition Invert", transition1And2.isInvert());
1959 mediaImageItem3, 1000, Transition.BEHAVIOR_SPEED_DOWN,
1963 assertTrue("Transition ID",
1970 assertEquals("Transtion Behavior", Transition.BEHAVIOR_SPEED_DOWN,
1972 assertTrue("Transition maskFile",
1974 assertEquals("Transition BlendingPercent", 30,
1976 assertFalse("Transition Invert", transition2And3.isInvert());
1986 mediaVideoItem4, 5000, Transition.BEHAVIOR_LINEAR, maskFilename,
1990 assertTrue("Transition ID",
1997 assertEquals("Transtion Behavior", Transition.BEHAVIOR_LINEAR,
1999 assertTrue("Transition maskFile",
2001 assertEquals("Transition BlendingPercent", 50,
2003 assertFalse("Transition Invert", transition3And4.isInvert());
2012 mediaVideoItem5, 8000, Transition.BEHAVIOR_MIDDLE_FAST,
2016 assertTrue("Transition ID",
2023 assertEquals("Transtion Behavior", Transition.BEHAVIOR_MIDDLE_FAST,
2025 assertTrue("Transition maskFile",
2027 assertEquals("Transition BlendingPercent", 70,
2029 assertTrue("Transition Invert", transition4And5.isInvert());
2039 mediaVideoItem6, 2000, Transition.BEHAVIOR_MIDDLE_SLOW,
2049 Transition.BEHAVIOR_MIDDLE_SLOW, maskFilename, 101, true);
2058 mediaVideoItem5, 2000, Transition.BEHAVIOR_SPEED_UP - 1,
2063 assertTrue("Transition FadeBlack with Invalid behavior", flagForException);
2067 mediaVideoItem5, 2000, Transition.BEHAVIOR_MIDDLE_FAST + 1,
2072 assertTrue("Transition FadeBlack with Invalid behavior", flagForException);
2437 Transition.BEHAVIOR_MIDDLE_FAST);
2451 Transition.BEHAVIOR_MIDDLE_FAST);
2458 List<Transition> transitionList = mVideoEditor.getAllTransitions();
2459 assertEquals("Transition List", 1, transitionList.size());
2461 assertEquals("Transition 2", transition2And4,
2492 assertEquals("Removing transition", transition2And4,
2638 mediaImageItem, 3000, Transition.BEHAVIOR_SPEED_UP,
2641 assertTrue("Transition maskFile",
2643 assertEquals("Transition BlendingPercent", 10,
2645 assertFalse("Transition Invert", transition1And2.isInvert());
2740 assertTrue("Added null transition ", flagForException);
2748 assertTrue("Added null transition ", flagForException);