Loading core/java/android/view/SurfaceControl.java +1 −1 Original line number Diff line number Diff line Loading @@ -1960,7 +1960,7 @@ public final class SurfaceControl implements Parcelable { * @hide */ public static ScreenshotGraphicBuffer captureLayersExcluding(SurfaceControl layer, Rect sourceCrop, float frameScale, SurfaceControl[] exclude) { Rect sourceCrop, float frameScale, int format, SurfaceControl[] exclude) { final IBinder displayToken = SurfaceControl.getInternalDisplayToken(); long[] nativeExcludeObjects = new long[exclude.length]; for (int i = 0; i < exclude.length; i++) { Loading services/core/java/com/android/server/wm/TaskSnapshotController.java +12 −2 Original line number Diff line number Diff line Loading @@ -352,9 +352,19 @@ class TaskSnapshotController { } task.getBounds(mTmpRect); mTmpRect.offsetTo(0, 0); SurfaceControl[] excludeLayers; final WindowState imeWindow = task.getDisplayContent().mInputMethodWindow; if (imeWindow != null) { excludeLayers = new SurfaceControl[1]; excludeLayers[0] = imeWindow.getSurfaceControl(); } else { excludeLayers = new SurfaceControl[0]; } final SurfaceControl.ScreenshotGraphicBuffer screenshotBuffer = SurfaceControl.captureLayers( task.getSurfaceControl(), mTmpRect, scaleFraction, pixelFormat); SurfaceControl.captureLayersExcluding( task.getSurfaceControl(), mTmpRect, scaleFraction, pixelFormat, excludeLayers); if (outTaskSize != null) { outTaskSize.x = mTmpRect.width(); outTaskSize.y = mTmpRect.height(); Loading Loading
core/java/android/view/SurfaceControl.java +1 −1 Original line number Diff line number Diff line Loading @@ -1960,7 +1960,7 @@ public final class SurfaceControl implements Parcelable { * @hide */ public static ScreenshotGraphicBuffer captureLayersExcluding(SurfaceControl layer, Rect sourceCrop, float frameScale, SurfaceControl[] exclude) { Rect sourceCrop, float frameScale, int format, SurfaceControl[] exclude) { final IBinder displayToken = SurfaceControl.getInternalDisplayToken(); long[] nativeExcludeObjects = new long[exclude.length]; for (int i = 0; i < exclude.length; i++) { Loading
services/core/java/com/android/server/wm/TaskSnapshotController.java +12 −2 Original line number Diff line number Diff line Loading @@ -352,9 +352,19 @@ class TaskSnapshotController { } task.getBounds(mTmpRect); mTmpRect.offsetTo(0, 0); SurfaceControl[] excludeLayers; final WindowState imeWindow = task.getDisplayContent().mInputMethodWindow; if (imeWindow != null) { excludeLayers = new SurfaceControl[1]; excludeLayers[0] = imeWindow.getSurfaceControl(); } else { excludeLayers = new SurfaceControl[0]; } final SurfaceControl.ScreenshotGraphicBuffer screenshotBuffer = SurfaceControl.captureLayers( task.getSurfaceControl(), mTmpRect, scaleFraction, pixelFormat); SurfaceControl.captureLayersExcluding( task.getSurfaceControl(), mTmpRect, scaleFraction, pixelFormat, excludeLayers); if (outTaskSize != null) { outTaskSize.x = mTmpRect.width(); outTaskSize.y = mTmpRect.height(); Loading