Home
last modified time | relevance | path

Searched refs:frameTimeNanos (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/power/
DFpsThrottler.kt98 fun canRender(frameTimeNanos: Long): Boolean { in canRender()
104 val deltaMillis = (frameTimeNanos - lastFrameTimeNanos) * NANO_TO_MILLIS in canRender()
126 fun tryRender(frameTimeNanos: Long, onRenderPermitted: () -> Boolean): Boolean { in tryRender()
127 if (canRender(frameTimeNanos) && onRenderPermitted()) { in tryRender()
129 lastFrameTimeNanos = frameTimeNanos in tryRender()
/frameworks/base/core/java/android/view/
DChoreographer.java846 void doFrame(long frameTimeNanos, int frame, in doFrame() argument
852 FrameTimeline timeline = mFrameData.update(frameTimeNanos, vsyncEventData); in doFrame()
866 + ((frameTimeNanos - mLastFrameTimeNanos) * 0.000001f) + " ms"); in doFrame()
869 long intendedFrameTimeNanos = frameTimeNanos; in doFrame()
871 final long jitterNanos = startNanos - frameTimeNanos; in doFrame()
873 frameTimeNanos = startNanos; in doFrame()
878 frameTimeNanos = frameTimeNanos - lastFrameOffset; in doFrame()
895 frameTimeNanos, mDisplayEventReceiver, jitterNanos); in doFrame()
899 if (frameTimeNanos < mLastFrameTimeNanos) { in doFrame()
910 long timeSinceVsync = frameTimeNanos - mLastFrameTimeNanos; in doFrame()
[all …]
DBatchedInputEventReceiver.java87 protected void doConsumeBatchedInput(long frameTimeNanos) { in doConsumeBatchedInput() argument
91 if (consumeBatchedInputEvents(frameTimeNanos) && frameTimeNanos != -1) { in doConsumeBatchedInput()
DInputEventReceiver.java61 long frameTimeNanos); in nativeConsumeBatchedInputEvents() argument
254 public final boolean consumeBatchedInputEvents(long frameTimeNanos) { in consumeBatchedInputEvents() argument
259 return nativeConsumeBatchedInputEvents(mReceiverPtr, frameTimeNanos); in consumeBatchedInputEvents()
/frameworks/libs/systemui/toruslib/torus-framework-canvas/src/main/java/com/google/android/torus/canvas/engine/
DCanvasWallpaperEngine.kt117 open fun onUpdate(deltaMillis: Long, frameTimeNanos: Long) { in onUpdate()
206 fun renderWithFpsLimit(frameTimeNanos: Long, onRender: (canvas: Canvas) -> Unit): Boolean { in renderWithFpsLimit()
215 return renderWithFpsLimit(frameTimeNanos, onRender) in renderWithFpsLimit()
218 return fpsThrottler.tryRender(frameTimeNanos) { in renderWithFpsLimit()
306 override fun doFrame(frameTimeNanos: Long) { in getCurrentSurfaceHolder()
309 val frameTimeMillis = frameTimeNanos / 1000_000 in getCurrentSurfaceHolder()
311 onUpdate(timeController.deltaTimeMillis, frameTimeNanos) in getCurrentSurfaceHolder()
/frameworks/base/services/core/java/com/android/server/display/
DRampAnimator.java170 void performNextAnimationStep(long frameTimeNanos) { in performNextAnimationStep() argument
171 final float timeDelta = (frameTimeNanos - mLastFrameTimeNanos) * 0.000000001f; in performNextAnimationStep()
172 mLastFrameTimeNanos = frameTimeNanos; in performNextAnimationStep()
293 long frameTimeNanos = mChoreographer.getFrameTimeNanos();
294 mFirst.performNextAnimationStep(frameTimeNanos);
295 mSecond.performNextAnimationStep(frameTimeNanos);
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/util/
DChoreographerCallbacksTest.java62 callbacks.add((FrameCallback) frameTimeNanos -> order.add(1), null, 100); in testAddAndExecuteInOrder()
75 callbacks.add((FrameCallback) frameTimeNanos -> order.add(1), null, 100); in testAddAndExecuteOnlyDue()
89 callbacks.add((FrameCallback) frameTimeNanos -> order.add(1), null, 100); in testRemove()
116 callbacks.add((FrameCallback) frameTimeNanos -> order.add(1), token1, 100); in testRemoveNullAction()
/frameworks/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/
DWeatherEngine.kt112 override fun onUpdate(deltaMillis: Long, frameTimeNanos: Long) { in <lambda>()
113 super.onUpdate(deltaMillis, frameTimeNanos) in <lambda>()
114 activeEffect?.update(deltaMillis, frameTimeNanos) in <lambda>()
116 renderWithFpsLimit(frameTimeNanos) { canvas -> activeEffect?.draw(canvas) } in <lambda>()
/frameworks/native/include/android/
Dchoreographer.h112 typedef void (*AChoreographer_frameCallback)(long frameTimeNanos, void* data);
122 typedef void (*AChoreographer_frameCallback64)(int64_t frameTimeNanos, void* data);
/frameworks/base/tests/ChoreographerTests/jni/
Dandroid_view_tests_ChoreographerNativeTest.cpp79 long frameTimeNanos = AChoreographerFrameCallbackData_getFrameTimeNanos(callbackData); in vsyncCallback() local
86 cb->frameTime = std::chrono::nanoseconds{frameTimeNanos}; in vsyncCallback()
89 static_cast<long>(cb->endTime.count()), frameTimeNanos, cb->count); in vsyncCallback()
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp126 int64_t frameTimeNanos = AChoreographerFrameCallbackData_getFrameTimeNanos(cbData); in extendedFrameCallback() local
129 rt->frameCallback(vsyncId, frameDeadline, frameTimeNanos, frameInterval); in extendedFrameCallback()
132 void RenderThread::frameCallback(int64_t vsyncId, int64_t frameDeadline, int64_t frameTimeNanos, in frameCallback() argument
135 if (timeLord().vsyncReceived(frameTimeNanos, frameTimeNanos, vsyncId, frameDeadline, in frameCallback()
145 const auto frameTimeTimePoint = SteadyClock::time_point(Nanos(frameTimeNanos)); in frameCallback()
DRenderThread.h216 void frameCallback(int64_t vsyncId, int64_t frameDeadline, int64_t frameTimeNanos,
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DChoreographerCallbacks.java105 private static void executeSafely(@NotNull Object action, long frameTimeNanos, in executeSafely() argument
110 callback.doFrame(frameTimeNanos); in executeSafely()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/
DBridgeClient.java539 long frameTimeNanos) { in render() argument
540 return render(bridge, params, frameTimeNanos, null); in render()
546 long frameTimeNanos, in render() argument
556 if (frameTimeNanos != -1) { in render()
557 session.setElapsedFrameTimeNanos(frameTimeNanos); in render()
602 long frameTimeNanos) throws ClassNotFoundException { in renderAndVerify() argument
603 RenderResult result = render(sBridge, params, frameTimeNanos); in renderAndVerify()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/
DWeatherEffect.kt40 fun update(deltaMillis: Long, frameTimeNanos: Long)
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/none/
DNoEffect.kt32 override fun update(deltaMillis: Long, frameTimeNanos: Long) {} in update()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/
DFogEffect.kt49 override fun update(deltaMillis: Long, frameTimeNanos: Long) { in resize()
52 val time = frameTimeNanos.toFloat() * NANOS_TO_SECONDS in resize()
/frameworks/base/native/android/
Dsurface_control_input_receiver.cpp124 int64_t frameTimeNanos = AChoreographerFrameCallbackData_getFrameTimeNanos(callbackData); in onVsyncCallback() local
125 mInputConsumer.consumeBatchedInputEvents(frameTimeNanos); in onVsyncCallback()
/frameworks/base/core/java/android/animation/
DAnimationHandler.java86 public void doFrame(long frameTimeNanos) {
251 private Choreographer.FrameCallback mPauser = frameTimeNanos -> {
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerTest.java275 frameTimeNanos -> mTestCompleteSignal.countDown()); in testPostFrameCallback()
284 copyChoreographer.postFrameCallback(frameTimeNanos -> mNoCallbackSignal.countDown()); in testPostFrameCallback()
311 frameTimeNanos -> mNoCallbackSignal.countDown(), /* delayMillis */5); in testPostFrameCallbackDelayed()
/frameworks/native/libs/gui/include/gui/
DChoreographer.h63 int64_t frameTimeNanos{0};
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/snow/
DSnowEffect.kt63 override fun update(deltaMillis: Long, frameTimeNanos: Long) { in <lambda>()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/rain/
DRainEffect.kt63 override fun update(deltaMillis: Long, frameTimeNanos: Long) { in <lambda>()
/frameworks/native/libs/nativedisplay/
DAChoreographer.cpp194 return frameCallbackData->frameTimeNanos; in AChoreographerFrameCallbackData_getFrameTimeNanos()
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp594 jlong frameTimeNanos) { in nativeConsumeBatchedInputEvents() argument
599 receiver->consumeEvents(env, /*consumeBatches=*/true, frameTimeNanos, &consumedBatch); in nativeConsumeBatchedInputEvents()

12