From 148d00ac935a344ddc9385caaff80680a228516f Mon Sep 17 00:00:00 2001 From: Kazuki Takise Date: Thu, 31 May 2018 15:32:19 +0900 Subject: 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 | 51 ++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 4 deletions(-) (limited to 'core/java/android/app/WindowConfiguration.java') diff --git a/core/java/android/app/WindowConfiguration.java b/core/java/android/app/WindowConfiguration.java index 21d6762666a0..09c7981d7056 100644 --- a/core/java/android/app/WindowConfiguration.java +++ b/core/java/android/app/WindowConfiguration.java @@ -59,6 +59,11 @@ public class WindowConfiguration implements Parcelable, Comparable