Home
last modified time | relevance | path

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

/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DHdrPreviewExtenderImpl.java162 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = new ArrayList<>(); in process() local
167 captureResults.add(new Pair<>(CaptureResult.CONTROL_ZOOM_RATIO, zoomRatio)); in process()
171 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_MODE, afMode)); in process()
175 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_TRIGGER, afTrigger)); in process()
179 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_STATE, afState)); in process()
183 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_REGIONS, afRegions)); in process()
189 captureResults.add(new Pair<>(CaptureResult.JPEG_QUALITY, jpegQuality)); in process()
194 captureResults.add(new Pair<>(CaptureResult.JPEG_ORIENTATION, in process()
200 captureResults.add(new Pair<>(CaptureResult.EXTENSION_STRENGTH, strength)); in process()
203 captureResults.add(new Pair<>(CaptureResult.EXTENSION_CURRENT_TYPE, in process()
[all …]
DHdrImageCaptureExtenderImpl.java160 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = in getCaptureProcessor()
168 captureResults.add(new Pair<>(CaptureResult.CONTROL_ZOOM_RATIO, in getCaptureProcessor()
174 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_MODE, in getCaptureProcessor()
180 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_TRIGGER, in getCaptureProcessor()
186 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_STATE, in getCaptureProcessor()
192 captureResults.add(new Pair<>(CaptureResult.CONTROL_AF_REGIONS, in getCaptureProcessor()
198 captureResults.add(new Pair<>(CaptureResult.JPEG_QUALITY, in getCaptureProcessor()
205 captureResults.add(new Pair<>(CaptureResult.JPEG_ORIENTATION, in getCaptureProcessor()
212 captureResults.add(new Pair<>(CaptureResult.EXTENSION_STRENGTH, in getCaptureProcessor()
216 captureResults.add(new Pair<>(CaptureResult.EXTENSION_CURRENT_TYPE, in getCaptureProcessor()
[all …]
DBokehImageCaptureExtenderImpl.java183 ArrayList<Pair<CaptureResult.Key, Object>> captureResults = in getCaptureProcessor()
191 captureResults.add(new Pair<>(CaptureResult.CONTROL_AE_MODE, in getCaptureProcessor()
198 captureResults.add(new Pair<>( in getCaptureProcessor()
205 captureResults.add(new Pair<>(CaptureResult.CONTROL_AE_LOCK, in getCaptureProcessor()
212 captureResults.add(new Pair<>(CaptureResult.CONTROL_AE_STATE, in getCaptureProcessor()
219 captureResults.add(new Pair<>(CaptureResult.FLASH_MODE, in getCaptureProcessor()
226 captureResults.add(new Pair<>(CaptureResult.FLASH_STATE, in getCaptureProcessor()
232 captureResults.add(new Pair<>(CaptureResult.JPEG_QUALITY, in getCaptureProcessor()
239 captureResults.add(new Pair<>(CaptureResult.JPEG_ORIENTATION, in getCaptureProcessor()
245 shutterTimestamp, captureResults)); in getCaptureProcessor()
[all …]
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h38 ScreenCaptureResults& captureResults) { in captureDisplay() argument
49 captureResults = captureListener->waitForResults(); in captureDisplay()
50 return fenceStatus(captureResults.fenceResult); in captureDisplay()
69 ScreenCaptureResults captureResults; in captureDisplay() local
70 ASSERT_EQ(NO_ERROR, captureDisplay(captureArgs, captureResults)); in captureDisplay()
71 *sc = std::make_unique<ScreenCapture>(captureResults.buffer, in captureDisplay()
72 captureResults.capturedHdrLayers); in captureDisplay()
76 ScreenCaptureResults& captureResults) { in captureLayers() argument
87 captureResults = captureListener->waitForResults(); in captureLayers()
88 return fenceStatus(captureResults.fenceResult); in captureLayers()
[all …]
/frameworks/base/core/jni/
Dandroid_window_ScreenCapture.cpp94 const gui::ScreenCaptureResults& captureResults) override { in onScreenCaptureCompleted() argument
103 if (!captureResults.fenceResult.ok() || captureResults.buffer == nullptr) { in onScreenCaptureCompleted()
105 fenceStatus(captureResults.fenceResult)); in onScreenCaptureCompleted()
109 captureResults.fenceResult.value()->waitForever(LOG_TAG); in onScreenCaptureCompleted()
111 env, captureResults.buffer->toAHardwareBuffer()); in onScreenCaptureCompleted()
116 static_cast<jint>(captureResults.capturedDataspace), in onScreenCaptureCompleted()
117 captureResults.capturedSecureLayers, in onScreenCaptureCompleted()
118 captureResults.capturedHdrLayers); in onScreenCaptureCompleted()
121 fenceStatus(captureResults.fenceResult)); in onScreenCaptureCompleted()
/frameworks/base/core/tests/coretests/src/android/hardware/camera2/impl/
DCaptureMetadataNativeTest.java47 CameraMetadataNative captureResults = new CameraMetadataNative(); in setLensShadingMap() local
48 captureResults.set(CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP, lensShadingMap); in setLensShadingMap()
51 captureResults.get(CaptureResult.STATISTICS_LENS_SHADING_CORRECTION_MAP); in setLensShadingMap()
/frameworks/base/cmds/screencap/
Dscreencap.cpp159 ScreenCaptureResults captureResults = captureListener->waitForResults(); in capture() local
160 if (!captureResults.fenceResult.ok()) { in capture()
162 fenceStatus(captureResults.fenceResult)); in capture()
166 outResult = captureResults; in capture()
171 status_t saveImage(const char* fn, bool png, const ScreenCaptureResults& captureResults) { in saveImage() argument
173 ui::Dataspace dataspace = captureResults.capturedDataspace; in saveImage()
174 sp<GraphicBuffer> buffer = captureResults.buffer; in saveImage()
/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.cpp509 ScreenCaptureResults captureResults; in TEST_F() local
510 ASSERT_EQ(BAD_VALUE, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
526 ScreenCaptureResults captureResults; in TEST_F() local
527 ASSERT_EQ(BAD_VALUE, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
531 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
532 ScreenCapture sc(captureResults.buffer, captureResults.capturedHdrLayers); in TEST_F()
679 ScreenCaptureResults captureResults; in TEST_F() local
681 ASSERT_EQ(NAME_NOT_FOUND, ScreenCapture::captureLayers(args, captureResults)); in TEST_F()
695 ScreenCaptureResults captureResults; in TEST_F() local
696 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::captureLayers(args, captureResults)); in TEST_P()
181 ASSERT_EQ(NO_ERROR, ScreenCapture::captureLayers(args, captureResults)); in TEST_P()
DCredentials_test.cpp284 ScreenCaptureResults captureResults; in TEST_F() local
285 return ScreenCapture::captureLayers(captureArgs, captureResults); in TEST_F()
/frameworks/ex/camera2/extensions/eyesFreeVidSample/src/android/camera/extensions/impl/service/
DEyesFreeVidSessionProcessor.java297 HashMap<CaptureResult.Key, Object> captureResults = new HashMap<>(); in addCaptureResultKeys() local
300 captureResults.put(key, result.get(key)); in addCaptureResultKeys()
310 captureResults.put(ExtensionCaptureResult.EFV_AUTO_ZOOM, in addCaptureResultKeys()
316 captureResults.put( in addCaptureResultKeys()
322 captureResults.put(ExtensionCaptureResult.EFV_PADDING_ZOOM_FACTOR, in addCaptureResultKeys()
326 captureResults.put(ExtensionCaptureResult.EFV_TRANSLATE_VIEWPORT, in addCaptureResultKeys()
330 captureResults.put(ExtensionCaptureResult.EFV_ROTATE_VIEWPORT, in addCaptureResultKeys()
338 captureResults.put(ExtensionCaptureResult.EFV_PADDING_REGION, in addCaptureResultKeys()
353 captureResults.put(ExtensionCaptureResult.EFV_TARGET_COORDINATES, in addCaptureResultKeys()
361 captureResults.put(ExtensionCaptureResult.EFV_AUTO_ZOOM_PADDING_REGION, in addCaptureResultKeys()
[all …]
/frameworks/native/libs/gui/aidl/android/gui/
DIScreenCaptureListener.aidl23 void onScreenCaptureCompleted(in ScreenCaptureResults captureResults); in onScreenCaptureCompleted() argument
/frameworks/base/core/java/android/hardware/camera2/extension/
DSessionProcessor.java530 CameraMetadataNative captureResults = new CameraMetadataNative(); in onCaptureCompleted() local
531 captureResults.setVendorId(mVendorId); in onCaptureCompleted()
533 captureResults.set(entry.getKey(), entry.getValue()); in onCaptureCompleted()
536 mCaptureCallback.onCaptureCompleted(shutterTimestamp, requestId, captureResults); in onCaptureCompleted()
/frameworks/ex/camera2/extensions/advancedSample/src/java/androidx/camera/extensions/impl/advanced/
DBaseAdvancedExtenderImpl.java544 HashMap<CaptureResult.Key, Object> captureResults = new HashMap<>(); in addCaptureResultKeys() local
553 captureResults.put(key, result.get(key)); in addCaptureResultKeys()
558 captureResults); in addCaptureResultKeys()
708 HashMap<Integer, Pair<ImageReferenceImpl, TotalCaptureResult>> captureResults = in processImageCapture() local
713 captureResults.put(captureId, new Pair<>(imageReferenceImpl, totalCaptureResult)); in processImageCapture()
715 if (captureResults.keySet().containsAll(mCaptureIdList)) { in processImageCapture()
717 new ArrayList<>(captureResults.values()); in processImageCapture()
765 for (Pair<ImageReferenceImpl, TotalCaptureResult> val : captureResults.values()) { in processImageCapture()
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraRenderThread.cc609 captureResults(1); in processTask() local
610 captureResults[0] = std::move(captureResult); in processTask()
612 status = mCameraDeviceCallback->processCaptureResult(captureResults); in processTask()
653 captureResults(1); in flushCaptureRequest() local
654 captureResults[0] = std::move(captureResult); in flushCaptureRequest()
656 status = mCameraDeviceCallback->processCaptureResult(captureResults); in flushCaptureRequest()
/frameworks/base/packages/services/CameraExtensionsProxy/src/com/android/cameraextensions/
DCameraExtensionsProxyService.java1326 CameraMetadataNative captureResults = new CameraMetadataNative();
1328 captureResults.setVendorId(mMetadataVendorIdMap.get(mCameraId));
1331 captureResults.set(entry.getKey(), entry.getValue());
1335 mCaptureCallback.onCaptureCompleted(timestamp, requestId, captureResults);
2261 CameraMetadataNative captureResults = new CameraMetadataNative();
2263 captureResults.setVendorId(mMetadataVendorIdMap.get(mCameraId));
2266 captureResults.set(pair.first, pair.second);
2270 mProcessResult.onCaptureCompleted(shutterTimestamp, captureResults);
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp7928 ScreenCaptureResults captureResults; in invokeScreenCaptureError() local
7929 captureResults.fenceResult = base::unexpected(status); in invokeScreenCaptureError()
7930 captureListener->onScreenCaptureCompleted(captureResults); in invokeScreenCaptureError()
8355 ScreenCaptureResults captureResults; in captureScreenshot() local
8363 captureResults.fenceResult = base::unexpected(NO_MEMORY); in captureScreenshot()
8364 captureListener->onScreenCaptureCompleted(captureResults); in captureScreenshot()
8373 captureResults, displayState, layers, layerFEs); in captureScreenshot()
8378 .then([captureListener, captureResults = std::move(captureResults)]( in captureScreenshot()
8380 captureResults.fenceResult = std::move(fenceResult); in captureScreenshot()
8381 captureListener->onScreenCaptureCompleted(captureResults); in captureScreenshot()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DTestableSurfaceFlinger.h498 ScreenCaptureResults captureResults; in renderScreenImpl() local
505 captureResults, displayState, layers, layerFEs); in renderScreenImpl()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraExtensionSessionImpl.java2092 CameraMetadataNative captureResults = new CameraMetadataNative(); in initializeFilteredResults() local
2096 captureResults.set(key, value); in initializeFilteredResults()
2099 return captureResults; in initializeFilteredResults()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp3161 gui::ScreenCaptureResults captureResults; in captureLayers() local
3162 status = s->captureLayersSync(captureArgs, &captureResults); in captureLayers()
3163 captureListener->onScreenCaptureCompleted(captureResults); in captureLayers()