diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-09-13 11:45:07 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-09-13 11:45:07 -0700 |
commit | c5df37c285221d0fb113f55b9e78b35632241d3f (patch) | |
tree | d93875bc2e5d255aa455004ff0848835a92a14fc /services/java/com/android/server/display/DisplayDeviceInfo.java | |
parent | f69c812f49cb2dea296cd319984e58af026f4c3a (diff) |
Add preliminary API for reporting display capabilities.
Change-Id: Ie18dce5b5d130f9a7cdfca08cddbf9b099312277
Diffstat (limited to 'services/java/com/android/server/display/DisplayDeviceInfo.java')
-rw-r--r-- | services/java/com/android/server/display/DisplayDeviceInfo.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/services/java/com/android/server/display/DisplayDeviceInfo.java b/services/java/com/android/server/display/DisplayDeviceInfo.java index 7c57694042a5..1420a506c8b4 100644 --- a/services/java/com/android/server/display/DisplayDeviceInfo.java +++ b/services/java/com/android/server/display/DisplayDeviceInfo.java @@ -31,16 +31,16 @@ final class DisplayDeviceInfo { public static final int FLAG_DEFAULT_DISPLAY = 1 << 0; /** - * Flag: Indicates that this display device can show secure surfaces. - */ - public static final int FLAG_SECURE = 1 << 1; - - /** * Flag: Indicates that this display device can rotate to show contents in a * different orientation. Otherwise the rotation is assumed to be fixed in the * natural orientation and the display manager should transform the content to fit. */ - public static final int FLAG_SUPPORTS_ROTATION = 1 << 2; + public static final int FLAG_SUPPORTS_ROTATION = 1 << 1; + + /** + * Flag: Indicates that this display device can show secure surfaces. + */ + public static final int FLAG_SUPPORTS_SECURE_VIDEO_OUTPUT = 1 << 2; /** * Touch attachment: Display does not receive touch. @@ -179,8 +179,11 @@ final class DisplayDeviceInfo { if ((flags & FLAG_DEFAULT_DISPLAY) != 0) { msg.append(", FLAG_DEFAULT_DISPLAY"); } - if ((flags & FLAG_SECURE) != 0) { - msg.append(", FLAG_SECURE"); + if ((flags & FLAG_SUPPORTS_ROTATION) != 0) { + msg.append(", FLAG_DEFAULT_DISPLAY"); + } + if ((flags & FLAG_SUPPORTS_SECURE_VIDEO_OUTPUT) != 0) { + msg.append(", FLAG_SUPPORTS_SECURE_VIDEO_OUTPUT"); } return msg.toString(); } |