Loading services/core/java/com/android/server/am/ActivityStackSupervisor.java +1 −2 Original line number Diff line number Diff line Loading @@ -2987,8 +2987,7 @@ public final class ActivityStackSupervisor implements DisplayListener { final Display display = virtualDisplay.getDisplay(); final int displayId = display.getDisplayId(); // Do WindowManager operation first so that it is ahead of CREATE_STACK in the H queue. mWindowManager.onDisplayAdded(displayId); mWindowManager.handleDisplayAdded(displayId); synchronized (mService) { ActivityDisplay activityDisplay = new ActivityDisplay(display); Loading services/core/java/com/android/server/wm/WindowManagerService.java +8 −9 Original line number Diff line number Diff line Loading @@ -4863,7 +4863,6 @@ public class WindowManagerService extends IWindowManager.Stub final TaskStack stack = task.mStack; EventLog.writeEvent(EventLogTags.WM_TASK_REMOVED, taskId, "removeTask"); stack.removeTask(task); stack.getDisplayContent().layoutNeeded = true; } } Loading Loading @@ -7445,9 +7444,7 @@ public class WindowManagerService extends IWindowManager.Stub } case DO_DISPLAY_ADDED: synchronized (mWindowMap) { handleDisplayAddedLocked(msg.arg1); } handleDisplayAdded(msg.arg1); break; case DO_DISPLAY_REMOVED: Loading Loading @@ -10790,13 +10787,15 @@ public class WindowManagerService extends IWindowManager.Stub mH.sendMessage(mH.obtainMessage(H.DO_DISPLAY_ADDED, displayId, 0)); } private void handleDisplayAddedLocked(int displayId) { public void handleDisplayAdded(int displayId) { synchronized (mWindowMap) { final Display display = mDisplayManager.getDisplay(displayId); if (display != null) { createDisplayContentLocked(display); displayReady(displayId); } } } @Override public void onDisplayRemoved(int displayId) { Loading Loading
services/core/java/com/android/server/am/ActivityStackSupervisor.java +1 −2 Original line number Diff line number Diff line Loading @@ -2987,8 +2987,7 @@ public final class ActivityStackSupervisor implements DisplayListener { final Display display = virtualDisplay.getDisplay(); final int displayId = display.getDisplayId(); // Do WindowManager operation first so that it is ahead of CREATE_STACK in the H queue. mWindowManager.onDisplayAdded(displayId); mWindowManager.handleDisplayAdded(displayId); synchronized (mService) { ActivityDisplay activityDisplay = new ActivityDisplay(display); Loading
services/core/java/com/android/server/wm/WindowManagerService.java +8 −9 Original line number Diff line number Diff line Loading @@ -4863,7 +4863,6 @@ public class WindowManagerService extends IWindowManager.Stub final TaskStack stack = task.mStack; EventLog.writeEvent(EventLogTags.WM_TASK_REMOVED, taskId, "removeTask"); stack.removeTask(task); stack.getDisplayContent().layoutNeeded = true; } } Loading Loading @@ -7445,9 +7444,7 @@ public class WindowManagerService extends IWindowManager.Stub } case DO_DISPLAY_ADDED: synchronized (mWindowMap) { handleDisplayAddedLocked(msg.arg1); } handleDisplayAdded(msg.arg1); break; case DO_DISPLAY_REMOVED: Loading Loading @@ -10790,13 +10787,15 @@ public class WindowManagerService extends IWindowManager.Stub mH.sendMessage(mH.obtainMessage(H.DO_DISPLAY_ADDED, displayId, 0)); } private void handleDisplayAddedLocked(int displayId) { public void handleDisplayAdded(int displayId) { synchronized (mWindowMap) { final Display display = mDisplayManager.getDisplay(displayId); if (display != null) { createDisplayContentLocked(display); displayReady(displayId); } } } @Override public void onDisplayRemoved(int displayId) { Loading