Searched refs:predictionPoints (Results 1 – 1 of 1) sorted by relevance
150 MotionEvent makeMotionEvent(const std::vector<PredictionPoint>& predictionPoints) { in makeMotionEvent() argument154 .x(predictionPoints[0].position[1]) in makeMotionEvent()155 .y(predictionPoints[0].position[0]) in makeMotionEvent()156 .axis(AMOTION_EVENT_AXIS_PRESSURE, predictionPoints[0].pressure); in makeMotionEvent()160 .eventTime(predictionPoints[0].targetTimestamp) in makeMotionEvent()163 for (size_t i = 1; i < predictionPoints.size(); ++i) { in makeMotionEvent()166 .x(predictionPoints[i].position[1]) in makeMotionEvent()167 .y(predictionPoints[i].position[0]) in makeMotionEvent()168 .axis(AMOTION_EVENT_AXIS_PRESSURE, predictionPoints[i].pressure) in makeMotionEvent()170 predictionEvent.addSample(predictionPoints[i].targetTimestamp, &coords); in makeMotionEvent()[all …]