diff options
| author | Evan Rosky <erosky@google.com> | 2020-01-10 19:12:10 -0800 |
|---|---|---|
| committer | Evan Rosky <erosky@google.com> | 2020-02-03 10:13:37 -0800 |
| commit | 680377e1cbbc1178af6696ab4252b64ad65800b3 (patch) | |
| tree | b5700abc338c34dd4c985306824676ea38c630b3 /core/java/android/view/SurfaceControlViewHost.java | |
| parent | 5c5e55ea4c74bb22bf7c69e33508616fbe3fc6a1 (diff) | |
Pass through some input-related layout flags for windowless surfaces
Add a new API to update a previously-granted input channel. This
currently only supports changing layout param flags, and, for
those: only supports NON_TOUCHABLE and SLIPPERY
Bug: 133381284
Test: Added WindowlessWmTests#testDisableTouchInput
Change-Id: I29f70cde0eb646663c0a0ad058979845e732cee7
Diffstat (limited to 'core/java/android/view/SurfaceControlViewHost.java')
| -rw-r--r-- | core/java/android/view/SurfaceControlViewHost.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/view/SurfaceControlViewHost.java b/core/java/android/view/SurfaceControlViewHost.java index 71cf051a4e08..bf848196454d 100644 --- a/core/java/android/view/SurfaceControlViewHost.java +++ b/core/java/android/view/SurfaceControlViewHost.java @@ -138,6 +138,7 @@ public class SurfaceControlViewHost { /** * @hide */ + @TestApi public void addView(@NonNull View view, WindowManager.LayoutParams attrs) { mViewRoot.setView(view, attrs, null); } @@ -161,6 +162,7 @@ public class SurfaceControlViewHost { /** * @hide */ + @TestApi public void relayout(WindowManager.LayoutParams attrs) { mViewRoot.setLayoutParams(attrs, false); mViewRoot.setReportNextDraw(); |
