/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/ |
D | RippleShaderTest.kt | 44 assertThat(rippleShader.rippleSize.sizes.size).isEqualTo(2) in setMaxSize_hasCorrectSizes() 45 assertThat(rippleShader.rippleSize.sizes[0]).isEqualTo(rippleShader.rippleSize.initialSize) in setMaxSize_hasCorrectSizes() 46 val maxSize = rippleShader.rippleSize.sizes[1] in setMaxSize_hasCorrectSizes() 60 assertThat(rippleShader.rippleSize.sizes.size).isEqualTo(3) in setSizeAtProgresses_hasCorrectSizes() 61 assertThat(rippleShader.rippleSize.sizes[0]).isEqualTo(expectedSize0) in setSizeAtProgresses_hasCorrectSizes() 62 assertThat(rippleShader.rippleSize.sizes[1]).isEqualTo(expectedSize1) in setSizeAtProgresses_hasCorrectSizes() 63 assertThat(rippleShader.rippleSize.sizes[2]).isEqualTo(expectedSize2) in setSizeAtProgresses_hasCorrectSizes() 83 assertThat(rippleShader.rippleSize.sizes.size).isEqualTo(5) in setSizeAtProgresses_sizeListIsSortedByT() 84 assertThat(rippleShader.rippleSize.sizes[0]).isEqualTo(expectedSize0) in setSizeAtProgresses_sizeListIsSortedByT() 85 assertThat(rippleShader.rippleSize.sizes[1]).isEqualTo(expectedSize1) in setSizeAtProgresses_sizeListIsSortedByT() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/ |
D | AppWidgetXmlUtilTest.kt | 33 private val sizes = ArrayList<SizeF>() constant 38 sizes.add(SizeF(1.0f, 2.1f)) in setup() 39 sizes.add(SizeF(-9.91f, 6291.134f)) in setup() 40 sizes.add(SizeF(0f, 0f)) in setup() 45 val serializedSizeStr = serializeWidgetSizes(sizes) in serializeWidgetSizes() 54 assertThat(deserializedSizes).isEqualTo(sizes) in deserializeWidgetSizesStr()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/ |
D | RippleShader.kt | 385 @VisibleForTesting var sizes = mutableListOf<SizeAtProgress>() variable in com.android.systemui.surfaceeffects.ripple.RippleSize 408 fun setSizeAtProgresses(vararg sizes: SizeAtProgress) { in setSizeAtProgresses() 410 this.sizes.clear() in setSizeAtProgresses() 413 this.sizes.addAll(sizes) in setSizeAtProgresses() 414 this.sizes.sortBy { it.t } in setSizeAtProgresses() 426 val targetSize = sizes[targetIndex] in update() 427 val prevSize = sizes[prevIndex] in update() 436 if (sizes.isEmpty()) { in updateTargetIndex() 450 var candidate = sizes[currentSizeIndex] in updateTargetIndex() 453 currentSizeIndex = Math.min(currentSizeIndex + 1, sizes.size - 1) in updateTargetIndex() [all …]
|
/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/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 | MandatoryStreamCombination.java | 1429 List<Size> sizes = null; in getAvailableMandatoryStreamCombinationsInternal() local 1432 sizes = availableSizes.get(pair); in getAvailableMandatoryStreamCombinationsInternal() 1439 if (!sdrYuvSizes.equals(new HashSet<>(sizes))) { in getAvailableMandatoryStreamCombinationsInternal() 1450 streamInfo = new MandatoryStreamInformation(sizes, template.mFormat, in getAvailableMandatoryStreamCombinationsInternal() 1571 List<Size> sizes = null; in getAvailableMandatoryStreamUseCaseCombinations() local 1575 sizes = availableSizes.get(pair); in getAvailableMandatoryStreamUseCaseCombinations() 1581 streamInfo = new MandatoryStreamInformation(sizes, template.mFormat, in getAvailableMandatoryStreamUseCaseCombinations() 1640 List<Size> sizes = new ArrayList<Size>(); in getAvailableMandatoryConcurrentStreamCombinations() local 1655 sizes.add(sizeChosen); in getAvailableMandatoryConcurrentStreamCombinations() 1657 streamInfo = new MandatoryStreamInformation(sizes, template.mFormat, in getAvailableMandatoryConcurrentStreamCombinations() [all …]
|
D | StreamConfigurationMap.java | 872 Size[] sizes = new Size[sizeCount]; in getHighSpeedVideoSizesFor() local 876 sizes[i++] = config.getSize(); in getHighSpeedVideoSizesFor() 879 return sizes; in getHighSpeedVideoSizesFor() 1591 Size[] sizes = new Size[sizesCount]; in getInternalFormatSizes() local 1628 sizes[sizeIndex++] = config.getSize(); in getInternalFormatSizes() 1643 sizes = new Size[0]; in getInternalFormatSizes() 1645 sizes = Arrays.copyOf(sizes, sizeIndex); in getInternalFormatSizes() 1652 return sizes; in getInternalFormatSizes() 1852 Size[] sizes = getOutputSizes(format); in appendOutputsString() local 1853 for (Size size : sizes) { in appendOutputsString() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | SyntheticModeManager.java | 54 Map<Size, int[]> sizes = new LinkedHashMap<>(); in createAppSupportedModes() local 70 sizes.put(new Size(mode.getPhysicalWidth(), mode.getPhysicalHeight()), in createAppSupportedModes() 78 for (Map.Entry<Size, int[]> entry: sizes.entrySet()) { in createAppSupportedModes()
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/ |
D | ShaderData.java | 210 int sizes = floatSize | (intSize << 8) | (bitmapSize << 16); in apply() local 211 buffer.writeInt(sizes); in apply() 253 int sizes = buffer.readInt(); in read() local 255 int floatMapSize = sizes & 0xFF; in read() 270 int intMapSize = (sizes >> 8) & 0xFF; in read() 285 int bitmapMapSize = (sizes >> 16) & 0xFF; in read()
|
/frameworks/base/core/java/android/hardware/camera2/extension/ |
D | AdvancedExtender.java | 413 Map<Integer, List<android.util.Size>> sizes) { in initializeParcelable() argument 414 if (sizes == null) { in initializeParcelable() 417 ArrayList<SizeList> ret = new ArrayList<>(sizes.size()); in initializeParcelable() 418 for (Map.Entry<Integer, List<android.util.Size>> entry : sizes.entrySet()) { in initializeParcelable() 421 sizeList.sizes = new ArrayList<>(); in initializeParcelable() 427 sizeList.sizes.add(sz); in initializeParcelable()
|
D | SizeList.aidl | 24 List<Size> sizes;
|
/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/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/serviceforward/ |
D | ForwardImageCaptureExtender.java | 232 List<SizeList> sizes = mIImageCaptureExtender.getSupportedResolutions(); in getSupportedResolutions() local 233 if (sizes == null) { in getSupportedResolutions() 238 for (SizeList sizeList : sizes) { in getSupportedResolutions() 239 Size[] sizeArray = new Size[sizeList.sizes.size()]; in getSupportedResolutions() 240 for (int i = 0; i < sizeList.sizes.size(); i++) { in getSupportedResolutions() 241 sizeArray[i] = new Size(sizeList.sizes.get(i).width, in getSupportedResolutions() 242 sizeList.sizes.get(i).height); in getSupportedResolutions()
|
/frameworks/av/media/libstagefright/ |
D | CameraSource.cpp | 223 Vector<Size>& sizes) { in getSupportedVideoSizes() argument 226 params.getSupportedVideoSizes(sizes); in getSupportedVideoSizes() 227 if (sizes.size() == 0) { in getSupportedVideoSizes() 229 params.getSupportedPreviewSizes(sizes); in getSupportedVideoSizes() 269 Vector<Size> sizes; in configureCamera() local 271 getSupportedVideoSizes(*params, &isSetVideoSizeSupportedByCamera, sizes); in configureCamera() 274 if (!isVideoSizeSupported(width, height, sizes)) { in configureCamera() 351 Vector<Size> sizes; in checkVideoSize() local 352 params.getSupportedVideoSizes(sizes); in checkVideoSize() 353 if (sizes.size() == 0) { in checkVideoSize()
|
/frameworks/ex/camera2/extensions/service_based_sample/extensions_service/src/com/android/oemextensions/ |
D | AdvancedExtenderImplStub.java | 105 Size[] sizes = streamConfigMap.getOutputSizes(imageFormat); in getSupportedSizeByFormat() local 107 sizeList.sizes = new ArrayList<>(); in getSupportedSizeByFormat() 108 for (Size size : sizes) { in getSupportedSizeByFormat() 113 sizeList.sizes.add(sz); in getSupportedSizeByFormat()
|
/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 …]
|
/frameworks/base/packages/services/CameraExtensionsProxy/src/com/android/cameraextensions/ |
D | CameraExtensionsProxyService.java | 853 List<Pair<Integer, android.util.Size[]>> sizes) { 854 if (sizes == null) { 857 ArrayList<SizeList> ret = new ArrayList<>(sizes.size()); 858 for (Pair<Integer, Size[]> entry : sizes) { 861 sizeList.sizes = new ArrayList<>(); 867 sizeList.sizes.add(sz); 870 if (!sizeList.sizes.isEmpty()) { 888 Map<Integer, List<android.util.Size>> sizes) { 889 if (sizes == null) { 892 ArrayList<SizeList> ret = new ArrayList<>(sizes.size()); [all …]
|
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/service/ |
D | SizeList.aidl | 24 List<Size> sizes;
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptGroup.java | 133 int[] sizes = new int[numValues]; in Closure() local 141 values, sizes, depClosures, depFieldIDs); in Closure() 148 values, sizes, depClosures, depFieldIDs); in Closure() 153 fieldIDs, values, sizes, depClosures, depFieldIDs); in Closure() 173 int[] sizes = new int[numValues]; in Closure() local 183 sizes, depClosures, depFieldIDs); in Closure() 188 values, sizes); in Closure() 214 long[] values, int[] sizes, in retrieveValueAndDependenceInfo() argument 237 sizes[index] = 0; in retrieveValueAndDependenceInfo() 241 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()
|