SupportedSurfaceCombination { List<SurfaceCombination> getLegacySupportedCombinationList() { List<SurfaceCombination> combinationList = new ArrayList<>(); SurfaceCombination surfaceCombination1 = new SurfaceCombination(); surfaceCombination1.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.MAXIMUM)); combinationList.add(surfaceCombination1); SurfaceCombination surfaceCombination2 = new SurfaceCombination(); surfaceCombination2.addSurfaceConfig( SurfaceConfig.create(ConfigType.JPEG, ConfigSize.MAXIMUM)); combinationList.add(surfaceCombination2); SurfaceCombination surfaceCombination3 = new SurfaceCombination(); surfaceCombination3.addSurfaceConfig( SurfaceConfig.create(ConfigType.YUV, ConfigSize.MAXIMUM)); combinationList.add(surfaceCombination3); SurfaceCombination surfaceCombination4 = new SurfaceCombination(); surfaceCombination4.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.PREVIEW)); surfaceCombination4.addSurfaceConfig( SurfaceConfig.create(ConfigType.JPEG, ConfigSize.MAXIMUM)); combinationList.add(surfaceCombination4); SurfaceCombination surfaceCombination5 = new SurfaceCombination(); surfaceCombination5.addSurfaceConfig( SurfaceConfig.create(ConfigType.YUV, ConfigSize.PREVIEW)); surfaceCombination5.addSurfaceConfig( SurfaceConfig.create(ConfigType.JPEG, ConfigSize.MAXIMUM)); combinationList.add(surfaceCombination5); SurfaceCombination surfaceCombination6 = new SurfaceCombination(); surfaceCombination6.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.PREVIEW)); surfaceCombination6.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.PREVIEW)); combinationList.add(surfaceCombination6); SurfaceCombination surfaceCombination7 = new SurfaceCombination(); surfaceCombination7.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.PREVIEW)); surfaceCombination7.addSurfaceConfig( SurfaceConfig.create(ConfigType.YUV, ConfigSize.PREVIEW)); combinationList.add(surfaceCombination7); SurfaceCombination surfaceCombination8 = new SurfaceCombination(); surfaceCombination8.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.PREVIEW)); surfaceCombination8.addSurfaceConfig( SurfaceConfig.create(ConfigType.YUV, ConfigSize.PREVIEW)); surfaceCombination8.addSurfaceConfig( SurfaceConfig.create(ConfigType.JPEG, ConfigSize.MAXIMUM)); combinationList.add(surfaceCombination8); return combinationList; } SupportedSurfaceCombination(
            Context context, String cameraId, CamcorderProfileHelper camcorderProfileHelper); private  SupportedSurfaceCombination();   }
@Test public void checkLegacySurfaceCombinationSubListSupportedInLegacyDevice() { setupCamera( false); SupportedSurfaceCombination supportedSurfaceCombination = new SupportedSurfaceCombination( mContext, LEGACY_CAMERA_ID, mMockCamcorderProfileHelper); List<SurfaceCombination> combinationList = supportedSurfaceCombination.getLegacySupportedCombinationList(); boolean isSupported = isAllSubConfigListSupported(supportedSurfaceCombination, combinationList); assertTrue(isSupported); }