Lines Matching refs:readTime

1069             const nsecs_t readTime = when; // synthetic event  in configureSurface()  local
1070 abortPointerUsage(when, readTime, 0 /*policyFlags*/); in configureSurface()
1460 sync(rawEvent->when, rawEvent->readTime); in process()
1464 void TouchInputMapper::sync(nsecs_t when, nsecs_t readTime) { in sync() argument
1471 next.readTime = readTime; in sync()
1516 cancelTouch(mCurrentRawState.when, mCurrentRawState.readTime); in processRawTouches()
1542 mCurrentRawState.readTime = mLastRawState.readTime; in processRawTouches()
1544 cookAndDispatch(mCurrentRawState.when, mCurrentRawState.readTime); in processRawTouches()
1558 const nsecs_t readTime = when; // consider this synthetic event to be zero latency in processRawTouches() local
1559 cookAndDispatch(when, readTime); in processRawTouches()
1567 void TouchInputMapper::cookAndDispatch(nsecs_t when, nsecs_t readTime) { in cookAndDispatch() argument
1593 if (consumeRawTouches(when, readTime, policyFlags)) { in cookAndDispatch()
1606 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_DOWN, when, readTime, getDeviceId(), in cookAndDispatch()
1650 dispatchPointerUsage(when, readTime, policyFlags, pointerUsage); in cookAndDispatch()
1655 dispatchButtonRelease(when, readTime, policyFlags); in cookAndDispatch()
1656 dispatchHoverExit(when, readTime, policyFlags); in cookAndDispatch()
1657 dispatchTouches(when, readTime, policyFlags); in cookAndDispatch()
1658 dispatchHoverEnterAndMove(when, readTime, policyFlags); in cookAndDispatch()
1659 dispatchButtonPress(when, readTime, policyFlags); in cookAndDispatch()
1668 synthesizeButtonKeys(getContext(), AKEY_EVENT_ACTION_UP, when, readTime, getDeviceId(), mSource, in cookAndDispatch()
1781 const nsecs_t readTime = when; in timeoutExpired() local
1782 dispatchPointerGestures(when, readTime, 0 /*policyFlags*/, true /*isTimeout*/); in timeoutExpired()
1804 bool TouchInputMapper::consumeRawTouches(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in consumeRawTouches() argument
1815 dispatchVirtualKey(when, readTime, policyFlags, AKEY_EVENT_ACTION_UP, in consumeRawTouches()
1842 dispatchVirtualKey(when, readTime, policyFlags, AKEY_EVENT_ACTION_UP, in consumeRawTouches()
1873 dispatchVirtualKey(when, readTime, policyFlags, AKEY_EVENT_ACTION_DOWN, in consumeRawTouches()
1904 void TouchInputMapper::dispatchVirtualKey(nsecs_t when, nsecs_t readTime, uint32_t policyFlags, in dispatchVirtualKey() argument
1912 NotifyKeyArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), in dispatchVirtualKey()
1918 void TouchInputMapper::abortTouches(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in abortTouches() argument
1923 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_CANCEL, 0, 0, in abortTouches()
1933 void TouchInputMapper::dispatchTouches(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in dispatchTouches() argument
1943 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_MOVE, 0, 0, in dispatchTouches()
1978 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_POINTER_UP, 0, in dispatchTouches()
1993 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_MOVE, 0, 0, in dispatchTouches()
2011 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_POINTER_DOWN, in dispatchTouches()
2021 void TouchInputMapper::dispatchHoverExit(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in dispatchHoverExit() argument
2026 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_HOVER_EXIT, 0, 0, in dispatchHoverExit()
2037 void TouchInputMapper::dispatchHoverEnterAndMove(nsecs_t when, nsecs_t readTime, in dispatchHoverEnterAndMove() argument
2043 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_HOVER_ENTER, in dispatchHoverEnterAndMove()
2053 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_HOVER_MOVE, 0, 0, in dispatchHoverEnterAndMove()
2063 void TouchInputMapper::dispatchButtonRelease(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in dispatchButtonRelease() argument
2071 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_BUTTON_RELEASE, in dispatchButtonRelease()
2080 void TouchInputMapper::dispatchButtonPress(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in dispatchButtonPress() argument
2088 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_BUTTON_PRESS, in dispatchButtonPress()
2376 void TouchInputMapper::dispatchPointerUsage(nsecs_t when, nsecs_t readTime, uint32_t policyFlags, in dispatchPointerUsage() argument
2379 abortPointerUsage(when, readTime, policyFlags); in dispatchPointerUsage()
2385 dispatchPointerGestures(when, readTime, policyFlags, false /*isTimeout*/); in dispatchPointerUsage()
2388 dispatchPointerStylus(when, readTime, policyFlags); in dispatchPointerUsage()
2391 dispatchPointerMouse(when, readTime, policyFlags); in dispatchPointerUsage()
2398 void TouchInputMapper::abortPointerUsage(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in abortPointerUsage() argument
2401 abortPointerGestures(when, readTime, policyFlags); in abortPointerUsage()
2404 abortPointerStylus(when, readTime, policyFlags); in abortPointerUsage()
2407 abortPointerMouse(when, readTime, policyFlags); in abortPointerUsage()
2416 void TouchInputMapper::dispatchPointerGestures(nsecs_t when, nsecs_t readTime, uint32_t policyFlags, in dispatchPointerGestures() argument
2515 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_CANCEL, 0, in dispatchPointerGestures()
2533 dispatchMotion(when, readTime, policyFlags, mSource, in dispatchPointerGestures()
2547 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_MOVE, 0, flags, in dispatchPointerGestures()
2567 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_POINTER_DOWN, in dispatchPointerGestures()
2578 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_HOVER_MOVE, 0, in dispatchPointerGestures()
2602 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerGestures()
2628 void TouchInputMapper::abortPointerGestures(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in abortPointerGestures() argument
2633 dispatchMotion(when, readTime, policyFlags, mSource, AMOTION_EVENT_ACTION_CANCEL, 0, 0, in abortPointerGestures()
3406 void TouchInputMapper::dispatchPointerStylus(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in dispatchPointerStylus() argument
3433 dispatchPointerSimple(when, readTime, policyFlags, down, hovering); in dispatchPointerStylus()
3436 void TouchInputMapper::abortPointerStylus(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in abortPointerStylus() argument
3437 abortPointerSimple(when, readTime, policyFlags); in abortPointerStylus()
3440 void TouchInputMapper::dispatchPointerMouse(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in dispatchPointerMouse() argument
3486 dispatchPointerSimple(when, readTime, policyFlags, down, hovering); in dispatchPointerMouse()
3489 void TouchInputMapper::abortPointerMouse(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in abortPointerMouse() argument
3490 abortPointerSimple(when, readTime, policyFlags); in abortPointerMouse()
3495 void TouchInputMapper::dispatchPointerSimple(nsecs_t when, nsecs_t readTime, uint32_t policyFlags, in dispatchPointerSimple() argument
3515 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3529 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3545 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3556 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3571 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3582 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3604 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3623 void TouchInputMapper::abortPointerSimple(nsecs_t when, nsecs_t readTime, uint32_t policyFlags) { in abortPointerSimple() argument
3627 dispatchPointerSimple(when, readTime, policyFlags, false, false); in abortPointerSimple()
3630 void TouchInputMapper::dispatchMotion(nsecs_t when, nsecs_t readTime, uint32_t policyFlags, in dispatchMotion() argument
3684 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, deviceId, source, displayId, in dispatchMotion()
3722 void TouchInputMapper::cancelTouch(nsecs_t when, nsecs_t readTime) { in cancelTouch() argument
3723 abortPointerUsage(when, readTime, 0 /*policyFlags*/); in cancelTouch()
3724 abortTouches(when, readTime, 0 /* policyFlags*/); in cancelTouch()