Home
last modified time | relevance | path

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

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowCameraParameters.java61 List<Camera.Size> supportedSizes = new ArrayList<Camera.Size>(); in getSupportedPictureSizes() local
62 addSize(supportedSizes, 320, 240); in getSupportedPictureSizes()
63 addSize(supportedSizes, 640, 480); in getSupportedPictureSizes()
64 addSize(supportedSizes, 800, 600); in getSupportedPictureSizes()
65 return supportedSizes; in getSupportedPictureSizes()
103 List<Camera.Size> supportedSizes = new ArrayList<Camera.Size>(); in getSupportedPreviewSizes() local
104 addSize(supportedSizes, 320, 240); in getSupportedPreviewSizes()
105 addSize(supportedSizes, 640, 480); in getSupportedPreviewSizes()
106 return supportedSizes; in getSupportedPreviewSizes()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DCameraParametersTest.java100 List<Camera.Size> supportedSizes = parameters.getSupportedPictureSizes(); in testGetSupportedPictureSizes() local
101 assertThat(supportedSizes, notNullValue()); in testGetSupportedPictureSizes()
102 assertThat(supportedSizes.size(), equalTo(3)); in testGetSupportedPictureSizes()
103 assertThat(supportedSizes.get(0).width, equalTo(320)); in testGetSupportedPictureSizes()
104 assertThat(supportedSizes.get(0).height, equalTo(240)); in testGetSupportedPictureSizes()
109 List<Camera.Size> supportedSizes = parameters.getSupportedPreviewSizes(); in testGetSupportedPreviewSizes() local
110 assertThat(supportedSizes, notNullValue()); in testGetSupportedPreviewSizes()
111 assertThat(supportedSizes.size(), equalTo(2)); in testGetSupportedPreviewSizes()
112 assertThat(supportedSizes.get(0).width, equalTo(320)); in testGetSupportedPreviewSizes()
113 assertThat(supportedSizes.get(0).height, equalTo(240)); in testGetSupportedPreviewSizes()