Searched refs:ScreenCapture (Results 1 – 14 of 14) sorted by relevance
/frameworks/native/services/surfaceflinger/tests/ |
D | ScreenCapture_test.cpp | 76 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 …]
|
D | RelativeZ_test.cpp | 65 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 …]
|
D | LayerTypeTransaction_test.cpp | 63 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 …]
|
D | SetGeometry_test.cpp | 37 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()
|
D | LayerUpdate_test.cpp | 110 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 …]
|
D | MultiDisplayLayerBounds_test.cpp | 100 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()
|
D | InvalidHandles_test.cpp | 60 ASSERT_EQ(NAME_NOT_FOUND, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
|
D | TransactionTestHarnesses.h | 32 std::unique_ptr<ScreenCapture> getScreenCapture() { in getScreenCapture() 83 auto sc = std::make_unique<ScreenCapture>(item.mGraphicBuffer, kContainsHdr); in getScreenCapture()
|
D | LayerTransactionTest.h | 230 std::unique_ptr<ScreenCapture> screenshot() { in screenshot() 231 std::unique_ptr<ScreenCapture> screenshot; in screenshot() 232 ScreenCapture::captureScreen(&screenshot); in screenshot()
|
D | Credentials_test.cpp | 286 return ScreenCapture::captureDisplay(captureArgs, captureResults); in TEST_F() 300 return ScreenCapture::captureLayers(captureArgs, captureResults); in TEST_F()
|
D | MirrorLayer_test.cpp | 323 std::unique_ptr<ScreenCapture> shot; in TEST_F() 324 ScreenCapture::captureLayers(&shot, captureArgs); in TEST_F()
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 36 std::unique_ptr<ScreenCapture> getScreenCapture() { in getScreenCapture()
|
D | LayerRenderTypeTransaction_test.cpp | 37 std::unique_ptr<ScreenCapture> getScreenCapture() { return mHarness.getScreenCapture(); } in getScreenCapture()
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | ScreenshotUtils.h | 31 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()
|