Lines Matching refs:sampleTime
722 nsecs_t sampleTime = frameTime; in consumeBatch() local
724 sampleTime -= RESAMPLE_LATENCY; in consumeBatch()
726 ssize_t split = findSampleNoLaterThan(batch, sampleTime); in consumeBatch()
740 resampleTouchState(sampleTime, static_cast<MotionEvent*>(*outEvent), next); in consumeBatch()
885 void InputConsumer::resampleTouchState(nsecs_t sampleTime, MotionEvent* event, in resampleTouchState() argument
938 alpha = float(sampleTime - current->eventTime) / delta; in resampleTouchState()
956 if (sampleTime > maxPredict) { in resampleTouchState()
960 sampleTime - current->eventTime, maxPredict - current->eventTime); in resampleTouchState()
962 sampleTime = maxPredict; in resampleTouchState()
964 alpha = float(current->eventTime - sampleTime) / delta; in resampleTouchState()
975 touchState.lastResample.eventTime = sampleTime; in resampleTouchState()
1020 event->addSample(sampleTime, touchState.lastResample.pointers); in resampleTouchState()