Home
last modified time | relevance | path

Searched refs:cameraIdsUnderTest (Results 1 – 18 of 18) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DOfflineSessionTest.java107 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testInvalidOutput() local
108 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testInvalidOutput()
110 Log.i(TAG, "Testing camera device " + cameraIdsUnderTest[i]); in testInvalidOutput()
112 if (!mAllStaticInfo.get(cameraIdsUnderTest[i]).isColorOutputSupported()) { in testInvalidOutput()
113 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in testInvalidOutput()
118 if (!mAllStaticInfo.get(cameraIdsUnderTest[i]).isOfflineProcessingSupported()) { in testInvalidOutput()
119 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in testInvalidOutput()
124 openDevice(cameraIdsUnderTest[i]); in testInvalidOutput()
194 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testOfflineCallbacks() local
195 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testOfflineCallbacks()
[all …]
DCameraDeviceTest.java173 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testCameraDevicePreviewTemplate() local
174 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testCameraDevicePreviewTemplate()
175 captureTemplateTestByCamera(cameraIdsUnderTest[i], CameraDevice.TEMPLATE_PREVIEW); in testCameraDevicePreviewTemplate()
201 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testCameraDeviceStillTemplate() local
202 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testCameraDeviceStillTemplate()
203 captureTemplateTestByCamera(cameraIdsUnderTest[i], CameraDevice.TEMPLATE_STILL_CAPTURE); in testCameraDeviceStillTemplate()
223 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testCameraDeviceRecordingTemplate() local
224 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testCameraDeviceRecordingTemplate()
225 captureTemplateTestByCamera(cameraIdsUnderTest[i], CameraDevice.TEMPLATE_RECORD); in testCameraDeviceRecordingTemplate()
241 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testCameraDeviceVideoSnapShotTemplate() local
[all …]
DSurfaceViewPreviewTest.java91 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testCameraPreview() local
92 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testCameraPreview()
94 Log.i(TAG, "Testing preview for Camera " + cameraIdsUnderTest[i]); in testCameraPreview()
95 if (!mAllStaticInfo.get(cameraIdsUnderTest[i]).isColorOutputSupported()) { in testCameraPreview()
96 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in testCameraPreview()
100 openDevice(cameraIdsUnderTest[i]); in testCameraPreview()
117 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testBasicTestPatternPreview() local
118 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testBasicTestPatternPreview()
120 Log.i(TAG, "Testing preview for Camera " + cameraIdsUnderTest[i]); in testBasicTestPatternPreview()
121 if (!mAllStaticInfo.get(cameraIdsUnderTest[i]).isColorOutputSupported()) { in testBasicTestPatternPreview()
[all …]
DStillCaptureTest.java99 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testJpegExif() local
100 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testJpegExif()
102 Log.i(TAG, "Testing JPEG exif for Camera " + cameraIdsUnderTest[i]); in testJpegExif()
103 if (!mAllStaticInfo.get(cameraIdsUnderTest[i]).isColorOutputSupported()) { in testJpegExif()
104 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in testJpegExif()
108 openDevice(cameraIdsUnderTest[i]); in testJpegExif()
123 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testHeicExif() local
124 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testHeicExif()
126 Log.i(TAG, "Testing HEIC exif for Camera " + cameraIdsUnderTest[i]); in testHeicExif()
127 if (!mAllStaticInfo.get(cameraIdsUnderTest[i]).isColorOutputSupported()) { in testHeicExif()
[all …]
DFastBasicsTest.java70 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testCamera2() local
71 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testCamera2()
73 Log.i(TAG, "Testing camera2 API for camera device " + cameraIdsUnderTest[i]); in testCamera2()
75 if (!mAllStaticInfo.get(cameraIdsUnderTest[i]).isColorOutputSupported()) { in testCamera2()
76 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in testCamera2()
81 openDevice(cameraIdsUnderTest[i]); in testCamera2()
DRecordingTest.java171 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in doBasicRecording() local
172 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in doBasicRecording()
174 Log.i(TAG, "Testing basic recording for camera " + cameraIdsUnderTest[i]); in doBasicRecording()
175 StaticMetadata staticInfo = mAllStaticInfo.get(cameraIdsUnderTest[i]); in doBasicRecording()
177 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in doBasicRecording()
184 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in doBasicRecording()
190 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in doBasicRecording()
198 openDevice(cameraIdsUnderTest[i]); in doBasicRecording()
199 initSupportedVideoSize(cameraIdsUnderTest[i]); in doBasicRecording()
316 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testSupportedVideoSizes() local
[all …]
DFlashlightTest.java368 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testTorchModeExceptions() local
369 String[] cameraIdsToTestTorch = new String[cameraIdsUnderTest.length + 3]; in testTorchModeExceptions()
370 System.arraycopy(cameraIdsUnderTest, 0, cameraIdsToTestTorch, 0, cameraIdsUnderTest.length); in testTorchModeExceptions()
371 cameraIdsToTestTorch[cameraIdsUnderTest.length] = generateNonexistingCameraId(); in testTorchModeExceptions()
372 cameraIdsToTestTorch[cameraIdsUnderTest.length + 1] = generateNonexistingNumericCameraId(); in testTorchModeExceptions()
374 for (String idToOpen : cameraIdsUnderTest) { in testTorchModeExceptions()
430 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in generateNonexistingCameraId() local
431 for (String id : cameraIdsUnderTest) { in generateNonexistingCameraId()
432 if (Arrays.asList(cameraIdsUnderTest).contains(nonExisting)) { in generateNonexistingCameraId()
DCaptureRequestTest.java164 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testSettingsBinderParcel() local
165 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testSettingsBinderParcel()
167 openDevice(cameraIdsUnderTest[i]); in testSettingsBinderParcel()
264 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testBlackLevelLock() local
265 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testBlackLevelLock()
267 if (!mAllStaticInfo.get(cameraIdsUnderTest[i]).isCapabilitySupported( in testBlackLevelLock()
272 openDevice(cameraIdsUnderTest[i]); in testBlackLevelLock()
347 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testLensShadingMap() local
348 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testLensShadingMap()
350 StaticMetadata staticInfo = mAllStaticInfo.get(cameraIdsUnderTest[i]); in testLensShadingMap()
[all …]
DDngCreatorTest.java153 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testSingleImageBasic() local
154 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testSingleImageBasic()
155 String deviceId = cameraIdsUnderTest[i]; in testSingleImageBasic()
162 … Log.i(TAG, "RAW capability is not supported in camera " + cameraIdsUnderTest[i] + in testSingleImageBasic()
229 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testSingleImageBasicMaximumResolution() local
230 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testSingleImageBasicMaximumResolution()
231 String deviceId = cameraIdsUnderTest[i]; in testSingleImageBasicMaximumResolution()
241 " camera " + cameraIdsUnderTest[i] + ". Skip the test."); in testSingleImageBasicMaximumResolution()
323 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testSingleImageThumbnail() local
324 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testSingleImageThumbnail()
[all …]
DBurstCaptureTest.java87 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testBurst() local
88 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testBurst()
90 String id = cameraIdsUnderTest[i]; in testBurst()
DMultiViewTest.java243 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testDualCameraPreview() local
244 if (cameraIdsUnderTest.length < NUM_CAMERAS_TESTED) { in testDualCameraPreview()
250 openCamera(cameraIdsUnderTest[i]); in testDualCameraPreview()
251 if (!getStaticInfo(cameraIdsUnderTest[i]).isColorOutputSupported()) { in testDualCameraPreview()
252 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in testDualCameraPreview()
258 startTextureViewPreview(cameraIdsUnderTest[i], views, /*ImageReader*/null); in testDualCameraPreview()
263 if (!getStaticInfo(cameraIdsUnderTest[i]).isColorOutputSupported()) { in testDualCameraPreview()
264 Log.i(TAG, "Camera " + cameraIdsUnderTest[i] + in testDualCameraPreview()
268 stopPreview(cameraIdsUnderTest[i]); in testDualCameraPreview()
278 closeCamera(cameraIdsUnderTest[i]); in testDualCameraPreview()
DCameraDeviceSetupTest.java203 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testSessionCharacteristics() local
204 for (String cameraId : cameraIdsUnderTest) { in testSessionCharacteristics()
DExtendedCameraCharacteristicsTest.java498 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testSPerfClassJpegSizes() local
499 for (int i = 0; i < cameraIdsUnderTest.length; i++) { in testSPerfClassJpegSizes()
500 testSPerfClassJpegSizesByCamera(cameraIdsUnderTest[i]); in testSPerfClassJpegSizes()
3538 String[] cameraIdsUnderTest = getCameraIdsUnderTest();
3539 for (int i = 0; i < cameraIdsUnderTest.length; i++) {
3540 String cameraId = cameraIdsUnderTest[i];
DRobustnessTest.java225 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in testMandatoryOutputCombinations() local
228 for (String id : cameraIdsUnderTest) { in testMandatoryOutputCombinations()
260 if (Arrays.asList(cameraIdsUnderTest).contains(physicalId)) { in testMandatoryOutputCombinations()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2ConcurrentAndroidTestCase.java119 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in setUp() local
120 for (String cameraId : cameraIdsUnderTest) { in setUp()
126 if (!Arrays.asList(cameraIdsUnderTest).contains(physicalId) && in setUp()
162 mAllCameraIds = new String[cameraIdsUnderTest.length + hiddenPhysicalIds.size()]; in setUp()
163 System.arraycopy(cameraIdsUnderTest, 0, mAllCameraIds, 0, cameraIdsUnderTest.length); in setUp()
165 mAllCameraIds[cameraIdsUnderTest.length + i] = hiddenPhysicalIds.get(i); in setUp()
DCamera2AndroidTestCase.java145 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in setUp() local
146 for (String cameraId : cameraIdsUnderTest) { in setUp()
153 if (!Arrays.asList(cameraIdsUnderTest).contains(physicalId) && in setUp()
164 mAllCameraIds = new String[cameraIdsUnderTest.length + hiddenPhysicalIds.size()]; in setUp()
165 System.arraycopy(cameraIdsUnderTest, 0, mAllCameraIds, 0, cameraIdsUnderTest.length); in setUp()
167 mAllCameraIds[cameraIdsUnderTest.length + i] = hiddenPhysicalIds.get(i); in setUp()
DCamera2MultiViewTestCase.java116 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in setUp() local
117 int numCameras = cameraIdsUnderTest.length; in setUp()
120 mCameraHolders[i] = new CameraHolder(cameraIdsUnderTest[i]); in setUp()
121 mCameraIdMap.put(cameraIdsUnderTest[i], i); in setUp()
DCamera2SurfaceViewTestCase.java144 String[] cameraIdsUnderTest = getCameraIdsUnderTest(); in setUp() local
145 for (String cameraId : cameraIdsUnderTest) { in setUp()
152 if (!Arrays.asList(cameraIdsUnderTest).contains(physicalId) && in setUp()