Loading services/core/java/com/android/server/wm/WindowManagerService.java +4 −7 Original line number Diff line number Diff line Loading @@ -1866,7 +1866,7 @@ public class WindowManagerService extends IWindowManager.Stub displayContent.getInsetsStateController().updateAboveInsetsState( false /* notifyInsetsChanged */); outInsetsState.set(win.getCompatInsetsState(), win.isClientLocal()); outInsetsState.set(win.getCompatInsetsState(), true /* copySources */); getInsetsSourceControls(win, outActiveControls); if (win.mLayoutAttached) { Loading Loading @@ -2560,7 +2560,7 @@ public class WindowManagerService extends IWindowManager.Stub } if (outInsetsState != null) { outInsetsState.set(win.getCompatInsetsState(), win.isClientLocal()); outInsetsState.set(win.getCompatInsetsState(), true /* copySources */); } ProtoLog.v(WM_DEBUG_FOCUS, "Relayout of %s: focusMayChange=%b", Loading Loading @@ -8878,7 +8878,6 @@ public class WindowManagerService extends IWindowManager.Stub @Override public boolean getWindowInsets(WindowManager.LayoutParams attrs, int displayId, InsetsState outInsetsState) { final boolean fromLocal = Binder.getCallingPid() == MY_PID; final int uid = Binder.getCallingUid(); final long origId = Binder.clearCallingIdentity(); try { Loading @@ -8892,10 +8891,8 @@ public class WindowManagerService extends IWindowManager.Stub final float overrideScale = mAtmService.mCompatModePackages.getCompatScale( attrs.packageName, uid); final InsetsState state = dc.getInsetsPolicy().getInsetsForWindowMetrics(attrs); final boolean hasCompatScale = WindowState.hasCompatScale(attrs, token, overrideScale); outInsetsState.set(state, hasCompatScale || fromLocal); if (hasCompatScale) { outInsetsState.set(state, true /* copySources */); if (WindowState.hasCompatScale(attrs, token, overrideScale)) { final float compatScale = token != null && token.hasSizeCompatBounds() ? token.getSizeCompatScale() * overrideScale : overrideScale; Loading Loading
services/core/java/com/android/server/wm/WindowManagerService.java +4 −7 Original line number Diff line number Diff line Loading @@ -1866,7 +1866,7 @@ public class WindowManagerService extends IWindowManager.Stub displayContent.getInsetsStateController().updateAboveInsetsState( false /* notifyInsetsChanged */); outInsetsState.set(win.getCompatInsetsState(), win.isClientLocal()); outInsetsState.set(win.getCompatInsetsState(), true /* copySources */); getInsetsSourceControls(win, outActiveControls); if (win.mLayoutAttached) { Loading Loading @@ -2560,7 +2560,7 @@ public class WindowManagerService extends IWindowManager.Stub } if (outInsetsState != null) { outInsetsState.set(win.getCompatInsetsState(), win.isClientLocal()); outInsetsState.set(win.getCompatInsetsState(), true /* copySources */); } ProtoLog.v(WM_DEBUG_FOCUS, "Relayout of %s: focusMayChange=%b", Loading Loading @@ -8878,7 +8878,6 @@ public class WindowManagerService extends IWindowManager.Stub @Override public boolean getWindowInsets(WindowManager.LayoutParams attrs, int displayId, InsetsState outInsetsState) { final boolean fromLocal = Binder.getCallingPid() == MY_PID; final int uid = Binder.getCallingUid(); final long origId = Binder.clearCallingIdentity(); try { Loading @@ -8892,10 +8891,8 @@ public class WindowManagerService extends IWindowManager.Stub final float overrideScale = mAtmService.mCompatModePackages.getCompatScale( attrs.packageName, uid); final InsetsState state = dc.getInsetsPolicy().getInsetsForWindowMetrics(attrs); final boolean hasCompatScale = WindowState.hasCompatScale(attrs, token, overrideScale); outInsetsState.set(state, hasCompatScale || fromLocal); if (hasCompatScale) { outInsetsState.set(state, true /* copySources */); if (WindowState.hasCompatScale(attrs, token, overrideScale)) { final float compatScale = token != null && token.hasSizeCompatBounds() ? token.getSizeCompatScale() * overrideScale : overrideScale; Loading