Home
last modified time | relevance | path

Searched refs:sizes (Results 1 – 25 of 31) 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/misc/jni/
Dnative-media-jni.cpp160 size_t sizes[numsubsamples]; in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative() local
161 AMediaCodecCryptoInfo_getClearBytes(ci, sizes); in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
162 if (memcmp(clearbytes, sizes, sizeof(size_t) * numsubsamples)) { in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
166 AMediaCodecCryptoInfo_getEncryptedBytes(ci, sizes); in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
167 if (memcmp(encryptedbytes, sizes, sizeof(size_t) * numsubsamples)) { in Java_android_media_misc_cts_NativeDecoderTest_testCryptoInfoNative()
/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_aspect_ratio_and_crop.py302 sizes = capture_request_utils.get_available_output_sizes(
304 if not sizes: # Device might not support RAW.
306 w_cmpr, h_cmpr = sizes[0][0], sizes[0][1]
Dtest_multi_camera_alignment.py134 def determine_valid_out_surfaces(cam, props, fmt, cap_camera_ids, sizes): argument
153 'width': sizes[cap_camera_ids[0]][0],
154 'height': sizes[cap_camera_ids[0]][1]},
156 'width': sizes[cap_camera_ids[1]][0],
157 'height': sizes[cap_camera_ids[1]][1]},]
165 'width': sizes[cap_id][0],
166 'height': sizes[cap_id][1]}
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java200 public static Size getMaxSize(Size[] sizes) { in getMaxSize() argument
201 if (sizes == null || sizes.length == 0) { in getMaxSize()
205 Size maxSize = sizes[0]; in getMaxSize()
207 for (int i = 1; i < sizes.length; i++) { in getMaxSize()
208 int area = sizes[i].getWidth() * sizes[i].getHeight(); in getMaxSize()
210 (area == maxArea && sizes[i].getWidth() > maxSize.getWidth())) { in getMaxSize()
211 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.java2435 Size sizes[];
2439 sizes = ItsUtils.getYuvOutputSizes(cameraCharacteristics);
2442 sizes = ItsUtils.getJpegOutputSizes(cameraCharacteristics);
2445 sizes = ItsUtils.getJpegOutputSizes(cameraCharacteristics);
2449 sizes = ItsUtils.getJpegOutputSizes(cameraCharacteristics);
2453 sizes = ItsUtils.getRaw16OutputSizes(cameraCharacteristics);
2456 sizes = ItsUtils.getRaw16MaxResulolutionOutputSizes(cameraCharacteristics);
2460 sizes = ItsUtils.getRaw16OutputSizes(cameraCharacteristics);
2466 sizes = ItsUtils.getRaw16MaxResulolutionOutputSizes(cameraCharacteristics);
2473 sizes = ItsUtils.getRaw10OutputSizes(cameraCharacteristics);
[all …]
/cts/apps/CameraITS/utils/
Dcapture_request_utils.py435 sizes = get_available_output_sizes('yuv', props, match_ar_size=match_ar)
436 logging.debug('Available YUV sizes: %s', sizes)
441 for size in sizes:
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java695 Size[] sizes = getValueFromKeyNonNull(key); in getAvailableThumbnailSizesChecked() local
696 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked()
713 return sizes; in getAvailableThumbnailSizesChecked()
1614 Size[] sizes = null; in getAvailableSizesForFormatChecked() local
1627 sizes = new Size[slowSizeList.length + fastSizeList.length]; in getAvailableSizesForFormatChecked()
1628 System.arraycopy(fastSizeList, 0, sizes, 0, fastSizeList.length); in getAvailableSizesForFormatChecked()
1629 … System.arraycopy(slowSizeList, 0, sizes, fastSizeList.length, slowSizeList.length); in getAvailableSizesForFormatChecked()
1631 sizes = fastSizeList; in getAvailableSizesForFormatChecked()
1633 sizes = slowSizeList; in getAvailableSizesForFormatChecked()
1637 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/tests/tests/media/decoder/jni/
Dnative-media-jni.cpp308 std::unique_ptr<simplevector<int>[]> sizes(new simplevector<int>[numtracks]); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative() local
414 sizes[tt].add(adler); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
444 numsamples += sizes[i].size(); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
452 int *data = sizes[i].data(); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
453 int len = sizes[i].size(); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java402 final List<Camera.Size> sizes = camera.getParameters() in showNextDialogToChoosePreviewSize() local
404 String[] choices = new String[sizes.size()]; in showNextDialogToChoosePreviewSize()
405 for (int i = 0; i < sizes.size(); ++i) { in showNextDialogToChoosePreviewSize()
406 Camera.Size size = sizes.get(i); in showNextDialogToChoosePreviewSize()
427 Camera.Size size = sizes.get(which); in showNextDialogToChoosePreviewSize()
/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.java162 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(format, in testMultiResolutionCaptureCharacteristics() local
167 sizes != null && sizes.length > 0); in testMultiResolutionCaptureCharacteristics()
170 maxSizes.add(CameraTestUtils.getMaxSize(sizes)); in testMultiResolutionCaptureCharacteristics()
DStaticMetadataTest.java646 Size[] sizes = CameraTestUtils.getSupportedSizeForFormat(ImageFormat.YUV_420_888, in getFpsForMaxSize() local
648 Size maxSize = CameraTestUtils.getMaxSize(sizes); in getFpsForMaxSize()
DImageWriterTest.java427 List<Size> sizes = getSortedSizesForFormat(mCamera.getId(), mCameraManager, format, null); in readerWriterFormatTestByCamera() local
428 Size maxSize = sizes.get(0); in readerWriterFormatTestByCamera()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2090 List<Size> sizes = new ArrayList<Size>(); in getSupportedPreviewSizes() local
2093 sizes.add(sz); in getSupportedPreviewSizes()
2096 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedPreviewSizes()
2145 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager, maxResolution); in getSortedSizesForFormat() local
2149 for (Size sz : sizes) { in getSortedSizesForFormat()
2155 sortedSizes = Arrays.asList(sizes); in getSortedSizesForFormat()
2189 List<Size> sizes = new ArrayList<Size>(); in getSupportedVideoSizes() local
2192 sizes.add(sz); in getSupportedVideoSizes()
2195 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedVideoSizes()
2218 List<Size> sizes = getSupportedPreviewSizes(cameraId, cameraManager, null); in getMinPreviewSize() local
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DCameraDeviceInfo.java170 Size sizes[] = map.getOutputSizes(fmts[fi]); in storeStreamConfigurationMap() local
171 if (sizes != null) { in storeStreamConfigurationMap()
172 for (int si = 0; si < Array.getLength(sizes); si++) { in storeStreamConfigurationMap()
175 mStore.addResult("width", sizes[si].getWidth()); in storeStreamConfigurationMap()
176 mStore.addResult("height", sizes[si].getHeight()); in storeStreamConfigurationMap()
179 map.getOutputMinFrameDuration(fmts[fi], sizes[si])); in storeStreamConfigurationMap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java423 private Camera.Size getOptimalSize(List<Camera.Size> sizes, int w, in getOptimalSize() argument
426 if (sizes == null) return null; in getOptimalSize()
438 for (Camera.Size size : sizes) { in getOptimalSize()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DCamcorderProfileTest.java755 private boolean isSizeSupported(int width, int height, List<Size> sizes) { in isSizeSupported() argument
756 if (sizes == null) return true; in isSizeSupported()
758 for (Size size: sizes) { in isSizeSupported()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderTest.java1302 final Set<Size> sizes = new HashSet<Size>(); in input() local
1309 sizes.add(new Size(s.getWidth(), s.getHeight())); in input()
1316 sizes.add(new Size(s.getWidth(), s.getHeight())); in input()
1336 sizes.removeAll(specificSizes); in input()
1337 specificSizes.addAll(sizes); in input()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2AndroidTestRule.java188 public void setOrderedPreviewSizes(List<Size> sizes) { in setOrderedPreviewSizes() argument
189 mOrderedPreviewSizes = sizes; in setOrderedPreviewSizes()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsFixedCollectionAdapterTest.java396 List<SizeF> sizes = in testSerializationSize_largeCollectionInSizedRemoteViews() local
403 sizes.stream().collect(Collectors.toMap(Function.identity(), ignored -> { in testSerializationSize_largeCollectionInSizedRemoteViews()
421 List<SizeF> sizes = in testSerializationSize_largeCollectionInSizedRemoteViews_multiPackage()
428 sizes.stream().collect(Collectors.toMap(Function.identity(), ignored -> { in testSerializationSize_largeCollectionInSizedRemoteViews_multiPackage()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsmall_structs.rscript37 // char arrays of various sizes. The second set of tests,

12