Skip to content

Commit 2ab1b7d

Browse files
author
Jeff Brown
committed
Make display info accessible from hidden api.
Change-Id: I83f3899b9ef10da4fe9a71f40dee8e940b32ec46
1 parent 1ae8686 commit 2ab1b7d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

core/java/android/view/Display.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,19 @@ public int getDisplayId() {
100100
return mDisplayId;
101101
}
102102

103+
/**
104+
* Gets a full copy of the display information.
105+
*
106+
* @param outDisplayInfo The object to receive the copy of the display information.
107+
* @hide
108+
*/
109+
public void getDisplayInfo(DisplayInfo outDisplayInfo) {
110+
synchronized (this) {
111+
updateDisplayInfoLocked();
112+
outDisplayInfo.copyFrom(mDisplayInfo);
113+
}
114+
}
115+
103116
/**
104117
* Gets the size of the display, in pixels.
105118
* <p>

0 commit comments

Comments
 (0)