/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 | 392 Size[] sizes = streamConfigurations.getOutputSizes(surfaceType); in configureOutputs() local 393 if (sizes == null) { in configureOutputs() 399 sizes = streamConfigurations.getOutputSizes(ImageFormat.YUV_420_888); in configureOutputs() 401 sizes = streamConfigurations.getOutputSizes(ImageFormat.JPEG); in configureOutputs() 405 if (!ArrayUtils.contains(sizes, s)) { in configureOutputs() 406 if (flexibleConsumer && (s = findClosestSize(s, sizes)) != null) { in configureOutputs() 409 String reason = (sizes == null) ? "format is invalid." : in configureOutputs() 410 ("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() 1040 ArrayList<StreamConfiguration> configs, int format, List<Camera.Size> sizes) { in appendStreamConfig() argument 1041 for (Camera.Size size : sizes) { in appendStreamConfig() 1445 Size[] sizes = c.get(CameraCharacteristics.JPEG_AVAILABLE_THUMBNAIL_SIZES); in createRequestTemplate() local 1446 m.set(CaptureRequest.JPEG_THUMBNAIL_SIZE, (sizes.length > 1) ? sizes[1] : sizes[0]); in createRequestTemplate()
|
/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/layoutlib/bridge/src/android/view/shadow/ |
D | SpotShadowTriangulator.java | 50 int[] sizes = SpotShadowVertexCalculator.getStripSizes(mShadowConfig.getPolyLength()); in triangulate() local 51 for (int i = 0; i < sizes.length; ++i) { in triangulate() 52 mStrips[i] = new float[3 * sizes[i]]; in triangulate()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | StreamConfigurationMap.java | 822 Size[] sizes = new Size[sizeCount]; in getHighSpeedVideoSizesFor() local 826 sizes[i++] = config.getSize(); in getHighSpeedVideoSizesFor() 829 return sizes; in getHighSpeedVideoSizesFor() 1510 Size[] sizes = new Size[sizesCount]; in getInternalFormatSizes() local 1545 sizes[sizeIndex++] = config.getSize(); in getInternalFormatSizes() 1560 sizes = new Size[0]; in getInternalFormatSizes() 1562 sizes = Arrays.copyOf(sizes, sizeIndex); in getInternalFormatSizes() 1569 return sizes; in getInternalFormatSizes() 1747 Size[] sizes = getOutputSizes(format); in appendOutputsString() local 1748 for (Size size : sizes) { in appendOutputsString() [all …]
|
D | MandatoryStreamCombination.java | 758 List<Size> sizes = new ArrayList<Size>(); in getAvailableMandatoryConcurrentStreamCombinations() local 773 sizes.add(sizeChosen); in getAvailableMandatoryConcurrentStreamCombinations() 775 streamInfo = new MandatoryStreamInformation(sizes, template.mFormat); in getAvailableMandatoryConcurrentStreamCombinations() 958 List<Size> sizes = null; in generateAvailableCombinations() local 960 sizes = availableRawSizes; in generateAvailableCombinations() 965 sizes = availableSizes.get(pair); in generateAvailableCombinations() 970 streamInfo = new MandatoryStreamInformation(sizes, template.mFormat); in generateAvailableCombinations() 1043 Size[] sizes = allSizes.get(intFormat); in enumerateAvailableSizes() local 1046 availableSizes.put(pair, getSizesWithinBound(sizes, vgaSize)); in enumerateAvailableSizes() 1049 availableSizes.put(pair, getSizesWithinBound(sizes, previewMaxSize)); in enumerateAvailableSizes() [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/av/services/camera/libcameraservice/tests/ |
D | CameraProviderManagerTest.cpp | 276 int32_t sizes[] = { HAL_PIXEL_FORMAT_BLOB, in TEST() local 278 meta.update(ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS, sizes, in TEST() 279 sizeof(sizes) / sizeof(sizes[0])); in TEST() 280 sizes[0] = HAL_PIXEL_FORMAT_Y16; in TEST() 281 meta.update(ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS, sizes, in TEST() 282 sizeof(sizes) / sizeof(sizes[0])); in TEST()
|
/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 | 1050 String sizes = null; in updateTcpBufferSizes() local 1081 sizes = split[1]; in updateTcpBufferSizes() 1086 if (sizes == null) { in updateTcpBufferSizes() 1092 sizes = TCP_BUFFER_SIZES_GPRS; in updateTcpBufferSizes() 1095 sizes = TCP_BUFFER_SIZES_EDGE; in updateTcpBufferSizes() 1098 sizes = TCP_BUFFER_SIZES_UMTS; in updateTcpBufferSizes() 1101 sizes = TCP_BUFFER_SIZES_1XRTT; in updateTcpBufferSizes() 1106 sizes = TCP_BUFFER_SIZES_EVDO; in updateTcpBufferSizes() 1109 sizes = TCP_BUFFER_SIZES_EHRPD; in updateTcpBufferSizes() 1112 sizes = TCP_BUFFER_SIZES_HSDPA; in updateTcpBufferSizes() [all …]
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.cpp | 1884 struct external_sizes sizes = {}; in getExternalSizesForUserWithQuota() local 1890 sizes.totalSize = space; in getExternalSizesForUserWithQuota() 1895 sizes.audioSize = space; in getExternalSizesForUserWithQuota() 1900 sizes.videoSize = space; in getExternalSizesForUserWithQuota() 1905 sizes.imageSize = space; in getExternalSizesForUserWithQuota() 1909 sizes.obbSize = space; in getExternalSizesForUserWithQuota() 1922 sizes.audioSize = space; in getExternalSizesForUserWithQuota() 1928 sizes.videoSize = space; in getExternalSizesForUserWithQuota() 1934 sizes.imageSize = space; in getExternalSizesForUserWithQuota() 1960 sizes.totalSize = totalSize; in getExternalSizesForUserWithQuota() [all …]
|