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 17 package android.gui; 18 19 20 /** 21 * Trusted overlay state prevents layers from being considered as obscuring for 22 * input occlusion detection purposes. 23 * 24 * @hide 25 */ 26 @Backing(type="int") 27 enum TrustedOverlay { 28 /** 29 * The default, layer will inherit the state from its parents. If the parent state is also 30 * unset, the layer will be considered as untrusted. 31 */ 32 UNSET, 33 34 /** 35 * Treats this layer and all its children as an untrusted overlay. This will override any 36 * state set by its parent layers. 37 */ 38 DISABLED, 39 40 /** 41 * Treats this layer and all its children as a trusted overlay unless the child layer 42 * explicitly disables its trusted state. 43 */ 44 ENABLED 45 } 46