Searched refs:fromPeriodNsecs (Results 1 – 14 of 14) sorted by relevance
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncPredictorTest.cpp | 74 const auto refreshRate = Fps::fromPeriodNsecs(period); in displayMode() 531 Fps::fromPeriodNsecs(divisor * mPeriod))) in TEST_F() 551 const auto renderRateFps = Fps::fromPeriodNsecs(mPeriod * 2); 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() 576 EXPECT_TRUE(tracker.isVSyncInPhase(mNow + 3 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 4))); in TEST_F() 577 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 4 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 4))); in TEST_F() 578 EXPECT_FALSE(tracker.isVSyncInPhase(mNow + 6 * mPeriod, Fps::fromPeriodNsecs(mPeriod * 4))); in TEST_F() [all …]
|
D | FpsTest.cpp | 33 EXPECT_FALSE(Fps::fromPeriodNsecs(0).isValid()); in TEST() 35 const Fps fps = Fps::fromPeriodNsecs(16'666'667); in TEST() 72 const auto fps = Fps::fromPeriodNsecs(16'666'665); in TEST()
|
D | LayerInfoTest.cpp | 88 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F() 105 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F() 167 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F() 196 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F()
|
D | SchedulerTest.cpp | 574 const auto refreshRate = Fps::fromPeriodNsecs(500); in TEST_F() 575 auto frameRate = Fps::fromPeriodNsecs(1000); in TEST_F() 602 EXPECT_EQ(Fps::fromPeriodNsecs(1000), in TEST_F() 605 EXPECT_EQ(Fps::fromPeriodNsecs(1000), in TEST_F() 611 EXPECT_EQ(Fps::fromPeriodNsecs(1000), in TEST_F() 615 frameRate = Fps::fromPeriodNsecs(2000); in TEST_F() 619 EXPECT_EQ(Fps::fromPeriodNsecs(2000), in TEST_F() 622 EXPECT_EQ(Fps::fromPeriodNsecs(2000), in TEST_F()
|
D | SurfaceFlinger_SetPowerModeInternalTest.cpp | 108 onDisplayModeChanged(DisplayModeFps(Fps::fromPeriodNsecs(DEFAULT_VSYNC_PERIOD)), in setupResetModelCallExpectations()
|
D | SurfaceFlinger_NotifyExpectedPresentTest.cpp | 354 Fps::fromPeriodNsecs(frameIntervalNs), kTimeoutNs); in TEST_F()
|
D | VSyncReactorTest.cpp | 89 const auto refreshRate = Fps::fromPeriodNsecs(vsyncPeriod); in displayMode()
|
D | FrameTimelineTest.cpp | 59 constexpr Fps RR_11 = Fps::fromPeriodNsecs(11); 60 constexpr Fps RR_30 = Fps::fromPeriodNsecs(30); 697 Fps refreshRate = Fps::fromPeriodNsecs(32); in TEST_F() 727 Fps refreshRate = Fps::fromPeriodNsecs(16); in TEST_F() 757 Fps refreshRate = Fps::fromPeriodNsecs(32); in TEST_F()
|
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/ |
D | Fps.h | 47 static constexpr Fps fromPeriodNsecs(nsecs_t period) { in fromPeriodNsecs() function 171 return Fps::fromPeriodNsecs(fps.getPeriodNsecs() * static_cast<nsecs_t>(divisor));
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | DisplayMode.h | 85 mDisplayMode->mVsyncRate = Fps::fromPeriodNsecs(vsyncPeriod); in setVsyncPeriod() 148 ? Fps::fromPeriodNsecs(mVrrConfig->minFrameIntervalNs) in getPeakFps()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerInfo.cpp | 174 return Fps::fromPeriodNsecs(totalTime / (numFrames - 1)); in getFps() 283 const auto refreshRate = Fps::fromPeriodNsecs(*averageFrameTime); in calculateRefreshRateIfPossible()
|
D | VSyncPredictor.cpp | 712 RefreshRateSelector::getFrameRateDivisor(Fps::fromPeriodNsecs(mIdealPeriod.ns()), in snapToVsyncAlignedWithRenderRate() 740 Fps displayFps = Fps::fromPeriodNsecs(mIdealPeriod.ns()); in isVSyncInPhase()
|
D | Scheduler.cpp | 614 return Fps::fromPeriodNsecs(frameInterval.ns()); in getNextFrameInterval()
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.cpp | 2299 const Fps refreshRate = Fps::fromPeriodNsecs( in onRefreshRateChangedDebug() 2681 Fps::fromPeriodNsecs(vsyncPeriod.ns()), in commit()
|