Lines Matching refs:expectedPresentTime

315 bool isFrameIntervalOnCadence(TimePoint expectedPresentTime, TimePoint lastExpectedPresentTimestamp,
322 expectedPresentTime.ns() - lastExpectedPresentTimestamp.ns();
335 std::abs(expectedPresentTime.ns() - calculatedExpectedPresentTimeNs);
339 bool isExpectedPresentWithinTimeout(TimePoint expectedPresentTime,
354 if (expectedPresentTime.ns() < lastExpectedPresentTimestamp.ns() + timeoutOpt->ns()) {
359 return std::abs(expectedPresentTime.ns() -
2637 pacesetterFrameTarget.expectedPresentTime());
2653 mPowerAdvisor->setExpectedPresentTime(pacesetterFrameTarget.expectedPresentTime());
2697 pacesetterFrameTarget.expectedPresentTime(),
2833 mScheduler->getNextFrameInterval(pacesetterId, pacesetterTarget.expectedPresentTime());
4334 void SurfaceFlinger::onExpectedPresentTimePosted(TimePoint expectedPresentTime,
4349 expectedPresentTime, renderRate, timeoutOpt);
4354 TimePoint expectedPresentTime,
4361 data.lastExpectedPresentTimestamp = expectedPresentTime;
4369 isFrameIntervalOnCadence(expectedPresentTime, lastExpectedPresentTimestamp,
4373 isExpectedPresentWithinTimeout(expectedPresentTime, lastExpectedPresentTimestamp,
4418 TimePoint expectedPresentTime = data.lastExpectedPresentTimestamp;
4423 predictionOpt ? predictionOpt->presentTime : expectedPresentTime.ns());
4428 expectedPresentTime =
4432 if (expectedPresentTime < TimePoint::now()) {
4433 expectedPresentTime =
4437 expectedPresentTime += mScheduler->getVsyncSchedule(displayId)->period();
4440 const auto status = getHwComposer().notifyExpectedPresent(displayId, expectedPresentTime,
4837 const TimePoint expectedPresentTime = mScheduler->expectedPresentTimeForPacesetter();
4844 if (!transaction.isAutoTimestamp && desiredPresentTime >= expectedPresentTime &&
4845 desiredPresentTime < expectedPresentTime + 1s) {
4846 ATRACE_FORMAT("not current desiredPresentTime: %" PRId64 " expectedPresentTime: %" PRId64,
4847 desiredPresentTime, expectedPresentTime);
4858 !mScheduler->isVsyncValid(expectedPresentTime, transaction.originUid)) {
4859 ATRACE_FORMAT("!isVsyncValid expectedPresentTime: %" PRId64 " uid: %d", expectedPresentTime,
4866 if (transaction.isAutoTimestamp && frameIsEarly(expectedPresentTime, vsyncId)) {
4867 ATRACE_FORMAT("frameIsEarly vsyncId: %" PRId64 " expectedPresentTime: %" PRId64,
4868 transaction.frameTimelineInfo.vsyncId, expectedPresentTime);
5127 bool SurfaceFlinger::frameIsEarly(TimePoint expectedPresentTime, VsyncId vsyncId) const {
5136 if (std::chrono::abs(predictedPresentTime - expectedPresentTime) >=
5143 return predictedPresentTime >= expectedPresentTime &&
5144 predictedPresentTime - expectedPresentTime >= earlyLatchVsyncThreshold;