/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | StillCaptureTest.java | 606 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in focalLengthTestByCamera() local 627 maxStillSz, resultListener, focalLengths.length, imageListener, false /*isHeic*/); in focalLengthTestByCamera() 651 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in focalLengthTestByCamera() 669 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in previewPersistenceTestByCamera() local 675 maxStillSz, resultListener, imageListener, false /*isHeic*/); in previewPersistenceTestByCamera() 687 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in previewPersistenceTestByCamera() 753 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in takePictureTestByCamera() local 761 maxStillSz, resultListener, imageListener, false /*isHeic*/); in takePictureTestByCamera() 915 Image image = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in takePictureTestByCamera() 958 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in previewStillCombinationTestByCamera() local [all …]
|
D | SurfaceViewPreviewTest.java | 215 ImageDropperListener imageListener = new ImageDropperListener(); in preparePerformanceTestByCamera() local 226 … createImageReader(maxYuvSize, ImageFormat.YUV_420_888, MAX_IMAGES_TO_PREPARE, imageListener); in preparePerformanceTestByCamera() 497 ImageDropperListener imageListener = new ImageDropperListener(); in testDeferredSurfacesByCamera() local 499 imageListener); in testDeferredSurfacesByCamera() 556 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera() 602 imageListener.resetImageCount(); in testDeferredSurfacesByCamera() 607 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera() 627 imageListener.resetImageCount(); in testDeferredSurfacesByCamera() 632 assertTrue("No images received", imageListener.getImageCount() > 0); in testDeferredSurfacesByCamera() 832 ImageDropperListener imageListener = new ImageDropperListener(); in surfaceSetTestByCamera() local [all …]
|
D | FastBasicsTest.java | 91 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()
|
D | PerformanceTest.java | 161 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 …]
|
D | CameraDeviceTest.java | 771 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 …]
|
D | RecordingTest.java | 1368 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()
|
D | RobustnessTest.java | 110 SimpleImageReaderListener imageListener = new SimpleImageReaderListener(); in testBadSurfaceDimensions() local 111 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testBadSurfaceDimensions() 146 Image image = imageListener.getImage(CAPTURE_TIMEOUT); in testBadSurfaceDimensions()
|
D | CaptureRequestTest.java | 875 SimpleImageReaderListener imageListener = null; in dynamicBlackWhiteLevelTestByCamera() local 893 imageListener = new SimpleImageReaderListener(); in dynamicBlackWhiteLevelTestByCamera() 895 resultListener, imageListener); in dynamicBlackWhiteLevelTestByCamera() 914 Image rawImage = imageListener.getImage(CAPTURE_IMAGE_TIMEOUT_MS); in dynamicBlackWhiteLevelTestByCamera()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2SurfaceViewTestCase.java | 295 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() 756 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCaptureAndStartPreview() argument 758 format, resultListener, null, maxNumImages, imageListener); in prepareCaptureAndStartPreview() 777 int maxNumImages, ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCaptureAndStartPreview() argument 787 createImageReader(captureSz, format, maxNumImages, imageListener); in prepareCaptureAndStartPreview()
|