/aosp14/frameworks/base/core/java/com/android/internal/graphics/ |
H A D | SfVsyncFrameCallbackProvider.java | 30 private final Choreographer mChoreographer; field in SfVsyncFrameCallbackProvider 33 mChoreographer = Choreographer.getSfInstance(); in SfVsyncFrameCallbackProvider() 37 mChoreographer = choreographer; in SfVsyncFrameCallbackProvider() 42 mChoreographer.postFrameCallback(callback); in postFrameCallback() 47 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null); in postCommitCallback() 52 return mChoreographer.getFrameTime(); in getFrameTime()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/jank/ |
H A D | FrameTrackerTest.java | 83 private ChoreographerWrapper mChoreographer; field in FrameTrackerTest 114 mChoreographer = mock(ChoreographerWrapper.class); in setup() 152 when(mChoreographer.getVsyncId()).thenReturn(100L); in testOnlyFirstWindowFrameOverThreshold() 164 when(mChoreographer.getVsyncId()).thenReturn(102L); in testOnlyFirstWindowFrameOverThreshold() 187 when(mChoreographer.getVsyncId()).thenReturn(100L); in testSfJank() 199 when(mChoreographer.getVsyncId()).thenReturn(102L); in testSfJank() 224 when(mChoreographer.getVsyncId()).thenReturn(100L); in testFirstFrameJankyNoTrigger() 236 when(mChoreographer.getVsyncId()).thenReturn(102L); in testFirstFrameJankyNoTrigger() 261 when(mChoreographer.getVsyncId()).thenReturn(100L); in testOtherFrameOverThreshold() 273 when(mChoreographer.getVsyncId()).thenReturn(102L); in testOtherFrameOverThreshold() [all …]
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | BatchedInputEventReceiver.java | 28 private Choreographer mChoreographer; field in BatchedInputEventReceiver 43 mChoreographer = choreographer; in BatchedInputEventReceiver() 98 mChoreographer.postCallback(Choreographer.CALLBACK_INPUT, mBatchedInputRunnable, null); in scheduleBatchedInput() 105 mChoreographer.removeCallbacks( in unscheduleBatchedInput() 113 doConsumeBatchedInput(mChoreographer.getFrameTimeNanos()); in run()
|
H A D | SurfaceControl.java | 477 private Choreographer mChoreographer; field in SurfaceControl 1385 if (mChoreographer == null) { in getChoreographer() 1388 return mChoreographer; in getChoreographer() 1409 if (mChoreographer == null) { in getChoreographer() 1410 mChoreographer = Choreographer.getInstanceForSurfaceControl(mNativeHandle, looper); in getChoreographer() 1411 } else if (!mChoreographer.isTheLooperSame(looper)) { in getChoreographer() 1415 return mChoreographer; in getChoreographer() 1430 return mChoreographer != null; in hasChoreographer() 1496 if (mChoreographer != null) { in release() 1497 mChoreographer.invalidate(); in release() [all …]
|
H A D | ViewRootInsetsControllerHost.java | 144 mViewRoot.mChoreographer.postCallback(Choreographer.CALLBACK_INSETS_ANIMATION, r, in postInsetsAnimationCallback()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A D | RampAnimator.java | 188 private final Choreographer mChoreographer; field in RampAnimator.DualRampAnimator 197 mChoreographer = Choreographer.getInstance(); in DualRampAnimator() 234 mChoreographer.removeCallbacks(Choreographer.CALLBACK_ANIMATION, in animateTo() 257 mChoreographer.postCallback(Choreographer.CALLBACK_ANIMATION, mAnimationCallback, null); in postAnimationCallback() 263 long frameTimeNanos = mChoreographer.getFrameTimeNanos();
|
H A D | DisplayPowerState.java | 55 private final Choreographer mChoreographer; field in DisplayPowerState 79 mChoreographer = Choreographer.getInstance(); in DisplayPowerState() 366 mChoreographer.postCallback(Choreographer.CALLBACK_TRAVERSAL, in scheduleColorFadeDraw()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | SurfaceAnimationRunner.java | 81 Choreographer mChoreographer; field in SurfaceAnimationRunner 132 mSurfaceAnimationHandler.runWithScissors(() -> mChoreographer = getSfInstance(), in SurfaceAnimationRunner() 138 : new SfVsyncFrameCallbackProvider(mChoreographer)); in SurfaceAnimationRunner() 166 mChoreographer.postFrameCallback(this::startAnimations); in continueStartingAnimations() 212 mChoreographer.postFrameCallback(this::startAnimations); in startAnimation() 222 mChoreographer.postFrameCallback(this::startAnimations); in startAnimation() 323 anim.setCurrentPlayTime(mChoreographer.getFrameIntervalNanos() / NANOS_PER_MS); in startAnimationLocked() 328 anim.doAnimationFrame(mChoreographer.getFrameTime()); in startAnimationLocked() 352 mChoreographer.postCallback(CALLBACK_TRAVERSAL, mApplyTransactionRunnable, in scheduleApplyTransaction() 360 mFrameTransaction.setFrameTimelineVsync(mChoreographer.getVsyncId()); in applyTransaction()
|
H A D | WindowAnimator.java | 70 private Choreographer mChoreographer; field in WindowAnimator 94 () -> mChoreographer = Choreographer.getSfInstance(), 0 /* timeout */); in WindowAnimator() 248 mChoreographer.postFrameCallback(mAnimationFrameCallback); in scheduleAnimation() 255 mChoreographer.removeFrameCallback(mAnimationFrameCallback); in cancelAnimation() 264 return mChoreographer; in getChoreographer()
|
H A D | WindowTracing.java | 65 private final Choreographer mChoreographer; field in WindowTracing 93 mChoreographer = choreographer; in WindowTracing() 304 mChoreographer.postFrameCallback(mFrameCallback); in schedule()
|
/aosp14/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderThread.cpp | 126 int64_t frameInterval = AChoreographer_getFrameInterval(rt->mChoreographer); in extendedFrameCallback() 168 AChoreographer_postVsyncCallback(mRenderThread->mChoreographer, in requestNextVsync() 173 AChoreographer_handlePendingEvents(mRenderThread->mChoreographer, mRenderThread); in drainPendingEvents() 247 mChoreographer = AChoreographer_create(); in initializeChoreographer() 248 LOG_ALWAYS_FATAL_IF(mChoreographer == nullptr, "Initialization of Choreographer failed"); in initializeChoreographer() 249 AChoreographer_registerRefreshRateCallback(mChoreographer, in initializeChoreographer() 253 mLooper->addFd(AChoreographer_getFd(mChoreographer), 0, Looper::EVENT_INPUT, in initializeChoreographer() 411 AChoreographer_handlePendingEvents(rt->mChoreographer, data); in choreographerCallback()
|
H A D | RenderThread.h | 227 AChoreographer* mChoreographer; variable
|
/aosp14/frameworks/base/core/java/com/android/internal/policy/ |
H A D | BackdropFrameRenderer.java | 53 private Choreographer mChoreographer; field in BackdropFrameRenderer 213 mChoreographer = Choreographer.getInstance(); in run() 221 mChoreographer = null; in run() 401 if (mChoreographer != null && !drawImmediate) { in pingRenderLocked() 402 mChoreographer.postFrameCallback(this); in pingRenderLocked()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
H A D | DragResizeInputListener.java | 66 private final Choreographer mChoreographer; field in DragResizeInputListener 108 mChoreographer = choreographer; in DragResizeInputListener() 138 mInputChannel, mHandler, mChoreographer); in DragResizeInputListener() 335 private final Choreographer mChoreographer; field in DragResizeInputListener.TaskResizeInputEventReceiver 344 mChoreographer = choreographer; in TaskResizeInputEventReceiver() 348 if (consumeBatchedInputEvents(mChoreographer.getFrameTimeNanos())) { in TaskResizeInputEventReceiver() 367 mChoreographer.postCallback( in scheduleConsumeBatchEvent()
|
H A D | CaptionWindowDecoration.java | 45 private final Choreographer mChoreographer; field in CaptionWindowDecoration 70 mChoreographer = choreographer; in CaptionWindowDecoration() 144 mChoreographer, in relayout()
|
H A D | DesktopModeWindowDecoration.java | 66 private final Choreographer mChoreographer; field in DesktopModeWindowDecoration 105 mChoreographer = choreographer; in DesktopModeWindowDecoration() 233 mChoreographer, in relayout()
|
/aosp14/frameworks/base/core/java/com/android/internal/jank/ |
H A D | FrameTracker.java | 112 private final ChoreographerWrapper mChoreographer; field in FrameTracker 206 mChoreographer = choreographer; in FrameTracker() 288 final long currentVsync = mChoreographer.getVsyncId(); in begin() 323 mChoreographer.mChoreographer.postCallback(Choreographer.CALLBACK_INPUT, action, null); in postTraceStartMarker() 348 mEndVsyncId = mChoreographer.getVsyncId(); in end() 850 private final Choreographer mChoreographer; field in FrameTracker.ChoreographerWrapper 853 mChoreographer = choreographer; in ChoreographerWrapper() 857 return mChoreographer.getVsyncId(); in getVsyncId()
|
/aosp14/frameworks/base/core/java/android/animation/ |
H A D | AnimationHandler.java | 445 final Choreographer mChoreographer = Choreographer.getInstance(); field in AnimationHandler.MyFrameCallbackProvider 449 mChoreographer.postFrameCallback(callback); in postFrameCallback() 454 mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, runnable, null); in postCommitCallback() 459 return mChoreographer.getFrameTime(); in getFrameTime()
|
/aosp14/frameworks/base/graphics/java/android/graphics/animation/ |
H A D | RenderNodeAnimator.java | 427 private final Choreographer mChoreographer; field in RenderNodeAnimator.DelayedAnimationHelper 431 mChoreographer = Choreographer.getInstance(); in DelayedAnimationHelper() 446 mChoreographer.postCallback(Choreographer.CALLBACK_ANIMATION, this, null); in scheduleCallback() 452 long frameTimeMs = mChoreographer.getFrameTime(); in run()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/ |
H A D | CustomizeActivityAnimation.java | 89 private final Choreographer mChoreographer; field in CustomizeActivityAnimation 107 mChoreographer = choreographer != null ? choreographer : Choreographer.getInstance(); in CustomizeActivityAnimation() 167 mTransaction.setFrameTimelineVsync(mChoreographer.getVsyncId()); in applyTransformTransaction() 199 mTransaction.setFrameTimelineVsync(mChoreographer.getVsyncId()); in finishAnimation()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | WindowTracingTest.java | 79 private Choreographer mChoreographer; field in WindowTracingTest 91 mWindowTracing = new WindowTracing(mFile, mWmMock, mChoreographer, in setUp()
|
H A D | SurfaceAnimationRunnerTest.java | 209 mSurfaceAnimationRunner.mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, in waitUntilNextFrame()
|
/aosp14/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
H A D | AttachedChoreographerTest.java | 68 private Choreographer mChoreographer; field in AttachedChoreographerTest 139 mChoreographer = sc.getChoreographer(); in testCreateChoreographer() 184 assertEquals(mChoreographer, surfaceControl.getChoreographer()); in testCreateChoreographer()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
H A D | SplashscreenWindowCreator.java | 107 private Choreographer mChoreographer; field in SplashscreenWindowCreator 121 mSplashScreenExecutor.execute(() -> mChoreographer = Choreographer.getInstance()); in SplashscreenWindowCreator() 205 mChoreographer.postCallback(CALLBACK_INSETS_ANIMATION, setViewSynchronized, null); in addSplashScreenStartingWindow()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
H A D | ShadeListBuilder.java | 137 private final NotifPipelineChoreographer mChoreographer; field in ShadeListBuilder 156 mChoreographer = pipelineChoreographer; in ShadeListBuilder() 170 mChoreographer.addOnEvalListener(this::buildList); in attach() 1398 mChoreographer.schedule(); in scheduleRebuild() 1420 mChoreographer.schedule(); in scheduleRebuild() 1482 d.dump("choreographer", mChoreographer); in dumpPipeline()
|