/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | DngCreatorTest.java | 171 CameraTestUtils.SimpleImageReaderListener captureListener in testSingleImageBasic() 172 = new CameraTestUtils.SimpleImageReaderListener(); in testSingleImageBasic() 249 CameraTestUtils.SimpleImageReaderListener captureReaderListener in testSingleImageBasicMaximumResolution() 250 = new CameraTestUtils.SimpleImageReaderListener(); in testSingleImageBasicMaximumResolution() 251 CameraTestUtils.SimpleImageReaderListener reprocessReaderListener in testSingleImageBasicMaximumResolution() 252 = new CameraTestUtils.SimpleImageReaderListener(); in testSingleImageBasicMaximumResolution() 327 List<CameraTestUtils.SimpleImageReaderListener> captureListeners = in testSingleImageThumbnail() 328 new ArrayList<CameraTestUtils.SimpleImageReaderListener>(); in testSingleImageThumbnail() 349 CameraTestUtils.SimpleImageReaderListener captureListener in testSingleImageThumbnail() 350 = new CameraTestUtils.SimpleImageReaderListener(); in testSingleImageThumbnail() [all …]
|
D | CameraManagerTest.java | 34 import android.hardware.camera2.cts.CameraTestUtils.HandlerExecutor; 35 import android.hardware.camera2.cts.CameraTestUtils.MockStateCallback; 114 CameraTestUtils.getConcurrentCameraIds(mCameraManager, mAdoptShellPerm); in setUp() 367 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenCamerasSerially() 372 camera = CameraTestUtils.verifyCameraStateOpened(ids[i], mockListener); in testCameraManagerOpenCamerasSerially() 441 expectedStates, CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenAllCameras() 486 camera = CameraTestUtils.verifyCameraStateOpened(cameraId, in testCameraManagerOpenAllCameras() 508 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenAllCameras() 565 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenCameraTwice() 572 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testCameraManagerOpenCameraTwice() [all …]
|
D | MultiResolutionImageReaderTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.ImageAndMultiResStreamInfo; 20 import static android.hardware.camera2.cts.CameraTestUtils.SimpleMultiResolutionImageReaderListener; 21 import static android.hardware.camera2.cts.CameraTestUtils.StreamCombinationTargets; 22 import static android.hardware.camera2.cts.CameraTestUtils.checkSessionConfigurationSupported; 40 import android.hardware.camera2.cts.CameraTestUtils.HandlerExecutor; 41 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 106 int[] capabilities = CameraTestUtils.getValueNotNull( in testMultiResolutionCaptureCharacteristics() 108 boolean isLogicalCamera = CameraTestUtils.contains(capabilities, in testMultiResolutionCaptureCharacteristics() 137 CameraTestUtils.contains(outputFormats, format)); in testMultiResolutionCaptureCharacteristics() 162 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(format, in testMultiResolutionCaptureCharacteristics() [all …]
|
D | MultiResolutionReprocessCaptureTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.*; 103 int[] capabilities = CameraTestUtils.getValueNotNull( in testMultiResolutionReprocessCharacteristics() 105 boolean isLogicalCamera = CameraTestUtils.contains(capabilities, in testMultiResolutionReprocessCharacteristics() 132 CameraTestUtils.contains(inputFormats, format)); in testMultiResolutionReprocessCharacteristics() 169 maxSizes.add(CameraTestUtils.getMaxSize(sizes)); in testMultiResolutionReprocessCharacteristics() 175 maxSizes.add(CameraTestUtils.getMaxSize(maxResSizes)); in testMultiResolutionReprocessCharacteristics() 187 if (CameraTestUtils.contains(multiResolutionOutputFormats, ImageFormat.YUV_422_888) && in testMultiResolutionReprocessCharacteristics() 188 CameraTestUtils.contains(multiResolutionInputFormats, in testMultiResolutionReprocessCharacteristics() 192 CameraTestUtils.contains(capabilities, in testMultiResolutionReprocessCharacteristics() 197 CameraTestUtils.contains(multiResolutionOutputFormats, ImageFormat.JPEG)); in testMultiResolutionReprocessCharacteristics() [all …]
|
D | LogicalCameraDeviceTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.ImageDropperListener; 20 import static android.hardware.camera2.cts.CameraTestUtils.PREVIEW_SIZE_BOUND; 21 import static android.hardware.camera2.cts.CameraTestUtils.SESSION_CONFIGURE_TIMEOUT_MS; 22 import static android.hardware.camera2.cts.CameraTestUtils.SessionConfigSupport; 23 import static android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 24 import static android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener; 25 import static android.hardware.camera2.cts.CameraTestUtils.assertFalse; 26 import static android.hardware.camera2.cts.CameraTestUtils.assertNotNull; 27 import static android.hardware.camera2.cts.CameraTestUtils.assertTrue; 28 import static android.hardware.camera2.cts.CameraTestUtils.configureCameraSessionWithConfig; [all …]
|
D | CtsUtilsTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.*; 52 CameraTestUtils.imageCopy(src, dst); in testCopyYuv() 67 CameraTestUtils.imageCopy(src, dst); in testCopyPad0to0() 80 CameraTestUtils.imageCopy(src, dst); in testCopyPad3to3() 93 CameraTestUtils.imageCopy(src, dst); in testCopyPad3to0() 106 CameraTestUtils.imageCopy(src, dst); in testCopyPad0to3() 119 CameraTestUtils.imageCopy(src, dst); in testCopyPad5to3() 132 CameraTestUtils.imageCopy(src, dst); in testCopyPad3to5()
|
D | PerformanceTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.REPORT_LOG_NAME; 38 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 39 import android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener; 237 CameraTestUtils.waitForNumResults(resultListener, NUM_RESULTS_WAIT, in testCameraLaunch() 429 imageSizes[j] = CameraTestUtils.getSortedSizesForFormat( in testSingleCaptureForFormat() 468 CameraTestUtils.CAPTURE_IMAGE_TIMEOUT_MS); in testSingleCaptureForFormat() 482 CameraTestUtils.waitForNumResults(previewResultListener, NUM_RESULTS_WAIT, in testSingleCaptureForFormat() 487 CameraTestUtils.closeImageReaders(readers); in testSingleCaptureForFormat() 509 CameraTestUtils.closeImageReaders(readers); in testSingleCaptureForFormat() 635 Size maxYuvSize = CameraTestUtils.getSortedSizesForFormat( in testMultipleCapture() [all …]
|
D | FeatureCombinationTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes; 20 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.JPEG; 21 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.JPEG_R; 22 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.MAXIMUM_16_9; 23 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.PRIV; 24 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.S1080P; 25 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.S720P; 26 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.YUV; 27 import static android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 28 import static android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener; [all …]
|
D | RobustnessTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.SessionConfigSupport; 20 import static android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 21 import static android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener; 22 import static android.hardware.camera2.cts.CameraTestUtils.StreamCombinationTargets; 23 import static android.hardware.camera2.cts.CameraTestUtils.assertEquals; 24 import static android.hardware.camera2.cts.CameraTestUtils.assertNotNull; 25 import static android.hardware.camera2.cts.CameraTestUtils.assertNull; 26 import static android.hardware.camera2.cts.CameraTestUtils.checkSessionConfigurationSupported; 27 import static android.hardware.camera2.cts.CameraTestUtils.checkSessionConfigurationWithSurfaces; 28 import static android.hardware.camera2.cts.CameraTestUtils.configureReprocessableCameraSession; [all …]
|
D | CameraDeviceSetupTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes; 20 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.JPEG; 21 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.JPEG_R; 22 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.PRIV; 23 import static android.hardware.camera2.cts.CameraTestUtils.MaxStreamSizes.YUV; 24 import static android.hardware.camera2.cts.CameraTestUtils.assertNull; 37 import android.hardware.camera2.cts.CameraTestUtils.MockStateCallback; 185 CameraDevice cameraDevice = CameraTestUtils.verifyCameraStateOpened( in testOpenSuccessful() 223 List<Size> orderedPreviewSizes = CameraTestUtils.getSupportedPreviewSizes(cameraId, in testSessionCharacteristics() 224 mCameraManager, CameraTestUtils.PREVIEW_SIZE_BOUND); in testSessionCharacteristics() [all …]
|
D | ZoomCaptureTest.java | 53 import static android.hardware.camera2.cts.CameraTestUtils.CAPTURE_RESULT_TIMEOUT_MS; 54 import static android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 168 bufferFormatZoomTestByCamera(format, CameraTestUtils.getCandidateZoomRatios(mStaticInfo), in bufferFormatZoomTestByCamera() 186 Size maxSize = CameraTestUtils.getMaxSize(availableSizes); in bufferFormatZoomTestByCamera() 267 Float zoomRatio = CameraTestUtils.getValueNotNull(result, in bufferFormatZoomTestByCamera() 338 CameraTestUtils.validateImage(img, mMaxSize.getWidth(), mMaxSize.getHeight(), in onImageAvailable()
|
D | ExtendedCameraCharacteristicsTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 281 CameraTestUtils.assertArrayNotEmpty(yuvSizes, in testAvailableStreamConfigs() 285 CameraTestUtils.assertArrayNotEmpty(y8Sizes, in testAvailableStreamConfigs() 290 Rect activeRect = CameraTestUtils.getValueNotNull( in testAvailableStreamConfigs() 292 Size pixelArraySize = CameraTestUtils.getValueNotNull( in testAvailableStreamConfigs() 338 boolean isPrimaryRear = CameraTestUtils.isPrimaryRearFacingCamera( in testAvailableStreamConfigs() 340 boolean isPrimaryFront = CameraTestUtils.isPrimaryFrontFacingCamera( in testAvailableStreamConfigs() 394 List<Size> videoSizes = CameraTestUtils.getSupportedVideoSizes( in testAvailableStreamConfigs() 506 boolean isPrimaryRear = CameraTestUtils.isPrimaryRearFacingCamera( in testSPerfClassJpegSizesByCamera() 508 boolean isPrimaryFront = CameraTestUtils.isPrimaryFrontFacingCamera( in testSPerfClassJpegSizesByCamera() [all …]
|
D | ReadoutTimestampTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener; 20 import static android.hardware.camera2.cts.CameraTestUtils.assertNotNull; 21 import static android.hardware.camera2.cts.CameraTestUtils.configureCameraSessionWithConfig; 178 Image image = readerListener.getImage(CameraTestUtils.CAPTURE_IMAGE_TIMEOUT_MS); in testReadoutTimestamp()
|
D | FastBasicsTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.*; 41 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 42 import android.hardware.camera2.cts.CameraTestUtils.SimpleImageReaderListener;
|
D | SurfaceViewExtensionPreviewTest.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.*; 69 Size maxSize = CameraTestUtils.getMaxSize(extensionSizes.toArray(new Size[0])); in testExtensionPreview()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2AndroidTestCase.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.CAMERA_CLOSE_TIMEOUT_MS; 20 import static android.hardware.camera2.cts.CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS; 21 import static android.hardware.camera2.cts.CameraTestUtils.PREVIEW_SIZE_BOUND; 22 import static android.hardware.camera2.cts.CameraTestUtils.assertNotNull; 23 import static android.hardware.camera2.cts.CameraTestUtils.checkSessionConfigurationSupported; 24 import static android.hardware.camera2.cts.CameraTestUtils.fail; 25 import static android.hardware.camera2.cts.CameraTestUtils.getPreviewSizeBound; 26 import static android.hardware.camera2.cts.CameraTestUtils.getSupportedPreviewSizes; 27 import static android.hardware.camera2.cts.CameraTestUtils.getSupportedStillSizes; 28 import static android.hardware.camera2.cts.CameraTestUtils.getSupportedVideoSizes; [all …]
|
D | Camera2MultiViewTestCase.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.CAMERA_CLOSE_TIMEOUT_MS; 20 import static android.hardware.camera2.cts.CameraTestUtils.PREVIEW_SIZE_BOUND; 21 import static android.hardware.camera2.cts.CameraTestUtils.SESSION_CLOSE_TIMEOUT_MS; 22 import static android.hardware.camera2.cts.CameraTestUtils.SESSION_CONFIGURE_TIMEOUT_MS; 23 import static android.hardware.camera2.cts.CameraTestUtils.SESSION_READY_TIMEOUT_MS; 24 import static android.hardware.camera2.cts.CameraTestUtils.assertFalse; 25 import static android.hardware.camera2.cts.CameraTestUtils.assertNotNull; 26 import static android.hardware.camera2.cts.CameraTestUtils.assertNull; 27 import static android.hardware.camera2.cts.CameraTestUtils.assertTrue; 28 import static android.hardware.camera2.cts.CameraTestUtils.checkSessionConfigurationSupported; [all …]
|
D | Camera2SurfaceViewTestCase.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.*; 38 import android.hardware.camera2.cts.CameraTestUtils; 39 import android.hardware.camera2.cts.CameraTestUtils.SimpleCaptureCallback; 349 CameraTestUtils.waitForResultValue(listener, resultKey, expectedValue, in waitForResultValue() 372 CameraTestUtils.waitForAnyResultValue(listener, resultKey, expectedValues, numResultsWait, in waitForAnyResultValue() 465 return CameraTestUtils.waitForNumResults(resultListener, numResultsWait, in waitForNumResults() 502 CameraTestUtils.waitForAeStable(resultListener, NUM_FRAMES_WAITED_FOR_UNKNOWN_LATENCY, in waitForAeStable() 532 CameraTestUtils.waitForAnyResultValue(resultListener, CaptureResult.CONTROL_AE_STATE, in waitForAeLocked() 558 CameraTestUtils.closeImageReader(mReader); in closeImageReader() 567 CameraTestUtils.closeImageReaders(readers); in closeImageReaders() [all …]
|
D | Camera2ConcurrentAndroidTestCase.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.*; 37 import android.hardware.camera2.cts.CameraTestUtils; 138 CameraTestUtils.getConcurrentCameraIds(mCameraManager, mAdoptShellPerm); in setUp() 256 info.mCamera = CameraTestUtils.openCamera( in openDevice() 276 info.mCameraSession = CameraTestUtils.configureCameraSessionWithConfig(info.mCamera, in createSessionByConfigs()
|
D | Camera2AndroidTestRule.java | 19 import static android.hardware.camera2.cts.CameraTestUtils.*; 26 import android.hardware.camera2.cts.CameraTestUtils; 118 CameraTestUtils.verifyExternalCameraConnected(mCameraIdsUnderTest, in getCameraIdsUnderTest() 367 mCamera = CameraTestUtils.openCamera( in openDevice() 391 mCameraSession = CameraTestUtils.configureCameraSession(mCamera, outputSurfaces, in createSession() 403 mCameraSession = CameraTestUtils.configureCameraSessionWithConfig(mCamera, outputConfigs, in createSessionByConfigs()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | Camera2ParameterizedTestCase.java | 23 import android.hardware.camera2.cts.CameraTestUtils; 87 CameraTestUtils.getCameraIdListForTesting(mCameraManager, mAdoptShellPerm); in deriveCameraIdsUnderTest() 104 CameraTestUtils.verifyExternalCameraConnected(mCameraManager.getCameraIdListNoLazy(), in getCameraIdsUnderTest()
|
D | CameraTestUtils.java | 118 public class CameraTestUtils extends Assert { class 467 Size targetSize = CameraTestUtils.getMaxSize(availableSizes); in setupConfigurationTargets() 520 CameraTestUtils.closeImageReader(reader); in closeImageReaders() 1428 return (new CameraTestUtils.BlockingCameraManager(manager)) in openCamera() 1450 return (new CameraTestUtils.BlockingCameraManager(manager)) in openCamera() 4602 CameraTestUtils.CAMERA_IDLE_TIMEOUT_MS); in testPhysicalCameraAvailabilityConsistencyHelper() 4604 CameraDevice camera = CameraTestUtils.verifyCameraStateOpened(cameraId, mockListener); in testPhysicalCameraAvailabilityConsistencyHelper() 4626 CameraTestUtils.verifyAvailabilityCbsReceived(expectedAvailableCameras, in testPhysicalCameraAvailabilityConsistencyHelper() 4628 CameraTestUtils.verifyAvailabilityCbsReceived(expectedUnavailableCameras, in testPhysicalCameraAvailabilityConsistencyHelper() 4646 CameraTestUtils.CAMERA_CLOSE_TIMEOUT_MS); in testPhysicalCameraAvailabilityConsistencyHelper() [all …]
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | StaticMetadata.java | 29 import android.hardware.camera2.cts.CameraTestUtils; 609 Arrays.asList(CameraTestUtils.toObject(getAeAvailableAntiBandingModesChecked())); in isAntiBandingOffModeSupported() 681 Integer[] boxedModes = CameraTestUtils.toObject(modes); in getAvailableTestPatternModesChecked() 706 CameraTestUtils.getAscendingOrderSizes(sizeList, /*ascending*/true); in getAvailableThumbnailSizesChecked() 732 checkElementDistinct(key, Arrays.asList(CameraTestUtils.toObject(focalLengths))); in getAvailableFocalLengthsChecked() 753 checkElementDistinct(key, Arrays.asList(CameraTestUtils.toObject(apertures))); in getAvailableAperturesChecked() 771 List<Integer> modeList = Arrays.asList(CameraTestUtils.toObject(modes)); in getAvailableHotPixelModesChecked() 807 List<Integer> modeList = Arrays.asList(CameraTestUtils.toObject(modes)); in getAvailableFaceDetectModesChecked() 831 Arrays.asList(CameraTestUtils.toObject(getAvailableFaceDetectModesChecked())); in getMaxFaceCountChecked() 896 List<Integer> modeList = Arrays.asList(CameraTestUtils.toObject(modes)); in getAvailableToneMapModesChecked() [all …]
|
D | CameraSessionUtils.java | 24 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/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/ |
D | Camera2HeadlessSystemUserTest.java | 33 import android.hardware.camera2.cts.CameraTestUtils; 34 import android.hardware.camera2.cts.CameraTestUtils.MockStateCallback; 116 camera = CameraTestUtils.verifyCameraStateOpened(mCameraIdsUnderTest[i], in testHeadlessSystemUser_OpenCamera() 173 camera = CameraTestUtils.verifyCameraStateOpened(mCameraIdsUnderTest[i], in testHeadlessSystemUser_SwitchForegroundUser() 197 CameraTestUtils.CAMERA_OPEN_TIMEOUT_MS); in openCameraAsHeadlessSystemUser()
|