commit | 415716915ee20ffa10b89845889c471224fcbc6a | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Mon Apr 09 11:04:07 2018 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Mon Apr 09 20:23:54 2018 -0600 |
tree | 893de297313de7eb76654be77c1a3edb26f1f953 | |
parent | f28034e842163698faf6b08a6c0ac5af76bf3ef2 [diff] |
Offer to format data sizes in either IEC or SI. Add flags to let callers specify if they want IEC (power-of-two) or SI (power-of-ten) units when formatting bytes. Continue using SI units by default, since certain folks seem to have strong opinions about that. Bug: 76159924 Test: atest android.text.format.FormatterTest Exempt-From-Owner-Approval: previous PS approved Change-Id: I0074bb2578c2230e938b3f39c2564b1083feb825