Home
last modified time | relevance | path

Searched refs:expectedPresentTime (Results 1 – 22 of 22) sorted by relevance

/frameworks/native/services/surfaceflinger/
DBufferLayer.h91 nsecs_t expectedPresentTime) override;
95 void notifyAvailableFrames(nsecs_t expectedPresentTime) override;
126 virtual bool framePresentTimeIsCurrent(nsecs_t expectedPresentTime) const = 0;
134 virtual uint64_t getFrameNumber(nsecs_t expectedPresentTime) const = 0;
146 nsecs_t expectedPresentTime) = 0;
196 bool allTransactionsSignaled(nsecs_t expectedPresentTime);
210 virtual uint64_t getHeadFrameNumber(nsecs_t expectedPresentTime) const;
DBufferQueueLayer.cpp101 bool BufferQueueLayer::shouldPresentNow(nsecs_t expectedPresentTime) const { in shouldPresentNow()
115 const bool isPlausible = addedTime < (expectedPresentTime + s2ns(1)); in shouldPresentNow()
119 getDebugName(), addedTime, expectedPresentTime); in shouldPresentNow()
125 const bool isDue = addedTime < expectedPresentTime; in shouldPresentNow()
160 bool BufferQueueLayer::framePresentTimeIsCurrent(nsecs_t expectedPresentTime) const { in framePresentTimeIsCurrent()
166 return mQueueItems[0].mTimestamp <= expectedPresentTime; in framePresentTimeIsCurrent()
169 uint64_t BufferQueueLayer::getFrameNumber(nsecs_t expectedPresentTime) const { in getFrameNumber()
175 expectedPresentTime = 0; in getFrameNumber()
191 if (desiredPresent < expectedPresentTime - BufferQueueConsumer::MAX_REASONABLE_NSEC || in getFrameNumber()
192 desiredPresent > expectedPresentTime) { in getFrameNumber()
[all …]
DBufferQueueLayer.h55 bool shouldPresentNow(nsecs_t expectedPresentTime) const override;
64 bool framePresentTimeIsCurrent(nsecs_t expectedPresentTime) const override;
67 uint64_t getFrameNumber(nsecs_t expectedPresentTime) const override;
79 nsecs_t expectedPresentTime) override;
DBufferStateLayer.h50 bool shouldPresentNow(nsecs_t expectedPresentTime) const override;
112 bool framePresentTimeIsCurrent(nsecs_t expectedPresentTime) const override;
117 uint64_t getHeadFrameNumber(nsecs_t expectedPresentTime) const;
123 uint64_t getFrameNumber(nsecs_t expectedPresentTime) const override;
134 nsecs_t expectedPresentTime) override;
DBufferLayer.cpp393 nsecs_t expectedPresentTime) { in latchBuffer() argument
429 if (!allTransactionsSignaled(expectedPresentTime)) { in latchBuffer()
434 status_t err = updateTexImage(recomputeVisibleRegions, latchTime, expectedPresentTime); in latchBuffer()
506 void BufferLayer::notifyAvailableFrames(nsecs_t expectedPresentTime) { in notifyAvailableFrames() argument
507 const auto headFrameNumber = getHeadFrameNumber(expectedPresentTime); in notifyAvailableFrames()
509 const bool presentTimeIsCurrent = framePresentTimeIsCurrent(expectedPresentTime); in notifyAvailableFrames()
557 bool BufferLayer::allTransactionsSignaled(nsecs_t expectedPresentTime) { in allTransactionsSignaled() argument
558 const auto headFrameNumber = getHeadFrameNumber(expectedPresentTime); in allTransactionsSignaled()
647 uint64_t BufferLayer::getHeadFrameNumber(nsecs_t expectedPresentTime) const { in getHeadFrameNumber()
649 return getFrameNumber(expectedPresentTime); in getHeadFrameNumber()
DBufferLayerConsumer.h95 status_t updateTexImage(BufferRejecter* rejecter, nsecs_t expectedPresentTime,
DBufferLayerConsumer.cpp105 status_t BufferLayerConsumer::updateTexImage(BufferRejecter* rejecter, nsecs_t expectedPresentTime, in updateTexImage() argument
122 status_t err = acquireBufferLocked(&item, expectedPresentTime, maxFrameNumber); in updateTexImage()
DBufferStateLayer.cpp439 bool BufferStateLayer::framePresentTimeIsCurrent(nsecs_t expectedPresentTime) const { in framePresentTimeIsCurrent()
444 return mCurrentState.desiredPresentTime <= expectedPresentTime; in framePresentTimeIsCurrent()
DSurfaceFlinger.cpp2761 const nsecs_t expectedPresentTime = mExpectedPresentTime.load(); in handleTransactionLocked() local
2764 mCurrentState.traverse([expectedPresentTime](Layer* layer) { in handleTransactionLocked()
2765 layer->notifyAvailableFrames(expectedPresentTime); in handleTransactionLocked()
3091 const nsecs_t expectedPresentTime = mExpectedPresentTime.load(); in handlePageFlip() local
3105 if (layer->shouldPresentNow(expectedPresentTime)) { in handlePageFlip()
3130 if (layer->latchBuffer(visibleRegions, latchTime, expectedPresentTime)) { in handlePageFlip()
3310 const nsecs_t expectedPresentTime = mExpectedPresentTime.load(); in transactionIsReadyToBeApplied() local
3313 if (desiredPresentTime >= 0 && desiredPresentTime >= expectedPresentTime && in transactionIsReadyToBeApplied()
3314 desiredPresentTime < expectedPresentTime + s2ns(1)) { in transactionIsReadyToBeApplied()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionApplicationTest.cpp129 EXPECT_CALL(*mPrimaryDispSync, expectedPresentTime(_)).WillOnce(Return(systemTime())); in NotPlacedOnTransactionQueue()
162 EXPECT_CALL(*mPrimaryDispSync, expectedPresentTime(_)) in PlaceOnTransactionQueue()
185 EXPECT_CALL(*mPrimaryDispSync, expectedPresentTime(_)) in BlockedByPriorTransaction()
250 EXPECT_CALL(*mPrimaryDispSync, expectedPresentTime(_)) in TEST_F()
DRefreshRateSelectionTest.cpp148 EXPECT_CALL(*primaryDispSync, expectedPresentTime(_)).WillRepeatedly(Return(0)); in setupScheduler()
DSetFrameRateTest.cpp184 EXPECT_CALL(*primaryDispSync, expectedPresentTime(_)).WillRepeatedly(Return(0)); in setupScheduler()
DVSyncReactorTest.cpp284 EXPECT_THAT(mReactor.expectedPresentTime(mMockClock->now()), Eq(fakeTimestamp)); in TEST_F()
DCompositionTest.cpp150 EXPECT_CALL(*primaryDispSync, expectedPresentTime(_)).WillRepeatedly(Return(0)); in setupScheduler()
DDisplayTransactionTest.cpp3100 EXPECT_CALL(*mPrimaryDispSync, expectedPresentTime(_)).WillRepeatedly(Return(0)); in TEST_F()
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.h63 virtual nsecs_t expectedPresentTime(nsecs_t now) = 0;
181 nsecs_t expectedPresentTime(nsecs_t now);
DVSyncReactor.h47 nsecs_t expectedPresentTime(nsecs_t now) final;
DVSyncReactor.cpp231 nsecs_t VSyncReactor::expectedPresentTime(nsecs_t now) { in expectedPresentTime() function in android::scheduler::VSyncReactor
DScheduler.cpp410 return mPrimaryDispSync->expectedPresentTime(now); in getDispSyncExpectedPresentTime()
DDispSync.cpp860 nsecs_t DispSync::expectedPresentTime(nsecs_t now) { in expectedPresentTime() function in android::impl::DispSync
/frameworks/native/services/surfaceflinger/tests/utils/
DCallbackUtils.h80 void addExpectedPresentTime(nsecs_t expectedPresentTime) { in addExpectedPresentTime() argument
81 mExpectedPresentTime = expectedPresentTime; in addExpectedPresentTime()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockDispSync.h42 MOCK_METHOD1(expectedPresentTime, nsecs_t(nsecs_t));