Lines Matching refs:coords
166 std::vector<PointerCoords> coords; in sync() local
179 coordsIndexForSlotNumber[slotNumber] = coords.size(); in sync()
180 coords.push_back(makePointerCoordsForSlot(mMotionAccumulator.getSlot(slotNumber))); in sync()
184 makeMotionArgs(when, readTime, AMOTION_EVENT_ACTION_MOVE, coords, properties)); in sync()
205 if (coords.size() - upSlots.size() + downSlots.size() == 0) { in sync()
221 coords, properties, /*actionButton=*/button)); in sync()
230 if (coords.size() == 1) { in sync()
235 out.push_back(makeMotionArgs(when, readTime, action, coords, properties, /*actionButton=*/0, in sync()
239 coords.erase(coords.begin() + indexToRemove); in sync()
253 const size_t coordsIndex = coords.size(); in sync()
254 const int32_t action = coords.empty() in sync()
259 coords.push_back(makePointerCoordsForSlot(mMotionAccumulator.getSlot(slotNumber))); in sync()
263 out.push_back(makeMotionArgs(when, readTime, action, coords, properties)); in sync()
269 out.push_back(makeMotionArgs(when, readTime, AMOTION_EVENT_ACTION_BUTTON_PRESS, coords, in sync()
277 nsecs_t when, nsecs_t readTime, int32_t action, const std::vector<PointerCoords>& coords, in makeMotionArgs() argument
279 LOG_ALWAYS_FATAL_IF(coords.size() != properties.size(), in makeMotionArgs()
285 MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, coords.size(), in makeMotionArgs()
286 properties.data(), coords.data(), /*xPrecision=*/1.0f, in makeMotionArgs()
293 PointerCoords coords; in makePointerCoordsForSlot() local
294 coords.clear(); in makePointerCoordsForSlot()
295 coords.setAxisValue(AMOTION_EVENT_AXIS_X, slot.getX()); in makePointerCoordsForSlot()
296 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, slot.getY()); in makePointerCoordsForSlot()
297 coords.setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, slot.getTouchMajor()); in makePointerCoordsForSlot()
298 coords.setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, slot.getTouchMinor()); in makePointerCoordsForSlot()
299 coords.setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, slot.getToolMajor()); in makePointerCoordsForSlot()
300 coords.setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, slot.getToolMinor()); in makePointerCoordsForSlot()
301 coords.setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, slot.getOrientation() * mOrientationScale); in makePointerCoordsForSlot()
302 coords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, slot.getPressure() * mPressureScale); in makePointerCoordsForSlot()
312 coords.setAxisValue(AMOTION_EVENT_AXIS_SIZE, size * mSizeScale); in makePointerCoordsForSlot()
313 return coords; in makePointerCoordsForSlot()