xref: /aosp_15_r20/development/tools/winscope/protos/test/intdef_translation_test.proto (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1syntax = "proto2";
2
3package winscope.test;
4
5message RootMessage {
6  optional InputWindowInfoProto intdef_mapping_entry = 1;
7  optional WindowLayoutParamsProto window_layout_params = 2;
8}
9
10message InputWindowInfoProto {
11  optional int32 layoutParamsFlags = 1;
12  optional int32 inputConfig = 2;
13}
14
15/* represents WindowManager.LayoutParams */
16message WindowLayoutParamsProto {
17    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
18
19    optional int32 type = 1 [(.android.typedef) = "android.view.WindowManager.LayoutParams.WindowType"];
20    optional int32 gravity = 8 [(.android.typedef) = "android.view.Gravity.GravityFlags"];
21    optional int32 soft_input_mode = 9 [(.android.typedef) = "android.view.WindowManager.LayoutParams.SoftInputModeFlags"];
22    optional uint32 input_feature_flags = 19 [(.android.typedef) = "android.view.WindowManager.LayoutParams.InputFeatureFlags"];
23    optional uint32 flags = 24 [(.android.typedef) = "android.view.WindowManager.LayoutParams.Flags"];
24    optional uint32 system_ui_visibility_flags = 27 [(.android.typedef) = "android.view.WindowManager.LayoutParams.SystemUiVisibilityFlags"];
25    optional uint32 subtree_system_ui_visibility_flags = 28 [(.android.typedef) = "android.view.WindowManager.LayoutParams.SystemUiVisibilityFlags"];
26    optional uint32 appearance = 29 [(.android.typedef) = "android.view.WindowInsetsController.Appearance"];
27    optional uint32 behavior = 30 [(.android.typedef) = "android.view.WindowInsetsController.Behavior"];
28}
29