/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | UserActivityEmulator.java | 42 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/ |
D | native-media-jni.cpp | 265 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/ |
D | ItsUtils.java | 170 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()
|
D | ItsSerializer.java | 142 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 …]
|
D | ItsService.java | 1080 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/ |
D | poc.c | 64 __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/ |
D | CameraTestUtils.java | 1259 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/ |
D | StaticMetadata.java | 636 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 …]
|
D | CameraMetadataGetter.java | 311 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/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | PhotoCaptureActivity.java | 388 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/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
D | CameraDeviceInfo.java | 144 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/tests/tests/media/src/android/media/cts/ |
D | CamcorderProfileTest.java | 369 private boolean isSizeSupported(int width, int height, List<Size> sizes) { in isSizeSupported() argument 370 if (sizes == null) return true; in isSizeSupported() 372 for (Size size: sizes) { in isSizeSupported()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ImageWriterTest.java | 175 List<Size> sizes = getSortedSizesForFormat(mCamera.getId(), mCameraManager, format, null); in readerWriterFormatTestByCamera() local 176 Size maxSize = sizes.get(0); in readerWriterFormatTestByCamera()
|
D | StaticMetadataTest.java | 547 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(ImageFormat.YUV_420_888, in getFpsForMaxSize() local 549 Size maxSize = CameraTestUtils.getMaxSize(sizes); in getFpsForMaxSize()
|
D | ReprocessCaptureTest.java | 1433 Size[] sizes = mStaticInfo.getAvailableSizesForFormatChecked(format, direction); in getMaxSize() local 1434 return getAscendingOrderSizes(Arrays.asList(sizes), /*ascending*/false).get(0); in getMaxSize()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 378 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/apps/CameraITS/tests/scene4/ |
D | test_aspect_ratio_and_crop.py | 328 sizes = its.objects.get_available_output_sizes( 330 if not sizes: # device might not support RAW 332 size_cmpr = sizes[0]
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraTest.java | 884 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()
|