Home
last modified time | relevance | path

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

/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java160 CaptureRequest.Builder requestBuilder = in testSettingsBinderParcel() local
162 requestBuilder.addTarget(surface); in testSettingsBinderParcel()
165 CaptureRequest captureRequestOriginal = requestBuilder.build(); in testSettingsBinderParcel()
181 requestBuilder = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW, in testSettingsBinderParcel()
183 requestBuilder.addTarget(surface); in testSettingsBinderParcel()
184 captureRequestOriginal = requestBuilder.build(); in testSettingsBinderParcel()
255 CaptureRequest.Builder requestBuilder = in testBlackLevelLock() local
259 requestBuilder.set(CaptureRequest.BLACK_LEVEL_LOCK, true); in testBlackLevelLock()
260 changeExposure(requestBuilder, DEFAULT_EXP_TIME_NS, DEFAULT_SENSITIVITY); in testBlackLevelLock()
266 startPreview(requestBuilder, previewSz, listener); in testBlackLevelLock()
[all …]
DLogicalCameraDeviceTest.java291 CaptureRequest.Builder requestBuilder = in testBasicLogicalPhysicalStreamCombination() local
293 requestBuilder.addTarget(yuvTargetLogical.getSurface()); in testBasicLogicalPhysicalStreamCombination()
296 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
307 requestBuilder.removeTarget(yuvTargetLogical.getSurface()); in testBasicLogicalPhysicalStreamCombination()
308 requestBuilder.addTarget(yuvTargetPhysical.getSurface()); in testBasicLogicalPhysicalStreamCombination()
311 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
325 requestBuilder.addTarget(yuvTargetLogical.getSurface()); in testBasicLogicalPhysicalStreamCombination()
327 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
414 CaptureRequest.Builder requestBuilder = in testBasicPhysicalRequests() local
417 requestBuilder.addTarget(c.getSurface()); in testBasicPhysicalRequests()
[all …]
DCaptureResultTest.java117 CaptureRequest.Builder requestBuilder = in testCameraCaptureResultAllKeys() local
119 assertNotNull("Failed to create capture request", requestBuilder); in testCameraCaptureResultAllKeys()
120 requestBuilder.addTarget(mReaderSurface); in testCameraCaptureResultAllKeys()
124 startCapture(requestBuilder.build(), /*repeating*/true, captureListener, mHandler); in testCameraCaptureResultAllKeys()
128 null/*requestedPhysicalIds*/, requestBuilder, NUM_FRAMES_VERIFIED); in testCameraCaptureResultAllKeys()
180 CaptureRequest.Builder requestBuilder = in testPartialResult() local
182 assertNotNull("Failed to create capture request", requestBuilder); in testPartialResult()
183 requestBuilder.addTarget(mReaderSurface); in testPartialResult()
191 requestBuilder.setTag(frame); in testPartialResult()
193 requestBuilder.build(), /*repeating*/false, in testPartialResult()
[all …]
DSurfaceViewPreviewTest.java673 CaptureRequest.Builder requestBuilder = in previewFpsRangeTestByCamera() local
687 requestBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in previewFpsRangeTestByCamera()
691 requestBuilder.set(CaptureRequest.CONTROL_AE_ANTIBANDING_MODE, in previewFpsRangeTestByCamera()
701 startPreview(requestBuilder, maxPreviewSz, resultListener); in previewFpsRangeTestByCamera()
703 mSession.setRepeatingRequest(requestBuilder.build(), resultListener, mHandler); in previewFpsRangeTestByCamera()
759 CaptureRequest.Builder requestBuilder = in previewTestByCamera() local
764 startPreview(requestBuilder, sz, mockCaptureCallback); in previewTestByCamera()
774 CaptureRequest.Builder requestBuilder = in previewTestPatternTestByCamera() local
783 requestBuilder.set(CaptureRequest.SENSOR_TEST_PATTERN_MODE, mode); in previewTestPatternTestByCamera()
786 requestBuilder.set(CaptureRequest.SENSOR_TEST_PATTERN_DATA, TEST_PATTERN_DATA); in previewTestPatternTestByCamera()
[all …]
DZoomCaptureTest.java123 CaptureRequest.Builder requestBuilder = prepareCaptureRequestForConfigs( in bufferFormatZoomTestByCamera() local
135 requestBuilder.set(CaptureRequest.CONTROL_ZOOM_RATIO, zoomRatio); in bufferFormatZoomTestByCamera()
136 CaptureRequest request = requestBuilder.build(); in bufferFormatZoomTestByCamera()
DRecordingTest.java443 CaptureRequest.Builder requestBuilder = in testAbandonedHighSpeedRequest() local
445 requestBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in testAbandonedHighSpeedRequest()
446 requestBuilder.addTarget(mPreviewSurface); in testAbandonedHighSpeedRequest()
447 requestBuilder.addTarget(mRecordingSurface); in testAbandonedHighSpeedRequest()
454 createHighSpeedRequestList(requestBuilder.build()); in testAbandonedHighSpeedRequest()
476 requestBuilder = mCamera.createCaptureRequest(CameraDevice.TEMPLATE_RECORD); in testAbandonedHighSpeedRequest()
477 requestBuilder.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, fpsRange); in testAbandonedHighSpeedRequest()
478 requestBuilder.addTarget(previewSurface); in testAbandonedHighSpeedRequest()
486 createHighSpeedRequestList(requestBuilder.build()); in testAbandonedHighSpeedRequest()
1021 CaptureRequest.Builder requestBuilder = in startConstrainedPreview() local
[all …]
DCameraDeviceTest.java1026 CaptureRequest.Builder requestBuilder = null; in testSessionParametersStateLeakByCamera() local
1052 requestBuilder = newBuilder; in testSessionParametersStateLeakByCamera()
1057 if (requestBuilder != null) { in testSessionParametersStateLeakByCamera()
1062 if (requestBuilder != null) { in testSessionParametersStateLeakByCamera()
1063 requestBuilder.addTarget(imageReader.getSurface()); in testSessionParametersStateLeakByCamera()
1064 request = requestBuilder.build(); in testSessionParametersStateLeakByCamera()
1490 CaptureRequest.Builder requestBuilder = in invalidRequestCaptureTestByCamera() local
1492 CaptureRequest unConfiguredRequest = requestBuilder.build(); in invalidRequestCaptureTestByCamera()
1698 CaptureRequest.Builder requestBuilder = mCamera.createCaptureRequest(template); in captureSingleShot() local
1699 assertNotNull("Failed to create capture request", requestBuilder); in captureSingleShot()
[all …]
DImageWriterTest.java269 CaptureRequest.Builder requestBuilder = prepareCaptureRequestForSurfaces(outputSurfaces, in readerWriterFormatTestByCamera() local
273 startCapture(requestBuilder.build(), /*repeating*/false, captureListener, mHandler); in readerWriterFormatTestByCamera()
275 startCapture(requestBuilder.build(), /*repeating*/false, captureListener, mHandler); in readerWriterFormatTestByCamera()
DConcurrentCameraTest.java282 CaptureRequest.Builder requestBuilder = in testMandatoryConcurrentStreamCombination() local
286 requestBuilder.addTarget(c.getSurface()); in testMandatoryConcurrentStreamCombination()
288 CaptureRequest request = requestBuilder.build(); in testMandatoryConcurrentStreamCombination()
DImageReaderTest.java1205 CaptureRequest.Builder requestBuilder = prepareCaptureRequestForSurfaces( in bufferFormatLongProcessingTimeTestByCamera() local
1208 requestBuilder.set( in bufferFormatLongProcessingTimeTestByCamera()
1210 requestBuilder.set(CaptureRequest.CONTROL_AE_LOCK, true); in bufferFormatLongProcessingTimeTestByCamera()
1211 requestBuilder.set(CaptureRequest.CONTROL_AWB_LOCK, true); in bufferFormatLongProcessingTimeTestByCamera()
1212 requestBuilder.set(CaptureRequest.CONTROL_AE_MODE, in bufferFormatLongProcessingTimeTestByCamera()
1214 requestBuilder.set(CaptureRequest.CONTROL_AWB_MODE, in bufferFormatLongProcessingTimeTestByCamera()
1216 requestBuilder.set(CaptureRequest.SENSOR_SENSITIVITY, TEST_SENSITIVITY_VALUE); in bufferFormatLongProcessingTimeTestByCamera()
1217 requestBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, TEST_EXPOSURE_TIME_NS); in bufferFormatLongProcessingTimeTestByCamera()
1220 startCapture(requestBuilder.build(), /*repeating*/true, listener, mHandler); in bufferFormatLongProcessingTimeTestByCamera()
DMultiResolutionImageReaderTest.java302 CaptureRequest.Builder requestBuilder = in testMultiResolutionMandatoryStreamCombination() local
306 requestBuilder.addTarget(s); in testMultiResolutionMandatoryStreamCombination()
320 CaptureRequest request = requestBuilder.build(); in testMultiResolutionMandatoryStreamCombination()
DMultiViewTest.java940 CaptureRequest.Builder requestBuilder = getCaptureBuilder(id, in testTextureImageWriterReaderOperation() local
942 requestBuilder.addTarget(reader.getSurface()); in testTextureImageWriterReaderOperation()
943 requestBuilder.addTarget(preview); in testTextureImageWriterReaderOperation()
951 capture(id, requestBuilder.build(), resultListener); in testTextureImageWriterReaderOperation()
DRobustnessTest.java374 CaptureRequest.Builder requestBuilder = in testMandatoryStreamCombination() local
380 requestBuilder.addTarget(s); in testMandatoryStreamCombination()
388 requestBuilder.set(CaptureRequest.SENSOR_PIXEL_MODE, in testMandatoryStreamCombination()
420 CaptureRequest request = requestBuilder.build(); in testMandatoryStreamCombination()
DStillCaptureTest.java975 CaptureRequest.Builder requestBuilder = in touchForFocusTestByCamera() local
978 startPreview(requestBuilder, maxPreviewSz, listener); in touchForFocusTestByCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCamera2Focuser.java215 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in cancelAutoFocus() local
217 mAutoFocus.unlockAutoFocus(mRepeatingBuilder, requestBuilder); in cancelAutoFocus()
220 mSession.capture(requestBuilder.build(), listener, mHandler); in cancelAutoFocus()
244 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in startAutoFocusLocked() local
254 mAutoFocus.lockAutoFocus(mRepeatingBuilder, requestBuilder); in startAutoFocusLocked()
257 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusLocked()
267 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in startAutoFocusFullActiveLocked() local
268 mAutoFocus.setActiveAutoFocus(mRepeatingBuilder, requestBuilder); in startAutoFocusFullActiveLocked()
273 if (requestBuilder.get(CaptureRequest.CONTROL_AF_TRIGGER) in startAutoFocusFullActiveLocked()
281 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusFullActiveLocked()
[all …]
/cts/tests/translation/src/android/translation/cts/views/
DCustomTextView.java47 ViewTranslationRequest.Builder requestBuilder = in onCreateViewTranslationRequest() local
49 requestBuilder.setValue(ViewTranslationRequest.ID_TEXT, in onCreateViewTranslationRequest()
51 requestBuilder.setValue(CUSTOM_TRANSLATION_ID_MY_TAG, in onCreateViewTranslationRequest()
53 requestsCollector.accept(requestBuilder.build()); in onCreateViewTranslationRequest()
DVirtualContainerView.java48 ViewTranslationRequest.Builder requestBuilder = in onCreateVirtualViewTranslationRequests() local
50 ViewTranslationRequest request = requestBuilder.setValue(ViewTranslationRequest.ID_TEXT, in onCreateVirtualViewTranslationRequests()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java235 CaptureRequest.Builder requestBuilder = in createRequestForPreview() local
237 requestBuilder.addTarget(mPreviewSurface); in createRequestForPreview()
238 return requestBuilder; in createRequestForPreview()