Home
last modified time | relevance | path

Searched refs:isVSyncInPhase (Results 1 – 8 of 8) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncPredictorTest.cpp509 TEST_F(VSyncPredictorTest, isVSyncInPhase) { in TEST_F() argument
530 tracker.isVSyncInPhase(mNow + i * mPeriod - bias, in TEST_F()
554 EXPECT_FALSE(tracker.isVSyncInPhase(mNow, renderRateFps)); in TEST_F()
555 EXPECT_TRUE(tracker.isVSyncInPhase(mNow + mPeriod, renderRateFps)); in TEST_F()
556 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 2 * mPeriod, renderRateFps)); in TEST_F()
557 EXPECT_TRUE(tracker.isVSyncInPhase(mNow + 3 * mPeriod, renderRateFps)); in TEST_F()
571 EXPECT_TRUE(tracker.isVSyncInPhase(mNow + 1 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 2))); in TEST_F()
572 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 2 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 2))); in TEST_F()
573 EXPECT_TRUE(tracker.isVSyncInPhase(mNow + 3 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 2))); in TEST_F()
575 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 5 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 4))); in TEST_F()
[all …]
DVSyncDispatchRealtimeTest.cpp51 bool isVSyncInPhase(nsecs_t, Fps) final { return false; } in isVSyncInPhase() function in android::scheduler::StubTracker
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockVSyncTracker.h37 MOCK_METHOD(bool, isVSyncInPhase, (nsecs_t, Fps), (override));
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncTracker.h90 virtual bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) = 0;
DVSyncPredictor.h67 bool isVSyncInPhase(nsecs_t timePoint, Fps frameRate) final EXCLUDES(mMutex);
105 bool isVSyncInPhase(Model, nsecs_t vsync, Fps frameRate);
DVSyncPredictor.cpp348 bool VSyncPredictor::isVSyncInPhase(nsecs_t timePoint, Fps frameRate) { in isVSyncInPhase() function in android::scheduler::VSyncPredictor
364 return timeline.isVSyncInPhase(model, vsync, frameRate); in isVSyncInPhase()
369 return mTimelines.back().isVSyncInPhase(model, vsync, frameRate); in isVSyncInPhase()
735 bool VSyncPredictor::VsyncTimeline::isVSyncInPhase(Model model, nsecs_t vsync, Fps frameRate) { in isVSyncInPhase() function in android::scheduler::VSyncPredictor::VsyncTimeline
DScheduler.cpp294 return getVsyncSchedule()->getTracker().isVSyncInPhase(expectedVsyncTime.ns(), *frameRate); in isVsyncValid()
298 return getVsyncSchedule()->getTracker().isVSyncInPhase(expectedVsyncTime.ns(), frameRate); in isVsyncInPhase()
DEventThread.cpp577 .isVSyncInPhase(vsyncData.preferredExpectedPresentationTime(), in shouldConsumeEvent()