OSDN Git Service

Prevent processing touch after receiving an invalid tracking id
authorArthur Hung <arthurhung@google.com>
Sat, 19 Jun 2021 02:04:46 +0000 (02:04 +0000)
committerArthur Hung <arthurhung@google.com>
Mon, 28 Jun 2021 06:45:11 +0000 (06:45 +0000)
commit9ad189451df1b2ca53d08945507b00a0bdde445b
tree624671295963e360d842f9152828169d94685653
parent963026b842e6750d69a4f6c1bf125f94bd9b97a9
Prevent processing touch after receiving an invalid tracking id

Touch driver would send an INVALID_TRACKING_ID value when touch
released from touch screen. That tells input framework should send an
up or pointer up event and stop processing the pointer, so if any
unexpected data is also updating from driver side, we have to prevent
it becomes as a valid pointer.

Bug: 190460965
Bug: 190144579
Bug: 190860244
Bug: 188375341
Test: atest inputflingger_tests
Change-Id: Iee15ab7f7edd19f0cfe1ee27dcaf17c301e8f780
services/inputflinger/reader/mapper/MultiTouchInputMapper.cpp
services/inputflinger/reader/mapper/MultiTouchInputMapper.h
services/inputflinger/reader/mapper/TouchInputMapper.cpp
services/inputflinger/tests/InputReader_test.cpp