Home
last modified time | relevance | path

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

/cts/tests/camera/src/android/hardware/camera2/cts/
DStillCaptureTest.java639 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in focalLengthTestByCamera() local
660 maxStillSz, resultListener, focalLengths.length, imageListener, false /*isHeic*/); in focalLengthTestByCamera()
684 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in focalLengthTestByCamera()
702 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in previewPersistenceTestByCamera() local
708 maxStillSz, resultListener, imageListener, false /*isHeic*/); in previewPersistenceTestByCamera()
720 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in previewPersistenceTestByCamera()
786 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in takePictureTestByCamera() local
794 maxStillSz, resultListener, imageListener, false /*isHeic*/); in takePictureTestByCamera()
948 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in takePictureTestByCamera()
991 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in previewStillCombinationTestByCamera() local
[all …]
DSurfaceViewPreviewTest.java216 ImageDropperListener imageListener = new ImageDropperListener(); in preparePerformanceTestByCamera() local
227 … createImageReader(maxYuvSize, ImageFormat.YUV_420_888, MAX_IMAGES_TO_PREPARE, imageListener); in preparePerformanceTestByCamera()
503 ImageDropperListener imageListener = new ImageDropperListener(); in testDeferredSurfacesByCamera() local
505 imageListener); in testDeferredSurfacesByCamera()
562 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera()
608 imageListener.resetImageCount(); in testDeferredSurfacesByCamera()
613 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera()
633 imageListener.resetImageCount(); in testDeferredSurfacesByCamera()
638 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera()
838 ImageDropperListener imageListener = new ImageDropperListener(); in surfaceSetTestByCamera() local
[all …]
DFastBasicsTest.java91 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in camera2TestByCamera() local
94 previewSize, stillSize, resultListener, imageListener, false /*isHeic*/); in camera2TestByCamera()
124 Image img = imageListener.getImage(WAIT_FOR_PICTURE_TIMEOUT_MS); in camera2TestByCamera()
DPerformanceTest.java161 SimpleImageListener imageListener = null; in testCameraLaunch() local
167 imageListener = new SimpleImageListener(); in testCameraLaunch()
168 mReader.setOnImageAvailableListener(imageListener, mHandler); in testCameraLaunch()
184 blockingStartPreview(resultListener, imageListener); in testCameraLaunch()
550 SimpleImageReaderListener imageListener = in testMultipleCapture() local
572 sessionListener, NUM_MAX_IMAGES, imageListener); in testMultipleCapture()
1124 private void blockingStartPreview(CaptureCallback listener, SimpleImageListener imageListener) in blockingStartPreview() argument
1137 imageListener.waitForImageAvailable(CameraTestUtils.CAPTURE_IMAGE_TIMEOUT_MS); in blockingStartPreview()
1216 int maxNumImages, ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCaptureAndStartPreview() argument
1217 if ((captureSz == null) || (imageListener == null)) { in prepareCaptureAndStartPreview()
[all …]
DCameraDeviceTest.java771 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testCreateCustomSessionByCamera() local
772 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testCreateCustomSessionByCamera()
781 imageListener.getImage(CAPTURE_TIMEOUT_MS).close(); in testCreateCustomSessionByCamera()
998 ImageDropperListener imageListener = new ImageDropperListener(); in testSessionParametersStateLeakByCamera() local
999 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testSessionParametersStateLeakByCamera()
1181 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testCreateSessionWithParametersByCamera() local
1182 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testCreateSessionWithParametersByCamera()
1186 imageListener.getImage(CAPTURE_TIMEOUT_MS).close(); in testCreateSessionWithParametersByCamera()
1247 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testCreateSessionsByCamera() local
1248 reader.setOnImageAvailableListener(imageListener, mHandler); in testCreateSessionsByCamera()
[all …]
DRecordingTest.java1368 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in videoSnapshotTestByCamera() local
1377 prepareVideoSnapshot(videoSnapshotRequestBuilder, imageListener); in videoSnapshotTestByCamera()
1428 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in videoSnapshotTestByCamera()
1434 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in videoSnapshotTestByCamera()
1469 ImageReader.OnImageAvailableListener imageListener) in prepareVideoSnapshot() argument
1471 mReader.setOnImageAvailableListener(imageListener, mHandler); in prepareVideoSnapshot()
DRobustnessTest.java110 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testBadSurfaceDimensions() local
111 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testBadSurfaceDimensions()
146 Image image = imageListener.getImage(CAPTURE_TIMEOUT); in testBadSurfaceDimensions()
DCaptureRequestTest.java883 SimpleImageReaderListener imageListener = null; in dynamicBlackWhiteLevelTestByCamera() local
901 imageListener = new SimpleImageReaderListener(); in dynamicBlackWhiteLevelTestByCamera()
903 resultListener, imageListener); in dynamicBlackWhiteLevelTestByCamera()
922 Image rawImage = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in dynamicBlackWhiteLevelTestByCamera()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java295 ImageReader.OnImageAvailableListener imageListener, boolean isHeic) throws Exception { in prepareStillCaptureAndStartPreview() argument
298 imageListener); in prepareStillCaptureAndStartPreview()
315 ImageReader.OnImageAvailableListener imageListener, boolean isHeic) throws Exception { in prepareStillCaptureAndStartPreview() argument
317 … isHeic ? ImageFormat.HEIC : ImageFormat.JPEG, resultListener, maxNumImages, imageListener); in prepareStillCaptureAndStartPreview()
337 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareRawCaptureAndStartPreview() argument
339 ImageFormat.RAW_SENSOR, resultListener, MAX_READER_IMAGES, imageListener); in prepareRawCaptureAndStartPreview()
764 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCaptureAndStartPreview() argument
766 format, resultListener, null, maxNumImages, imageListener); in prepareCaptureAndStartPreview()
785 int maxNumImages, ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCaptureAndStartPreview() argument
795 createImageReader(captureSz, format, maxNumImages, imageListener); in prepareCaptureAndStartPreview()