Home
last modified time | relevance | path

Searched refs:cameraId (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java70 for (String cameraId : mCameraIds) { in testTextureViewPreview()
74 openCamera(cameraId); in testTextureViewPreview()
75 if (!getStaticInfo(cameraId).isColorOutputSupported()) { in testTextureViewPreview()
76 Log.i(TAG, "Camera " + cameraId + " does not support color outputs, skipping"); in testTextureViewPreview()
80 textureViewPreview(cameraId, views, /*ImageReader*/null); in testTextureViewPreview()
85 closeCamera(cameraId); in testTextureViewPreview()
99 for (String cameraId : mCameraIds) { in testTextureViewPreviewWithImageReader()
106 openCamera(cameraId); in testTextureViewPreviewWithImageReader()
107 if (!getStaticInfo(cameraId).isColorOutputSupported()) { in testTextureViewPreviewWithImageReader()
108 Log.i(TAG, "Camera " + cameraId + " does not support color outputs, skipping"); in testTextureViewPreviewWithImageReader()
[all …]
DIdleUidTest.java78 for (String cameraId : cameraManager.getCameraIdList()) { in testCameraAccessForIdleUid()
79 testCameraAccessForIdleUidByCamera(cameraManager, cameraId, in testCameraAccessForIdleUid()
91 for (String cameraId : cameraManager.getCameraIdList()) { in testCameraAccessBecomingInactiveUid()
92 testCameraAccessBecomingInactiveUidByCamera(cameraManager, cameraId, in testCameraAccessBecomingInactiveUid()
99 String cameraId, Handler handler) throws Exception { in testCameraAccessForIdleUidByCamera() argument
101 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
107 assertCameraAccess(cameraManager, cameraId, false, handler); in testCameraAccessForIdleUidByCamera()
114 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
118 String cameraId, boolean hasAccess, Handler handler) { in assertCameraAccess() argument
124 cameraManager.openCamera(cameraId, callback, handler); in assertCameraAccess()
[all …]
DBurstCaptureTest.java97 private void burstTestByCamera(String cameraId, int fmt, int burstSize, in burstTestByCamera() argument
109 cameraId, mCameraManager, fmt, /*bound*/null).get(0); in burstTestByCamera()
124 … Range<Integer> targetRange = getSuitableFpsRangeForDuration(cameraId, minStillFrameDuration); in burstTestByCamera()
189 cameraId, MAX_CONVERGENCE_FRAMES), in burstTestByCamera()
216 assertTrue(String.format("Cam %s: Cannot lock AF within %d frames", cameraId, in burstTestByCamera()
267 assertTrue("Cam " + cameraId + ": Burst failed to fire!", burstSent); in burstTestByCamera()
281 "exposure time %d ns", cameraId, burstFrameDuration, burstExposure), in burstTestByCamera()
285 cameraId, burstExposure), in burstTestByCamera()
288 cameraId, burstFrameDuration), in burstTestByCamera()
291 cameraId, burstSensitivity), in burstTestByCamera()
[all …]
DFlashlightTest.java271 private boolean hasFlash(String cameraId) { in hasFlash() argument
272 return mFlashCameraIdList.contains(cameraId); in hasFlash()
276 private void resetTorchModeStatus(String cameraId) throws Exception { in resetTorchModeStatus() argument
277 TorchCallbackListener torchListener = new TorchCallbackListener(cameraId); in resetTorchModeStatus()
280 mCameraManager.setTorchMode(cameraId, true); in resetTorchModeStatus()
281 mCameraManager.setTorchMode(cameraId, false); in resetTorchModeStatus()
306 for (String cameraId : mCameraIds) { in generateNonexistingNumericCameraId()
308 int value = Integer.parseInt(cameraId); in generateNonexistingNumericCameraId()
353 public TorchCallbackListener(String cameraId) { in TorchCallbackListener() argument
355 mCameraId = cameraId; in TorchCallbackListener()
[all …]
DReprocessCaptureTest.java510 private void testBasicReprocessing(String cameraId, int inputFormat, in testBasicReprocessing() argument
513 openDevice(cameraId); in testBasicReprocessing()
515 testReprocessingMaxSizes(cameraId, inputFormat, reprocessOutputFormat, in testBasicReprocessing()
526 private void testReprocessingMaxSizes(String cameraId, int inputFormat, in testReprocessingMaxSizes() argument
535 testReprocess(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes()
539 testReprocessAbort(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes()
543 testReprocessTimestamps(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes()
547 testReprocessJpegExif(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize); in testReprocessingMaxSizes()
550 testReprocessRequestKeys(cameraId, maxInputSize, inputFormat, in testReprocessingMaxSizes()
561 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() argument
[all …]
DCameraManagerTest.java303 String cameraId = ids[i]; in testCameraManagerOpenAllCameras() local
306 mCameraManager.openCamera(cameraId, executor, mCameraListener); in testCameraManagerOpenAllCameras()
308 mCameraManager.openCamera(cameraId, mCameraListener, mHandler); in testCameraManagerOpenAllCameras()
367 camera = verifyCameraStateOpened(cameraId, in testCameraManagerOpenAllCameras()
424 private static CameraDevice verifyCameraStateOpened(String cameraId, in verifyCameraStateOpened() argument
441 String.format("Failed to open camera device ID: %s", cameraId), in verifyCameraStateOpened()
510 public void onCameraAvailable(String cameraId) { in onCameraAvailable() argument
515 public void onCameraUnavailable(String cameraId) { in onCameraUnavailable() argument
558 public void onCameraAvailable(String cameraId) { in testCameraManagerListenerCallbacks()
559 availableEventQueue.offer(cameraId); in testCameraManagerListenerCallbacks()
[all …]
DExtendedCameraCharacteristicsTest.java303 int cameraId = Integer.valueOf(mAllCameraIds[counter]); in testAvailableStreamConfigs() local
305 cameraId, CamcorderProfile.QUALITY_HIGH); in testAvailableStreamConfigs()
494 private void verifyRecommendedPreviewConfiguration(String cameraId, CameraCharacteristics c, in verifyRecommendedPreviewConfiguration() argument
496 verifyCommonRecommendedConfiguration(cameraId, c, previewConfig, /*checkNoInput*/ true, in verifyRecommendedPreviewConfiguration()
502 "formats found in recommended preview configuration for ID: %s", cameraId), in verifyRecommendedPreviewConfiguration()
507 private void verifyRecommendedVideoConfiguration(String cameraId, CameraCharacteristics c, in verifyRecommendedVideoConfiguration() argument
509 verifyCommonRecommendedConfiguration(cameraId, c, videoConfig, /*checkNoInput*/ true, in verifyRecommendedVideoConfiguration()
522 sz.toString(), cameraId), availableHighSpeedSizes, sz); in verifyRecommendedVideoConfiguration()
531 cameraId), availableHighSpeedFpsRanges, fpsRange); in verifyRecommendedVideoConfiguration()
549 int idx = Integer.valueOf(cameraId); in verifyRecommendedVideoConfiguration()
[all …]
DRecordingTest.java504 int cameraId = Integer.valueOf(mCamera.getId()); in testRecordingFramerateLowToHigh() local
507 if (!CamcorderProfile.hasProfile(cameraId, profileId)) { in testRecordingFramerateLowToHigh()
510 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in testRecordingFramerateLowToHigh()
974 int cameraId = Integer.valueOf(mCamera.getId()); in basicRecordingTestByCamera() local
977 if (!CamcorderProfile.hasProfile(cameraId, profileId)) { in basicRecordingTestByCamera()
981 CamcorderProfile profile = CamcorderProfile.get(cameraId, profileId); in basicRecordingTestByCamera()
988 if (allowedUnsupported(cameraId, profileId)) { in basicRecordingTestByCamera()
1012 mOutMediaFileName = mDebugFileNameBase + "/test_video_" + cameraId + "_" in basicRecordingTestByCamera()
1132 private void initSupportedVideoSize(String cameraId) throws Exception { in initSupportedVideoSize() argument
1138 getSupportedVideoSizes(cameraId, mCameraManager, maxVideoSize); in initSupportedVideoSize()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DCamcorderProfileTest.java71 private CamcorderProfile getWithOptionalId(int quality, int cameraId) { in getWithOptionalId() argument
72 if (cameraId == -1) { in getWithOptionalId()
75 return CamcorderProfile.get(cameraId, quality); in getWithOptionalId()
194 int cameraId, in checkSpecificProfiles() argument
205 assertFalse(CamcorderProfile.hasProfile(cameraId, quality)); in checkSpecificProfiles()
215 if ((cameraId != -1 && CamcorderProfile.hasProfile(cameraId, quality)) || in checkSpecificProfiles()
216 (cameraId == -1 && CamcorderProfile.hasProfile(quality))) { in checkSpecificProfiles()
217 CamcorderProfile profile = getWithOptionalId(quality, cameraId); in checkSpecificProfiles()
244 private void checkGet(int cameraId) { in checkGet() argument
245 Log.v(TAG, (cameraId == -1) in checkGet()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java236 protected void openCamera(String cameraId) throws Exception { in openCamera() argument
237 CameraHolder camera = getCameraHolder(cameraId); in openCamera()
243 protected void closeCamera(String cameraId) throws Exception { in closeCamera() argument
244 CameraHolder camera = getCameraHolder(cameraId); in closeCamera()
248 protected void createSessionWithConfigs(String cameraId, List<OutputConfiguration> configs) in createSessionWithConfigs() argument
250 CameraHolder camera = getCameraHolder(cameraId); in createSessionWithConfigs()
255 String cameraId, List<Surface> outputSurfaces, CaptureCallback listener) in startPreview() argument
257 CameraHolder camera = getCameraHolder(cameraId); in startPreview()
258 assertTrue("Camera " + cameraId + " is not openned", camera.isOpened()); in startPreview()
262 protected int startPreviewWithConfigs(String cameraId, in startPreviewWithConfigs() argument
[all …]
DCamera2AndroidTestCase.java128 for (String cameraId : mCameraIds) { in setUp()
129 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp()
132 mAllStaticInfo.put(cameraId, staticMetadata); in setUp()
226 protected void openDevice(String cameraId) throws Exception { in openDevice() argument
227 openDevice(cameraId, mCameraListener); in openDevice()
236 protected void openDevice(String cameraId, BlockingStateCallback listener) throws Exception { in openDevice() argument
238 mCameraManager, cameraId, listener, mHandler); in openDevice()
239 mCollector.setCameraId(cameraId); in openDevice()
240 mStaticInfo = mAllStaticInfo.get(cameraId); in openDevice()
243 cameraId, mCameraManager, in openDevice()
[all …]
DCamera2SurfaceViewTestCase.java148 for (String cameraId : mCameraIds) { in setUp()
149 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(cameraId); in setUp()
152 mAllStaticInfo.put(cameraId, staticMetadata); in setUp()
637 protected void openDevice(String cameraId) throws Exception { in openDevice() argument
639 mCameraManager, cameraId, mCameraListener, mHandler); in openDevice()
640 mCollector.setCameraId(cameraId); in openDevice()
641 mStaticInfo = new StaticMetadata(mCameraManager.getCameraCharacteristics(cameraId), in openDevice()
644 mOrderedPreviewSizes = getSupportedPreviewSizes(cameraId, mCameraManager, in openDevice()
646 m1080pBoundedOrderedPreviewSizes = getSupportedPreviewSizes(cameraId, mCameraManager, in openDevice()
648 … mOrderedVideoSizes = getSupportedVideoSizes(cameraId, mCameraManager, PREVIEW_SIZE_BOUND); in openDevice()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DSelectableResolution.java23 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()
DPhotoCaptureActivity.java111 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/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp58 static void onAvailable(void* obj, const char* cameraId) { in onAvailable() argument
59 ALOGV("Camera %s onAvailable", cameraId); in onAvailable()
66 thiz->mAvailableMap[cameraId] = true; in onAvailable()
70 static void onUnavailable(void* obj, const char* cameraId) { in onUnavailable() argument
71 ALOGV("Camera %s onUnavailable", cameraId); in onUnavailable()
78 thiz->mAvailableMap[cameraId] = false; in onUnavailable()
117 bool isAvailable(const char* cameraId) { in isAvailable() argument
119 if (mAvailableMap.count(cameraId) == 0) { in isAvailable()
122 return mAvailableMap[cameraId]; in isAvailable()
986 camera_status_t openCamera(const char* cameraId) { in openCamera() argument
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsTestActivity.java112 public final String cameraId; field in ItsTestActivity.ResultKey
115 public ResultKey(String cameraId, String sceneId) { in ResultKey() argument
116 this.cameraId = cameraId; in ResultKey()
126 return cameraId.equals(other.cameraId) && sceneId.equals(other.sceneId); in equals()
133 int h = cameraId.hashCode(); in hashCode()
149 if (k1.cameraId.equals(k2.cameraId))
151 return k1.cameraId.compareTo(k2.cameraId);
168 String cameraId = intent.getStringExtra(EXTRA_CAMERA_ID); in onReceive() local
170 if (cameraId == null || results == null) { in onReceive()
171 Log.e(TAG, "cameraId = " + ((cameraId == null) ? "null" : cameraId) + in onReceive()
[all …]
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DCamera2Activity.java76 public void onCameraAvailable(String cameraId) { in onResume()
77 super.onCameraAvailable(cameraId); in onResume()
79 cameraId); in onResume()
80 Log.i(TAG, "Camera " + cameraId + " is available"); in onResume()
84 public void onCameraUnavailable(String cameraId) { in onResume()
85 super.onCameraUnavailable(cameraId); in onResume()
87 cameraId); in onResume()
88 Log.i(TAG, "Camera " + cameraId + " is unavailable"); in onResume()
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java39 public static boolean isLegacyHAL(Context context, int cameraId) throws Exception { in isLegacyHAL() argument
41 String cameraIdStr = manager.getCameraIdList()[cameraId]; in isLegacyHAL()
57 public static boolean isExternal(Context context, int cameraId) throws Exception { in isExternal() argument
59 String cameraIdStr = manager.getCameraIdList()[cameraId]; in isExternal()
/cts/tests/camera/src/android/hardware/cts/
DCameraGLTest.java125 private void initializeMessageLooper(final int cameraId) { in initializeMessageLooper() argument
138 mCamera = Camera.open(cameraId); in initializeMessageLooper()
141 mActivityRule.getActivity().getApplicationContext(), cameraId); in initializeMessageLooper()
146 Log.v(TAG, "Camera " + cameraId + " is opened."); in initializeMessageLooper()
306 void run(int cameraId) throws Exception; in run() argument
349 public void run(int cameraId) throws Exception {
353 initializeMessageLooper(cameraId);
363 initializeMessageLooper(cameraId);
393 public void run(int cameraId) throws Exception {
398 initializeMessageLooper(cameraId);
[all …]
DCameraTest.java151 private void initializeMessageLooper(final int cameraId) throws IOException { in initializeMessageLooper() argument
165 activity.getApplicationContext(), cameraId); in initializeMessageLooper()
171 mCamera = Camera.open(cameraId); in initializeMessageLooper()
464 private void testPreviewCallbackByCamera(int cameraId) throws Exception { in testPreviewCallbackByCamera() argument
465 initializeMessageLooper(cameraId); in testPreviewCallbackByCamera()
472 initializeMessageLooper(cameraId); in testPreviewCallbackByCamera()
478 initializeMessageLooper(cameraId); in testPreviewCallbackByCamera()
519 private void testStabilizationOneShotPreviewCallbackByCamera(int cameraId) throws Exception { in testStabilizationOneShotPreviewCallbackByCamera() argument
520 initializeMessageLooper(cameraId); in testStabilizationOneShotPreviewCallbackByCamera()
545 private void testSetOneShotPreviewCallbackByCamera(int cameraId) throws Exception { in testSetOneShotPreviewCallbackByCamera() argument
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DMockVideoProvider.java59 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()
/cts/tests/tests/permission/src/android/permission/cts/
DCamera2PermissionTest.java143 public void onCameraAvailable(String cameraId) { in onCameraAvailable() argument
147 public void onCameraUnavailable(String cameraId) { in onCameraUnavailable() argument
151 private void openCamera(String cameraId) throws Exception { in openCamera() argument
153 cameraId, mCameraListener, mHandler); in openCamera()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCameraUtils.java44 String cameraId = cameraIdList[0]; in blockUntilOpenCamera() local
46 cameraManager.openCamera(cameraId, callback, handler); in blockUntilOpenCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java724 public static CameraDevice openCamera(CameraManager manager, String cameraId, in openCamera() argument
737 return (new BlockingCameraManager(manager)).openCamera(cameraId, listener, handler); in openCamera()
756 public static CameraDevice openCamera(CameraManager manager, String cameraId, Handler handler) in openCamera() argument
759 return openCamera(manager, cameraId, /*listener*/null, handler); in openCamera()
1173 public static Size[] getSupportedSizeForFormat(int format, String cameraId, in getSupportedSizeForFormat() argument
1175 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForFormat()
1178 Log.v(TAG, "get camera characteristics for camera: " + cameraId); in getSupportedSizeForFormat()
1202 public static Size[] getSupportedSizeForClass(Class klass, String cameraId, in getSupportedSizeForClass() argument
1204 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForClass()
1207 Log.v(TAG, "get camera characteristics for camera: " + cameraId); in getSupportedSizeForClass()
[all …]
/cts/tests/camera/api25test/src/android/camera/cts/api25test/
DEnableZslTest.java127 private void testEnableZslValueByCamera(String cameraId) throws Exception { in testEnableZslValueByCamera() argument
128 CameraDevice camera = CameraTestUtils.openCamera(mCameraManager, cameraId, in testEnableZslValueByCamera()
132 mCameraManager.getCameraCharacteristics(cameraId), CheckLevel.ASSERT, in testEnableZslValueByCamera()

12