• Home
  • Raw
  • Download

Lines Matching refs:pointerId

576 bool VirtualTouchscreen::isValidPointerId(int32_t pointerId, UinputAction uinputAction) {  in isValidPointerId()  argument
577 if (pointerId < -1 || pointerId >= (int)MAX_POINTERS) { in isValidPointerId()
579 pointerId, MAX_POINTERS - 0); in isValidPointerId()
583 if (uinputAction == UinputAction::PRESS && mActivePointers.test(pointerId)) { in isValidPointerId()
585 pointerId); in isValidPointerId()
588 if (uinputAction == UinputAction::RELEASE && !mActivePointers.test(pointerId)) { in isValidPointerId()
590 pointerId, mFd.get()); in isValidPointerId()
596 bool VirtualTouchscreen::writeTouchEvent(int32_t pointerId, int32_t toolType, int32_t action, in writeTouchEvent() argument
604 if (!isValidPointerId(pointerId, uinputAction)) { in writeTouchEvent()
607 if (!writeInputEvent(EV_ABS, ABS_MT_SLOT, pointerId, eventTime)) { in writeTouchEvent()
618 if (uinputAction == UinputAction::PRESS && !handleTouchDown(pointerId, eventTime)) { in writeTouchEvent()
621 if (uinputAction == UinputAction::RELEASE && !handleTouchUp(pointerId, eventTime)) { in writeTouchEvent()
643 bool VirtualTouchscreen::handleTouchUp(int32_t pointerId, std::chrono::nanoseconds eventTime) { in handleTouchUp() argument
649 mActivePointers.reset(pointerId); in handleTouchUp()
650 ALOGD_IF(isDebug(), "Pointer %d erased from the touchscreen %d", pointerId, mFd.get()); in handleTouchUp()
663 bool VirtualTouchscreen::handleTouchDown(int32_t pointerId, std::chrono::nanoseconds eventTime) { in handleTouchDown() argument
673 pointerId, mFd.get()); in handleTouchDown()
676 mActivePointers.set(pointerId); in handleTouchDown()
677 ALOGD_IF(isDebug(), "Added pointer %d under touchscreen %d in the map", pointerId, mFd.get()); in handleTouchDown()
678 if (!writeInputEvent(EV_ABS, ABS_MT_TRACKING_ID, static_cast<int32_t>(pointerId), eventTime)) { in handleTouchDown()