Home
last modified time | relevance | path

Searched refs:screenshotBuffer (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DSurfaceFreezer.java93 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = createSnapshotBufferInner( in freeze() local
95 final HardwareBuffer buffer = screenshotBuffer == null ? null in freeze()
96 : screenshotBuffer.getHardwareBuffer(); in freeze()
103 mSnapshot = new Snapshot(t, screenshotBuffer, mLeash); in freeze()
211 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer) { in createFromHardwareBufferInner() argument
212 return GraphicBuffer.createFromHardwareBuffer(screenshotBuffer.getHardwareBuffer()); in createFromHardwareBufferInner()
224 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer, SurfaceControl parent) { in Snapshot() argument
225 GraphicBuffer graphicBuffer = createFromHardwareBufferInner(screenshotBuffer); in Snapshot()
231 .setSecure(screenshotBuffer.containsSecureLayers()) in Snapshot()
239 t.setColorSpace(mSurfaceControl, screenshotBuffer.getColorSpace()); in Snapshot()
DAbsAppSnapshotController.java219 final ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = createSnapshot(source, in snapshot() local
222 if (screenshotBuffer == null) { in snapshot()
227 builder.setSnapshot(screenshotBuffer.getHardwareBuffer()); in snapshot()
228 builder.setColorSpace(screenshotBuffer.getColorSpace()); in snapshot()
276 final ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = in createSnapshot() local
280 final HardwareBuffer buffer = screenshotBuffer == null ? null in createSnapshot()
281 : screenshotBuffer.getHardwareBuffer(); in createSnapshot()
285 return screenshotBuffer; in createSnapshot()
DScreenRotationAnimation.java173 final ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer; in ScreenRotationAnimation() local
199 screenshotBuffer = ScreenCapture.captureDisplay(captureArgs); in ScreenRotationAnimation()
212 screenshotBuffer = ScreenCapture.captureLayers(captureArgs); in ScreenRotationAnimation()
222 screenshotBuffer = ScreenCapture.captureLayers(captureArgs); in ScreenRotationAnimation()
225 if (screenshotBuffer == null) { in ScreenRotationAnimation()
233 if (screenshotBuffer.containsSecureLayers()) { in ScreenRotationAnimation()
262 HardwareBuffer hardwareBuffer = screenshotBuffer.getHardwareBuffer(); in ScreenRotationAnimation()
266 screenshotBuffer.getColorSpace()); in ScreenRotationAnimation()
274 t.setDimmingEnabled(mScreenshotLayer, !screenshotBuffer.containsHdrLayers()); in ScreenRotationAnimation()
279 t.setColorSpace(mScreenshotLayer, screenshotBuffer.getColorSpace()); in ScreenRotationAnimation()
DTransition.java3903 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = in freeze() local
3905 final HardwareBuffer buffer = screenshotBuffer == null ? null in freeze()
3906 : screenshotBuffer.getHardwareBuffer(); in freeze()
3918 .setSecure(screenshotBuffer.containsSecureLayers()) in freeze()
3928 buffer, screenshotBuffer.getColorSpace(), wc.mSurfaceControl); in freeze()
3931 TransitionAnimation.configureScreenshotLayer(t, snapshotSurface, screenshotBuffer); in freeze()
DWindowManagerService.java4254 final ScreenshotHardwareBuffer screenshotBuffer; in takeAssistScreenshot() local
4261 screenshotBuffer = syncScreenCapture.getBuffer(); in takeAssistScreenshot()
4263 screenshotBuffer = null; in takeAssistScreenshot()
4266 if (screenshotBuffer == null) { in takeAssistScreenshot()
4270 return screenshotBuffer; in takeAssistScreenshot()
/frameworks/base/packages/Shell/src/com/android/shell/
DScreenshooter.java55 final ScreenshotHardwareBuffer screenshotBuffer = syncScreenCapture.getBuffer(); in takeScreenshot() local
56 final Bitmap screenShot = screenshotBuffer == null ? null : screenshotBuffer.asBitmap(); in takeScreenshot()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DScreenRotationAnimation.java149 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = in ScreenRotationAnimation() local
151 if (screenshotBuffer == null) { in ScreenRotationAnimation()
159 .setSecure(screenshotBuffer.containsSecureLayers()) in ScreenRotationAnimation()
165 TransitionAnimation.configureScreenshotLayer(t, mScreenshotLayer, screenshotBuffer); in ScreenRotationAnimation()
166 final HardwareBuffer hardwareBuffer = screenshotBuffer.getHardwareBuffer(); in ScreenRotationAnimation()
170 screenshotBuffer.getColorSpace(), mSurfaceControl); in ScreenRotationAnimation()
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java539 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer,
556 s.attachAndQueueBufferWithColorSpace(screenshotBuffer.getHardwareBuffer(),
557 screenshotBuffer.getColorSpace());
600 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer =
602 if (screenshotBuffer == null) {
606 return screenshotBuffer;
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAbstractAccessibilityServiceConnection.java1503 (screenshotBuffer, result) -> { in takeScreenshot()
1504 if (screenshotBuffer != null && result == 0) { in takeScreenshot()
1505 sendScreenshotSuccess(screenshotBuffer, callback); in takeScreenshot()
1523 final ScreenshotHardwareBuffer screenshotBuffer = LocalServices in takeScreenshot() local
1525 if (screenshotBuffer != null) { in takeScreenshot()
1526 sendScreenshotSuccess(screenshotBuffer, callback); in takeScreenshot()
1539 private void sendScreenshotSuccess(ScreenshotHardwareBuffer screenshotBuffer, in sendScreenshotSuccess() argument
1543 final HardwareBuffer hardwareBuffer = screenshotBuffer.getHardwareBuffer(); in sendScreenshotSuccess()
1545 new ParcelableColorSpace(screenshotBuffer.getColorSpace()); in sendScreenshotSuccess()
1561 final HardwareBuffer hardwareBuffer = screenshotBuffer.getHardwareBuffer(); in sendScreenshotSuccess()
[all …]
/frameworks/base/core/java/android/app/
DUiAutomation.java1285 final ScreenshotHardwareBuffer screenshotBuffer = syncScreenCapture.getBuffer(); in takeScreenshot() local
1286 if (screenshotBuffer == null) { in takeScreenshot()
1290 Bitmap screenShot = screenshotBuffer.asBitmap(); in takeScreenshot()
1296 try (HardwareBuffer buffer = screenshotBuffer.getHardwareBuffer()) { in takeScreenshot()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java2267 ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = in showScreenshotOfWallpaper() local
2278 if (screenshotBuffer == null) { in showScreenshotOfWallpaper()
2283 final HardwareBuffer hardwareBuffer = screenshotBuffer.getHardwareBuffer(); in showScreenshotOfWallpaper()
2292 .setSecure(screenshotBuffer.containsSecureLayers()) in showScreenshotOfWallpaper()
2300 t.setColorSpace(mScreenshotSurfaceControl, screenshotBuffer.getColorSpace()); in showScreenshotOfWallpaper()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestsBase.java1203 final ScreenCapture.ScreenshotHardwareBuffer screenshotBuffer = in mockSurfaceFreezerSnapshot() local
1207 doReturn(screenshotBuffer).when(surfaceFreezer) in mockSurfaceFreezerSnapshot()
1211 doReturn(hardwareBuffer).when(screenshotBuffer).getHardwareBuffer(); in mockSurfaceFreezerSnapshot()