/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | MultiViewTest.java | 75 for (String cameraId : mCameraIdsUnderTest) { in testTextureViewPreview() 79 openCamera(cameraId); in testTextureViewPreview() 80 if (!getStaticInfo(cameraId).isColorOutputSupported()) { in testTextureViewPreview() 81 Log.i(TAG, "Camera " + cameraId + " does not support color outputs, skipping"); in testTextureViewPreview() 85 textureViewPreview(cameraId, views, /*ImageReader*/null); in testTextureViewPreview() 90 closeCamera(cameraId); in testTextureViewPreview() 104 for (String cameraId : mCameraIdsUnderTest) { in testTextureViewPreviewWithImageReader() 111 openCamera(cameraId); in testTextureViewPreviewWithImageReader() 112 if (!getStaticInfo(cameraId).isColorOutputSupported()) { in testTextureViewPreviewWithImageReader() 113 Log.i(TAG, "Camera " + cameraId + " does not support color outputs, skipping"); in testTextureViewPreviewWithImageReader() [all …]
|
D | Camera2OfflineTestActivity.java | 79 String cameraId = bundledExtras.getString(OFFLINE_CAMERA_ID); in onResume() local 80 if (null == cameraId) { in onResume() 88 public void onCameraAvailable(String cameraId) { in onResume() 89 super.onCameraAvailable(cameraId); in onResume() 91 cameraId); in onResume() 92 Log.i(TAG, "Camera " + cameraId + " is available"); in onResume() 96 public void onCameraUnavailable(String cameraId) { in onResume() 97 super.onCameraUnavailable(cameraId); in onResume() 99 cameraId); in onResume() 100 Log.i(TAG, "Camera " + cameraId + " is unavailable"); in onResume() [all …]
|
D | ConcurrentCameraTest.java | 71 public String cameraId; field in ConcurrentCameraTest.TestSample 79 public TestSample(String cameraId, StaticMetadata staticInfo, in TestSample() argument 81 this.cameraId = cameraId; in TestSample() 92 public String cameraId; field in ConcurrentCameraTest.GeneratedEntry 97 GeneratedEntry(String cameraId, boolean substituteY8, in GeneratedEntry() argument 99 this.cameraId = cameraId; in GeneratedEntry() 134 closeDevice(testSample.cameraId); in testMandatoryConcurrentStreamCombination() 150 String cameraId = cameraIds.toArray(new String[1])[0]; in generateStreamSelectionsInternal() local 153 for (GeneratedEntry entry : perIdGeneratedEntries.get(cameraId)) { in generateStreamSelectionsInternal() 155 retPut.put(cameraId, entry); in generateStreamSelectionsInternal() [all …]
|
D | IdleUidTest.java | 82 for (String cameraId : mCameraIdsUnderTest) { in testCameraAccessForIdleUid() 83 testCameraAccessForIdleUidByCamera(cameraId, in testCameraAccessForIdleUid() 93 for (String cameraId : mCameraIdsUnderTest) { in testCameraAccessBecomingInactiveUid() 94 testCameraAccessBecomingInactiveUidByCamera(cameraId, in testCameraAccessBecomingInactiveUid() 99 private void testCameraAccessForIdleUidByCamera(String cameraId, Handler handler) in testCameraAccessForIdleUidByCamera() argument 102 assertCameraAccess(mCameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera() 108 assertCameraAccess(mCameraManager, cameraId, false, handler); in testCameraAccessForIdleUidByCamera() 115 assertCameraAccess(mCameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera() 119 String cameraId, boolean hasAccess, Handler handler) { in assertCameraAccess() argument 125 cameraManager.openCamera(cameraId, callback, handler); in assertCameraAccess() [all …]
|
D | CameraExtensionCharacteristicsTest.java | 60 private void openDevice(String cameraId) throws Exception { in openDevice() argument 62 mTestRule.getCameraManager(), cameraId, in openDevice() local 64 mTestRule.getCollector().setCameraId(cameraId); in openDevice() 66 mTestRule.getCameraManager().getCameraCharacteristics(cameraId), in openDevice() 70 private <T> void verifySupportedExtension(CameraExtensionCharacteristics chars, String cameraId, in verifySupportedExtension() argument 74 "include any valid resolutions!", extension, cameraId), in verifySupportedExtension() 78 private <T> void verifySupportedSizes(CameraExtensionCharacteristics chars, String cameraId, in verifySupportedSizes() argument 80 verifySupportedExtension(chars, cameraId, extension, klass); in verifySupportedSizes() 82 openDevice(cameraId); in verifySupportedSizes() 89 " resolution %s unsupported by camera", extension, cameraId, in verifySupportedSizes() [all …]
|
D | BurstCaptureTest.java | 131 private void burstTestByCamera(String cameraId, int fmt, int burstSize, in burstTestByCamera() argument 143 cameraId, mCameraManager, fmt, /*bound*/null).get(0); in burstTestByCamera() 158 … Range<Integer> targetRange = getSuitableFpsRangeForDuration(cameraId, minStillFrameDuration); in burstTestByCamera() 229 cameraId, MAX_CONVERGENCE_FRAMES), in burstTestByCamera() 256 assertTrue(String.format("Cam %s: Cannot lock AF within %d frames", cameraId, in burstTestByCamera() 307 assertTrue("Cam " + cameraId + ": Burst failed to fire!", burstSent); in burstTestByCamera() 321 "exposure time %d ns", cameraId, burstFrameDuration, burstExposure), in burstTestByCamera() 325 cameraId, burstExposure), in burstTestByCamera() 328 cameraId, burstFrameDuration), in burstTestByCamera() 331 cameraId, burstSensitivity), in burstTestByCamera() [all …]
|
D | CameraManagerTest.java | 221 for (String cameraId : cameraIdCombination) { in testCameraManagerGetDeviceIdList() 222 Integer lensFacing = lensFacingMap.get(cameraId); in testCameraManagerGetDeviceIdList() 373 String cameraId = ids[i]; in testCameraManagerOpenAllCameras() local 376 mCameraManager.openCamera(cameraId, executor, mCameraListener); in testCameraManagerOpenAllCameras() 378 mCameraManager.openCamera(cameraId, mCameraListener, mHandler); in testCameraManagerOpenAllCameras() 440 camera = verifyCameraStateOpened(cameraId, in testCameraManagerOpenAllCameras() 497 private static CameraDevice verifyCameraStateOpened(String cameraId, in verifyCameraStateOpened() argument 514 String.format("Failed to open camera device ID: %s", cameraId), in verifyCameraStateOpened() 584 public void onCameraAvailable(String cameraId) { in onCameraAvailable() argument 589 public void onCameraUnavailable(String cameraId) { in onCameraUnavailable() argument [all …]
|
D | FlashlightTest.java | 285 private boolean hasFlash(String cameraId) { in hasFlash() argument 286 return mFlashCameraIdList.contains(cameraId); in hasFlash() 290 private void resetTorchModeStatus(String cameraId) throws Exception { in resetTorchModeStatus() argument 291 TorchCallbackListener torchListener = new TorchCallbackListener(cameraId); in resetTorchModeStatus() 294 mCameraManager.setTorchMode(cameraId, true); in resetTorchModeStatus() 295 mCameraManager.setTorchMode(cameraId, false); in resetTorchModeStatus() 324 for (String cameraId : allCameraIds) { in generateNonexistingNumericCameraId() 326 int value = Integer.parseInt(cameraId); in generateNonexistingNumericCameraId() 371 public TorchCallbackListener(String cameraId) { in TorchCallbackListener() argument 373 mCameraId = cameraId; in TorchCallbackListener() [all …]
|
D | ReprocessCaptureTest.java | 581 private void testBasicReprocessing(String cameraId, int inputFormat, in testBasicReprocessing() argument 584 openDevice(cameraId); in testBasicReprocessing() 586 testReprocessingMaxSizes(cameraId, inputFormat, reprocessOutputFormat, in testBasicReprocessing() 597 private void testReprocessingMaxSizes(String cameraId, int inputFormat, in testReprocessingMaxSizes() argument 606 testReprocess(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 610 testReprocessAbort(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 614 testReprocessTimestamps(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 618 testReprocessJpegExif(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize); in testReprocessingMaxSizes() 621 testReprocessRequestKeys(cameraId, maxInputSize, inputFormat, in testReprocessingMaxSizes() 632 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() argument [all …]
|
D | MultiResolutionReprocessCaptureTest.java | 317 private void testMultiResolutionMandatoryStreamCombination(String cameraId, in testMultiResolutionMandatoryStreamCombination() argument 321 combination.getDescription() + " on camera: " + cameraId; in testMultiResolutionMandatoryStreamCombination() 478 private void testMultiResolutionReprocessing(String cameraId, int inputFormat, in testMultiResolutionReprocessing() argument 481 Log.v(TAG, "testMultiResolutionReprocessing: cameraId: " + cameraId + " inputFormat: " in testMultiResolutionReprocessing() 486 getMultiResReprocessInfo(cameraId, inputFormat, /*input*/ true); in testMultiResolutionReprocessing() 488 getMultiResReprocessInfo(cameraId, inputFormat, /*input*/ false); in testMultiResolutionReprocessing() 490 getMultiResReprocessInfo(cameraId, outputFormat, /*input*/ false); in testMultiResolutionReprocessing() 501 openDevice(cameraId); in testMultiResolutionReprocessing() 503 testMultiResolutionReprocessWithStreamInfo(cameraId, inputFormat, inputStreamInfo, in testMultiResolutionReprocessing() 506 closeDevice(cameraId); in testMultiResolutionReprocessing() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2ConcurrentAndroidTestCase.java | 68 public CameraTestInfo(String cameraId, StaticMetadata staticInfo, in CameraTestInfo() argument 71 mCameraId = cameraId; in CameraTestInfo() 109 for (String cameraId : mCameraIdsUnderTest) { in setUp() 110 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp() 113 mAllStaticInfo.put(cameraId, staticMetadata); in setUp() 132 for (String cameraId : cameraIdComb) { in setUp() 133 if (!mCameraTestInfos.containsKey(cameraId)) { in setUp() 134 StaticMetadata staticMetadata = mAllStaticInfo.get(cameraId); in setUp() 135 assertTrue("camera id" + cameraId + "'s metadata not found in mAllStaticInfo", in setUp() 141 assertTrue("Concurrent streaming camera id " + cameraId + in setUp() [all …]
|
D | Camera2MultiViewTestCase.java | 223 protected void openCamera(String cameraId) throws Exception { in openCamera() argument 224 CameraHolder camera = getCameraHolder(cameraId); in openCamera() 230 protected void closeCamera(String cameraId) throws Exception { in closeCamera() argument 231 CameraHolder camera = getCameraHolder(cameraId); in closeCamera() 235 protected void createSessionWithConfigs(String cameraId, List<OutputConfiguration> configs) in createSessionWithConfigs() argument 237 CameraHolder camera = getCameraHolder(cameraId); in createSessionWithConfigs() 242 String cameraId, List<Surface> outputSurfaces, CaptureCallback listener) in startPreview() argument 244 CameraHolder camera = getCameraHolder(cameraId); in startPreview() 245 assertTrue("Camera " + cameraId + " is not openned", camera.isOpened()); in startPreview() 249 protected int startPreviewWithConfigs(String cameraId, in startPreviewWithConfigs() argument [all …]
|
D | Camera2AndroidTestCase.java | 126 for (String cameraId : mCameraIdsUnderTest) { in setUp() 127 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp() 130 mAllStaticInfo.put(cameraId, staticMetadata); in setUp() 220 protected void openDevice(String cameraId) throws Exception { in openDevice() argument 221 openDevice(cameraId, mCameraListener); in openDevice() 230 protected void openDevice(String cameraId, BlockingStateCallback listener) throws Exception { in openDevice() argument 232 mCameraManager, cameraId, listener, mHandler); in openDevice() 233 mCollector.setCameraId(cameraId); in openDevice() 234 mStaticInfo = mAllStaticInfo.get(cameraId); in openDevice() 237 cameraId, mCameraManager, in openDevice() [all …]
|
D | Camera2AndroidTestRule.java | 248 for (String cameraId : mCameraIdsUnderTest) { in before() 249 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in before() 252 mAllStaticInfo.put(cameraId, staticMetadata); in before() 345 public void openDevice(String cameraId) throws Exception { in openDevice() argument 346 openDevice(cameraId, mCameraListener); in openDevice() 355 public void openDevice(String cameraId, BlockingStateCallback listener) throws Exception { in openDevice() argument 357 mCameraManager, cameraId, listener, mHandler); in openDevice() 358 mCollector.setCameraId(cameraId); in openDevice() 359 mStaticInfo = mAllStaticInfo.get(cameraId); in openDevice() 362 cameraId, mCameraManager, in openDevice() [all …]
|
D | Camera2SurfaceViewTestCase.java | 144 for (String cameraId : mCameraIdsUnderTest) { in setUp() 145 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp() 148 mAllStaticInfo.put(cameraId, staticMetadata); in setUp() 633 protected void openDevice(String cameraId) throws Exception { in openDevice() argument 635 mCameraManager, cameraId, mCameraListener, mHandler); in openDevice() 636 mCollector.setCameraId(cameraId); in openDevice() 637 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in openDevice() 640 mOrderedPreviewSizes = getSupportedPreviewSizes(cameraId, mCameraManager, in openDevice() 642 m1080pBoundedOrderedPreviewSizes = getSupportedPreviewSizes(cameraId, mCameraManager, in openDevice() 644 … mOrderedVideoSizes = getSupportedVideoSizes(cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in openDevice() [all …]
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | Camera2Activity.java | 77 public void onCameraAvailable(String cameraId) { in onResume() 78 super.onCameraAvailable(cameraId); in onResume() 80 cameraId); in onResume() 81 Log.i(TAG, "Camera " + cameraId + " is available"); in onResume() 85 public void onCameraUnavailable(String cameraId) { in onResume() 86 super.onCameraUnavailable(cameraId); in onResume() 88 cameraId); in onResume() 89 Log.i(TAG, "Camera " + cameraId + " is unavailable"); in onResume() 93 public void onPhysicalCameraAvailable(String cameraId, String physicalCameraId) { in onResume() 94 super.onPhysicalCameraAvailable(cameraId, physicalCameraId); in onResume() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CamcorderProfileTest.java | 91 private CamcorderProfile getWithOptionalId(int quality, int cameraId) { in getWithOptionalId() argument 92 if (cameraId == -1) { in getWithOptionalId() 95 return CamcorderProfile.get(cameraId, quality); in getWithOptionalId() 328 int cameraId, in checkSpecificProfiles() argument 339 assertFalse(CamcorderProfile.hasProfile(cameraId, quality)); in checkSpecificProfiles() 349 if ((cameraId != -1 && CamcorderProfile.hasProfile(cameraId, quality)) || in checkSpecificProfiles() 350 (cameraId == -1 && CamcorderProfile.hasProfile(quality))) { in checkSpecificProfiles() 351 CamcorderProfile profile = getWithOptionalId(quality, cameraId); in checkSpecificProfiles() 378 private void checkGet(int cameraId) { in checkGet() argument 379 Log.v(TAG, (cameraId == -1) in checkGet() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | SelectableResolution.java | 23 public final int cameraId; field in SelectableResolution 30 public SelectableResolution(int cameraId, int width, int height) { in SelectableResolution() argument 31 this.cameraId = cameraId; in SelectableResolution() 40 return "Cam " + cameraId + ": " + width + " x " + height + " - " in toString()
|
D | PhotoCaptureActivity.java | 111 for (int cameraId = 0; cameraId < Camera.getNumberOfCameras(); ++cameraId) { in onCreate() 112 if (!isExternalCamera(cameraId)) { in onCreate() 151 for (int cameraId = 0; cameraId < Camera.getNumberOfCameras(); ++cameraId) { in onCreate() 152 if (!isExternalCamera(cameraId)) { in onCreate() 153 mPreviewSizeCamerasToProcess.add(cameraId); in onCreate() 222 for (int cameraId = 0; cameraId < numCameras; ++cameraId) { in onResume() 223 if (isExternalCamera(cameraId)) { in onResume() 227 Camera camera = Camera.open(cameraId); in onResume() 234 new SelectableResolution(cameraId, size.width, size.height)); in onResume() 385 final int cameraId = mPreviewSizeCamerasToProcess.remove(0); in showNextDialogToChoosePreviewSize() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsTestActivity.java | 121 public final String cameraId; field in ItsTestActivity.ResultKey 124 public ResultKey(String cameraId, String sceneId) { in ResultKey() argument 125 this.cameraId = cameraId; in ResultKey() 135 return cameraId.equals(other.cameraId) && sceneId.equals(other.sceneId); in equals() 142 int h = cameraId.hashCode(); in hashCode() 158 if (k1.cameraId.equals(k2.cameraId)) 160 return k1.cameraId.compareTo(k2.cameraId); 177 String cameraId = intent.getStringExtra(EXTRA_CAMERA_ID); in onReceive() local 179 if (cameraId == null || results == null) { in onReceive() 180 Log.e(TAG, "cameraId = " + ((cameraId == null) ? "null" : cameraId) + in onReceive() [all …]
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 62 static void onAvailable(void* obj, const char* cameraId) { in onAvailable() argument 63 ALOGV("Camera %s onAvailable", cameraId); in onAvailable() 70 thiz->mAvailableMap[cameraId] = true; in onAvailable() 74 static void onUnavailable(void* obj, const char* cameraId) { in onUnavailable() argument 75 ALOGV("Camera %s onUnavailable", cameraId); in onUnavailable() 82 thiz->mAvailableMap[cameraId] = false; in onUnavailable() 98 static void onPhysicalCameraAvailable(void* obj, const char* cameraId, in onPhysicalCameraAvailable() argument 100 ALOGV("Camera %s : %s onAvailable", cameraId, physicalCameraId); in onPhysicalCameraAvailable() 110 static void onPhysicalCameraUnavailable(void* obj, const char* cameraId, in onPhysicalCameraUnavailable() argument 112 ALOGV("Camera %s : %s onUnavailable", cameraId, physicalCameraId); in onPhysicalCameraUnavailable() [all …]
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraGLTest.java | 128 private void initializeMessageLooper(final int cameraId) { in initializeMessageLooper() argument 141 mActivityRule.getActivity().getApplicationContext(), cameraId); in initializeMessageLooper() 147 mCamera = Camera.open(cameraId); in initializeMessageLooper() 149 Log.v(TAG, "Camera " + cameraId + " is opened."); in initializeMessageLooper() 309 void run(int cameraId) throws Exception; in run() argument 351 public void run(int cameraId) throws Exception { 355 initializeMessageLooper(cameraId); 365 initializeMessageLooper(cameraId); 395 public void run(int cameraId) throws Exception { 400 initializeMessageLooper(cameraId); [all …]
|
D | CameraTest.java | 158 private void initializeMessageLooper(final int cameraId) throws IOException { in initializeMessageLooper() argument 160 initializeMessageLooper(cameraId, mErrorCallback, looperInfo); in initializeMessageLooper() 176 private void initializeMessageLooper(final int cameraId, final ErrorCallback errorCallback, in initializeMessageLooper() argument 183 Log.v(TAG, "start loopRun for cameraId " + cameraId); in initializeMessageLooper() 191 activity.getApplicationContext(), cameraId); in initializeMessageLooper() 197 looperInfo.camera = Camera.open(cameraId); in initializeMessageLooper() 200 Log.e(TAG, "Fail to open camera id " + cameraId + ": " + e); in initializeMessageLooper() 202 Log.v(TAG, "camera" + cameraId + " is opened"); in initializeMessageLooper() 214 assertNotNull("Fail to open camera " + cameraId, looperInfo.camera); in initializeMessageLooper() 509 private void testPreviewCallbackByCamera(int cameraId) throws Exception { in testPreviewCallbackByCamera() argument [all …]
|
/cts/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraUtils.java | 55 public static boolean isLegacyHAL(Context context, int cameraId) throws Exception { in isLegacyHAL() argument 57 String cameraIdStr = manager.getCameraIdListNoLazy()[cameraId]; in isLegacyHAL() 164 public static boolean isExternal(Context context, int cameraId) throws Exception { in isExternal() argument 171 Camera.getCameraInfo(cameraId, info); in isExternal() 172 camera = Camera.open(cameraId); in isExternal() 182 manager.getCameraCharacteristics(cameraIdList[cameraId]); in isExternal()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | MockVideoProvider.java | 59 public void onSetCamera(String cameraId) { in onSetCamera() argument 60 handleCameraChange(cameraId); in onSetCamera() 132 private void handleCameraChange(String cameraId) { in handleCameraChange() argument 133 mCameraId = cameraId; in handleCameraChange()
|