Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DCamcorderProfileTest.java35 private CamcorderProfile getWithOptionalId(int quality, int cameraId) { in getWithOptionalId() argument
36 if (cameraId == -1) { in getWithOptionalId()
39 return CamcorderProfile.get(cameraId, quality); in getWithOptionalId()
147 int cameraId, in checkSpecificProfiles() argument
158 if ((cameraId != -1 && CamcorderProfile.hasProfile(cameraId, quality)) || in checkSpecificProfiles()
159 (cameraId == -1 && CamcorderProfile.hasProfile(quality))) { in checkSpecificProfiles()
160 CamcorderProfile profile = getWithOptionalId(quality, cameraId); in checkSpecificProfiles()
187 private void checkGet(int cameraId) { in checkGet() argument
188 Log.v(TAG, (cameraId == -1) in checkGet()
190 : "Checking get with id = " + cameraId); in checkGet()
[all …]
DMediaRecorderTest.java188 for (int cameraId = 0; cameraId < nCamera; cameraId++) { in recordVideoUsingCamera()
189 mCamera = Camera.open(cameraId); in recordVideoUsingCamera()
/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.java137 for (int cameraId = 0; cameraId < Camera.getNumberOfCameras(); ++cameraId) { in onCreate()
138 mPreviewSizeCamerasToProcess.add(cameraId); in onCreate()
168 switchToCamera(resolution.cameraId, false); in onCreate()
198 for (int cameraId = 0; cameraId < numCameras; ++cameraId) { in onResume()
199 Camera camera = Camera.open(cameraId); in onResume()
206 new SelectableResolution(cameraId, size.width, size.height)); in onResume()
356 final int cameraId = mPreviewSizeCamerasToProcess.remove(0); in showNextDialogToChoosePreviewSize() local
358 Camera camera = Camera.open(cameraId); in showNextDialogToChoosePreviewSize()
370 cameraId); in showNextDialogToChoosePreviewSize()
385 mPreviewSizes[cameraId] = new Size( in showNextDialogToChoosePreviewSize()
[all …]
DCtsTestHelper.java53 details += "Camera:" + res.cameraId + ", Resolution:" + res.width + 'x' + res.height in getTestDetails()
/cts/tests/tests/hardware/src/android/hardware/cts/
DCameraGLTest.java126 private void initializeMessageLooper(final int cameraId) { in initializeMessageLooper() argument
139 mCamera = Camera.open(cameraId); in initializeMessageLooper()
141 Log.v(TAG, "Camera " + cameraId + " is opened."); in initializeMessageLooper()
300 void run(int cameraId) throws Exception; in run() argument
341 public void run(int cameraId) throws Exception {
345 initializeMessageLooper(cameraId);
354 initializeMessageLooper(cameraId);
381 public void run(int cameraId) throws Exception {
386 initializeMessageLooper(cameraId);
403 initializeMessageLooper(cameraId);
[all …]
DCameraTest.java133 private void initializeMessageLooper(final int cameraId) throws IOException { in initializeMessageLooper() argument
145 mCamera = Camera.open(cameraId); in initializeMessageLooper()
406 private void testPreviewCallbackByCamera(int cameraId) throws Exception { in testPreviewCallbackByCamera() argument
407 initializeMessageLooper(cameraId); in testPreviewCallbackByCamera()
414 initializeMessageLooper(cameraId); in testPreviewCallbackByCamera()
420 initializeMessageLooper(cameraId); in testPreviewCallbackByCamera()
450 private void testSetOneShotPreviewCallbackByCamera(int cameraId) throws Exception { in testSetOneShotPreviewCallbackByCamera() argument
451 initializeMessageLooper(cameraId); in testSetOneShotPreviewCallbackByCamera()
458 initializeMessageLooper(cameraId); in testSetOneShotPreviewCallbackByCamera()
473 private void testSetPreviewDisplayByCamera(int cameraId) throws Exception { in testSetPreviewDisplayByCamera() argument
[all …]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DCameraTestUtils.java81 public static CameraDevice openCamera(CameraManager manager, String cameraId, in openCamera() argument
94 return (new BlockingCameraManager(manager)).openCamera(cameraId, listener, handler); in openCamera()
108 public static CameraDevice openCamera(CameraManager manager, String cameraId, Handler handler) in openCamera() argument
111 return openCamera(manager, cameraId, /*listener*/null, handler); in openCamera()
266 public static Size[] getSupportedSizeForFormat(int format, String cameraId, in getSupportedSizeForFormat() argument
269 CameraCharacteristics properties = cameraManager.getCameraCharacteristics(cameraId); in getSupportedSizeForFormat()
272 Log.v(TAG, "get camera characteristics for camera: " + cameraId); in getSupportedSizeForFormat()
DImageReaderTest.java135 private void bufferFormatTestByCamera(int format, String cameraId) throws Exception { in bufferFormatTestByCamera() argument
136 CameraCharacteristics properties = mCameraManager.getCameraCharacteristics(cameraId); in bufferFormatTestByCamera()
159 if (VERBOSE) Log.v(TAG, "Testing size " + sz.toString() + " for camera " + cameraId); in bufferFormatTestByCamera()
281 private void openDevice(String cameraId) { in openDevice() argument
287 mCameraManager, cameraId, mCameraListener, mHandler); in openDevice()
298 private void closeDevice(String cameraId) { in closeDevice() argument
DCameraManagerTest.java238 public void onCameraAvailable(String cameraId) { in onCameraAvailable() argument
243 public void onCameraUnavailable(String cameraId) { in onCameraUnavailable() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java428 private void setTestedConfiguration(int cameraId, int orientation) { in setTestedConfiguration() argument
429 String combination = "Camera " + cameraId + ", " in setTestedConfiguration()
548 Settings(int stageIndex, int cameraId, int orientation) { in Settings() argument
549 mCameraId = cameraId; in Settings()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java85 int cameraId = 0; in setUp() local
86 CamcorderProfile profile = CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java443 private ArrayList<VideoSizeNamePair> getVideoSizeNamePairs(int cameraId) { in getVideoSizeNamePairs() argument
468 if (CamcorderProfile.hasProfile(cameraId, qualityArray[i])) { in getVideoSizeNamePairs()