Home
last modified time | relevance | path

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

/frameworks/base/apct-tests/perftests/core/src/android/input/
DMotionPredictorBenchmark.kt116 val predictionTime = eventTime + eventInterval in timeRecordAndPredict() constant
117 val predicted = checkNotNull(predictor.predict(predictionTime.toNanos())) in timeRecordAndPredict()
118 assertTrue(predicted.eventTime <= (predictionTime + offset).toMillis()) in timeRecordAndPredict()
/frameworks/native/libs/input/
DMotionPredictor.cpp261 int64_t predictionTime = mBuffers->lastTimestamp(); in predict() local
268 const float predictionTimeWindow = futureTime - predictionTime; in predict()
275 for (size_t i = 0; i < static_cast<size_t>(predictedR.size()) && predictionTime <= futureTime; in predict()
313 predictionTime += mModel->config().predictionInterval; in predict()
323 event.getRawTransform(), event.getDownTime(), predictionTime, in predict()
326 prediction->addSample(predictionTime, &coords); in predict()