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 17import {WmProtoType} from './wm_proto_type'; 18 19const commonDenylistProperties = [ 20 'prototype', 21 'rootWindowContainer', 22 'children', 23]; 24 25export const WM_DENYLIST_PROPERTIES = new Map<WmProtoType, string[]>([ 26 [ 27 WmProtoType.WindowManagerService, 28 commonDenylistProperties.concat(['windowContainer']), 29 ], 30 [WmProtoType.RootWindowContainer, commonDenylistProperties], 31 [WmProtoType.WindowContainer, commonDenylistProperties], 32 [ 33 WmProtoType.DisplayContent, 34 commonDenylistProperties.concat(['windowContainer']), 35 ], 36 [WmProtoType.DisplayArea, commonDenylistProperties], 37 [WmProtoType.Task, commonDenylistProperties.concat(['windowContainer'])], 38 [WmProtoType.Activity, commonDenylistProperties], 39 [WmProtoType.WindowToken, commonDenylistProperties], 40 [WmProtoType.WindowState, commonDenylistProperties], 41 [ 42 WmProtoType.TaskFragment, 43 commonDenylistProperties.concat(['windowContainer']), 44 ], 45]); 46