Home
last modified time | relevance | path

Searched refs:FLAG_SI_UNITS (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java20 import static android.text.format.Formatter.FLAG_SI_UNITS;
113 checkFormatBytes(1_000, FLAG_SI_UNITS, "1.00", 1_000); in testFormatBytesSi()
114 checkFormatBytes(1_024, FLAG_SI_UNITS, "1.02", 1_020); in testFormatBytesSi()
115 checkFormatBytes(1_500, FLAG_SI_UNITS, "1.50", 1_500); in testFormatBytesSi()
116 checkFormatBytes(12_582_912L, FLAG_SI_UNITS, "12.58", 12_580_000L); in testFormatBytesSi()
/frameworks/base/core/java/android/text/format/
DFormatter.java45 public static final int FLAG_SI_UNITS = 1 << 2; field in Formatter
95 return formatFileSize(context, sizeBytes, FLAG_SI_UNITS); in formatFileSize()
117 FLAG_SI_UNITS | FLAG_SHORTER); in formatShortFileSize()