Skip to content

Commit 8d8cb62

Browse files
Treehugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Revert "InputTracer: Ensure 0 coordinate values are traced"" into main
2 parents 4f9c579 + e08f9f0 commit 8d8cb62

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

services/inputflinger/dispatcher/trace/AndroidInputEventProtoConverter.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
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

2422
namespace 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();

0 commit comments

Comments
 (0)