/frameworks/native/services/surfaceflinger/ |
D | BufferLayer.h | 91 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;
|
D | BufferQueueLayer.cpp | 101 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 …]
|
D | BufferQueueLayer.h | 55 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;
|
D | BufferStateLayer.h | 50 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;
|
D | BufferLayer.cpp | 393 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()
|
D | BufferLayerConsumer.h | 95 status_t updateTexImage(BufferRejecter* rejecter, nsecs_t expectedPresentTime,
|
D | BufferLayerConsumer.cpp | 105 status_t BufferLayerConsumer::updateTexImage(BufferRejecter* rejecter, nsecs_t expectedPresentTime, in updateTexImage() argument 122 status_t err = acquireBufferLocked(&item, expectedPresentTime, maxFrameNumber); in updateTexImage()
|
D | BufferStateLayer.cpp | 439 bool BufferStateLayer::framePresentTimeIsCurrent(nsecs_t expectedPresentTime) const { in framePresentTimeIsCurrent() 444 return mCurrentState.desiredPresentTime <= expectedPresentTime; in framePresentTimeIsCurrent()
|
D | SurfaceFlinger.cpp | 2761 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/ |
D | TransactionApplicationTest.cpp | 129 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()
|
D | RefreshRateSelectionTest.cpp | 148 EXPECT_CALL(*primaryDispSync, expectedPresentTime(_)).WillRepeatedly(Return(0)); in setupScheduler()
|
D | SetFrameRateTest.cpp | 184 EXPECT_CALL(*primaryDispSync, expectedPresentTime(_)).WillRepeatedly(Return(0)); in setupScheduler()
|
D | VSyncReactorTest.cpp | 284 EXPECT_THAT(mReactor.expectedPresentTime(mMockClock->now()), Eq(fakeTimestamp)); in TEST_F()
|
D | CompositionTest.cpp | 150 EXPECT_CALL(*primaryDispSync, expectedPresentTime(_)).WillRepeatedly(Return(0)); in setupScheduler()
|
D | DisplayTransactionTest.cpp | 3100 EXPECT_CALL(*mPrimaryDispSync, expectedPresentTime(_)).WillRepeatedly(Return(0)); in TEST_F()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | DispSync.h | 63 virtual nsecs_t expectedPresentTime(nsecs_t now) = 0; 181 nsecs_t expectedPresentTime(nsecs_t now);
|
D | VSyncReactor.h | 47 nsecs_t expectedPresentTime(nsecs_t now) final;
|
D | VSyncReactor.cpp | 231 nsecs_t VSyncReactor::expectedPresentTime(nsecs_t now) { in expectedPresentTime() function in android::scheduler::VSyncReactor
|
D | Scheduler.cpp | 410 return mPrimaryDispSync->expectedPresentTime(now); in getDispSyncExpectedPresentTime()
|
D | DispSync.cpp | 860 nsecs_t DispSync::expectedPresentTime(nsecs_t now) { in expectedPresentTime() function in android::impl::DispSync
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | CallbackUtils.h | 80 void addExpectedPresentTime(nsecs_t expectedPresentTime) { in addExpectedPresentTime() argument 81 mExpectedPresentTime = expectedPresentTime; in addExpectedPresentTime()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockDispSync.h | 42 MOCK_METHOD1(expectedPresentTime, nsecs_t(nsecs_t));
|