Home
last modified time | relevance | path

Searched refs:mChoreographer (Results 1 – 25 of 29) sorted by relevance

12

/aosp14/frameworks/base/core/java/com/android/internal/graphics/
H A DSfVsyncFrameCallbackProvider.java30 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 DFrameTrackerTest.java83 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 DBatchedInputEventReceiver.java28 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 DSurfaceControl.java477 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 DViewRootInsetsControllerHost.java144 mViewRoot.mChoreographer.postCallback(Choreographer.CALLBACK_INSETS_ANIMATION, r, in postInsetsAnimationCallback()
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DRampAnimator.java188 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 DDisplayPowerState.java55 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 DSurfaceAnimationRunner.java81 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 DWindowAnimator.java70 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 DWindowTracing.java65 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 DRenderThread.cpp126 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 DRenderThread.h227 AChoreographer* mChoreographer; variable
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DBackdropFrameRenderer.java53 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 DDragResizeInputListener.java66 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 DCaptionWindowDecoration.java45 private final Choreographer mChoreographer; field in CaptionWindowDecoration
70 mChoreographer = choreographer; in CaptionWindowDecoration()
144 mChoreographer, in relayout()
H A DDesktopModeWindowDecoration.java66 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 DFrameTracker.java112 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 DAnimationHandler.java445 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 DRenderNodeAnimator.java427 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 DCustomizeActivityAnimation.java89 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 DWindowTracingTest.java79 private Choreographer mChoreographer; field in WindowTracingTest
91 mWindowTracing = new WindowTracing(mFile, mWmMock, mChoreographer, in setUp()
H A DSurfaceAnimationRunnerTest.java209 mSurfaceAnimationRunner.mChoreographer.postCallback(Choreographer.CALLBACK_COMMIT, in waitUntilNextFrame()
/aosp14/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
H A DAttachedChoreographerTest.java68 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 DSplashscreenWindowCreator.java107 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 DShadeListBuilder.java137 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()

12