Massimo Carli | 5935807 | 2022-07-27 11:08:47 +0000 | [diff] [blame^] | 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 | |
| 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 [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 | } |
| 49 | |
| 50 | // Persistent letterboxing configurations |
| 51 | message LetterboxProto { |
| 52 | |
| 53 | // Possible values for the letterbox horizontal reachability |
| 54 | enum LetterboxHorizontalReachability { |
| 55 | LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_LEFT = 0; |
| 56 | LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_CENTER = 1; |
| 57 | LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_RIGHT = 2; |
| 58 | } |
| 59 | |
| 60 | // Possible values for the letterbox vertical reachability |
| 61 | enum LetterboxVerticalReachability { |
| 62 | LETTERBOX_VERTICAL_REACHABILITY_POSITION_TOP = 0; |
| 63 | LETTERBOX_VERTICAL_REACHABILITY_POSITION_CENTER = 1; |
| 64 | LETTERBOX_VERTICAL_REACHABILITY_POSITION_BOTTOM = 2; |
| 65 | } |
| 66 | |
| 67 | // Represents the current horizontal position for the letterboxed activity |
| 68 | LetterboxHorizontalReachability letterbox_position_for_horizontal_reachability = 1; |
| 69 | // Represents the current vertical position for the letterboxed activity |
| 70 | LetterboxVerticalReachability letterbox_position_for_vertical_reachability = 2; |
| 71 | } |