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

Commit 3d5d633e authored by Hiroki Sato's avatar Hiroki Sato
Browse files

Make overlay display valid in accessibility

Overlay display is used for multi-display development and testing.
Developers can interact with the content using a mouse.

This makes accessibility handle overlay display as a valid display.

Flag: EXEMPT behavioural tweak that only affects multi-display developers
Test: adb shell settings put global overlay_display_devices 640x480/320 \
      adb shell uiautomator dump --windows \
      and see overlay contents are included.
Bug: 400872190
Change-Id: If00e935e7c9a5662a5d94ae23391f7308fef70c8
parent c986d323
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5619,7 +5619,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
        }

        private boolean isValidDisplay(@Nullable Display display) {
            if (display == null || display.getType() == Display.TYPE_OVERLAY) {
            if (display == null) {
                return false;
            }
            // Private virtual displays are created by the ap and is not allowed to access by other
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ final class AccessibilityController {
            final DisplayContent dc = mService.mRoot.getDisplayContent(displayId);
            if (dc != null) {
                final Display display = dc.getDisplay();
                if (display != null && display.getType() != Display.TYPE_OVERLAY) {
                if (display != null) {
                    final DisplayMagnifier magnifier = new DisplayMagnifier(
                            mService, dc, display, callbacks);
                    magnifier.notifyImeWindowVisibilityChanged(