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

Commit 0d544840 authored by Santos Cordon's avatar Santos Cordon
Browse files

Add logging around display removal.

Bug: 331692058
Test: Manual read output of logcat.
Flag: EXEMPT obviously
Change-Id: Ief70b8884ec966a3a2cc5bacea145f3b7062ec82
parent 1c6f1389
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1275,6 +1275,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;
        }
@@ -2223,10 +2226,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) {