Home
last modified time | relevance | path

Searched refs:previewSize (Results 1 – 15 of 15) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java102 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testTextureViewPreviewWithImageReader() local
104 new ImageVerifierListener(previewSize, ImageFormat.YUV_420_888); in testTextureViewPreviewWithImageReader()
105 yuvReader = makeImageReader(previewSize, in testTextureViewPreviewWithImageReader()
181 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testDualTextureViewAndImageReaderPreview() local
183 new ImageVerifierListener(previewSize, ImageFormat.YUV_420_888); in testDualTextureViewAndImageReaderPreview()
184 yuvReader = makeImageReader(previewSize, in testDualTextureViewAndImageReaderPreview()
274 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testSharedSurfaceBasicByCamera() local
288 previewTexture[i].setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testSharedSurfaceBasicByCamera()
290 updatePreviewDisplayRotation(previewSize, mTextureView[i]); in testSharedSurfaceBasicByCamera()
338 Size textureSize = previewSize; in testSharedSurfaceBasicByCamera()
[all …]
DNativeCameraDeviceTest.java74 Size previewSize = new Size(640, 480); in testCameraDeviceSharedOutputUpdate() local
75 updatePreviewSurface(previewSize); in testCameraDeviceSharedOutputUpdate()
77 outputTexture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testCameraDeviceSharedOutputUpdate()
DLogicalCameraDeviceTest.java166 Size previewSize= findCommonPreviewSize(id, dualPhysicalCameraIds); in testBasicPhysicalStreaming() local
167 if (previewSize == null) { in testBasicPhysicalStreaming()
172 id, dualPhysicalCameraIds, previewSize); in testBasicPhysicalStreaming()
554 for (Size previewSize : previewSizes) { in findCommonPreviewSize()
557 if (previewSize.getWidth() > displayWidth || in findCommonPreviewSize()
558 previewSize.getHeight() > displayHeight) { in findCommonPreviewSize()
563 ImageFormat.YUV_420_888, previewSize); in findCommonPreviewSize()
568 if (physicalPreviewSizes.contains(previewSize)) { in findCommonPreviewSize()
571 ImageFormat.YUV_420_888, previewSize); in findCommonPreviewSize()
575 return previewSize; in findCommonPreviewSize()
[all …]
DReprocessCaptureTest.java477 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes() argument
486 reprocessOutputFormat, previewSize, NUM_REPROCESS_CAPTURES); in testReprocessingMaxSizes()
511 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() argument
534 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations()
539 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations()
544 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations()
560 Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize, in testReprocessMixedBurst() argument
566 " previewSize: " + previewSize + " numBurst: " + numBurst); in testReprocessMixedBurst()
569 boolean enablePreview = (previewSize != null); in testReprocessMixedBurst()
577 updatePreviewSurface(previewSize); in testReprocessMixedBurst()
[all …]
DFastBasicsTest.java85 Size previewSize = mOrderedPreviewSizes.get(0); in camera2TestByCamera() local
91 previewSize, stillSize, resultListener, imageListener); in camera2TestByCamera()
DBurstCaptureTest.java85 final Size previewSize = mOrderedPreviewSizes.get(0); in yuvBurstTestByCamera() local
134 previewSize, stillSize, in yuvBurstTestByCamera()
DBurstCaptureRawTest.java497 Size previewSize = mOrderedPreviewSizes.get(0); in initCaptureSetupForPreviewAndRaw() local
511 CaptureSetup setup = new CaptureSetup(previewSize, rawSize, previewCaptureBuilder, in initCaptureSetupForPreviewAndRaw()
DRecordingTest.java1408 Size previewSize = null; in updatePreviewSurfaceWithVideo() local
1424 previewSize = s; in updatePreviewSurfaceWithVideo()
1430 if (previewSize == null) { in updatePreviewSurfaceWithVideo()
1431 previewSize = videoSize; in updatePreviewSurfaceWithVideo()
1433 updatePreviewSurface(previewSize); in updatePreviewSurfaceWithVideo()
DDngCreatorTest.java235 Size previewSize = mOrderedPreviewSizes.get(mOrderedPreviewSizes.size() - 1); in testSingleImageThumbnail() local
247 captureReaders.add(createImageReader(previewSize, ImageFormat.YUV_420_888, 2, in testSingleImageThumbnail()
DCaptureRequestTest.java812 Size previewSize = in dynamicBlackWhiteLevelTestByCamera() local
827 prepareRawCaptureAndStartPreview(previewBuilder, rawBuilder, previewSize, rawSize, in dynamicBlackWhiteLevelTestByCamera()
830 startPreview(previewBuilder, previewSize, resultListener); in dynamicBlackWhiteLevelTestByCamera()
2225 private void digitalZoomTestByCamera(Size previewSize) throws Exception {
2280 updatePreviewSurface(previewSize);
2323 " Preview size is " + previewSize);
DCaptureResultTest.java288 Size previewSize = mOrderedPreviewSizes.get(0); in testResultTimestamps() local
292 previewReader = makeImageReader(previewSize, ImageFormat.YUV_420_888, in testResultTimestamps()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java150 protected void updatePreviewDisplayRotation(Size previewSize, TextureView textureView) { in updatePreviewDisplayRotation() argument
182 int effectiveWidth = previewSize.getWidth(); in updatePreviewDisplayRotation()
183 int effectiveHeight = previewSize.getHeight(); in updatePreviewDisplayRotation()
185 effectiveWidth = previewSize.getHeight(); in updatePreviewDisplayRotation()
186 effectiveHeight = previewSize.getWidth(); in updatePreviewDisplayRotation()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java700 Size previewSize = previewSizes.get(0); in assertParameters() local
754 parameters.setPreviewSize(previewSize.width, previewSize.height); in assertParameters()
755 assertEquals(previewSize.width, parameters.getPreviewSize().width); in assertParameters()
756 assertEquals(previewSize.height, parameters.getPreviewSize().height); in assertParameters()
765 assertEquals(previewSize.width, paramActual.getPreviewSize().width); in assertParameters()
766 assertEquals(previewSize.height, paramActual.getPreviewSize().height); in assertParameters()
1929 for (Size previewSize: parameters.getSupportedPreviewSizes()) {
1931 Log.v(TAG, "Test previewSize=(" + previewSize.width + "," +
1932 previewSize.height + ") pictureSize=(" +
1936 callback.expectedPreviewSize = previewSize;
[all …]
DCameraGLTest.java672 public void setCameraSizing(Camera.Size previewSize) { in setCameraSizing() argument
673 mCameraRatio = (float)previewSize.width/previewSize.height; in setCameraSizing()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java369 for (Camera.Size previewSize: mPreviewSizes) { in setUpCamera()
372 + previewSize.width + "x" + previewSize.height in setUpCamera()