/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | SurfaceViewPreviewTest.java | 210 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in preparePerformanceTestByCamera() local 234 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local 237 waitForAeStable(resultListener, UNKNOWN_LATENCY_RESULT_WAIT); in preparePerformanceTestByCamera() 242 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local 245 waitForResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, in preparePerformanceTestByCamera() 252 measureMeanFrameInterval(resultListener, FRAMES_FOR_AVERAGING, /*prevTimestamp*/ 0); in preparePerformanceTestByCamera() 258 resultListener.drain(); in preparePerformanceTestByCamera() 268 int resultsReceived = (int) resultListener.getTotalNumFrames(); in preparePerformanceTestByCamera() 272 measureMeanFrameInterval(resultListener, resultsReceived, /*prevTimestamp*/ 0); in preparePerformanceTestByCamera() 298 resultListener.drain(); in preparePerformanceTestByCamera() [all …]
|
D | StillCaptureTest.java | 538 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in focalLengthTestByCamera() local 560 maxStillSz, resultListener, focalLengths.length, imageListener); in focalLengthTestByCamera() 565 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in focalLengthTestByCamera() local 566 waitForSettingsApplied(resultListener, NUM_FRAMES_WAITED_FOR_UNKNOWN_LATENCY); in focalLengthTestByCamera() 567 waitForResultValue(resultListener, CaptureResult.LENS_STATE, in focalLengthTestByCamera() 569 result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in focalLengthTestByCamera() 576 resultListener = new SimpleCaptureCallback(); in focalLengthTestByCamera() 577 mSession.capture(request, resultListener, mHandler); in focalLengthTestByCamera() 578 result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in focalLengthTestByCamera() 600 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in previewPersistenceTestByCamera() local [all …]
|
D | BurstCaptureTest.java | 129 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in yuvBurstTestByCamera() local 135 ImageFormat.YUV_420_888, resultListener, in yuvBurstTestByCamera() 149 CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in yuvBurstTestByCamera() 173 mSession.capture(previewBuilder.build(), resultListener, mHandler); in yuvBurstTestByCamera() 179 … CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in yuvBurstTestByCamera() 203 mSession.setRepeatingRequest(lockedRequest, resultListener, mHandler); in yuvBurstTestByCamera() 206 resultListener.drain(); in yuvBurstTestByCamera() 208 resultListener.getCaptureResultForRequest(lockedRequest, maxPipelineDepth); in yuvBurstTestByCamera() 217 mSession.captureBurst(burst, resultListener, mHandler); in yuvBurstTestByCamera() 235 mSession.captureBurst(burst, resultListener, mHandler); in yuvBurstTestByCamera() [all …]
|
D | FastBasicsTest.java | 87 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in camera2TestByCamera() local 91 previewSize, stillSize, resultListener, imageListener); in camera2TestByCamera() 93 CaptureResult result = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in camera2TestByCamera() 98 CaptureResult result2 = resultListener.getCaptureResult(WAIT_FOR_FRAMES_TIMEOUT_MS); in camera2TestByCamera() 111 mSession.capture(capture, resultListener, mHandler); in camera2TestByCamera() 114 resultListener.getTotalCaptureResultForRequest(capture, FRAMES_TO_WAIT_FOR_CAPTURE); in camera2TestByCamera()
|
D | RecordingTest.java | 556 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in videoPreviewSurfaceSharingTestByCamera() local 557 if (!startSharedRecording(/* useMediaRecorder */true, resultListener, in videoPreviewSurfaceSharingTestByCamera() 570 float durationMinMs = resultListener.getTotalNumFrames() * frameDurationMinMs; in videoPreviewSurfaceSharingTestByCamera() 575 durationMaxMs = resultListener.getTotalNumFrames() * frameDurationMaxMs; in videoPreviewSurfaceSharingTestByCamera() 650 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in slowMotionRecording() local 652 fpsRange, resultListener, /*useHighSpeedSession*/false, in slowMotionRecording() 662 float durationMs = resultListener.getTotalNumFrames() * frameDurationMs; in slowMotionRecording() 724 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in constrainedHighSpeedRecording() local 727 captureRate, fpsRange, resultListener, in constrainedHighSpeedRecording() 741 float durationMs = resultListener.getTotalNumFrames() * frameDurationMs; in constrainedHighSpeedRecording() [all …]
|
D | CaptureRequestTest.java | 807 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in dynamicBlackWhiteLevelTestByCamera() local 828 resultListener, imageListener); in dynamicBlackWhiteLevelTestByCamera() 830 startPreview(previewBuilder, previewSize, resultListener); in dynamicBlackWhiteLevelTestByCamera() 844 mSession.capture(rawRequest, resultListener, mHandler); in dynamicBlackWhiteLevelTestByCamera() 845 result = resultListener.getCaptureResultForRequest(rawRequest, in dynamicBlackWhiteLevelTestByCamera() 894 mSession.capture(previewRequest, resultListener, mHandler); in dynamicBlackWhiteLevelTestByCamera() 895 result = resultListener.getCaptureResultForRequest(previewRequest, in dynamicBlackWhiteLevelTestByCamera() 982 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in noiseReductionModeTestByCamera() local 983 startPreview(requestBuilder, maxPrevSize, resultListener); in noiseReductionModeTestByCamera() 984 mSession.setRepeatingRequest(requestBuilder.build(), resultListener, mHandler); in noiseReductionModeTestByCamera() local [all …]
|
D | MultiViewTest.java | 417 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testSharedSurfaceImageReaderSwitch() local 460 capture(cameraId, imageReaderRequestBuilder.build(), resultListener); in testSharedSurfaceImageReaderSwitch() 530 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testSharedSurfaceYUVImageReaderSwitch() local 563 capture(cameraId, imageReaderRequestBuilder.build(), resultListener); in testSharedSurfaceYUVImageReaderSwitch() 630 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testSharedSurfaceLimitByCamera() local 667 sequenceId = updateRepeatingRequest(cameraId, outputConfigurations, resultListener); in testSharedSurfaceLimitByCamera() 687 updateRepeatingRequest(cameraId, outputConfigurations, resultListener); in testSharedSurfaceLimitByCamera() 688 long lastSequenceFrameNumber = resultListener.getCaptureSequenceLastFrameNumber( in testSharedSurfaceLimitByCamera() 690 checkForLastFrameInSequence(lastSequenceFrameNumber, resultListener); in testSharedSurfaceLimitByCamera() 742 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testSharedSurfaceSwitchByCamera() local [all …]
|
D | ImageReaderTest.java | 424 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testAllOutputYUVResolutions() local 428 resultListener, mHandler); in testAllOutputYUVResolutions() local 431 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in testAllOutputYUVResolutions() 443 startCapture(mainRequest.build(), /*repeating*/false, resultListener, in testAllOutputYUVResolutions() local 447 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in testAllOutputYUVResolutions() 715 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in bufferFormatWithYuvTestByCamera() local 718 startCapture(request.build(), /*repeating*/false, resultListener, mHandler); in bufferFormatWithYuvTestByCamera() local 723 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in bufferFormatWithYuvTestByCamera()
|
D | DngCreatorTest.java | 766 CameraTestUtils.SimpleCaptureCallback resultListener = in captureRawShots() local 771 startCapture(request1, /*repeating*/false, resultListener, mHandler); in captureRawShots() 776 CaptureResult result = resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in captureRawShots()
|
D | PerformanceTest.java | 166 SimpleCaptureCallback resultListener = in testCameraLaunch() local 168 blockingStartPreview(resultListener, imageListener); in testCameraLaunch() 174 waitForNumResults(resultListener, NUM_RESULTS_WAIT); in testCameraLaunch()
|
D | CameraDeviceTest.java | 1356 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in prepareTestByCamera() local 1357 mSession.capture(r.build(), resultListener, mHandler); in prepareTestByCamera() local 1359 resultListener.getCaptureResult(CAPTURE_RESULT_TIMEOUT_MS); in prepareTestByCamera()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2SurfaceViewTestCase.java | 271 CaptureCallback resultListener, in prepareStillCaptureAndStartPreview() argument 274 ImageFormat.JPEG, resultListener, MAX_READER_IMAGES, imageListener); in prepareStillCaptureAndStartPreview() 290 CaptureCallback resultListener, int maxNumImages, in prepareStillCaptureAndStartPreview() argument 293 ImageFormat.JPEG, resultListener, maxNumImages, imageListener); in prepareStillCaptureAndStartPreview() 312 CaptureCallback resultListener, in prepareRawCaptureAndStartPreview() argument 315 ImageFormat.RAW_SENSOR, resultListener, MAX_READER_IMAGES, imageListener); in prepareRawCaptureAndStartPreview() 466 protected static CaptureResult waitForNumResults(SimpleCaptureCallback resultListener, in waitForNumResults() argument 468 if (numResultsWait < 0 || resultListener == null) { in waitForNumResults() 475 result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in waitForNumResults() 488 protected void waitForSettingsApplied(SimpleCaptureCallback resultListener, in waitForSettingsApplied() argument [all …]
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 2338 CaptureResultListener resultListener; in nativeImageReaderTestBase() local 2340 &resultListener, in nativeImageReaderTestBase() 2349 resultListener.setRequestSave(true); in nativeImageReaderTestBase() 2376 resultListener.getCaptureSequenceLastFrameNumber(lastSeqId, /*timeoutSec*/ 3); in nativeImageReaderTestBase() 2379 resultListener.getCompletedRequests(&completedRequests); in nativeImageReaderTestBase()
|