diff options
| author | Vishnu Nair <vishnun@google.com> | 2021-09-17 09:38:20 -0700 |
|---|---|---|
| committer | Vishnu Nair <vishnun@google.com> | 2021-09-17 12:14:47 -0700 |
| commit | d100067fd62adb4648e966b3306b9a2f3b1fd38e (patch) | |
| tree | 19aea0df31b6da74b0f6f751fad170bb71599383 /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | 02591181a5b3679f52e65e5214475c2a42aa3cf2 (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
Change-Id: Ifcb4133306a43874e74e8fb0f42b60842daf6f25
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
