diff options
author | 2021-09-02 09:52:48 -0700 | |
---|---|---|
committer | 2021-09-20 17:38:33 +0000 | |
commit | 50c735592ec73c34c62dd983a2dc00a1904b1d4d (patch) | |
tree | 49d441fd52ba265fe814dd015b3b63a0168dba56 /services/surfaceflinger/ClientCache.cpp | |
parent | 214040a792c4f9793421b017019d0dc53d2de6ca (diff) |
SurfaceControl: Add setDropInputMode api
Introduces an API to drop input events on this SurfaceControl. This
policy will be inherited by its children. The caller must hold the
ACCESS_SURFACE_FLINGER permission.
Options include:
ALL: SurfaceControl and its children will not receive any
input regardless of whether it has a valid input channel.
OBSCURED: SurfaceControl and its children will not
receive any input if the layer is obscured, cropped by its parent or
translucent.
These policies are used to enable features that allow for a less trusted
interaction model between apps. See the bug for more details.
Test: atest libgui_test InputDispatcherDropInputFeatureTest
Bug:197364677
Merged-In: I443741d5ab51a45d37fb865f11c433c436d96c1e
Change-Id: I443741d5ab51a45d37fb865f11c433c436d96c1e
Diffstat (limited to 'services/surfaceflinger/ClientCache.cpp')
0 files changed, 0 insertions, 0 deletions