summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-06-02 16:50:59 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-06-02 16:50:59 -0700
commit9313a2779732aaaec1f61f85f260499036c7927a (patch)
tree2b3038f4a184c95bac4718a2664170514958c041 /services/java
parent7dad2c24fa7811c115f850fd2a8f2ecc8874061e (diff)
parent096762d6efcae6300c02919bc6b3eaeeffccf91d (diff)
downloadframeworks_base-9313a2779732aaaec1f61f85f260499036c7927a.zip
frameworks_base-9313a2779732aaaec1f61f85f260499036c7927a.tar.gz
frameworks_base-9313a2779732aaaec1f61f85f260499036c7927a.tar.bz2
am 096762d6: am 8075fe48: am 78470718: Fix various places that were using the wrong display metrics.
* commit '096762d6efcae6300c02919bc6b3eaeeffccf91d': Fix various places that were using the wrong display metrics.
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/wm/ScreenRotationAnimation.java4
-rw-r--r--services/java/com/android/server/wm/StrictModeFlash.java2
-rw-r--r--services/java/com/android/server/wm/Watermark.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/services/java/com/android/server/wm/ScreenRotationAnimation.java b/services/java/com/android/server/wm/ScreenRotationAnimation.java
index bb01633..b01ddd3 100644
--- a/services/java/com/android/server/wm/ScreenRotationAnimation.java
+++ b/services/java/com/android/server/wm/ScreenRotationAnimation.java
@@ -69,7 +69,7 @@ class ScreenRotationAnimation {
mContext = context;
mDisplay = display;
- display.getMetrics(mDisplayMetrics);
+ display.getRealMetrics(mDisplayMetrics);
Bitmap screenshot = Surface.screenshot(0, 0);
@@ -244,7 +244,7 @@ class ScreenRotationAnimation {
break;
}
- mDisplay.getMetrics(mDisplayMetrics);
+ mDisplay.getRealMetrics(mDisplayMetrics);
// Initialize the animations. This is a hack, redefining what "parent"
// means to allow supplying the last and next size. In this definition
diff --git a/services/java/com/android/server/wm/StrictModeFlash.java b/services/java/com/android/server/wm/StrictModeFlash.java
index 2c62080..71b5952 100644
--- a/services/java/com/android/server/wm/StrictModeFlash.java
+++ b/services/java/com/android/server/wm/StrictModeFlash.java
@@ -39,7 +39,7 @@ class StrictModeFlash {
public StrictModeFlash(Display display, SurfaceSession session) {
final DisplayMetrics dm = new DisplayMetrics();
- display.getMetrics(dm);
+ display.getRealMetrics(dm);
try {
mSurface = new Surface(session, 0, "StrictModeFlash", -1, 1, 1, PixelFormat.TRANSLUCENT, 0);
diff --git a/services/java/com/android/server/wm/Watermark.java b/services/java/com/android/server/wm/Watermark.java
index 22126f3..375abe5 100644
--- a/services/java/com/android/server/wm/Watermark.java
+++ b/services/java/com/android/server/wm/Watermark.java
@@ -52,7 +52,7 @@ class Watermark {
Watermark(Display display, SurfaceSession session, String[] tokens) {
final DisplayMetrics dm = new DisplayMetrics();
- display.getMetrics(dm);
+ display.getRealMetrics(dm);
if (false) {
Log.i(WindowManagerService.TAG, "*********************** WATERMARK");