summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/Surface.java11
-rw-r--r--core/java/android/view/WindowManager.java2
2 files changed, 12 insertions, 1 deletions
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java
index 0326a8f..83f9119 100644
--- a/core/java/android/view/Surface.java
+++ b/core/java/android/view/Surface.java
@@ -99,6 +99,17 @@ public class Surface implements Parcelable {
*/
public static final int OPAQUE = 0x00000400;
+ /**
+ * Application requires a hardware-protected path to an
+ * external display sink. If a hardware-protected path is not available,
+ * then this surface will not be displayed on the external sink.
+ *
+ * @hide
+ */
+ public static final int PROTECTED_APP = 0x00000800;
+
+ // 0x1000 is reserved for an independent DRM protected flag in framework
+
/** Creates a normal surface. This is the default. */
public static final int FX_SURFACE_NORMAL = 0x00000000;
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java
index 02e5b63..ca932e9 100644
--- a/core/java/android/view/WindowManager.java
+++ b/core/java/android/view/WindowManager.java
@@ -537,7 +537,7 @@ public interface WindowManager extends ViewManager {
public static final int FLAG_DITHER = 0x00001000;
/** Window flag: don't allow screen shots while this window is
- * displayed. */
+ * displayed. Maps to Surface.SECURE. */
public static final int FLAG_SECURE = 0x00002000;
/** Window flag: a special mode where the layout parameters are used