History log of /frameworks/base/core/java/android/text/format/Formatter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8d2e0f7898ef7ab9b8775d88a2f8af2eea365c51 17-Jul-2015 Roozbeh Pournader <roozbeh@google.com> Bidi-wrap the results of format[Short]FileSize().

Previously, users of the results of formatFileSize() and
formatShortFileSize() needed to unicodeWrap the results themselves
using BidiFormatter, which resulted in several bugs and
inconsistencies across the platform when they didn't, especially in
Hebrew and Urdu locales:

Hebrew and Urdu use Latin abbreviations like 'MB' for file sizes
which cause undesired reorderings (or incorrect detection of the
string direction when the formatted file size starts the string).

With this patch, the results are now bidi-wrapped before being
returned if the locale of the context passed in to the formatter is a
right-to-left locale.

Bug: 22237132
Bug: 22273176
Change-Id: If076636d15828fc810feef6f0fa8806ef52aed5d
/frameworks/base/core/java/android/text/format/Formatter.java
c7a14e442dcab7efd89af1bc671e6869904d19f6 25-Jun-2015 Makoto Onuki <omakoto@google.com> Fix Formatter.formatBytes() crash on non-EN locales

Bug 22012651

Change-Id: I21b1834a35647527002e01d76a7eb3a6a0354512
/frameworks/base/core/java/android/text/format/Formatter.java
2ac124b790a4f4b8c9a9ac96a4211218e5d7af85 22-Jun-2015 Seigo Nonaka <nona@google.com> Revive Null check for backward compatibility.

Bug: 21934529
Change-Id: I18e8f01be728e0400f3218a359b0dc9fd97fbbbd
/frameworks/base/core/java/android/text/format/Formatter.java
b521feaed410b6862baca9b42d5fd7c398e07b2f 16-Jun-2015 Jeff Sharkey <jsharkey@android.com> Update file size formatting.

Per UX, default strings should have space between value and units
resulting in "12.3 GB". Add a formatting variant that returns the
various components for callers who want to build their own strings.

For now there is only one mounted emulated volume at a time, and
it's always the primary storage, so give it the default rootId to
keep old Uris working.

Change-Id: Ifcc72a91a6b397ee65dc92642153286186eb64ac
/frameworks/base/core/java/android/text/format/Formatter.java
874b35b83613eac69d5a9a35bc62e4ac5efc385c 05-Nov-2014 Adrian Roos <roosa@google.com> Round charging indication to nearest minute

Bug: 18177374
Change-Id: I4eb7fcac83398a4d8432bf092d8d91506646b5a1
/frameworks/base/core/java/android/text/format/Formatter.java
260c5020ae65ddd14668b8ae496c169082aa13f6 29-Apr-2014 Dianne Hackborn <hackbod@google.com> Implement better computing of battery drain time, actual charge time.

Also move time formatter in to framework for use elsewhere.

Change-Id: I42b6a44414b68754af65c522bef5591da5643909
/frameworks/base/core/java/android/text/format/Formatter.java
fbf37c79bdedbdd7b82ad7d5862dd82e3c068590 26-Mar-2013 Elliott Hughes <enh@google.com> Remove dead DateUtils code that was never in an API level.

Also rewrite @deprecated comments to use an initial capital so they
look right in the generated documentation.

Also improve formatIpAddress documentation.

Change-Id: I317ebe411ef76e16a4535318ce73e00b63af38da
/frameworks/base/core/java/android/text/format/Formatter.java
41e2e1f9919c9ae3593610f7e05f0d9cf69ec9b2 07-Dec-2011 Joe Malin <jmalin@google.com> DOC CHANGE: Package text and Formatter javadoc

Change-Id: Ia34bf38d07b474522f65b89db4991c32909ecff2
/frameworks/base/core/java/android/text/format/Formatter.java
07481ccd1dcc2912797ec64f0bfa5641b39adcea 07-Jan-2011 Jesse Wilson <jessewilson@google.com> Deprecate a method that formats only IPv4 addresses.

Anyone calling this method is probably storing IP addresses
in an int, which doesn't make sense anymore.

Change-Id: Iba535b66f6cff47ce07b5ecc6427e3b2fd846998
/frameworks/base/core/java/android/text/format/Formatter.java
bfe319e06aa56c081d0d94d64a8181291d7f7388 21-Sep-2009 Dianne Hackborn <hackbod@google.com> Turn animations on by default.

Add API to skip the animation for a particular start activity, so that
a latter better one can be used.

Fix Theme.NoDisplay to actually work.

Fiddle with various animations: don't do a different animation for task
switching, try a scale animation for switching in/out of the wallpaper.

Adjust the animation duration so that at normal speed we have something
more like the slower animation option (so slow is now the default).

Change-Id: Ieba9f3db0bd9a762a19b327a3ecccbc7b547893d
/frameworks/base/core/java/android/text/format/Formatter.java
7351dd113f26580f3bcc7500746f3a26aecc4260 13-Jun-2009 Eric Fischer <enf@google.com> Use locale-appropriate formatting to display application sizes like "252KB".

In particular allow the French and Polish translators to put a space between
the number and the unit.
/frameworks/base/core/java/android/text/format/Formatter.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/text/format/Formatter.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/text/format/Formatter.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/text/format/Formatter.java