summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Wale Ogunwale <ogunwale@google.com> 2014-10-27 23:05:38 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-10-27 23:05:39 +0000
commit674f55e515d0895475d136f7793f6ce9929d859c (patch)
tree2cc072fef2ff66d9ba371c46f6c417e027eaa43d
parent253626b822b3b20fdb9727705593b4b5b55b8553 (diff)
parentc6061fa78822080e5b7849b243611a778da6c198 (diff)
Merge "Added documentation for various window frame types." into lmp-mr1-dev
-rw-r--r--services/core/java/com/android/server/wm/WindowState.java26
1 files changed, 23 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/WindowState.java b/services/core/java/com/android/server/wm/WindowState.java
index 806f7c532513..e5cf7644ffb9 100644
--- a/services/core/java/com/android/server/wm/WindowState.java
+++ b/services/core/java/com/android/server/wm/WindowState.java
@@ -227,13 +227,33 @@ final class WindowState implements WindowManagerPolicy.WindowState {
final Rect mCompatFrame = new Rect();
final Rect mContainingFrame = new Rect();
+
+ final Rect mParentFrame = new Rect();
+
+ // The entire screen area of the device.
final Rect mDisplayFrame = new Rect();
+
+ // The region of the display frame that the display type supports displaying content on. This
+ // is mostly a special case for TV where some displays don’t have the entire display usable.
+ // {@link WindowManager.LayoutParams#FLAG_LAYOUT_IN_OVERSCAN} flag can be used to allow
+ // window display contents to extend into the overscan region.
final Rect mOverscanFrame = new Rect();
+
+ // The display frame minus the stable insets. This value is always constant regardless of if
+ // the status bar or navigation bar is visible.
+ final Rect mStableFrame = new Rect();
+
+ // The area not occupied by the status and navigation bars. So, if both status and navigation
+ // bars are visible, the decor frame is equal to the stable frame.
+ final Rect mDecorFrame = new Rect();
+
+ // Equal to the decor frame if the IME (e.g. keyboard) is not present. Equal to the decor frame
+ // minus the area occupied by the IME if the IME is present.
final Rect mContentFrame = new Rect();
- final Rect mParentFrame = new Rect();
+
+ // Legacy stuff. Generally equal to the content frame expect when the IME for older apps
+ // displays hint text.
final Rect mVisibleFrame = new Rect();
- final Rect mDecorFrame = new Rect();
- final Rect mStableFrame = new Rect();
boolean mContentChanged;