Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 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 | |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 17 | syntax = "proto2"; |
Yi Jin | be6de30 | 2017-10-24 12:30:24 -0700 | [diff] [blame] | 18 | |
Vishnu Nair | 9a3e406 | 2018-01-11 08:42:54 -0800 | [diff] [blame] | 19 | import "frameworks/base/core/proto/android/app/statusbarmanager.proto"; |
| 20 | import "frameworks/base/core/proto/android/content/activityinfo.proto"; |
Wale Ogunwale | 0d5609b | 2017-09-13 05:55:07 -0700 | [diff] [blame] | 21 | import "frameworks/base/core/proto/android/content/configuration.proto"; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 22 | import "frameworks/base/core/proto/android/graphics/rect.proto"; |
lumark | bc0032a | 2019-11-01 21:38:13 +0800 | [diff] [blame] | 23 | import "frameworks/base/core/proto/android/server/windowcontainerthumbnail.proto"; |
Vishnu Nair | 04ab439 | 2018-01-10 11:00:06 -0800 | [diff] [blame] | 24 | import "frameworks/base/core/proto/android/server/surfaceanimator.proto"; |
Vishnu Nair | 1d0fa07 | 2018-01-04 07:53:00 -0800 | [diff] [blame] | 25 | import "frameworks/base/core/proto/android/view/displaycutout.proto"; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 26 | import "frameworks/base/core/proto/android/view/displayinfo.proto"; |
Kweku Adams | ffc19c0 | 2018-07-31 17:00:17 -0700 | [diff] [blame] | 27 | import "frameworks/base/core/proto/android/view/enums.proto"; |
Vishnu Nair | 9a3e406 | 2018-01-11 08:42:54 -0800 | [diff] [blame] | 28 | import "frameworks/base/core/proto/android/view/surface.proto"; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 29 | import "frameworks/base/core/proto/android/view/windowlayoutparams.proto"; |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 30 | import "frameworks/base/core/proto/android/privacy.proto"; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 31 | |
Yi Jin | 6c6e9ca | 2018-03-20 16:53:35 -0700 | [diff] [blame] | 32 | package com.android.server.wm; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 33 | |
| 34 | option java_multiple_files = true; |
| 35 | |
Yi Jin | 2b30f32 | 2018-02-20 15:41:47 -0800 | [diff] [blame] | 36 | message WindowManagerServiceDumpProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 37 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 38 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 39 | optional WindowManagerPolicyProto policy = 1; |
| 40 | /* window hierarchy root */ |
| 41 | optional RootWindowContainerProto root_window_container = 2; |
| 42 | optional IdentifierProto focused_window = 3; |
| 43 | optional string focused_app = 4; |
| 44 | optional IdentifierProto input_method_window = 5; |
| 45 | optional bool display_frozen = 6; |
| 46 | optional int32 rotation = 7; |
| 47 | optional int32 last_orientation = 8; |
wilsonshih | 6164e01 | 2019-05-06 09:31:02 +0800 | [diff] [blame] | 48 | optional int32 focused_display_id = 9; |
Wale Ogunwale | 0d5609b | 2017-09-13 05:55:07 -0700 | [diff] [blame] | 49 | } |
| 50 | |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 51 | /* represents RootWindowContainer object */ |
Wale Ogunwale | 0d5609b | 2017-09-13 05:55:07 -0700 | [diff] [blame] | 52 | message RootWindowContainerProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 53 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 54 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 55 | optional WindowContainerProto window_container = 1; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 56 | repeated DisplayContentProto displays = 2; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 57 | /* window references in top down z order */ |
| 58 | repeated IdentifierProto windows = 3; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 59 | } |
| 60 | |
Vishnu Nair | 9a3e406 | 2018-01-11 08:42:54 -0800 | [diff] [blame] | 61 | message BarControllerProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 62 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 63 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 64 | optional .android.app.StatusBarManagerProto.WindowState state = 1; |
| 65 | optional .android.app.StatusBarManagerProto.TransientWindowState transient_state = 2; |
Vishnu Nair | 9a3e406 | 2018-01-11 08:42:54 -0800 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | message WindowOrientationListenerProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 69 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 70 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 71 | optional bool enabled = 1; |
| 72 | optional .android.view.SurfaceProto.Rotation rotation = 2; |
Vishnu Nair | 9a3e406 | 2018-01-11 08:42:54 -0800 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | message KeyguardServiceDelegateProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 76 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 77 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 78 | optional bool showing = 1; |
| 79 | optional bool occluded = 2; |
| 80 | optional bool secure = 3; |
| 81 | enum ScreenState { |
| 82 | SCREEN_STATE_OFF = 0; |
| 83 | SCREEN_STATE_TURNING_ON = 1; |
| 84 | SCREEN_STATE_ON = 2; |
| 85 | SCREEN_STATE_TURNING_OFF = 3; |
| 86 | } |
| 87 | optional ScreenState screen_state = 4; |
| 88 | enum InteractiveState { |
| 89 | INTERACTIVE_STATE_SLEEP = 0; |
| 90 | INTERACTIVE_STATE_WAKING = 1; |
| 91 | INTERACTIVE_STATE_AWAKE = 2; |
| 92 | INTERACTIVE_STATE_GOING_TO_SLEEP = 3; |
| 93 | } |
| 94 | optional InteractiveState interactive_state = 5; |
Vishnu Nair | 9a3e406 | 2018-01-11 08:42:54 -0800 | [diff] [blame] | 95 | } |
| 96 | |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 97 | /* represents PhoneWindowManager */ |
| 98 | message WindowManagerPolicyProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 99 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 100 | |
Tiger Huang | 7c610aa | 2018-10-27 00:01:01 +0800 | [diff] [blame] | 101 | optional int32 last_system_ui_flags = 1 [deprecated=true]; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 102 | enum UserRotationMode { |
| 103 | USER_ROTATION_FREE = 0; |
| 104 | USER_ROTATION_LOCKED = 1; |
| 105 | } |
| 106 | optional UserRotationMode rotation_mode = 2; |
| 107 | optional .android.view.SurfaceProto.Rotation rotation = 3; |
| 108 | optional .android.content.ActivityInfoProto.ScreenOrientation orientation = 4; |
| 109 | optional bool screen_on_fully = 5; |
| 110 | optional bool keyguard_draw_complete = 6; |
| 111 | optional bool window_manager_draw_complete = 7; |
Tiger Huang | 7c610aa | 2018-10-27 00:01:01 +0800 | [diff] [blame] | 112 | optional string focused_app_token = 8 [deprecated=true]; |
| 113 | optional IdentifierProto focused_window = 9 [deprecated=true]; |
| 114 | optional IdentifierProto top_fullscreen_opaque_window = 10 [deprecated=true]; |
| 115 | optional IdentifierProto top_fullscreen_opaque_or_dimming_window = 11 [deprecated=true]; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 116 | optional bool keyguard_occluded = 12; |
| 117 | optional bool keyguard_occluded_changed = 13; |
| 118 | optional bool keyguard_occluded_pending = 14; |
Tiger Huang | 7c610aa | 2018-10-27 00:01:01 +0800 | [diff] [blame] | 119 | optional bool force_status_bar = 15 [deprecated=true]; |
| 120 | optional bool force_status_bar_from_keyguard = 16 [deprecated=true]; |
| 121 | optional BarControllerProto status_bar = 17 [deprecated=true]; |
| 122 | optional BarControllerProto navigation_bar = 18 [deprecated=true]; |
| 123 | optional WindowOrientationListenerProto orientation_listener = 19 [deprecated=true]; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 124 | optional KeyguardServiceDelegateProto keyguard_delegate = 20; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 125 | } |
| 126 | |
| 127 | /* represents AppTransition */ |
| 128 | message AppTransitionProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 129 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 130 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 131 | enum AppState { |
| 132 | APP_STATE_IDLE = 0; |
| 133 | APP_STATE_READY = 1; |
| 134 | APP_STATE_RUNNING = 2; |
| 135 | APP_STATE_TIMEOUT = 3; |
| 136 | } |
| 137 | optional AppState app_transition_state = 1; |
Kweku Adams | ffc19c0 | 2018-07-31 17:00:17 -0700 | [diff] [blame] | 138 | |
| 139 | optional .android.view.TransitionTypeEnum last_used_app_transition = 2; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 140 | } |
| 141 | |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 142 | /* represents DisplayContent object */ |
| 143 | message DisplayContentProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 144 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 145 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 146 | optional WindowContainerProto window_container = 1; |
| 147 | optional int32 id = 2; |
| 148 | repeated StackProto stacks = 3; |
| 149 | optional DockedStackDividerControllerProto docked_stack_divider_controller = 4; |
Hongwei Wang | 35d5914 | 2020-01-27 10:01:32 -0800 | [diff] [blame] | 150 | // Will be removed soon. |
| 151 | optional PinnedStackControllerProto pinned_stack_controller = 5 [deprecated=true]; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 152 | /* non app windows */ |
| 153 | repeated WindowTokenProto above_app_windows = 6; |
| 154 | repeated WindowTokenProto below_app_windows = 7; |
| 155 | repeated WindowTokenProto ime_windows = 8; |
| 156 | optional int32 dpi = 9; |
| 157 | optional .android.view.DisplayInfoProto display_info = 10; |
| 158 | optional int32 rotation = 11; |
| 159 | optional ScreenRotationAnimationProto screen_rotation_animation = 12; |
| 160 | optional DisplayFramesProto display_frames = 13; |
Vishnu Nair | e86bd98 | 2018-11-28 13:23:17 -0800 | [diff] [blame] | 161 | optional int32 surface_size = 14 [deprecated=true]; |
Tiger Huang | 1e5b10a | 2018-07-30 20:19:51 +0800 | [diff] [blame] | 162 | optional string focused_app = 15; |
lumark | 588a3e8 | 2018-07-20 18:53:54 +0800 | [diff] [blame] | 163 | optional AppTransitionProto app_transition = 16; |
Jorim Jaggi | 1112fed | 2019-04-15 13:32:14 +0200 | [diff] [blame] | 164 | repeated IdentifierProto opening_apps = 17; |
| 165 | repeated IdentifierProto closing_apps = 18; |
| 166 | repeated IdentifierProto changing_apps = 19; |
chaviw | 8065f44 | 2019-11-18 13:20:58 -0800 | [diff] [blame] | 167 | repeated WindowTokenProto overlay_windows = 20; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 168 | } |
| 169 | |
Wale Ogunwale | 828ff7e | 2017-11-14 01:01:29 +0000 | [diff] [blame] | 170 | /* represents DisplayFrames */ |
| 171 | message DisplayFramesProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 172 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 173 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 174 | optional .android.graphics.RectProto stable_bounds = 1; |
Wale Ogunwale | 828ff7e | 2017-11-14 01:01:29 +0000 | [diff] [blame] | 175 | } |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 176 | |
| 177 | /* represents DockedStackDividerController */ |
| 178 | message DockedStackDividerControllerProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 179 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 180 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 181 | optional bool minimized_dock = 1; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 182 | } |
| 183 | |
| 184 | /* represents PinnedStackController */ |
| 185 | message PinnedStackControllerProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 186 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 187 | |
Hongwei Wang | 35d5914 | 2020-01-27 10:01:32 -0800 | [diff] [blame] | 188 | optional .android.graphics.RectProto default_bounds = 1 [deprecated=true]; |
| 189 | optional .android.graphics.RectProto movement_bounds = 2 [deprecated=true]; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 190 | } |
| 191 | |
| 192 | /* represents TaskStack */ |
| 193 | message StackProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 194 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 195 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 196 | optional WindowContainerProto window_container = 1; |
| 197 | optional int32 id = 2; |
| 198 | repeated TaskProto tasks = 3; |
| 199 | optional bool fills_parent = 4; |
| 200 | optional .android.graphics.RectProto bounds = 5; |
Yunfan Chen | 93d5224 | 2019-09-12 13:41:40 +0900 | [diff] [blame] | 201 | optional bool animation_background_surface_is_dimming = 6 [deprecated=true]; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 202 | optional bool defer_removal = 7; |
| 203 | optional float minimize_amount = 8; |
| 204 | optional bool adjusted_for_ime = 9; |
| 205 | optional float adjust_ime_amount = 10; |
| 206 | optional float adjust_divider_amount = 11; |
| 207 | optional .android.graphics.RectProto adjusted_bounds = 12; |
| 208 | optional bool animating_bounds = 13; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 209 | } |
| 210 | |
| 211 | /* represents Task */ |
| 212 | message TaskProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 213 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 214 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 215 | optional WindowContainerProto window_container = 1; |
| 216 | optional int32 id = 2; |
| 217 | repeated AppWindowTokenProto app_window_tokens = 3; |
| 218 | optional bool fills_parent = 4; |
| 219 | optional .android.graphics.RectProto bounds = 5; |
Evan Rosky | ed6767f | 2018-10-26 17:21:06 -0700 | [diff] [blame] | 220 | optional .android.graphics.RectProto displayed_bounds = 6; |
Wale Ogunwale | c17418e | 2019-10-13 23:00:40 +0200 | [diff] [blame] | 221 | // Will be removed soon. |
| 222 | optional bool defer_removal = 7 [deprecated=true]; |
Louis Chang | 7501e33 | 2018-08-20 13:08:39 +0800 | [diff] [blame] | 223 | optional int32 surface_width = 8; |
| 224 | optional int32 surface_height = 9; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | /* represents AppWindowToken */ |
| 228 | message AppWindowTokenProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 229 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 230 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 231 | /* obtained from ActivityRecord */ |
| 232 | optional string name = 1 [ (.android.privacy).dest = DEST_EXPLICIT ]; |
| 233 | optional WindowTokenProto window_token = 2; |
| 234 | optional bool last_surface_showing = 3; |
| 235 | optional bool is_waiting_for_transition_start = 4; |
lumark | 9bca6b4 | 2019-10-17 18:35:22 +0800 | [diff] [blame] | 236 | optional bool is_animating = 5; |
lumark | bc0032a | 2019-11-01 21:38:13 +0800 | [diff] [blame] | 237 | optional WindowContainerThumbnailProto thumbnail = 6; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 238 | optional bool fills_parent = 7; |
| 239 | optional bool app_stopped = 8; |
Issei Suzuki | 1669ea4 | 2019-11-06 14:20:59 +0100 | [diff] [blame] | 240 | optional bool visible_requested = 9; |
Issei Suzuki | d4ee1cc | 2019-11-08 13:20:14 +0100 | [diff] [blame] | 241 | optional bool client_visible = 10; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 242 | optional bool defer_hiding_client = 11; |
| 243 | optional bool reported_drawn = 12; |
| 244 | optional bool reported_visible = 13; |
| 245 | optional int32 num_interesting_windows = 14; |
| 246 | optional int32 num_drawn_windows = 15; |
| 247 | optional bool all_drawn = 16; |
| 248 | optional bool last_all_drawn = 17; |
Wale Ogunwale | 7a8889a | 2019-11-16 08:23:42 -0800 | [diff] [blame] | 249 | // Will be removed soon |
| 250 | optional bool removed = 18 [deprecated=true]; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 251 | optional IdentifierProto starting_window = 19; |
| 252 | optional bool starting_displayed = 20; |
| 253 | optional bool starting_moved = 21; |
Issei Suzuki | f2f6c91 | 2019-11-08 11:24:18 +0100 | [diff] [blame] | 254 | optional bool visible_set_from_transferred_starting_window = 22; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 255 | repeated .android.graphics.RectProto frozen_bounds = 23; |
Issei Suzuki | f2f6c91 | 2019-11-08 11:24:18 +0100 | [diff] [blame] | 256 | optional bool visible = 24; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 257 | } |
| 258 | |
| 259 | /* represents WindowToken */ |
| 260 | message WindowTokenProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 261 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 262 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 263 | optional WindowContainerProto window_container = 1; |
| 264 | optional int32 hash_code = 2; |
| 265 | repeated WindowStateProto windows = 3; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 266 | optional bool waiting_to_show = 5; |
| 267 | optional bool paused = 6; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 268 | } |
| 269 | |
| 270 | /* represents WindowState */ |
| 271 | message WindowStateProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 272 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 273 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 274 | optional WindowContainerProto window_container = 1; |
| 275 | optional IdentifierProto identifier = 2; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 276 | // Unique identifier of a DisplayContent stack. |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 277 | optional int32 display_id = 3; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 278 | // Unique identifier for the task stack. |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 279 | optional int32 stack_id = 4; |
| 280 | optional .android.view.WindowLayoutParamsProto attributes = 5; |
| 281 | optional .android.graphics.RectProto given_content_insets = 6; |
chaviw | 4eecaa1 | 2018-08-08 17:18:45 -0700 | [diff] [blame] | 282 | optional .android.graphics.RectProto frame = 7 [deprecated=true]; |
| 283 | optional .android.graphics.RectProto containing_frame = 8 [deprecated=true]; |
| 284 | optional .android.graphics.RectProto parent_frame = 9 [deprecated=true]; |
| 285 | optional .android.graphics.RectProto content_frame = 10 [deprecated=true]; |
chaviw | 9c81e63 | 2018-07-31 11:17:52 -0700 | [diff] [blame] | 286 | optional .android.graphics.RectProto content_insets = 11 [deprecated=true]; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 287 | optional .android.graphics.RectProto surface_insets = 12; |
| 288 | optional WindowStateAnimatorProto animator = 13; |
| 289 | optional bool animating_exit = 14; |
| 290 | repeated WindowStateProto child_windows = 15; |
| 291 | optional .android.graphics.RectProto surface_position = 16; |
| 292 | optional int32 requested_width = 18; |
| 293 | optional int32 requested_height = 19; |
| 294 | optional int32 view_visibility = 20; |
| 295 | optional int32 system_ui_visibility = 21; |
| 296 | optional bool has_surface = 22; |
| 297 | optional bool is_ready_for_display = 23; |
chaviw | 4eecaa1 | 2018-08-08 17:18:45 -0700 | [diff] [blame] | 298 | optional .android.graphics.RectProto display_frame = 24 [deprecated=true]; |
| 299 | optional .android.graphics.RectProto overscan_frame = 25 [deprecated=true]; |
| 300 | optional .android.graphics.RectProto visible_frame = 26 [deprecated=true]; |
| 301 | optional .android.graphics.RectProto decor_frame = 27 [deprecated=true]; |
| 302 | optional .android.graphics.RectProto outset_frame = 28 [deprecated=true]; |
chaviw | 9c81e63 | 2018-07-31 11:17:52 -0700 | [diff] [blame] | 303 | optional .android.graphics.RectProto overscan_insets = 29 [deprecated=true]; |
| 304 | optional .android.graphics.RectProto visible_insets = 30 [deprecated=true]; |
| 305 | optional .android.graphics.RectProto stable_insets = 31 [deprecated=true]; |
| 306 | optional .android.graphics.RectProto outsets = 32 [deprecated=true]; |
chaviw | 4eecaa1 | 2018-08-08 17:18:45 -0700 | [diff] [blame] | 307 | optional .android.view.DisplayCutoutProto cutout = 33 [deprecated=true]; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 308 | optional bool remove_on_exit = 34; |
| 309 | optional bool destroying = 35; |
| 310 | optional bool removed = 36; |
| 311 | optional bool is_on_screen = 37; |
| 312 | optional bool is_visible = 38; |
Vishnu Nair | ddd8074 | 2018-08-21 14:12:46 -0700 | [diff] [blame] | 313 | optional bool pending_seamless_rotation = 39; |
| 314 | optional int64 finished_seamless_rotation_frame = 40; |
chaviw | 553b021 | 2018-07-12 13:37:01 -0700 | [diff] [blame] | 315 | optional WindowFramesProto window_frames = 41; |
Vishnu Nair | ddd8074 | 2018-08-21 14:12:46 -0700 | [diff] [blame] | 316 | optional bool force_seamless_rotation = 42; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 317 | } |
| 318 | |
| 319 | message IdentifierProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 320 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 321 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 322 | optional int32 hash_code = 1; |
| 323 | optional int32 user_id = 2; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 324 | // Either a component name/string (eg: "com.android.settings/.FallbackHome") |
| 325 | // or a window title ("NavigationBar"). |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 326 | optional string title = 3 [ (.android.privacy).dest = DEST_EXPLICIT ]; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 327 | } |
| 328 | |
| 329 | /* represents WindowStateAnimator */ |
| 330 | message WindowStateAnimatorProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 331 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 332 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 333 | optional .android.graphics.RectProto last_clip_rect = 1; |
| 334 | optional WindowSurfaceControllerProto surface = 2; |
| 335 | enum DrawState { |
| 336 | NO_SURFACE = 0; |
| 337 | DRAW_PENDING = 1; |
| 338 | COMMIT_DRAW_PENDING = 2; |
| 339 | READY_TO_SHOW = 3; |
| 340 | HAS_DRAWN = 4; |
| 341 | } |
| 342 | optional DrawState draw_state = 3; |
| 343 | optional .android.graphics.RectProto system_decor_rect = 4; |
Steven Timotius | af03df6 | 2017-07-18 16:56:43 -0700 | [diff] [blame] | 344 | } |
| 345 | |
| 346 | /* represents WindowSurfaceController */ |
| 347 | message WindowSurfaceControllerProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 348 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 349 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 350 | optional bool shown = 1; |
| 351 | optional int32 layer = 2; |
Steven Timotius | f2d6889 | 2017-08-28 17:00:01 -0700 | [diff] [blame] | 352 | } |
| 353 | |
| 354 | /* represents ScreenRotationAnimation */ |
| 355 | message ScreenRotationAnimationProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 356 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 357 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 358 | optional bool started = 1; |
| 359 | optional bool animation_running = 2; |
Wale Ogunwale | 0d5609b | 2017-09-13 05:55:07 -0700 | [diff] [blame] | 360 | } |
| 361 | |
| 362 | /* represents WindowContainer */ |
| 363 | message WindowContainerProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 364 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 365 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 366 | optional ConfigurationContainerProto configuration_container = 1; |
| 367 | optional int32 orientation = 2; |
| 368 | optional bool visible = 3; |
| 369 | optional SurfaceAnimatorProto surface_animator = 4; |
Wale Ogunwale | 0d5609b | 2017-09-13 05:55:07 -0700 | [diff] [blame] | 370 | } |
| 371 | |
| 372 | /* represents ConfigurationContainer */ |
| 373 | message ConfigurationContainerProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 374 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
Yi Jin | 0d7bc2d1 | 2018-01-23 17:35:19 -0800 | [diff] [blame] | 375 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 376 | optional .android.content.ConfigurationProto override_configuration = 1; |
| 377 | optional .android.content.ConfigurationProto full_configuration = 2; |
| 378 | optional .android.content.ConfigurationProto merged_override_configuration = 3; |
Wale Ogunwale | 0d5609b | 2017-09-13 05:55:07 -0700 | [diff] [blame] | 379 | } |
chaviw | 553b021 | 2018-07-12 13:37:01 -0700 | [diff] [blame] | 380 | |
| 381 | /* represents WindowFrames */ |
| 382 | message WindowFramesProto { |
| 383 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 384 | |
| 385 | optional .android.graphics.RectProto containing_frame = 1; |
| 386 | optional .android.graphics.RectProto content_frame = 2; |
| 387 | optional .android.graphics.RectProto decor_frame = 3; |
| 388 | optional .android.graphics.RectProto display_frame = 4; |
chaviw | 492139a | 2018-07-16 16:07:35 -0700 | [diff] [blame] | 389 | optional .android.graphics.RectProto frame = 5; |
| 390 | optional .android.graphics.RectProto outset_frame = 6; |
Jorim Jaggi | f081f06 | 2019-10-24 16:24:54 +0200 | [diff] [blame] | 391 | optional .android.graphics.RectProto overscan_frame = 7 [deprecated=true]; |
chaviw | 492139a | 2018-07-16 16:07:35 -0700 | [diff] [blame] | 392 | optional .android.graphics.RectProto parent_frame = 8; |
| 393 | optional .android.graphics.RectProto visible_frame = 9; |
chaviw | cdba9a4 | 2018-07-19 11:36:42 -0700 | [diff] [blame] | 394 | optional .android.view.DisplayCutoutProto cutout = 10; |
chaviw | 9c81e63 | 2018-07-31 11:17:52 -0700 | [diff] [blame] | 395 | optional .android.graphics.RectProto content_insets = 11; |
Jorim Jaggi | f081f06 | 2019-10-24 16:24:54 +0200 | [diff] [blame] | 396 | optional .android.graphics.RectProto overscan_insets = 12 [deprecated=true]; |
chaviw | 9c81e63 | 2018-07-31 11:17:52 -0700 | [diff] [blame] | 397 | optional .android.graphics.RectProto visible_insets = 13; |
| 398 | optional .android.graphics.RectProto stable_insets = 14; |
| 399 | optional .android.graphics.RectProto outsets = 15; |
chaviw | 553b021 | 2018-07-12 13:37:01 -0700 | [diff] [blame] | 400 | } |