diff options
Diffstat (limited to 'core/java/android/view/Display.java')
| -rw-r--r-- | core/java/android/view/Display.java | 13 |
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 |
