Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerInfoTest.cpp86 const auto averageFrameTime = calculateAverageFrameTime(); in TEST_F() local
87 ASSERT_TRUE(averageFrameTime.has_value()); in TEST_F()
88 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F()
103 const auto averageFrameTime = calculateAverageFrameTime(); in TEST_F() local
104 ASSERT_TRUE(averageFrameTime.has_value()); in TEST_F()
105 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F()
165 const auto averageFrameTime = calculateAverageFrameTime(); in TEST_F() local
166 ASSERT_TRUE(averageFrameTime.has_value()); in TEST_F()
167 ASSERT_EQ(kExpectedFps, Fps::fromPeriodNsecs(*averageFrameTime)); in TEST_F()
194 const auto averageFrameTime = calculateAverageFrameTime(); in TEST_F() local
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerInfo.cpp269 const auto averageFrameTime = static_cast<double>(totalDeltas) / static_cast<double>(numDeltas); in calculateAverageFrameTime() local
270 return static_cast<nsecs_t>(averageFrameTime); in calculateAverageFrameTime()
282 if (const auto averageFrameTime = calculateAverageFrameTime()) { in calculateRefreshRateIfPossible() local
283 const auto refreshRate = Fps::fromPeriodNsecs(*averageFrameTime); in calculateRefreshRateIfPossible()