Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/utils/
DCallbackUtils.h33 : latchTime(time), presentFence(fence), surfaceControlStats(stats) {} in CallbackData()
35 nsecs_t latchTime; member
85 const auto& [latchTime, presentFence, surfaceControlStats] = callbackData; in verifyCallbackData()
87 ASSERT_GE(latchTime, 0) << "bad latch time"; in verifyCallbackData()
99 ASSERT_EQ(latchTime, -1) << "unpresented transactions shouldn't be latched"; in verifyCallbackData()
111 expectedSurfaceResult->second.verifySurfaceControlStats(stats, latchTime); in verifyCallbackData()
123 nsecs_t latchTime) const { in verifySurfaceControlStats() argument
131 ASSERT_LE(acquireTime, latchTime) << "acquire time should be <= latch time"; in verifySurfaceControlStats()
159 static void function(void* callbackContext, nsecs_t latchTime, const sp<Fence>& presentFence, in function() argument
166 helper->mCallbackDataQueue.emplace(latchTime, presentFence, stats); in function()
/frameworks/native/libs/gui/
DBLASTBufferQueue.cpp69 nsecs_t latchTime, nsecs_t dequeueReadyTime) { in updateFrameTimestamps() argument
79 mFrameEventHistory.addLatch(frameNumber, latchTime); in updateFrameTimestamps()
141 static void transactionCallbackThunk(void* context, nsecs_t latchTime, in transactionCallbackThunk() argument
148 bq->transactionCallback(latchTime, presentFence, stats); in transactionCallbackThunk()
165 stats[0].latchTime, in transactionCallback()
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()
DITransactionCompletedListener.cpp155 err = output->writeInt64(latchTime); in writeToParcel()
179 err = input->readInt64(&latchTime); in readFromParcel()
DSurfaceComposerClient.cpp225 transactionStats.latchTime, surfaceStats.acquireTime, in onTransactionCompleted()
236 callbackFunction(transactionStats.latchTime, transactionStats.presentFence, in onTransactionCompleted()
DSurface.cpp323 getFrameTimestamp(outLatchTime, events->latchTime); in getFrameTimestamps()
/frameworks/native/services/surfaceflinger/
DBufferLayer.h90 bool latchBuffer(bool& recomputeVisibleRegions, nsecs_t latchTime,
145 virtual status_t updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime,
149 virtual status_t updateFrameNumber(nsecs_t latchTime) = 0;
DBufferStateLayer.cpp522 status_t BufferStateLayer::updateTexImage(bool& /*recomputeVisibleRegions*/, nsecs_t latchTime, in updateTexImage() argument
529 handle->latchTime = latchTime; in updateTexImage()
562 handle->latchTime = latchTime; in updateTexImage()
582 mFlinger->mTimeStats->setLatchTime(layerId, mDrawingState.frameNumber, latchTime); in updateTexImage()
603 status_t BufferStateLayer::updateFrameNumber(nsecs_t latchTime) { in updateFrameNumber() argument
609 mFrameEventHistory.addLatch(mCurrentFrameNumber, latchTime); in updateFrameNumber()
DBufferQueueLayer.h78 status_t updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime,
82 status_t updateFrameNumber(nsecs_t latchTime) override;
DTransactionCompletedThread.cpp237 transactionStats->latchTime = handle->latchTime; in addCallbackHandle()
301 if (transactionStats.latchTime >= 0) { in threadMain()
DBufferQueueLayer.cpp236 status_t BufferQueueLayer::updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime, in updateTexImage() argument
330 mFlinger->mTimeStats->setLatchTime(layerId, currentFrameNumber, latchTime); in updateTexImage()
331 mFlinger->mFrameTracer->traceTimestamp(layerId, bufferID, currentFrameNumber, latchTime, in updateTexImage()
359 status_t BufferQueueLayer::updateFrameNumber(nsecs_t latchTime) { in updateFrameNumber() argument
365 mFrameEventHistory.addLatch(mCurrentFrameNumber, latchTime); in updateFrameNumber()
DBufferStateLayer.h133 status_t updateTexImage(bool& recomputeVisibleRegions, nsecs_t latchTime,
137 status_t updateFrameNumber(nsecs_t latchTime) override;
DTransactionCompletedThread.h46 nsecs_t latchTime = -1; variable
DBufferLayer.cpp392 bool BufferLayer::latchBuffer(bool& recomputeVisibleRegions, nsecs_t latchTime, in latchBuffer() argument
434 status_t err = updateTexImage(recomputeVisibleRegions, latchTime, expectedPresentTime); in latchBuffer()
444 err = updateFrameNumber(latchTime); in latchBuffer()
DSurfaceFlinger.cpp3085 nsecs_t latchTime = systemTime(); in handlePageFlip() local
3130 if (layer->latchBuffer(visibleRegions, latchTime, expectedPresentTime)) { in handlePageFlip()
/frameworks/base/native/android/
Dsurface_control.cpp207 int64_t latchTime; member
213 return aSurfaceTransactionStats->latchTime; in ASurfaceTransactionStats_getLatchTime()
287 nsecs_t latchTime, in ASurfaceTransaction_setOnComplete()
292 aSurfaceTransactionStats.latchTime = latchTime; in ASurfaceTransaction_setOnComplete()
297 …for (const auto& [surfaceControl, latchTime, acquireTime, presentFence, previousReleaseFence, tran… in ASurfaceTransaction_setOnComplete()
/frameworks/native/libs/gui/include/gui/
DBLASTBufferQueue.h51 CompositorTiming compositorTiming, nsecs_t latchTime,
80 void transactionCallback(nsecs_t latchTime, const sp<Fence>& presentFence,
DITransactionCompletedListener.h92 : callbackIds(ids), latchTime(latch), presentFence(present), surfaceStats(surfaces) {} in TransactionStats()
95 nsecs_t latchTime = -1; variable
DSurfaceComposerClient.h55 SurfaceControlStats(const sp<SurfaceControl>& sc, nsecs_t latchTime, nsecs_t acquireTime, in SurfaceControlStats()
59 latchTime(latchTime), in SurfaceControlStats()
67 nsecs_t latchTime = -1; member
DFrameTimestamps.h88 nsecs_t latchTime{TIMESTAMP_PENDING};
216 void addLatch(uint64_t frameNumber, nsecs_t latchTime);
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h89 virtual void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) = 0;
131 nsecs_t latchTime = 0; member
246 void setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) override;
DTimeStats.cpp432 const int32_t latchToPresentMs = msBetween(timeRecords[0].frameTime.latchTime, in flushAvailableRecordsToStatsLocked()
497 .latchTime = postTime, in setPostTime()
508 void TimeStats::setLatchTime(int32_t layerId, uint64_t frameNumber, nsecs_t latchTime) { in setLatchTime() argument
512 ALOGV("[%d]-[%" PRIu64 "]-LatchTime[%" PRId64 "]", layerId, frameNumber, latchTime); in setLatchTime()
522 timeRecord.frameTime.latchTime = latchTime; in setLatchTime()
/frameworks/native/libs/gui/tests/
DBLASTBufferQueue_test.cpp713 ASSERT_GE(events->latchTime, postedTimeA); in TEST_F()
714 ASSERT_GE(events->dequeueReadyTime, events->latchTime); in TEST_F()
/frameworks/native/opengl/libs/EGL/
Degl_platform_entries.cpp2455 nsecs_t* latchTime = nullptr; in eglGetFrameTimestampsANDROIDImpl() local
2472 latchTime = &values[i]; in eglGetFrameTimestampsANDROIDImpl()
2498 requestedPresentTime, acquireTime, latchTime, firstRefreshStartTime, in eglGetFrameTimestampsANDROIDImpl()