diff options
author | 2019-02-17 14:56:31 +0000 | |
---|---|---|
committer | 2019-02-17 14:56:31 +0000 | |
commit | 1dc37e9601d031534f42741b9a6d664e03cead0b (patch) | |
tree | 195c299b0b5e0d1b3d283216378e0cae5d1842d5 | |
parent | cbb05a317b39ef314c5fb2e2a017f70c50ee68f5 (diff) | |
parent | 0eded6206aa896072ce3c71efec2e329275f35bd (diff) |
Merge "Add touch classification metrics atom."
-rw-r--r-- | cmds/statsd/src/atoms.proto | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 2632294d9232..d7ab6e5f89bb 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -245,6 +245,7 @@ message Atom { AssistGestureStageReported assist_gesture_stage_reported = 174; AssistGestureFeedbackReported assist_gesture_feedback_reported = 175; AssistGestureProgressReported assist_gesture_progress_reported = 176; + TouchGestureClassified touch_gesture_classified = 177; } // Pulled events will start at field 10000. @@ -2409,6 +2410,37 @@ message TouchEventReported { } /** + * Logs gesture classification and timing information for touch events. + * + * Logged from: + * frameworks/base/core/java/android/view/GestureDetector.java + * frameworks/base/core/java/android/view/View.java + */ +message TouchGestureClassified { + // The source of the classification (e.g. Java class name). + optional string source = 1; + + enum Classification { + UNKNOWN_CLASSIFICATION = 0; + SINGLE_TAP = 1; + DOUBLE_TAP = 2; + LONG_PRESS = 3; + DEEP_PRESS = 4; + SCROLL = 5; + } + // The classification of the gesture. + optional Classification classification = 2; + + // The interval from the start of a touch event stream until the + // classification was made. + optional int32 latency_millis = 3; + + // The distance from the location of the first touch event to the + // location of the touch event when the classification was made. + optional float displacement_px = 4; +} + +/** * Logs that a setting was updated. * Logged from: * frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/SettingsState.java |