Searched refs:getFrameRateDivisor (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncPredictor.cpp | 712 RefreshRateSelector::getFrameRateDivisor(Fps::fromPeriodNsecs(mIdealPeriod.ns()), in snapToVsyncAlignedWithRenderRate() 741 const auto divisor = RefreshRateSelector::getFrameRateDivisor(displayFps, frameRate); in isVSyncInPhase()
|
D | RefreshRateSelector.cpp | 135 if (RefreshRateSelector::getFrameRateDivisor(mode1->getPeakFps(), in shouldEnableFrameRateOverride() 451 const int divisor = getFrameRateDivisor(refreshRate, layer.desiredRefreshRate); in calculateLayerScoreLocked() 465 getFrameRateDivisor(refreshRate, layer.desiredRefreshRate) > 0) { in calculateLayerScoreLocked() 1564 int RefreshRateSelector::getFrameRateDivisor(Fps displayRefreshRate, Fps layerFrameRate) { in getFrameRateDivisor() function in android::scheduler::RefreshRateSelector
|
D | Scheduler.cpp | 314 const auto numPeriod = RefreshRateSelector::getFrameRateDivisor(displayVsync, refreshRate); in getVsyncPeriod() 325 const auto divisor = RefreshRateSelector::getFrameRateDivisor(refreshRate, *frameRate); in getVsyncPeriod() 1043 divisor = RefreshRateSelector::getFrameRateDivisor(displayRefreshRate, frameRate); in updateAttachedChoreographersInternal()
|
D | RefreshRateSelector.h | 358 static int getFrameRateDivisor(Fps displayRefreshRate, Fps layerFrameRate);
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RefreshRateSelectorTest.cpp | 3340 TEST_P(RefreshRateSelectorTest, getFrameRateDivisor) { in TEST_P() argument 3345 EXPECT_EQ(1, RefreshRateSelector::getFrameRateDivisor(displayRefreshRate, frameRate)); in TEST_P() 3349 EXPECT_EQ(2, RefreshRateSelector::getFrameRateDivisor(displayRefreshRate, frameRate)); in TEST_P() 3353 EXPECT_EQ(0, RefreshRateSelector::getFrameRateDivisor(displayRefreshRate, frameRate)); in TEST_P() 3357 EXPECT_EQ(3, RefreshRateSelector::getFrameRateDivisor(displayRefreshRate, frameRate)); in TEST_P() 3361 EXPECT_EQ(4, RefreshRateSelector::getFrameRateDivisor(displayRefreshRate, frameRate)); in TEST_P() 3365 EXPECT_EQ(4, RefreshRateSelector::getFrameRateDivisor(displayRefreshRate, 22.5_Hz)); in TEST_P() 3367 EXPECT_EQ(0, RefreshRateSelector::getFrameRateDivisor(24_Hz, 25_Hz)); in TEST_P() 3368 EXPECT_EQ(0, RefreshRateSelector::getFrameRateDivisor(24_Hz, 23.976_Hz)); in TEST_P() 3369 EXPECT_EQ(0, RefreshRateSelector::getFrameRateDivisor(30_Hz, 29.97_Hz)); in TEST_P() [all …]
|