Loading services/core/java/com/android/server/wm/BoundsAnimationController.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -128,9 +128,10 @@ public class BoundsAnimationController { mAnimationHandler = animationHandler; mAnimationHandler = animationHandler; if (animationHandler != null) { if (animationHandler != null) { // If an animation handler is provided, then ensure that it runs on the sf vsync tick // If an animation handler is provided, then ensure that it runs on the sf vsync tick handler.runWithScissors(() -> mChoreographer = Choreographer.getSfInstance(), handler.post(() -> { 0 /* timeout */); mChoreographer = Choreographer.getSfInstance(); animationHandler.setProvider(new SfVsyncFrameCallbackProvider(mChoreographer)); animationHandler.setProvider(new SfVsyncFrameCallbackProvider(mChoreographer)); }); } } } } Loading services/core/java/com/android/server/wm/DisplayContent.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -170,6 +170,7 @@ import android.view.WindowManagerPolicyConstants.PointerEventListener; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.util.ToBooleanFunction; import com.android.internal.util.ToBooleanFunction; import com.android.internal.util.function.TriConsumer; import com.android.internal.util.function.TriConsumer; import com.android.server.AnimationThread; import com.android.server.policy.WindowManagerPolicy; import com.android.server.policy.WindowManagerPolicy; import com.android.server.wm.utils.DisplayRotationUtil; import com.android.server.wm.utils.DisplayRotationUtil; import com.android.server.wm.utils.RotationCache; import com.android.server.wm.utils.RotationCache; Loading Loading @@ -862,7 +863,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo AnimationHandler animationHandler = new AnimationHandler(); AnimationHandler animationHandler = new AnimationHandler(); mBoundsAnimationController = new BoundsAnimationController(service.mContext, mBoundsAnimationController = new BoundsAnimationController(service.mContext, mAppTransition, SurfaceAnimationThread.getHandler(), animationHandler); mAppTransition, AnimationThread.getHandler(), animationHandler); if (mWmService.mInputManager != null) { if (mWmService.mInputManager != null) { final InputChannel inputChannel = mWmService.mInputManager.monitorInput("Display " final InputChannel inputChannel = mWmService.mInputManager.monitorInput("Display " Loading Loading
services/core/java/com/android/server/wm/BoundsAnimationController.java +4 −3 Original line number Original line Diff line number Diff line Loading @@ -128,9 +128,10 @@ public class BoundsAnimationController { mAnimationHandler = animationHandler; mAnimationHandler = animationHandler; if (animationHandler != null) { if (animationHandler != null) { // If an animation handler is provided, then ensure that it runs on the sf vsync tick // If an animation handler is provided, then ensure that it runs on the sf vsync tick handler.runWithScissors(() -> mChoreographer = Choreographer.getSfInstance(), handler.post(() -> { 0 /* timeout */); mChoreographer = Choreographer.getSfInstance(); animationHandler.setProvider(new SfVsyncFrameCallbackProvider(mChoreographer)); animationHandler.setProvider(new SfVsyncFrameCallbackProvider(mChoreographer)); }); } } } } Loading
services/core/java/com/android/server/wm/DisplayContent.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -170,6 +170,7 @@ import android.view.WindowManagerPolicyConstants.PointerEventListener; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.util.ToBooleanFunction; import com.android.internal.util.ToBooleanFunction; import com.android.internal.util.function.TriConsumer; import com.android.internal.util.function.TriConsumer; import com.android.server.AnimationThread; import com.android.server.policy.WindowManagerPolicy; import com.android.server.policy.WindowManagerPolicy; import com.android.server.wm.utils.DisplayRotationUtil; import com.android.server.wm.utils.DisplayRotationUtil; import com.android.server.wm.utils.RotationCache; import com.android.server.wm.utils.RotationCache; Loading Loading @@ -862,7 +863,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo AnimationHandler animationHandler = new AnimationHandler(); AnimationHandler animationHandler = new AnimationHandler(); mBoundsAnimationController = new BoundsAnimationController(service.mContext, mBoundsAnimationController = new BoundsAnimationController(service.mContext, mAppTransition, SurfaceAnimationThread.getHandler(), animationHandler); mAppTransition, AnimationThread.getHandler(), animationHandler); if (mWmService.mInputManager != null) { if (mWmService.mInputManager != null) { final InputChannel inputChannel = mWmService.mInputManager.monitorInput("Display " final InputChannel inputChannel = mWmService.mInputManager.monitorInput("Display " Loading