1*d57664e9SAndroid Build Coastguard Worker/* 2*d57664e9SAndroid Build Coastguard Worker * Copyright (C) 2022 The Android Open Source Project 3*d57664e9SAndroid Build Coastguard Worker * 4*d57664e9SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*d57664e9SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*d57664e9SAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*d57664e9SAndroid Build Coastguard Worker * 8*d57664e9SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*d57664e9SAndroid Build Coastguard Worker * 10*d57664e9SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*d57664e9SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*d57664e9SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*d57664e9SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*d57664e9SAndroid Build Coastguard Worker * limitations under the License. 15*d57664e9SAndroid Build Coastguard Worker */ 16*d57664e9SAndroid Build Coastguard Worker 17*d57664e9SAndroid Build Coastguard Workersyntax = "proto3"; 18*d57664e9SAndroid Build Coastguard Worker 19*d57664e9SAndroid Build Coastguard Workerpackage com.android.server.wm; 20*d57664e9SAndroid Build Coastguard Worker 21*d57664e9SAndroid Build Coastguard Workeroption java_package = "com.android.server.wm"; 22*d57664e9SAndroid Build Coastguard Workeroption java_outer_classname = "WindowManagerProtos"; 23*d57664e9SAndroid Build Coastguard Worker 24*d57664e9SAndroid Build Coastguard Workermessage TaskSnapshotProto { 25*d57664e9SAndroid Build Coastguard Worker int32 orientation = 1; 26*d57664e9SAndroid Build Coastguard Worker int32 inset_left = 2; 27*d57664e9SAndroid Build Coastguard Worker int32 inset_top = 3; 28*d57664e9SAndroid Build Coastguard Worker int32 inset_right = 4; 29*d57664e9SAndroid Build Coastguard Worker int32 inset_bottom = 5; 30*d57664e9SAndroid Build Coastguard Worker bool is_real_snapshot = 6; 31*d57664e9SAndroid Build Coastguard Worker int32 windowing_mode = 7; 32*d57664e9SAndroid Build Coastguard Worker int32 system_ui_visibility = 8 [deprecated=true]; 33*d57664e9SAndroid Build Coastguard Worker bool is_translucent = 9; 34*d57664e9SAndroid Build Coastguard Worker string top_activity_component = 10; 35*d57664e9SAndroid Build Coastguard Worker // deprecated because original width and height are stored now instead of the scale. 36*d57664e9SAndroid Build Coastguard Worker float legacy_scale = 11 [deprecated=true]; 37*d57664e9SAndroid Build Coastguard Worker int64 id = 12; 38*d57664e9SAndroid Build Coastguard Worker int32 rotation = 13; 39*d57664e9SAndroid Build Coastguard Worker // The task width when the snapshot was taken 40*d57664e9SAndroid Build Coastguard Worker int32 task_width = 14; 41*d57664e9SAndroid Build Coastguard Worker // The task height when the snapshot was taken 42*d57664e9SAndroid Build Coastguard Worker int32 task_height = 15; 43*d57664e9SAndroid Build Coastguard Worker int32 appearance = 16; 44*d57664e9SAndroid Build Coastguard Worker int32 letterbox_inset_left = 17; 45*d57664e9SAndroid Build Coastguard Worker int32 letterbox_inset_top = 18; 46*d57664e9SAndroid Build Coastguard Worker int32 letterbox_inset_right = 19; 47*d57664e9SAndroid Build Coastguard Worker int32 letterbox_inset_bottom = 20; 48*d57664e9SAndroid Build Coastguard Worker int32 ui_mode = 21; 49*d57664e9SAndroid Build Coastguard Worker} 50*d57664e9SAndroid Build Coastguard Worker 51*d57664e9SAndroid Build Coastguard Worker// Persistent letterboxing configurations 52*d57664e9SAndroid Build Coastguard Workermessage LetterboxProto { 53*d57664e9SAndroid Build Coastguard Worker 54*d57664e9SAndroid Build Coastguard Worker // Possible values for the letterbox horizontal reachability 55*d57664e9SAndroid Build Coastguard Worker enum LetterboxHorizontalReachability { 56*d57664e9SAndroid Build Coastguard Worker LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_LEFT = 0; 57*d57664e9SAndroid Build Coastguard Worker LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_CENTER = 1; 58*d57664e9SAndroid Build Coastguard Worker LETTERBOX_HORIZONTAL_REACHABILITY_POSITION_RIGHT = 2; 59*d57664e9SAndroid Build Coastguard Worker } 60*d57664e9SAndroid Build Coastguard Worker 61*d57664e9SAndroid Build Coastguard Worker // Possible values for the letterbox vertical reachability 62*d57664e9SAndroid Build Coastguard Worker enum LetterboxVerticalReachability { 63*d57664e9SAndroid Build Coastguard Worker LETTERBOX_VERTICAL_REACHABILITY_POSITION_TOP = 0; 64*d57664e9SAndroid Build Coastguard Worker LETTERBOX_VERTICAL_REACHABILITY_POSITION_CENTER = 1; 65*d57664e9SAndroid Build Coastguard Worker LETTERBOX_VERTICAL_REACHABILITY_POSITION_BOTTOM = 2; 66*d57664e9SAndroid Build Coastguard Worker } 67*d57664e9SAndroid Build Coastguard Worker 68*d57664e9SAndroid Build Coastguard Worker // Represents the current horizontal position for the letterboxed activity 69*d57664e9SAndroid Build Coastguard Worker LetterboxHorizontalReachability letterbox_position_for_horizontal_reachability = 1; 70*d57664e9SAndroid Build Coastguard Worker // Represents the current vertical position for the letterboxed activity 71*d57664e9SAndroid Build Coastguard Worker LetterboxVerticalReachability letterbox_position_for_vertical_reachability = 2; 72*d57664e9SAndroid Build Coastguard Worker // Represents the current horizontal position for the letterboxed activity in book mode 73*d57664e9SAndroid Build Coastguard Worker LetterboxHorizontalReachability letterbox_position_for_book_mode_reachability = 3; 74*d57664e9SAndroid Build Coastguard Worker // Represents the current vertical position for the letterboxed activity in tabletop mode 75*d57664e9SAndroid Build Coastguard Worker LetterboxVerticalReachability letterbox_position_for_tabletop_mode_reachability = 4; 76*d57664e9SAndroid Build Coastguard Worker}