summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-05-21 11:28:41 -0700
committerDianne Hackborn <hackbod@google.com>2012-06-25 19:19:15 -0700
commita4b7f2f75e7803193429ec1179fb5e2eb1c6fbda (patch)
tree287a64b2e558134e4f80ce5ae2356405204a369b /policy
parent6a15634f601617b815935bc7fdbe0c356d020f44 (diff)
downloadframeworks_base-a4b7f2f75e7803193429ec1179fb5e2eb1c6fbda.zip
frameworks_base-a4b7f2f75e7803193429ec1179fb5e2eb1c6fbda.tar.gz
frameworks_base-a4b7f2f75e7803193429ec1179fb5e2eb1c6fbda.tar.bz2
Use two fingers to work some magic...
Change-Id: Ibcb3dbd3d158c22da8277e544d81fb47eadccd49
Diffstat (limited to 'policy')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index 6b24da3..4206a97 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -126,6 +126,7 @@ import static android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD;
import static android.view.WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG;
import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY;
import static android.view.WindowManager.LayoutParams.TYPE_TOAST;
+import static android.view.WindowManager.LayoutParams.TYPE_UNIVERSE_BACKGROUND;
import static android.view.WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY;
import static android.view.WindowManager.LayoutParams.TYPE_WALLPAPER;
import static android.view.WindowManager.LayoutParams.TYPE_POINTER;
@@ -182,6 +183,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
static final int LONG_PRESS_HOME_RECENT_SYSTEM_UI = 2;
// wallpaper is at the bottom, though the window manager may move it.
+ static final int UNIVERSE_BACKGROUND_LAYER = 1;
static final int WALLPAPER_LAYER = 2;
static final int APPLICATION_LAYER = 2;
static final int PHONE_LAYER = 3;
@@ -1374,6 +1376,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
return HIDDEN_NAV_CONSUMER_LAYER;
case TYPE_DREAM:
return SCREENSAVER_LAYER;
+ case TYPE_UNIVERSE_BACKGROUND:
+ return UNIVERSE_BACKGROUND_LAYER;
}
Log.e(TAG, "Unknown window type: " + type);
return APPLICATION_LAYER;
@@ -1400,6 +1404,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
return STATUS_BAR_LAYER;
}
+ public int getAboveUniverseLayer() {
+ return SYSTEM_ERROR_LAYER;
+ }
+
public boolean hasSystemNavBar() {
return mHasSystemNavBar;
}
@@ -1453,7 +1461,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
public boolean canBeForceHidden(WindowState win, WindowManager.LayoutParams attrs) {
return attrs.type != WindowManager.LayoutParams.TYPE_STATUS_BAR
&& attrs.type != WindowManager.LayoutParams.TYPE_NAVIGATION_BAR
- && attrs.type != WindowManager.LayoutParams.TYPE_WALLPAPER;
+ && attrs.type != WindowManager.LayoutParams.TYPE_WALLPAPER
+ && attrs.type != WindowManager.LayoutParams.TYPE_UNIVERSE_BACKGROUND;
}
/** {@inheritDoc} */
@@ -2719,7 +2728,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
pf.top = df.top = mUnrestrictedScreenTop;
pf.right = df.right = mUnrestrictedScreenLeft+mUnrestrictedScreenWidth;
pf.bottom = df.bottom = mUnrestrictedScreenTop+mUnrestrictedScreenHeight;
- } else if (attrs.type == TYPE_BOOT_PROGRESS) {
+ } else if (attrs.type == TYPE_BOOT_PROGRESS
+ || attrs.type == TYPE_UNIVERSE_BACKGROUND) {
// Boot progress screen always covers entire display.
pf.left = df.left = cf.left = mUnrestrictedScreenLeft;
pf.top = df.top = cf.top = mUnrestrictedScreenTop;