Make display info accessible from hidden api.

Change-Id: I83f3899b9ef10da4fe9a71f40dee8e940b32ec46
diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java
index 2b0c14d..5409b38 100644
--- a/core/java/android/view/Display.java
+++ b/core/java/android/view/Display.java
@@ -101,6 +101,19 @@
     }
 
     /**
+     * Gets a full copy of the display information.
+     *
+     * @param outDisplayInfo The object to receive the copy of the display information.
+     * @hide
+     */
+    public void getDisplayInfo(DisplayInfo outDisplayInfo) {
+        synchronized (this) {
+            updateDisplayInfoLocked();
+            outDisplayInfo.copyFrom(mDisplayInfo);
+        }
+    }
+
+    /**
      * Gets the size of the display, in pixels.
      * <p>
      * Note that this value should <em>not</em> be used for computing layouts,