/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | SurfaceViewPreviewTest.java | 176 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in preparePerformanceTestByCamera() local 200 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local 203 waitForAeStable(resultListener, UNKNOWN_LATENCY_RESULT_WAIT); in preparePerformanceTestByCamera() 208 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local 211 waitForResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, in preparePerformanceTestByCamera() 218 measureMeanFrameInterval(resultListener, FRAMES_FOR_AVERAGING, /*prevTimestamp*/ 0); in preparePerformanceTestByCamera() 224 resultListener.drain(); in preparePerformanceTestByCamera() 234 int resultsReceived = (int) resultListener.getTotalNumFrames(); in preparePerformanceTestByCamera() 238 measureMeanFrameInterval(resultListener, resultsReceived, /*prevTimestamp*/ 0); in preparePerformanceTestByCamera() 264 resultListener.drain(); in preparePerformanceTestByCamera() [all …]
|
D | StillCaptureTest.java | 390 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in previewPersistenceTestByCamera() local 398 maxStillSz, resultListener, imageListener); in previewPersistenceTestByCamera() 401 waitForNumResults(resultListener, NUM_FRAMES_WAITED); in previewPersistenceTestByCamera() 414 waitForNumResults(resultListener, NUM_FRAMES_WAITED); in previewPersistenceTestByCamera() 469 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in takePictureTestByCamera() local 476 maxStillSz, resultListener, imageListener); in takePictureTestByCamera() 522 resultListener = new SimpleCaptureCallback(); in takePictureTestByCamera() 529 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() local 531 waitForResultValue(resultListener, CaptureResult.CONTROL_AWB_STATE, in takePictureTestByCamera() 535 waitForSettingsApplied(resultListener, NUM_FRAMES_WAITED_FOR_UNKNOWN_LATENCY); in takePictureTestByCamera() [all …]
|
D | BurstCaptureTest.java | 153 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in yuvBurstTestByCamera() local 159 ImageFormat.YUV_420_888, resultListener, in yuvBurstTestByCamera() 173 CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in yuvBurstTestByCamera() 197 mSession.capture(previewBuilder.build(), resultListener, mHandler); in yuvBurstTestByCamera() 203 … CaptureResult result = resultListener.getCaptureResult(MAX_PREVIEW_RESULT_TIMEOUT_MS); in yuvBurstTestByCamera() 227 mSession.setRepeatingRequest(lockedRequest, resultListener, mHandler); in yuvBurstTestByCamera() 230 resultListener.drain(); in yuvBurstTestByCamera() 232 resultListener.getCaptureResultForRequest(lockedRequest, maxPipelineDepth); in yuvBurstTestByCamera() 241 mSession.captureBurst(burst, resultListener, mHandler); in yuvBurstTestByCamera() 259 mSession.captureBurst(burst, resultListener, mHandler); in yuvBurstTestByCamera() [all …]
|
D | RecordingTest.java | 381 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in slowMotionRecording() local 383 fpsRange, resultListener, /*useHighSpeedSession*/false); in slowMotionRecording() 391 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f / in slowMotionRecording() 446 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in constrainedHighSpeedRecording() local 448 captureRate, fpsRange, resultListener, in constrainedHighSpeedRecording() 457 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f / in constrainedHighSpeedRecording() 637 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in basicRecordingTestByCamera() local 638 startRecording(/* useMediaRecorder */true, resultListener); in basicRecordingTestByCamera() 646 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f / in basicRecordingTestByCamera() 651 ", num of frames produced: " + resultListener.getTotalNumFrames()); in basicRecordingTestByCamera() [all …]
|
D | CaptureRequestTest.java | 637 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in noiseReductionModeTestByCamera() local 638 startPreview(requestBuilder, maxPrevSize, resultListener); in noiseReductionModeTestByCamera() 642 resultListener = new SimpleCaptureCallback(); in noiseReductionModeTestByCamera() 643 mSession.setRepeatingRequest(requestBuilder.build(), resultListener, mHandler); in noiseReductionModeTestByCamera() local 644 waitForSettingsApplied(resultListener, NUM_FRAMES_WAITED_FOR_UNKNOWN_LATENCY); in noiseReductionModeTestByCamera() 647 resultListener, NUM_FRAMES_VERIFIED); in noiseReductionModeTestByCamera() 665 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in focusDistanceTestByCamera() local 666 startPreview(requestBuilder, maxPrevSize, resultListener); in focusDistanceTestByCamera() 673 resultListener = new SimpleCaptureCallback(); in focusDistanceTestByCamera() 674 mSession.setRepeatingRequest(request, resultListener, mHandler); in focusDistanceTestByCamera() [all …]
|
D | ImageReaderTest.java | 351 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in testAllOutputYUVResolutions() local 355 resultListener, mHandler); in testAllOutputYUVResolutions() local 358 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in testAllOutputYUVResolutions() 370 startCapture(mainRequest.build(), /*repeating*/false, resultListener, in testAllOutputYUVResolutions() local 374 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in testAllOutputYUVResolutions() 620 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in bufferFormatWithYuvTestByCamera() local 623 startCapture(request.build(), /*repeating*/false, resultListener, mHandler); in bufferFormatWithYuvTestByCamera() local 628 resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in bufferFormatWithYuvTestByCamera()
|
D | DngCreatorTest.java | 605 CameraTestUtils.SimpleCaptureCallback resultListener = in captureRawShots() local 610 startCapture(request1, /*repeating*/false, resultListener, mHandler); in captureRawShots() 615 CaptureResult result = resultListener.getCaptureResult(CAPTURE_WAIT_TIMEOUT_MS); in captureRawShots()
|
D | PerformanceTest.java | 159 SimpleCaptureCallback resultListener = in testCameraLaunch() local 161 blockingStartPreview(resultListener, imageListener); in testCameraLaunch() 167 waitForNumResults(resultListener, NUM_RESULTS_WAIT); in testCameraLaunch()
|
D | CameraDeviceTest.java | 812 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in prepareTestByCamera() local 813 mSession.capture(r.build(), resultListener, mHandler); in prepareTestByCamera() local 815 resultListener.getCaptureResult(CAPTURE_RESULT_TIMEOUT_MS); in prepareTestByCamera()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/testcases/ |
D | Camera2SurfaceViewTestCase.java | 241 CaptureCallback resultListener, in prepareStillCaptureAndStartPreview() argument 244 ImageFormat.JPEG, resultListener, MAX_READER_IMAGES, imageListener); in prepareStillCaptureAndStartPreview() 260 CaptureCallback resultListener, int maxNumImages, in prepareStillCaptureAndStartPreview() argument 263 ImageFormat.JPEG, resultListener, maxNumImages, imageListener); in prepareStillCaptureAndStartPreview() 282 CaptureCallback resultListener, in prepareRawCaptureAndStartPreview() argument 285 ImageFormat.RAW_SENSOR, resultListener, MAX_READER_IMAGES, imageListener); in prepareRawCaptureAndStartPreview() 436 protected static CaptureResult waitForNumResults(SimpleCaptureCallback resultListener, in waitForNumResults() argument 438 if (numResultsWait < 0 || resultListener == null) { in waitForNumResults() 445 result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in waitForNumResults() 458 protected void waitForSettingsApplied(SimpleCaptureCallback resultListener, in waitForSettingsApplied() argument [all …]
|