Home
last modified time | relevance | path

Searched refs:Transition (Results 1 – 25 of 126) sorted by relevance

123456

/frameworks/base/core/java/android/transition/
DTransitionManager.java69 private static Transition sDefaultTransition = new AutoTransition();
73 ArrayMap<Scene, Transition> mSceneTransitions = new ArrayMap<Scene, Transition>();
74 ArrayMap<Scene, ArrayMap<Scene, Transition>> mScenePairTransitions =
75 new ArrayMap<Scene, ArrayMap<Scene, Transition>>();
76 private static ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>
78 new ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>();
91 public void setDefaultTransition(Transition transition) { in setDefaultTransition()
104 public static Transition getDefaultTransition() { in getDefaultTransition()
117 public void setTransition(Scene scene, Transition transition) { in setTransition()
133 public void setTransition(Scene fromScene, Scene toScene, Transition transition) { in setTransition()
[all …]
DTransitionListenerAdapter.java25 public abstract class TransitionListenerAdapter implements Transition.TransitionListener {
31 public void onTransitionStart(Transition transition) { in onTransitionStart()
38 public void onTransitionEnd(Transition transition) { in onTransitionEnd()
45 public void onTransitionCancel(Transition transition) { in onTransitionCancel()
52 public void onTransitionPause(Transition transition) { in onTransitionPause()
59 public void onTransitionResume(Transition transition) { in onTransitionResume()
DTransitionSet.java55 public class TransitionSet extends Transition {
57 ArrayList<Transition> mTransitions = new ArrayList<Transition>();
142 public TransitionSet addTransition(Transition transition) { in addTransition()
171 public Transition getTransitionAt(int index) { in getTransitionAt()
277 public Transition excludeTarget(View target, boolean exclude) { in excludeTarget()
285 public Transition excludeTarget(String targetName, boolean exclude) { in excludeTarget()
293 public Transition excludeTarget(int targetId, boolean exclude) { in excludeTarget()
301 public Transition excludeTarget(Class type, boolean exclude) { in excludeTarget()
327 public TransitionSet removeTransition(Transition transition) { in removeTransition()
340 for (Transition childTransition : mTransitions) { in setupStartEndListeners()
[all …]
DTranslationAnimationCreator.java23 import android.transition.Transition.TransitionListener;
53 Transition transition) { in createAnimation()
141 public void onTransitionStart(Transition transition) { in onTransitionStart()
145 public void onTransitionEnd(Transition transition) { in onTransitionEnd()
152 public void onTransitionCancel(Transition transition) { in onTransitionCancel()
156 public void onTransitionPause(Transition transition) { in onTransitionPause()
160 public void onTransitionResume(Transition transition) { in onTransitionResume()
DTransition.java120 public abstract class Transition implements Cloneable { class
257 public Transition() {} in Transition() method in Transition
268 public Transition(Context context, AttributeSet attrs) { in Transition() method in Transition
270 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.Transition); in Transition()
297 matches[index] = Transition.MATCH_ID; in parseMatchOrder()
299 matches[index] = Transition.MATCH_INSTANCE; in parseMatchOrder()
301 matches[index] = Transition.MATCH_NAME; in parseMatchOrder()
303 matches[index] = Transition.MATCH_NAME; in parseMatchOrder()
305 matches[index] = Transition.MATCH_ITEM_ID; in parseMatchOrder()
329 public Transition setDuration(long duration) { in setDuration()
[all …]
/frameworks/support/transition/src/android/support/transition/
DTransitionManager.java82 private static Transition sDefaultTransition = new AutoTransition();
84 private ArrayMap<Scene, Transition> mSceneTransitions = new ArrayMap<>();
85 private ArrayMap<Scene, ArrayMap<Scene, Transition>> mScenePairTransitions = new ArrayMap<>();
86 private static ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>
99 public void setTransition(@NonNull Scene scene, @Nullable Transition transition) { in setTransition()
116 @Nullable Transition transition) { in setTransition()
117 ArrayMap<Scene, Transition> sceneTransitionMap = mScenePairTransitions.get(toScene); in setTransition()
135 private Transition getTransition(Scene scene) { in getTransition()
136 Transition transition; in getTransition()
142 ArrayMap<Scene, Transition> sceneTransitionMap = mScenePairTransitions in getTransition()
[all …]
DTransitionListenerAdapter.java27 public class TransitionListenerAdapter implements Transition.TransitionListener {
30 public void onTransitionStart(@NonNull Transition transition) { in onTransitionStart()
34 public void onTransitionEnd(@NonNull Transition transition) { in onTransitionEnd()
38 public void onTransitionCancel(@NonNull Transition transition) { in onTransitionCancel()
42 public void onTransitionPause(@NonNull Transition transition) { in onTransitionPause()
46 public void onTransitionResume(@NonNull Transition transition) { in onTransitionResume()
DTransitionSet.java60 public class TransitionSet extends Transition {
62 private ArrayList<Transition> mTransitions = new ArrayList<>();
150 public TransitionSet addTransition(@NonNull Transition transition) { in addTransition()
177 public Transition getTransitionAt(int index) { in getTransitionAt()
296 public Transition excludeTarget(@NonNull View target, boolean exclude) { in excludeTarget()
305 public Transition excludeTarget(@NonNull String targetName, boolean exclude) { in excludeTarget()
314 public Transition excludeTarget(int targetId, boolean exclude) { in excludeTarget()
323 public Transition excludeTarget(@NonNull Class type, boolean exclude) { in excludeTarget()
351 public TransitionSet removeTransition(@NonNull Transition transition) { in removeTransition()
364 for (Transition childTransition : mTransitions) { in setupStartEndListeners()
[all …]
DTransition.java118 public abstract class Transition implements Cloneable { class
203 private static ThreadLocal<ArrayMap<Animator, Transition.AnimationInfo>> sRunningAnimators =
233 private ArrayList<Transition.TransitionListener> mListeners = null;
260 public Transition() { in Transition() method in Transition
272 public Transition(Context context, AttributeSet attrs) { in Transition() method in Transition
276 Styleable.Transition.DURATION, -1); in Transition()
281 Styleable.Transition.START_DELAY, -1); in Transition()
286 Styleable.Transition.INTERPOLATOR, 0); in Transition()
291 Styleable.Transition.MATCH_ORDER); in Transition()
307 matches[index] = Transition.MATCH_ID; in parseMatchOrder()
[all …]
/frameworks/support/fragment/java/android/support/v4/app/
DFragmentTransitionCompat21.java21 import android.transition.Transition;
38 Transition copy = null; in cloneTransition()
40 copy = ((Transition) transition).clone(); in cloneTransition()
54 transitionSet.addTransition((Transition) transition); in wrapTransitionInSet()
122 Transition transition = (Transition) transitionObj; in setEpicenter()
126 transition.setEpicenterCallback(new Transition.EpicenterCallback() { in setEpicenter()
128 public Rect onGetEpicenter(Transition transition) { in setEpicenter()
154 Transition transition = (Transition) transitionObj; in addTargets()
162 Transition child = set.getTransitionAt(i); in addTargets()
180 private static boolean hasSimpleTarget(Transition transition) { in hasSimpleTarget()
[all …]
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/
DTransitionHelperKitkat.java24 import android.transition.Transition;
55 ((TransitionSet) transitionSet).addTransition((Transition) transition); in addTransition()
157 ((Transition)transition).setStartDelay(startDelay); in setStartDelay()
161 ((Transition)transition).setDuration(duration); in setDuration()
165 ((Transition) transition).excludeTarget(targetId, exclude); in exclude()
169 ((Transition) transition).excludeTarget(targetView, exclude); in exclude()
173 ((Transition) transition).excludeChildren(targetId, exclude); in excludeChildren()
177 ((Transition) transition).excludeChildren(targetView, exclude); in excludeChildren()
181 ((Transition) transition).addTarget(targetId); in include()
185 ((Transition) transition).addTarget(targetView); in include()
[all …]
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
DTransitionHelperApi21.java21 import android.transition.Transition;
35 fragment.setEnterTransition((Transition)transition); in setEnterTransition()
39 fragment.setExitTransition((Transition)transition); in setExitTransition()
44 fragment.setSharedElementEnterTransition((Transition)transition); in setSharedElementEnterTransition()
57 window.setSharedElementEnterTransition((Transition) transition); in setSharedElementEnterTransition()
65 window.setSharedElementReturnTransition((Transition) transition); in setSharedElementReturnTransition()
81 window.setEnterTransition((Transition) transition); in setEnterTransition()
89 window.setReturnTransition((Transition) transition); in setReturnTransition()
123 Transition transition = (Transition) transitionObject; in beginDelayedTransition()
133 Transition transition = (Transition) transitionObject; in setEpicenterCallback()
[all …]
DTranslationAnimationCreator.java13 import android.transition.Transition;
14 import android.transition.Transition.TransitionListener;
46 Transition transition) { in createAnimation()
134 public void onTransitionStart(Transition transition) { in onTransitionStart()
138 public void onTransitionEnd(Transition transition) { in onTransitionEnd()
144 public void onTransitionCancel(Transition transition) { in onTransitionCancel()
148 public void onTransitionPause(Transition transition) { in onTransitionPause()
152 public void onTransitionResume(Transition transition) { in onTransitionResume()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/
DStateMachine.java82 static class Transition { class in StateMachine
89 Transition(State fromState, State toState, Event event) { in Transition() method in StateMachine.Transition
99 Transition(State fromState, State toState) { in Transition() method in StateMachine.Transition
106 Transition(State fromState, State toState, Condition condition) { in Transition() method in StateMachine.Transition
141 ArrayList<Transition> mIncomings;
142 ArrayList<Transition> mOutgoings;
169 void addIncoming(Transition t) { in addIncoming()
176 void addOutgoing(Transition t) { in addOutgoing()
194 for (Transition t: mIncomings) { in checkPreCondition()
201 for (Transition t: mIncomings) { in checkPreCondition()
[all …]
/frameworks/support/transition/tests/src/android/support/transition/
DFadeTest.java124 final Transition.TransitionListener listenerOut = mock(Transition.TransitionListener.class); in testFadeOutThenIn()
127 verify(listenerOut, timeout(3000)).onTransitionStart(any(Transition.class)); in testFadeOutThenIn()
135 final Transition.TransitionListener listenerIn = mock(Transition.TransitionListener.class); in testFadeOutThenIn()
138 verify(listenerOut, timeout(3000)).onTransitionPause(any(Transition.class)); in testFadeOutThenIn()
139 verify(listenerIn, timeout(3000)).onTransitionStart(any(Transition.class)); in testFadeOutThenIn()
146 verify(listenerIn, timeout(3000)).onTransitionEnd(any(Transition.class)); in testFadeOutThenIn()
160 final Transition.TransitionListener listenerIn = mock(Transition.TransitionListener.class); in testFadeInThenOut()
163 verify(listenerIn, timeout(3000)).onTransitionStart(any(Transition.class)); in testFadeInThenOut()
171 final Transition.TransitionListener listenerOut = mock(Transition.TransitionListener.class); in testFadeInThenOut()
174 verify(listenerIn, timeout(3000)).onTransitionPause(any(Transition.class)); in testFadeInThenOut()
[all …]
DTransitionInflaterTest.java47 Transition transition = inflater.inflateTransition(R.transition.transition_constructors); in testInflationConstructors()
80 private void verifyFadeProperties(Transition transition) { in verifyFadeProperties()
86 private void verifyChangeBoundsProperties(Transition transition) { in verifyChangeBoundsProperties()
92 private void verifySlideProperties(Transition transition) { in verifySlideProperties()
98 private void verifyExplodeProperties(Transition transition) { in verifyExplodeProperties()
104 private void verifyChangeImageTransformProperties(Transition transition) { in verifyChangeImageTransformProperties()
108 private void verifyChangeTransformProperties(Transition transition) { in verifyChangeTransformProperties()
115 private void verifyChangeClipBoundsProperties(Transition transition) { in verifyChangeClipBoundsProperties()
119 private void verifyAutoTransitionProperties(Transition transition) { in verifyAutoTransitionProperties()
123 private void verifyChangeScrollProperties(Transition transition) { in verifyChangeScrollProperties()
[all …]
DTransitionTest.java73 Transition transition = new EmptyTransition(); in testName()
80 Transition transition = new EmptyTransition(); in testDuration()
88 Transition transition = new EmptyTransition(); in testInterpolator()
96 Transition transition = new EmptyTransition(); in testStartDelay()
104 Transition transition = new EmptyTransition(); in testTargetIds()
130 Transition transition = new EmptyTransition(); in testTargetView()
146 Transition transition = new EmptyTransition(); in testTargetName()
162 Transition transition = new EmptyTransition(); in testTargetType()
179 Transition transition = new EmptyTransition(); in testExcludeTargetId()
194 Transition transition = new EmptyTransition(); in testExcludeTargetView()
[all …]
DTransitionManagerTest.java99 Transition transition = new AutoTransition(); in testGo_transitionListenerStart()
116 Transition transition = new AutoTransition(); in testGo_transitionListenerEnd()
143 final Transition transition = new AutoTransition(); in testEndTransitions()
146 final Transition.TransitionListener listener = mock(Transition.TransitionListener.class); in testEndTransitions()
154 verify(listener, timeout(3000)).onTransitionStart(any(Transition.class)); in testEndTransitions()
161 verify(listener, timeout(3000)).onTransitionEnd(any(Transition.class)); in testEndTransitions()
167 final Transition transition = new AutoTransition(); in testEndTransitionsBeforeStarted()
169 final Transition.TransitionListener listener = mock(Transition.TransitionListener.class); in testEndTransitionsBeforeStarted()
179 verify(listener, never()).onTransitionStart(any(Transition.class)); in testEndTransitionsBeforeStarted()
180 verify(listener, never()).onTransitionEnd(any(Transition.class)); in testEndTransitionsBeforeStarted()
DSyncTransitionListener.java26 class SyncTransitionListener implements Transition.TransitionListener {
54 public void onTransitionStart(@NonNull Transition transition) { in onTransitionStart()
61 public void onTransitionEnd(@NonNull Transition transition) { in onTransitionEnd()
68 public void onTransitionCancel(@NonNull Transition transition) { in onTransitionCancel()
75 public void onTransitionPause(@NonNull Transition transition) { in onTransitionPause()
82 public void onTransitionResume(@NonNull Transition transition) { in onTransitionResume()
DBaseTransitionTest.java40 Transition mTransition;
41 Transition.TransitionListener mListener;
50 mListener = mock(Transition.TransitionListener.class); in setUp()
54 Transition createTransition() { in createTransition()
59 verify(mListener, timeout(3000)).onTransitionStart(any(Transition.class)); in waitForStart()
63 verify(mListener, timeout(3000)).onTransitionEnd(any(Transition.class)); in waitForEnd()
108 mListener = mock(Transition.TransitionListener.class); in resetListener()
DSlideEdgeTest.java69 final Transition.TransitionListener listener = in testSlideOut()
70 mock(Transition.TransitionListener.class); in testSlideOut()
95 verify(listener, timeout(1000)).onTransitionStart(any(Transition.class)); in testSlideOut()
96 verify(listener, never()).onTransitionEnd(any(Transition.class)); in testSlideOut()
135 verify(listener, timeout(1000)).onTransitionEnd(any(Transition.class)); in testSlideOut()
152 final Transition.TransitionListener listener = in testSlideIn()
153 mock(Transition.TransitionListener.class); in testSlideIn()
189 verify(listener, timeout(1000)).onTransitionStart(any(Transition.class)); in testSlideIn()
191 verify(listener, never()).onTransitionEnd(any(Transition.class)); in testSlideIn()
230 verify(listener, timeout(1000)).onTransitionEnd(any(Transition.class)); in testSlideIn()
/frameworks/base/core/java/android/app/
DFragmentTransition.java20 import android.transition.Transition;
209 Transition enterTransition = getEnterTransition(inFragment, inIsPop); in configureTransitionsReordered()
210 Transition exitTransition = getExitTransition(outFragment, outIsPop); in configureTransitionsReordered()
229 Transition transition = mergeTransitions(enterTransition, exitTransition, in configureTransitionsReordered()
279 Transition enterTransition = getEnterTransition(inFragment, inIsPop); in configureTransitionsOrdered()
280 Transition exitTransition = getExitTransition(outFragment, outIsPop); in configureTransitionsOrdered()
307 Transition transition = mergeTransitions(enterTransition, exitTransition, in configureTransitionsOrdered()
328 private static void replaceHide(Transition exitTransition, Fragment exitingFragment, in replaceHide()
339 public void onTransitionEnd(Transition transition) { in replaceHide()
368 final Transition enterTransition, final ArrayList<View> enteringViews, in scheduleTargetChange()
[all …]
DExitTransitionCoordinator.java33 import android.transition.Transition;
164 Transition transition = getSharedElementExitTransition(); in startSharedElementExit()
167 public void onTransitionEnd(Transition transition) { in startSharedElementExit()
280 Transition transition = getExitTransition(); in startExitTransition()
320 private Transition getExitTransition() { in getExitTransition()
321 Transition viewsTransition = null; in getExitTransition()
335 public void onTransitionEnd(Transition transition) { in getExitTransition()
351 private Transition getSharedElementExitTransition() { in getSharedElementExitTransition()
352 Transition sharedElementTransition = null; in getSharedElementExitTransition()
361 public void onTransitionEnd(Transition transition) { in getSharedElementExitTransition()
[all …]
DEnterTransitionCoordinator.java28 import android.transition.Transition;
64 private Transition mEnterViewsTransition;
126 public Transition getEnterViewsTransition() { in getEnterViewsTransition()
135 Transition viewsTransition = getViewsTransition(); in viewsReady()
356 protected Transition getViewsTransition() { in getViewsTransition()
368 protected Transition getSharedElementTransition() { in getSharedElementTransition()
409 Transition transition = beginTransition(decorView, startEnterTransition, in startSharedElementTransition()
486 private Transition beginTransition(ViewGroup decorView, boolean startEnterTransition, in beginTransition()
488 Transition sharedElementTransition = null; in beginTransition()
499 public void onTransitionStart(Transition transition) { in beginTransition()
[all …]
/frameworks/support/fragment/tests/java/android/support/v4/app/
DTransitionFragment.java28 import android.transition.Transition;
44 private Transition.TransitionListener mListener = mock(Transition.TransitionListener.class);
71 verify(mListener, within(300)).onTransitionEnd((Transition) any()); in waitForTransition()
77 verify(mListener, never()).onTransitionStart((Transition) any()); in waitForNoTransition()

123456