Skip to content

Commit b7df3a7

Browse files
Jeff BrownAndroid (Google) Code Review
authored andcommitted
Merge "Make display info accessible from hidden api." into jb-mr1-dev
2 parents f087557 + 2ab1b7d commit b7df3a7

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)