Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/
DLayerState_test.cpp94 results.fenceResult = sp<Fence>::make(dup(fileno(tmpfile()))); in TEST()
110 ASSERT_TRUE(results.fenceResult.ok()); in TEST()
111 ASSERT_TRUE(results2.fenceResult.ok()); in TEST()
112 ASSERT_EQ(results.fenceResult.value()->isValid(), results2.fenceResult.value()->isValid()); in TEST()
127 ASSERT_TRUE(results2.fenceResult.ok()); in TEST()
128 ASSERT_EQ(results2.fenceResult.value(), Fence::NO_FENCE); in TEST()
133 results.fenceResult = base::unexpected(BAD_VALUE); in TEST()
142 ASSERT_FALSE(results.fenceResult.ok()); in TEST()
143 ASSERT_FALSE(results2.fenceResult.ok()); in TEST()
144 ASSERT_EQ(results.fenceResult.error(), results2.fenceResult.error()); in TEST()
/frameworks/native/libs/gui/
DScreenCaptureResults.cpp32 if (fenceResult.ok() && fenceResult.value() != Fence::NO_FENCE) { in writeToParcel()
34 SAFE_PARCEL(parcel->write, *fenceResult.value()); in writeToParcel()
37 SAFE_PARCEL(parcel->writeInt32, fenceStatus(fenceResult)); in writeToParcel()
57 fenceResult = sp<Fence>::make(); in readFromParcel()
58 SAFE_PARCEL(parcel->read, *fenceResult.value()); in readFromParcel()
62 fenceResult = status == NO_ERROR ? FenceResult(Fence::NO_FENCE) in readFromParcel()
/frameworks/native/libs/ui/include/ui/
DFenceResult.h29 inline status_t fenceStatus(const FenceResult& fenceResult) { in fenceStatus() argument
30 return fenceResult.ok() ? NO_ERROR : fenceResult.error(); in fenceStatus()
/frameworks/native/libs/gui/include/gui/
DSyncScreenCaptureListener.h37 if (screenCaptureResults.fenceResult.ok()) { in waitForResults()
38 screenCaptureResults.fenceResult.value()->waitForever(""); in waitForResults()
DScreenCaptureResults.h35 FenceResult fenceResult = Fence::NO_FENCE; member
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.cpp355 FenceResult fenceResult; in captureSample() local
362 fenceResult = in captureSample()
367 fenceResult = in captureSample()
372 if (fenceResult.ok()) { in captureSample()
373 fenceResult.value()->waitForever(LOG_TAG); in captureSample()
DSurfaceFlinger.cpp7929 captureResults.fenceResult = base::unexpected(status); in invokeScreenCaptureError()
8363 captureResults.fenceResult = base::unexpected(NO_MEMORY); in captureScreenshot()
8379 FenceResult fenceResult) mutable -> FenceResult { in captureScreenshot() argument
8380 captureResults.fenceResult = std::move(fenceResult); in captureScreenshot()
8413 captureResults.fenceResult = base::unexpected(NO_MEMORY); in captureScreenshotLegacy()
8428 FenceResult fenceResult) mutable -> FenceResult { in captureScreenshotLegacy() argument
8429 captureResults.fenceResult = std::move(fenceResult); in captureScreenshotLegacy()
/frameworks/base/core/jni/
Dandroid_window_ScreenCapture.cpp103 if (!captureResults.fenceResult.ok() || captureResults.buffer == nullptr) { in onScreenCaptureCompleted()
105 fenceStatus(captureResults.fenceResult)); in onScreenCaptureCompleted()
109 captureResults.fenceResult.value()->waitForever(LOG_TAG); in onScreenCaptureCompleted()
121 fenceStatus(captureResults.fenceResult)); in onScreenCaptureCompleted()
/frameworks/base/cmds/screencap/
Dscreencap.cpp160 if (!captureResults.fenceResult.ok()) { in capture()
162 fenceStatus(captureResults.fenceResult)); in capture()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DCachedSet.cpp277 auto fenceResult = renderEngine in render() local
282 if (fenceStatus(fenceResult) == NO_ERROR) { in render()
283 mDrawFence = std::move(fenceResult).value_or(Fence::NO_FENCE); in render()
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h50 return fenceStatus(captureResults.fenceResult); in captureDisplay()
88 return fenceStatus(captureResults.fenceResult); in captureLayers()
/frameworks/native/services/surfaceflinger/tests/unittests/
DCompositionTest.cpp226 const auto fenceResult = future.get(); in captureScreenComposition() local
228 EXPECT_EQ(NO_ERROR, fenceStatus(fenceResult)); in captureScreenComposition()
229 if (fenceResult.ok()) { in captureScreenComposition()
230 fenceResult.value()->waitForever(LOG_TAG); in captureScreenComposition()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutput.cpp1354 auto fenceResult = renderEngine in composeSurfaces() local
1359 if (mClientCompositionRequestCache && fenceStatus(fenceResult) != NO_ERROR) { in composeSurfaces()
1363 const auto fence = std::move(fenceResult).value_or(Fence::NO_FENCE); in composeSurfaces()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp3488 .WillOnce([&presentFence](FenceResult fenceResult) { in TEST_F() argument
3489 EXPECT_EQ(FenceResult(presentFence), fenceResult); in TEST_F()
3492 .WillOnce([&presentFence](FenceResult fenceResult) { in TEST_F() argument
3493 EXPECT_EQ(FenceResult(presentFence), fenceResult); in TEST_F()
3496 .WillOnce([&presentFence](FenceResult fenceResult) { in TEST_F() argument
3497 EXPECT_EQ(FenceResult(presentFence), fenceResult); in TEST_F()