summaryrefslogtreecommitdiff
path: root/core/java/android/view/Display.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-08-08 01:46:41 -0700
committerJeff Brown <jeffbrown@google.com>2012-08-08 02:06:14 -0700
commit2ab1b7d9abc1b720b63ae01abcf1df0dc780eed4 (patch)
tree1a7834b4ae21fd548993be37f211fefcaf419a27 /core/java/android/view/Display.java
parent1ae86869bcc2262b6828102c8a3ee08e68580fa7 (diff)
Make display info accessible from hidden api.
Change-Id: I83f3899b9ef10da4fe9a71f40dee8e940b32ec46
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 2b0c14df21f2..5409b3849ff2 100644
--- a/core/java/android/view/Display.java
+++ b/core/java/android/view/Display.java
@@ -101,6 +101,19 @@ public final class Display {
}
/**
+ * 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,