OSDN Git Service

Add always on top feature support
authorKazuki Takise <takise@google.com>
Thu, 31 May 2018 06:32:19 +0000 (15:32 +0900)
committerKazuki Takise <takise@google.com>
Mon, 18 Jun 2018 05:10:31 +0000 (14:10 +0900)
commit148d00ac935a344ddc9385caaff80680a228516f
tree7a36cfb5bcb39ef60d7454f6771ebcd393481ac1
parent0287faf3486ab778b5abae8c626b0a96ecf33412
Add always on top feature support

Add basic functionalities for always on top feature.

- Add a new flag to WindowConfiguration to represent a task wanting to
be on top.
- Update the logic on changing the z-order of windows to make sure
always on top windows are placed above other windows.

Bug: 69370884
Test: go/wm-smoke
Test: atest DisplayContentTests
Test: Used ArcCompanionLibDemo app to verify that when always-on-top is
      set, the app is above the other Android apps and Chrome windows.

Change-Id: Ie8edeb8ceeed0b9ec154b6031ed6cbe7ecc65b12
core/java/android/app/WindowConfiguration.java
services/core/java/com/android/server/am/ActivityDisplay.java
services/core/java/com/android/server/wm/ConfigurationContainer.java
services/core/java/com/android/server/wm/DisplayContent.java
services/tests/servicestests/src/com/android/server/wm/DisplayContentTests.java