File tree Expand file tree Collapse file tree
services/inputflinger/dispatcher/trace Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717#include " AndroidInputEventProtoConverter.h"
1818
19- #include < android/input.h>
2019#include < android-base/logging.h>
21- #include < input/Input.h>
2220#include < perfetto/trace/android/android_input_event.pbzero.h>
2321
2422namespace android ::inputdispatcher::trace {
@@ -73,12 +71,6 @@ void AndroidInputEventProtoConverter::toProtoMotionEvent(const TracedMotionEvent
7371
7472 const auto & coords = event.pointerCoords [i];
7573 auto bits = BitSet64 (coords.bits );
76- if (isFromSource (event.source , AINPUT_SOURCE_CLASS_POINTER)) {
77- // Always include the X and Y axes for pointer events, since the
78- // bits will not be marked if the value is 0.
79- bits.markBit (AMOTION_EVENT_AXIS_X);
80- bits.markBit (AMOTION_EVENT_AXIS_Y);
81- }
8274 for (int32_t axisIndex = 0 ; !bits.isEmpty (); axisIndex++) {
8375 const auto axis = bits.clearFirstMarkedBit ();
8476 auto axisEntry = pointer->add_axis_value ();
You can’t perform that action at this time.
0 commit comments