Home
last modified time | relevance | path

Searched refs:mAnimationCallbacks (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/animation/
DAnimationHandler.java45 private final ArrayList<AnimationFrameCallback> mAnimationCallbacks = field in AnimationHandler
55 if (mAnimationCallbacks.size() > 0) {
94 if (mAnimationCallbacks.size() == 0) { in addAnimationFrameCallback()
97 if (!mAnimationCallbacks.contains(callback)) { in addAnimationFrameCallback()
98 mAnimationCallbacks.add(callback); in addAnimationFrameCallback()
130 int id = mAnimationCallbacks.indexOf(callback); in removeCallback()
132 mAnimationCallbacks.set(id, null); in removeCallback()
139 final int size = mAnimationCallbacks.size(); in doAnimationFrame()
141 final AnimationFrameCallback callback = mAnimationCallbacks.get(i); in doAnimationFrame()
206 for (int i = mAnimationCallbacks.size() - 1; i >= 0; i--) { in autoCancelBasedOn()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedImageDrawable.java487 private ArrayList<Animatable2.AnimationCallback> mAnimationCallbacks = null; field in AnimatedImageDrawable
495 if (mAnimationCallbacks == null) { in registerAnimationCallback()
496 mAnimationCallbacks = new ArrayList<Animatable2.AnimationCallback>(); in registerAnimationCallback()
500 if (!mAnimationCallbacks.contains(callback)) { in registerAnimationCallback()
501 mAnimationCallbacks.add(callback); in registerAnimationCallback()
507 if (callback == null || mAnimationCallbacks == null in unregisterAnimationCallback()
508 || !mAnimationCallbacks.remove(callback)) { in unregisterAnimationCallback()
512 if (mAnimationCallbacks.isEmpty()) { in unregisterAnimationCallback()
521 if (mAnimationCallbacks != null) { in clearAnimationCallbacks()
522 mAnimationCallbacks = null; in clearAnimationCallbacks()
[all …]
DAnimatedVectorDrawable.java327 private ArrayList<Animatable2.AnimationCallback> mAnimationCallbacks = null; field in AnimatedVectorDrawable
997 if (mAnimationCallbacks == null) { in registerAnimationCallback()
998 mAnimationCallbacks = new ArrayList<>(); in registerAnimationCallback()
1001 mAnimationCallbacks.add(callback); in registerAnimationCallback()
1009 … ArrayList<AnimationCallback> tmpCallbacks = new ArrayList<>(mAnimationCallbacks); in registerAnimationCallback()
1018 … ArrayList<AnimationCallback> tmpCallbacks = new ArrayList<>(mAnimationCallbacks); in registerAnimationCallback()
1039 if (mAnimationCallbacks == null || callback == null) { in unregisterAnimationCallback()
1043 boolean removed = mAnimationCallbacks.remove(callback); in unregisterAnimationCallback()
1046 if (mAnimationCallbacks.size() == 0) { in unregisterAnimationCallback()
1055 if (mAnimationCallbacks == null) { in clearAnimationCallbacks()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentsAnimationControllerTest.java95 @Mock RecentsAnimationController.RecentsAnimationCallbacks mAnimationCallbacks; field in RecentsAnimationControllerTest
105 mController = spy(new RecentsAnimationController(mWm, mMockRunner, mAnimationCallbacks, in setUp()
261 verify(mAnimationCallbacks).onAnimationFinished(REORDER_KEEP_IN_PLACE, false); in testDeferCancelAnimation()
288 verify(mAnimationCallbacks).onAnimationFinished(REORDER_KEEP_IN_PLACE, false); in testDeferCancelAnimationWithScreenShot()
329 verify(mAnimationCallbacks).onAnimationFinished(REORDER_KEEP_IN_PLACE, false); in testBinderDiedAfterCancelWithDeferredScreenshot()
688 verify(mAnimationCallbacks).onAnimationFinished(REORDER_MOVE_TO_TOP, false); in testCancelForRotation_ReorderToTop()
703 verify(mAnimationCallbacks).onAnimationFinished(REORDER_MOVE_TO_ORIGINAL_POSITION, false); in testCancelForRotation_ReorderToOriginalPosition()
726 verify(mAnimationCallbacks).onAnimationFinished(REORDER_MOVE_TO_TOP, false); in testCancelForStartHome()
750 mController = new RecentsAnimationController(mWm, mMockRunner, mAnimationCallbacks, in startRecentsInDifferentRotation()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt741 Landroid/animation/AnimationHandler;->mAnimationCallbacks:Ljava/util/ArrayList;
19393 Landroid/graphics/drawable/AnimatedImageDrawable;->mAnimationCallbacks:Ljava/util/ArrayList;
19615 Landroid/graphics/drawable/AnimatedVectorDrawable;->mAnimationCallbacks:Ljava/util/ArrayList;