Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ffebb03 authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am 205a9c08: am b7df3a71: Merge "Make display info accessible from hidden api." into jb-mr1-dev

* commit '205a9c08':
  Make display info accessible from hidden api.
parents 7e355ac9 205a9c08
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -100,6 +100,19 @@ public final class Display {
        return mDisplayId;
    }

    /**
     * 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>