question: public static List < Float > calculate ( final float originalSize , final int dpi ) { float mdpi = 1f ; switch ( dpi ) { case Dpi . XXXHDPI : mdpi = originalSize / DpiRatio . RATIO_XXXHDPI ; break ; case Dpi . XXHDPI : mdpi = originalSize / DpiRatio . RATIO_XHDPI ; break ; case Dpi . XHDPI : mdpi = originalSize / DpiRatio . RATIO_XHDPI ; break ; case Dpi . HDPI : mdpi = originalSize / DpiRatio . RATIO_HDPI ; break ; case Dpi . MDPI : mdpi = originalSize / DpiRatio . RATIO_MDPI ; break ; case Dpi . LDPI : mdpi = originalSize / DpiRatio . RATIO_LDPI ; break ; case Dpi . TVDPI : mdpi = originalSize / DpiRatio . RATIO_TVDPI ; break ; } final List < Float > sizes = new ArrayList < > ( Constants . DENSITIES_COUNT ) ; sizes . add ( Dpi . XXXHDPI , mdpi * DpiRatio . RATIO_XXXHDPI ) ; sizes . add ( Dpi . XXHDPI , mdpi * DpiRatio . RATIO_XXHDPI ) ; sizes . add ( Dpi . XHDPI , mdpi * DpiRatio . RATIO_XHDPI ) ; sizes . add ( Dpi . HDPI , mdpi * DpiRatio . RATIO_HDPI ) ; sizes . add ( Dpi . MDPI , mdpi ) ; sizes . add ( Dpi . LDPI , mdpi * DpiRatio . RATIO_LDPI ) ; sizes . add ( Dpi . TVDPI , mdpi * DpiRatio . RATIO_TVDPI ) ; return sizes ; }
target:  Calculates sizes for all densities