Home
last modified time | relevance | path

Searched refs:Size (Results 1 – 25 of 76) sorted by relevance

1234

/cts/tests/tests/util/src/android/util/cts/
DSizeTest.java21 import android.util.Size;
35 Size size = new Size(100, 200); in testConstructors()
46 Size.parseSize("2by4"); in testParseSizeInvalid()
51 assertEquals(new Size(100, 200), Size.parseSize("100*200")); in testParseSize()
52 assertEquals(new Size(10, 20), Size.parseSize("10x20")); in testParseSize()
/cts/tests/tests/media/src/android/media/cts/
DThumbnailUtilsTest.java25 import android.util.Size;
44 private static final Size[] TEST_SIZES = new Size[] {
45 new Size(50, 50),
46 new Size(500, 500),
47 new Size(5000, 5000),
67 for (Size size : TEST_SIZES) { in testCreateAudioThumbnail()
77 for (Size size : TEST_SIZES) { in testCreateAudioThumbnail_SeparateFile()
95 for (Size size : TEST_SIZES) { in testCreateImageThumbnail()
105 for (Size size : TEST_SIZES) { in testCreateVideoThumbnail()
131 private static void assertSaneThumbnail(Size expected, Bitmap actualBitmap) { in assertSaneThumbnail()
[all …]
DCamcorderProfileTest.java23 import android.hardware.Camera.Size;
79 private void checkProfile(CamcorderProfile profile, List<Size> videoSizes) { in checkProfile()
198 List<Size> videoSizes) { in checkSpecificProfiles()
249 final List<Size> videoSizes = getSupportedVideoSizes(cameraId); in checkGet()
258 List<Size> videoSizesToCheck = null; in checkGet()
357 private List<Size> getSupportedVideoSizes(int cameraId) { in getSupportedVideoSizes()
360 List<Size> videoSizes = parameters.getSupportedVideoSizes(); in getSupportedVideoSizes()
369 private boolean isSizeSupported(int width, int height, List<Size> sizes) { in isSizeSupported()
372 for (Size size: sizes) { in isSizeSupported()
/cts/tests/camera/src/android/hardware/camera2/cts/
DNativeCameraDeviceTest.java22 import android.util.Size;
59 updatePreviewSurface(new Size(640, 480)); in testCameraDeviceSessionOpenAndClose()
67 updatePreviewSurface(new Size(640, 480)); in testCameraDeviceSimplePreview()
75 updatePreviewSurface(new Size(640, 480)); in testCameraDevicePreviewWithSessionParameters()
83 Size previewSize = new Size(640, 480); in testCameraDeviceSharedOutputUpdate()
95 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalStreaming()
107 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalSettings()
DExtendedCameraCharacteristicsTest.java45 import android.util.Size;
83 private static final Size FULLHD = new Size(1920, 1080);
84 private static final Size FULLHD_ALT = new Size(1920, 1088);
85 private static final Size HD = new Size(1280, 720);
86 private static final Size VGA = new Size(640, 480);
87 private static final Size QVGA = new Size(320, 240);
185 Size[] yuvSizes = config.getOutputSizes(ImageFormat.YUV_420_888); in testAvailableStreamConfigs()
186 Size[] y8Sizes = config.getOutputSizes(ImageFormat.Y8); in testAvailableStreamConfigs()
187 Size[] jpegSizes = config.getOutputSizes(ImageFormat.JPEG); in testAvailableStreamConfigs()
188 Size[] heicSizes = config.getOutputSizes(ImageFormat.HEIC); in testAvailableStreamConfigs()
[all …]
DReprocessCaptureTest.java36 import android.util.Size;
247 Size maxInputSize = in testRecreateReprocessingSessions()
249 Size maxReprocessOutputSize = getMaxSize(reprocessOutputFormat, in testRecreateReprocessingSessions()
286 Size inputSize = in testCrossSessionCaptureException()
288 Size reprocessOutputSize = in testCrossSessionCaptureException()
527 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes()
529 Size maxInputSize = getMaxSize(inputFormat, StaticMetadata.StreamDirection.Input); in testReprocessingMaxSizes()
530 Size maxReprocessOutputSize = in testReprocessingMaxSizes()
561 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations()
564 Size QCIF = new Size(176, 144); in testReprocessingAllCombinations()
[all …]
DRecordingTest.java30 import android.util.Size;
102 private List<Size> mSupportedVideoSizes;
108 private Size mVideoSize;
382 Size[] highSpeedVideoSizes = config.getHighSpeedVideoSizes(); in testAbandonedHighSpeedRequest()
383 Size size = highSpeedVideoSizes[0]; in testAbandonedHighSpeedRequest()
567 for (Size sz : mOrderedPreviewSizes) { in videoPreviewSurfaceSharingTestByCamera()
675 Size[] highSpeedVideoSizes = config.getHighSpeedVideoSizes(); in slowMotionRecording()
676 for (Size size : highSpeedVideoSizes) { in slowMotionRecording()
746 Size[] highSpeedVideoSizes = config.getHighSpeedVideoSizes(); in constrainedHighSpeedRecording()
747 for (Size size : highSpeedVideoSizes) { in constrainedHighSpeedRecording()
[all …]
DStillCaptureTest.java36 import android.util.Size;
103 Size maxJpegSize = mOrderedStillSizes.get(0); in testJpegExif()
134 List<Size> orderedHeicSizes = CameraTestUtils.getSupportedHeicSizes( in testHeicExif()
136 Size maxHeicSize = orderedHeicSizes.get(0); in testHeicExif()
140 Size previewSize = mOrderedPreviewSizes.get(0); in testHeicExif()
603 Size maxStillSz = mOrderedStillSizes.get(0); in focalLengthTestByCamera()
604 Size maxPreviewSz = mOrderedPreviewSizes.get(0); in focalLengthTestByCamera()
611 Size thumbnailSize = new Size(0, 0); in focalLengthTestByCamera()
664 Size maxStillSz = mOrderedStillSizes.get(0); in previewPersistenceTestByCamera()
665 Size maxPreviewSz = mOrderedPreviewSizes.get(0); in previewPersistenceTestByCamera()
[all …]
DBurstCaptureRawTest.java36 import android.util.Size;
84 Size[] rawSizes = mStaticInfo.getRawOutputSizesChecked(); in testRawSensorSize()
88 Size rawSize = mStaticInfo.getRawDimensChecked(); in testRawSensorSize()
149 public CaptureSetup(Size previewCaptureSize, Size rawCaptureSize, in CaptureSetup()
165 public Size getPreviewCaptureSize() in getPreviewCaptureSize()
170 public Size getRawCaptureSize() in getRawCaptureSize()
196 private Size mPreviewCaptureSize;
197 private Size mRawCaptureSize;
503 Size previewSize = mOrderedPreviewSizes.get(0); in initCaptureSetupForPreviewAndRaw()
504 Size rawSize = mStaticInfo.getRawDimensChecked(); in initCaptureSetupForPreviewAndRaw()
[all …]
DSurfaceViewPreviewTest.java34 import android.util.Size;
211 Size maxYuvSize = getSupportedPreviewSizes(cameraId, mCameraManager, null).get(0); in preparePerformanceTestByCamera()
212 Size maxPreviewSize = mOrderedPreviewSizes.get(0); in preparePerformanceTestByCamera()
366 Size maxPreviewSize = mOrderedPreviewSizes.get(0); in surfaceEqualityTestByCamera()
461 Size maxPreviewSize = m1080pBoundedOrderedPreviewSizes.get(0); in testDeferredSurfacesByCamera()
519 Size[] sizeZeros = { new Size(0, 0), new Size(1, 0), new Size(0, 1) }; in testDeferredSurfacesByCamera()
520 for (Size size : sizeZeros) { in testDeferredSurfacesByCamera()
691 Size maxPreviewSz; in previewFpsRangeTestByCamera()
737 int numFramesVerified, Range<Integer> fpsRange, Size previewSz) { in verifyPreviewTargetFpsRange()
772 List<Size> previewSizes = getSupportedPreviewSizes( in previewTestByCamera()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java25 import android.hardware.Camera.Size;
93 private List<Size> mPreviewSizes;
94 private Size mNextPreviewSize;
95 private Size mPreviewSize;
181 private int getVideoBitRate(Camera.Size sz) { in getVideoBitRate()
204 Camera.Size recordSize = null; in prepareVideoRecorder()
207 recordSize = mCamera.new Size(176, 144); in prepareVideoRecorder()
210 recordSize = mCamera.new Size(320, 240); in prepareVideoRecorder()
213 recordSize = mCamera.new Size(352, 288); in prepareVideoRecorder()
216 recordSize = mCamera.new Size(720, 480); in prepareVideoRecorder()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationInfo.java23 import android.util.Size;
44 private final Size mSize;
66 new Size(allocation.getType().getX(), allocation.getType().getY()), in newInstance()
89 public static AllocationInfo newInstance(Size size, int format, int usage) { in newInstance()
127 public static AllocationInfo newInstance(Size size, int format) { in newInstance()
145 public static AllocationInfo newInstance(Element element, Size size) { in newInstance()
164 public static AllocationInfo newInstance(Element element, Size size, int usage) { in newInstance()
226 private AllocationInfo(Element element, Size size, int usage) { in AllocationInfo()
271 public Size getSize() { in getSize()
434 private static Type.Builder typeBuilder(Element element, Size size) { in typeBuilder()
DScriptYuvCrop.java23 import android.util.Size;
62 Size inputSize = inputInfo.getSize(); in createOutputInfo()
64 Size outputSize = new Size( in createOutputInfo()
DScriptYuvMeans1d.java21 import android.util.Size;
36 private static final Size UNIT_SQUARE = new Size(/*width*/1, /*height*/1);
DScriptGraph.java24 import android.util.Size;
69 private final Size mSize;
238 private Size mSize;
259 return configureInput(new Size(width, height), format, /*usage*/0); in configureInput()
276 return configureInput(new Size(width, height), format, usage); in configureInput()
293 public Builder configureInput(Size size, int format) { in configureInput()
313 public Builder configureInputWithSurface(Size size, int format) { in configureInputWithSurface()
331 public Builder configureInput(Size size, int format, int usage) { in configureInput()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java54 import android.util.Size;
96 public static final Size SIZE_BOUND_1080P = new Size(1920, 1088);
97 public static final Size SIZE_BOUND_2160P = new Size(3840, 2160);
99 public static final Size PREVIEW_SIZE_BOUND = SIZE_BOUND_1080P;
174 public static ImageReader makeImageReader(Size size, int format, int maxNumImages, in makeImageReader()
268 private Size mSize;
271 public ImageVerifierListener(Size sz, int format) { in ImageVerifierListener()
1173 public static Size[] getSupportedSizeForFormat(int format, String cameraId, in getSupportedSizeForFormat()
1182 Size[] availableSizes = configMap.getOutputSizes(format); in getSupportedSizeForFormat()
1185 Size[] highResAvailableSizes = configMap.getHighResolutionOutputSizes(format); in getSupportedSizeForFormat()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java46 import android.util.Size;
106 protected Size mPreviewSize;
107 protected List<Size> mOrderedPreviewSizes; // In descending order.
108 protected List<Size> m1080pBoundedOrderedPreviewSizes; // In descending order.
109 protected List<Size> mOrderedVideoSizes; // In descending order.
110 protected List<Size> mOrderedStillSizes; // In descending order.
111 protected HashMap<Size, Long> mMinPreviewFrameDurationMap;
207 protected void startPreview(CaptureRequest.Builder request, Size previewSz, in startPreview()
293 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview()
313 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview()
[all …]
DCamera2AndroidTestCase.java33 import android.util.Size;
63 protected static final Size DEFAULT_CAPTURE_SIZE = new Size(640, 480);
81 protected List<Size> mOrderedPreviewSizes; // In descending order.
82 protected List<Size> mOrderedVideoSizes; // In descending order.
83 protected List<Size> mOrderedStillSizes; // In descending order.
338 protected void createDefaultImageReader(Size size, int format, int maxNumImages, in createDefaultImageReader()
363 protected void createDefaultImageReader(Size size, int format, int maxNumImages, long usage, in createDefaultImageReader()
383 protected ImageReader createImageReader(Size size, int format, int maxNumImages, in createImageReader()
407 protected ImageReader createImageReader(Size size, int format, int maxNumImages, long usage, in createImageReader()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java37 import android.util.Size;
107 public static Size[] getRaw16OutputSizes(CameraCharacteristics ccs) in getRaw16OutputSizes()
112 public static Size[] getRaw10OutputSizes(CameraCharacteristics ccs) in getRaw10OutputSizes()
117 public static Size[] getRaw12OutputSizes(CameraCharacteristics ccs) in getRaw12OutputSizes()
122 public static Size[] getJpegOutputSizes(CameraCharacteristics ccs) in getJpegOutputSizes()
127 public static Size[] getYuvOutputSizes(CameraCharacteristics ccs) in getYuvOutputSizes()
132 public static Size[] getY8OutputSizes(CameraCharacteristics ccs) in getY8OutputSizes()
137 public static Size getMaxOutputSize(CameraCharacteristics ccs, int format) in getMaxOutputSize()
146 private static Size[] getOutputSizes(CameraCharacteristics ccs, int format) in getOutputSizes()
153 Size[] normalSizes = configMap.getOutputSizes(format); in getOutputSizes()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java77 private Size mSurfaceSize;
95 private Size[] mPreviewSizes = null;
150 mPreviewSizes = new Size[Camera.getNumberOfCameras()]; in onCreate()
230 List<Camera.Size> supportedSizes = in onResume()
232 for (Camera.Size size : supportedSizes) { in onResume()
370 mSurfaceSize = new Size(width, height); in surfaceChanged()
388 final List<Camera.Size> sizes = camera.getParameters() in showNextDialogToChoosePreviewSize()
392 Camera.Size size = sizes.get(i); in showNextDialogToChoosePreviewSize()
413 Camera.Size size = sizes.get(which); in showNextDialogToChoosePreviewSize()
414 mPreviewSizes[cameraId] = new Size( in showNextDialogToChoosePreviewSize()
[all …]
DSize.java22 public class Size { class
26 public Size(int width, int height) { in Size() method in Size
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java29 import android.util.Size;
634 public Size[] getAvailableThumbnailSizesChecked() { in getAvailableThumbnailSizesChecked()
635 Key<Size[]> key = CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES; in getAvailableThumbnailSizesChecked()
636 Size[] sizes = getValueFromKeyNonNull(key); in getAvailableThumbnailSizesChecked()
637 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked()
640 checkTrueForKey(key, "size should contain (0, 0)", sizeList.contains(new Size(0, 0))); in getAvailableThumbnailSizesChecked()
646 List<Size> orderedSizes = in getAvailableThumbnailSizesChecked()
862 public Size getPixelArraySizeChecked() { in getPixelArraySizeChecked()
863 Key<Size> key = CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZE; in getPixelArraySizeChecked()
864 Size pixelArray = getValueFromKeyNonNull(key); in getPixelArraySizeChecked()
[all …]
/cts/tests/camera/src/android/hardware/cts/
DCamera_SizeTest.java79 List<Camera.Size> supportedJpegDimens = parameters.getSupportedPictureSizes(); in testMaxAspectRatios()
80 List<Camera.Size> supportedPreviewDimens = parameters.getSupportedPreviewSizes(); in testMaxAspectRatios()
85 Camera.Size largestJpegDimen = in testMaxAspectRatios()
87 Camera.Size largestPreviewDimen = in testMaxAspectRatios()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java67 private List<Camera.Size> mPreviewSizes;
68 private Camera.Size mOptimalSize;
191 List<Camera.Size> unsortedSizes = p.getSupportedPreviewSizes(); in setUpCamera()
192 class SizeCompare implements Comparator<Camera.Size> { in setUpCamera()
194 public int compare(Camera.Size lhs, Camera.Size rhs) { in setUpCamera()
203 TreeSet<Camera.Size> sortedResolutions = new TreeSet<Camera.Size>(s); in setUpCamera()
205 mPreviewSizes = new ArrayList<Camera.Size>(sortedResolutions); in setUpCamera()
378 private Camera.Size getOptimalPreviewSize(List<Camera.Size> sizes, int w, in getOptimalPreviewSize()
384 Camera.Size optimalSize = null; in getOptimalPreviewSize()
394 for (Camera.Size size : sizes) { in getOptimalPreviewSize()
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java88 public static class LegacySizeComparator implements Comparator<Camera.Size> {
90 public int compare(Camera.Size lhs, Camera.Size rhs) { in compare()

1234