Home
last modified time | relevance | path

Searched refs:vrrTracker (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncPredictorTest.cpp691 VSyncPredictor vrrTracker{std::make_unique<ClockWrapper>(mClock), kMode, kHistorySize, in TEST_F() local
694 vrrTracker.setRenderRate(Fps::fromPeriodNsecs(1000), /*applyImmediately*/ false); in TEST_F()
695 vrrTracker.addVsyncTimestamp(0); in TEST_F()
696 EXPECT_EQ(1000, vrrTracker.nextAnticipatedVSyncTimeFrom(700)); in TEST_F()
697 EXPECT_EQ(2000, vrrTracker.nextAnticipatedVSyncTimeFrom(1000, 1000)); in TEST_F()
700 EXPECT_EQ(6000, vrrTracker.nextAnticipatedVSyncTimeFrom(5000, 5000)); in TEST_F()
702 vrrTracker.setRenderRate(Fps::fromPeriodNsecs(2000), /*applyImmediately*/ false); in TEST_F()
703 EXPECT_EQ(5000, vrrTracker.nextAnticipatedVSyncTimeFrom(4000, 4000)); in TEST_F()
704 EXPECT_EQ(6000, vrrTracker.nextAnticipatedVSyncTimeFrom(5000, 5000)); in TEST_F()
705 EXPECT_EQ(8000, vrrTracker.nextAnticipatedVSyncTimeFrom(6000, 6000)); in TEST_F()
[all …]
DSchedulerTest.cpp581 std::shared_ptr<VSyncPredictor> vrrTracker = in TEST_F() local
588 vrrTracker, in TEST_F()
595 vrrTracker); in TEST_F()
598 vrrTracker->addVsyncTimestamp(0); in TEST_F()
600 vrrTracker->nextAnticipatedVSyncTimeFrom(700); in TEST_F()
610 vrrTracker->onFrameBegin(TimePoint::fromNs(2000), TimePoint::fromNs(1500)); in TEST_F()