Home
last modified time | relevance | path

Searched refs:latchTime (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/native/libs/gui/include/gui/test/
DCallbackUtils.h37 : latchTime(time), presentFence(fence), surfaceControlStats(stats) {} in CallbackData()
39 nsecs_t latchTime; member
93 const auto& [latchTime, presentFence, surfaceControlStats] = callbackData; in verifyCallbackData()
95 ASSERT_GE(latchTime, 0) << "bad latch time"; in verifyCallbackData()
112 ASSERT_EQ(latchTime, -1) << "unpresented transactions shouldn't be latched"; in verifyCallbackData()
124 expectedSurfaceResult->second.verifySurfaceControlStats(stats, latchTime); in verifyCallbackData()
136 nsecs_t latchTime) const { in verifySurfaceControlStats() argument
145 ASSERT_LE(std::get<nsecs_t>(acquireTimeOrFence), latchTime) in verifySurfaceControlStats()
175 static void function(void* callbackContext, nsecs_t latchTime, const sp<Fence>& presentFence, in function() argument
182 helper->mCallbackDataQueue.emplace(latchTime, presentFence, stats); in function()
/frameworks/base/native/android/
Dsurface_control.cpp206 int64_t latchTime; member
213 return aSurfaceTransactionStats->latchTime; in ASurfaceTransactionStats_getLatchTime()
291 nsecs_t latchTime, in ASurfaceTransaction_setOnComplete()
296 aSurfaceTransactionStats.latchTime = latchTime; in ASurfaceTransaction_setOnComplete()
302 for (const auto& [surfaceControl, latchTime, acquireTimeOrFence, presentFence, in ASurfaceTransaction_setOnComplete()
645 [func](void* callback_context, nsecs_t latchTime, const sp<Fence>& /* presentFence */, in ASurfaceTransaction_setOnCommit()
648 aSurfaceTransactionStats.latchTime = latchTime; in ASurfaceTransaction_setOnCommit()
652 for (const auto& [surfaceControl, latchTime, acquireTimeOrFence, presentFence, in ASurfaceTransaction_setOnCommit()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionFrameTracerTest.cpp131 nsecs_t latchTime = 25; in BLASTTransactionSendsFrameTracerEvents() local
136 traceTimestamp(layerId, bufferId, frameNumber, latchTime, in BLASTTransactionSendsFrameTracerEvents()
138 layer->updateTexImage(computeVisisbleRegions, latchTime, /*expectedPresentTime*/ 0); in BLASTTransactionSendsFrameTracerEvents()
/frameworks/native/libs/gui/
DFrameTimestamps.cpp48 return FrameEvents::isValidTimestamp(latchTime); in hasLatchInfo()
116 if (FrameEvents::isValidTimestamp(latchTime)) { in dump()
117 StringAppendF(&outString, "%" PRId64 "\n", latchTime); in dump()
290 frame.latchTime = d.mLatchTime; in applyDelta()
396 uint64_t frameNumber, nsecs_t latchTime) { in addLatch() argument
402 frame->latchTime = latchTime; in addLatch()
507 mLatchTime(frameTimestamps.latchTime), in FrameEventsDelta()
DBLASTBufferQueue.cpp100 nsecs_t latchTime, nsecs_t dequeueReadyTime) { in updateFrameTimestamps() argument
110 mFrameEventHistory.addLatch(frameNumber, latchTime); in updateFrameTimestamps()
265 static void transactionCommittedCallbackThunk(void* context, nsecs_t latchTime, in transactionCommittedCallbackThunk() argument
272 bq->transactionCommittedCallback(latchTime, presentFence, stats); in transactionCommittedCallbackThunk()
314 static void transactionCallbackThunk(void* context, nsecs_t latchTime, in transactionCallbackThunk() argument
321 bq->transactionCallback(latchTime, presentFence, stats); in transactionCallbackThunk()
342 if (stat.latchTime > 0) { in transactionCallback()
349 stat.latchTime, in transactionCallback()
DITransactionCompletedListener.cpp179 err = output->writeInt64(latchTime); in writeToParcel()
203 err = input->readInt64(&latchTime); in readFromParcel()
DSurfaceComposerClient.cpp352 transactionStats.latchTime, surfaceStats.acquireTimeOrFence, in onTransactionCompleted()
359 callbackFunction(transactionStats.latchTime, transactionStats.presentFence, in onTransactionCompleted()
378 transactionStats.latchTime, surfaceStats.acquireTimeOrFence, in onTransactionCompleted()
409 callbackFunction(transactionStats.latchTime, transactionStats.presentFence, in onTransactionCompleted()
438 entry.callback(entry.context, transactionStats.latchTime, in onTransactionCompleted()
DSurface.cpp330 getFrameTimestamp(outLatchTime, events->latchTime); in getFrameTimestamps()
/frameworks/native/services/surfaceflinger/
DTransactionCallbackInvoker.cpp128 transactionStats->latchTime = handle->latchTime; in addCallbackHandle()
204 if (transactionStats.latchTime >= 0 && in sendCallbacks()
DBufferLayer.h89 bool latchBuffer(bool& recomputeVisibleRegions, nsecs_t latchTime,
191 virtual status_t updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime,
DBufferStateLayer.cpp635 status_t BufferStateLayer::updateTexImage(bool& /*recomputeVisibleRegions*/, nsecs_t latchTime, in updateTexImage() argument
642 handle->latchTime = latchTime; in updateTexImage()
650 handle->latchTime = latchTime; in updateTexImage()
659 mFlinger->mTimeStats->setLatchTime(layerId, frameNumber, latchTime); in updateTexImage()
663 mFlinger->mFrameTracer->traceTimestamp(layerId, bufferId, frameNumber, latchTime, in updateTexImage()
674 latchTime); in updateTexImage()
DBufferQueueLayer.cpp170 status_t BufferQueueLayer::updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime, in updateTexImage() argument
277 mFlinger->mTimeStats->setLatchTime(layerId, currentFrameNumber, latchTime); in updateTexImage()
278 mFlinger->mFrameTracer->traceTimestamp(layerId, bufferID, currentFrameNumber, latchTime, in updateTexImage()
284 latchTime); in updateTexImage()
DTransactionCallbackInvoker.h50 nsecs_t latchTime = -1; variable
DBufferQueueLayer.h101 status_t updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime,
DBufferStateLayer.h121 status_t updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime,
DBufferLayer.cpp458 bool BufferLayer::latchBuffer(bool& recomputeVisibleRegions, nsecs_t latchTime, in latchBuffer() argument
482 status_t err = updateTexImage(recomputeVisibleRegions, latchTime, expectedPresentTime); in latchBuffer()
/frameworks/native/libs/gui/include/gui/
DBLASTBufferQueue.h53 CompositorTiming compositorTiming, nsecs_t latchTime,
92 void transactionCommittedCallback(nsecs_t latchTime, const sp<Fence>& presentFence,
94 virtual void transactionCallback(nsecs_t latchTime, const sp<Fence>& presentFence,
DFrameTimestamps.h88 nsecs_t latchTime{TIMESTAMP_PENDING};
217 void addLatch(uint64_t frameNumber, nsecs_t latchTime);
DITransactionCompletedListener.h168 : callbackIds(ids), latchTime(latch), presentFence(present), surfaceStats(surfaces) {} in TransactionStats()
171 nsecs_t latchTime = -1; variable
DSurfaceComposerClient.h65 SurfaceControlStats(const sp<SurfaceControl>& sc, nsecs_t latchTime, in SurfaceControlStats()
71 latchTime(latchTime), in SurfaceControlStats()
80 nsecs_t latchTime = -1; member
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h78 virtual void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) = 0;
195 nsecs_t latchTime = 0; member
262 void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) override;
DTimeStats.cpp511 const int32_t latchToPresentMs = msBetween(timeRecords[0].frameTime.latchTime, in flushAvailableRecordsToStatsLocked()
592 .latchTime = postTime, in setPostTime()
603 void TimeStats::setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) { in setLatchTime() argument
607 ALOGV("[%d]-[%" PRIu64 "]-LatchTime[%" PRId64 "]", layerId, frameNumber, latchTime); in setLatchTime()
617 timeRecord.frameTime.latchTime = latchTime; in setLatchTime()
/frameworks/native/libs/gui/tests/
DBLASTBufferQueue_test.cpp76 void transactionCallback(nsecs_t latchTime, const sp<Fence>& presentFence, in transactionCallback() argument
78 BLASTBufferQueue::transactionCallback(latchTime, presentFence, stats); in transactionCallback()
1621 ASSERT_GE(events->latchTime, postedTimeA); in TEST_F()
1622 ASSERT_GE(events->dequeueReadyTime, events->latchTime); in TEST_F()
1710 ASSERT_GE(events->latchTime, postedTimeB); in TEST_F()
1711 ASSERT_GE(events->dequeueReadyTime, events->latchTime); in TEST_F()
/frameworks/native/services/surfaceflinger/FrameTimeline/
DFrameTimeline.cpp463 std::chrono::nanoseconds latchTime( in dump() local
467 std::chrono::duration<double, std::milli>(latchTime).count()); in dump()
/frameworks/native/opengl/libs/EGL/
Degl_platform_entries.cpp2308 nsecs_t* latchTime = nullptr; in eglGetFrameTimestampsANDROIDImpl() local
2325 latchTime = &values[i]; in eglGetFrameTimestampsANDROIDImpl()
2352 acquireTime, latchTime, firstRefreshStartTime, in eglGetFrameTimestampsANDROIDImpl()

12