1/* 2 * Copyright (C) 2024 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 "protos/perfetto/trace/android/graphics/rect.proto"; 20import "protos/perfetto/trace/android/view/displaycutout.proto"; 21import "protos/perfetto/trace/android/view/windowlayoutparams.proto"; 22 23package perfetto.protos; 24 25// Represents a {@link android.view.ViewRootImpl} object 26message ViewRootImplProto { 27 optional string view = 1; 28 optional int32 display_id = 2; 29 optional bool app_visible = 3; 30 optional int32 width = 4; 31 optional int32 height = 5; 32 optional bool is_animating = 6; 33 optional RectProto visible_rect = 7; 34 optional bool is_drawing = 8; 35 optional bool added = 9; 36 optional RectProto win_frame = 10; 37 optional DisplayCutoutProto pending_display_cutout = 11 [deprecated = true]; 38 optional string last_window_insets = 12; 39 optional string soft_input_mode = 13; 40 optional int32 scroll_y = 14; 41 optional int32 cur_scroll_y = 15; 42 optional bool removed = 16; 43 optional WindowLayoutParamsProto window_attributes = 17; 44}