diff options
| author | Dianne Hackborn <hackbod@google.com> | 2011-05-19 18:13:32 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2011-05-19 18:23:29 -0700 |
| commit | 69cb87576ba163b61bb0e6477a3b7c57a9b11d40 (patch) | |
| tree | a44be0af3d008409403be133358bdcd628741c01 /core/java/android/view/WindowManagerPolicy.java | |
| parent | b9537db8d9ee27efb4a98415ad2d6b50c1806e5d (diff) | |
Add new "-swNNNdp" resource qualifier.
Change-Id: I0101e88ca9d8d44138bdcaf571f24b0352f4f6ce
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index c7cf4592fcfc..086ed5a1d4a2 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -464,16 +464,34 @@ public interface WindowManagerPolicy { public int getMaxWallpaperLayer(); /** - * Return the display width available after excluding the window - * decor. + * Return the display width available after excluding any screen + * decorations that can never be removed. That is, system bar or + * button bar. */ - public int getNonDecorDisplayWidth(int fullWidth); + public int getNonDecorDisplayWidth(int rotation, int fullWidth); /** - * Return the display height available after excluding the screen - * decor. + * Return the display height available after excluding any screen + * decorations that can never be removed. That is, system bar or + * button bar. */ - public int getNonDecorDisplayHeight(int fullHeight); + public int getNonDecorDisplayHeight(int rotation, int fullHeight); + + /** + * Return the available screen width that we should report for the + * configuration. This must be no larger than + * {@link #getNonDecorDisplayWidth(int, int)}; it may be smaller than + * that to account for more transient decoration like a status bar. + */ + public int getConfigDisplayWidth(int rotation, int fullWidth); + + /** + * Return the available screen height that we should report for the + * configuration. This must be no larger than + * {@link #getNonDecorDisplayHeight(int, int)}; it may be smaller than + * that to account for more transient decoration like a status bar. + */ + public int getConfigDisplayHeight(int rotation, int fullHeight); /** * Return whether the given window should forcibly hide everything |
