/frameworks/base/core/tests/coretests/src/android/text/ |
D | DynamicLayoutBlocksTest.java | 81 private void assertState(int[] sizes, int[] indices) { in assertState() argument 84 assertEquals(sizes.length, dl.getNumberOfBlocks()); in assertState() 87 int[] ends = new int[sizes.length]; in assertState() 89 ends[i] = i == 0 ? (sizes[0] == 0 ? 0 : sizes[0] - 1) : ends[i - 1] + sizes[i]; in assertState() 98 private void assertState(int[] sizes) { in assertState() argument 99 int[] ids = new int[sizes.length]; in assertState() 100 for (int i = 0; i < sizes.length; i++) { in assertState() 103 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 | 391 Size[] sizes = streamConfigurations.getOutputSizes(surfaceType); in configureOutputs() local 392 if (sizes == null) { in configureOutputs() 398 sizes = streamConfigurations.getOutputSizes(ImageFormat.YUV_420_888); in configureOutputs() 400 sizes = streamConfigurations.getOutputSizes(ImageFormat.JPEG); in configureOutputs() 404 if (!ArrayUtils.contains(sizes, s)) { in configureOutputs() 405 if (flexibleConsumer && (s = findClosestSize(s, sizes)) != null) { in configureOutputs() 408 String reason = (sizes == null) ? "format is invalid." : in configureOutputs() 409 ("size not in valid set: " + Arrays.toString(sizes)); in configureOutputs()
|
D | LegacyMetadataMapper.java | 737 Size[] sizes = convertSizeListToArray(thumbnailSizes); in mapJpeg() local 738 Arrays.sort(sizes, new android.hardware.camera2.utils.SizeAreaComparator()); in mapJpeg() 739 m.set(JPEG_AVAILABLE_THUMBNAIL_SIZES, sizes); in mapJpeg() 1031 ArrayList<StreamConfiguration> configs, int format, List<Camera.Size> sizes) { in appendStreamConfig() argument 1032 for (Camera.Size size : sizes) { in appendStreamConfig() 1433 Size[] sizes = c.get(CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES); in createRequestTemplate() local 1434 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 | 211 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) in parseSizesList() argument 227 sizes.push(Size(width, height)); in parseSizesList() 260 void CameraParameters2::getSupportedPreviewSizes(Vector<Size> &sizes) const in getSupportedPreviewSizes() 263 parseSizesList(previewSizesStr, sizes); in getSupportedPreviewSizes() 281 void CameraParameters2::getSupportedVideoSizes(Vector<Size> &sizes) const in getSupportedVideoSizes() 284 parseSizesList(videoSizesStr, sizes); in getSupportedVideoSizes() 337 void CameraParameters2::getSupportedPictureSizes(Vector<Size> &sizes) const in getSupportedPictureSizes() 340 parseSizesList(pictureSizesStr, sizes); in getSupportedPictureSizes()
|
D | CameraParameters.cpp | 323 static void parseSizesList(const char *sizesStr, Vector<Size> &sizes) in parseSizesList() argument 339 sizes.push(Size(width, height)); in parseSizesList() 372 void CameraParameters::getSupportedPreviewSizes(Vector<Size> &sizes) const in getSupportedPreviewSizes() 375 parseSizesList(previewSizesStr, sizes); in getSupportedPreviewSizes() 393 void CameraParameters::getSupportedVideoSizes(Vector<Size> &sizes) const in getSupportedVideoSizes() 396 parseSizesList(videoSizesStr, sizes); in getSupportedVideoSizes() 443 void CameraParameters::getSupportedPictureSizes(Vector<Size> &sizes) const in getSupportedPictureSizes() 446 parseSizesList(pictureSizesStr, sizes); in getSupportedPictureSizes()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | StreamConfigurationMap.java | 823 Size[] sizes = new Size[sizeCount]; in getHighSpeedVideoSizesFor() local 827 sizes[i++] = config.getSize(); in getHighSpeedVideoSizesFor() 830 return sizes; in getHighSpeedVideoSizesFor() 1513 Size[] sizes = new Size[sizesCount]; in getInternalFormatSizes() local 1548 sizes[sizeIndex++] = config.getSize(); in getInternalFormatSizes() 1563 sizes = new Size[0]; in getInternalFormatSizes() 1565 sizes = Arrays.copyOf(sizes, sizeIndex); in getInternalFormatSizes() 1572 return sizes; in getInternalFormatSizes() 1750 Size[] sizes = getOutputSizes(format); in appendOutputsString() local 1751 for (Size size : sizes) { in appendOutputsString() [all …]
|
D | MandatoryStreamCombination.java | 848 List<Size> sizes = null; in generateAvailableCombinations() local 850 sizes = availableRawSizes; in generateAvailableCombinations() 855 sizes = availableSizes.get(pair); in generateAvailableCombinations() 860 streamInfo = new MandatoryStreamInformation(sizes, template.mFormat); in generateAvailableCombinations() 933 Size[] sizes = allSizes.get(intFormat); in enumerateAvailableSizes() local 936 availableSizes.put(pair, getSizesWithinBound(sizes, vgaSize)); in enumerateAvailableSizes() 939 availableSizes.put(pair, getSizesWithinBound(sizes, previewMaxSize)); in enumerateAvailableSizes() 942 availableSizes.put(pair, getSizesWithinBound(sizes, recordingMaxSize)); in enumerateAvailableSizes() 945 availableSizes.put(pair, Arrays.asList(sizes)); in enumerateAvailableSizes() 955 private static @Nullable List<Size> getSizesWithinBound(@NonNull Size[] sizes, in getSizesWithinBound() argument [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 | 1078 List<Size> sizes = new ArrayList<Size>(); in getSupportedPreviewSizes() local 1081 sizes.add(sz); in getSupportedPreviewSizes() 1084 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedPreviewSizes() 1122 Size[] sizes = getSupportedSizeForFormat(format, cameraId, cameraManager); in getSortedSizesForFormat() local 1126 for (Size sz : sizes) { in getSortedSizesForFormat() 1132 sortedSizes = Arrays.asList(sizes); in getSortedSizesForFormat() 1166 List<Size> sizes = new ArrayList<Size>(); in getSupportedVideoSizes() local 1169 sizes.add(sz); in getSupportedVideoSizes() 1172 return getAscendingOrderSizes(sizes, /*ascending*/false); in getSupportedVideoSizes() 1190 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/androidx/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 | 315 Vector<Size>& sizes) { in getSupportedVideoSizes() argument 318 params.getSupportedVideoSizes(sizes); in getSupportedVideoSizes() 319 if (sizes.size() == 0) { in getSupportedVideoSizes() 321 params.getSupportedPreviewSizes(sizes); in getSupportedVideoSizes() 361 Vector<Size> sizes; in configureCamera() local 363 getSupportedVideoSizes(*params, &isSetVideoSizeSupportedByCamera, sizes); in configureCamera() 366 if (!isVideoSizeSupported(width, height, sizes)) { in configureCamera() 443 Vector<Size> sizes; in checkVideoSize() local 444 params.getSupportedVideoSizes(sizes); in checkVideoSize() 445 if (sizes.size() == 0) { in checkVideoSize()
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 459 Vector<Size> sizes; in getSmallestSurfaceSize() local 461 mParameters.getSupportedPreviewSizes(sizes); in getSmallestSurfaceSize() 462 for (size_t i = 0; i < sizes.size(); i++) { in getSmallestSurfaceSize() 463 Size s = sizes[i]; in getSmallestSurfaceSize()
|
/frameworks/ml/nn/common/include/ |
D | CpuOperationUtils.h | 42 dims.sizes[i] = static_cast<int>(getSizeOfDimension(shape, src)); in convertShapeToDims() 44 dims.sizes[i] = 1; in convertShapeToDims() 50 dims.strides[i] = dims.strides[i - 1] * dims.sizes[i - 1]; in convertShapeToDims()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 1064 String sizes = null; in updateTcpBufferSizes() local 1096 sizes = split[1]; in updateTcpBufferSizes() 1101 if (sizes == null) { in updateTcpBufferSizes() 1107 sizes = TCP_BUFFER_SIZES_GPRS; in updateTcpBufferSizes() 1110 sizes = TCP_BUFFER_SIZES_EDGE; in updateTcpBufferSizes() 1113 sizes = TCP_BUFFER_SIZES_UMTS; in updateTcpBufferSizes() 1116 sizes = TCP_BUFFER_SIZES_1XRTT; in updateTcpBufferSizes() 1121 sizes = TCP_BUFFER_SIZES_EVDO; in updateTcpBufferSizes() 1124 sizes = TCP_BUFFER_SIZES_EHRPD; in updateTcpBufferSizes() 1127 sizes = TCP_BUFFER_SIZES_HSDPA; in updateTcpBufferSizes() [all …]
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.cpp | 1873 struct external_sizes sizes = {}; in getExternalSizesForUserWithQuota() local 1879 sizes.totalSize = space; in getExternalSizesForUserWithQuota() 1884 sizes.audioSize = space; in getExternalSizesForUserWithQuota() 1889 sizes.videoSize = space; in getExternalSizesForUserWithQuota() 1894 sizes.imageSize = space; in getExternalSizesForUserWithQuota() 1898 sizes.obbSize = space; in getExternalSizesForUserWithQuota() 1911 sizes.audioSize = space; in getExternalSizesForUserWithQuota() 1917 sizes.videoSize = space; in getExternalSizesForUserWithQuota() 1923 sizes.imageSize = space; in getExternalSizesForUserWithQuota() 1949 sizes.totalSize = totalSize; in getExternalSizesForUserWithQuota() [all …]
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | Parameters.cpp | 2961 status_t Parameters::getFilteredSizes(Size limit, Vector<Size> *sizes) { in getFilteredSizes() argument 2966 if (sizes == NULL) { in getFilteredSizes() 2970 sizes->clear(); in getFilteredSizes() 2984 sizes->push({sc.width, sc.height}); in getFilteredSizes() 2988 if (sizes->isEmpty()) { in getFilteredSizes() 3021 Parameters::Size Parameters::getMaxSize(const Vector<Parameters::Size> &sizes) { in getMaxSize() argument 3023 for (size_t i = 0; i < sizes.size(); i++) { in getMaxSize() 3024 if (sizes[i].width > maxSize.width || in getMaxSize() 3025 (sizes[i].width == maxSize.width && sizes[i].height > maxSize.height )) { in getMaxSize() 3026 maxSize = sizes[i]; in getMaxSize() [all …]
|