Store pointers per-device
Previously, input dispatcher assumed that a single input device is
active. However, we are trying to add multi-device support.
In this CL, store the pointers inside touched windows on a per-device
basis. This CL should not cause any behaviour changes. We expect there
to be a single device active at a time still.
Bug: 211379801
Bug: 281806933
Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests
Change-Id: I73fc4adcf306bb49e153f3daeed68753e0632c86
Signed-off-by:
Siarhei Vishniakou <svv@google.com>
Showing
- include/input/PrintTools.h 3 additions, 0 deletionsinclude/input/PrintTools.h
- services/inputflinger/dispatcher/InputDispatcher.cpp 63 additions, 43 deletionsservices/inputflinger/dispatcher/InputDispatcher.cpp
- services/inputflinger/dispatcher/InputDispatcher.h 3 additions, 3 deletionsservices/inputflinger/dispatcher/InputDispatcher.h
- services/inputflinger/dispatcher/TouchState.cpp 40 additions, 34 deletionsservices/inputflinger/dispatcher/TouchState.cpp
- services/inputflinger/dispatcher/TouchState.h 8 additions, 7 deletionsservices/inputflinger/dispatcher/TouchState.h
- services/inputflinger/dispatcher/TouchedWindow.cpp 190 additions, 28 deletionsservices/inputflinger/dispatcher/TouchedWindow.cpp
- services/inputflinger/dispatcher/TouchedWindow.h 45 additions, 10 deletionsservices/inputflinger/dispatcher/TouchedWindow.h
Loading
Please register or sign in to comment