/frameworks/base/packages/SystemUI/tests/src/android/animation/ |
D | AnimatorTestRulePrecisionTest.kt | 61 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/ |
D | PlatformAnimatorIsolationRule.kt | 32 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 =
|
D | AnimatorIsolationWorkaroundRule.kt | 36 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()
|
D | AnimatorTestRule.java | 19 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/ |
D | AnimatedVectorDrawable_VectorDrawableAnimatorUI_Delegate.java | 21 import android.animation.AnimationHandler; 40 AnimationHandler handler = AnimationHandler.getInstance(); in onDraw()
|
/frameworks/base/core/java/android/animation/ |
D | AnimationHandler.java | 41 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()
|
D | ValueAnimator.java | 80 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()
|
D | Animator.java | 122 AnimationHandler.setAnimatorPausingEnabled(enable); in setAnimatorPausingEnabled() 123 AnimationHandler.setOverrideAnimatorPausingSystemProperty(!enable); in setAnimatorPausingEnabled()
|
D | ObjectAnimator.java | 836 AnimationHandler.getInstance().autoCancelBasedOn(this); in start() 849 boolean shouldAutoCancel(AnimationHandler.AnimationFrameCallback anim) { in shouldAutoCancel()
|
D | AnimatorSet.java | 63 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/ |
D | AndroidXAnimatorIsolationRule.kt | 30 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/ |
D | DynamicAnimation.java | 19 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/ |
D | SurfaceAnimationRunner.java | 24 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()
|
D | BackNavigationController.java | 84 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/ |
D | SfVsyncFrameCallbackProvider.java | 19 import android.animation.AnimationHandler.AnimationFrameCallbackProvider;
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 35 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/ |
D | KeyguardTransitionRunner.kt | 19 import android.animation.AnimationHandler.AnimationFrameCallbackProvider
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipAnimationController.java | 23 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/ |
D | BackNavigationControllerTests.java | 821 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 =
|
D | SurfaceAnimationRunnerTest.java | 32 import android.animation.AnimationHandler.AnimationFrameCallbackProvider;
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | TvPipTransition.java | 39 import android.animation.AnimationHandler; 97 private final ThreadLocal<AnimationHandler> mSfAnimationHandlerThreadLocal = 99 AnimationHandler handler = new AnimationHandler();
|
/frameworks/base/core/java/android/service/wallpaper/ |
D | WallpaperService.java | 36 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/ |
D | BridgeContext.java | 43 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/ |
D | ValueAnimatorTests.java | 565 AnimationHandler.getInstance().setProvider(provider); 1225 class MyFrameCallbackProvider implements AnimationHandler.AnimationFrameCallbackProvider {
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 136 import android.animation.AnimationHandler; 1755 AnimationHandler.requestAnimatorsEnabled(mAppVisible, this); 2205 AnimationHandler.requestAnimatorsEnabled(mAppVisible, this); 9880 AnimationHandler.removeRequestor(this); in doDie()
|