DO NOT MERGE. Integrate from master: Rework display size access.

Applications now get the display size from the window manager.  No
behavior should be changed yet, this is just prep for some real
changes.

Change-Id: I47bf8b55ecd4476c25ed6482494a7bcc5fae45d2
This commit is contained in:
Dianne Hackborn
2011-04-20 18:18:51 -07:00
parent 700ab1c758
commit ac8dea12c1
20 changed files with 465 additions and 90 deletions

View File

@@ -483,8 +483,8 @@ final class WindowState implements WindowManagerPolicy.WindowState {
}
if (mIsWallpaper && (fw != frame.width() || fh != frame.height())) {
mService.updateWallpaperOffsetLocked(this, mService.mDisplay.getWidth(),
mService.mDisplay.getHeight(), false);
mService.updateWallpaperOffsetLocked(this, mService.mDisplay.getRealWidth(),
mService.mDisplay.getRealHeight(), false);
}
if (WindowManagerService.localLOGV) {