summaryrefslogtreecommitdiffstats
path: root/location
Commit message (Collapse)AuthorAgeFilesLines
* location: Replace ILocationCollector interface with new ILocationProvider methodMike Lockwood2009-05-217-59/+20
| | | | | | | | | | | | This change replaces ILocationCollector with a more general mechanism that passes locations received from a provider to all other providers. The network location provider now uses this to implement the location collector. In the future, this could be used to inject network locations to the GPS as aiding data. This change also removes the now obsolete permission INSTALL_LOCATION_COLLECTOR. Signed-off-by: Mike Lockwood <lockwood@android.com>
* GPS: Add support for forcing NTP time and XTRA data injection.Mike Lockwood2009-05-201-3/+29
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* gps: Time out after 1 minute if we are unable to get a fix and our fix ↵Mike Lockwood2009-05-141-8/+33
| | | | | | | | | interval is long. This will prevent us from keeping the processor awake indefinitely if a background service is requesting periodic updates and we are unable to get a fix. Signed-off-by: Mike Lockwood <lockwood@android.com>
* LocationManager: Recover if process containing NetworkLocation provider crashesMike Lockwood2009-05-121-1/+18
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* LocationManager: Fix a Javadoc comment.Mike Lockwood2009-05-121-1/+1
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* GPS: Generalize SUPL support to include AGPS for CDMAMike Lockwood2009-05-111-67/+100
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: Location Manager wakelock cleanupMike Lockwood2009-05-074-30/+18
| | | | | | | | | | | Location Providers are now responsible for their own wakelocks and scheduling. Also fixed a deadlock in LocationManagerService in the code for releasing wakelocks after client notifications have been received. The fix is to use the Receiver object and mWakeLock for synchronization instead of the global mLock lock. Signed-off-by: Mike Lockwood <lockwood@android.com>
* gps: Move GPS scheduling from libgps to GpsLocationProvider.Mike Lockwood2009-05-061-13/+47
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* GpsStatus: Increase NUM_SATELLITES to 255 for future compatibility.Mike Lockwood2009-05-061-1/+1
| | | | | | | 64 satellties are required for NavStar, WAAS, EGNOS, and GLONASS satellites. Increasing to 255 allows for future compatibility with Galileo. Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: Add support for location providers outside of the system process.Mike Lockwood2009-05-014-7/+88
| | | | | | | Also added new permissions android.permission.INSTALL_LOCATION_PROVIDER and android.permission.INSTALL_LOCATION_COLLECTOR to the public API. Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: Use ILocationProvider Binder interface for all location providers.Mike Lockwood2009-05-016-354/+165
| | | | | | | | | | This change eliminates the LocationProviderImpl class which had been used for location providers running in the system process. Now the LocationProvider base class is only used to implement the LocationManager.createProvider() method for retrieving provider information. Added a new IGpsStatusProvider interface for providers that serve GPS status. Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: Optimize use of mProviders ArrayList.Mike Lockwood2009-04-281-3/+2
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* gps: Don't crash if no XTRA servers are specified.Mike Lockwood2009-04-281-5/+5
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: Remove obsolete fake provider support.Mike Lockwood2009-04-2812-1033/+0
| | | | | | | Now that we have GPS support in the emulator and public APIs for mock providers, the fake provider support is no longer needed. Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: Move DummyLocationProvider.java and LocationProviderImpl.java to ↵Mike Lockwood2009-04-288-14/+19
| | | | | | the internal package. Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: Remove redundant mLocationTracking field from GpsLocationProviderMike Lockwood2009-04-281-12/+1
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: Location Manager wakelock cleanup, phase 2Mike Lockwood2009-04-232-1/+9
| | | | | | | | | Remove two second timeout for wakelock when broadcasting events to location listeners. Instead, hold wakelock until receipt of the event is acknowledged, either via a Binder call or the PendingIntent.OnFinished interface. Signed-off-by: Mike Lockwood <lockwood@android.com>
* Merge commit 'goog/readonly-p4-donut' into HEADJean-Baptiste Queru2009-04-221-3/+3
|\ | | | | | | | | Conflicts: location/java/android/location/Geocoder.java
| * AI 147294: am: CL 147290 Update Geocoder javadoc to reflect the need for a ↵Xavier Ducrohet2009-04-211-5/+11
| | | | | | | | | | | | | | | | | | backend service. Original author: xav Merged from: //branches/cupcake/... Automated import of CL 147294
* | Merge change 387 into donutAndroid (Google) Code Review2009-04-211-4/+10
|\ \ | | | | | | | | | | | | * changes: Geocoder: Document behavior when no backend service is available.
| * | Geocoder: Document behavior when no backend service is available.Mike Lockwood2009-04-211-4/+10
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | gps: Check for null APN name when receiving telephony notifications.Mike Lockwood2009-04-211-1/+1
|/ / | | | | | | | | | | Fixes bug b/1800584 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | location: Location Manager wakelock cleanup, phase 1Mike Lockwood2009-04-213-12/+31
| | | | | | | | | | | | Move cell and wifi lock from LocationManagerService to NetworkLocationProvider Signed-off-by: Mike Lockwood <lockwood@android.com>
* | More Location Manager cleanup:Mike Lockwood2009-04-171-17/+0
| | | | | | | | | | | | | | Move LocationCollector support out of GpsLocationProvider. Don't disable GPS when screen is off. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | location: Generalize support for location provider usage tracking.Mike Lockwood2009-04-174-8/+71
| | | | | | | | | | | | | | | | | | | | | | This replaces two different mechanisms that were used for GPS and Netork location provider tracking. Move BatteryStats logging of GPS usage from LocationManagerService to GpsLocationProvider. Clean up tracking of location listeners in LocationManagerService and remove some HashMaps that are no longer needed. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | location: Move geocoding support from ILocationProvider to a new interface.Mike Lockwood2009-04-154-33/+38
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | gps: Add support for bringing up a GSM data connection on demand for SUPL.Mike Lockwood2009-04-141-5/+65
|/ | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* AI 144663: Use Binder interfaces between NetworkLocationManager and ↵Mike Lockwood2009-04-068-102/+354
| | | | | | | | | | LocationManagerService. This fixes a hack that was added when NetworkLocationManager was moved out of the framework. This also lays the groundwork for supporting location providers outside of the system process. BUG=1729031 Automated import of CL 144663
* AI 144625: Remove unnecessary callback interface from INetworkLocationProvider.Mike Lockwood2009-04-061-11/+0
| | | | | | BUG=1729031 Automated import of CL 144625
* AI 144620: Clean up interface between NetworkLocationProvider and ↵Mike Lockwood2009-04-063-42/+0
| | | | | | | | | | | | | LocationManagerService (part 1) Move broadcast receivers for wifi scan results and battery status from LocationManagerService to NetworkLocationProvider Add a Service for the NetworkLocationProvider, so we can install it from its own thread rather than from BOOT_COMPLETED or callback from LocationManagerService. (this Service was also required for receiving Intents in NetworkLocationProvider) BUG=1729031 Automated import of CL 144620
* AI 144599: Location Manager cleanup:Mike Lockwood2009-04-053-329/+0
| | | | | | | | | | Move PhoneStateListener for listening to cell location changes from LocationManagerService to the NetworkLocationProvider. Move CellState class out of the core framework to the NetworkLocationProvider service. NetworkLocationManager now notifies the collector of its state, rather than LocationManagerService. BUG=1729031 Automated import of CL 144599
* AI 144452: More Location Manager cleanup:Mike Lockwood2009-04-036-105/+84
| | | | | | | | | | | | Remove 1 Hz "heartbeat" polling of location providers from LocationManagerService. Now location providers report their location to LocationManagerService via LocationManager.setLocation() rather than waiting to be polled. This reduces GPS fix latency by up to one second. Remove LocationProvderImpl.getLocation(). Since we are no longer polling, this method is no longer necessary. BUG=1729031 Automated import of CL 144452
* AI 144372: Cleanup Settings support for enabling and disabling location ↵Mike Lockwood2009-04-022-16/+0
| | | | | | | | | | | | | | providers: LocationManagerService now listens for changes to settings, making LocationManager.updateProviders() unnecessary. Removed LocationManager.updateProviders() Added Settings.Secure.setLocationProviderEnabled(), which is a thread-safe way of enabling or disabling a single location provider. This is safer than reading, modifying and writing the LOCATION_PROVIDERS_ALLOWED directly. BUG=1729031 Automated import of CL 144372
* AI 144185: Integrate cdma into the main code base.Wink Saville2009-04-021-3/+11
| | | | Automated import of CL 144185
* AI 143616: Fix ANR that could occur when disabling GPS in Settings while the ↵Mike Lockwood2009-03-311-2/+8
| | | | | | | | | | GPS is active. Exit from GpsEventThread immediately when the GPS is disabled instead of waiting for the GPS to shut down fully. BUG=1729031 Automated import of CL 143616
* AI 143095: Location Manager cleanup: move MockProvider to a separate file.Mike Lockwood2009-03-271-0/+202
| | | | | | BUG=1729031 Automated import of CL 143095
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-5/+86
|
* auto import from //branches/cupcake/...@137197The Android Open Source Project2009-03-091-3/+3
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0335-0/+7207
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0335-7214/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-032-3/+10
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-022-10/+3
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-0/+11
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-0/+9
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-1042-4111/+191
|
* auto import from //branches/cupcake/...@127436The Android Open Source Project2009-01-221-5/+29
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-094-26/+74
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-1714-233/+834
|
* Initial ContributionThe Android Open Source Project2008-10-2170-0/+10441