diff options
| author | Dianne Hackborn <hackbod@google.com> | 2013-02-15 16:32:56 -0800 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2013-02-19 12:08:58 -0800 |
| commit | c652de8141f5b8e3c6bcf8916842b6e106413b1a (patch) | |
| tree | d3be73e9b665365bdacd01cfc66faa24054f5a9c /core/java/android/view/WindowManagerPolicy.java | |
| parent | 736ef1e9dedbdd0c24e27f170034f2f869fd083f (diff) | |
Implement display overscan support.
The window manager now keeps track of the overscan of
each display, with an API to set it. The overscan impacts
how it positions windows in the display. There is a new set
of APIs for windows to say they would like to go into the
overscan region. There is a call into the window manager to
set the overscan region for a display, and it now has a
concept of display settings that it stores presistently.
Also added a new "wm" command, moving the window manager
specific commands from the "am" command to there and adding
a new now to set the overscan region.
Change-Id: Id2c8092db64fd0a982274fedac7658d82f30f9ff
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index b5d216ab9c29..192eded86240 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -458,6 +458,12 @@ public interface WindowManagerPolicy { public void setInitialDisplaySize(Display display, int width, int height, int density); /** + * Called by window manager to set the overscan region that should be used for the + * given display. + */ + public void setDisplayOverscan(Display display, int left, int top, int right, int bottom); + + /** * Check permissions when adding a window. * * @param attrs The window's LayoutParams. |
