public static List<Integer> calculateRoundedToScale(List<Float> originalCalculations){
  final List<Integer> rounded=new ArrayList<>(Constants.DENSITIES_COUNT - 1);
  rounded.add(Dpi.XXXHDPI,calculateRoundedValuesToNearestScaleRatioMultiplication(originalCalculations.get(Dpi.XXXHDPI),DpiBestRatio.RATIO_XXXHDPI));
  rounded.add(Dpi.XXHDPI,calculateRoundedValuesToNearestScaleRatioMultiplication(originalCalculations.get(Dpi.XXHDPI),DpiBestRatio.RATIO_XXHDPI));
  rounded.add(Dpi.XHDPI,calculateRoundedValuesToNearestScaleRatioMultiplication(originalCalculations.get(Dpi.XHDPI),DpiBestRatio.RATIO_XHDPI));
  rounded.add(Dpi.HDPI,calculateRoundedValuesToNearestScaleRatioMultiplication(originalCalculations.get(Dpi.HDPI),DpiBestRatio.RATIO_HDPI));
  rounded.add(Dpi.MDPI,calculateRoundedValuesToNearestScaleRatioMultiplication(originalCalculations.get(Dpi.MDPI),DpiBestRatio.RATIO_MDPI));
  rounded.add(Dpi.LDPI,calculateRoundedValuesToNearestScaleRatioMultiplication(originalCalculations.get(Dpi.LDPI),DpiBestRatio.RATIO_LDPI));
  rounded.add(Dpi.TVDPI,(int)Math.ceil(originalCalculations.get(Dpi.TVDPI)));
  return rounded;
}

public static List < Integer > calculateRoundedToScale ( List < Float > originalCalculations ) { final List < Integer > rounded = new ArrayList < > ( Constants . DENSITIES_COUNT - 1 ) ; rounded . add ( Dpi . XXXHDPI , calculateRoundedValuesToNearestScaleRatioMultiplication ( originalCalculations . get ( Dpi . XXXHDPI ) , DpiBestRatio . RATIO_XXXHDPI ) ) ; rounded . add ( Dpi . XXHDPI , calculateRoundedValuesToNearestScaleRatioMultiplication ( originalCalculations . get ( Dpi . XXHDPI ) , DpiBestRatio . RATIO_XXHDPI ) ) ; rounded . add ( Dpi . XHDPI , calculateRoundedValuesToNearestScaleRatioMultiplication ( originalCalculations . get ( Dpi . XHDPI ) , DpiBestRatio . RATIO_XHDPI ) ) ; rounded . add ( Dpi . HDPI , calculateRoundedValuesToNearestScaleRatioMultiplication ( originalCalculations . get ( Dpi . HDPI ) , DpiBestRatio . RATIO_HDPI ) ) ; rounded . add ( Dpi . MDPI , calculateRoundedValuesToNearestScaleRatioMultiplication ( originalCalculations . get ( Dpi . MDPI ) , DpiBestRatio . RATIO_MDPI ) ) ; rounded . add ( Dpi . LDPI , calculateRoundedValuesToNearestScaleRatioMultiplication ( originalCalculations . get ( Dpi . LDPI ) , DpiBestRatio . RATIO_LDPI ) ) ; rounded . add ( Dpi . TVDPI , ( int ) Math . ceil ( originalCalculations . get ( Dpi . TVDPI ) ) ) ; return rounded ; }
rounds original calculations to " best " scaled ratio
