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

Commit bd3bd60f authored by Fiona Campbell's avatar Fiona Campbell Committed by Android (Google) Code Review
Browse files

Merge "Add logging around display removal." into main

parents c75638d7 0d544840
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1276,6 +1276,9 @@ public final class DisplayManagerService extends SystemService {
                        || isUidPresentOnDisplayInternal(callingUid, displayId)) {
                    return info;
                }
            } else if (displayId == Display.DEFAULT_DISPLAY) {
                Slog.e(TAG, "Default display is null for info request from uid "
                        + callingUid);
            }
            return null;
        }
@@ -2224,10 +2227,11 @@ public final class DisplayManagerService extends SystemService {
            if (display.isValidLocked()) {
                applyDisplayChangedLocked(display);
            }
            return;
        } else {
            releaseDisplayAndEmitEvent(display, DisplayManagerGlobal.EVENT_DISPLAY_REMOVED);
        }

        releaseDisplayAndEmitEvent(display, DisplayManagerGlobal.EVENT_DISPLAY_REMOVED);
        Slog.i(TAG, "Logical display removed: " + display.getDisplayIdLocked());
    }

    private void releaseDisplayAndEmitEvent(LogicalDisplay display, int event) {