Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b61168bc authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Android (Google) Code Review
Browse files

Merge "Allow Windows in Display Overlays"

parents aa22ba6b 8065f440
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1105,6 +1105,13 @@ public interface WindowManager extends ViewManager {
         */
        public static final int TYPE_APPLICATION_OVERLAY = FIRST_SYSTEM_WINDOW + 38;

        /**
         * Window type: Window for adding accessibility window magnification above other windows.
         * This will place the window in the overlay windows.
         * @hide
         */
        public static final int TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY = FIRST_SYSTEM_WINDOW + 39;

        /**
         * End of types of system windows.
         */
+1 −0
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@ message DisplayContentProto {
    repeated IdentifierProto opening_apps = 17;
    repeated IdentifierProto closing_apps = 18;
    repeated IdentifierProto changing_apps = 19;
    repeated WindowTokenProto overlay_windows = 20;
}

/* represents DisplayFrames */
+6 −3
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.server.policy;

import static android.view.WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW;
import static android.view.WindowManager.LayoutParams.LAST_APPLICATION_WINDOW;
import static android.view.WindowManager.LayoutParams.TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY;
import static android.view.WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY;
import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_ABOVE_SUB_PANEL;
import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG;
@@ -876,13 +877,15 @@ public interface WindowManagerPolicy extends WindowManagerPolicyConstants {
            case TYPE_ACCESSIBILITY_OVERLAY:
                // overlay put by accessibility services to intercept user interaction
                return  30;
            case TYPE_SECURE_SYSTEM_OVERLAY:
            case TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY:
                return 31;
            case TYPE_BOOT_PROGRESS:
            case TYPE_SECURE_SYSTEM_OVERLAY:
                return  32;
            case TYPE_BOOT_PROGRESS:
                return  33;
            case TYPE_POINTER:
                // the (mouse) pointer layer
                return  33;
                return  34;
            default:
                Slog.e("WindowManager", "Unknown window type: " + type);
                return APPLICATION_LAYER;
+208 −180

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ class ScreenRotationAnimation {
                    .setContainerLayer()
                    .build();

            mSurfaceControl = displayContent.makeSurface(null)
            mSurfaceControl = mService.makeSurfaceBuilder(null)
                    .setName("ScreenshotSurface")
                    .setParent(mRotationLayer)
                    .setBufferSize(mWidth, mHeight)
Loading