/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/power/ |
D | FpsThrottler.kt | 98 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/ |
D | Choreographer.java | 846 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 …]
|
D | BatchedInputEventReceiver.java | 87 protected void doConsumeBatchedInput(long frameTimeNanos) { in doConsumeBatchedInput() argument 91 if (consumeBatchedInputEvents(frameTimeNanos) && frameTimeNanos != -1) { in doConsumeBatchedInput()
|
D | InputEventReceiver.java | 61 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/ |
D | CanvasWallpaperEngine.kt | 117 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/ |
D | RampAnimator.java | 170 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/ |
D | ChoreographerCallbacksTest.java | 62 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/ |
D | WeatherEngine.kt | 112 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/ |
D | choreographer.h | 112 typedef void (*AChoreographer_frameCallback)(long frameTimeNanos, void* data); 122 typedef void (*AChoreographer_frameCallback64)(int64_t frameTimeNanos, void* data);
|
/frameworks/base/tests/ChoreographerTests/jni/ |
D | android_view_tests_ChoreographerNativeTest.cpp | 79 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/ |
D | RenderThread.cpp | 126 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()
|
D | RenderThread.h | 216 void frameCallback(int64_t vsyncId, int64_t frameDeadline, int64_t frameTimeNanos,
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | ChoreographerCallbacks.java | 105 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/ |
D | BridgeClient.java | 539 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/ |
D | WeatherEffect.kt | 40 fun update(deltaMillis: Long, frameTimeNanos: Long)
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/none/ |
D | NoEffect.kt | 32 override fun update(deltaMillis: Long, frameTimeNanos: Long) {} in update()
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/ |
D | FogEffect.kt | 49 override fun update(deltaMillis: Long, frameTimeNanos: Long) { in resize() 52 val time = frameTimeNanos.toFloat() * NANOS_TO_SECONDS in resize()
|
/frameworks/base/native/android/ |
D | surface_control_input_receiver.cpp | 124 int64_t frameTimeNanos = AChoreographerFrameCallbackData_getFrameTimeNanos(callbackData); in onVsyncCallback() local 125 mInputConsumer.consumeBatchedInputEvents(frameTimeNanos); in onVsyncCallback()
|
/frameworks/base/core/java/android/animation/ |
D | AnimationHandler.java | 86 public void doFrame(long frameTimeNanos) { 251 private Choreographer.FrameCallback mPauser = frameTimeNanos -> {
|
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/ |
D | AttachedChoreographerTest.java | 275 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/ |
D | Choreographer.h | 63 int64_t frameTimeNanos{0};
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/snow/ |
D | SnowEffect.kt | 63 override fun update(deltaMillis: Long, frameTimeNanos: Long) { in <lambda>()
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/rain/ |
D | RainEffect.kt | 63 override fun update(deltaMillis: Long, frameTimeNanos: Long) { in <lambda>()
|
/frameworks/native/libs/nativedisplay/ |
D | AChoreographer.cpp | 194 return frameCallbackData->frameTimeNanos; in AChoreographerFrameCallbackData_getFrameTimeNanos()
|
/frameworks/base/core/jni/ |
D | android_view_InputEventReceiver.cpp | 594 jlong frameTimeNanos) { in nativeConsumeBatchedInputEvents() argument 599 receiver->consumeEvents(env, /*consumeBatches=*/true, frameTimeNanos, &consumedBatch); in nativeConsumeBatchedInputEvents()
|