History log of /frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a1e7be375e618544e22287d0ee59f517536f95e1 22-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed NPE during boot animation on fugu." into nyc-dev
20ec11b4e61e5fffd639034f936ed5ef8359d414 22-Apr-2016 Wale Ogunwale <ogunwale@google.com> Fixed NPE during boot animation on fugu.

- Don't set a dim layer in the docked controller if we are not dimming.
- Check to make sure the docked divider window isn't null before trying
to use its layer for dimming.

Bug: 28339915
Change-Id: I33d49d26ffcaec63d135f82a6208e127ba0f0570
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
ae712e5708aeb2579bcfa38794e840350a992d97 22-Apr-2016 Adrian Roos <roosa@google.com> Fix IME for status bar in docked mode

If the dock divider is visible, window manager raises the IME from the
app's layer on top of the divider. However if the IME was targeting the
status bar, it would also remove it from the status bar's layer and
move it atop the divider (but below the status bar).

To fix this, we now only perform the adjustment to the IME's layer if
that moves the IME up, but never down.

Change-Id: I1308f51b98fffee64a5075c49697f5bc177ea32e
Fixes: 28024606
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
b976877a4b62a6030fe67796ab8a6a69b4cc041f 20-Apr-2016 Robert Carr <racarr@google.com> When restacking IM windows preserve relative order.

We were still having some troubles with attached windows which we
werent properly promoting here. Now we catch everything with
the mIsImWindow flag. Before it was safe to assume dialogs
were on top of the Input Method but with a whole range of child
windows we need to be more careful. WindowManagerService has
been very careful preparing the window list for us, so carry
out its wishes and preserve the original relative ordering of
input method windows when restacking.

Bug: 28235787
Change-Id: Ied96d83f77b82df81b3b0aa94cb61e9c22999d23
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
36ac7e9f88e43a518b9670f556c011cb3d8f236f 18-Apr-2016 Rob Carr <racarr@google.com> Merge "Promote input method dialogs layers with input method." into nyc-dev
d82b748b268dbd35e02d21eb7cc6be7b19484f5f 18-Apr-2016 Robert Carr <racarr@google.com> Promote input method dialogs layers with input method.

When raising the layer of the input method window we also
have to raise the layer of its assosciated dialogs which
thankfully are already collected for us.

Bug: 28138068
Bug: 28186814
Change-Id: I4e63a642199c5aad3b3322e773df287ced80d641
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
90da5e54482fd513ab73bbcfce9f55312d0c96f7 15-Apr-2016 Robert Carr <racarr@google.com> Always assign layer when restacking special windows.

In assignAndIncreaseLayerIfNeeded we need to always
restack the special windows, even if we are stacking them
downwards, otherwise they could be left at too high of
a value from a previous pass. This check was added by
me originally, as a now revealed poorly thought out attempt
to avoid changing existing behavior too much.

Bug: 28139028
Change-Id: I305499e194f2c6bcf7a38c80af1e64bd1fc20943
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
9da141fe5ca3c8272681f6d3ea3f6871a2bc76c2 05-Apr-2016 Robert Carr <racarr@google.com> Do not set docked divider as IME target.

If we do this, we will fail to adjust the proper IME target
to make it visible. Accomplish relative ordering of IME and
Docked Divider in WindowLayersController instead.

We need to take care that adjustSpecialWindows won't push windows
down if they are already positioned above the highest application
layer. We also take care to not adjust the IME if the docked divider
isn't really visible.

Bug: 26387930
Change-Id: I26ca36c4f7ecf9d97f44e15c67df82b8154a169c
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
f98b1d4dba0ce7deeba142789163f3ab2c31b9aa 05-Apr-2016 Yohei Yukawa <yukawa@google.com> Revert "Do not set docked divider as IME target."

This reverts commit ebe9c0dbebbd8c2a23a76ff827b90e66ce3813bf [1],
because it caused a regression that IME window becomes transparent on
the lock screen (Bug 28013209).

[1]: I7d406cc88aae40a8b22c1fc1d856ccb7b6bb4558

Bug: 26387930
Bug: 28013209
Change-Id: I11243703030e34b917136b69a35245e9ef73c87c
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
817ef323c765c349475a574524b8bfe1374502be 04-Apr-2016 Rob Carr <racarr@google.com> Merge "Ensure we leave space between layers in docked stack." into nyc-dev
6412d755f4eb0b562c6d25ffb1ac5357105d6b1c 01-Apr-2016 Robert Carr <racarr@google.com> Ensure we leave space between layers in docked stack.

We need to leave space WINDOW_LAYER_MULTIPLIER between Z-order
adjacent normal windows, for things such as Dim Layers, etc. The
existing logic was breaking DIM_UNDER DimLayers in DockedStack. Consider
two normal windows, the second on top and with a DIM_UNDER. If we are
docked we will have restacked all the docked windows at HighestLayer+1
HighestLayer+2, etc...and so our second normal window is only one higher
than our first one. So when we put a dim under the second window
we end up with the same layer and the output is undefined.

