/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | NativeCameraDeviceTest.java | 83 Size previewSize = new Size(640, 480); in testCameraDeviceSharedOutputUpdate() local 84 updatePreviewSurface(previewSize); in testCameraDeviceSharedOutputUpdate() 86 outputTexture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testCameraDeviceSharedOutputUpdate() 95 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalStreaming() local 96 updatePreviewSurface(previewSize); in testCameraDeviceLogicalPhysicalStreaming() 98 outputTexture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testCameraDeviceLogicalPhysicalStreaming() 107 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalSettings() local 108 updatePreviewSurface(previewSize); in testCameraDeviceLogicalPhysicalSettings() 110 outputTexture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testCameraDeviceLogicalPhysicalSettings()
|
D | MultiViewTest.java | 111 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testTextureViewPreviewWithImageReader() local 113 new ImageVerifierListener(previewSize, ImageFormat.YUV_420_888); in testTextureViewPreviewWithImageReader() 114 yuvReader = makeImageReader(previewSize, in testTextureViewPreviewWithImageReader() 192 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testDualTextureViewAndImageReaderPreview() local 194 new ImageVerifierListener(previewSize, ImageFormat.YUV_420_888); in testDualTextureViewAndImageReaderPreview() 195 yuvReader = makeImageReader(previewSize, in testDualTextureViewAndImageReaderPreview() 292 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testSharedSurfaceBasicByCamera() local 306 previewTexture[i].setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testSharedSurfaceBasicByCamera() 308 updatePreviewDisplayRotation(previewSize, mTextureView[i]); in testSharedSurfaceBasicByCamera() 356 Size textureSize = previewSize; in testSharedSurfaceBasicByCamera() [all …]
|
D | ReprocessCaptureTest.java | 527 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes() argument 536 reprocessOutputFormat, previewSize, NUM_REPROCESS_CAPTURES); in testReprocessingMaxSizes() 561 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() argument 595 if ((previewSize != null) && in testReprocessingAllCombinations() 596 ((previewSize.getWidth() > FULL_HD.getWidth()) || ( in testReprocessingAllCombinations() 597 previewSize.getHeight() > FULL_HD.getHeight())) && in testReprocessingAllCombinations() 599 previewSize = VGA; in testReprocessingAllCombinations() 605 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() 610 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() 615 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() [all …]
|
D | LogicalCameraDeviceTest.java | 191 Size previewSize= findCommonPreviewSize(id, dualPhysicalCameraIds); in testBasicPhysicalStreaming() local 192 if (previewSize == null) { in testBasicPhysicalStreaming() 198 id, dualPhysicalCameraIds, previewSize); in testBasicPhysicalStreaming() 898 for (Size previewSize : previewSizes) { in findCommonPreviewSize() 901 if (previewSize.getWidth() > displayWidth || in findCommonPreviewSize() 902 previewSize.getHeight() > displayHeight) { in findCommonPreviewSize() 907 ImageFormat.YUV_420_888, previewSize); in findCommonPreviewSize() 912 if (physicalPreviewSizes != null && physicalPreviewSizes.contains(previewSize)) { in findCommonPreviewSize() 915 ImageFormat.YUV_420_888, previewSize); in findCommonPreviewSize() 919 return previewSize; in findCommonPreviewSize() [all …]
|
D | FastBasicsTest.java | 88 Size previewSize = mOrderedPreviewSizes.get(0); in camera2TestByCamera() local 94 previewSize, stillSize, resultListener, imageListener, false /*isHeic*/); in camera2TestByCamera()
|
D | BurstCaptureTest.java | 105 final Size previewSize = mOrderedPreviewSizes.get(0); in burstTestByCamera() local 159 previewSize, stillSize, in burstTestByCamera()
|
D | BurstCaptureRawTest.java | 503 Size previewSize = mOrderedPreviewSizes.get(0); in initCaptureSetupForPreviewAndRaw() local 517 CaptureSetup setup = new CaptureSetup(previewSize, rawSize, previewCaptureBuilder, in initCaptureSetupForPreviewAndRaw()
|
D | RecordingTest.java | 1499 Size previewSize = null; in updatePreviewSurfaceWithVideo() local 1515 previewSize = s; in updatePreviewSurfaceWithVideo() 1521 if (previewSize == null) { in updatePreviewSurfaceWithVideo() 1522 previewSize = videoSize; in updatePreviewSurfaceWithVideo() 1524 updatePreviewSurface(previewSize); in updatePreviewSurfaceWithVideo()
|
D | DngCreatorTest.java | 231 Size previewSize = mOrderedPreviewSizes.get(mOrderedPreviewSizes.size() - 1); in testSingleImageThumbnail() local 243 captureReaders.add(createImageReader(previewSize, ImageFormat.YUV_420_888, 2, in testSingleImageThumbnail()
|
D | CaptureRequestTest.java | 887 Size previewSize = in dynamicBlackWhiteLevelTestByCamera() local 902 prepareRawCaptureAndStartPreview(previewBuilder, rawBuilder, previewSize, rawSize, in dynamicBlackWhiteLevelTestByCamera() 905 startPreview(previewBuilder, previewSize, resultListener); in dynamicBlackWhiteLevelTestByCamera() 2519 private void digitalZoomTestByCamera(Size previewSize) throws Exception { 2574 updatePreviewSurface(previewSize); 2617 " Preview size is " + previewSize);
|
D | CaptureResultTest.java | 287 Size previewSize = mOrderedPreviewSizes.get(0); in testResultTimestamps() local 291 previewReader = makeImageReader(previewSize, ImageFormat.YUV_420_888, in testResultTimestamps()
|
D | StillCaptureTest.java | 140 Size previewSize = mOrderedPreviewSizes.get(0); in testHeicExif() local 141 stillExifTestByCamera(ImageFormat.HEIC, previewSize); in testHeicExif()
|
D | ExtendedCameraCharacteristicsTest.java | 709 Size previewSize = mOrderedPreviewSizes.get(0); in checkFormatLatency() local 710 previewReader = createImageReader(previewSize, ImageFormat.YUV_420_888, in checkFormatLatency()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraTest.java | 736 Size previewSize = previewSizes.get(0); in assertParameters() local 790 parameters.setPreviewSize(previewSize.width, previewSize.height); in assertParameters() 791 assertEquals(previewSize.width, parameters.getPreviewSize().width); in assertParameters() 792 assertEquals(previewSize.height, parameters.getPreviewSize().height); in assertParameters() 801 assertEquals(previewSize.width, paramActual.getPreviewSize().width); in assertParameters() 802 assertEquals(previewSize.height, paramActual.getPreviewSize().height); in assertParameters() 1988 private boolean isWaivedCombination(Size previewSize, Size pictureSize) { 1991 if (previewSize.equals(QCIF) && (pictureSize.width > FULL_HD.width || 1995 if (pictureSize.equals(QCIF) && (previewSize.width > FULL_HD.width || 1996 previewSize.height > FULL_HD.height)) { [all …]
|
D | CameraGLTest.java | 674 public void setCameraSizing(Camera.Size previewSize) { in setCameraSizing() argument 675 mCameraRatio = (float)previewSize.width/previewSize.height; in setCameraSizing()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 154 protected void updatePreviewDisplayRotation(Size previewSize, TextureView textureView) { in updatePreviewDisplayRotation() argument 186 int effectiveWidth = previewSize.getWidth(); in updatePreviewDisplayRotation() 187 int effectiveHeight = previewSize.getHeight(); in updatePreviewDisplayRotation() 189 effectiveWidth = previewSize.getHeight(); in updatePreviewDisplayRotation() 190 effectiveHeight = previewSize.getWidth(); in updatePreviewDisplayRotation()
|