Home
last modified time | relevance | path

Searched refs:mCameraIdsUnderTest (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCamera2ParameterizedTestCase.java38 protected String[] mCameraIdsUnderTest; field in Camera2ParameterizedTestCase
63 mCameraIdsUnderTest = deriveCameraIdsUnderTest(); in setUp()
64 assertNotNull("Unable to get camera ids", mCameraIdsUnderTest); in setUp()
71 Log.i(TAG, "Camera ids in setup:" + Arrays.toString(mCameraIdsUnderTest)); in tearDown()
74 "Number of cameras changed from " + mCameraIdsUnderTest.length + " to " + in tearDown()
76 mCameraIdsUnderTest.length == cameraIdsPostTest.length); in tearDown()
/cts/tests/camera/src/android/hardware/camera2/cts/
DStillCaptureTest.java97 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testJpegExif()
99 Log.i(TAG, "Testing JPEG exif for Camera " + mCameraIdsUnderTest[i]); in testJpegExif()
100 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testJpegExif()
101 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testJpegExif()
105 openDevice(mCameraIdsUnderTest[i]); in testJpegExif()
120 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testHeicExif()
122 Log.i(TAG, "Testing HEIC exif for Camera " + mCameraIdsUnderTest[i]); in testHeicExif()
123 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testHeicExif()
124 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testHeicExif()
128 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isHeicSupported()) { in testHeicExif()
[all …]
DCameraDeviceTest.java181 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testCameraDevicePreviewTemplate()
182 captureTemplateTestByCamera(mCameraIdsUnderTest[i], CameraDevice.TEMPLATE_PREVIEW); in testCameraDevicePreviewTemplate()
208 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testCameraDeviceStillTemplate()
209 … captureTemplateTestByCamera(mCameraIdsUnderTest[i], CameraDevice.TEMPLATE_STILL_CAPTURE); in testCameraDeviceStillTemplate()
229 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testCameraDeviceRecordingTemplate()
230 captureTemplateTestByCamera(mCameraIdsUnderTest[i], CameraDevice.TEMPLATE_RECORD); in testCameraDeviceRecordingTemplate()
246 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testCameraDeviceVideoSnapShotTemplate()
247 … captureTemplateTestByCamera(mCameraIdsUnderTest[i], CameraDevice.TEMPLATE_VIDEO_SNAPSHOT); in testCameraDeviceVideoSnapShotTemplate()
262 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testCameraDeviceZSLTemplate()
263 … captureTemplateTestByCamera(mCameraIdsUnderTest[i], CameraDevice.TEMPLATE_ZERO_SHUTTER_LAG); in testCameraDeviceZSLTemplate()
[all …]
DSurfaceViewPreviewTest.java94 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testCameraPreview()
96 Log.i(TAG, "Testing preview for Camera " + mCameraIdsUnderTest[i]); in testCameraPreview()
97 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testCameraPreview()
98 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testCameraPreview()
102 openDevice(mCameraIdsUnderTest[i]); in testCameraPreview()
119 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testBasicTestPatternPreview()
121 Log.i(TAG, "Testing preview for Camera " + mCameraIdsUnderTest[i]); in testBasicTestPatternPreview()
122 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testBasicTestPatternPreview()
123 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testBasicTestPatternPreview()
127 openDevice(mCameraIdsUnderTest[i]); in testBasicTestPatternPreview()
[all …]
DFlashlightTest.java63 for (String id : mCameraIdsUnderTest) { in setUp()
189 for (String idToOpen : mCameraIdsUnderTest) { in testCameraDeviceOpenAfterTorchOn()
244 String[] cameraIdsToTestTorch = new String[mCameraIdsUnderTest.length + 3]; in testTorchModeExceptions()
245 … System.arraycopy(mCameraIdsUnderTest, 0, cameraIdsToTestTorch, 0, mCameraIdsUnderTest.length); in testTorchModeExceptions()
246 cameraIdsToTestTorch[mCameraIdsUnderTest.length] = generateNonexistingCameraId(); in testTorchModeExceptions()
247 cameraIdsToTestTorch[mCameraIdsUnderTest.length + 1] = generateNonexistingNumericCameraId(); in testTorchModeExceptions()
249 for (String idToOpen : mCameraIdsUnderTest) { in testTorchModeExceptions()
305 for (String id : mCameraIdsUnderTest) { in generateNonexistingCameraId()
306 if (Arrays.asList(mCameraIdsUnderTest).contains(nonExisting)) { in generateNonexistingCameraId()
DFastBasicsTest.java70 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testCamera2()
72 Log.i(TAG, "Testing camera2 API for camera device " + mCameraIdsUnderTest[i]); in testCamera2()
74 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testCamera2()
75 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testCamera2()
80 openDevice(mCameraIdsUnderTest[i]); in testCamera2()
DRecordingTest.java143 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in doBasicRecording()
145 Log.i(TAG, "Testing basic recording for camera " + mCameraIdsUnderTest[i]); in doBasicRecording()
146 StaticMetadata staticInfo = mAllStaticInfo.get(mCameraIdsUnderTest[i]); in doBasicRecording()
148 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in doBasicRecording()
155 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in doBasicRecording()
161 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in doBasicRecording()
169 openDevice(mCameraIdsUnderTest[i]); in doBasicRecording()
170 initSupportedVideoSize(mCameraIdsUnderTest[i]); in doBasicRecording()
287 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testSupportedVideoSizes()
289 … Log.i(TAG, "Testing supported video size recording for camera " + mCameraIdsUnderTest[i]); in testSupportedVideoSizes()
[all …]
DImageReaderTest.java116 for (String id : mCameraIdsUnderTest) { in testFlexibleYuv()
129 for (String id : mCameraIdsUnderTest) { in testDepth16()
142 for (String id : mCameraIdsUnderTest) { in testDepthPointCloud()
155 for (String id : mCameraIdsUnderTest) { in testDynamicDepth()
168 for (String id : mCameraIdsUnderTest) { in testY8()
181 for (String id : mCameraIdsUnderTest) { in testJpeg()
194 for (String id : mCameraIdsUnderTest) { in testRaw()
208 for (String id : mCameraIdsUnderTest) { in testRawPrivate()
222 for (String id : mCameraIdsUnderTest) { in testP010()
235 for (String id : mCameraIdsUnderTest) { in testHeic()
[all …]
DCaptureRequestTest.java152 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testSettingsBinderParcel()
154 openDevice(mCameraIdsUnderTest[i]); in testSettingsBinderParcel()
241 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testBlackLevelLock()
243 if (!mAllStaticInfo.get(mCameraIdsUnderTest[i]).isCapabilitySupported( in testBlackLevelLock()
248 openDevice(mCameraIdsUnderTest[i]); in testBlackLevelLock()
295 for (String id : mCameraIdsUnderTest) { in testDynamicBlackWhiteLevel()
323 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testLensShadingMap()
325 StaticMetadata staticInfo = mAllStaticInfo.get(mCameraIdsUnderTest[i]); in testLensShadingMap()
327 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testLensShadingMap()
339 openDevice(mCameraIdsUnderTest[i]); in testLensShadingMap()
[all …]
DMultiViewTest.java75 for (String cameraId : mCameraIdsUnderTest) { in testTextureViewPreview()
104 for (String cameraId : mCameraIdsUnderTest) { in testTextureViewPreviewWithImageReader()
152 for (String cameraId : mCameraIdsUnderTest) { in testDualTextureViewPreview()
185 for (String cameraId : mCameraIdsUnderTest) { in testDualTextureViewAndImageReaderPreview()
234 if (mCameraIdsUnderTest.length < NUM_CAMERAS_TESTED) { in testDualCameraPreview()
240 openCamera(mCameraIdsUnderTest[i]); in testDualCameraPreview()
241 if (!getStaticInfo(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testDualCameraPreview()
242 Log.i(TAG, "Camera " + mCameraIdsUnderTest[i] + in testDualCameraPreview()
248 startTextureViewPreview(mCameraIdsUnderTest[i], views, /*ImageReader*/null); in testDualCameraPreview()
253 if (!getStaticInfo(mCameraIdsUnderTest[i]).isColorOutputSupported()) { in testDualCameraPreview()
[all …]
DReprocessCaptureTest.java97 for (String id : mCameraIdsUnderTest) { in testBasicYuvToYuvReprocessing()
112 for (String id : mCameraIdsUnderTest) { in testBasicYuvToJpegReprocessing()
127 for (String id : mCameraIdsUnderTest) { in testBasicYuvToHeicReprocessing()
145 for (String id : mCameraIdsUnderTest) { in testBasicOpaqueToYuvReprocessing()
160 for (String id : mCameraIdsUnderTest) { in testBasicOpaqueToJpegReprocessing()
175 for (String id : mCameraIdsUnderTest) { in testBasicOpaqueToHeicReprocessing()
193 for (String id : mCameraIdsUnderTest) { in testReprocessingSizeFormat()
215 for (String id : mCameraIdsUnderTest) { in testReprocessingSizeFormatWithPreview()
236 for (String id : mCameraIdsUnderTest) { in testRecreateReprocessingSessions()
274 for (String id : mCameraIdsUnderTest) { in testCrossSessionCaptureException()
[all …]
DAllocationTest.java767 assertNotNull("No camera IDs", mCameraIdsUnderTest); in forEachCamera()
769 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in forEachCamera()
772 mCameraManager.getCameraCharacteristics(mCameraIdsUnderTest[i]); in forEachCamera()
777 mCameraIdsUnderTest[i])); in forEachCamera()
783 mCameraIdsUnderTest[i])); in forEachCamera()
787 Log.i(TAG, "Testing Camera " + mCameraIdsUnderTest[i]); in forEachCamera()
789 openDevice(mCameraIdsUnderTest[i]); in forEachCamera()
793 closeDevice(mCameraIdsUnderTest[i]); in forEachCamera()
DDngCreatorTest.java165 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testSingleImageBasic()
166 String deviceId = mCameraIdsUnderTest[i]; in testSingleImageBasic()
173 … Log.i(TAG, "RAW capability is not supported in camera " + mCameraIdsUnderTest[i] + in testSingleImageBasic()
240 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testSingleImageBasicMaximumResolution()
241 String deviceId = mCameraIdsUnderTest[i]; in testSingleImageBasicMaximumResolution()
251 " camera " + mCameraIdsUnderTest[i] + ". Skip the test."); in testSingleImageBasicMaximumResolution()
333 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testSingleImageThumbnail()
334 String deviceId = mCameraIdsUnderTest[i]; in testSingleImageThumbnail()
343 … Log.i(TAG, "RAW capability is not supported in camera " + mCameraIdsUnderTest[i] + in testSingleImageThumbnail()
502 for (String deviceId : mCameraIdsUnderTest) { in testRaw16JpegMaximumResolutionConsistency()
[all …]
DIdleUidTest.java82 for (String cameraId : mCameraIdsUnderTest) { in testCameraAccessForIdleUid()
93 for (String cameraId : mCameraIdsUnderTest) { in testCameraAccessBecomingInactiveUid()
DZoomCaptureTest.java75 for (String id : mCameraIdsUnderTest) { in testJpegZoomCapture()
89 for (String id : mCameraIdsUnderTest) { in testRawZoomCapture()
DMultiResolutionReprocessCaptureTest.java94 for (String id : mCameraIdsUnderTest) { in testMultiResolutionReprocessCharacteristics()
224 for (String id : mCameraIdsUnderTest) { in testMultiResolutionYuvToYuvReprocessing()
234 for (String id : mCameraIdsUnderTest) { in testMultiResolutionYuvToJpegReprocessing()
244 for (String id : mCameraIdsUnderTest) { in testMultiResolutionOpaqueToYuvReprocessing()
255 for (String id : mCameraIdsUnderTest) { in testMultiResolutionOpaqueToJpegReprocessing()
267 for (String id : mCameraIdsUnderTest) { in testMultiResolutionMandatoryStreamCombinationTest()
DCameraExtensionSessionTest.java130 for (String id : mCameraIdsUnderTest) { in testBasicExtensionLifecycle()
180 for (String id : mCameraIdsUnderTest) { in testCloseCaptureSession()
247 for (String id : mCameraIdsUnderTest) { in testCloseExtensionSession()
309 for (String id : mCameraIdsUnderTest) { in testGetDevice()
368 for (String id : mCameraIdsUnderTest) { in testRepeatingCapture()
474 for (String id : mCameraIdsUnderTest) { in testMultiFrameCapture()
616 for (String id : mCameraIdsUnderTest) { in testConcurrentSessions()
760 for (String id : mCameraIdsUnderTest) { in testRepeatingAndCaptureCombined()
1066 for (String id : mCameraIdsUnderTest) { in testIllegalArguments()
DRobustnessTest.java98 for (String id : mCameraIdsUnderTest) { in testBadSurfaceDimensions()
215 for (String id : mCameraIdsUnderTest) { in testMandatoryOutputCombinations()
248 if (Arrays.asList(mCameraIdsUnderTest).contains(physicalId)) { in testMandatoryOutputCombinations()
494 for (String id : mCameraIdsUnderTest) { in testMandatoryReprocessConfigurations()
738 for (String id : mCameraIdsUnderTest) { in testBasicTriggerSequence()
878 for (String id : mCameraIdsUnderTest) { in testSimultaneousTriggers()
981 for (String id : mCameraIdsUnderTest) { in testAfThenAeTrigger()
1098 for (String id : mCameraIdsUnderTest) { in testAeThenAfTrigger()
1216 for (String id : mCameraIdsUnderTest) { in testAeAndAfCausality()
1398 for (String id : mCameraIdsUnderTest) { in testAbandonRepeatingRequestSurface()
[all …]
DLogicalCameraDeviceTest.java120 for (String id : mCameraIdsUnderTest) { in testInvalidPhysicalCameraIdInOutputConfiguration()
180 for (String id : mCameraIdsUnderTest) { in testBasicPhysicalStreaming()
222 for (String id : mCameraIdsUnderTest) { in testBasicLogicalPhysicalStreamCombination()
350 for (String id : mCameraIdsUnderTest) { in testBasicPhysicalRequests()
487 for (String id : mCameraIdsUnderTest) { in testInvalidPhysicalCameraRequests()
594 for (String id : mCameraIdsUnderTest) { in testLogicalCameraZoomSwitch()
756 for (String id : mCameraIdsUnderTest) { in testActivePhysicalId()
848 for (String id : mCameraIdsUnderTest) { in testDefaultFov()
DMultiResolutionImageReaderTest.java98 for (String id : mCameraIdsUnderTest) { in testMultiResolutionCaptureCharacteristics()
227 for (String id : mCameraIdsUnderTest) { in testMultiResolutionMandatoryStreamCombinationTest()
352 for (String id : mCameraIdsUnderTest) { in testMultiResolutionImageReaderForFormat()
DBurstCaptureTest.java87 for (int i = 0; i < mCameraIdsUnderTest.length; i++) { in testBurst()
89 String id = mCameraIdsUnderTest[i]; in testBurst()
DImageWriterTest.java100 for (String id : mCameraIdsUnderTest) { in testYuvImageWriterReaderOperation()
123 for (String id : mCameraIdsUnderTest) { in testYuvImageWriterReaderOperationAlt()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2AndroidTestRule.java75 private String[] mCameraIdsUnderTest; field in Camera2AndroidTestRule
114 return mCameraIdsUnderTest; in getCameraIdsUnderTest()
233 mCameraIdsUnderTest = deriveCameraIdsUnderTest(); in before()
248 for (String cameraId : mCameraIdsUnderTest) { in before()
255 if (!Arrays.asList(mCameraIdsUnderTest).contains(physicalId) && in before()
266 mAllCameraIds = new String[mCameraIdsUnderTest.length + hiddenPhysicalIds.size()]; in before()
267 System.arraycopy(mCameraIdsUnderTest, 0, mAllCameraIds, 0, mCameraIdsUnderTest.length); in before()
269 mAllCameraIds[mCameraIdsUnderTest.length + i] = hiddenPhysicalIds.get(i); in before()
279 Log.i(TAG, "Camera ids in setup:" + Arrays.toString(mCameraIdsUnderTest)); in after()
282 "Number of cameras changed from " + mCameraIdsUnderTest.length + " to " + in after()
[all …]
DCamera2ConcurrentAndroidTestCase.java109 for (String cameraId : mCameraIdsUnderTest) { in setUp()
115 if (!Arrays.asList(mCameraIdsUnderTest).contains(physicalId) && in setUp()
151 mAllCameraIds = new String[mCameraIdsUnderTest.length + hiddenPhysicalIds.size()]; in setUp()
152 System.arraycopy(mCameraIdsUnderTest, 0, mAllCameraIds, 0, mCameraIdsUnderTest.length); in setUp()
154 mAllCameraIds[mCameraIdsUnderTest.length + i] = hiddenPhysicalIds.get(i); in setUp()
DCamera2AndroidTestCase.java126 for (String cameraId : mCameraIdsUnderTest) { in setUp()
133 if (!Arrays.asList(mCameraIdsUnderTest).contains(physicalId) && in setUp()
144 mAllCameraIds = new String[mCameraIdsUnderTest.length + hiddenPhysicalIds.size()]; in setUp()
145 System.arraycopy(mCameraIdsUnderTest, 0, mAllCameraIds, 0, mCameraIdsUnderTest.length); in setUp()
147 mAllCameraIds[mCameraIdsUnderTest.length + i] = hiddenPhysicalIds.get(i); in setUp()

12