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