Home | History | Annotate | Download | only in input

Lines Matching refs:sampleTime

529         nsecs_t sampleTime = frameTime;
531 sampleTime -= RESAMPLE_LATENCY;
533 ssize_t split = findSampleNoLaterThan(batch, sampleTime);
547 resampleTouchState(sampleTime, static_cast<MotionEvent*>(*outEvent), next);
683 void InputConsumer::resampleTouchState(nsecs_t sampleTime, MotionEvent* event,
726 // So current->eventTime <= sampleTime <= future.eventTime.
736 alpha = float(sampleTime - current->eventTime) / delta;
739 // So other->eventTime <= current->eventTime <= sampleTime.
754 if (sampleTime > maxPredict) {
758 sampleTime - current->eventTime, maxPredict - current->eventTime);
760 sampleTime = maxPredict;
762 alpha = float(current->eventTime - sampleTime) / delta;
771 touchState.lastResample.eventTime = sampleTime;
805 event->addSample(sampleTime, touchState.lastResample.pointers);