diff options
| author | Vishnu Nair <vishnun@google.com> | 2021-09-14 12:35:23 -0700 |
|---|---|---|
| committer | Vishnu Nair <vishnun@google.com> | 2021-09-20 23:22:31 +0000 |
| commit | cbc4b97e31b99ffe14cde7d6cc5ac3fff7b04cc0 (patch) | |
| tree | 8fae758fba34bd02cb32167912882ec3117f3d0f /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | e3b6f72053200d03ba9a725371e4377853d9ec84 (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: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
Change-Id: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
