Loading services/core/java/com/android/server/wm/WindowManagerService.java +11 −7 Original line number Diff line number Diff line Loading @@ -9591,14 +9591,18 @@ public class WindowManagerService extends IWindowManager.Stub throw new SecurityException("Requires ACCESS_SURFACE_FLINGER permission"); } DisplayContent dc; final long origId = Binder.clearCallingIdentity(); try { synchronized (mGlobalLock) { dc = mRoot.getDisplayContentOrCreate(displayId); DisplayContent dc = mRoot.getDisplayContentOrCreate(displayId); if (dc == null) { return false; } dc.replaceContent(sc); return true; } } finally { Binder.restoreCallingIdentity(origId); } } } Loading
services/core/java/com/android/server/wm/WindowManagerService.java +11 −7 Original line number Diff line number Diff line Loading @@ -9591,14 +9591,18 @@ public class WindowManagerService extends IWindowManager.Stub throw new SecurityException("Requires ACCESS_SURFACE_FLINGER permission"); } DisplayContent dc; final long origId = Binder.clearCallingIdentity(); try { synchronized (mGlobalLock) { dc = mRoot.getDisplayContentOrCreate(displayId); DisplayContent dc = mRoot.getDisplayContentOrCreate(displayId); if (dc == null) { return false; } dc.replaceContent(sc); return true; } } finally { Binder.restoreCallingIdentity(origId); } } }