commit | c6bffbf6033c88d1b8403360ba129831b0155f33 | [log] [tgz] |
---|---|---|
author | Roozbeh Pournader <roozbeh@google.com> | Tue Dec 13 13:58:56 2016 -0800 |
committer | Roozbeh Pournader <roozbeh@google.com> | Wed Dec 14 11:59:30 2016 -0800 |
tree | ce1a9660ee08c8aa675592409859ff0f938078f2 | |
parent | e70c9095b02ec46111c3e3677b43dab1a78e6188 [diff] |
Use ICU for formatting in DateUtils.formatDuration Previously, we were using native strings. ICU has higher quality and more comprehensive data. Also adds parameters for specifying the format width (e.g. "2 hrs" vs "2 hours"). Bug: 31526474 Test: adb shell am instrument -w -e class android.text.format.DateUtilsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Change-Id: I754f6c761c2ed3853046796c57ff2d86a6ccd43e