Home
last modified time | relevance | path

Searched refs:CameraTestUtils (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/camera/src/android/hardware/camera2/cts/
DPerformanceTest.java35 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
36 import android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener;
190 CameraTestUtils.waitForNumResults(resultListener, NUM_RESULTS_WAIT, in testCameraLaunch()
365 imageSizes[j] = CameraTestUtils.getSortedSizesForFormat( in testSingleCaptureForFormat()
401 CameraTestUtils.CAPTURE_IMAGE_TIMEOUT_MS); in testSingleCaptureForFormat()
415 CameraTestUtils.waitForNumResults(previewResultListener, NUM_RESULTS_WAIT, in testSingleCaptureForFormat()
420 CameraTestUtils.closeImageReaders(readers); in testSingleCaptureForFormat()
441 CameraTestUtils.closeImageReaders(readers); in testSingleCaptureForFormat()
553 Size maxYuvSize = CameraTestUtils.getSortedSizesForFormat( in testMultipleCapture()
563 CameraTestUtils.getSuitableFpsRangeForDuration(id, in testMultipleCapture()
[all …]
DDngCreatorTest.java152 CameraTestUtils.SimpleImageReaderListener captureListener in testSingleImageBasic()
153 = new CameraTestUtils.SimpleImageReaderListener(); in testSingleImageBasic()
212 List<CameraTestUtils.SimpleImageReaderListener> captureListeners = in testSingleImageThumbnail()
213 new ArrayList<CameraTestUtils.SimpleImageReaderListener>(); in testSingleImageThumbnail()
234 CameraTestUtils.SimpleImageReaderListener captureListener in testSingleImageThumbnail()
235 = new CameraTestUtils.SimpleImageReaderListener(); in testSingleImageThumbnail()
240 CameraTestUtils.SimpleImageReaderListener previewListener in testSingleImageThumbnail()
241 = new CameraTestUtils.SimpleImageReaderListener(); in testSingleImageThumbnail()
507 List<CameraTestUtils.SimpleImageReaderListener> captureListeners = new ArrayList<>(); in captureRawJpegImagePair()
524 new CameraTestUtils.SizeComparator()); in captureRawJpegImagePair()
[all …]
DCameraManagerTest.java34 import android.hardware.camera2.cts.CameraTestUtils.HandlerExecutor;
35 import android.hardware.camera2.cts.CameraTestUtils.MockStateCallback;
252 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenCamerasSerially()
323 expectedStates, CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenAllCameras()
389 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenAllCameras()
486 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenCameraTwice()
493 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenCameraTwice()
606 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerListenerCallbacks()
624 CameraTestUtils.CAMERA_CLOSE_TIMEOUT_MS); in testCameraManagerListenerCallbacks()
658 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerListenerCallbacks()
[all …]
DImageReaderTest.java35 import android.hardware.camera2.cts.CameraTestUtils.ImageDropperListener;
55 import static android.hardware.camera2.cts.CameraTestUtils.CAPTURE_RESULT_TIMEOUT_MS;
56 import static android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
57 import static android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener;
58 import static android.hardware.camera2.cts.CameraTestUtils.dumpFile;
59 import static android.hardware.camera2.cts.CameraTestUtils.getValueNotNull;
470 if (CameraTestUtils.contains(supportedFormats, format)) { in testAllOutputYUVResolutions()
480 Size maxJpegSize = CameraTestUtils.getMaxSize(jpegSizes); in testAllOutputYUVResolutions()
519 CameraTestUtils.SESSION_CONFIGURE_TIMEOUT_MS); in testAllOutputYUVResolutions()
580 CameraTestUtils.validateImage(yuvImage, captureSz.getWidth(), in testAllOutputYUVResolutions()
[all …]
DExtendedCameraCharacteristicsTest.java63 import static android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
191 CameraTestUtils.assertArrayNotEmpty(yuvSizes, in testAvailableStreamConfigs()
195 CameraTestUtils.assertArrayNotEmpty(y8Sizes, in testAvailableStreamConfigs()
200 Rect activeRect = CameraTestUtils.getValueNotNull( in testAvailableStreamConfigs()
202 Size pixelArraySize = CameraTestUtils.getValueNotNull( in testAvailableStreamConfigs()
291 List<Size> videoSizes = CameraTestUtils.getSupportedVideoSizes( in testAvailableStreamConfigs()
589 Rect activeRect = CameraTestUtils.getValueNotNull( in verifyRecommendedSnapshotConfiguration()
596 Size maxJpegSize = CameraTestUtils.getMaxSize(snapshotSizes); in verifyRecommendedSnapshotConfiguration()
621 Size maxVideoSize = CameraTestUtils.getMaxSize(privateVideoSizes); in verifyRecommendedVideoSnapshotConfiguration()
708 MAX_NUM_IMAGES, new CameraTestUtils.ImageDropperListener()); in checkFormatLatency()
[all …]
DLogicalCameraDeviceTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
150 CameraTestUtils.configureCameraSessionWithConfig(mCamera, outputs, in testInvalidPhysicalCameraIdInOutputConfiguration()
246 ImageReader yuvTargetPhysical = CameraTestUtils.makeImageReader(yuvSize, in testBasicLogicalPhysicalStreamCombination()
254 ImageReader yuvTargetLogical = CameraTestUtils.makeImageReader(yuvSize, in testBasicLogicalPhysicalStreamCombination()
378 ImageReader yuvTarget = CameraTestUtils.makeImageReader(yuvSize, in testBasicPhysicalRequests()
421 ImageReader physicalTarget = CameraTestUtils.makeImageReader(yuvSize, in testBasicPhysicalRequests()
483 ImageReader yuvTarget = CameraTestUtils.makeImageReader(yuvSize, in testInvalidPhysicalCameraRequests()
589 ImageReader imageReader = CameraTestUtils.makeImageReader(yuvSize, in testLogicalCameraZoomSwitch()
688 + activePhysicalId, Arrays.asList(CameraTestUtils.toObject( in testLogicalCameraZoomSwitch()
986 ImageReader logicalTarget = CameraTestUtils.makeImageReader(previewSize, in testBasicPhysicalStreamingForCamera()
[all …]
DRobustnessTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
92 testSizes = CameraTestUtils.getSortedSizesForFormat(id, mCameraManager, in testBadSurfaceDimensions()
125 CameraCaptureSession session = CameraTestUtils.configureCameraSession(mCamera, in testBadSurfaceDimensions()
237 Size targetSize = CameraTestUtils.getMaxSize(availableSizes); in setupConfigurationTargets()
760 new CameraTestUtils.SimpleCaptureCallback(); in testBasicTriggerSequence()
796 CameraTestUtils.CAPTURE_RESULT_TIMEOUT_MS); in testBasicTriggerSequence()
830 CameraTestUtils.CAPTURE_RESULT_TIMEOUT_MS); in testBasicTriggerSequence()
838 CameraTestUtils.CAPTURE_RESULT_TIMEOUT_MS); in testBasicTriggerSequence()
899 new CameraTestUtils.SimpleCaptureCallback(); in testSimultaneousTriggers()
940 CameraTestUtils.CAPTURE_RESULT_TIMEOUT_MS); in testSimultaneousTriggers()
[all …]
DFastBasicsTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
40 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
41 import android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener;
DHeifWriterTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.SESSION_CONFIGURE_TIMEOUT_MS;
20 import static android.hardware.camera2.cts.CameraTestUtils.CAPTURE_RESULT_TIMEOUT_MS;
21 import static android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
22 import static android.hardware.camera2.cts.CameraTestUtils.getValueNotNull;
DStaticMetadataTest.java115 Size maxJpegSize = CameraTestUtils.getMaxSize(jpegSizes); in testHwSupportedLevel()
350 Arrays.asList(CameraTestUtils.toObject(tonemapModes)); in validateCapability()
361 Arrays.asList(CameraTestUtils.toObject(colorAberrationModes)); in validateCapability()
547 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(ImageFormat.YUV_420_888, in getFpsForMaxSize()
549 Size maxSize = CameraTestUtils.getMaxSize(sizes); in getFpsForMaxSize()
DStillCaptureTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
37 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
38 import android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener;
134 List<Size> orderedHeicSizes = CameraTestUtils.getSupportedHeicSizes( in testHeicExif()
1134 CameraTestUtils.closeImageReader(rawReader); in fullRawCaptureTestByCamera()
1135 CameraTestUtils.closeImageReader(jpegReader); in fullRawCaptureTestByCamera()
1484 CameraTestUtils.validateImage(image, rawSize.getWidth(), rawSize.getHeight(), in validateRaw16Image()
1499 CameraTestUtils.validateImage(image, jpegSize.getWidth(), jpegSize.getHeight(), in validateJpegCapture()
DImageWriterTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
22 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
DBurstCaptureRawTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
28 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
29 import android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener;
DCaptureRequestTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
31 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
327 List<Integer> lensShadingMapModes = Arrays.asList(CameraTestUtils.toObject( in testLensShadingMap()
344 List<Integer> lensShadingModes = Arrays.asList(CameraTestUtils.toObject( in testLensShadingMap()
1343 CameraTestUtils.toObject(mStaticInfo.getAvailableControlModesChecked())); in colorCorrectionTestByCamera()
1345 CameraTestUtils.toObject(mStaticInfo.getAwbAvailableModesChecked())); in colorCorrectionTestByCamera()
2188 CameraTestUtils.toObject(mapRed), /*min*/ZERO, /*max*/ONE);
2192 CameraTestUtils.toObject(mapGreen), /*min*/ZERO, /*max*/ONE);
2196 CameraTestUtils.toObject(mapBlue), /*min*/ZERO, /*max*/ONE);
2352 CameraTestUtils.toObject(mStaticInfo.getAvailableVideoStabilizationModesChecked()) :
DSurfaceViewPreviewTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
35 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
530 CameraTestUtils.checkSessionConfigurationSupported(mCamera, mHandler, outputSurfaces, in testDeferredSurfacesByCamera()
DReprocessCaptureTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
1170 CameraTestUtils.closeImageReader(mFirstImageReader); in closeImageReaders()
1172 CameraTestUtils.closeImageReader(mSecondImageReader); in closeImageReaders()
DBurstCaptureTest.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
DFlashlightTest.java21 import android.hardware.camera2.cts.CameraTestUtils.HandlerExecutor;
DRecordingTest.java14 import static android.hardware.camera2.cts.CameraTestUtils.*;
876 CameraTestUtils.checkSessionConfigurationWithSurfaces(mCamera, mHandler, in startConstrainedPreview()
1910 CameraTestUtils.validateImage(image, size.getWidth(), size.getHeight(),
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java26 import android.hardware.camera2.cts.CameraTestUtils;
595 Arrays.asList(CameraTestUtils.toObject(getAeAvailableAntiBandingModesChecked())); in isAntiBandingOffModeSupported()
622 Integer[] boxedModes = CameraTestUtils.toObject(modes); in getAvailableTestPatternModesChecked()
647 CameraTestUtils.getAscendingOrderSizes(sizeList, /*ascending*/true); in getAvailableThumbnailSizesChecked()
673 checkElementDistinct(key, Arrays.asList(CameraTestUtils.toObject(focalLengths))); in getAvailableFocalLengthsChecked()
694 checkElementDistinct(key, Arrays.asList(CameraTestUtils.toObject(apertures))); in getAvailableAperturesChecked()
712 List<Integer> modeList = Arrays.asList(CameraTestUtils.toObject(modes)); in getAvailableHotPixelModesChecked()
748 List<Integer> modeList = Arrays.asList(CameraTestUtils.toObject(modes)); in getAvailableFaceDetectModesChecked()
772 Arrays.asList(CameraTestUtils.toObject(getAvailableFaceDetectModesChecked())); in getMaxFaceCountChecked()
805 List<Integer> modeList = Arrays.asList(CameraTestUtils.toObject(modes)); in getAvailableToneMapModesChecked()
[all …]
DCameraSessionUtils.java24 import android.hardware.camera2.cts.CameraTestUtils;
80 CameraTestUtils.SESSION_CONFIGURE_TIMEOUT_MS); in getConfiguredSession()
121 CameraTestUtils.CAPTURE_RESULT_TIMEOUT_MS); in getCapturedResult()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
35 import android.hardware.camera2.cts.CameraTestUtils;
36 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback;
360 CameraTestUtils.waitForResultValue(listener, resultKey, expectedValue, in waitForResultValue()
383 CameraTestUtils.waitForAnyResultValue(listener, resultKey, expectedValues, numResultsWait, in waitForAnyResultValue()
468 return CameraTestUtils.waitForNumResults(resultListener, numResultsWait, in waitForNumResults()
505 CameraTestUtils.waitForAeStable(resultListener, NUM_FRAMES_WAITED_FOR_UNKNOWN_LATENCY, in waitForAeStable()
535 CameraTestUtils.waitForAnyResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, in waitForAeLocked()
561 CameraTestUtils.closeImageReader(mReader); in closeImageReader()
570 CameraTestUtils.closeImageReaders(readers); in closeImageReaders()
[all …]
DCamera2AndroidTestCase.java19 import static android.hardware.camera2.cts.CameraTestUtils.*;
34 import android.hardware.camera2.cts.CameraTestUtils;
237 mCamera = CameraTestUtils.openCamera( in openDevice()
261 mCameraSession = CameraTestUtils.configureCameraSession(mCamera, outputSurfaces, in createSession()
273 mCameraSession = CameraTestUtils.configureCameraSessionWithConfig(mCamera, outputConfigs, in createSessionByConfigs()
/cts/tests/camera/api25test/src/android/camera/cts/api25test/
DEnableZslTest.java24 import android.hardware.camera2.cts.CameraTestUtils;
128 CameraDevice camera = CameraTestUtils.openCamera(mCameraManager, cameraId, in testEnableZslValueByCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java92 public class CameraTestUtils extends Assert { class
217 CameraTestUtils.closeImageReader(reader); in closeImageReaders()
2368 Arrays.asList(CameraTestUtils.toObject(focalLengths)); in validateFocalLength()
2389 Arrays.asList(CameraTestUtils.toObject(apertures)); in validateAperture()

12