/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | NativeCameraDeviceTest.java | 87 Size previewSize = new Size(640, 480); in testCameraDeviceSharedOutputUpdate() local 88 updatePreviewSurface(previewSize); in testCameraDeviceSharedOutputUpdate() 90 outputTexture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testCameraDeviceSharedOutputUpdate() 100 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalStreaming() local 101 updatePreviewSurface(previewSize); in testCameraDeviceLogicalPhysicalStreaming() 103 outputTexture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testCameraDeviceLogicalPhysicalStreaming() 112 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalSettings() local 113 updatePreviewSurface(previewSize); in testCameraDeviceLogicalPhysicalSettings() 115 outputTexture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testCameraDeviceLogicalPhysicalSettings()
|
D | MultiViewTest.java | 116 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testTextureViewPreviewWithImageReader() local 118 new ImageVerifierListener(previewSize, ImageFormat.YUV_420_888); in testTextureViewPreviewWithImageReader() 119 yuvReader = makeImageReader(previewSize, in testTextureViewPreviewWithImageReader() 197 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testDualTextureViewAndImageReaderPreview() local 199 new ImageVerifierListener(previewSize, ImageFormat.YUV_420_888); in testDualTextureViewAndImageReaderPreview() 200 yuvReader = makeImageReader(previewSize, in testDualTextureViewAndImageReaderPreview() 300 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testSharedSurfaceBasicByCamera() local 314 previewTexture[i].setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testSharedSurfaceBasicByCamera() 316 updatePreviewDisplayRotation(previewSize, mTextureView[i]); in testSharedSurfaceBasicByCamera() 364 Size textureSize = previewSize; in testSharedSurfaceBasicByCamera() [all …]
|
D | ReprocessCaptureTest.java | 598 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes() argument 607 reprocessOutputFormat, previewSize, NUM_REPROCESS_CAPTURES); in testReprocessingMaxSizes() 632 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() argument 666 if ((previewSize != null) && in testReprocessingAllCombinations() 667 ((previewSize.getWidth() > FULL_HD.getWidth()) || ( in testReprocessingAllCombinations() 668 previewSize.getHeight() > FULL_HD.getHeight())) && in testReprocessingAllCombinations() 670 previewSize = VGA; in testReprocessingAllCombinations() 676 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() 681 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() 686 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations() [all …]
|
D | LogicalCameraDeviceTest.java | 201 Size previewSize= findCommonPreviewSize(id, dualPhysicalCameraIds); in testBasicPhysicalStreaming() local 202 if (previewSize == null) { in testBasicPhysicalStreaming() 208 id, dualPhysicalCameraIds, previewSize); in testBasicPhysicalStreaming() 966 for (Size previewSize : previewSizes) { in findCommonPreviewSize() 969 if (previewSize.getWidth() > displayWidth || in findCommonPreviewSize() 970 previewSize.getHeight() > displayHeight) { in findCommonPreviewSize() 975 ImageFormat.YUV_420_888, previewSize); in findCommonPreviewSize() 980 if (physicalPreviewSizes != null && physicalPreviewSizes.contains(previewSize)) { in findCommonPreviewSize() 983 ImageFormat.YUV_420_888, previewSize); in findCommonPreviewSize() 987 return previewSize; in findCommonPreviewSize() [all …]
|
D | FastBasicsTest.java | 93 Size previewSize = mOrderedPreviewSizes.get(0); in camera2TestByCamera() local 99 previewSize, stillSize, resultListener, imageListener, false /*isHeic*/); in camera2TestByCamera()
|
D | BurstCaptureTest.java | 139 final Size previewSize = mOrderedPreviewSizes.get(0); in burstTestByCamera() local 199 previewSize, stillSize, in burstTestByCamera()
|
D | BurstCaptureRawTest.java | 506 Size previewSize = mOrderedPreviewSizes.get(0); in initCaptureSetupForPreviewAndRaw() local 520 CaptureSetup setup = new CaptureSetup(previewSize, rawSize, previewCaptureBuilder, in initCaptureSetupForPreviewAndRaw()
|
D | CaptureRequestTest.java | 930 Size previewSize = in dynamicBlackWhiteLevelTestByCamera() local 945 prepareRawCaptureAndStartPreview(previewBuilder, rawBuilder, previewSize, rawSize, in dynamicBlackWhiteLevelTestByCamera() 948 startPreview(previewBuilder, previewSize, resultListener); in dynamicBlackWhiteLevelTestByCamera() 2561 private void digitalZoomTestByCamera(Size previewSize, boolean repeating) throws Exception { 2618 updatePreviewSurface(previewSize); 2685 " Preview size is " + previewSize + ", repeating is " + repeating); 2780 private void zoomRatioTestByCamera(Size previewSize) throws Exception { 2799 updatePreviewSurface(previewSize); 2831 Log.v(TAG, "Testing Zoom ratio " + zoomFactor + " Preview size is " + previewSize);
|
D | CaptureResultTest.java | 294 Size previewSize = mOrderedPreviewSizes.get(0); in testResultTimestamps() local 298 previewReader = makeImageReader(previewSize, ImageFormat.YUV_420_888, in testResultTimestamps()
|
D | DngCreatorTest.java | 355 Size previewSize = mOrderedPreviewSizes.get(mOrderedPreviewSizes.size() - 1); in testSingleImageThumbnail() local 367 captureReaders.add(createImageReader(previewSize, ImageFormat.YUV_420_888, 2, in testSingleImageThumbnail()
|
D | StillCaptureTest.java | 143 Size previewSize = mOrderedPreviewSizes.get(0); in testHeicExif() local 144 stillExifTestByCamera(ImageFormat.HEIC, previewSize); in testHeicExif()
|
D | ExtendedCameraCharacteristicsTest.java | 732 Size previewSize = mOrderedPreviewSizes.get(0); in checkFormatLatency() local 733 previewReader = createImageReader(previewSize, ImageFormat.YUV_420_888, in checkFormatLatency()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 141 protected void updatePreviewDisplayRotation(Size previewSize, TextureView textureView) { in updatePreviewDisplayRotation() argument 173 int effectiveWidth = previewSize.getWidth(); in updatePreviewDisplayRotation() 174 int effectiveHeight = previewSize.getHeight(); in updatePreviewDisplayRotation() 176 effectiveWidth = previewSize.getHeight(); in updatePreviewDisplayRotation() 177 effectiveHeight = previewSize.getWidth(); in updatePreviewDisplayRotation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/ |
D | CameraBokehActivity.java | 626 Size previewSize; in setUpCamera() local 629 previewSize = maxYuvSize; in setUpCamera() 631 previewSize = maxStreamingSize; in setUpCamera() 635 index, bokehCap.getMode(), previewSize.getWidth(), in setUpCamera() 636 previewSize.getHeight(), mCameraId, in setUpCamera() 648 index, bokehCap.getMode(), previewSize.getWidth(), in setUpCamera() 649 previewSize.getHeight(), mCameraId, in setUpCamera()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraTest.java | 769 Size previewSize = previewSizes.get(0); in assertParameters() local 823 parameters.setPreviewSize(previewSize.width, previewSize.height); in assertParameters() 824 assertEquals(previewSize.width, parameters.getPreviewSize().width); in assertParameters() 825 assertEquals(previewSize.height, parameters.getPreviewSize().height); in assertParameters() 834 assertEquals(previewSize.width, paramActual.getPreviewSize().width); in assertParameters() 835 assertEquals(previewSize.height, paramActual.getPreviewSize().height); in assertParameters() 1998 private boolean isWaivedCombination(Size previewSize, Size pictureSize) { in isWaivedCombination() argument 2001 if (previewSize.equals(QCIF) && (pictureSize.width > FULL_HD.width || in isWaivedCombination() 2005 if (pictureSize.equals(QCIF) && (previewSize.width > FULL_HD.width || in isWaivedCombination() 2006 previewSize.height > FULL_HD.height)) { in isWaivedCombination() [all …]
|
D | CameraGLTest.java | 683 public void setCameraSizing(Camera.Size previewSize) { in setCameraSizing() argument 684 mCameraRatio = (float)previewSize.width/previewSize.height; in setCameraSizing()
|