Put MultiTouchMotionAccumulator in its own files
This will let us use it in the new TouchpadInputMapper.
The change mostly just moves the code into new files, but also makes a
few other small cleanups:
* Directly includes stuff the code depends on, rather than indirectly
through EventHub.h
* Renames private variables of Slot to capitalize acronyms consistently
and in line with Google C++ style (i.e. any case of "AbsMT" replaced
with "AbsMt")
* Rewraps a comment in ::configure
* Uses ALOGW_IF to avoid another nested if block in ::process
* Put all the initializers on one line in the constructor, to satisfy
clang-format
The inline was also removed from Slot::getToolType, due to compile
errors complaining that it wasn't defined otherwise.
Bug: 251196347
Test: atest inputflinger_tests
Test: manual on device
Change-Id: I538178a2222904c5bab5622d257d7747842358a7
diff --git a/services/inputflinger/reader/Android.bp b/services/inputflinger/reader/Android.bp
index a53fcd7..24168a1 100644
--- a/services/inputflinger/reader/Android.bp
+++ b/services/inputflinger/reader/Android.bp
@@ -55,6 +55,7 @@
"mapper/accumulator/CursorButtonAccumulator.cpp",
"mapper/accumulator/CursorScrollAccumulator.cpp",
"mapper/accumulator/HidUsageAccumulator.cpp",
+ "mapper/accumulator/MultiTouchMotionAccumulator.cpp",
"mapper/accumulator/SingleTouchMotionAccumulator.cpp",
"mapper/accumulator/TouchButtonAccumulator.cpp",
],