summaryrefslogtreecommitdiffstats
path: root/core/jni/android_text_format_Time.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rewriting android.text.format.Time without the native _tz functionsNeil Fuller2014-07-221-689/+0
| | | | | Bug: 15765976 Change-Id: I666b72ecf9da8a9dcfb97cc503006b415909a558
* AArch64: Make frameworks/base code more portableAshok Bhat2014-03-271-33/+33
| | | | | | | | | | | | | | | | Changes in this patch include [x] Use %zu for size_t, %zd for ssize_t [x] Some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: Id1aaa7894a7d0b85ac7ecd7b2bfd8cc40374261f Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Craig Barber <craig.barber@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* Switch DateUtils and Time over to using the CLDR for all week and month names.Elliott Hughes2012-08-061-2/+7
| | | | Change-Id: I92c73c269c6f90125cf834d434883595ba4b42d4
* Fix Time.parse and Time.parse3339 crashing bugs.Elliott Hughes2012-07-251-99/+93
| | | | | | | | Two reported by users, the other spotted by inspection. Bug: http://code.google.com/p/android/issues/detail?id=16002 Bug: http://code.google.com/p/android/issues/detail?id=22225 Change-Id: I86fe022fda4af68e5a6fb9dc5dd2abdb75e9d966
* Fix android.text.format.Time to use GetBooleanField on its boolean field.Elliott Hughes2011-08-141-2/+2
| | | | | Bug: 5162851 Change-Id: I49b1429e86ffa91fbfb8b4c9d1a0c6d30c72621e
* Throw NullPointerException on args to Time#compareKenny Root2011-07-251-1/+1
| | | | | | | | Check for null on arguments to Time#compare(Time, Time) before passing it down to JNI code. Bug: 5073949 Change-Id: I077e9d5194a89206d1e51fc89a72c8a72e29f8f1
* Fix off-by-one in parse3339 timezone checkKenny Root2010-02-161-2/+2
| | | | | | | | parse3339 could read past the end of a string if the timezone was truncated by one character causing intermittent failures in unit tests. Change-Id: I7e1724c6a7b464fdcb5e2b37469eb128303a51f1
* Time.parse3339 range checking and proper 'sec-frac' skipKenny Root2009-11-161-12/+34
| | | | | | | | | | | The parse3339 JNI code doesn't properly do bounds checking on the input String. These changes do some bounds checking to prevent a buffer underflow condition. parse3339 should allow the fractional seconds to be optional and an arbitrary length as specified in RFC 3339. This will scan through arbitrary precision until it finds the timezone indicators. Change-Id: Ie9d01d0b24163d893c58c747d37873c83b74e6c7
* eclair snapshotJean-Baptiste Queru2009-11-131-4/+6
|
* donut snapshotJean-Baptiste Queru2009-07-211-1/+12
|
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-051-57/+89
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+623
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-623/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+623