From 0bdbea19bf945bd41c42dec205d09f53ed158c41 Mon Sep 17 00:00:00 2001 From: jioana Date: Sat, 10 Aug 2024 19:26:04 +0000 Subject: Adding an InputEventActionType enum field to InputEventTimeline. This is needed for the Per Device Input Latency metrics which will be implemented, because we would like to filter the data per input event action type. This enum corresponds to the InputEventType enum field that will be added to the InputEventLatency atom. InputEventTimeline already had a bool field isDown that was true only if the Motion Event was an ACTION_DOWN, so we were dividing the latency values into two categories: DOWN vs other types of events. The isDown field is still needed for the InputEventLatencySketch atom, but should be deprecated with this atom once the new atom is recording data. Bug: b/270049345 Test: atest inputflinger_tests Flag: EXEMPT bugfix Change-Id: Iabccb7217820d4ed070378d8f4d8f0410a2efbdf --- include/input/Input.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/input/Input.h b/include/input/Input.h index 1a3cb6a884..a8684bd19b 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -251,6 +251,8 @@ enum class InputEventType { TOUCH_MODE = AINPUT_EVENT_TYPE_TOUCH_MODE, ftl_first = KEY, ftl_last = TOUCH_MODE, + // Used by LatencyTracker fuzzer + kMaxValue = ftl_last }; std::string inputEventSourceToString(int32_t source); -- cgit v1.2.3-59-g8ed1b