Home
last modified time | relevance | path

Searched refs:FLAG_IEC_UNITS (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java19 import static android.text.format.Formatter.FLAG_IEC_UNITS;
123 checkFormatBytes(1_000, FLAG_IEC_UNITS, "0.98", 1_003); in testFormatBytesIec()
124 checkFormatBytes(1_024, FLAG_IEC_UNITS, "1.00", 1_024); in testFormatBytesIec()
125 checkFormatBytes(1_500, FLAG_IEC_UNITS, "1.46", 1_495); in testFormatBytesIec()
126 checkFormatBytes(12_500_000L, FLAG_IEC_UNITS, "11.92", 12_499_025L); in testFormatBytesIec()
127 checkFormatBytes(12_582_912L, FLAG_IEC_UNITS, "12.00", 12_582_912L); in testFormatBytesIec()
/frameworks/base/apex/blobstore/framework/java/android/app/blob/
DBlobInfo.java19 import static android.text.format.Formatter.FLAG_IEC_UNITS;
105 sizeBytes, FLAG_IEC_UNITS); in formatBlobSize()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreConfig.java19 import static android.text.format.Formatter.FLAG_IEC_UNITS;
251 formatFileSize(context, TOTAL_BYTES_PER_APP_LIMIT_FLOOR, FLAG_IEC_UNITS), in dump()
253 FLAG_IEC_UNITS))); in dump()
472 getAppDataBytesLimit(), FLAG_IEC_UNITS)); in dump()
DBlobStoreSession.java30 import static android.text.format.Formatter.FLAG_IEC_UNITS;
560 fout.println("size: " + formatFileSize(mContext, getSize(), FLAG_IEC_UNITS)); in dump()
DBlobMetadata.java32 import static android.text.format.Formatter.FLAG_IEC_UNITS;
516 fout.println("size: " + formatFileSize(mContext, getSize(), FLAG_IEC_UNITS)); in dump()
/frameworks/base/core/java/android/text/format/
DFormatter.java47 public static final int FLAG_IEC_UNITS = 1 << 3; field in Formatter
125 final int unit = ((flags & FLAG_IEC_UNITS) != 0) ? 1024 : 1000; in formatBytes()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1361 Formatter.formatFileSize(mContext, totalBytes, Formatter.FLAG_IEC_UNITS)); in enqueueNotification()
1422 Formatter.formatFileSize(mContext, overBytes, Formatter.FLAG_IEC_UNITS)); in enqueueNotification()