/cts/tests/tests/media/src/android/media/cts/ |
D | CamcorderProfileTest.java | 35 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 …]
|
D | MediaRecorderTest.java | 188 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/ |
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 | 137 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 …]
|
D | CtsTestHelper.java | 53 details += "Camera:" + res.cameraId + ", Resolution:" + res.width + 'x' + res.height in getTestDetails()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | CameraGLTest.java | 126 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 …]
|
D | CameraTest.java | 133 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/ |
D | CameraTestUtils.java | 81 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()
|
D | ImageReaderTest.java | 135 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
|
D | CameraManagerTest.java | 238 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/ |
D | CameraOrientationActivity.java | 428 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/ |
D | MediaRecorderStressTest.java | 85 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/ |
D | CameraVideoActivity.java | 443 private ArrayList<VideoSizeNamePair> getVideoSizeNamePairs(int cameraId) { in getVideoSizeNamePairs() argument 468 if (CamcorderProfile.hasProfile(cameraId, qualityArray[i])) { in getVideoSizeNamePairs()
|