Home | History | Annotate | Download | only in widgets

Lines Matching defs:Transition

32 import android.media.videoeditor.Transition;
79 // Transition duration limits
320 * The transition action mode handler.
325 public TransitionActionModeCallback(MovieTransition transition) {
326 mTransition = transition;
557 // Invalidate all progress in case the transition generation or
617 * Clears existing media or transition items and adds all given media items.
653 if (cc > 5) { // There is a previous view (transition or media item)
656 // Do not add transition if it already exists
706 // Remove the transition following the media item
711 // If we have a transition at the beginning remove it
728 if (insertViewIndex > 1) { // There is a previous view (transition or media item)
731 // Do not add transition if it already exists
815 * @param transition The transition inserted at the removal position
820 public View removeMediaItem(String mediaItemId, MovieTransition transition) {
831 // Remove the before transition
835 // Remove the transition view
841 // Remove the after transition view
845 // Remove the transition view
853 if (transition != null) {
854 addTransition(transition,
877 * Creates a new transition.
879 * @param afterMediaItemId Insert the transition after this media item id
880 * @param transitionType The transition type
881 * @param transitionDurationMs The transition duration in ms
901 afterMediaItemId, id, transitionDurationMs, Transition.BEHAVIOR_LINEAR,
908 afterMediaItemId, id, transitionDurationMs, Transition.BEHAVIOR_LINEAR,
915 afterMediaItemId, id, transitionDurationMs, Transition.BEHAVIOR_LINEAR);
921 afterMediaItemId, id, transitionDurationMs, Transition.BEHAVIOR_LINEAR);
927 afterMediaItemId, id, transitionDurationMs, Transition.BEHAVIOR_LINEAR,
934 afterMediaItemId, id, transitionDurationMs, Transition.BEHAVIOR_LINEAR,
941 afterMediaItemId, id, transitionDurationMs, Transition.BEHAVIOR_LINEAR,
948 afterMediaItemId, id, transitionDurationMs, Transition.BEHAVIOR_LINEAR,
964 * Edits a transition.
966 * @param afterMediaItemId Insert the transition after this media item id
967 * @param transitionId The transition id
968 * @param transitionType The transition type
969 * @param transitionDurationMs The transition duration in ms
973 final MovieTransition transition = mProject.getTransition(transitionId);
974 if (transition == null) {
979 if (transition.getType() != transitionType) {
980 // Remove the transition and add it again
983 } else if (transition.getAppDuration() != transitionDurationMs) {
984 transition.setAppDuration(transitionDurationMs);
995 * Adds a new transition after the specified media id. This method assumes that a
996 * transition does not exist at the insertion point.
998 * @param transition The transition to be added
1001 * @return The transition view that was added, {@code null} upon errors.
1003 public View addTransition(MovieTransition transition, String afterMediaItemId) {
1031 transitionView.setTag(transition);
1040 // If this transition was added by the user invalidate the menu item
1049 * Updates a transition.
1051 * @param transitionId The transition id
1059 * Removes a transition with the specified id.
1061 * @param transitionId The transition id
1068 final MovieTransition transition = (MovieTransition)tag;
1069 if (transitionId.equals(transition.getId())) {
1076 // If this transition was removed by the user invalidate the menu item
1125 * A transition is being encoded.
1127 * @param transitionId The transition id
1133 // Display the progress while generating the transition
1230 * Sets the transition thumbnails.
1232 * @param transitionId The transition id
1242 final MovieTransition transition = (MovieTransition)tag;
1243 if (transitionId.equals(transition.getId())) {
1269 // Top and bottom position are fixed for media item views. For transition views,
1296 } else { // Transition view.
1335 * or a transition view
1351 } else { // Transition
1352 final MovieTransition transition = (MovieTransition) tag;
1353 durationMs = transition.getAppDuration();
1500 final MovieTransition transition = mProject.getTransition(
1502 if (transition == null) {
1522 transition.getId());
1745 // Returns the begin time of a media item (exclude transition).
1772 // Returns the end time of a media item (exclude transition)
1941 * Picks a transition.
1945 * @return true if the transition can be inserted
1948 // Check if the transition would be too short
1970 * Edits a transition.
1972 * @param transition The transition
1974 private void editTransition(MovieTransition transition) {
1975 final MovieMediaItem afterMediaItem = mProject.getPreviousMediaItem(transition);
1980 intent.putExtra(TransitionsActivity.PARAM_TRANSITION_ID, transition.getId());
1981 intent.putExtra(TransitionsActivity.PARAM_TRANSITION_TYPE, transition.getType());
1983 intent.putExtra(TransitionsActivity.PARAM_DEFAULT_DURATION, transition.getAppDuration());
2035 * Finds the transition view with the specified id.
2037 * @param transitionId The transition id
2039 * @return The found transition view; null if not found
2047 final MovieTransition transition = (MovieTransition)tag;
2048 if (transitionId.equals(transition.getId())) {
2058 * Removes a transition.
2060 * @param transitionId The id of the transition to be removed
2067 final MovieTransition transition = (MovieTransition)tag;
2068 if (transitionId.equals(transition.getId())) {
2075 // If this transition was removed by the user invalidate the menu item
2086 * Removes all media item and transition views but leave the beginning, end views, and handles.
2092 // Media item view or transition view is associated with a media item or transition
2094 // media item view or transition view.
2108 * Computes the transition duration.
2110 * @param afterMediaItem The position of the transition
2112 * @return The transition duration
2132 * Computes the maximum transition duration.
2134 * @param afterMediaItem The position of the transition
2136 * @return The transition duration
2654 * the ones in audio track layout and transition layout.