Home
last modified time | relevance | path

Searched refs:sizeList (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/legacy/
DParameterUtils.java245 public static List<Size> convertSizeList(List<Camera.Size> sizeList) { in convertSizeList() argument
246 checkNotNull(sizeList, "sizeList must not be null"); in convertSizeList()
248 List<Size> sizes = new ArrayList<>(sizeList.size()); in convertSizeList()
249 for (Camera.Size s : sizeList) { in convertSizeList()
258 public static Size[] convertSizeListToArray(List<Camera.Size> sizeList) { in convertSizeListToArray() argument
259 checkNotNull(sizeList, "sizeList must not be null"); in convertSizeListToArray()
261 Size[] array = new Size[sizeList.size()]; in convertSizeListToArray()
263 for (Camera.Size s : sizeList) { in convertSizeListToArray()
272 public static boolean containsSize(List<Camera.Size> sizeList, int width, int height) { in containsSize() argument
273 checkNotNull(sizeList, "sizeList must not be null"); in containsSize()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java555 final List<Size> sizeList = Arrays.asList(sizes); in getAvailableThumbnailSizesChecked() local
558 checkTrueForKey(key, "size should contain (0, 0)", sizeList.contains(new Size(0, 0))); in getAvailableThumbnailSizesChecked()
561 checkElementDistinct(key, sizeList); in getAvailableThumbnailSizesChecked()
565 CameraTestUtils.getAscendingOrderSizes(sizeList, /*ascending*/true); in getAvailableThumbnailSizesChecked()
566 checkTrueForKey(key, "Sizes should be in ascending order: Original " + sizeList.toString() in getAvailableThumbnailSizesChecked()
567 + ", Expected " + orderedSizes.toString(), orderedSizes.equals(sizeList)); in getAvailableThumbnailSizesChecked()
DCameraTestUtils.java1061 static public List<Size> getAscendingOrderSizes(final List<Size> sizeList, boolean ascending) { in getAscendingOrderSizes() argument
1062 if (sizeList == null) { in getAscendingOrderSizes()
1068 sortedSizes.addAll(sizeList); in getAscendingOrderSizes()
/frameworks/base/core/java/android/hardware/
DCamera.java4138 ArrayList<Size> sizeList = new ArrayList<Size>(); in splitSize() local
4141 if (size != null) sizeList.add(size); in splitSize()
4143 if (sizeList.size() == 0) return null; in splitSize()
4144 return sizeList; in splitSize()