Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/
DScreenCapture_test.cpp76 std::unique_ptr<ScreenCapture> mCapture;
93 ASSERT_EQ(PERMISSION_DENIED, ScreenCapture::captureDisplay(mCaptureArgs, mCaptureResults)); in TEST_F()
100 ASSERT_EQ(NO_ERROR, ScreenCapture::captureDisplay(mCaptureArgs, mCaptureResults)); in TEST_F()
113 ASSERT_EQ(NO_ERROR, ScreenCapture::captureDisplay(args, mCaptureResults)); in TEST_F()
115 ScreenCapture sc(mCaptureResults.buffer, mCaptureResults.capturedHdrLayers); in TEST_F()
148 ASSERT_EQ(NO_ERROR, ScreenCapture::captureDisplay(args, mCaptureResults)); in TEST_F()
150 ScreenCapture sc(mCaptureResults.buffer, mCaptureResults.capturedHdrLayers); in TEST_F()
157 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
173 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
191 ScreenCapture::captureLayers(&mCapture, captureArgs); in TEST_F()
[all …]
DRelativeZ_test.cpp65 std::unique_ptr<ScreenCapture> sc; in TEST_F()
77 ScreenCapture::captureScreen(&sc); in TEST_F()
92 ScreenCapture::captureScreen(&sc); in TEST_F()
100 std::unique_ptr<ScreenCapture> sc; in TEST_F()
126 ScreenCapture::captureScreen(&sc); in TEST_F()
144 ScreenCapture::captureScreen(&sc); in TEST_F()
150 std::unique_ptr<ScreenCapture> sc; in TEST_F()
169 ScreenCapture::captureScreen(&sc); in TEST_F()
182 ScreenCapture::captureScreen(&sc); in TEST_F()
192 ScreenCapture::captureScreen(&sc); in TEST_F()
[all …]
DLayerTypeTransaction_test.cpp63 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
68 ScreenCapture::captureLayers(&screenshot, captureArgs); in TEST_P()
97 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
98 ScreenCapture::captureScreen(&screenshot); in TEST_P()
107 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
108 ScreenCapture::captureScreen(&screenshot); in TEST_P()
144 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
145 ScreenCapture::captureScreen(&screenshot); in TEST_P()
154 std::unique_ptr<ScreenCapture> screenshot; in TEST_P()
155 ScreenCapture::captureScreen(&screenshot); in TEST_P()
[all …]
DSetGeometry_test.cpp37 ScreenCapture::captureScreen(&sc); in SetUp()
49 std::unique_ptr<ScreenCapture> sc;
62 ScreenCapture::captureScreen(&sc); in TEST_F()
75 ScreenCapture::captureScreen(&sc); in TEST_F()
88 ScreenCapture::captureScreen(&sc); in TEST_F()
97 ScreenCapture::captureScreen(&sc); in TEST_F()
DLayerUpdate_test.cpp110 ScreenCapture::captureScreen(&sc); in EXPECT_INITIAL_STATE()
131 std::unique_ptr<ScreenCapture> sc;
138 ScreenCapture::captureScreen(&sc); in EXPECT_CROPPED_STATE()
147 ScreenCapture::captureScreen(&sc); in EXPECT_RESIZE_STATE()
156 std::unique_ptr<ScreenCapture> sc; in TEST_F()
170 ScreenCapture::captureScreen(&sc); in TEST_F()
176 ScreenCapture::captureScreen(&sc); in TEST_F()
183 std::unique_ptr<ScreenCapture> sc; in TEST_F()
186 ScreenCapture::captureScreen(&sc); in TEST_F()
201 ScreenCapture::captureScreen(&sc); in TEST_F()
[all …]
DMultiDisplayLayerBounds_test.cpp100 std::unique_ptr<ScreenCapture> sc; in TEST_F()
101 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
106 ScreenCapture::captureScreen(&sc, mVirtualDisplay); in TEST_F()
124 std::unique_ptr<ScreenCapture> sc; in TEST_F()
125 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
129 ScreenCapture::captureScreen(&sc, mVirtualDisplay); in TEST_F()
DInvalidHandles_test.cpp60 ASSERT_EQ(NAME_NOT_FOUND, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
DTransactionTestHarnesses.h32 std::unique_ptr<ScreenCapture> getScreenCapture() { in getScreenCapture()
83 auto sc = std::make_unique<ScreenCapture>(item.mGraphicBuffer, kContainsHdr); in getScreenCapture()
DLayerTransactionTest.h230 std::unique_ptr<ScreenCapture> screenshot() { in screenshot()
231 std::unique_ptr<ScreenCapture> screenshot; in screenshot()
232 ScreenCapture::captureScreen(&screenshot); in screenshot()
DCredentials_test.cpp286 return ScreenCapture::captureDisplay(captureArgs, captureResults); in TEST_F()
300 return ScreenCapture::captureLayers(captureArgs, captureResults); in TEST_F()
DMirrorLayer_test.cpp323 std::unique_ptr<ScreenCapture> shot; in TEST_F()
324 ScreenCapture::captureLayers(&shot, captureArgs); in TEST_F()
DLayerTypeAndRenderTypeTransaction_test.cpp36 std::unique_ptr<ScreenCapture> getScreenCapture() { in getScreenCapture()
DLayerRenderTypeTransaction_test.cpp37 std::unique_ptr<ScreenCapture> getScreenCapture() { return mHarness.getScreenCapture(); } in getScreenCapture()
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h31 class ScreenCapture : public RefBase {
49 static void captureScreen(std::unique_ptr<ScreenCapture>* sc) { in captureScreen()
53 static void captureScreen(std::unique_ptr<ScreenCapture>* sc, sp<IBinder> displayToken) { in captureScreen()
59 static void captureDisplay(std::unique_ptr<ScreenCapture>* sc, in captureDisplay()
63 *sc = std::make_unique<ScreenCapture>(captureResults.buffer, in captureDisplay()
82 static void captureLayers(std::unique_ptr<ScreenCapture>* sc, LayerCaptureArgs& captureArgs) { in captureLayers()
85 *sc = std::make_unique<ScreenCapture>(captureResults.buffer, in captureLayers()
188 explicit ScreenCapture(const sp<GraphicBuffer>& outBuffer, bool containsHdr) in ScreenCapture() function
195 ~ScreenCapture() { in ~ScreenCapture()