auto import from //branches/cupcake/...@132569

This commit is contained in:
The Android Open Source Project
2009-02-20 07:38:31 -08:00
parent 3001a03543
commit 15ab3eae2e
52 changed files with 1255 additions and 1263 deletions

View File

@@ -2088,6 +2088,11 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
}
}
int or = wtoken.requestedOrientation;
// If this application is fullscreen, then just take whatever
// orientation it has and ignores whatever is under it.
if (wtoken.appFullscreen) {
return or;
}
// If this application has requested an explicit orientation,
// then use it.
if (or == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ||
@@ -5594,6 +5599,10 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
return mFrame;
}
public Rect getShownFrameLw() {
return mShownFrame;
}
public Rect getDisplayFrameLw() {
return mDisplayFrame;
}
@@ -6221,10 +6230,16 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
}
public boolean fillsScreenLw(int screenWidth, int screenHeight,
boolean shownFrame) {
boolean shownFrame, boolean onlyOpaque) {
if (mSurface == null) {
return false;
}
if (mAppToken != null && !mAppToken.appFullscreen) {
return false;
}
if (onlyOpaque && mAttrs.format != PixelFormat.OPAQUE) {
return false;
}
final Rect frame = shownFrame ? mShownFrame : mFrame;
if (frame.left <= 0 && frame.top <= 0
&& frame.right >= screenWidth