diff options
author | Craig Mautner <cmautner@google.com> | 2012-09-07 13:55:58 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-09-07 14:46:32 -0700 |
commit | 722285e199a9fc74b9b3343b7505c00666848c88 (patch) | |
tree | 31bae3426c4a79bbc7a23767a893a20f99a349fd /services/java/com/android/server/wm/DisplayContent.java | |
parent | cbad976b2a36a0895ca94510d5208a86f66cf596 (diff) | |
download | frameworks_base-722285e199a9fc74b9b3343b7505c00666848c88.zip frameworks_base-722285e199a9fc74b9b3343b7505c00666848c88.tar.gz frameworks_base-722285e199a9fc74b9b3343b7505c00666848c88.tar.bz2 |
Make mirroring automatic based on Windows on display.
Tell the display manager whenever a given logical display
contains interesting windows. If so, then the display
manager arranges to show that content on a physical display,
otherwise it ignores the logical display and makes its
associated primary physical display mirror the default
display.
Assign DisplayContents when Displays are added, remove them when
Displays are removed, and update the DisplayInfo when Displays
change.
Change-Id: I36e08ec538055acabe1e24cdd12c40de4e47a158
Diffstat (limited to 'services/java/com/android/server/wm/DisplayContent.java')
-rw-r--r-- | services/java/com/android/server/wm/DisplayContent.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/services/java/com/android/server/wm/DisplayContent.java b/services/java/com/android/server/wm/DisplayContent.java index 0ea051f..4df692b 100644 --- a/services/java/com/android/server/wm/DisplayContent.java +++ b/services/java/com/android/server/wm/DisplayContent.java @@ -94,10 +94,13 @@ class DisplayContent { } DisplayInfo getDisplayInfo() { - // TODO: Add a listener for changes to Display and update mDisplayInfo when appropriate. return mDisplayInfo; } + public void updateDisplayInfo() { + mDisplay.getDisplayInfo(mDisplayInfo); + } + public void dump(PrintWriter pw) { pw.print(" Display: mDisplayId="); pw.println(mDisplayId); pw.print(" init="); pw.print(mInitialDisplayWidth); pw.print("x"); @@ -121,7 +124,7 @@ class DisplayContent { pw.print("-"); pw.print(mDisplayInfo.largestNominalAppWidth); pw.print("x"); pw.println(mDisplayInfo.largestNominalAppHeight); pw.print(" layoutNeeded="); pw.println(layoutNeeded); - pw.print("magnificationSpec="); pw.println(mMagnificationSpec.toString()); + pw.print("magnificationSpec="); pw.println(mMagnificationSpec); pw.println(); } } |