Home
last modified time | relevance | path

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

/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewPreviewTest.java218 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in preparePerformanceTestByCamera() local
245 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local
248 waitForAeStable(resultListener, UNKNOWN_LATENCY_RESULT_WAIT); in preparePerformanceTestByCamera()
253 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local
256 waitForResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, in preparePerformanceTestByCamera()
263 measureMeanFrameInterval(resultListener, FRAMES_FOR_AVERAGING, /*prevTimestamp*/ 0); in preparePerformanceTestByCamera()
269 resultListener.drain(); in preparePerformanceTestByCamera()
279 int resultsReceived = (int) resultListener.getTotalNumFrames(); in preparePerformanceTestByCamera()
283 measureMeanFrameInterval(resultListener, resultsReceived, /*prevTimestamp*/ 0); in preparePerformanceTestByCamera()
309 resultListener.drain(); in preparePerformanceTestByCamera()
[all …]
DStillCaptureTest.java638 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in focalLengthTestByCamera() local
660 maxStillSz, resultListener, focalLengths.length, imageListener, false /*isHeic*/); in focalLengthTestByCamera()
665 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in focalLengthTestByCamera() local
666 waitForSettingsApplied(resultListener, NUM_FRAMES_WAITED_FOR_UNKNOWN_LATENCY); in focalLengthTestByCamera()
667 waitForResultValue(resultListener, CaptureResult.LENS_STATE, in focalLengthTestByCamera()
669 result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in focalLengthTestByCamera()
676 resultListener = new SimpleCaptureCallback(); in focalLengthTestByCamera()
677 mSession.capture(request, resultListener, mHandler); in focalLengthTestByCamera()
678 result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in focalLengthTestByCamera()
700 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in previewPersistenceTestByCamera() local
[all …]
DBurstCaptureTest.java153 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in burstTestByCamera() local
160 fmt, resultListener, in burstTestByCamera()
174 CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in burstTestByCamera()
198 mSession.capture(previewBuilder.build(), resultListener, mHandler); in burstTestByCamera()
204 … CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in burstTestByCamera()
228 mSession.setRepeatingRequest(lockedRequest, resultListener, mHandler); in burstTestByCamera()
231 resultListener.drain(); in burstTestByCamera()
233 resultListener.getCaptureResultForRequest(lockedRequest, maxPipelineDepth); in burstTestByCamera()
263 lockedResult = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in burstTestByCamera()
347 resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in burstTestByCamera()
DFastBasicsTest.java90 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in camera2TestByCamera() local
94 previewSize, stillSize, resultListener, imageListener, false /*isHeic*/); in camera2TestByCamera()
96 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in camera2TestByCamera()
101 CaptureResult result2 = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in camera2TestByCamera()
114 mSession.capture(capture, resultListener, mHandler); in camera2TestByCamera()
117 resultListener.getTotalCaptureResultForRequest(capture, FRAMES_TO_WAIT_FOR_CAPTURE); in camera2TestByCamera()
DRecordingTest.java609 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in videoPreviewSurfaceSharingTestByCamera() local
610 if (!startSharedRecording(/* useMediaRecorder */true, resultListener, in videoPreviewSurfaceSharingTestByCamera()
623 float durationMinMs = resultListener.getTotalNumFrames() * frameDurationMinMs; in videoPreviewSurfaceSharingTestByCamera()
628 durationMaxMs = resultListener.getTotalNumFrames() * frameDurationMaxMs; in videoPreviewSurfaceSharingTestByCamera()
705 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in slowMotionRecording() local
707 fpsRange, resultListener, /*useHighSpeedSession*/false); in slowMotionRecording()
716 float durationMs = resultListener.getTotalNumFrames() * frameDurationMs; in slowMotionRecording()
779 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in constrainedHighSpeedRecording() local
782 captureRate, fpsRange, resultListener, in constrainedHighSpeedRecording()
795 float durationMs = resultListener.getTotalNumFrames() * frameDurationMs; in constrainedHighSpeedRecording()
[all …]
DCaptureRequestTest.java882 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in dynamicBlackWhiteLevelTestByCamera() local
903 resultListener, imageListener); in dynamicBlackWhiteLevelTestByCamera()
905 startPreview(previewBuilder, previewSize, resultListener); in dynamicBlackWhiteLevelTestByCamera()
919 mSession.capture(rawRequest, resultListener, mHandler); in dynamicBlackWhiteLevelTestByCamera()
920 result = resultListener.getCaptureResultForRequest(rawRequest, in dynamicBlackWhiteLevelTestByCamera()
969 mSession.capture(previewRequest, resultListener, mHandler); in dynamicBlackWhiteLevelTestByCamera()
970 result = resultListener.getCaptureResultForRequest(previewRequest, in dynamicBlackWhiteLevelTestByCamera()
1057 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in noiseReductionModeTestByCamera() local
1058 startPreview(requestBuilder, maxPrevSize, resultListener); in noiseReductionModeTestByCamera()
1059 mSession.setRepeatingRequest(requestBuilder.build(), resultListener, mHandler); in noiseReductionModeTestByCamera() local
[all …]
DMultiViewTest.java436 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testSharedSurfaceImageReaderSwitch() local
479 capture(cameraId, imageReaderRequestBuilder.build(), resultListener); in testSharedSurfaceImageReaderSwitch()
552 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testSharedSurfaceYUVImageReaderSwitch() local
599 capture(cameraId, imageReaderRequestBuilder.build(), resultListener); in testSharedSurfaceYUVImageReaderSwitch()
675 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testSharedSurfaceLimitByCamera() local
714 sequenceId = updateRepeatingRequest(cameraId, outputConfigurations, resultListener); in testSharedSurfaceLimitByCamera()
735 updateRepeatingRequest(cameraId, outputConfigurations, resultListener); in testSharedSurfaceLimitByCamera()
736 long lastSequenceFrameNumber = resultListener.getCaptureSequenceLastFrameNumber( in testSharedSurfaceLimitByCamera()
738 checkForLastFrameInSequence(lastSequenceFrameNumber, resultListener); in testSharedSurfaceLimitByCamera()
791 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testSharedSurfaceSwitchByCamera() local
[all …]
DImageReaderTest.java551 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testAllOutputYUVResolutions() local
555 resultListener, mHandler); in testAllOutputYUVResolutions() local
558 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in testAllOutputYUVResolutions()
570 startCapture(mainRequest.build(), /*repeating*/false, resultListener, in testAllOutputYUVResolutions() local
574 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in testAllOutputYUVResolutions()
890 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in bufferFormatWithYuvTestByCamera() local
893 startCapture(request.build(), /*repeating*/false, resultListener, mHandler); in bufferFormatWithYuvTestByCamera() local
898 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in bufferFormatWithYuvTestByCamera()
DPerformanceTest.java182 SimpleCaptureCallback resultListener = in testCameraLaunch() local
184 blockingStartPreview(resultListener, imageListener); in testCameraLaunch()
190 CameraTestUtils.waitForNumResults(resultListener, NUM_RESULTS_WAIT, in testCameraLaunch()
1155 Size previewSz, Size[] captureSizes, int[] formats, CaptureCallback resultListener, in prepareStillCaptureAndStartPreview() argument
1195 mCameraSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in prepareStillCaptureAndStartPreview() local
1215 CaptureCallback resultListener, CameraCaptureSession.StateCallback sessionListener, in prepareCaptureAndStartPreview() argument
1250 mCameraSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in prepareCaptureAndStartPreview() local
DDngCreatorTest.java763 CameraTestUtils.SimpleCaptureCallback resultListener = in captureRawShots() local
768 startCapture(request1, /*repeating*/false, resultListener, mHandler); in captureRawShots()
773 CaptureResult result = resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in captureRawShots()
DCameraDeviceTest.java1369 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in prepareTestByCamera() local
1370 mSession.capture(r.build(), resultListener, mHandler); in prepareTestByCamera() local
1372 resultListener.getCaptureResult(CAPTURE_RESULT_TIMEOUT_MS); in prepareTestByCamera()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java294 CaptureCallback resultListener, in prepareStillCaptureAndStartPreview() argument
297 isHeic ? ImageFormat.HEIC : ImageFormat.JPEG, resultListener, MAX_READER_IMAGES, in prepareStillCaptureAndStartPreview()
314 CaptureCallback resultListener, int maxNumImages, in prepareStillCaptureAndStartPreview() argument
317 … isHeic ? ImageFormat.HEIC : ImageFormat.JPEG, resultListener, maxNumImages, imageListener); in prepareStillCaptureAndStartPreview()
336 CaptureCallback resultListener, in prepareRawCaptureAndStartPreview() argument
339 ImageFormat.RAW_SENSOR, resultListener, MAX_READER_IMAGES, imageListener); in prepareRawCaptureAndStartPreview()
474 protected static CaptureResult waitForNumResults(SimpleCaptureCallback resultListener, in waitForNumResults() argument
476 return CameraTestUtils.waitForNumResults(resultListener, numResultsWait, in waitForNumResults()
487 protected void waitForSettingsApplied(SimpleCaptureCallback resultListener, in waitForSettingsApplied() argument
494 waitForNumResults(resultListener, maxLatency); in waitForSettingsApplied()
[all …]
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp1388 CaptureResultListener* resultListener = in startPreview() local
1390 resultListener->registerPhysicalResults(physicalIdCnt, extraPhysicalOutputs); in startPreview()
3229 CaptureResultListener resultListener; in nativeImageReaderTestBase() local
3231 &resultListener, in nativeImageReaderTestBase()
3240 resultListener.setRequestSave(true); in nativeImageReaderTestBase()
3267 resultListener.getCaptureSequenceLastFrameNumber(lastSeqId, /*timeoutSec*/ 5); in nativeImageReaderTestBase()
3270 resultListener.getCompletedRequests(&completedRequests); in nativeImageReaderTestBase()
3452 CaptureResultListener resultListener; in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative() local
3454 &resultListener, in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
3482 auto frameArrived = resultListener.waitForFrameNumber(lastFrameNumber, timeoutSec); in Java_android_hardware_camera2_cts_NativeCameraDeviceTest_testCameraDeviceCaptureFailureNative()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2796 public static CaptureResult waitForNumResults(SimpleCaptureCallback resultListener, in waitForNumResults() argument
2798 if (numResultsWait < 0 || resultListener == null) { in waitForNumResults()
2805 result = resultListener.getCaptureResult(timeout); in waitForNumResults()
2899 public static void waitForAeStable(SimpleCaptureCallback resultListener, in waitForAeStable() argument
2902 waitForSettingsApplied(resultListener, numResultWaitForUnknownLatency, staticInfo, in waitForAeStable()
2912 waitForAnyResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, expectedAeStates, in waitForAeStable()
2925 public static void waitForSettingsApplied(SimpleCaptureCallback resultListener, in waitForSettingsApplied() argument
2932 waitForNumResults(resultListener, maxLatency, timeout); in waitForSettingsApplied()