Home
last modified time | relevance | path

Searched refs:AnimationHandler (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/android/animation/
DAnimatorTestRulePrecisionTest.kt61 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator()
66 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator()
71 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator()
76 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(0) in testSingleAnimator()
86 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testDelayedAnimator()
91 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testDelayedAnimator()
96 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testDelayedAnimator()
101 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testDelayedAnimator()
106 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(0) in testDelayedAnimator()
119 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(2) in testTwoAnimators()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/android/animation/
DPlatformAnimatorIsolationRule.kt32 private class IsolatingAnimationHandler(ruleThread: Thread) : AnimationHandler() {
55 val originalHandler = AnimationHandler.setTestHandler(isolationHandler) in addOneShotCommitCallback()
59 val handlerAtEnd = AnimationHandler.setTestHandler(originalHandler) in addOneShotCommitCallback()
73 fun isIsolatingHandler(handler: AnimationHandler?): Boolean =
DAnimatorIsolationWorkaroundRule.kt36 private inner class IsolationWorkaroundHandler(ruleThread: Thread) : AnimationHandler() {
85 val prevInstance = AnimationHandler.setTestHandler(workaroundHandler) in apply()
92 val count = AnimationHandler.getAnimationCount() in apply()
97 val handlerAtEnd = AnimationHandler.setTestHandler(prevInstance) in apply()
DAnimatorTestRule.java19 import android.animation.AnimationHandler.AnimationFrameCallback;
117 final AnimationHandler objAtStart = AnimationHandler.setTestHandler(testHandler); in apply()
127 AnimationHandler objAtEnd = AnimationHandler.setTestHandler(objAtStart); in apply()
300 private class TestHandler extends AnimationHandler {
331 private class TestProvider implements AnimationHandler.AnimationFrameCallbackProvider {
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
DAnimatedVectorDrawable_VectorDrawableAnimatorUI_Delegate.java21 import android.animation.AnimationHandler;
40 AnimationHandler handler = AnimationHandler.getInstance(); in onDraw()
/frameworks/base/core/java/android/animation/
DAnimationHandler.java41 public class AnimationHandler { class
94 public final static ThreadLocal<AnimationHandler> sAnimatorHandler = new ThreadLocal<>();
95 private static AnimationHandler sTestHandler = null;
98 public static AnimationHandler getInstance() { in getInstance()
103 sAnimatorHandler.set(new AnimationHandler()); in getInstance()
113 public static @Nullable AnimationHandler setTestHandler(@Nullable AnimationHandler handler) { in setTestHandler()
114 AnimationHandler oldHandler = sTestHandler; in setTestHandler()
388 AnimationHandler handler = sTestHandler; in getAnimationCount()
DValueAnimator.java80 public class ValueAnimator extends Animator implements AnimationHandler.AnimationFrameCallback {
279 private AnimationHandler mAnimationHandler;
907 return AnimationHandler.getInstance().getFrameDelay(); in getFrameDelay()
927 AnimationHandler.getInstance().setFrameDelay(frameDelay); in setFrameDelay()
1712 return AnimationHandler.getAnimationCount(); in getCurrentAnimationsCount()
1769 public AnimationHandler getAnimationHandler() { in getAnimationHandler()
1770 return mAnimationHandler != null ? mAnimationHandler : AnimationHandler.getInstance(); in getAnimationHandler()
1778 public void setAnimationHandler(@Nullable AnimationHandler animationHandler) { in setAnimationHandler()
DAnimator.java122 AnimationHandler.setAnimatorPausingEnabled(enable); in setAnimatorPausingEnabled()
123 AnimationHandler.setOverrideAnimatorPausingSystemProperty(!enable); in setAnimatorPausingEnabled()
DObjectAnimator.java836 AnimationHandler.getInstance().autoCancelBasedOn(this); in start()
849 boolean shouldAutoCancel(AnimationHandler.AnimationFrameCallback anim) { in shouldAutoCancel()
DAnimatorSet.java63 public final class AnimatorSet extends Animator implements AnimationHandler.AnimationFrameCallback {
1454 AnimationHandler handler = AnimationHandler.getInstance();
1462 AnimationHandler handler = AnimationHandler.getInstance();
/frameworks/base/packages/SystemUI/tests/utils/src/androidx/core/animation/
DAndroidXAnimatorIsolationRule.kt30 private class IsolatingAnimationHandler(ruleThread: Thread) : AnimationHandler(null) {
51 AnimationHandler.setTestHandler(isolationHandler) in addAnimationFrameCallback()
55 AnimationHandler.setTestHandler(null) in addAnimationFrameCallback()
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/
DDynamicAnimation.java19 import android.animation.AnimationHandler;
44 implements AnimationHandler.AnimationFrameCallback {
330 private AnimationHandler mAnimationHandler;
761 public AnimationHandler getAnimationHandler() { in getAnimationHandler()
762 return mAnimationHandler != null ? mAnimationHandler : AnimationHandler.getInstance(); in getAnimationHandler()
/frameworks/base/services/core/java/com/android/server/wm/
DSurfaceAnimationRunner.java24 import android.animation.AnimationHandler;
25 import android.animation.AnimationHandler.AnimationFrameCallbackProvider;
88 private final AnimationHandler mAnimationHandler;
137 mAnimationHandler = new AnimationHandler(); in SurfaceAnimationRunner()
579 public AnimationHandler getAnimationHandler() { in getAnimationHandler()
DBackNavigationController.java84 private AnimationHandler mAnimationHandler;
97 private AnimationHandler.ScheduleAnimationBuilder mPendingAnimationBuilder;
348 final AnimationHandler.ScheduleAnimationBuilder builder = in startBackNavigation()
568 private void scheduleAnimation(@NonNull AnimationHandler.ScheduleAnimationBuilder builder) { in scheduleAnimation()
926 static class AnimationHandler { class in BackNavigationController
941 AnimationHandler(WindowManagerService wms) { in AnimationHandler() method in BackNavigationController.AnimationHandler
1817 final AnimationHandler ah = mAnimationHandler;
1819 || (ah.mSwitchType != AnimationHandler.TASK_SWITCH
1820 && ah.mSwitchType != AnimationHandler.ACTIVITY_SWITCH)) {
1869 mAnimationHandler = new AnimationHandler(wm);
/frameworks/base/core/java/com/android/internal/graphics/
DSfVsyncFrameCallbackProvider.java19 import android.animation.AnimationHandler.AnimationFrameCallbackProvider;
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java35 import android.animation.AnimationHandler;
290 AnimationHandler.sAnimatorHandler = mContext.getAnimationHandlerThreadLocal(); in setUp()
489 AnimationHandler animationHandler = in dispose()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/util/
DKeyguardTransitionRunner.kt19 import android.animation.AnimationHandler.AnimationFrameCallbackProvider
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipAnimationController.java23 import android.animation.AnimationHandler;
116 private final ThreadLocal<AnimationHandler> mSfAnimationHandlerThreadLocal =
118 AnimationHandler handler = new AnimationHandler();
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DBackNavigationControllerTests.java821 final BackNavigationController.AnimationHandler animationHandler =
822 Mockito.spy(new BackNavigationController.AnimationHandler(mWm));
828 private void testWithConfig(BackNavigationController.AnimationHandler animationHandler,
835 final BackNavigationController.AnimationHandler.ScheduleAnimationBuilder toHomeBuilder =
855 final BackNavigationController.AnimationHandler.ScheduleAnimationBuilder toActivityBuilder =
DSurfaceAnimationRunnerTest.java32 import android.animation.AnimationHandler.AnimationFrameCallbackProvider;
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipTransition.java39 import android.animation.AnimationHandler;
97 private final ThreadLocal<AnimationHandler> mSfAnimationHandlerThreadLocal =
99 AnimationHandler handler = new AnimationHandler();
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java36 import android.animation.AnimationHandler;
1668 AnimationHandler.requestAnimatorsEnabled(visible, this); in doVisibilityChanged()
1725 AnimationHandler.requestAnimatorsEnabled(visible, this); in reportVisibility()
2335 AnimationHandler.removeRequestor(this); in detach()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java43 import android.animation.AnimationHandler;
217 private final ThreadLocal<AnimationHandler> mAnimationHandlerThreadLocal = new ThreadLocal<>();
2335 public ThreadLocal<AnimationHandler> getAnimationHandlerThreadLocal() { in getAnimationHandlerThreadLocal()
/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java565 AnimationHandler.getInstance().setProvider(provider);
1225 class MyFrameCallbackProvider implements AnimationHandler.AnimationFrameCallbackProvider {
/frameworks/base/core/java/android/view/
DViewRootImpl.java136 import android.animation.AnimationHandler;
1755 AnimationHandler.requestAnimatorsEnabled(mAppVisible, this);
2205 AnimationHandler.requestAnimatorsEnabled(mAppVisible, this);
9880 AnimationHandler.removeRequestor(this); in doDie()

12