Home
last modified time | relevance | path

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

12

/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.java172 public static Size getMaxSize(Size[] sizes) { in getMaxSize() argument
173 if (sizes == null || sizes.length == 0) { in getMaxSize()
177 Size maxSize = sizes[0]; in getMaxSize()
179 for (int i = 1; i < sizes.length; i++) { in getMaxSize()
180 int area = sizes[i].getWidth() * sizes[i].getHeight(); in getMaxSize()
182 (area == maxArea && sizes[i].getWidth() > maxSize.getWidth())) { in getMaxSize()
183 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.java1227 Size sizes[] = ItsUtils.getYuvOutputSizes(c);
1231 outputSizes[0] = sizes[0];
1525 Size sizes[];
1529 sizes = ItsUtils.getYuvOutputSizes(cameraCharacteristics);
1532 sizes = ItsUtils.getJpegOutputSizes(cameraCharacteristics);
1535 sizes = ItsUtils.getRaw16OutputSizes(cameraCharacteristics);
1538 sizes = ItsUtils.getRaw10OutputSizes(cameraCharacteristics);
1541 sizes = ItsUtils.getRaw12OutputSizes(cameraCharacteristics);
1544 sizes = ItsUtils.getRaw16OutputSizes(cameraCharacteristics);
1548 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/apps/CameraITS/tests/scene4/
Dtest_multi_camera_alignment.py135 def determine_valid_out_surfaces(cam, props, fmt, cap_camera_ids, sizes): argument
154 'width': sizes[cap_camera_ids[0]][0],
155 'height': sizes[cap_camera_ids[0]][1]},
157 'width': sizes[cap_camera_ids[1]][0],
158 'height': sizes[cap_camera_ids[1]][1]},]
166 'width': sizes[cap_id][0],
167 'height': sizes[cap_id][1]}
Dtest_aspect_ratio_and_crop.py523 sizes = capture_request_utils.get_available_output_sizes(
525 if not sizes: # Device might not support RAW.
527 w_cmpr, h_cmpr = sizes[0][0], sizes[0][1]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java638 Size[] sizes = getValueFromKeyNonNull(key); in getAvailableThumbnailSizesChecked() local
639 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked()
656 return sizes; in getAvailableThumbnailSizesChecked()
1525 Size[] sizes = null; in getAvailableSizesForFormatChecked() local
1538 sizes = new Size[slowSizeList.length + fastSizeList.length]; in getAvailableSizesForFormatChecked()
1539 System.arraycopy(fastSizeList, 0, sizes, 0, fastSizeList.length); in getAvailableSizesForFormatChecked()
1540 … System.arraycopy(slowSizeList, 0, sizes, fastSizeList.length, slowSizeList.length); in getAvailableSizesForFormatChecked()
1542 sizes = fastSizeList; in getAvailableSizesForFormatChecked()
1544 sizes = slowSizeList; in getAvailableSizesForFormatChecked()
1548 sizes = config.getInputSizes(format); in getAvailableSizesForFormatChecked()
[all …]
/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/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1804 List<Size> sizes = new ArrayList<Size>(); in getSupportedPreviewSizes() local
1807 sizes.add(sz); in getSupportedPreviewSizes()
1810 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedPreviewSizes()
1859 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager, maxResolution); in getSortedSizesForFormat() local
1863 for (Size sz : sizes) { in getSortedSizesForFormat()
1869 sortedSizes = Arrays.asList(sizes); in getSortedSizesForFormat()
1903 List<Size> sizes = new ArrayList<Size>(); in getSupportedVideoSizes() local
1906 sizes.add(sz); in getSupportedVideoSizes()
1909 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedVideoSizes()
1932 List<Size> sizes = getSupportedPreviewSizes(cameraId, cameraManager, null); in getMinPreviewSize() local
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiResolutionReprocessCaptureTest.java161 Size[] sizes = pConfig.getInputSizes(format); in testMultiResolutionReprocessCharacteristics() local
166 sizes != null && sizes.length > 0); in testMultiResolutionReprocessCharacteristics()
169 maxSizes.add(CameraTestUtils.getMaxSize(sizes)); in testMultiResolutionReprocessCharacteristics()
771 Size[] sizes = mStaticInfo.getAvailableSizesForFormatChecked(format, direction); in getMaxSize() local
772 return getAscendingOrderSizes(Arrays.asList(sizes), /*ascending*/false).get(0); in getMaxSize()
DMultiResolutionImageReaderTest.java157 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(format, in testMultiResolutionCaptureCharacteristics() local
162 sizes != null && sizes.length > 0); in testMultiResolutionCaptureCharacteristics()
165 maxSizes.add(CameraTestUtils.getMaxSize(sizes)); in testMultiResolutionCaptureCharacteristics()
DImageWriterTest.java221 List<Size> sizes = getSortedSizesForFormat(mCamera.getId(), mCameraManager, format, null); in readerWriterFormatTestByCamera() local
222 Size maxSize = sizes.get(0); in readerWriterFormatTestByCamera()
DStaticMetadataTest.java576 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(ImageFormat.YUV_420_888, in getFpsForMaxSize() local
578 Size maxSize = CameraTestUtils.getMaxSize(sizes); in getFpsForMaxSize()
DRobustnessTest.java2643 List<Size> sizes = new ArrayList<Size>(); in getMaxExternalRecordingSize() local
2646 sizes.add(sz); in getMaxExternalRecordingSize()
2649 List<Size> videoSizes = getAscendingOrderSizes(sizes, /*ascending*/false); in getMaxExternalRecordingSize()
2667 private static Size getMaxSize(Size[] sizes, Size bound) { in getMaxSize() argument
2668 if (sizes == null || sizes.length == 0) { in getMaxSize()
2673 for (Size size : sizes) { in getMaxSize()
2688 assertTrue("No size under bound found: " + Arrays.toString(sizes) + " bound " + bound, in getMaxSize()
DReprocessCaptureTest.java1512 Size[] sizes = mStaticInfo.getAvailableSizesForFormatChecked(format, direction); in getMaxSize() local
1513 return getAscendingOrderSizes(Arrays.asList(sizes), /*ascending*/false).get(0); in getMaxSize()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java166 Size sizes[] = map.getOutputSizes(fmts[fi]); in storeStreamConfigurationMap() local
167 if (sizes != null) { in storeStreamConfigurationMap()
168 for (int si = 0; si < Array.getLength(sizes); si++) { in storeStreamConfigurationMap()
171 mStore.addResult("width", sizes[si].getWidth()); in storeStreamConfigurationMap()
172 mStore.addResult("height", sizes[si].getHeight()); in storeStreamConfigurationMap()
175 map.getOutputMinFrameDuration(fmts[fi], sizes[si])); in storeStreamConfigurationMap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java390 private Camera.Size getOptimalSize(List<Camera.Size> sizes, int w, in getOptimalSize() argument
394 if (sizes == null) return null; in getOptimalSize()
406 for (Camera.Size size : sizes) { in getOptimalSize()
/cts/tests/tests/media/src/android/media/cts/
DCamcorderProfileTest.java521 private boolean isSizeSupported(int width, int height, List<Size> sizes) { in isSizeSupported() argument
522 if (sizes == null) return true; in isSizeSupported()
524 for (Size size: sizes) { in isSizeSupported()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2AndroidTestRule.java181 public void setOrderedPreviewSizes(List<Size> sizes) { in setOrderedPreviewSizes() argument
182 mOrderedPreviewSizes = sizes; in setOrderedPreviewSizes()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsFixedCollectionAdapterTest.java387 List<SizeF> sizes = in testSerializationSize_largeCollectionInSizedRemoteViews() local
394 sizes.stream().collect(Collectors.toMap(Function.identity(), ignored -> { in testSerializationSize_largeCollectionInSizedRemoteViews()
412 List<SizeF> sizes = in testSerializationSize_largeCollectionInSizedRemoteViews_multiPackage()
419 sizes.stream().collect(Collectors.toMap(Function.identity(), ignored -> { in testSerializationSize_largeCollectionInSizedRemoteViews_multiPackage()
DRemoteViewsTest.java556 List<SizeF> sizes = in testWriteToParcel_sizeMap() local
560 for (SizeF size : sizes) { in testWriteToParcel_sizeMap()
/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.java916 List<Size> sizes = p.getSupportedJpegThumbnailSizes(); in testJpegThumbnailSizeByCamera() local
917 assertTrue(sizes.size() >= 2); in testJpegThumbnailSizeByCamera()
918 assertTrue(sizes.contains(size)); in testJpegThumbnailSizeByCamera()
919 assertTrue(sizes.contains(mCamera.new Size(0, 0))); in testJpegThumbnailSizeByCamera()
1339 List<Size> sizes = parameters.getSupportedPreviewSizes(); in setPreviewSizeByProfile() local
1342 for (Size size: sizes) { in setPreviewSizeByProfile()

12