Home
last modified time | relevance | path

Searched refs:signalTime (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/libs/ui/
DFenceTime.cpp52 FenceTime::FenceTime(nsecs_t signalTime) in FenceTime() argument
53 : mState(Fence::isValidTimestamp(signalTime) ? State::VALID : State::INVALID), in FenceTime()
55 mSignalTime(signalTime) { in FenceTime()
75 nsecs_t signalTime = mSignalTime.load(std::memory_order_relaxed); in applyTrustedSnapshot() local
76 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in applyTrustedSnapshot()
80 if (CC_UNLIKELY(signalTime != src.signalTime)) { in applyTrustedSnapshot()
83 signalTime, src.signalTime); in applyTrustedSnapshot()
90 mSignalTime.store(src.signalTime, std::memory_order_relaxed); in applyTrustedSnapshot()
102 nsecs_t signalTime = mSignalTime.load(std::memory_order_relaxed); in wait() local
103 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in wait()
[all …]
/frameworks/native/services/surfaceflinger/FrameTracer/
DFrameTracer.cpp84 const nsecs_t signalTime = fence->getSignalTime(); in traceFence() local
85 if (signalTime != Fence::SIGNAL_TIME_INVALID) { in traceFence()
94 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in traceFence()
95 traceSpanLocked(ctx, layerId, bufferID, frameNumber, type, startTime, signalTime); in traceFence()
114 nsecs_t signalTime = Fence::SIGNAL_TIME_INVALID; in tracePendingFencesLocked() local
116 signalTime = pendingFence.fence->getSignalTime(); in tracePendingFencesLocked()
117 if (signalTime == Fence::SIGNAL_TIME_PENDING) { in tracePendingFencesLocked()
122 if (signalTime != Fence::SIGNAL_TIME_INVALID && in tracePendingFencesLocked()
123 systemTime() - signalTime < kFenceSignallingDeadline) { in tracePendingFencesLocked()
125 pendingFence.startTime, signalTime); in tracePendingFencesLocked()
/frameworks/native/libs/ui/include_vndk/ui/
DFenceTime.h55 explicit Snapshot(nsecs_t signalTime);
74 nsecs_t signalTime{Fence::SIGNAL_TIME_INVALID};
84 explicit FenceTime(nsecs_t signalTime);
122 void signalForTest(nsecs_t signalTime);
207 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
/frameworks/native/libs/ui/include/ui/
DFenceTime.h55 explicit Snapshot(nsecs_t signalTime);
74 nsecs_t signalTime{Fence::SIGNAL_TIME_INVALID};
84 explicit FenceTime(nsecs_t signalTime);
122 void signalForTest(nsecs_t signalTime);
207 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
/frameworks/av/media/libstagefright/
DFrameRenderTracker.cpp124 nsecs_t signalTime = it->mFence->getSignalTime(); in checkFencesAndGetRenderedFrames() local
125 if (signalTime < 0) { // invalid fence in checkFencesAndGetRenderedFrames()
127 } else if (signalTime == INT64_MAX) { // unsignaled fence in checkFencesAndGetRenderedFrames()
132 it->mRenderTimeNs = signalTime; in checkFencesAndGetRenderedFrames()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncReactor.cpp62 nsecs_t const signalTime = fence->getCachedSignalTime(); in addPresentFence() local
63 if (signalTime == Fence::SIGNAL_TIME_INVALID) { in addPresentFence()
88 if (signalTime == Fence::SIGNAL_TIME_PENDING) { in addPresentFence()
94 timestampAccepted &= mTracker.addVsyncTimestamp(signalTime); in addPresentFence()
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3IOStreamBase.cpp70 nsecs_t signalTime = mCombinedFence->getSignalTime(); in hasOutstandingBuffersLocked() local
73 __FUNCTION__, mId, mHandoutTotalBufferCount, signalTime); in hasOutstandingBuffersLocked()
74 if (mHandoutTotalBufferCount > 0 || signalTime == INT64_MAX) { in hasOutstandingBuffersLocked()
DStatusTracker.cpp165 nsecs_t signalTime = mIdleFence->getSignalTime(); in getDeviceStateLocked() local
166 bool fencesDone = signalTime != INT64_MAX; in getDeviceStateLocked()
DCamera3OutputStream.cpp1434 nsecs_t signalTime = mReferenceFrameFence->getSignalTime(); in syncTimestampToDisplayLocked() local
1437 if (signalTime != INT64_MAX) { in syncTimestampToDisplayLocked()
1440 if (timeline.deadlineTimestamp >= signalTime) { in syncTimestampToDisplayLocked()
1445 mFenceSignalOffset = signalTime > mReferenceArrivalTime ? in syncTimestampToDisplayLocked()
1446 signalTime - mReferenceArrivalTime : 0; in syncTimestampToDisplayLocked()
1451 timeline.deadlineTimestamp, signalTime, originalOffset, in syncTimestampToDisplayLocked()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp458 nsecs_t signalTime = displayData.gpuEndFenceTime->getSignalTime(); in setGpuStartTime() local
459 if (signalTime != Fence::SIGNAL_TIME_INVALID && signalTime != Fence::SIGNAL_TIME_PENDING) { in setGpuStartTime()
461 displayData.lastValidGpuEndTime = TimePoint::fromNs(signalTime); in setGpuStartTime()
481 nsecs_t signalTime = displayData.gpuEndFenceTime->getSignalTime(); in setGpuFenceTime() local
482 if (signalTime != Fence::SIGNAL_TIME_INVALID && signalTime != Fence::SIGNAL_TIME_PENDING) { in setGpuFenceTime()
484 displayData.lastValidGpuEndTime = TimePoint::fromNs(signalTime); in setGpuFenceTime()
/frameworks/native/libs/gui/
DFrameTimestamps.cpp94 nsecs_t signalTime = fenceTime.getCachedSignalTime(); in dumpFenceTime() local
95 if (Fence::isValidTimestamp(signalTime)) { in dumpFenceTime()
96 StringAppendF(&outString, "%" PRId64 "\n", signalTime); in dumpFenceTime()
97 } else if (pending || signalTime == Fence::SIGNAL_TIME_PENDING) { in dumpFenceTime()
347 *dst = std::make_shared<FenceTime>(src.signalTime); in applyFenceDelta()
DSurface.cpp290 nsecs_t signalTime = src->getSignalTime(); in getFrameTimestampFence() local
291 *dst = (signalTime == Fence::SIGNAL_TIME_PENDING) ? in getFrameTimestampFence()
293 (signalTime == Fence::SIGNAL_TIME_INVALID) ? in getFrameTimestampFence()
295 signalTime; in getFrameTimestampFence()
/frameworks/native/services/surfaceflinger/FrameTimeline/
DFrameTimeline.cpp1109 void FrameTimeline::DisplayFrame::onPresent(nsecs_t signalTime, nsecs_t previousPresentTime) { in onPresent() argument
1110 mSurfaceFlingerActuals.presentTime = signalTime; in onPresent()
1116 surfaceFrame->onPresent(signalTime, mJankType, mRefreshRate, mRenderRate, deadlineDelta, in onPresent()
1384 const nsecs_t signalTime = Fence::SIGNAL_TIME_INVALID; in flushPendingPresentFences() local
1386 displayFrame->onPresent(signalTime, mPreviousActualPresentTime); in flushPendingPresentFences()
1394 nsecs_t signalTime = Fence::SIGNAL_TIME_INVALID; in flushPendingPresentFences() local
1396 signalTime = pendingPresentFence.first->getSignalTime(); in flushPendingPresentFences()
1397 if (signalTime == Fence::SIGNAL_TIME_PENDING) { in flushPendingPresentFences()
1403 displayFrame->onPresent(signalTime, mPreviousActualPresentTime); in flushPendingPresentFences()
1406 mPreviousActualPresentTime = signalTime; in flushPendingPresentFences()
DFrameTimeline.h398 void onPresent(nsecs_t signalTime, nsecs_t previousPresentTime);
/frameworks/av/media/codec2/vndk/platform/
DC2BqBuffer.cpp487 nsecs_t signalTime = fence->getSignalTime(); in fetchFromIgbp_l() local
488 if (signalTime >= 0 && signalTime < INT64_MAX) { in fetchFromIgbp_l()
489 mRenderCallback(mProducerId, slot, signalTime); in fetchFromIgbp_l()
491 ALOGV("got fence signal time of %lld", (long long)signalTime); in fetchFromIgbp_l()
/frameworks/native/services/surfaceflinger/tests/unittests/
DFrameTracerTest.cpp381 const nsecs_t signalTime = systemTime() - FrameTracer::kFenceSignallingDeadline; in TEST_F() local
389 fenceFactory.signalAllForTest(Fence::NO_FENCE, signalTime); in TEST_F()
/frameworks/native/libs/gui/bufferqueue/1.0/
DConversion.cpp549 ::android::FenceTime::Snapshot::signalTime); in getFlattenedSize()
DH2BGraphicBufferProducer.cpp592 ::android::FenceTime::Snapshot::signalTime); in getFlattenedSize()