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
17 syntax = "proto3";
18
19 package com.android.server.wm;
20
21 option java_package = "com.android.server.wm";
22 option java_outer_classname = "WindowManagerProtos";
23
24 message TaskSnapshotProto {
25     int32 orientation = 1;
26     int32 inset_left = 2;
27     int32 inset_top = 3;
28     int32 inset_right = 4;
29     int32 inset_bottom = 5;
30     bool is_real_snapshot = 6;
31     int32 windowing_mode = 7;
32     int32 system_ui_visibility = 8;
33     bool is_translucent = 9;
34     string top_activity_component = 10;
35     // deprecated because original width and height are stored now instead of the scale.
36     float legacy_scale = 11 [deprecated=true];
37     int64 id = 12;
38     int32 rotation = 13;
39     // The task width when the snapshot was taken
40     int32 task_width = 14;
41     // The task height when the snapshot was taken
42     int32 task_height = 15;
43 }
44