Home
last modified time | relevance | path

Searched refs:captureResults (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h33 ScreenCaptureResults& captureResults) { in captureDisplay() argument
44 captureResults = captureListener->waitForResults(); in captureDisplay()
45 return captureResults.result; in captureDisplay()
60 ScreenCaptureResults captureResults; in captureDisplay() local
61 ASSERT_EQ(NO_ERROR, captureDisplay(captureArgs, captureResults)); in captureDisplay()
62 *sc = std::make_unique<ScreenCapture>(captureResults.buffer); in captureDisplay()
66 ScreenCaptureResults& captureResults) { in captureLayers() argument
76 captureResults = captureListener->waitForResults(); in captureLayers()
77 return captureResults.result; in captureLayers()
81 ScreenCaptureResults captureResults; in captureLayers() local
[all …]
/frameworks/native/services/surfaceflinger/tests/
DInvalidHandles_test.cpp62 ScreenCaptureResults captureResults; in TEST_F() local
63 ASSERT_EQ(NAME_NOT_FOUND, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
70 ScreenCaptureResults captureResults; in TEST_F() local
71 ASSERT_EQ(NAME_NOT_FOUND, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
DLayerTypeTransaction_test.cpp173 ScreenCaptureResults captureResults; in TEST_P() local
177 ASSERT_EQ(PERMISSION_DENIED, ScreenCapture::captureDisplay(args, captureResults)); in TEST_P()
181 ASSERT_EQ(NO_ERROR, ScreenCapture::captureDisplay(args, captureResults)); in TEST_P()
DCredentials_test.cpp285 ScreenCaptureResults captureResults; in TEST_F() local
286 return ScreenCapture::captureDisplay(captureArgs, captureResults); in TEST_F()
299 ScreenCaptureResults captureResults; in TEST_F() local
300 return ScreenCapture::captureLayers(captureArgs, captureResults); in TEST_F()
DScreenCapture_test.cpp351 ScreenCaptureResults captureResults; in TEST_F() local
352 ASSERT_EQ(BAD_VALUE, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
368 ScreenCaptureResults captureResults; in TEST_F() local
369 ASSERT_EQ(BAD_VALUE, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
373 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
374 ScreenCapture sc(captureResults.buffer); in TEST_F()
530 ScreenCaptureResults captureResults; in TEST_F() local
532 ASSERT_EQ(NAME_NOT_FOUND, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
557 ScreenCaptureResults captureResults; in TEST_F() local
563 ASSERT_EQ(PERMISSION_DENIED, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
/frameworks/native/libs/gui/include/gui/
DSyncScreenCaptureListener.h29 binder::Status onScreenCaptureCompleted(const ScreenCaptureResults& captureResults) override { in onScreenCaptureCompleted()
30 resultsPromise.set_value(captureResults); in onScreenCaptureCompleted()
/frameworks/base/cmds/screencap/
Dscreencap.cpp191 ScreenCaptureResults captureResults = captureListener->waitForResults(); in main() local
192 if (captureResults.result != NO_ERROR) { in main()
196 ui::Dataspace dataspace = captureResults.capturedDataspace; in main()
197 sp<GraphicBuffer> buffer = captureResults.buffer; in main()
/frameworks/native/libs/gui/aidl/android/gui/
DIScreenCaptureListener.aidl23 void onScreenCaptureCompleted(in ScreenCaptureResults captureResults); in onScreenCaptureCompleted() argument
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp294 const gui::ScreenCaptureResults& captureResults) override { in onScreenCaptureCompleted() argument
296 if (captureResults.result != NO_ERROR || captureResults.buffer == nullptr) { in onScreenCaptureCompleted()
301 captureResults.fence->waitForever(""); in onScreenCaptureCompleted()
303 env, captureResults.buffer->toAHardwareBuffer()); in onScreenCaptureCompleted()
305 fromDataspaceToNamedColorSpaceValue(captureResults.capturedDataspace); in onScreenCaptureCompleted()
310 captureResults.capturedSecureLayers); in onScreenCaptureCompleted()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp202 ScreenCaptureResults& captureResults) { in captureDisplay() argument
211 captureResults = captureListener->waitForResults(); in captureDisplay()
212 return captureResults.result; in captureDisplay()
267 ScreenCaptureResults captureResults; in TEST_F() local
268 ASSERT_EQ(NO_ERROR, captureDisplay(captureArgs, captureResults)); in TEST_F()
298 ASSERT_EQ(NO_ERROR, captureDisplay(captureArgs, captureResults)); in TEST_F()
DBLASTBufferQueue_test.cpp239 ScreenCaptureResults& captureResults) { in captureDisplay() argument
248 captureResults = captureListener->waitForResults(); in captureDisplay()
249 return captureResults.result; in captureDisplay()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTestableSurfaceFlinger.h354 ScreenCaptureResults captureResults; in renderScreenImplLocked() local
357 captureResults); in renderScreenImplLocked()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp6258 ScreenCaptureResults captureResults; in captureScreenCommon() local
6262 captureResults.result = NO_MEMORY; in captureScreenCommon()
6263 captureListener->onScreenCaptureCompleted(captureResults); in captureScreenCommon()
6271 captureResults); in captureScreenCommon()
6274 captureResults.result = result; in captureScreenCommon()
6275 captureListener->onScreenCaptureCompleted(captureResults); in captureScreenCommon()
6285 ScreenCaptureResults& captureResults) { in renderScreenImplLocked() argument
6289 captureResults.capturedSecureLayers = in renderScreenImplLocked()
6290 captureResults.capturedSecureLayers || (layer->isVisible() && layer->isSecure()); in renderScreenImplLocked()
6298 if (captureResults.capturedSecureLayers && !canCaptureBlackoutContent) { in renderScreenImplLocked()
[all …]
DRegionSamplingThread.cpp362 ScreenCaptureResults captureResults = captureListener->waitForResults(); in captureSample() local