Loading services/core/java/com/android/server/wm/TaskSnapshotController.java +8 −2 Original line number Diff line number Diff line Loading @@ -232,8 +232,14 @@ class TaskSnapshotController extends AbsAppSnapshotController<Task, TaskSnapshot if (imeWindow != null && imeWindow.isVisible()) { final Rect bounds = imeWindow.getParentFrame(); bounds.offsetTo(0, 0); imeBuffer = ScreenCapture.captureLayersExcluding(imeWindow.getSurfaceControl(), bounds, 1.0f, pixelFormat, null); ScreenCapture.LayerCaptureArgs captureArgs = new ScreenCapture.LayerCaptureArgs.Builder( imeWindow.getSurfaceControl()) .setSourceCrop(bounds) .setFrameScale(1.0f) .setPixelFormat(pixelFormat) .setCaptureSecureLayers(true) .build(); imeBuffer = ScreenCapture.captureLayers(captureArgs); } return imeBuffer; } Loading Loading
services/core/java/com/android/server/wm/TaskSnapshotController.java +8 −2 Original line number Diff line number Diff line Loading @@ -232,8 +232,14 @@ class TaskSnapshotController extends AbsAppSnapshotController<Task, TaskSnapshot if (imeWindow != null && imeWindow.isVisible()) { final Rect bounds = imeWindow.getParentFrame(); bounds.offsetTo(0, 0); imeBuffer = ScreenCapture.captureLayersExcluding(imeWindow.getSurfaceControl(), bounds, 1.0f, pixelFormat, null); ScreenCapture.LayerCaptureArgs captureArgs = new ScreenCapture.LayerCaptureArgs.Builder( imeWindow.getSurfaceControl()) .setSourceCrop(bounds) .setFrameScale(1.0f) .setPixelFormat(pixelFormat) .setCaptureSecureLayers(true) .build(); imeBuffer = ScreenCapture.captureLayers(captureArgs); } return imeBuffer; } Loading