Use input token in PointerCaptureRequest
Instead of sending boolean to indicate the capture state, InputDispatcher now sends an input window token that requests a pointer capture, or nullptr otherwise. This is useful for some InputReader implementations. Also, this token can be used to verify if a pointer capture changed event from a reader is valid. Bug: 259346762 Bug: 301628662 Test: inputflinger_tests Test: android.view.cts.PointerCaptureTest WindowFocusTests#testPointerCapture Change-Id: Ie8343db6744dc2080f7f1dcff5a630be5c87fa3e
Showing
- include/input/Input.h 8 additions, 6 deletionsinclude/input/Input.h
- services/inputflinger/PointerChoreographer.cpp 1 addition, 1 deletionservices/inputflinger/PointerChoreographer.cpp
- services/inputflinger/dispatcher/Entry.cpp 1 addition, 1 deletionservices/inputflinger/dispatcher/Entry.cpp
- services/inputflinger/dispatcher/InputDispatcher.cpp 21 additions, 18 deletionsservices/inputflinger/dispatcher/InputDispatcher.cpp
- services/inputflinger/dispatcher/InputDispatcher.h 2 additions, 1 deletionservices/inputflinger/dispatcher/InputDispatcher.h
- services/inputflinger/reader/mapper/CursorInputMapper.cpp 1 addition, 1 deletionservices/inputflinger/reader/mapper/CursorInputMapper.cpp
- services/inputflinger/reader/mapper/TouchInputMapper.cpp 3 additions, 3 deletionsservices/inputflinger/reader/mapper/TouchInputMapper.cpp
- services/inputflinger/reader/mapper/TouchpadInputMapper.cpp 2 additions, 2 deletionsservices/inputflinger/reader/mapper/TouchpadInputMapper.cpp
- services/inputflinger/tests/CursorInputMapper_test.cpp 1 addition, 1 deletionservices/inputflinger/tests/CursorInputMapper_test.cpp
- services/inputflinger/tests/FakeInputReaderPolicy.cpp 2 additions, 2 deletionsservices/inputflinger/tests/FakeInputReaderPolicy.cpp
- services/inputflinger/tests/FakeInputReaderPolicy.h 1 addition, 1 deletionservices/inputflinger/tests/FakeInputReaderPolicy.h
- services/inputflinger/tests/InputDispatcher_test.cpp 44 additions, 19 deletionsservices/inputflinger/tests/InputDispatcher_test.cpp
- services/inputflinger/tests/InputReader_test.cpp 9 additions, 9 deletionsservices/inputflinger/tests/InputReader_test.cpp
- services/inputflinger/tests/PointerChoreographer_test.cpp 8 additions, 4 deletionsservices/inputflinger/tests/PointerChoreographer_test.cpp
- services/inputflinger/tests/fuzzers/TouchpadInputFuzzer.cpp 3 additions, 2 deletionsservices/inputflinger/tests/fuzzers/TouchpadInputFuzzer.cpp
Loading
Please register or sign in to comment