SupportedSurfaceCombination { List<SurfaceCombination> getLevel3SupportedCombinationList() { List<SurfaceCombination> combinationList = new ArrayList<>(); SurfaceCombination surfaceCombination1 = new SurfaceCombination(); surfaceCombination1.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.PREVIEW)); surfaceCombination1.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.ANALYSIS)); surfaceCombination1.addSurfaceConfig( SurfaceConfig.create(ConfigType.YUV, ConfigSize.MAXIMUM)); surfaceCombination1.addSurfaceConfig( SurfaceConfig.create(ConfigType.RAW, ConfigSize.MAXIMUM)); combinationList.add(surfaceCombination1); SurfaceCombination surfaceCombination2 = new SurfaceCombination(); surfaceCombination2.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.PREVIEW)); surfaceCombination2.addSurfaceConfig( SurfaceConfig.create(ConfigType.PRIV, ConfigSize.ANALYSIS)); surfaceCombination2.addSurfaceConfig( SurfaceConfig.create(ConfigType.JPEG, ConfigSize.MAXIMUM)); surfaceCombination2.addSurfaceConfig( SurfaceConfig.create(ConfigType.RAW, ConfigSize.MAXIMUM)); combinationList.add(surfaceCombination2); return combinationList; } SupportedSurfaceCombination(
            Context context, String cameraId, CamcorderProfileHelper camcorderProfileHelper); private  SupportedSurfaceCombination();   }
@Test public void checkLevel3SurfaceCombinationSubListSupportedInLevel3Device() { setupCamera( false); SupportedSurfaceCombination supportedSurfaceCombination = new SupportedSurfaceCombination( mContext, LEVEL3_CAMERA_ID, mMockCamcorderProfileHelper); List<SurfaceCombination> combinationList = supportedSurfaceCombination.getLevel3SupportedCombinationList(); boolean isSupported = isAllSubConfigListSupported(supportedSurfaceCombination, combinationList); assertTrue(isSupported); }