Home
last modified time | relevance | path

Searched refs:supportedSizes (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCameraParametersTest.java94 List<Camera.Size> supportedSizes = parameters.getSupportedPictureSizes(); in testGetSupportedPictureSizes() local
95 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() local
104 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 …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCamera.java314 List<Camera.Size> supportedSizes = new ArrayList<>(); in getSupportedPictureSizes() local
315 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()
/external/webrtc/sdk/android/api/org/webrtc/
DCameraEnumerationAndroid.java190 List<Size> supportedSizes, final int requestedWidth, final int requestedHeight) { in getClosestSupportedSize() argument
191 return Collections.min(supportedSizes, new ClosestComparator<Size>() { in getClosestSupportedSize()