Loading services/core/java/com/android/server/policy/WindowManagerPolicy.java +1 −4 Original line number Diff line number Diff line Loading @@ -761,11 +761,8 @@ public interface WindowManagerPolicy extends WindowManagerPolicyConstants { return 1; case TYPE_PRESENTATION: case TYPE_PRIVATE_PRESENTATION: return APPLICATION_LAYER; case TYPE_DOCK_DIVIDER: return APPLICATION_LAYER; case TYPE_QS_DIALOG: return APPLICATION_LAYER; case TYPE_PHONE: return 3; case TYPE_SEARCH_BAR: Loading Loading @@ -852,7 +849,7 @@ public interface WindowManagerPolicy extends WindowManagerPolicyConstants { return 35; default: Slog.e("WindowManager", "Unknown window type: " + type); return APPLICATION_LAYER; return 3; } } Loading services/core/java/com/android/server/wm/DisplayAreaPolicyBuilder.java +2 −2 Original line number Diff line number Diff line Loading @@ -318,8 +318,8 @@ class DisplayAreaPolicyBuilder { DisplayArea.Tokens findAreaForToken(WindowToken token) { int windowLayerFromType = token.getWindowLayerFromType(); if (windowLayerFromType == APPLICATION_LAYER) { // TODO(display-area): Better handle AboveAppWindows in APPLICATION_LAYER windowLayerFromType += 1; throw new IllegalArgumentException( "There shouldn't be WindowToken on APPLICATION_LAYER"); } else if (token.mRoundedCornerOverlay) { windowLayerFromType = mMaxWindowLayer - 1; } Loading Loading
services/core/java/com/android/server/policy/WindowManagerPolicy.java +1 −4 Original line number Diff line number Diff line Loading @@ -761,11 +761,8 @@ public interface WindowManagerPolicy extends WindowManagerPolicyConstants { return 1; case TYPE_PRESENTATION: case TYPE_PRIVATE_PRESENTATION: return APPLICATION_LAYER; case TYPE_DOCK_DIVIDER: return APPLICATION_LAYER; case TYPE_QS_DIALOG: return APPLICATION_LAYER; case TYPE_PHONE: return 3; case TYPE_SEARCH_BAR: Loading Loading @@ -852,7 +849,7 @@ public interface WindowManagerPolicy extends WindowManagerPolicyConstants { return 35; default: Slog.e("WindowManager", "Unknown window type: " + type); return APPLICATION_LAYER; return 3; } } Loading
services/core/java/com/android/server/wm/DisplayAreaPolicyBuilder.java +2 −2 Original line number Diff line number Diff line Loading @@ -318,8 +318,8 @@ class DisplayAreaPolicyBuilder { DisplayArea.Tokens findAreaForToken(WindowToken token) { int windowLayerFromType = token.getWindowLayerFromType(); if (windowLayerFromType == APPLICATION_LAYER) { // TODO(display-area): Better handle AboveAppWindows in APPLICATION_LAYER windowLayerFromType += 1; throw new IllegalArgumentException( "There shouldn't be WindowToken on APPLICATION_LAYER"); } else if (token.mRoundedCornerOverlay) { windowLayerFromType = mMaxWindowLayer - 1; } Loading