Lines Matching refs:averageFrameTime
551 void Swappy::swapSlower(const FrameDuration& averageFrameTime, in swapSlower() argument
557 if (!mPipelineMode && averageFrameTime.getTime(true) <= upperBound) { in swapSlower()
567 if (mPipelineModeAutoMode && averageFrameTime.getTime(false) < newBound) { in swapSlower()
577 void Swappy::swapFaster(const FrameDuration& averageFrameTime, in swapFaster() argument
588 if (!mPipelineModeAutoMode || averageFrameTime.getTime(false) > newBound) { in swapFaster()
605 const auto averageFrameTime = mFrameDurationsSum / mFrameDurations.size(); in updateSwapInterval() local
618 auto div_result = ::div((averageFrameTime.getTime(true) + FRAME_HYSTERESIS).count(), in updateSwapInterval()
626 ALOGV("Average cpu frame time = %.2f", (averageFrameTime.getCpuTime().count()) / 1e6f); in updateSwapInterval()
627 ALOGV("Average gpu frame time = %.2f", (averageFrameTime.getGpuTime().count()) / 1e6f); in updateSwapInterval()
632 if (averageFrameTime.getTime(mPipelineMode) > upperBound) { in updateSwapInterval()
633 swapSlower(averageFrameTime, upperBound, lowerBound, newSwapInterval); in updateSwapInterval()
636 (averageFrameTime.getTime(true) < lowerBound)) { in updateSwapInterval()
637 swapFaster(averageFrameTime, upperBound, lowerBound, newSwapInterval); in updateSwapInterval()
640 averageFrameTime.getTime(false) < upperBound - FRAME_HYSTERESIS) { in updateSwapInterval()