summaryrefslogtreecommitdiffstats
path: root/location
Commit message (Collapse)AuthorAgeFilesLines
* GPS: Retry inject XTRA on failure; immediately for some devices.Christopher Lais2010-12-011-2/+6
| | | | | | | | | | | | Some proprietary location libraries like to get interrupted while injecting xtra data when other processes that use RPC calls are starting during boot. This patch retries inject_xtra_data immediately several times on such devices (set with BOARD_USE_BROKEN_INJECT_XTRA_HACK:=true) and retries at the normal interval on devices without that flag set. Change-Id: I11e4b96721cc223863b17146e6b49684e27ad225
* Revert part of "GPS: Don't set XTRA download pending flag at boot time."Christopher Lais2010-11-221-1/+1
| | | | | | | | | | | | | | | | | | | libloc_api starts a thread as soon as the GPS is initialized, at which time the xtra callback is also cleared. If libloc_api gets a request for xtra data from the gps before the xtra callback has been set, it gets silently ignored, and never requests the data again. Since there is no method to see if data has been requested in the interface, we must assume that data has been requested. This would be better fixed in libloc_api by queuing the request until gps-xtra is initialized, but libloc_api is still proprietary for current devices. This reverts part of commit 88606634d1fa0c6245f9b4c0c1bbe67842eab16f. The typo fix was not reverted. Change-Id: I99a50dd64ff588d379dafb2974dd8d6b9229b6c6
* GPS: Initialize XTRA support when GPS is enabledMike Lockwood2010-11-141-2/+6
| | | | | | | BUG: 2923148 Change-Id: If9a643e385c6c567b30f47d4caa35fa812a2ba43 Signed-off-by: Mike Lockwood <lockwood@android.com>
* GPS: Don't set XTRA download pending flag at boot time.Mike Lockwood2010-11-141-2/+2
| | | | | | | | XTRA data downloads are now strictly on demand from the GPS engine. Also fix typo in handleDownloadXtraData() Change-Id: Ied1a6e2e62134add4d965326aae909c86f834682 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Revert "location: Add config to control download of XTRA data on boot."Steve Kondik2010-11-141-4/+0
| | | | | | | Also revert QCOM location changes in favor of Google's, which actually work. Change-Id: Ie5295c3ae69bc17a51b05e235894dd7fc024d9e4
* location: Add config to control download of XTRA data on boot.Steve Kondik2010-09-281-2/+6
| | | | | | | | Revert patch to disable download of GPS XTRA data on boot as it causes slow GPS lock if the data isn't available for whatever reason. Make it configurable as it's known to cause problems on certain older platforms. Change-Id: I99f0710e7d8b54ab77cda94077365f3328752a39
* GPS: GpsLocationProvider is changed to accept NTP time alwaysGokula2010-08-211-5/+6
| | | | | | | | | | | | The logic is changed within GpsLocationProvider to accept NTP time irrespective of the system time. This is because NTP time is guranteed to be accurate and system time may or not be accurate depending on whether the phone is camped on the network or not. This results in the GPS engine getting the best estimate of time always. CRs-Fixed : 242488 Change-Id: I4fe8847ad0619d3e3f2a7db5d2fb5f90c54320e6
* GPS: Fixed a bug in the flag value used for XTRA download inGokula2010-08-141-1/+1
| | | | | | | | | | | | GpsLocationProvider A bug in GpsLocationProvider wherein the wrong flag value is used to check if the download needs to be carried out or not is fixed. This results in XTRA data download succeeding in the second and subsequent sessions also. CRs-Fixed: 246468 Change-Id: I3350559c091dece068124ffc5a6656c1157c7d56
* GPS: Disable XTRA data download at bootup to avoid service interactionStephen Li2010-08-141-1/+1
| | | | | | | | | | | | In Froyo mDownloadXtraDataPending is initialized to true resulting in a unnecessary XTRA download attempted at bootup. This sometimes causes a delay in the framework in responding to data connection requests from the GPS engine when XTRA download fails. Hence XTRA download at boot up is disabled with this fix. Normal XTRA data requests from the modem will still be serviced by the framework. Change-Id: Ib541b86de7731ae5f6938db79a9b6d5006b7ca52 CRs-Fixed:249425
* Include the API level 4 fields in the Parcel.Paul Watts2010-07-051-0/+6
|
* Wait until GpsLocationProvider is fully initialized before returning from ↵Mike Lockwood2010-03-241-13/+37
| | | | | | | | | | | the constructor. Otherwise we are left with a race condition that might result in the provider being called before it is ready. BUG: 2539392 Change-Id: I05f4a2501c43d5fa95c0e68f5a963015cf9c6e8f Signed-off-by: Mike Lockwood <lockwood@android.com>
* GpsLocationProvider: Do our work in a Handler running in a separate thread.Mike Lockwood2010-03-221-195/+228
| | | | | | | | | | | To avoid adding a new thread to the system, we take the functionality that was in GpsNetworkThread for downloading NTP time and XTRA data and include this in the new thread as well. BUG: 2531728 Change-Id: I2a26b7f0aae0c60faceb36dc6bc29c915c039ae6 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Remove unused file NmeaParser.javaMike Lockwood2010-03-171-437/+0
| | | | | Change-Id: I8027b98ccf1271870243ced8a7ccc61d25a224b2 Signed-off-by: Mike Lockwood <lockwood@android.com>
* location: dump LocationProvider internal stateFred Fettinger2010-03-077-2/+39
| | | | | | | | | | | For each location provider, call getInternalState() to see if it has any state information to include in a bugreport. If the returned string is not null, then print a header with the provided name followed by the returned string. Change-Id: I0a388d7fba14ac8cadcb80eda0a0ceb95032410b Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com> Signed-off-by: Mike Lockwood <lockwood@android.com>
* Check for null provider in LocationManager.getProviders()Mike Lockwood2010-03-031-1/+1
| | | | | | | Change-Id: I294ce0b1f364cfdf956ac55260f9d40f0704b5f7 BUG: 2485977 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Hide GeocoderParams class from public API.Mike Lockwood2010-03-021-0/+2
| | | | | | | This does not need to be publc until we unbundle the network location provider. Change-Id: Ib4109d2392624242eee33f271a8151588e3f0c56 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Re-arrange android-common so framework no longer links with it.Dianne Hackborn2010-02-251-1/+1
| | | | | | | This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
* GpsLocationProvider: Be less aggressive about getting fixes in bad ↵Mike Lockwood2010-02-241-2/+7
| | | | | | | | | conditions if we have a long fix interval. Change-Id: I68bd884409ca15e584ab70e53cf142d60f318d9c BUG: 2215714 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Fix broken location extras in GpsLocationProvider.Mike Lockwood2010-02-241-1/+3
| | | | | | | | Fixes http://code.google.com/p/android/issues/detail?id=4151 (Satellite count not being provided by Location class any more. Location.getExtras() returns null.) Change-Id: I4cf2922f4a5ed216541f8a8553523d1f6a1c1d0c Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add passive location provider.Mike Lockwood2010-02-177-5/+163
| | | | | | | | | The passive location provider allows receiving location updates without actually triggering them. This allows an application to receive location updates that are being generated due to other clients of the location manager. Change-Id: Ibf7a96b089c56875d4f62d3210252ae8d9f32768 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Clean up interface between LocationManagerService and the location providers:Mike Lockwood2010-02-106-18/+79
| | | | | | | | | | | | | | | | LocationManagerService now uses new Java interface LocationProviderInterface rather than LocationProviderProxy to refer to location providers internally. LocationProviderProxy and the ILocationProvider binder interface are only used for location providers implemented as services (NetworkLocationProvider) Built-in location providers (GpsLocationProvider and mock providers) now just implement LocationProviderInterface rather than using a Binder interface and proxy object. Delete obsolete and unused TestLocationProvider class. Change-Id: Id800e7c1864f7c666f8e37125c05896493b9c8c4 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Network Location unbundling:Mike Lockwood2010-02-087-459/+757
| | | | | | | | | | | | | | | | | | | | | The network location and geocode provider services are now started on demand and their interfaces are now retrieved via bindService(). Remove obsolete LocationManager installLocationProvider() and installGeocodeProvider() methods. Add abstract class android.location.provider.GeocodeProvider to provide a public wrapper to the IGeocodeProvider Binder interface. Replaces the LocationManager.GeocodeProvider interface. Rename LocationProviderImpl to android.location.provider.LocationProvider. Move LocationManager.reportLocation() to android.location.provider.LocationProvider, so all methods related to external location providers are now all in one class. Avoid calling from the Location Manager Service into providers that are disabled so we do not start the network location service unnecessarily. Change-Id: If3ed2d5d62b83ba508006711d575cad09f4a0007 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Fix for GPS engines without separate session and engine status events.Mike Lockwood2010-02-021-0/+2
| | | | | | | | GPS_STATUS_SESSION_BEGIN now implies GPS_STATUS_ENGINE_ON and GPS_STATUS_ENGINE_OFF now implies GPS_STATUS_SESSION_END. Change-Id: I7217dc5213ae9a5658ac81b0a14b61d3e36ca0f6 Signed-off-by: Mike Lockwood <lockwood@android.com>
* resolved conflicts for merge of 21875ab3 to masterMike Lockwood2010-02-021-8/+26
|\ | | | | | | Change-Id: I447e813b3ec460bbc9050de6b95bd663bb33c86f
| * Ignore NTP time fixes that differ from system time by more than 5 minutes.Mike Lockwood2010-01-291-8/+26
| | | | | | | | | | | | Change-Id: I603195f6925e25baccd18190016cf8611bb9dc1b BUG: 2402380 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Remove unused method LocationProviderImpl.isEnabled().Mike Lockwood2010-02-011-5/+0
| | | | | | | | | | | | | | This should have been removed in my previous change. Change-Id: I3a080888f995e77a61e3ebf1c194ccd65686af1e Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Remove ILocationProvider.isEnabled() binder call and use cached value instead.Mike Lockwood2010-02-015-19/+4
| | | | | | | | | | Change-Id: Id6a9f6d2e2f5cc5810a2beeb0f869f06e2d18860 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | 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.
* | am 47d302a0: am bb79e5fd: Merge "Be tolerant of GPS session and engine on ↵Mike Lockwood2010-01-221-5/+28
|\ \ | |/ | | | | | | | | | | | | | | status messages arriving out of order." into eclair Merge commit '47d302a001c71f90bee8dc31d868b463a47f2d51' * commit '47d302a001c71f90bee8dc31d868b463a47f2d51': Be tolerant of GPS session and engine on status messages arriving out of order.
| * Be tolerant of GPS session and engine on status messages arriving out of order.Mike Lockwood2010-01-201-5/+28
| | | | | | | | | | | | | | BUG: 2366194 Change-Id: I642dacd397202f671adba5a863394438ca62988d Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Unhide LocationManager APIs needed for unbundled location providers.Mike Lockwood2010-01-111-4/+0
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | less log spewJoe Onorato2010-01-082-33/+29
| |
* | Fix broken Javadoc link.Mike Lockwood2010-01-061-2/+2
| | | | | | | | | | Change-Id: Ia72dc3dccf95f95c6847eb52d8b210ed774a804b Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Add LocationManagerImpl class to act as a public wrapper for the ↵Mike Lockwood2010-01-062-0/+248
| | | | | | | | | | | | | | | | | | | | ILocationProvider interface Location providers implemented outside of the core android platform (like network location) can subclass LocationManagerImpl to implement the location provider interface without being bound too tightly to the location manager internals. Change-Id: Id193d4d09f9a14bea13e81af03c914074cd37cb9
* | Cleanup and add public wrapper for IGeocodeProvider interface to prepare for ↵Mike Lockwood2010-01-056-18/+166
| | | | | | | | | | | | | | network location unbundling. Change-Id: I6523d115b56dbf450121e73d48e151f200827eb4 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Unbundling workPaul Westbrook2009-12-141-2/+3
|/ | | | | | Moved AndroidHttpClient, Rfc822InputFilter, Rfc822Validator NumberPicker, NumberPickerButton to android-common ---
* GpsLocationProvider: Do not release wakelock until the GPS engine is fully offMike Lockwood2009-12-071-36/+34
| | | | | Change-Id: I705b1d33af2d70aa1084cca8f6280fade9461d2c Signed-off-by: Mike Lockwood <lockwood@android.com>
* GPS: Fix problem with SUPL when SUPL APN is already active.Mike Lockwood2009-10-084-25/+28
| | | | | | | | | | | | Use ConnectivityManager.CONNECTIVITY_ACTION broadcast in LocationManagerService to notify GPS when SUPL connection is ready instead of TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED, which is not sent in all cases. Expand LocationProvider.updateNetworkState() to include NetworkInfo object. Fixes bug b/2155661 Change-Id: Iee227ace7d536b36cf7973e3e6a8b7a621ce6565 Signed-off-by: Mike Lockwood <lockwood@android.com>
* LocationManagerService: Remove caching of last known locations to flash.Mike Lockwood2009-09-011-3/+0
| | | | | Change-Id: Ibbab20a7c48823fb74c2e175824f55248f25bf8a Signed-off-by: Mike Lockwood <lockwood@android.com>
* gps: Network initiated SUPLDanke Xie2009-08-275-0/+602
| | | | | | Initial contribution from Qualcomm. Signed-off-by: Mike Lockwood <lockwood@android.com>
* GpsLocationProvider: Default to AGPS on if the setting is missing.Mike Lockwood2009-08-251-1/+1
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* gps: Unhide GpsStatus.NmeaListener interface for receiving NMEA sentencesMike Lockwood2009-08-062-9/+8
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* gps: Add GpsStatus.NmeaListener interface for receiving NMEA sentences.Mike Lockwood2009-08-064-20/+165
| | | | | | | | NMEA sentences are passed from the GPS engine to the GpsLocationProvider. They are then sent via the IGpsStatusListener binder interface to clients using the same path as the other GPS status information. Signed-off-by: Mike Lockwood <lockwood@android.com>
* GPS: Don't call native_set_agps_server() until after we call native_init().Mike Lockwood2009-07-281-8/+17
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* GpsLocationProvider: remove mAgpsConfigured configured flag.Mike Lockwood2009-07-171-5/+1
| | | | | | | This flag was unnecessary because the lower level GPS code already checks for this and this was causing problems for a GPS implementation that does not use /etc/gps.conf Signed-off-by: Mike Lockwood <lockwood@android.com>
* am b82759a0: Merge change 6906 into donutAndroid (Google) Code Review2009-07-141-0/+47
|\ | | | | | | | | | | | | Merge commit 'b82759a051f55852dabe201ad3354ea9b7b2979d' * commit 'b82759a051f55852dabe201ad3354ea9b7b2979d': location: Add sub-locality, sub-thoroughfare and premises fields to Address class
| * location: Add sub-locality, sub-thoroughfare and premises fields to Address ↵Mike Lockwood2009-07-141-0/+47
| | | | | | | | | | | | | | | | class This is required for fully describing locations in Japan. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Fix typo in Javadoc for LocationManager.GPS_PROVIDERKenny Root2009-07-071-1/+1
| |
* | am 54af78a3: Merge change 5950 into donutAndroid (Google) Code Review2009-07-022-0/+10
|\ \ | |/ | | | | | | | | | | Merge commit '54af78a3f7064e04d7ebd64c985d4149f9f7b05c' * commit '54af78a3f7064e04d7ebd64c985d4149f9f7b05c': Fix memory leaks in system_server