From 2ecb88651b7a02b6a0def0892e606dc19db0f960 Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Tue, 9 Jul 2019 09:19:25 -0700 Subject: [PATCH] create ExclusionRectStateChanged/BackGesture atom Bug: 135152789 Test: manual Test: m statsd_testdrive -j31 Test: out/host/linux-x86/bin/statsd_testdrive [223|224] Change-Id: Id4b36c89ed5bf3330795107fb6cd6750edcd0dbf --- cmds/statsd/src/atoms.proto | 38 ++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index bfbf66743f378..35c4cebdcf6cb 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -328,7 +328,8 @@ message Atom { 221 [(log_from_module) = "textclassifier"]; LanguageDetectionEvent language_detection_event = 222 [(log_from_module) = "textclassifier"]; - + ExclusionRectStateChanged exclusion_rect_state_changed = 223; + BackGesture back_gesture_reported_reported = 224; } // Pulled events will start at field 10000. @@ -2510,6 +2511,41 @@ message PhoneStateChanged { optional State state = 1; } +message BackGesture { + enum BackType { + DEFAULT_BACK_TYPE = 0; + COMPLETED = 1; + COMPLETED_REJECTED = 2; // successful because coming from rejected area + INCOMPLETE_EXCLUDED = 3; // would have been successful but in the exclusion area + INCOMPLETE = 4; + } + optional BackType type = 1; + + optional int32 y_coordinate = 2; // y coordinate for ACTION_DOWN event + enum WindowHorizontalLocation { + DEFAULT_LOCATION = 0; + LEFT = 1; + RIGHT = 2; + } + optional WindowHorizontalLocation x_location = 3; +} + +message ExclusionRectStateChanged { + optional string component_name = 1; // if not available, simply packageName + optional int32 requested_height = 2; // px + optional int32 rejected_height = 3; // px + + enum WindowHorizontalLocation { + DEFAULT_LOCATION = 0; + LEFT = 1; + RIGHT = 2; + } + optional WindowHorizontalLocation x_location = 4; + optional bool landscape = 5; + optional bool splitscreen = 6; + optional int32 duration_millis = 7; +} + message LauncherUIChanged { optional android.stats.launcher.LauncherAction action = 1; optional android.stats.launcher.LauncherState src_state = 2;