Home
last modified time | relevance | path

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

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2StillCaptureTest.java207 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in takePictureTestByCamera() local
214 maxStillSz, resultListener, imageListener); in takePictureTestByCamera()
260 resultListener = new SimpleCaptureCallback(); in takePictureTestByCamera()
267 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() local
269 waitForResultValue(resultListener, CaptureResult.CONTROL_AWB_STATE, in takePictureTestByCamera()
273 waitForSettingsApplied(resultListener, NUM_FRAMES_WAITED_FOR_UNKNOWN_LATENCY); in takePictureTestByCamera()
279 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() local
281 result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in takePictureTestByCamera()
295 resultListener = new SimpleCaptureCallback(); in takePictureTestByCamera()
302 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() local
[all …]
DCamera2RecordingTest.java243 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in constrainedHighSpeedRecording() local
245 captureRate, fpsRange, resultListener, in constrainedHighSpeedRecording()
254 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f / in constrainedHighSpeedRecording()
425 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in basicRecordingTestByCamera() local
426 startRecording(/* useMediaRecorder */true, resultListener, useVideoStab); in basicRecordingTestByCamera()
434 int durationMs = (int) (resultListener.getTotalNumFrames() * 1000.0f / in basicRecordingTestByCamera()
439 ", num of frames produced: " + resultListener.getTotalNumFrames()); in basicRecordingTestByCamera()
651 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in videoSnapshotTestByCamera() local
669 startRecording(/* useMediaRecorder */true, resultListener, /*useVideoStab*/false); in videoSnapshotTestByCamera()
682 mSession.captureBurst(requests, resultListener, mHandler); in videoSnapshotTestByCamera()
[all …]
DCamera2SwitchPreviewTest.java297 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in stillCapturePreviewPreparer() local
304 prepareCapturePreview(previewRequest, stillRequest, resultListener, imageListener); in stillCapturePreviewPreparer()
390 SimpleCaptureCallback resultListener = new SimpleCaptureCallback(); in basicRecordingPreviewTestByCamera() local
393 prepareVideoPreview(previewRequest, recordingRequest, resultListener, imageListener); in basicRecordingPreviewTestByCamera()
524 CaptureCallback resultListener, in prepareVideoPreview() argument
545 CaptureCallback resultListener, in prepareCapturePreview() argument
575 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in prepareCapturePreview() local
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java284 CaptureCallback resultListener, in prepareStillCaptureAndStartPreview() argument
287 ImageFormat.JPEG, resultListener, MAX_READER_IMAGES, imageListener); in prepareStillCaptureAndStartPreview()
303 CaptureCallback resultListener, int maxNumImages, in prepareStillCaptureAndStartPreview() argument
306 ImageFormat.JPEG, resultListener, maxNumImages, imageListener); in prepareStillCaptureAndStartPreview()
325 CaptureCallback resultListener, in prepareRawCaptureAndStartPreview() argument
328 ImageFormat.RAW_SENSOR, resultListener, MAX_READER_IMAGES, imageListener); in prepareRawCaptureAndStartPreview()
479 protected static CaptureResult waitForNumResults(SimpleCaptureCallback resultListener, in waitForNumResults() argument
481 if (numResultsWait < 0 || resultListener == null) { in waitForNumResults()
488 result = resultListener.getCaptureResult(WAIT_FOR_RESULT_TIMEOUT_MS); in waitForNumResults()
501 protected void waitForSettingsApplied(SimpleCaptureCallback resultListener, in waitForSettingsApplied() argument
[all …]