diff options
| author | Philip P. Moltmann <moltmann@google.com> | 2018-09-17 11:26:04 -0700 |
|---|---|---|
| committer | Philip P. Moltmann <moltmann@google.com> | 2018-09-17 19:16:44 +0000 |
| commit | d66dd99a9f124e42349a1af4e3d8aadc1e83704e (patch) | |
| tree | 896934a3f87311a970252ae29b513df5ea1427b1 /core/java/android/view/Window.java | |
| parent | 6c109c76c99a0d8f3437b4530f6e5281bb45f00d (diff) | |
Allow mainline modules to set private window flags
We need to prevent apps from trying to decorate the permission grant
requests. Hence the the permission controller app (which will become a
mainline module) will need to set the
PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS private window flag.
Test: Built
Bug: 110953302
Change-Id: I7dfed6aac8ec487ac0665ad33c2892cad416224a
Diffstat (limited to 'core/java/android/view/Window.java')
| -rw-r--r-- | core/java/android/view/Window.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java index a7ec6df00017..982737aedc74 100644 --- a/core/java/android/view/Window.java +++ b/core/java/android/view/Window.java @@ -25,6 +25,7 @@ import android.annotation.LayoutRes; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.StyleRes; +import android.annotation.SystemApi; import android.annotation.UnsupportedAppUsage; import android.app.WindowConfiguration; import android.content.Context; @@ -1079,8 +1080,18 @@ public abstract class Window { setFlags(flags, flags); } - /** @hide */ - @UnsupportedAppUsage + /** + * Add private flag bits. + * + * <p>Refer to the individual flags for the permissions needed. + * + * <p>Note: Only for updateable system components (aka. mainline modules) + * + * @param flags The flag bits to add. + * + * @hide + */ + @SystemApi public void addPrivateFlags(int flags) { setPrivateFlags(flags, flags); } |
