summaryrefslogtreecommitdiff
path: root/core/java/android/view/Display.java
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-11-12 22:01:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-11-12 22:01:31 +0000
commit581cccdde99adfae7d05b51fa86acdb83d80b1bf (patch)
treea1d30379b3a03b2701d5d02e219c35beab1d7c45 /core/java/android/view/Display.java
parenta79fac052f6e8027c829fbb3cd4bfd9e7ce3bbe0 (diff)
parent891146c6a6e40f40d9e9ca34378389a5aa6a53a7 (diff)
Merge "Implement launch bounds logic in Android (3/3)"
Diffstat (limited to 'core/java/android/view/Display.java')
-rw-r--r--core/java/android/view/Display.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java
index 3f14379c9bc9..4ead34ed2f97 100644
--- a/core/java/android/view/Display.java
+++ b/core/java/android/view/Display.java
@@ -455,6 +455,19 @@ public final class Display {
}
/**
+ * Gets the display unique id.
+ * <p>
+ * Unique id is different from display id because physical displays have stable unique id across
+ * reboots.
+ *
+ * @see com.android.service.display.DisplayDevice#hasStableUniqueId().
+ * @hide
+ */
+ public String getUniqueId() {
+ return mDisplayInfo.uniqueId;
+ }
+
+ /**
* Returns true if this display is still valid, false if the display has been removed.
*
* If the display is invalid, then the methods of this class will