xref: /aosp_15_r20/frameworks/base/proto/src/windowmanager.proto (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1/*
2 * Copyright (C) 2022 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 = "proto3";
18
19package com.android.server.wm;
20
21option java_package = "com.android.server.wm";
22option java_outer_classname = "WindowManagerProtos";
23
24message 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 [deprecated=true];
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  int32 appearance = 16;
44  int32 letterbox_inset_left = 17;
45  int32 letterbox_inset_top = 18;
46  int32 letterbox_inset_right = 19;
47  int32 letterbox_inset_bottom = 20;
48  int32 ui_mode = 21;
49}
50
51// Persistent letterboxing configurations
52message LetterboxProto {
53
54  // Possible values for the letterbox horizontal reachability
55  enum LetterboxHorizontalReachability {
56    LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_LEFT = 0;
57    LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_CENTER = 1;
58    LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_RIGHT = 2;
59  }
60
61  // Possible values for the letterbox vertical reachability
62  enum LetterboxVerticalReachability {
63    LETTERBOX_VERTICAL_REACHABILITY_POSITION_TOP = 0;
64    LETTERBOX_VERTICAL_REACHABILITY_POSITION_CENTER = 1;
65    LETTERBOX_VERTICAL_REACHABILITY_POSITION_BOTTOM = 2;
66  }
67
68  // Represents the current horizontal position for the letterboxed activity
69  LetterboxHorizontalReachability letterbox_position_for_horizontal_reachability = 1;
70  // Represents the current vertical position for the letterboxed activity
71  LetterboxVerticalReachability letterbox_position_for_vertical_reachability = 2;
72  // Represents the current horizontal position for the letterboxed activity in book mode
73  LetterboxHorizontalReachability letterbox_position_for_book_mode_reachability = 3;
74  // Represents the current vertical position for the letterboxed activity in tabletop mode
75  LetterboxVerticalReachability letterbox_position_for_tabletop_mode_reachability = 4;
76}