+ mOverscanScreenWidth;
pf.bottom = df.bottom = of.bottom = cf.bottom = mOverscanScreenTop
+ mOverscanScreenHeight;
- } else if (attrs.type == WindowManager.LayoutParams.TYPE_WALLPAPER) {
- // The wallpaper mostly goes into the overscan region.
- pf.left = df.left = of.left = cf.left = mRestrictedOverscanScreenLeft;
- pf.top = df.top = of.top = cf.top = mRestrictedOverscanScreenTop;
+ } else if (attrs.type == TYPE_WALLPAPER) {
+ // The wallpaper also has Real Ultimate Power.
+ pf.left = df.left = of.left = cf.left = mUnrestrictedScreenLeft;
+ pf.top = df.top = of.top = cf.top = mUnrestrictedScreenTop;
pf.right = df.right = of.right = cf.right
- = mRestrictedOverscanScreenLeft + mRestrictedOverscanScreenWidth;
+ = mUnrestrictedScreenLeft + mUnrestrictedScreenWidth;
pf.bottom = df.bottom = of.bottom = cf.bottom
- = mRestrictedOverscanScreenTop + mRestrictedOverscanScreenHeight;
+ = mUnrestrictedScreenTop + mUnrestrictedScreenHeight;
} else if ((attrs.flags & FLAG_LAYOUT_IN_OVERSCAN) != 0
&& attrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW
&& attrs.type <= WindowManager.LayoutParams.LAST_SUB_WINDOW) {
// TODO(multidisplay): Wallpapers on main screen only.
final DisplayInfo displayInfo = getDefaultDisplayContentLocked().getDisplayInfo();
- final int dw = displayInfo.appWidth;
- final int dh = displayInfo.appHeight;
+ final int dw = displayInfo.logicalWidth;
+ final int dh = displayInfo.logicalHeight;
// First find top-most window that has asked to be on top of the
// wallpaper; all wallpapers go behind it.
void updateWallpaperOffsetLocked(WindowState changingTarget, boolean sync) {
final DisplayContent displayContent = changingTarget.mDisplayContent;
final DisplayInfo displayInfo = displayContent.getDisplayInfo();
- final int dw = displayInfo.appWidth;
- final int dh = displayInfo.appHeight;
+ final int dw = displayInfo.logicalWidth;
+ final int dh = displayInfo.logicalHeight;
WindowState target = mWallpaperTarget;
if (target != null) {
final boolean visible = isWallpaperVisible(mWallpaperTarget);
final DisplayContent displayContent = mWallpaperTarget.mDisplayContent;
final DisplayInfo displayInfo = displayContent.getDisplayInfo();
- final int dw = displayInfo.appWidth;
- final int dh = displayInfo.appHeight;
+ final int dw = displayInfo.logicalWidth;
+ final int dh = displayInfo.logicalHeight;
int curTokenIndex = mWallpaperTokens.size();
while (curTokenIndex > 0) {
if (toBeDisplayed && win.mIsWallpaper) {
DisplayInfo displayInfo = getDefaultDisplayInfoLocked();
updateWallpaperOffsetLocked(win,
- displayInfo.appWidth, displayInfo.appHeight, false);
+ displayInfo.logicalWidth, displayInfo.logicalHeight, false);
}
if (win.mAppToken != null) {
win.mAppToken.updateReportedVisibilityLocked();
if (mIsWallpaper && (fw != mFrame.width() || fh != mFrame.height())) {
final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo();
- mService.updateWallpaperOffsetLocked(this, displayInfo.appWidth, displayInfo.appHeight,
- false);
+ mService.updateWallpaperOffsetLocked(this,
+ displayInfo.logicalWidth, displayInfo.logicalHeight, false);
}
if (DEBUG_LAYOUT || WindowManagerService.localLOGV) Slog.v(TAG,