Searched refs:supportedSizes (Results 1 – 3 of 3) sorted by relevance
94 List<Camera.Size> supportedSizes = parameters.getSupportedPictureSizes(); in testGetSupportedPictureSizes() local95 assertThat(supportedSizes).isNotNull(); in testGetSupportedPictureSizes()96 assertThat(supportedSizes.size()).isEqualTo(3); in testGetSupportedPictureSizes()97 assertThat(supportedSizes.get(0).width).isEqualTo(320); in testGetSupportedPictureSizes()98 assertThat(supportedSizes.get(0).height).isEqualTo(240); in testGetSupportedPictureSizes()103 List<Camera.Size> supportedSizes = parameters.getSupportedPreviewSizes(); in testGetSupportedPreviewSizes() local104 assertThat(supportedSizes).isNotNull(); in testGetSupportedPreviewSizes()105 assertThat(supportedSizes.size()).isEqualTo(2); in testGetSupportedPreviewSizes()106 assertThat(supportedSizes.get(0).width).isEqualTo(320); in testGetSupportedPreviewSizes()107 assertThat(supportedSizes.get(0).height).isEqualTo(240); in testGetSupportedPreviewSizes()[all …]
314 List<Camera.Size> supportedSizes = new ArrayList<>(); in getSupportedPictureSizes() local315 addSize(supportedSizes, 320, 240); in getSupportedPictureSizes()316 addSize(supportedSizes, 640, 480); in getSupportedPictureSizes()317 addSize(supportedSizes, 800, 600); in getSupportedPictureSizes()318 return supportedSizes; in getSupportedPictureSizes()
190 List<Size> supportedSizes, final int requestedWidth, final int requestedHeight) { in getClosestSupportedSize() argument191 return Collections.min(supportedSizes, new ClosestComparator<Size>() { in getClosestSupportedSize()