Home
last modified time | relevance | path

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

/cts/tests/camera/src/android/hardware/camera2/cts/
DStillCaptureTest.java243 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in stillJpegRTestByCamera() local
246 createImageReader(stillSize, format, MAX_READER_IMAGES, imageListener); in stillJpegRTestByCamera()
269 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in stillJpegRTestByCamera()
739 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in focalLengthTestByCamera() local
760 maxStillSz, resultListener, focalLengths.length, imageListener, false /*isHeic*/); in focalLengthTestByCamera()
801 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in focalLengthTestByCamera()
819 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in previewPersistenceTestByCamera() local
825 maxStillSz, resultListener, imageListener, false /*isHeic*/); in previewPersistenceTestByCamera()
837 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in previewPersistenceTestByCamera()
903 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in takePictureTestByCamera() local
[all …]
DSurfaceViewPreviewTest.java220 ImageDropperListener imageListener = new ImageDropperListener(); in preparePerformanceTestByCamera() local
231 … createImageReader(maxYuvSize, ImageFormat.YUV_420_888, MAX_IMAGES_TO_PREPARE, imageListener); in preparePerformanceTestByCamera()
477 ImageDropperListener imageListener = new ImageDropperListener(); in testDeferredSurfacesByCamera() local
479 imageListener); in testDeferredSurfacesByCamera()
522 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera()
568 imageListener.resetImageCount(); in testDeferredSurfacesByCamera()
573 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera()
593 imageListener.resetImageCount(); in testDeferredSurfacesByCamera()
598 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera()
798 ImageDropperListener imageListener = new ImageDropperListener(); in surfaceSetTestByCamera() local
[all …]
DFastBasicsTest.java97 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in camera2TestByCamera() local
100 previewSize, stillSize, resultListener, imageListener, false /*isHeic*/); in camera2TestByCamera()
130 Image img = imageListener.getImage(WAIT_FOR_PICTURE_TIMEOUT_MS); in camera2TestByCamera()
DOfflineSessionTest.java133 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testInvalidOutput() local
149 createImageReader(stillSize, ImageFormat.JPEG, MAX_READER_IMAGES, imageListener); in testInvalidOutput()
507 SimpleImageReaderListener imageListener, int sequenceId, boolean offlineResults) in verifyCaptureResults() argument
519 if (imageListener != null) { in verifyCaptureResults()
521 Image offlineImage = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in verifyCaptureResults()
583 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in camera2OfflineSessionTest() local
593 createImageReader(offlineSize, offlineFormat, MAX_READER_IMAGES, imageListener); in camera2OfflineSessionTest()
751 verifyCaptureResults(offlineResultListener, imageListener, offlineSeqId, in camera2OfflineSessionTest()
DPerformanceTest.java206 SimpleImageListener imageListener = null; in testCameraLaunch() local
212 imageListener = new SimpleImageListener(); in testCameraLaunch()
214 imageListener, mTestRule.getHandler()); in testCameraLaunch()
231 blockingStartPreview(id, resultListener, previewRequest, imageListener); in testCameraLaunch()
632 SimpleImageReaderListener imageListener = in testMultipleCapture() local
656 sessionListener, NUM_MAX_IMAGES, imageListener, in testMultipleCapture()
1318 SimpleTimestampListener imageListener =
1321 imageListener, mTestRule.getHandler());
1359 long intervalCount = imageListener.getTimestampCount() - 1;
1366 imageListener.getNextTimestampHolder();
[all …]
DCameraExtensionSessionTest.java586 SimpleImageReaderListener imageListener = new SimpleImageReaderListener( in testPostviewAndCapture() local
589 captureFormat, /*maxImages*/ 1, imageListener, in testPostviewAndCapture()
684 imageListener.getImage( in testPostviewAndCapture()
820 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(false, in test10bitRepeatingAndCaptureCombined() local
823 captureFormat, /*maxImages*/ 1, imageListener, in test10bitRepeatingAndCaptureCombined()
961 imageListener.getImage(MULTI_FRAME_CAPTURE_IMAGE_TIMEOUT_MS); in test10bitRepeatingAndCaptureCombined()
1082 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(false, in testMultiFrameCapture() local
1085 captureFormat, /*maxImages*/ 1, imageListener, in testMultiFrameCapture()
1142 imageListener.getImage(MULTI_FRAME_CAPTURE_IMAGE_TIMEOUT_MS); in testMultiFrameCapture()
1415 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(false in testRepeatingAndCaptureCombined() local
[all …]
DCameraGPURecordingTest.java137 CameraTestUtils.SimpleImageReaderListener imageListener = in captureGpuEncoderPath() local
141 createDefaultImageReader(snapshotSize, ImageFormat.JPEG, 1, imageListener); in captureGpuEncoderPath()
198 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in captureGpuEncoderPath()
DCameraDeviceTest.java802 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testCreateCustomSessionByCamera() local
803 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testCreateCustomSessionByCamera()
812 imageListener.getImage(CAPTURE_TIMEOUT_MS).close(); in testCreateCustomSessionByCamera()
1033 ImageDropperListener imageListener = new ImageDropperListener(); in testSessionParametersStateLeakByCamera() local
1034 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testSessionParametersStateLeakByCamera()
1210 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testCreateSessionWithParametersByCamera() local
1211 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testCreateSessionWithParametersByCamera()
1215 imageListener.getImage(CAPTURE_TIMEOUT_MS).close(); in testCreateSessionWithParametersByCamera()
1279 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testCreateSessionsByCamera() local
1280 reader.setOnImageAvailableListener(imageListener, mHandler); in testCreateSessionsByCamera()
[all …]
DFeatureCombinationTest.java573 SimpleImageReaderListener imageListener = in setupConfigurationTargets() local
575 jpegListeners.add(imageListener); in setupConfigurationTargets()
576 target.setOnImageAvailableListener(imageListener, mHandler); in setupConfigurationTargets()
DRecordingTest.java2003 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in videoSnapshotTestByCamera() local
2012 prepareVideoSnapshot(videoSnapshotRequestBuilder, imageListener); in videoSnapshotTestByCamera()
2064 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in videoSnapshotTestByCamera()
2070 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in videoSnapshotTestByCamera()
2105 ImageReader.OnImageAvailableListener imageListener) in prepareVideoSnapshot() argument
2107 mReader.setOnImageAvailableListener(imageListener, mHandler); in prepareVideoSnapshot()
DRobustnessTest.java157 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testBadSurfaceDimensions() local
158 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testBadSurfaceDimensions()
193 Image image = imageListener.getImage(CAPTURE_TIMEOUT); in testBadSurfaceDimensions()
2150 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in verifyBasicSensorPixelModes() local
2160 readerTarget.setOnImageAvailableListener(imageListener, mHandler); in verifyBasicSensorPixelModes()
DCaptureRequestTest.java1069 SimpleImageReaderListener imageListener = null; in dynamicBlackWhiteLevelTestByCamera() local
1087 imageListener = new SimpleImageReaderListener(); in dynamicBlackWhiteLevelTestByCamera()
1089 resultListener, imageListener); in dynamicBlackWhiteLevelTestByCamera()
1108 Image rawImage = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in dynamicBlackWhiteLevelTestByCamera()
DExtendedCameraCharacteristicsTest.java545 CameraTestUtils.SimpleImageReaderListener imageListener = in testSPerfClassJpegSizesByCamera() local
548 ImageFormat.JPEG, 1 /*maxNumImages*/, imageListener, mHandler); in testSPerfClassJpegSizesByCamera()
593 image = imageListener.getImage(CAPTURE_TIMEOUT); in testSPerfClassJpegSizesByCamera()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java284 ImageReader.OnImageAvailableListener imageListener, boolean isHeic) throws Exception { in prepareStillCaptureAndStartPreview() argument
287 imageListener); in prepareStillCaptureAndStartPreview()
304 ImageReader.OnImageAvailableListener imageListener, boolean isHeic) throws Exception { in prepareStillCaptureAndStartPreview() argument
306 … isHeic ? ImageFormat.HEIC : ImageFormat.JPEG, resultListener, maxNumImages, imageListener); in prepareStillCaptureAndStartPreview()
326 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareRawCaptureAndStartPreview() argument
328 ImageFormat.RAW_SENSOR, resultListener, MAX_READER_IMAGES, imageListener); in prepareRawCaptureAndStartPreview()
753 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCaptureAndStartPreview() argument
755 format, resultListener, null, maxNumImages, imageListener); in prepareCaptureAndStartPreview()
774 int maxNumImages, ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCaptureAndStartPreview() argument
784 createImageReader(captureSz, format, maxNumImages, imageListener); in prepareCaptureAndStartPreview()