OSDN Git Service

Correct range checking for location strings during conversion
authorDavid Christie <dnchrist@google.com>
Tue, 27 Oct 2015 20:29:14 +0000 (13:29 -0700)
committerDavid Christie <dnchrist@google.com>
Tue, 27 Oct 2015 21:13:03 +0000 (14:13 -0700)
commit5575ddfcc1a1a7873d493ad6bbc522a9652d4ffc
treec2525b832d2d808dde0ca4258fe4910ff90bb09a
parent780318180fa5ce496a45567a063a4ea90acfd10f
Correct range checking for location strings during conversion

Minute values in the range [0, 59] are valid if seconds are
present. If seconds are not present then minute values are
valid in the range [0, <60]

Second values are valid in the range [0, <60]

Examples:
50:59:59.99999 is valid
50:59.99999 is valid
50:59.1:1 is not valid

Patch taken from Motorola: partner gerrit 137210

Bug: 17958582
Change-Id: I0d1265534092157883af564119f723984362d436
Issues: 2667 and 2668
location/java/android/location/Location.java