1/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19import "frameworks/base/core/proto/android/app/statusbarmanager.proto";
20import "frameworks/base/core/proto/android/content/activityinfo.proto";
21import "frameworks/base/core/proto/android/content/configuration.proto";
22import "frameworks/base/core/proto/android/graphics/rect.proto";
23import "frameworks/base/core/proto/android/server/windowcontainerthumbnail.proto";
24import "frameworks/base/core/proto/android/server/surfaceanimator.proto";
25import "frameworks/base/core/proto/android/view/displaycutout.proto";
26import "frameworks/base/core/proto/android/view/displayinfo.proto";
27import "frameworks/base/core/proto/android/view/surface.proto";
28import "frameworks/base/core/proto/android/view/windowlayoutparams.proto";
29import "frameworks/base/core/proto/android/privacy.proto";
30import "frameworks/base/core/proto/android/typedef.proto";
31
32import "frameworks/base/core/proto/android/view/surfacecontrol.proto";
33import "frameworks/base/core/proto/android/view/insetssource.proto";
34import "frameworks/base/core/proto/android/view/insetssourcecontrol.proto";
35
36import "frameworks/proto_logging/stats/enums/view/enums.proto";
37
38package com.android.server.wm;
39
40option java_multiple_files = true;
41
42message WindowManagerServiceDumpProto {
43    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
44
45    optional WindowManagerPolicyProto policy = 1;
46    /* window hierarchy root */
47    optional RootWindowContainerProto root_window_container = 2;
48    optional IdentifierProto focused_window = 3;
49    optional string focused_app = 4;
50    optional IdentifierProto input_method_window = 5;
51    optional bool display_frozen = 6;
52    optional int32 rotation = 7 [(.android.typedef) = "android.view.Surface.Rotation", deprecated=true];
53    optional int32 last_orientation = 8 [(.android.typedef) = "android.content.pm.ActivityInfo.ScreenOrientation", deprecated=true];
54    optional int32 focused_display_id = 9;
55    optional bool hard_keyboard_available = 10;
56    optional bool window_frames_valid = 11;
57    optional BackNavigationProto back_navigation = 12;
58}
59
60/* represents RootWindowContainer object */
61message RootWindowContainerProto {
62    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
63
64    optional WindowContainerProto window_container = 1;
65    repeated DisplayContentProto displays = 2 [deprecated=true];
66    reserved 3; // IdentifierProto windows
67    /* window references in top down z order */
68    repeated WindowStateProto windows = 4 [deprecated=true];
69    optional KeyguardControllerProto keyguard_controller = 5;
70    // Whether or not the home activity is the recents activity. This is needed for the CTS tests to
71    // know what activity types to check for when invoking splitscreen multi-window.
72    optional bool is_home_recents_component = 6;
73    repeated IdentifierProto pending_activities = 7 [deprecated=true];
74    optional int32 default_min_size_resizable_task = 8 [deprecated=true];
75}
76
77message BarControllerProto {
78    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
79
80    optional .android.app.StatusBarManagerProto.WindowState state = 1;
81    optional .android.app.StatusBarManagerProto.TransientWindowState transient_state = 2;
82}
83
84message WindowOrientationListenerProto {
85    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
86
87    optional bool enabled = 1;
88    optional .android.view.SurfaceProto.Rotation rotation = 2;
89}
90
91message KeyguardServiceDelegateProto {
92    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
93
94    optional bool showing = 1;
95    optional bool occluded = 2;
96    optional bool secure = 3;
97    enum ScreenState {
98        SCREEN_STATE_OFF = 0;
99        SCREEN_STATE_TURNING_ON = 1;
100        SCREEN_STATE_ON = 2;
101        SCREEN_STATE_TURNING_OFF = 3;
102    }
103    optional ScreenState screen_state = 4;
104    enum InteractiveState {
105        INTERACTIVE_STATE_SLEEP = 0;
106        INTERACTIVE_STATE_WAKING = 1;
107        INTERACTIVE_STATE_AWAKE = 2;
108        INTERACTIVE_STATE_GOING_TO_SLEEP = 3;
109    }
110    optional InteractiveState interactive_state = 5;
111}
112
113message KeyguardControllerProto {
114    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
115
116    optional bool keyguard_showing = 1;
117    repeated KeyguardOccludedProto keyguard_occluded_states = 2 [deprecated=true];
118    optional bool aod_showing = 3;
119    repeated KeyguardPerDisplayProto keyguard_per_display = 4;
120    optional bool keyguard_going_away = 5;
121}
122
123message KeyguardOccludedProto {
124    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
125
126    optional int32 display_id = 1;
127    optional bool keyguard_occluded = 2;
128}
129
130message KeyguardPerDisplayProto {
131    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
132
133    optional int32 display_id = 1;
134    optional bool keyguard_showing = 2;
135    optional bool aod_showing = 3;
136    optional bool keyguard_occluded = 4;
137    optional bool keyguard_going_away = 5;
138}
139
140/* represents PhoneWindowManager */
141message WindowManagerPolicyProto {
142    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
143
144    optional int32 last_system_ui_flags = 1 [deprecated=true];
145    enum UserRotationMode {
146        USER_ROTATION_FREE = 0;
147        USER_ROTATION_LOCKED = 1;
148    }
149    optional UserRotationMode rotation_mode = 2;
150    optional .android.view.SurfaceProto.Rotation rotation = 3;
151    optional .android.content.ActivityInfoProto.ScreenOrientation orientation = 4;
152    optional bool screen_on_fully = 5;
153    optional bool keyguard_draw_complete = 6;
154    optional bool window_manager_draw_complete = 7;
155    optional string focused_app_token = 8 [deprecated=true];
156    optional IdentifierProto focused_window = 9 [deprecated=true];
157    optional IdentifierProto top_fullscreen_opaque_window = 10 [deprecated=true];
158    optional IdentifierProto top_fullscreen_opaque_or_dimming_window = 11 [deprecated=true];
159    optional bool keyguard_occluded = 12;
160    optional bool keyguard_occluded_changed = 13;
161    optional bool keyguard_occluded_pending = 14;
162    optional bool force_status_bar = 15 [deprecated=true];
163    optional bool force_status_bar_from_keyguard = 16 [deprecated=true];
164    optional BarControllerProto status_bar = 17 [deprecated=true];
165    optional BarControllerProto navigation_bar = 18 [deprecated=true];
166    optional WindowOrientationListenerProto orientation_listener = 19 [deprecated=true];
167    optional KeyguardServiceDelegateProto keyguard_delegate = 20;
168}
169
170/* represents AppTransition */
171message AppTransitionProto {
172    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
173
174    enum AppState {
175        APP_STATE_IDLE = 0;
176        APP_STATE_READY = 1;
177        APP_STATE_RUNNING = 2;
178        APP_STATE_TIMEOUT = 3;
179    }
180    optional AppState app_transition_state = 1;
181
182    optional .android.view.TransitionTypeEnum last_used_app_transition = 2;
183}
184
185/* represents DisplayContent object */
186message DisplayContentProto {
187    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
188
189    // Use root_display_area instead
190    optional WindowContainerProto window_container = 1 [deprecated=true];
191    optional int32 id = 2;
192    reserved 3; // RootTasks
193    optional DockedTaskDividerControllerProto docked_task_divider_controller = 4 [deprecated=true];
194    // Will be removed soon.
195    optional PinnedTaskControllerProto pinned_task_controller = 5 [deprecated=true];
196    /* non app windows */
197    repeated WindowTokenProto above_app_windows = 6 [deprecated=true];
198    repeated WindowTokenProto below_app_windows = 7 [deprecated=true];
199    repeated WindowTokenProto ime_windows = 8 [deprecated=true];
200    optional int32 dpi = 9;
201    optional .android.view.DisplayInfoProto display_info = 10;
202    optional int32 rotation = 11 [(.android.typedef) = "android.view.Surface.Rotation", deprecated=true];
203    optional ScreenRotationAnimationProto screen_rotation_animation = 12;
204    optional DisplayFramesProto display_frames = 13;
205    optional int32 surface_size = 14 [deprecated=true];
206    optional string focused_app = 15;
207    optional AppTransitionProto app_transition = 16;
208    repeated IdentifierProto opening_apps = 17;
209    repeated IdentifierProto closing_apps = 18;
210    repeated IdentifierProto changing_apps = 19;
211    repeated WindowTokenProto overlay_windows = 20 [deprecated=true];
212    optional DisplayAreaProto root_display_area = 21;
213
214    optional bool single_task_instance = 22 [deprecated=true];
215    optional int32 focused_root_task_id = 23;
216    optional .com.android.server.wm.IdentifierProto resumed_activity = 24;
217    repeated TaskProto tasks = 25 [deprecated=true];
218    optional bool display_ready = 26;
219    optional WindowStateProto input_method_target = 27;
220    optional WindowStateProto input_method_input_target = 28;
221    optional WindowStateProto input_method_control_target = 29;
222    optional WindowStateProto current_focus = 30;
223    optional ImeInsetsSourceProviderProto ime_insets_source_provider = 31;
224    optional bool can_show_ime = 32 [deprecated=true];
225
226    optional DisplayRotationProto display_rotation = 33;
227    optional int32 ime_policy = 34;
228
229    repeated InsetsSourceProviderProto insets_source_providers = 35;
230    optional bool is_sleeping = 36;
231    repeated string sleep_tokens = 37;
232    repeated .android.graphics.RectProto keep_clear_areas = 38;
233    optional int32 min_size_of_resizeable_task_dp = 39;
234}
235
236/* represents DisplayArea object */
237message DisplayAreaProto {
238    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
239
240    optional WindowContainerProto window_container = 1;
241    optional string name = 2 [ (.android.privacy).dest = DEST_EXPLICIT ];
242    repeated DisplayAreaChildProto children = 3 [deprecated=true];
243    optional bool is_task_display_area = 4;
244    optional bool is_root_display_area = 5;
245    optional int32 feature_id = 6;
246    optional bool is_organized = 7;
247    optional bool is_ignoring_orientation_request = 8;
248}
249
250/* represents a generic child of a DisplayArea */
251message DisplayAreaChildProto {
252    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
253
254    /* At most one of the following should be present: */
255
256    /* represents a DisplayArea child */
257    optional DisplayAreaProto display_area = 1;
258    /* represents a WindowToken child */
259    optional WindowTokenProto window = 2;
260    /* represents an unknown child - the class name is recorded */
261    repeated string unknown = 3;
262}
263
264/* represents DisplayFrames */
265message DisplayFramesProto {
266    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
267
268    optional .android.graphics.RectProto stable_bounds = 1 [deprecated=true];
269    optional .android.graphics.RectProto dock = 2 [deprecated=true];
270    optional .android.graphics.RectProto current = 3 [deprecated=true];
271}
272
273message DisplayRotationProto {
274    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
275
276    optional int32 rotation = 1 [(.android.typedef) = "android.view.Surface.Rotation"];
277    optional bool frozen_to_user_rotation = 2;
278    optional int32 user_rotation = 3 [(.android.typedef) = "android.view.Surface.Rotation"];
279    optional int32 fixed_to_user_rotation_mode = 4;
280    optional int32 last_orientation = 5 [(.android.typedef) = "android.content.pm.ActivityInfo.ScreenOrientation"];
281    optional bool is_fixed_to_user_rotation = 6;
282}
283
284/* represents DockedTaskDividerController */
285message DockedTaskDividerControllerProto {
286    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
287
288    optional bool minimized_dock = 1 [deprecated=true];
289}
290
291/* represents PinnedTaskController */
292message PinnedTaskControllerProto {
293    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
294
295    optional .android.graphics.RectProto default_bounds = 1 [deprecated=true];
296    optional .android.graphics.RectProto movement_bounds = 2 [deprecated=true];
297}
298
299/* represents Task */
300message TaskProto {
301    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
302
303    optional WindowContainerProto window_container = 1 [deprecated=true];
304    optional int32 id = 2;
305    reserved 3; // activity
306    optional bool fills_parent = 4;
307    optional .android.graphics.RectProto bounds = 5;
308    optional .android.graphics.RectProto displayed_bounds = 6 [deprecated=true];
309    optional bool defer_removal = 7;
310    optional int32 surface_width = 8;
311    optional int32 surface_height = 9;
312
313    repeated TaskProto tasks = 10 [deprecated=true];
314    repeated ActivityRecordProto activities = 11 [deprecated=true];
315
316    optional .com.android.server.wm.IdentifierProto resumed_activity = 12;
317    optional string real_activity = 13;
318    optional string orig_activity = 14;
319
320    optional int32 display_id = 15 [deprecated=true];
321    optional int32 root_task_id = 16;
322    optional int32 activity_type = 17 [(.android.typedef) = "android.app.WindowConfiguration.ActivityType", deprecated=true] ;
323    optional int32 resize_mode = 18 [(.android.typedef) = "android.appwidget.AppWidgetProviderInfo.ResizeModeFlags"];
324    optional int32 min_width = 19 [deprecated=true];
325    optional int32 min_height = 20 [deprecated=true];
326
327    optional .android.graphics.RectProto adjusted_bounds = 21;
328    optional .android.graphics.RectProto last_non_fullscreen_bounds = 22;
329    optional bool adjusted_for_ime = 23;
330    optional float adjust_ime_amount = 24;
331    optional float adjust_divider_amount = 25;
332    optional bool animating_bounds = 26 [deprecated = true];
333    optional float minimize_amount = 27;
334    optional bool created_by_organizer = 28;
335    optional string affinity = 29;
336    optional bool has_child_pip_activity = 30;
337    optional TaskFragmentProto task_fragment = 31;
338}
339
340/* represents TaskFragment */
341message TaskFragmentProto {
342    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
343
344    optional WindowContainerProto window_container = 1;
345    optional int32 display_id = 2;
346    optional int32 activity_type = 3 [(.android.typedef) = "android.app.WindowConfiguration.ActivityType"];
347    optional int32 min_width = 4;
348    optional int32 min_height = 5;
349}
350
351/* represents ActivityRecordProto */
352message ActivityRecordProto {
353    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
354
355    optional string name = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
356
357    optional WindowTokenProto window_token = 2;
358    optional bool last_surface_showing = 3;
359    optional bool is_waiting_for_transition_start = 4;
360    optional bool is_animating = 5;
361    optional WindowContainerThumbnailProto thumbnail = 6;
362    optional bool fills_parent = 7;
363    optional bool app_stopped = 8;
364    optional bool visible_requested = 9;
365    optional bool client_visible = 10;
366    optional bool defer_hiding_client = 11;
367    optional bool reported_drawn = 12;
368    optional bool reported_visible = 13;
369    optional int32 num_interesting_windows = 14;
370    optional int32 num_drawn_windows = 15;
371    optional bool all_drawn = 16;
372    optional bool last_all_drawn = 17;
373    reserved 18; // removed
374    optional IdentifierProto starting_window = 19;
375    optional bool starting_displayed = 20;
376    optional bool starting_moved = 201;
377    optional bool visible_set_from_transferred_starting_window = 22;
378    repeated .android.graphics.RectProto frozen_bounds = 23 [deprecated=true];
379    optional bool visible = 24;
380    reserved 25; // configuration_container
381    optional IdentifierProto identifier = 26 [deprecated=true];
382    optional string state = 27 [(.android.privacy).dest = DEST_EXPLICIT];
383    optional bool front_of_task = 28;
384    optional int32 proc_id = 29;
385    optional bool translucent = 30;
386    optional bool pip_auto_enter_enabled = 31;
387    optional bool in_size_compat_mode = 32;
388    optional float min_aspect_ratio = 33;
389    optional bool provides_max_bounds = 34;
390    optional bool enable_recents_screenshot = 35;
391    optional int32 last_drop_input_mode = 36;
392    optional int32 override_orientation = 37 [(.android.typedef) = "android.content.pm.ActivityInfo.ScreenOrientation"];
393    optional bool should_send_compat_fake_focus = 38;
394    optional bool should_force_rotate_for_camera_compat = 39;
395    optional bool should_refresh_activity_for_camera_compat = 40;
396    optional bool should_refresh_activity_via_pause_for_camera_compat = 41;
397    optional bool should_override_min_aspect_ratio = 42;
398    optional bool should_ignore_orientation_request_loop = 43;
399    optional bool should_override_force_resize_app = 44;
400    optional bool should_enable_user_aspect_ratio_settings = 45;
401    optional bool is_user_fullscreen_override_enabled = 46;
402}
403
404/* represents WindowToken */
405message WindowTokenProto {
406    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
407
408    optional WindowContainerProto window_container = 1;
409    optional int32 hash_code = 2;
410    repeated WindowStateProto windows = 3 [deprecated=true];
411    optional bool waiting_to_show = 5 [deprecated=true];
412    optional bool paused = 6;
413}
414
415/* represents WindowState */
416message WindowStateProto {
417    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
418
419    optional WindowContainerProto window_container = 1;
420    optional IdentifierProto identifier = 2 [deprecated=true];
421    // Unique identifier of a DisplayContent stack.
422    optional int32 display_id = 3;
423    // Unique identifier for the task stack.
424    optional int32 stack_id = 4;
425    optional .android.view.WindowLayoutParamsProto attributes = 5;
426    optional .android.graphics.RectProto given_content_insets = 6;
427    optional .android.graphics.RectProto frame = 7 [deprecated=true];
428    optional .android.graphics.RectProto containing_frame = 8 [deprecated=true];
429    optional .android.graphics.RectProto parent_frame = 9 [deprecated=true];
430    optional .android.graphics.RectProto content_frame = 10 [deprecated=true];
431    optional .android.graphics.RectProto content_insets = 11 [deprecated=true];
432    optional .android.graphics.RectProto surface_insets = 12;
433    optional WindowStateAnimatorProto animator = 13;
434    optional bool animating_exit = 14;
435    repeated WindowStateProto child_windows = 15 [deprecated=true];
436    optional .android.graphics.RectProto surface_position = 16;
437    optional int32 requested_width = 18;
438    optional int32 requested_height = 19;
439    optional int32 view_visibility = 20 [(.android.typedef) = "android.view.View.Visibility"];
440    optional int32 system_ui_visibility = 21 [deprecated=true];
441    optional bool has_surface = 22;
442    optional bool is_ready_for_display = 23;
443    optional .android.graphics.RectProto display_frame = 24 [deprecated=true];
444    optional .android.graphics.RectProto overscan_frame = 25 [deprecated=true];
445    optional .android.graphics.RectProto visible_frame = 26 [deprecated=true];
446    optional .android.graphics.RectProto decor_frame = 27 [deprecated=true];
447    optional .android.graphics.RectProto outset_frame = 28 [deprecated=true];
448    optional .android.graphics.RectProto overscan_insets = 29 [deprecated=true];
449    optional .android.graphics.RectProto visible_insets = 30 [deprecated=true];
450    optional .android.graphics.RectProto stable_insets = 31 [deprecated=true];
451    optional .android.graphics.RectProto outsets = 32 [deprecated=true];
452    optional .android.view.DisplayCutoutProto cutout = 33 [deprecated=true];
453    optional bool remove_on_exit = 34;
454    optional bool destroying = 35;
455    optional bool removed = 36;
456    optional bool is_on_screen = 37;
457    optional bool is_visible = 38;
458    optional bool pending_seamless_rotation = 39;
459    optional int64 finished_seamless_rotation_frame = 40 [deprecated=true];
460    optional WindowFramesProto window_frames = 41;
461    optional bool force_seamless_rotation = 42;
462    optional bool has_compat_scale = 43;
463    optional float global_scale = 44;
464    repeated .android.graphics.RectProto keep_clear_areas = 45;
465    repeated .android.graphics.RectProto unrestricted_keep_clear_areas = 46;
466    repeated .android.view.InsetsSourceProto mergedLocalInsetsSources = 47;
467    optional int32 requested_visible_types = 48;
468}
469
470message IdentifierProto {
471    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
472
473    optional int32 hash_code = 1;
474    optional int32 user_id = 2;
475    // Either a component name/string (eg: "com.android.settings/.FallbackHome")
476    // or a window title ("NavigationBar").
477    optional string title = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
478}
479
480/* represents WindowStateAnimator */
481message WindowStateAnimatorProto {
482    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
483
484    optional .android.graphics.RectProto last_clip_rect = 1;
485    optional WindowSurfaceControllerProto surface = 2;
486    enum DrawState {
487        NO_SURFACE = 0;
488        DRAW_PENDING = 1;
489        COMMIT_DRAW_PENDING = 2;
490        READY_TO_SHOW = 3;
491        HAS_DRAWN = 4;
492    }
493    optional DrawState draw_state = 3;
494    optional .android.graphics.RectProto system_decor_rect = 4;
495}
496
497/* represents WindowSurfaceController */
498message WindowSurfaceControllerProto {
499    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
500
501    optional bool shown = 1;
502    optional int32 layer = 2;
503}
504
505/* represents ScreenRotationAnimation */
506message ScreenRotationAnimationProto {
507    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
508
509    optional bool started = 1;
510    optional bool animation_running = 2;
511}
512
513/* represents WindowContainer */
514message WindowContainerProto {
515    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
516
517    optional ConfigurationContainerProto configuration_container = 1;
518    optional int32 orientation = 2 [(.android.typedef) = "android.content.pm.ActivityInfo.ScreenOrientation"];
519    optional bool visible = 3;
520    optional SurfaceAnimatorProto surface_animator = 4;
521    repeated WindowContainerChildProto children = 5;
522    optional IdentifierProto identifier = 6;
523    optional .android.view.SurfaceControlProto surface_control = 7;
524}
525
526/* represents a generic child of a WindowContainer */
527message WindowContainerChildProto {
528    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
529
530    /* A window container can have multiple children of different types stored as
531     * a WindowContainerChildProto but each instance of WindowContainerChildProto
532     * can only contain a single type.
533     */
534    /* We do not know the derived typ and the class is dumped
535     * as a WindowContainer */
536    optional WindowContainerProto window_container = 2;
537    /* represents a DisplayContent child */
538    optional DisplayContentProto display_content = 3;
539    /* represents a DisplayArea child */
540    optional DisplayAreaProto display_area = 4;
541    /* represents a Task child */
542    optional TaskProto task = 5;
543    /* represents an ActivityRecord child */
544    optional ActivityRecordProto activity = 6;
545    /* represents a WindowToken child */
546    optional WindowTokenProto window_token = 7;
547    /* represents a WindowState child */
548    optional WindowStateProto window = 8;
549    /* represents a WindowState child */
550    optional TaskFragmentProto task_fragment = 9;
551}
552
553/* represents ConfigurationContainer */
554message ConfigurationContainerProto {
555    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
556
557    optional .android.content.ConfigurationProto override_configuration = 1;
558    optional .android.content.ConfigurationProto full_configuration = 2;
559    optional .android.content.ConfigurationProto merged_override_configuration = 3;
560}
561
562/* represents WindowFrames */
563message WindowFramesProto {
564    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
565
566    optional .android.graphics.RectProto containing_frame = 1 [deprecated=true];
567    optional .android.graphics.RectProto content_frame = 2 [deprecated=true];
568    optional .android.graphics.RectProto decor_frame = 3 [deprecated=true];
569    optional .android.graphics.RectProto display_frame = 4;
570    optional .android.graphics.RectProto frame = 5;
571    optional .android.graphics.RectProto outset_frame = 6;
572    optional .android.graphics.RectProto overscan_frame = 7 [deprecated=true];
573    optional .android.graphics.RectProto parent_frame = 8;
574    optional .android.graphics.RectProto visible_frame = 9 [deprecated=true];
575    optional .android.view.DisplayCutoutProto cutout = 10 [deprecated=true];
576    optional .android.graphics.RectProto content_insets = 11 [deprecated=true];
577    optional .android.graphics.RectProto overscan_insets = 12 [deprecated=true];
578    optional .android.graphics.RectProto visible_insets = 13 [deprecated=true];
579    optional .android.graphics.RectProto stable_insets = 14 [deprecated=true];
580    optional .android.graphics.RectProto outsets = 15;
581    optional .android.graphics.RectProto compat_frame = 16;
582}
583
584message InsetsSourceProviderProto {
585    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
586
587    optional .android.view.InsetsSourceProto source = 1;
588    optional .android.graphics.RectProto frame = 2;
589    optional .android.view.InsetsSourceControlProto fake_control = 3;
590    optional .android.view.InsetsSourceControlProto control = 4;
591    optional WindowStateProto control_target = 5;
592    optional WindowStateProto pending_control_target = 6;
593    optional WindowStateProto fake_control_target = 7;
594    optional .android.view.SurfaceControlProto captured_leash = 8;
595    optional .android.graphics.RectProto ime_overridden_frame = 9 [deprecated=true];
596    optional bool is_leash_ready_for_dispatching = 10;
597    optional bool client_visible = 11;
598    optional bool server_visible = 12;
599    optional bool seamless_rotating = 13;
600    optional int64 finish_seamless_rotate_frame_number = 14;
601    optional bool controllable = 15;
602    optional WindowStateProto source_window_state = 16;
603}
604
605message ImeInsetsSourceProviderProto {
606    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
607
608    optional InsetsSourceProviderProto insets_source_provider = 1;
609    optional WindowStateProto ime_target_from_ime = 2;
610    optional bool is_ime_layout_drawn = 3 [deprecated=true];
611}
612
613message BackNavigationProto {
614    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
615
616    optional bool animation_in_progress = 1;
617    optional int32 last_back_type = 2;
618    optional bool show_wallpaper = 3;
619    optional string main_open_activity = 4;
620    optional bool animation_running = 5;
621}