Bug: 27721903
Change-Id: Ic27e0a10da2d1ab4a6058e0755ad4409b29527eb
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
ebe9c0dbebbd8c2a23a76ff827b90e66ce3813bf 01-Apr-2016 Robert Carr <racarr@google.com> Do not set docked divider as IME target.

If we do this, we will fail to adjust the proper IME target
to make it visible. Accomplish relative ordering of IME and
Docked Divider in WindowLayersController instead.

Bug: 26387930
Change-Id: I7d406cc88aae40a8b22c1fc1d856ccb7b6bb4558
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
c69bd2246f4ec5000591fdc381f84cd90be85b7f 15-Mar-2016 Jorim Jaggi <jjaggi@google.com> Implement transition for docking task in recents #6

- Use a future to provide the app thumbnail so the app can restart
in parallel when recents draws the bitmap (extremely expensive).
- Don't call startRecents from AM when recents is already running - this
messes up the transition information.
- Make sure to put the task into resizing mode if it needs to be restored
from the disk.
- Some minor fixes for the transition animation spec.
- Add NO_MOVE_ANIMATION to recents flags to prevent wallpaper
flickering.

Bug: 27607141
Change-Id: I7d0c75b88775ab467927b8cf94303ddb60222e7f
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
67eec038f4628f36e813329736802c331dc2dbc6 23-Mar-2016 Robert Carr <racarr@google.com> Include animation layer adjustment even while docked.

When adjusting special windows (e.g. docked windows), we omit the
animation layer adjustment. This was largely safe as we place such
special windows above the otherwise highest layer, and we want
docked windows above animating windows. However in the case of
multiple animating docked windows, we need to use the animation
layer adjustment to distinguish the ordering.

Bug: 27712710
Change-Id: Ieb86fd1231d9b04b73de95902832facf4dc0ea3e
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
26b7b43d172a7a2be39a109f1f6697162c4ee642 03-Feb-2016 Wale Ogunwale <ogunwale@google.com> Fixed some issues with layer adjustment for special windows.

- Adjust layers of all windows in pinned stack.
The surface view of a pinned activity will be hidden during transition
animations because we were only adjusting the layer of the main app
window when we adjust special windows in WindowLayersController.
We now adjust the layers of all windows in the pinned stack.
- Also adjust layers for all windows in the docked stack for the same
reasons
- Adjust layers for replacing windows that was lost when the code
was moved to the separate class.

Bug: 26697719
Change-Id: I42fc3f9a51de9999157bcc7fee25a334b3e93ea1
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
bedb566a280e8aee2e80346af08f42b3fb5121c2 05-Jan-2016 Filip Gruszczynski <gruszczy@google.com> Don't push IME above all app windows and dock divider.

The IME should only be pushed above the application that requested it.
There might be other windows that go above the IME, e.g. spinner dialog.

We used to need the IME to go above all app windows, because the dock
divider goes above all app windows and we want IME above the dock
divider. This is not necessary anymore, because the dock divider is now
aware of the IME and changes it's size to available space. The
transition is also graceful enough, that it looks correct even when the
IME goes away.

Bug: 26325071
Change-Id: I8c05f2d200c5bb92c5fdb0d252e277fbe43a60a5
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
5098159ae31bc59aa3857fecb1847f8d7bb73e54 29-Dec-2015 Jorim Jaggi <jjaggi@google.com> Dim stack while dismissing

When dismissing the docked or fullscreen stack, a dim layer is
introduced for a nicer visual effect.

Change-Id: I9f12e331e978208aa9fd9e9883b3c8a36d4da3a0
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
3510bd9be58b84ed356d19f49c9577991a371261 21-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Merge "Always elevate input method above the input target."
10d98e4d314de046cbc7140d2e20df89188bfb52 21-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Always elevate input method above the input target.

Bug: 26286301
Change-Id: I02dd290c1dbababed26d34a7e61bb4d7bad5e9ac
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
7818803ecbe7d041c6c44da97c3fd54132404201 21-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Prevent NPE in layer assignment, not all windows have a stack.

Bug: 26285039
Change-Id: Ie7099a4ec3f1195295308755821c603975bff183
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
6db8e69afa832b345f060da92011ed77c5a76333 17-Dec-2015 Michael Wright <michaelwr@google.com> Start at the end of the IME dialog list, not one past.

Bug: 26240994
Change-Id: Ibc20474930d8c796edb3a5d4b75571a045f0a8dd
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java
92e432c30e2304272c2f5b1b33366f32c3d763cf 16-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Refactor and improve window layering.

This CL moves layer calculation into a separate class, so the whole
logic can be encapsulated. It also extracts special cases from the
general loop and instead applies them at the end. This simplifies the
logic in the main algorithm and makes it clearer what needs to happen
for special cases.

Bug: 26144888

Change-Id: I87347bf0198bd0d3cd09e4231b4652ab979f2456
/frameworks/base/services/core/java/com/android/server/wm/WindowLayersController.java