Home
last modified time | relevance | path

Searched refs:sizes (Results 1 – 19 of 19) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DUserActivityEmulator.java42 final String[] sizes = output.split(" ")[2].split("x"); in UserActivityEmulator() local
43 mWidth = Integer.valueOf(sizes[0].trim()); in UserActivityEmulator()
44 mHeight = Integer.valueOf(sizes[1].trim()); in UserActivityEmulator()
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp265 simplevector<int> sizes; in testExtractor() local
267 sizes.add(numtracks); in testExtractor()
277 sizes.add(0); in testExtractor()
281 sizes.add(val32); in testExtractor()
283 sizes.add(val32); in testExtractor()
285 sizes.add(val64); in testExtractor()
287 sizes.add(1); in testExtractor()
291 sizes.add(val32); in testExtractor()
293 sizes.add(val32); in testExtractor()
295 sizes.add(val64); in testExtractor()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java170 public static Size getMaxSize(Size[] sizes) { in getMaxSize() argument
171 if (sizes == null || sizes.length == 0) { in getMaxSize()
175 Size maxSize = sizes[0]; in getMaxSize()
177 for (int i = 1; i < sizes.length; i++) { in getMaxSize()
178 int area = sizes[i].getWidth() * sizes[i].getHeight(); in getMaxSize()
180 (area == maxArea && sizes[i].getWidth() > maxSize.getWidth())) { in getMaxSize()
181 maxSize = sizes[i]; in getMaxSize()
DItsSerializer.java142 Size sizes[] = map.getOutputSizes(fmts[fi]); in serializeStreamConfigurationMap() local
143 if (sizes != null) { in serializeStreamConfigurationMap()
144 for (int si = 0; si < Array.getLength(sizes); si++) { in serializeStreamConfigurationMap()
147 obj.put("width",sizes[si].getWidth()); in serializeStreamConfigurationMap()
148 obj.put("height", sizes[si].getHeight()); in serializeStreamConfigurationMap()
151 map.getOutputMinFrameDuration(fmts[fi],sizes[si])); in serializeStreamConfigurationMap()
155 sizes = map.getHighResolutionOutputSizes(fmts[fi]); in serializeStreamConfigurationMap()
156 if (sizes != null) { in serializeStreamConfigurationMap()
157 for (int si = 0; si < Array.getLength(sizes); si++) { in serializeStreamConfigurationMap()
160 obj.put("width",sizes[si].getWidth()); in serializeStreamConfigurationMap()
[all …]
DItsService.java1080 Size sizes[] = ItsUtils.getYuvOutputSizes(c);
1084 outputSizes[0] = sizes[0];
1356 Size sizes[];
1360 sizes = ItsUtils.getYuvOutputSizes(cameraCharacteristics);
1363 sizes = ItsUtils.getJpegOutputSizes(cameraCharacteristics);
1366 sizes = ItsUtils.getRaw16OutputSizes(cameraCharacteristics);
1369 sizes = ItsUtils.getRaw10OutputSizes(cameraCharacteristics);
1372 sizes = ItsUtils.getRaw12OutputSizes(cameraCharacteristics);
1375 sizes = ItsUtils.getRaw16OutputSizes(cameraCharacteristics);
1379 sizes = ItsUtils.getRaw16OutputSizes(cameraCharacteristics);
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8428/
Dpoc.c64 __u64 sizes; /* Ptr to u32 type array, holindg sizes of memory member
166 g_op_list.sizes = (__u64)malloc(MAX_HANDLE_NUM * 4); in prepare_data()
168 ((int*)(g_op_list.sizes))[i] = 0xFFFF0000; in prepare_data()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1259 List<Size> sizes = new ArrayList<Size>(); in getSupportedPreviewSizes() local
1262 sizes.add(sz); in getSupportedPreviewSizes()
1265 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedPreviewSizes()
1303 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager); in getSortedSizesForFormat() local
1307 for (Size sz : sizes) { in getSortedSizesForFormat()
1313 sortedSizes = Arrays.asList(sizes); in getSortedSizesForFormat()
1347 List<Size> sizes = new ArrayList<Size>(); in getSupportedVideoSizes() local
1350 sizes.add(sz); in getSupportedVideoSizes()
1353 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedVideoSizes()
1376 List<Size> sizes = getSupportedPreviewSizes(cameraId, cameraManager, null); in getMinPreviewSize() local
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java636 Size[] sizes = getValueFromKeyNonNull(key); in getAvailableThumbnailSizesChecked() local
637 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked()
654 return sizes; in getAvailableThumbnailSizesChecked()
1460 Size[] sizes = null; in getAvailableSizesForFormatChecked() local
1473 sizes = new Size[slowSizeList.length + fastSizeList.length]; in getAvailableSizesForFormatChecked()
1474 System.arraycopy(fastSizeList, 0, sizes, 0, fastSizeList.length); in getAvailableSizesForFormatChecked()
1475 … System.arraycopy(slowSizeList, 0, sizes, fastSizeList.length, slowSizeList.length); in getAvailableSizesForFormatChecked()
1477 sizes = fastSizeList; in getAvailableSizesForFormatChecked()
1479 sizes = slowSizeList; in getAvailableSizesForFormatChecked()
1483 sizes = config.getInputSizes(format); in getAvailableSizesForFormatChecked()
[all …]
DCameraMetadataGetter.java311 Size sizes[] = map.getOutputSizes(fmts[fi]); in serializeStreamConfigurationMap() local
312 if (sizes != null) { in serializeStreamConfigurationMap()
313 for (int si = 0; si < Array.getLength(sizes); si++) { in serializeStreamConfigurationMap()
316 obj.put("width", sizes[si].getWidth()); in serializeStreamConfigurationMap()
317 obj.put("height", sizes[si].getHeight()); in serializeStreamConfigurationMap()
320 map.getOutputMinFrameDuration(fmts[fi], sizes[si])); in serializeStreamConfigurationMap()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java144 Size sizes[] = map.getOutputSizes(fmts[fi]); in storeStreamConfigurationMap() local
145 if (sizes != null) { in storeStreamConfigurationMap()
146 for (int si = 0; si < Array.getLength(sizes); si++) { in storeStreamConfigurationMap()
149 mStore.addResult("width", sizes[si].getWidth()); in storeStreamConfigurationMap()
150 mStore.addResult("height", sizes[si].getHeight()); in storeStreamConfigurationMap()
153 map.getOutputMinFrameDuration(fmts[fi], sizes[si])); in storeStreamConfigurationMap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java388 final List<Camera.Size> sizes = camera.getParameters() in showNextDialogToChoosePreviewSize() local
390 String[] choices = new String[sizes.size()]; in showNextDialogToChoosePreviewSize()
391 for (int i = 0; i < sizes.size(); ++i) { in showNextDialogToChoosePreviewSize()
392 Camera.Size size = sizes.get(i); in showNextDialogToChoosePreviewSize()
413 Camera.Size size = sizes.get(which); in showNextDialogToChoosePreviewSize()
/cts/tests/tests/media/src/android/media/cts/
DCamcorderProfileTest.java370 private boolean isSizeSupported(int width, int height, List<Size> sizes) { in isSizeSupported() argument
371 if (sizes == null) return true; in isSizeSupported()
373 for (Size size: sizes) { in isSizeSupported()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java378 private Camera.Size getOptimalPreviewSize(List<Camera.Size> sizes, int w, in getOptimalPreviewSize() argument
382 if (sizes == null) return null; in getOptimalPreviewSize()
394 for (Camera.Size size : sizes) { in getOptimalPreviewSize()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java175 List<Size> sizes = getSortedSizesForFormat(mCamera.getId(), mCameraManager, format, null); in readerWriterFormatTestByCamera() local
176 Size maxSize = sizes.get(0); in readerWriterFormatTestByCamera()
DStaticMetadataTest.java547 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(ImageFormat.YUV_420_888, in getFpsForMaxSize() local
549 Size maxSize = CameraTestUtils.getMaxSize(sizes); in getFpsForMaxSize()
DReprocessCaptureTest.java1433 Size[] sizes = mStaticInfo.getAvailableSizesForFormatChecked(format, direction); in getMaxSize() local
1434 return getAscendingOrderSizes(Arrays.asList(sizes), /*ascending*/false).get(0); in getMaxSize()
/cts/apps/CameraITS/tests/scene4/
Dtest_aspect_ratio_and_crop.py330 sizes = its.objects.get_available_output_sizes(
332 if not sizes: # device might not support RAW
334 size_cmpr = sizes[0]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsmall_structs.rscript37 // char arrays of various sizes. The second set of tests,
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java884 List<Size> sizes = p.getSupportedJpegThumbnailSizes(); in testJpegThumbnailSizeByCamera() local
885 assertTrue(sizes.size() >= 2); in testJpegThumbnailSizeByCamera()
886 assertTrue(sizes.contains(size)); in testJpegThumbnailSizeByCamera()
887 assertTrue(sizes.contains(mCamera.new Size(0, 0))); in testJpegThumbnailSizeByCamera()
1316 List<Size> sizes = parameters.getSupportedPreviewSizes(); in setPreviewSizeByProfile() local
1319 for (Size size: sizes) { in setPreviewSizeByProfile()