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