summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/Display.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2013-11-07 17:47:25 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-07 17:47:25 -0800
commit7da5bbedc75d7143d5b2cf36c4876f7b09a88807 (patch)
treeee4e576c15a787bffc1bc83149c754fc17950b20 /core/java/android/view/Display.java
parent6c58d890f3a6993a3bcf413b84ba6fba875832f8 (diff)
parentc2b652fd4d386b79dc99af249b6ad3844e53fdf1 (diff)
downloadframeworks_base-7da5bbedc75d7143d5b2cf36c4876f7b09a88807.zip
frameworks_base-7da5bbedc75d7143d5b2cf36c4876f7b09a88807.tar.gz
frameworks_base-7da5bbedc75d7143d5b2cf36c4876f7b09a88807.tar.bz2
am c2b652fd: am 5182ea4b: am d40a4d74: Merge "Add media router service and integrate with remote displays." into klp-dev
* commit 'c2b652fd4d386b79dc99af249b6ad3844e53fdf1': Add media router service and integrate with remote displays.
Diffstat (limited to 'core/java/android/view/Display.java')
-rw-r--r--core/java/android/view/Display.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java
index 27e3b08..d3f63b4 100644
--- a/core/java/android/view/Display.java
+++ b/core/java/android/view/Display.java
@@ -645,6 +645,15 @@ public final class Display {
|| uid == 0;
}
+ /**
+ * Returns true if the display is a public presentation display.
+ * @hide
+ */
+ public boolean isPublicPresentation() {
+ return (mFlags & (Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION)) ==
+ Display.FLAG_PRESENTATION;
+ }
+
private void updateDisplayInfoLocked() {
// Note: The display manager caches display info objects on our behalf.
DisplayInfo newInfo = mGlobal.getDisplayInfo(mDisplayId);