Home
last modified time | relevance | path

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

123

/cts/tests/tests/util/src/android/util/cts/
DSizeTest.java23 import android.util.Size;
34 Size size = new Size(100, 200); in testConstructors()
45 Size.parseSize("2by4"); in testParseSizeInvalid()
50 assertEquals(new Size(100, 200), Size.parseSize("100*200")); in testParseSize()
51 assertEquals(new Size(10, 20), Size.parseSize("10x20")); in testParseSize()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java25 import android.hardware.Camera.Size;
91 private List<Size> mPreviewSizes;
92 private Size mNextPreviewSize;
93 private Size mPreviewSize;
154 private int getVideoBitRate(Camera.Size sz) { in getVideoBitRate()
177 Camera.Size recordSize = null; in prepareVideoRecorder()
180 recordSize = mCamera.new Size(176, 144); in prepareVideoRecorder()
183 recordSize = mCamera.new Size(320, 240); in prepareVideoRecorder()
186 recordSize = mCamera.new Size(352, 288); in prepareVideoRecorder()
189 recordSize = mCamera.new Size(720, 480); in prepareVideoRecorder()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DNativeCameraDeviceTest.java23 import android.util.Size;
53 updatePreviewSurface(new Size(640, 480)); in testCameraDeviceSessionOpenAndClose()
60 updatePreviewSurface(new Size(640, 480)); in testCameraDeviceSimplePreview()
67 updatePreviewSurface(new Size(640, 480)); in testCameraDevicePreviewWithSessionParameters()
74 Size previewSize = new Size(640, 480); in testCameraDeviceSharedOutputUpdate()
DExtendedCameraCharacteristicsTest.java40 import android.util.Size;
75 private static final Size FULLHD = new Size(1920, 1080);
76 private static final Size FULLHD_ALT = new Size(1920, 1088);
77 private static final Size HD = new Size(1280, 720);
78 private static final Size VGA = new Size(640, 480);
79 private static final Size QVGA = new Size(320, 240);
179 Size[] yuvSizes = config.getOutputSizes(ImageFormat.YUV_420_888); in testAvailableStreamConfigs()
180 Size[] jpegSizes = config.getOutputSizes(ImageFormat.JPEG); in testAvailableStreamConfigs()
181 Size[] privateSizes = config.getOutputSizes(ImageFormat.PRIVATE); in testAvailableStreamConfigs()
189 Size activeArraySize = new Size(activeRect.width(), activeRect.height()); in testAvailableStreamConfigs()
[all …]
DReprocessCaptureTest.java37 import android.util.Size;
204 Size maxInputSize = in testRecreateReprocessingSessions()
206 Size maxReprocessOutputSize = getMaxSize(reprocessOutputFormat, in testRecreateReprocessingSessions()
242 Size inputSize = in testCrossSessionCaptureException()
244 Size reprocessOutputSize = in testCrossSessionCaptureException()
477 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes()
479 Size maxInputSize = getMaxSize(inputFormat, StaticMetadata.StreamDirection.Input); in testReprocessingMaxSizes()
480 Size maxReprocessOutputSize = in testReprocessingMaxSizes()
511 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations()
517 Size[] supportedInputSizes = in testReprocessingAllCombinations()
[all …]
DRobustnessTest.java45 import android.util.Size;
91 List<Size> testSizes = null; in testBadSurfaceDimensions()
99 Size weirdSize = new Size(643, 577); in testBadSurfaceDimensions()
103 weirdSize = new Size(weirdSize.getWidth() + 1, weirdSize.getHeight() + 1); in testBadSurfaceDimensions()
152 Size actualSize = new Size(imageWidth, imageHeight); in testBadSurfaceDimensions()
1366 Size[] privSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.PRIVATE, in MaxStreamSizes()
1368 Size[] yuvSizes = sm.getAvailableSizesForFormatChecked(ImageFormat.YUV_420_888, in MaxStreamSizes()
1370 Size[] jpegSizes = sm.getJpegOutputSizesChecked(); in MaxStreamSizes()
1371 Size[] rawSizes = sm.getRawOutputSizesChecked(); in MaxStreamSizes()
1373 Size maxPreviewSize = getMaxPreviewSize(context, cameraId); in MaxStreamSizes()
[all …]
DRecordingTest.java27 import android.util.Size;
97 private List<Size> mSupportedVideoSizes;
103 private Size mVideoSize;
334 Size[] highSpeedVideoSizes = config.getHighSpeedVideoSizes(); in testAbandonedHighSpeedRequest()
335 Size size = highSpeedVideoSizes[0]; in testAbandonedHighSpeedRequest()
514 for (Size sz : mOrderedPreviewSizes) { in videoPreviewSurfaceSharingTestByCamera()
620 Size[] highSpeedVideoSizes = config.getHighSpeedVideoSizes(); in slowMotionRecording()
621 for (Size size : highSpeedVideoSizes) { in slowMotionRecording()
691 Size[] highSpeedVideoSizes = config.getHighSpeedVideoSizes(); in constrainedHighSpeedRecording()
692 for (Size size : highSpeedVideoSizes) { in constrainedHighSpeedRecording()
[all …]
DNativeStillCaptureTest.java22 import android.util.Size;
42 updatePreviewSurface(new Size(640, 480)); in testStillCapture()
DStillCaptureTest.java36 import android.util.Size;
536 Size maxStillSz = mOrderedStillSizes.get(0); in focalLengthTestByCamera()
537 Size maxPreviewSz = mOrderedPreviewSizes.get(0); in focalLengthTestByCamera()
544 Size thumbnailSize = new Size(0, 0); in focalLengthTestByCamera()
597 Size maxStillSz = mOrderedStillSizes.get(0); in previewPersistenceTestByCamera()
598 Size maxPreviewSz = mOrderedPreviewSizes.get(0); in previewPersistenceTestByCamera()
682 Size maxStillSz = mOrderedStillSizes.get(0); in takePictureTestByCamera()
683 Size maxPreviewSz = mOrderedPreviewSizes.get(0); in takePictureTestByCamera()
874 Size maxPreviewSz = mOrderedPreviewSizes.get(0); in touchForFocusTestByCamera()
893 for (Size stillSz : mOrderedStillSizes) in previewStillCombinationTestByCamera()
[all …]
DSurfaceViewPreviewTest.java34 import android.util.Size;
204 Size maxYuvSize = getSupportedPreviewSizes(cameraId, mCameraManager, null).get(0); in preparePerformanceTestByCamera()
205 Size maxPreviewSize = mOrderedPreviewSizes.get(0); in preparePerformanceTestByCamera()
358 Size maxPreviewSize = mOrderedPreviewSizes.get(0); in surfaceEqualityTestByCamera()
451 Size maxPreviewSize = m1080pBoundedOrderedPreviewSizes.get(0); in testDeferredSurfacesByCamera()
509 Size[] sizeZeros = { new Size(0, 0), new Size(1, 0), new Size(0, 1) }; in testDeferredSurfacesByCamera()
510 for (Size size : sizeZeros) { in testDeferredSurfacesByCamera()
676 Size maxPreviewSz; in previewFpsRangeTestByCamera()
722 int numFramesVerified, Range<Integer> fpsRange, Size previewSz) { in verifyPreviewTargetFpsRange()
757 List<Size> previewSizes = getSupportedPreviewSizes( in previewTestByCamera()
[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()
DScriptYuvMeans1d.java21 import android.util.Size;
36 private static final Size UNIT_SQUARE = new Size(/*width*/1, /*height*/1);
DScriptYuvCrop.java23 import android.util.Size;
62 Size inputSize = inputInfo.getSize(); in createOutputInfo()
64 Size outputSize = new Size( in createOutputInfo()
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/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java33 import android.util.Size;
97 public static Size[] getRaw16OutputSizes(CameraCharacteristics ccs) in getRaw16OutputSizes()
102 public static Size[] getRaw10OutputSizes(CameraCharacteristics ccs) in getRaw10OutputSizes()
107 public static Size[] getRaw12OutputSizes(CameraCharacteristics ccs) in getRaw12OutputSizes()
112 public static Size[] getJpegOutputSizes(CameraCharacteristics ccs) in getJpegOutputSizes()
117 public static Size[] getYuvOutputSizes(CameraCharacteristics ccs) in getYuvOutputSizes()
122 public static Size getMaxOutputSize(CameraCharacteristics ccs, int format) in getMaxOutputSize()
131 private static Size[] getOutputSizes(CameraCharacteristics ccs, int format) in getOutputSizes()
138 Size[] normalSizes = configMap.getOutputSizes(format); in getOutputSizes()
139 Size[] slowSizes = configMap.getHighResolutionOutputSizes(format); in getOutputSizes()
[all …]
/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;
177 public static ImageReader makeImageReader(Size size, int format, int maxNumImages, in makeImageReader()
260 private Size mSize;
263 public ImageVerifierListener(Size sz, int format) { in ImageVerifierListener()
1133 public static Size[] getSupportedSizeForFormat(int format, String cameraId, in getSupportedSizeForFormat()
1142 Size[] availableSizes = configMap.getOutputSizes(format); in getSupportedSizeForFormat()
1145 Size[] highResAvailableSizes = configMap.getHighResolutionOutputSizes(format); in getSupportedSizeForFormat()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DSize.java22 public class Size { class
26 public Size(int width, int height) { in Size() method in Size
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 …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java45 import android.util.Size;
104 protected Size mPreviewSize;
105 protected List<Size> mOrderedPreviewSizes; // In descending order.
106 protected List<Size> m1080pBoundedOrderedPreviewSizes; // In descending order.
107 protected List<Size> mOrderedVideoSizes; // In descending order.
108 protected List<Size> mOrderedStillSizes; // In descending order.
109 protected HashMap<Size, Long> mMinPreviewFrameDurationMap;
184 protected void startPreview(CaptureRequest.Builder request, Size previewSz, in startPreview()
270 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview()
289 CaptureRequest.Builder stillRequest, Size previewSz, Size stillSz, in prepareStillCaptureAndStartPreview()
[all …]
/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()
/cts/tests/camera/src/android/hardware/cts/
DCamera_SizeTest.java81 List<Camera.Size> supportedJpegDimens = parameters.getSupportedPictureSizes(); in testMaxAspectRatios()
82 List<Camera.Size> supportedPreviewDimens = parameters.getSupportedPreviewSizes(); in testMaxAspectRatios()
87 Camera.Size largestJpegDimen = in testMaxAspectRatios()
89 Camera.Size largestPreviewDimen = in testMaxAspectRatios()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java29 import android.util.Size;
592 public Size[] getAvailableThumbnailSizesChecked() { in getAvailableThumbnailSizesChecked()
593 Key<Size[]> key = CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES; in getAvailableThumbnailSizesChecked()
594 Size[] sizes = getValueFromKeyNonNull(key); in getAvailableThumbnailSizesChecked()
595 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked()
598 checkTrueForKey(key, "size should contain (0, 0)", sizeList.contains(new Size(0, 0))); in getAvailableThumbnailSizesChecked()
604 List<Size> orderedSizes = in getAvailableThumbnailSizesChecked()
820 public Size getPixelArraySizeChecked() { in getPixelArraySizeChecked()
821 Key<Size> key = CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZE; in getPixelArraySizeChecked()
822 Size pixelArray = getValueFromKeyNonNull(key); in getPixelArraySizeChecked()
[all …]
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerDisplayTests.java28 import android.util.Size;
128 final Size overrideSize = new Size( in testForceDisplayMetrics()
169 void overrideDisplayMetrics(final Size size, final int density) { in overrideDisplayMetrics()
/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/tests/media/src/android/media/cts/
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()

123