Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h34 ScreenCaptureResults& captureResults) { in captureDisplay() argument
45 captureResults = captureListener->waitForResults(); in captureDisplay()
46 return captureResults.result; in captureDisplay()
61 ScreenCaptureResults captureResults; in captureDisplay() local
62 ASSERT_EQ(NO_ERROR, captureDisplay(captureArgs, captureResults)); in captureDisplay()
63 *sc = std::make_unique<ScreenCapture>(captureResults.buffer, in captureDisplay()
64 captureResults.capturedHdrLayers); in captureDisplay()
68 ScreenCaptureResults& captureResults) { in captureLayers() argument
78 captureResults = captureListener->waitForResults(); in captureLayers()
79 return captureResults.result; in captureLayers()
[all …]
/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DHdrPreviewExtenderImpl.java142 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = new ArrayList<>();
147 captureResults.add(new Pair<>(CaptureResult.CONTROL_ZOOM_RATIO, zoomRatio));
151 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_MODE, afMode));
155 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_TRIGGER, afTrigger));
159 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_STATE, afState));
163 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_REGIONS, afRegions));
169 captureResults.add(new Pair<>(CaptureResult.JPEG_QUALITY, jpegQuality));
174 captureResults.add(new Pair<>(CaptureResult.JPEG_ORIENTATION,
180 captureResults));
182 resultCallback.onCaptureCompleted(shutterTimestamp, captureResults);
DBokehImageCaptureExtenderImpl.java121 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = in getCaptureProcessor()
129 captureResults.add(new Pair<>(CaptureResult.CONTROL_AE_MODE, in getCaptureProcessor()
136 captureResults.add(new Pair<>( in getCaptureProcessor()
143 captureResults.add(new Pair<>(CaptureResult.CONTROL_AE_LOCK, in getCaptureProcessor()
150 captureResults.add(new Pair<>(CaptureResult.CONTROL_AE_STATE, in getCaptureProcessor()
157 captureResults.add(new Pair<>(CaptureResult.FLASH_MODE, in getCaptureProcessor()
164 captureResults.add(new Pair<>(CaptureResult.FLASH_STATE, in getCaptureProcessor()
170 captureResults.add(new Pair<>(CaptureResult.JPEG_QUALITY, in getCaptureProcessor()
177 captureResults.add(new Pair<>(CaptureResult.JPEG_ORIENTATION, in getCaptureProcessor()
183 shutterTimestamp, captureResults)); in getCaptureProcessor()
[all …]
DHdrImageCaptureExtenderImpl.java138 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = in getCaptureProcessor()
146 captureResults.add(new Pair<>(CaptureResult.CONTROL_ZOOM_RATIO, in getCaptureProcessor()
152 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_MODE, in getCaptureProcessor()
158 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_TRIGGER, in getCaptureProcessor()
164 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_STATE, in getCaptureProcessor()
170 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_REGIONS, in getCaptureProcessor()
176 captureResults.add(new Pair<>(CaptureResult.JPEG_QUALITY, in getCaptureProcessor()
183 captureResults.add(new Pair<>(CaptureResult.JPEG_ORIENTATION, in getCaptureProcessor()
189 shutterTimestamp, captureResults)); in getCaptureProcessor()
192 captureResults); in getCaptureProcessor()
/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/native/services/surfaceflinger/tests/
DInvalidHandles_test.cpp59 ScreenCaptureResults captureResults; in TEST_F() local
60 ASSERT_EQ(NAME_NOT_FOUND, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
DScreenCapture_test.cpp354 ScreenCaptureResults captureResults; in TEST_F() local
355 ASSERT_EQ(BAD_VALUE, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
371 ScreenCaptureResults captureResults; in TEST_F() local
372 ASSERT_EQ(BAD_VALUE, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
376 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
377 ScreenCapture sc(captureResults.buffer, captureResults.capturedHdrLayers); in TEST_F()
524 ScreenCaptureResults captureResults; in TEST_F() local
526 ASSERT_EQ(NAME_NOT_FOUND, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
540 ScreenCaptureResults captureResults; in TEST_F() local
541 ASSERT_EQ(BAD_VALUE, ScreenCapture::captureLayers(captureArgs, captureResults)); in TEST_F()
[all …]
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()
/frameworks/base/cmds/screencap/
Dscreencap.cpp195 ScreenCaptureResults captureResults = captureListener->waitForResults(); in main() local
196 if (captureResults.result != NO_ERROR) { in main()
200 ui::Dataspace dataspace = captureResults.capturedDataspace; in main()
201 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/packages/services/CameraExtensionsProxy/src/com/android/cameraextensions/
DCameraExtensionsProxyService.java906 CameraMetadataNative captureResults = new CameraMetadataNative(); in onCaptureCompleted() local
908 captureResults.setVendorId(mMetadataVendorIdMap.get(mCameraId)); in onCaptureCompleted()
911 captureResults.set(entry.getKey(), entry.getValue()); in onCaptureCompleted()
915 mCaptureCallback.onCaptureCompleted(timestamp, requestId, captureResults); in onCaptureCompleted()
1552 CameraMetadataNative captureResults = new CameraMetadataNative(); in onCaptureCompleted() local
1554 captureResults.setVendorId(mMetadataVendorIdMap.get(mCameraId)); in onCaptureCompleted()
1557 captureResults.set(pair.first, pair.second); in onCaptureCompleted()
1561 mProcessResult.onCaptureCompleted(shutterTimestamp, captureResults); in onCaptureCompleted()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp209 ScreenCaptureResults& captureResults) { in captureDisplay() argument
218 captureResults = captureListener->waitForResults(); in captureDisplay()
219 return captureResults.result; in captureDisplay()
272 ScreenCaptureResults captureResults; in TEST_F() local
273 ASSERT_EQ(NO_ERROR, captureDisplay(captureArgs, captureResults)); in TEST_F()
303 ASSERT_EQ(NO_ERROR, captureDisplay(captureArgs, captureResults)); in TEST_F()
DBLASTBufferQueue_test.cpp302 ScreenCaptureResults& captureResults) { in captureDisplay() argument
311 captureResults = captureListener->waitForResults(); in captureDisplay()
312 return captureResults.result; in captureDisplay()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp309 const gui::ScreenCaptureResults& captureResults) override { in onScreenCaptureCompleted() argument
311 if (captureResults.result != NO_ERROR || captureResults.buffer == nullptr) { in onScreenCaptureCompleted()
316 captureResults.fence->waitForever(""); in onScreenCaptureCompleted()
318 env, captureResults.buffer->toAHardwareBuffer()); in onScreenCaptureCompleted()
320 fromDataspaceToNamedColorSpaceValue(captureResults.capturedDataspace); in onScreenCaptureCompleted()
325 captureResults.capturedSecureLayers, in onScreenCaptureCompleted()
326 captureResults.capturedHdrLayers); in onScreenCaptureCompleted()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp6687 ScreenCaptureResults captureResults; in captureScreenCommon() local
6692 captureResults.result = NO_MEMORY; in captureScreenCommon()
6693 captureListener->onScreenCaptureCompleted(captureResults); in captureScreenCommon()
6702 regionSampling, grayscale, captureResults); in captureScreenCommon()
6712 captureResults.result = fenceStatus(fenceResult); in captureScreenCommon()
6713 captureResults.fence = std::move(fenceResult).value_or(Fence::NO_FENCE); in captureScreenCommon()
6714 captureListener->onScreenCaptureCompleted(captureResults); in captureScreenCommon()
6736 ScreenCaptureResults& captureResults) { in renderScreenImpl() argument
6740 captureResults.capturedSecureLayers = in renderScreenImpl()
6741 captureResults.capturedSecureLayers || (layer->isVisible() && layer->isSecure()); in renderScreenImpl()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DTestableSurfaceFlinger.h425 ScreenCaptureResults captureResults; in renderScreenImpl() local
428 captureResults); in renderScreenImpl()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraExtensionSessionImpl.java1854 CameraMetadataNative captureResults = new CameraMetadataNative(); in initializeFilteredResults() local
1858 captureResults.set(key, value); in initializeFilteredResults()
1861 return captureResults; in initializeFilteredResults()