/frameworks/base/core/tests/coretests/src/android/text/ |
D | DynamicLayoutBlocksTest.java | 75 private void assertState(int[] sizes, int[] indices) { in assertState() argument 78 assertEquals(sizes.length, dl.getNumberOfBlocks()); in assertState() 81 int[] ends = new int[sizes.length]; in assertState() 83 ends[i] = i == 0 ? (sizes[0] == 0 ? 0 : sizes[0] - 1) : ends[i - 1] + sizes[i]; in assertState() 92 private void assertState(int[] sizes) { in assertState() argument 93 int[] ids = new int[sizes.length]; in assertState() 94 for (int i = 0; i < sizes.length; i++) { in assertState() 97 assertState(sizes, ids); in assertState()
|
/frameworks/rs/ |
D | rsClosure.cpp | 15 const int* sizes, size_t sizes_length, in rsi_ClosureCreate() argument 26 sizes, (const Closure**)depClosures, in rsi_ClosureCreate() 36 const int* sizes, const size_t sizes_length) { in rsi_InvokeClosureCreate() argument 41 sizes); in rsi_InvokeClosureCreate() 64 const int* sizes, in Closure() argument 82 mGlobals[fieldIDs[i]] = make_pair(values[i], sizes[i]); in Closure() 115 const int64_t* values, const int* sizes) : in Closure() argument 122 mGlobals[fieldIDs[i]] = make_pair(values[i], sizes[i]); in Closure()
|
D | rsClosure.h | 28 const int* sizes, // size for data type. -1 indicates an allocation. 38 const int* sizes); // size for data type. -1 indicates an allocation.
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | SizeAreaComparator.java | 66 public static Size findLargestByArea(List<Size> sizes) { in findLargestByArea() argument 67 checkNotNull(sizes, "sizes must not be null"); in findLargestByArea() 69 return Collections.max(sizes, new SizeAreaComparator()); in findLargestByArea()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | SizeAreaComparator.java | 67 public static Camera.Size findLargestByArea(List<Camera.Size> sizes) { in findLargestByArea() argument 68 checkNotNull(sizes, "sizes must not be null"); in findLargestByArea() 70 return Collections.max(sizes, new SizeAreaComparator()); in findLargestByArea()
|
D | LegacyCameraDevice.java | 349 Size[] sizes = streamConfigurations.getOutputSizes(surfaceType); in configureOutputs() local 350 if (sizes == null) { in configureOutputs() 356 sizes = streamConfigurations.getOutputSizes(ImageFormat.YUV_420_888); in configureOutputs() 358 sizes = streamConfigurations.getOutputSizes(ImageFormat.JPEG); in configureOutputs() 362 if (!ArrayUtils.contains(sizes, s)) { in configureOutputs() 363 if (flexibleConsumer && (s = findClosestSize(s, sizes)) != null) { in configureOutputs() 366 String reason = (sizes == null) ? "format is invalid." : in configureOutputs() 367 ("size not in valid set: " + Arrays.toString(sizes)); in configureOutputs()
|
D | LegacyMetadataMapper.java | 730 Size[] sizes = convertSizeListToArray(thumbnailSizes); in mapJpeg() local 731 Arrays.sort(sizes, new android.hardware.camera2.utils.SizeAreaComparator()); in mapJpeg() 732 m.set(JPEG_AVAILABLE_THUMBNAIL_SIZES, sizes); in mapJpeg() 1022 ArrayList<StreamConfiguration> configs, int format, List<Camera.Size> sizes) { in appendStreamConfig() argument 1023 for (Camera.Size size : sizes) { in appendStreamConfig() 1424 Size[] sizes = c.get(CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES); in createRequestTemplate() local 1425 m.set(CaptureRequest.JPEG_THUMBNAIL_SIZE, (sizes.length > 1) ? sizes[1] : sizes[0]); in createRequestTemplate()
|
D | LegacyRequestMapper.java | 423 List<Camera.Size> sizes = params.getSupportedJpegThumbnailSizes(); in convertRequestMetadata() local 425 if (sizes != null && sizes.size() > 0) { in convertRequestMetadata() 427 boolean invalidSize = (s == null) ? false : !ParameterUtils.containsSize(sizes, in convertRequestMetadata()
|
/frameworks/av/camera/ |
D | CameraParameters2.cpp | 210 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) in parseSizesList() argument 226 sizes.push(Size(width, height)); in parseSizesList() 259 void CameraParameters2::getSupportedPreviewSizes(Vector<Size> &sizes) const in getSupportedPreviewSizes() 262 parseSizesList(previewSizesStr, sizes); in getSupportedPreviewSizes() 280 void CameraParameters2::getSupportedVideoSizes(Vector<Size> &sizes) const in getSupportedVideoSizes() 283 parseSizesList(videoSizesStr, sizes); in getSupportedVideoSizes() 336 void CameraParameters2::getSupportedPictureSizes(Vector<Size> &sizes) const in getSupportedPictureSizes() 339 parseSizesList(pictureSizesStr, sizes); in getSupportedPictureSizes()
|
D | CameraParameters.cpp | 322 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) in parseSizesList() argument 338 sizes.push(Size(width, height)); in parseSizesList() 371 void CameraParameters::getSupportedPreviewSizes(Vector<Size> &sizes) const in getSupportedPreviewSizes() 374 parseSizesList(previewSizesStr, sizes); in getSupportedPreviewSizes() 392 void CameraParameters::getSupportedVideoSizes(Vector<Size> &sizes) const in getSupportedVideoSizes() 395 parseSizesList(videoSizesStr, sizes); in getSupportedVideoSizes() 442 void CameraParameters::getSupportedPictureSizes(Vector<Size> &sizes) const in getSupportedPictureSizes() 445 parseSizesList(pictureSizesStr, sizes); in getSupportedPictureSizes()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | StreamConfigurationMap.java | 640 Size[] sizes = new Size[sizeCount]; in getHighSpeedVideoSizesFor() local 644 sizes[i++] = config.getSize(); in getHighSpeedVideoSizesFor() 647 return sizes; in getHighSpeedVideoSizesFor() 1284 Size[] sizes = new Size[sizesCount]; in getInternalFormatSizes() local 1313 sizes[sizeIndex++] = config.getSize(); in getInternalFormatSizes() 1322 return sizes; in getInternalFormatSizes() 1483 Size[] sizes = getOutputSizes(format); in appendOutputsString() local 1484 for (Size size : sizes) { in appendOutputsString() 1503 Size[] sizes = getHighResolutionOutputSizes(format); in appendHighResOutputsString() local 1504 if (sizes == null) continue; in appendHighResOutputsString() [all …]
|
/frameworks/av/camera/include/camera/ |
D | CameraParameters2.h | 68 void getSupportedPreviewSizes(Vector<Size> &sizes) const; 88 void getSupportedVideoSizes(Vector<Size> &sizes) const; 106 void getSupportedPictureSizes(Vector<Size> &sizes) const;
|
D | CameraParameters.h | 61 void getSupportedPreviewSizes(Vector<Size> &sizes) const; 81 void getSupportedVideoSizes(Vector<Size> &sizes) const; 98 void getSupportedPictureSizes(Vector<Size> &sizes) const;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 1040 List<Size> sizes = new ArrayList<Size>(); in getSupportedPreviewSizes() local 1043 sizes.add(sz); in getSupportedPreviewSizes() 1046 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedPreviewSizes() 1084 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager); in getSortedSizesForFormat() local 1088 for (Size sz : sizes) { in getSortedSizesForFormat() 1094 sortedSizes = Arrays.asList(sizes); in getSortedSizesForFormat() 1128 List<Size> sizes = new ArrayList<Size>(); in getSupportedVideoSizes() local 1131 sizes.add(sz); in getSupportedVideoSizes() 1134 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedVideoSizes() 1152 List<Size> sizes = getSupportedPreviewSizes(cameraId, cameraManager, null); in getMinPreviewSize() local [all …]
|
D | StaticMetadata.java | 554 Size[] sizes = getValueFromKeyNonNull(key); in getAvailableThumbnailSizesChecked() local 555 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked() 572 return sizes; in getAvailableThumbnailSizesChecked() 1370 Size[] sizes = null; in getAvailableSizesForFormatChecked() local 1383 sizes = new Size[slowSizeList.length + fastSizeList.length]; in getAvailableSizesForFormatChecked() 1384 System.arraycopy(fastSizeList, 0, sizes, 0, fastSizeList.length); in getAvailableSizesForFormatChecked() 1385 … System.arraycopy(slowSizeList, 0, sizes, fastSizeList.length, slowSizeList.length); in getAvailableSizesForFormatChecked() 1387 sizes = fastSizeList; in getAvailableSizesForFormatChecked() 1389 sizes = slowSizeList; in getAvailableSizesForFormatChecked() 1393 sizes = config.getInputSizes(format); in getAvailableSizesForFormatChecked() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptGroup.java | 128 int[] sizes = new int[numValues]; in Closure() local 136 values, sizes, depClosures, depFieldIDs); in Closure() 143 values, sizes, depClosures, depFieldIDs); in Closure() 148 fieldIDs, values, sizes, depClosures, depFieldIDs); in Closure() 168 int[] sizes = new int[numValues]; in Closure() local 178 sizes, depClosures, depFieldIDs); in Closure() 183 values, sizes); in Closure() 209 long[] values, int[] sizes, in retrieveValueAndDependenceInfo() argument 232 sizes[index] = 0; in retrieveValueAndDependenceInfo() 236 sizes[index] = vs.size; in retrieveValueAndDependenceInfo()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | Size.java | 67 public static String listToString(List<Size> sizes) { in listToString() argument 69 for (Size s : sizes) { in listToString()
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
D | ScriptGroup.java | 141 int[] sizes = new int[numValues]; in Closure() local 149 values, sizes, depClosures, depFieldIDs); in Closure() 156 values, sizes, depClosures, depFieldIDs); in Closure() 161 fieldIDs, values, sizes, depClosures, depFieldIDs); in Closure() 184 int[] sizes = new int[numValues]; in Closure() local 194 sizes, depClosures, depFieldIDs); in Closure() 199 values, sizes); in Closure() 206 long[] values, int[] sizes, in retrieveValueAndDependenceInfo() argument 229 sizes[index] = 0; in retrieveValueAndDependenceInfo() 233 sizes[index] = vs.size; in retrieveValueAndDependenceInfo()
|
/frameworks/av/media/libstagefright/ |
D | CameraSource.cpp | 313 Vector<Size>& sizes) { in getSupportedVideoSizes() argument 316 params.getSupportedVideoSizes(sizes); in getSupportedVideoSizes() 317 if (sizes.size() == 0) { in getSupportedVideoSizes() 319 params.getSupportedPreviewSizes(sizes); in getSupportedVideoSizes() 359 Vector<Size> sizes; in configureCamera() local 361 getSupportedVideoSizes(*params, &isSetVideoSizeSupportedByCamera, sizes); in configureCamera() 364 if (!isVideoSizeSupported(width, height, sizes)) { in configureCamera() 441 Vector<Size> sizes; in checkVideoSize() local 442 params.getSupportedVideoSizes(sizes); in checkVideoSize() 443 if (sizes.size() == 0) { in checkVideoSize()
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 461 Vector<Size> sizes; in getSmallestSurfaceSize() local 463 mParameters.getSupportedPreviewSizes(sizes); in getSmallestSurfaceSize() 464 for (size_t i = 0; i < sizes.size(); i++) { in getSmallestSurfaceSize() 465 Size s = sizes[i]; in getSmallestSurfaceSize()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 741 String sizes = null; in updateTcpBufferSizes() local 762 sizes = split[1]; in updateTcpBufferSizes() 767 if (sizes == null) { in updateTcpBufferSizes() 773 sizes = TCP_BUFFER_SIZES_GPRS; in updateTcpBufferSizes() 776 sizes = TCP_BUFFER_SIZES_EDGE; in updateTcpBufferSizes() 779 sizes = TCP_BUFFER_SIZES_UMTS; in updateTcpBufferSizes() 782 sizes = TCP_BUFFER_SIZES_1XRTT; in updateTcpBufferSizes() 787 sizes = TCP_BUFFER_SIZES_EVDO; in updateTcpBufferSizes() 790 sizes = TCP_BUFFER_SIZES_EHRPD; in updateTcpBufferSizes() 793 sizes = TCP_BUFFER_SIZES_HSDPA; in updateTcpBufferSizes() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | Parameters.h | 381 status_t getFilteredSizes(Size limit, Vector<Size> *sizes); 422 Size getMaxSize(const Vector<Size>& sizes);
|
D | Parameters.cpp | 2846 status_t Parameters::getFilteredSizes(Size limit, Vector<Size> *sizes) { in getFilteredSizes() argument 2851 if (sizes == NULL) { in getFilteredSizes() 2855 sizes->clear(); in getFilteredSizes() 2864 sizes->push(sz); in getFilteredSizes() 2868 if (sizes->isEmpty()) { in getFilteredSizes() 2901 Parameters::Size Parameters::getMaxSize(const Vector<Parameters::Size> &sizes) { in getMaxSize() argument 2903 for (size_t i = 0; i < sizes.size(); i++) { in getMaxSize() 2904 if (sizes[i].width > maxSize.width || in getMaxSize() 2905 (sizes[i].width == maxSize.width && sizes[i].height > maxSize.height )) { in getMaxSize() 2906 maxSize = sizes[i]; in getMaxSize() [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 498 uint64_t sizes[nElems]; in start() local 507 sizes[i] = e->mSize; in start() 514 mInfoSize = sizes[3]; in start()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | CameraMetadataTest.java | 1315 android.util.Size[] sizes; in checkStreamConfigurationMapByFormatSize() local 1320 sizes = configMap.getOutputSizes(IMPLEMENTATION_DEFINED_OUTPUT_CLASS); in checkStreamConfigurationMapByFormatSize() 1324 sizes = configMap.getOutputSizes(format); in checkStreamConfigurationMapByFormatSize() 1331 sizes = configMap.getInputSizes(format); in checkStreamConfigurationMapByFormatSize() 1338 assertArrayContains(expectedSize, sizes); in checkStreamConfigurationMapByFormatSize()
|