blob: 106f159a50f953e05ac7e788aca80ff4079e2895 [file] [log] [blame]
Bernardo Rufinoea97d182020-08-19 14:43:14 +01001/**
2 * Copyright (c) 2020, 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
17package android.os;
18
19
20/**
21 * Touch occlusion modes: These modes represent how windows are taken into
22 * consideration in order to decide whether to block obscured touches or
23 * not.
24 *
25 * @hide
26 */
27@Backing(type="int")
28enum TouchOcclusionMode {
29 /**
30 * Touches that pass through this window will be blocked if they are
31 * consumed by a different UID and this window is not trusted.
32 */
33 BLOCK_UNTRUSTED,
34
35 /**
36 * The window's opacity will be taken into consideration for touch
37 * occlusion rules if the touch passes through it and the window is not
38 * trusted.
39 */
40 USE_OPACITY,
41
42 /**
43 * The window won't count for touch occlusion rules if the touch passes
44 * through it.
45 */
46 ALLOW
47}