History log of /frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
36d0a34cc85f3f2484f78c0589ed4f6a3f67285b 02-Mar-2018 chaviw <chaviw@google.com> Fixed incorrect annotation Flaky to FlakyTest

Also marked WindowConfigurationTests as flaky

Bug: 74078662
Change-Id: I9902fc566f348b63cb5b2fdf04954ea9b031440d
Test: Self
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
4f0f348a2340e0dabfeefdd994eb31a29f889b8d 02-Mar-2018 chaviw <chaviw@google.com> Mark wm tests as flaky

Bug: 74078662
Test: self
Change-Id: I286cde4d5f00591a049c3d972436e81ed815c36c
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
f7a7ca8fb5a7540eb3a4119552d0c22e3fe9841c 06-Dec-2017 Robert Carr <racarr@google.com> Rework stack Z-ordering promotion.

Down-boost home stack instead of up-boosting docked stack. This means
we don't have to do any assistant stack boosting so we wont have issues
with activities not being able to show on top of the assistant.

Change-Id: Iedef49a56a25fe0c6c26bfe4ef5194bcd8159c37
Fixes: 70318142
Fixes: 70675228
Fixes: 70178829
Fixes: 69553456
Fixes: 70178829
Test: Manual. ZOrderingTests. go/wm-smoke
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
6693e06ee1a44a70f7dff8ed792823c5153d875a 09-Jan-2018 Rob Carr <racarr@google.com> Revert "Restore old stack Z ordering promotion."

This reverts commit d92e7eb2e9a72ac73e992cf502a080ad47a962f3.

Reason for revert: Causes 71736995

Change-Id: I8294bdb65a496bfd0170ec606d20d604d5ef6271
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
ae3ef5ab3c7f3ea028741392f5dc6b948dc67a8c 09-Jan-2018 Rob Carr <racarr@google.com> Revert "Ensure docked divider is below always-on-top stacks."

This reverts commit 11408826496a2c7a8b23e97ec3340972b0df8c36.

Reason for revert: CL earlier in chain causes 71736995

Change-Id: Ifd4bbdb5a3c1fbe95c3e9f6b0172c022d43fcdf6
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
e6282e8f82aa5f8048771f974b158329eb341e45 09-Jan-2018 Rob Carr <racarr@google.com> Revert "Superficial improvements to ZOrderingTest."

This reverts commit 515a40a14980f0df908a0a08c3220854beee8c14.

Reason for revert: CL Earlier in chain causes 71736995

Change-Id: Id1fc0edcad15aa2d785a911a782a05bb6b5766a9
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
515a40a14980f0df908a0a08c3220854beee8c14 04-Jan-2018 Robert Carr <racarr@google.com> Superficial improvements to ZOrderingTest.

Looks a little cleaner like this. Mainly removed
the common mTransaction argument to the assertion function and
renamed it. Also added a helper for repeatedly passed args to create
windows.

Test: Test?
Change-Id: I3610bfefd7f193169930b97d3bf9e635b967cb17
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
11408826496a2c7a8b23e97ec3340972b0df8c36 04-Jan-2018 Robert Carr <racarr@google.com> Ensure docked divider is below always-on-top stacks.

We need interleave it with the AppWindowToken hierarchy even
though it only has a WindowToken.

Fixes: 70318142
Fixes: 70675228
Fixes: 70178829
Test: Manual. ZOrderingTests.
Change-Id: I7b898f2157de85433416579efae5e01a9dcbf46c
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
d92e7eb2e9a72ac73e992cf502a080ad47a962f3 06-Dec-2017 Robert Carr <racarr@google.com> Restore old stack Z ordering promotion.

This is a more direct translation of what was in WindowLayersController.
We hoped that it wasn't necessary and that they were always in the correct
position in the WindowContainer hierarchy. However it seems there is no mechanism
to position them as such. It's not obvious for me how to resolve things from that angle
so I'm proposing reintroducing this logic.

Bug: 69553456
Bug: 70178829
Test: Manual. go/wm-smoke
Change-Id: I32ab03b1bcd6c498bf643c0f207d3f72286f258b
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
ffe128d46dc45939df08231c8ec382b33306a77f 30-Nov-2017 Jorim Jaggi <jjaggi@google.com> Optimize surface hierarchy

- Do not reset layer if layer doesn't change. JNI is expensive.
- Only assign child layers once if we have to do multiple passes.
- Fix issue where layouting the starting window caused the surface
to be resized, leading to a blocking SF transaction.

Test: go/wm-smoke
Test: adb logcat -b events | grep 319, inspect transition times.
Fixes: 69632880
Change-Id: I8fffca30591730fae87ed3aeb9df0bdf7d4b55dd
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
0eff18732c7d3c3c7c998737f92da86d479486e9 01-Dec-2017 Robert Carr <racarr@google.com> Fix support for negatively Z-ordered SubWindows.

It turns out the live wallpaper picker is a copy-pasted
implementation of the old version of SurfaceView which relies
on TYPE_APPLICATION_MEDIA to be placed beneath the main window.
This is the last user and we should aim to eliminate it by replacing
the wallpaper picker with a SurfaceView or simply a Child Surface.

Bug: 69928336
Bug: 70040778
Test: Manual. ZOrderingTests.
Change-Id: I462b8f11954ad2e892d23164f41359a73078c21f
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
8360a782fa529b142673b921f1d178f4b3d0be93 22-Nov-2017 Robert Carr <racarr@google.com> Correct ordering of status bar panel layers.

Not sure what bug was hiding this before but seems pretty clear,
that this is the ordering we need. See the documentation, APPLICATION_PANEL, etc...

Bug: 69591927
Test: Manual
Change-Id: I82fc011aff6122efa5c3ed63da154761e7065612
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
ee4d4b96657ce45d8f555dffb2f7f200f667b2a4 22-Nov-2017 Robert Carr <racarr@google.com> Rip out WindowContainer#isScreenOverlay

Messes up ordering of the windows that should be above
the navigation bar and status bar. It seems better to
achieve the IME layering we need directly.

Bug: 69591927
Test: Manual
Change-Id: I69202bca0b84cec5d9f5176645e31c5bd0af767e
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java
b1579c8d898811010b60eab4e996f3d071980155 05-Sep-2017 Robert Carr <racarr@google.com> Re-implement Z-ordering based off SurfaceControl hierarchy.

First steps in using the SurfaceControl hierarchy pervasively through
the WindowManager. For each level of the WindowContainer hierarchy
we instantiate a buffer-less SurfaceControl which is used to apply
constraints to all of it's children. For now we use full-screen surfaces
at every non-leaf level and so the only constraint we apply is Z-ordering.

Calculation of Z-ordering is done through the WindowContainer#assignLayers
pass and begins with DisplayContent. Changes are accumulated in-to a pending
transaction which is applied as part of prepareSurfaces (which now applies
to each level of the WindowContainer hierarchy rather than just windows).

Bug: 64815723
Test: Existing tests pass. go/wm-smoke. ZOrderTests.
Change-Id: Ib31bc3107c7fa398cf2ed72430fcb7596fad6fd5
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ZOrderingTests.java