summaryrefslogtreecommitdiffstats
path: root/location/java/android
Commit message (Collapse)AuthorAgeFilesLines
* am cb51c0c7: am 3e94b94f: Merge "Remove old location classes." into gingerbreadDianne Hackborn2010-09-282-442/+0
|\ | | | | | | | | | | | | Merge commit 'cb51c0c7b155a5141a51fc4d3e57792da7e89cc4' * commit 'cb51c0c7b155a5141a51fc4d3e57792da7e89cc4': Remove old location classes.
| * Remove old location classes.Dianne Hackborn2010-09-282-442/+0
| | | | | | | | Change-Id: Ib7e883c64996a8bfaaa755d88b855e17e3442e26
* | am 24956d36: am 307aef01: Merge "LocationManager: Hide location provider and ↵Mike Lockwood2010-09-205-5/+11
|\ \ | |/ | | | | | | | | | | | | | | geocode provider APIs." into gingerbread Merge commit '24956d36f46dd7be0b029a7b2b43c1020ae8a4c5' * commit '24956d36f46dd7be0b029a7b2b43c1020ae8a4c5': LocationManager: Hide location provider and geocode provider APIs.
| * LocationManager: Hide location provider and geocode provider APIs.Mike Lockwood2010-09-205-5/+11
| | | | | | | | | | | | | | | | | | | | Also rename Geocoder.isImplemented() to Geocoder.isPresent() BUG: 3000738 BUG: 3001413 Change-Id: I56bb4e9a9c59f8b79de585eeb168f74c3ff1a853 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | resolved conflicts for merge of 53686433 to masterDianne Hackborn2010-09-132-8/+13
|\ \ | |/ | | | | Change-Id: I27004dc464f5771d3205ae5757c6eccc5b16854d
| * Track client requests through location manager.Dianne Hackborn2010-09-132-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a problem where applications could ask the location manager to do very heavy-weight things (like... say... update location every minute), which would get accounted against the system instead of the application because ultimately it is the system making the heavy calls (wake locks, etc). To solve this, we introduce a new class WorkSource representing the source of some work. Wake locks and Wifi locks allow you to set the source to use (but only if you are system code and thus can get the permission to do so), which is what will be reported to the battery stats until the actual caller. For the initial implementation, the location manager keeps track of all clients requesting periodic updates, and tells its providers about them as a WorkSource param when setting their min update time. The network location provider uses this to set the source on the wake and wifi locks it acquires, when doing work because of the update period. This should also be used elsewhere, such as in the GPS provider, but this is a good start. Change-Id: I2b6ffafad9e90ecf15d7c502e2db675fd52ae3cf
* | am d71021cb: am 0c731f99: Merge "Send broadcast intent when configured ↵Brad Fitzpatrick2010-08-271-0/+7
|\ \ | |/ | | | | | | | | | | | | | | location providers change." into gingerbread Merge commit 'd71021cb30bd20dabd6783f4235d5f245a7bd1a3' * commit 'd71021cb30bd20dabd6783f4235d5f245a7bd1a3': Send broadcast intent when configured location providers change.
| * Send broadcast intent when configured location providers change.Brad Fitzpatrick2010-08-271-0/+7
| | | | | | | | | | | | | | | | | | See e.g. http://code.google.com/p/android/issues/detail?id=10042 This is also needed by the power control widget, which has no reliable way otherwise of staying in-sync. Change-Id: I8f2b6b79b1843329bae952a25ea56f15e3cf92aa
* | Add new system service CountryDetectorBai Tao2010-07-286-0/+432
|/ | | | | | | | | | 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
* Don't throw an exception from isProviderEnabled and getLastKnownLocationMike Lockwood2010-07-171-3/+2
| | | | | | | | | | | | | if the location provider does not exist. Instead use the same behavior as if the provider were disabled in settings (return false for isProviderEnabled and null from getLastKnownLocation). This eliminates for a lot of exception handling around some simple queries to the location manager. BUG: 2841014 Change-Id: I4fbe0c088e915c90969e13083201dd3e7f4029cb Signed-off-by: Mike Lockwood <lockwood@android.com>
* andriod.location.Criteria: Simplify new location criteria APIs a bit.Mike Lockwood2010-06-231-96/+25
| | | | | | | | Remove ACCURACY_BEST and only use ACCURACY_MEDIUM for horizontal accuracy. Remove accuracy priority support, since it be difficult to implement in some cases. Change-Id: I785a781f8d8f3bf3be6693ad71d077b6eb280c31 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Merge "Add Geocorder.isImplemented()" into krakenMike Lockwood2010-05-242-1/+21
|\
| * Add Geocorder.isImplemented()Mark Vandevoorde2010-05-212-1/+21
| | | | | | | | | | | | | | | | | | | | The Geocorder interface is not part of the Android core. It requires a backend service which may or may not be available on a device. The new isImplemented static method allows apps to discover whether the Geocorder is in fact available on the device. Change-Id: I2b5cf7bcc9cce4766bcbb156e91edf34b01f9296
* | Fix broken Javadoc linksMike Lockwood2010-05-212-8/+8
|/ | | | | Change-Id: I6896d6ec16b522e9e63776c0992ef55a6db82d50 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Unhide new location manager APIs:Mike Lockwood2010-05-215-37/+0
| | | | | | | | | | | | | | Criteria.java LocationManager.java New APIs for criteria based location requests and single shot support. GeocoderParams.java GeocodeProvider.java LocationProvider.java APIs for network location unbundling. Change-Id: I3311fa01ce76fe4cba3537617e5b1c8d1f1d42b7 Signed-off-by: Mike Lockwood <lockwood@android.com>
* New Location Manager APIs for Criteria based requests and single shot mode.Mike Lockwood2010-05-216-308/+561
| | | | | | | | | | Use MS-Assisted mode for single shot GPS fixes if it is supported. Add finer grained control over accuracy to the android.location.Criteria class and location criteria logic from LocationManager to LocationManagerService Change-Id: I156b1f6c6a45d255c87ff917cf3e9726a6d7a75b Signed-off-by: Mike Lockwood <lockwood@android.com>
* am b6f0cbdc: merge from open-source masterThe Android Open Source Project2010-05-101-0/+6
|\ | | | | | | | | | | | | Merge commit 'b6f0cbdcbb566368ebe0468f61de024f644db6e1' into kraken * commit 'b6f0cbdcbb566368ebe0468f61de024f644db6e1': Include the API level 4 fields in the Parcel.
| * merge from open-source masterThe Android Open Source Project2010-05-101-0/+6
| |\ | | | | | | | | | Change-Id: Ia4cbea9d94b2ff34fc8ce97c1fe35ca5898d6c1c
| | * Include the API level 4 fields in the Parcel.Paul Watts2010-01-201-0/+6
| | |
| | * eclair snapshotJean-Baptiste Queru2009-11-137-28/+186
| | |
| | * donut snapshotJean-Baptiste Queru2009-07-291-0/+47
| | |
| | * donut snapshotJean-Baptiste Queru2009-07-214-59/+2
| | |
| | * donut snapshotJean-Baptiste Queru2009-05-2011-456/+265
| | |
* | | GpsStatus: Bounds check PRN to avoid array indexing exceptions.Mike Lockwood2010-04-141-9/+11
| | | | | | | | | | | | | | | Change-Id: Iea8b525dd8681f32cb7ce7415dad0ec665d9016d Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Move files internal to LocationManagerService from framework.jar to services.jarMike Lockwood2010-04-042-52/+31
|/ / | | | | | | | | Change-Id: Iebbfc49b8300ab59730733efdf489ec87ea45a25 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | location: dump LocationProvider internal stateFred Fettinger2010-03-073-0/+13
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Add passive location provider.Mike Lockwood2010-02-174-3/+22
| | | | | | | | | | | | | | | | | | 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-103-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-085-341/+416
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | 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-012-5/+0
| | | | | | | | | | Change-Id: Id6a9f6d2e2f5cc5810a2beeb0f869f06e2d18860 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-081-7/+6
| |
* | 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>
* | GPS: Fix problem with SUPL when SUPL APN is already active.Mike Lockwood2009-10-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-273-0/+45
| | | | | | | | | | | | Initial contribution from Qualcomm. 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-063-20/+136
| | | | | | | | | | | | | | | | 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>
* | 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 8c690ea9: Merge change 2182 into donutAndroid (Google) Code Review2009-05-214-59/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '8c690ea9976d644db3c96eddbbbd2d50eac56913' * commit '8c690ea9976d644db3c96eddbbbd2d50eac56913': location: Replace ILocationCollector interface with new ILocationProvider method
| * | location: Replace ILocationCollector interface with new ILocationProvider methodMike Lockwood2009-05-214-59/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | am 2677d0d: LocationManager: Fix a Javadoc comment.Mike Lockwood2009-05-121-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '2677d0da34acad93cd7f164d587ccc30c46facc6' * commit '2677d0da34acad93cd7f164d587ccc30c46facc6': LocationManager: Fix a Javadoc comment.
| * | LocationManager: Fix a Javadoc comment.Mike Lockwood2009-05-121-1/+1
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>