/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraDeviceTest.java | 180 for (int i = 0; i < mCameraIds.length; i++) { in testCameraDevicePreviewTemplate() 181 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_PREVIEW); in testCameraDevicePreviewTemplate() 206 for (int i = 0; i < mCameraIds.length; i++) { in testCameraDeviceStillTemplate() 207 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_STILL_CAPTURE); in testCameraDeviceStillTemplate() 226 for (int i = 0; i < mCameraIds.length; i++) { in testCameraDeviceRecordingTemplate() 227 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_RECORD); in testCameraDeviceRecordingTemplate() 242 for (int i = 0; i < mCameraIds.length; i++) { in testCameraDeviceVideoSnapShotTemplate() 243 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_VIDEO_SNAPSHOT); in testCameraDeviceVideoSnapShotTemplate() 257 for (int i = 0; i < mCameraIds.length; i++) { in testCameraDeviceZSLTemplate() 258 captureTemplateTestByCamera(mCameraIds[i], CameraDevice.TEMPLATE_ZERO_SHUTTER_LAG); in testCameraDeviceZSLTemplate() [all …]
|
D | StillCaptureTest.java | 94 for (int i = 0; i < mCameraIds.length; i++) { in testJpegExif() 96 Log.i(TAG, "Testing JPEG exif for Camera " + mCameraIds[i]); in testJpegExif() 97 if (!mAllStaticInfo.get(mCameraIds[i]).isColorOutputSupported()) { in testJpegExif() 98 Log.i(TAG, "Camera " + mCameraIds[i] + in testJpegExif() 102 openDevice(mCameraIds[i]); in testJpegExif() 117 for (int i = 0; i < mCameraIds.length; i++) { in testHeicExif() 119 Log.i(TAG, "Testing HEIC exif for Camera " + mCameraIds[i]); in testHeicExif() 120 if (!mAllStaticInfo.get(mCameraIds[i]).isColorOutputSupported()) { in testHeicExif() 121 Log.i(TAG, "Camera " + mCameraIds[i] + in testHeicExif() 125 if (!mAllStaticInfo.get(mCameraIds[i]).isHeicSupported()) { in testHeicExif() [all …]
|
D | SurfaceViewPreviewTest.java | 89 for (int i = 0; i < mCameraIds.length; i++) { in testCameraPreview() 91 Log.i(TAG, "Testing preview for Camera " + mCameraIds[i]); in testCameraPreview() 92 if (!mAllStaticInfo.get(mCameraIds[i]).isColorOutputSupported()) { in testCameraPreview() 93 Log.i(TAG, "Camera " + mCameraIds[i] + in testCameraPreview() 97 openDevice(mCameraIds[i]); in testCameraPreview() 114 for (int i = 0; i < mCameraIds.length; i++) { in testBasicTestPatternPreview() 116 Log.i(TAG, "Testing preview for Camera " + mCameraIds[i]); in testBasicTestPatternPreview() 117 if (!mAllStaticInfo.get(mCameraIds[i]).isColorOutputSupported()) { in testBasicTestPatternPreview() 118 Log.i(TAG, "Camera " + mCameraIds[i] + in testBasicTestPatternPreview() 122 openDevice(mCameraIds[i]); in testBasicTestPatternPreview() [all …]
|
D | FlashlightTest.java | 54 for (String id : mCameraIds) { in setUp() 177 for (String idToOpen : mCameraIds) { in testCameraDeviceOpenAfterTorchOn() 231 String[] cameraIdsToTestTorch = new String[mCameraIds.length + 3]; in testTorchModeExceptions() 232 System.arraycopy(mCameraIds, 0, cameraIdsToTestTorch, 0, mCameraIds.length); in testTorchModeExceptions() 233 cameraIdsToTestTorch[mCameraIds.length] = generateNonexistingCameraId(); in testTorchModeExceptions() 234 cameraIdsToTestTorch[mCameraIds.length + 1] = generateNonexistingNumericCameraId(); in testTorchModeExceptions() 236 for (String idToOpen : mCameraIds) { in testTorchModeExceptions() 291 for (String id : mCameraIds) { in generateNonexistingCameraId() 292 if (Arrays.asList(mCameraIds).contains(nonExisting)) { in generateNonexistingCameraId() 303 int[] numericCameraIds = new int[mCameraIds.length]; in generateNonexistingNumericCameraId() [all …]
|
D | ImageReaderTest.java | 110 for (String id : mCameraIds) { in testFlexibleYuv() 122 for (String id : mCameraIds) { in testDepth16() 134 for (String id : mCameraIds) { in testDepthPointCloud() 146 for (String id : mCameraIds) { in testDynamicDepth() 158 for (String id : mCameraIds) { in testY8() 170 for (String id : mCameraIds) { in testJpeg() 182 for (String id : mCameraIds) { in testRaw() 195 for (String id : mCameraIds) { in testRawPrivate() 208 for (String id : mCameraIds) { in testHeic() 220 for (String id : mCameraIds) { in testRepeatingJpeg() [all …]
|
D | FastBasicsTest.java | 65 for (int i = 0; i < mCameraIds.length; i++) { in testCamera2() 67 Log.i(TAG, "Testing camera2 API for camera device " + mCameraIds[i]); in testCamera2() 69 if (!mAllStaticInfo.get(mCameraIds[i]).isColorOutputSupported()) { in testCamera2() 70 Log.i(TAG, "Camera " + mCameraIds[i] + in testCamera2() 75 openDevice(mCameraIds[i]); in testCamera2()
|
D | RecordingTest.java | 134 for (int i = 0; i < mCameraIds.length; i++) { in doBasicRecording() 136 Log.i(TAG, "Testing basic recording for camera " + mCameraIds[i]); in doBasicRecording() 137 StaticMetadata staticInfo = mAllStaticInfo.get(mCameraIds[i]); in doBasicRecording() 139 Log.i(TAG, "Camera " + mCameraIds[i] + in doBasicRecording() 146 Log.i(TAG, "Camera " + mCameraIds[i] + in doBasicRecording() 152 Log.i(TAG, "Camera " + mCameraIds[i] + in doBasicRecording() 160 openDevice(mCameraIds[i]); in doBasicRecording() 161 initSupportedVideoSize(mCameraIds[i]); in doBasicRecording() 259 for (int i = 0; i < mCameraIds.length; i++) { in testSupportedVideoSizes() 261 Log.i(TAG, "Testing supported video size recording for camera " + mCameraIds[i]); in testSupportedVideoSizes() [all …]
|
D | CaptureRequestTest.java | 147 for (int i = 0; i < mCameraIds.length; i++) { in testSettingsBinderParcel() 149 openDevice(mCameraIds[i]); in testSettingsBinderParcel() 236 for (int i = 0; i < mCameraIds.length; i++) { in testBlackLevelLock() 238 if (!mAllStaticInfo.get(mCameraIds[i]).isCapabilitySupported( in testBlackLevelLock() 243 openDevice(mCameraIds[i]); in testBlackLevelLock() 290 for (String id : mCameraIds) { in testDynamicBlackWhiteLevel() 318 for (int i = 0; i < mCameraIds.length; i++) { in testLensShadingMap() 320 StaticMetadata staticInfo = mAllStaticInfo.get(mCameraIds[i]); in testLensShadingMap() 322 Log.i(TAG, "Camera " + mCameraIds[i] + in testLensShadingMap() 334 openDevice(mCameraIds[i]); in testLensShadingMap() [all …]
|
D | MultiViewTest.java | 70 for (String cameraId : mCameraIds) { in testTextureViewPreview() 99 for (String cameraId : mCameraIds) { in testTextureViewPreviewWithImageReader() 147 for (String cameraId : mCameraIds) { in testDualTextureViewPreview() 180 for (String cameraId : mCameraIds) { in testDualTextureViewAndImageReaderPreview() 226 if (mCameraIds.length < NUM_CAMERAS_TESTED) { in testDualCameraPreview() 232 openCamera(mCameraIds[i]); in testDualCameraPreview() 233 if (!getStaticInfo(mCameraIds[i]).isColorOutputSupported()) { in testDualCameraPreview() 234 Log.i(TAG, "Camera " + mCameraIds[i] + in testDualCameraPreview() 240 startTextureViewPreview(mCameraIds[i], views, /*ImageReader*/null); in testDualCameraPreview() 245 if (!getStaticInfo(mCameraIds[i]).isColorOutputSupported()) { in testDualCameraPreview() [all …]
|
D | ReprocessCaptureTest.java | 93 for (String id : mCameraIds) { in testBasicYuvToYuvReprocessing() 108 for (String id : mCameraIds) { in testBasicYuvToJpegReprocessing() 123 for (String id : mCameraIds) { in testBasicYuvToHeicReprocessing() 141 for (String id : mCameraIds) { in testBasicOpaqueToYuvReprocessing() 156 for (String id : mCameraIds) { in testBasicOpaqueToJpegReprocessing() 171 for (String id : mCameraIds) { in testBasicOpaqueToHeicReprocessing() 189 for (String id : mCameraIds) { in testReprocessingSizeFormat() 211 for (String id : mCameraIds) { in testReprocessingSizeFormatWithPreview() 232 for (String id : mCameraIds) { in testRecreateReprocessingSessions() 270 for (String id : mCameraIds) { in testCrossSessionCaptureException() [all …]
|
D | AllocationTest.java | 84 private String[] mCameraIds; field in AllocationTest 103 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 764 assertNotNull("No camera IDs", mCameraIds); in forEachCamera() 766 for (int i = 0; i < mCameraIds.length; i++) { in forEachCamera() 769 mCameraManager.getCameraCharacteristics(mCameraIds[i]); in forEachCamera() 774 mCameraIds[i])); in forEachCamera() 780 mCameraIds[i])); in forEachCamera() 784 Log.i(TAG, "Testing Camera " + mCameraIds[i]); in forEachCamera() 786 openDevice(mCameraIds[i]); in forEachCamera() 790 closeDevice(mCameraIds[i]); in forEachCamera()
|
D | PerformanceTest.java | 136 double[] avgCameraLaunchTimes = new double[mCameraIds.length]; in testCameraLaunch() 139 for (String id : mCameraIds) { in testCameraLaunch() 262 if (mCameraIds.length != 0) { in testCameraLaunch() 312 double[] avgResultTimes = new double[mCameraIds.length]; in testSingleCaptureForFormat() 315 for (String id : mCameraIds) { in testSingleCaptureForFormat() 451 if (mCameraIds.length != 0) { in testSingleCaptureForFormat() 473 double[] avgResultTimes = new double[mCameraIds.length]; in testMultipleCapture() 474 double[] avgDurationMs = new double[mCameraIds.length]; in testMultipleCapture() 523 for (String id : mCameraIds) { in testMultipleCapture() 660 if (mCameraIds.length != 0) { in testMultipleCapture() [all …]
|
D | DngCreatorTest.java | 135 for (int i = 0; i < mCameraIds.length; i++) { in testSingleImageBasic() 136 String deviceId = mCameraIds[i]; in testSingleImageBasic() 143 Log.i(TAG, "RAW capability is not supported in camera " + mCameraIds[i] + in testSingleImageBasic() 209 for (int i = 0; i < mCameraIds.length; i++) { in testSingleImageThumbnail() 210 String deviceId = mCameraIds[i]; in testSingleImageThumbnail() 219 Log.i(TAG, "RAW capability is not supported in camera " + mCameraIds[i] + in testSingleImageThumbnail() 373 for (String deviceId : mCameraIds) { in testRaw16JpegConsistency() 465 for (String deviceId : mCameraIds) { in testDngRenderingByBitmapFactor()
|
D | RobustnessTest.java | 83 for (String id : mCameraIds) { in testBadSurfaceDimensions() 164 for (String id : mCameraIds) { in testMandatoryOutputCombinations() 189 if (Arrays.asList(mCameraIds).contains(physicalId)) { in testMandatoryOutputCombinations() 484 for (String id : mCameraIds) { in testMandatoryReprocessConfigurations() 721 for (String id : mCameraIds) { in testBasicTriggerSequence() 860 for (String id : mCameraIds) { in testSimultaneousTriggers() 962 for (String id : mCameraIds) { in testAfThenAeTrigger() 1078 for (String id : mCameraIds) { in testAeThenAfTrigger() 1195 for (String id : mCameraIds) { in testAeAndAfCausality() 1376 for (String id : mCameraIds) { in testAbandonRepeatingRequestSurface() [all …]
|
D | LogicalCameraDeviceTest.java | 110 for (String id : mCameraIds) { in testInvalidPhysicalCameraIdInOutputConfiguration() 170 for (String id : mCameraIds) { in testBasicPhysicalStreaming() 211 for (String id : mCameraIds) { in testBasicLogicalPhysicalStreamCombination() 333 for (String id : mCameraIds) { in testBasicPhysicalRequests() 464 for (String id : mCameraIds) { in testInvalidPhysicalCameraRequests() 571 for (String id : mCameraIds) { in testLogicalCameraZoomSwitch() 710 for (String id : mCameraIds) { in testActivePhysicalId() 794 for (String id : mCameraIds) { in testDefaultFov()
|
D | BurstCaptureTest.java | 68 for (int i = 0; i < mCameraIds.length; i++) { in testBurst() 70 String id = mCameraIds[i]; in testBurst()
|
D | ImageWriterTest.java | 92 for (String id : mCameraIds) { in testYuvImageWriterReaderOperation() 114 for (String id : mCameraIds) { in testYuvImageWriterReaderOperationAlt()
|
D | BurstCaptureRawTest.java | 74 for (String id : mCameraIds) { in testRawSensorSize() 678 for (String id : mCameraIds) { in performTestRoutine()
|
D | CaptureResultTest.java | 99 for (String id : mCameraIds) { in testCameraCaptureResultAllKeys() 155 for (String id : mCameraIds) { in testPartialResult() 268 for (String id : mCameraIds) { in testResultTimestamps()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | Camera2PermissionTest.java | 49 private String[] mCameraIds; field in Camera2PermissionTest 67 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 68 assertNotNull("Camera ids shouldn't be null", mCameraIds); in setUp() 88 for (String id : mCameraIds) { in testCameraOpen() 106 for (String id : mCameraIds) { in testCameraCharacteristicsNeedingPermission()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2AndroidTestCase.java | 71 protected String[] mCameraIds; field in Camera2AndroidTestCase 112 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 113 assertNotNull("Camera ids shouldn't be null", mCameraIds); in setUp() 128 for (String cameraId : mCameraIds) { in setUp() 135 if (!Arrays.asList(mCameraIds).contains(physicalId) && in setUp() 146 mAllCameraIds = new String[mCameraIds.length + hiddenPhysicalIds.size()]; in setUp() 147 System.arraycopy(mCameraIds, 0, mAllCameraIds, 0, mCameraIds.length); in setUp() 149 mAllCameraIds[mCameraIds.length + i] = hiddenPhysicalIds.get(i); in setUp() 157 Log.i(TAG, "Camera ids in setup:" + Arrays.toString(mCameraIds)); in tearDown() 160 "Number of cameras changed from " + mCameraIds.length + " to " + in tearDown() [all …]
|
D | Camera2MultiViewTestCase.java | 78 protected String[] mCameraIds; field in Camera2MultiViewTestCase 102 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 103 assertNotNull("Unable to get camera ids", mCameraIds); in setUp() 113 int numCameras = mCameraIds.length; in setUp() 116 mCameraHolders[i] = new CameraHolder(mCameraIds[i]); in setUp() 117 mCameraIdMap.put(mCameraIds[i], i); in setUp() 126 Log.i(TAG, "Camera ids in setup:" + Arrays.toString(mCameraIds)); in tearDown() 129 "Number of cameras changed from " + mCameraIds.length + " to " + in tearDown() 131 mCameraIds.length == cameraIdsPostTest.length); in tearDown()
|
D | Camera2SurfaceViewTestCase.java | 91 protected String[] mCameraIds; field in Camera2SurfaceViewTestCase 132 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 133 assertNotNull("Unable to get camera ids", mCameraIds); in setUp() 148 for (String cameraId : mCameraIds) { in setUp() 155 if (!Arrays.asList(mCameraIds).contains(physicalId) && in setUp() 174 Log.i(TAG, "Camera ids in setup:" + Arrays.toString(mCameraIds)); in tearDown() 177 "Number of cameras changed from " + mCameraIds.length + " to " + in tearDown() 179 mCameraIds.length == cameraIdsPostTest.length); in tearDown()
|
/cts/tests/camera/api25test/src/android/camera/cts/api25test/ |
D | EnableZslTest.java | 45 private String[] mCameraIds; field in EnableZslTest 79 mCameraIds = mCameraManager.getCameraIdList(); in setUp() 80 assertNotNull("Camera ids shouldn't be null", mCameraIds); in setUp() 177 for (int i = 0; i < mCameraIds.length; i++) { in testEnableZslValue() 178 testEnableZslValueByCamera(mCameraIds[i]); in testEnableZslValue()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 319 public List<String> mCameraIds; field in ItsUtils.ItsCameraIdList 332 outList.mCameraIds = new ArrayList<String>(); in getItsCompatibleCameraIds() 365 outList.mCameraIds.add(id); in getItsCompatibleCameraIds() 393 outList.mCameraIds.add(physicalId); in getItsCompatibleCameraIds()
|