@Test public void getMaximumSizeForImageFormat() { setupCamera( false); SupportedSurfaceCombination supportedSurfaceCombination = new SupportedSurfaceCombination( mContext, LEGACY_CAMERA_ID, mMockCamcorderProfileHelper); Size maximumYUVSize = supportedSurfaceCombination.getMaxOutputSizeByFormat(ImageFormat.YUV_420_888); assertEquals(mMaximumSize, maximumYUVSize); Size maximumJPEGSize = supportedSurfaceCombination.getMaxOutputSizeByFormat(ImageFormat.JPEG); assertEquals(mMaximumSize, maximumJPEGSize); }
Size getMaxOutputSizeByFormat(int imageFormat) { Size[] outputSizes = getAllOutputSizesByFormat(imageFormat); return Collections.max(Arrays.asList(outputSizes), new CompareSizesByArea()); }
SupportedSurfaceCombination { Size getMaxOutputSizeByFormat(int imageFormat) { Size[] outputSizes = getAllOutputSizesByFormat(imageFormat); return Collections.max(Arrays.asList(outputSizes), new CompareSizesByArea()); } }
SupportedSurfaceCombination { Size getMaxOutputSizeByFormat(int imageFormat) { Size[] outputSizes = getAllOutputSizesByFormat(imageFormat); return Collections.max(Arrays.asList(outputSizes), new CompareSizesByArea()); } SupportedSurfaceCombination(
            Context context, String cameraId, CamcorderProfileHelper camcorderProfileHelper); private  SupportedSurfaceCombination(); }
SupportedSurfaceCombination { Size getMaxOutputSizeByFormat(int imageFormat) { Size[] outputSizes = getAllOutputSizesByFormat(imageFormat); return Collections.max(Arrays.asList(outputSizes), new CompareSizesByArea()); } SupportedSurfaceCombination(
            Context context, String cameraId, CamcorderProfileHelper camcorderProfileHelper); private  SupportedSurfaceCombination();  }
SupportedSurfaceCombination { Size getMaxOutputSizeByFormat(int imageFormat) { Size[] outputSizes = getAllOutputSizesByFormat(imageFormat); return Collections.max(Arrays.asList(outputSizes), new CompareSizesByArea()); } SupportedSurfaceCombination(
            Context context, String cameraId, CamcorderProfileHelper camcorderProfileHelper); private  SupportedSurfaceCombination();   }