summaryrefslogtreecommitdiffstats
path: root/location/tests
Commit message (Collapse)AuthorAgeFilesLines
* Reduce memory usage of GpsStatus objects.destradaa2015-02-031-0/+356
| | | | | | | | | | | | | | A simple GpsStatus object uses 9K of space, given that it initializes an array of 255 GpsSatellite objects. This change reduces the memory footprint in the average case, and keeps the semantics of the API and its GpsSatellite sibling objects without any changes. In a best case scenario it brings the memory usage per object to 1K. It's likely in most cases that only 20-50 satellites will be in view. So the usage should not exceeed half of the original memory usage. It was considered to keep the internal array but a SparseArray provided bigger memory savings in the test scenario of ~700B. Change-Id: Ie2d2144d776a74d4904a08c0d6c5aec6d3bba7cc
* Add new system service CountryDetectorBai Tao2010-07-281-0/+33
| | | | | | | | | | a. The CountryDetector detects the country the user is in in order of mobile network, location, sim card or locale. It will be used by contact and contact provider. b. All added APIs are hidden at this stage. Change-Id: I4ba278571ffb6ab6ded0996d4f440a18534f8ed4
* Phase 2 of test cleanup: moving test files from AndroidTests closer to their ↵Neal Nguyen2010-01-292-0/+196
| | | | | | | | | sources. Most of these are file moves; a couple notable exceptions are the changes due to the move, and fixing up test code: - database/DatabaseCursorTest.java - database/DatabaseStatementTest.java - net/UriTest.java
* Moving framework core tests closer to their source files.Neal Nguyen2010-01-273-0/+279
Phase 2 of test case cleanup; distributing CoreTests files closer to their respective sources under frameworks.