summaryrefslogtreecommitdiffstats
path: root/location/java/com
Commit message (Collapse)AuthorAgeFilesLines
* remove usage of deprecated method setLatestEventInfoChris Wren2015-06-121-14/+16
| | | | | Bug: 18510449 Change-Id: I56a77991c729990e501f402e007dfa79ee57621e
* Replace usages of deprecated Resources.getColor() and getColorStateList()Alan Viverette2015-03-181-1/+1
| | | | Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-1/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Fix an incorrect behavior that failed AT&T privacy test.Tsuwei Chen2014-09-251-1/+1
| | | | | | Bug: 17278951 Change-Id: I8b8bf4ed19af8738e7cef3553c8a06f7e27c7264
* Handle user privacy properly during network initiated requests.Tsuwei Chen2014-09-121-19/+71
| | | | | | Bug: 16131208 Change-Id: Ic6f83fcf24eef9e0e26e303bb652651f0dc2970a
* Manually merge QC's change for SUPL_ES.Tsuwei Chen2014-09-081-52/+176
| | | | | | | | | | | | | Original CL: https://android-review.googlesource.com/#/c/105431 Emergency SUPL Added emergency SUPL when UE is in emergency mode. Bug: 17118312 Change-Id: Id9b77add9bbab139b983a84d5a4c798c9c94df43
* Added notification color to all system notificationsSelim Cinek2014-08-201-1/+3
| | | | | Bug: 17128331 Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-1/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* am 768d9e1a: Merge "Correct executable bit for source files"Kenny Root2012-11-071-0/+0
|\ | | | | | | | | * commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04': Correct executable bit for source files
| * Correct executable bit for source filesKenny Root2012-11-071-0/+0
| | | | | | | | | | | | | | | | | | Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
* | Route GPS notifications to all users.Victoria Lease2012-10-011-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | This takes the easy way around notifying the correct users about GPS state transitions by notifying ALL the users(!). I've also laid groundwork for proper multiuser support in LocationManager and did a tiny bit of cleanup in GpsNetInitiatedHandler while I was looking at notifications. Bug: 7213552 Change-Id: I2d6dc65c459e55d110ac0f5f79ae7a87ad638ede
* | Fix some location issues exposed by CTS.Nick Pelly2012-08-211-1/+1
| | | | | | | | Change-Id: I5859ee2c9db5745b0a3bc8abfa8f08728fb25059
* | Fix a couple of bugs from the location overhaul.Nick Pelly2012-08-101-6/+6
| | | | | | | | | | | | | | | | | | | | Marshall LocationRequest array correctly. Observe reportLocation from FusionEngine. Actually deliver the setRequest message to fusion engine. Change-Id: Iff64596fdd42f9fb06e563591dda9fbe0241533a
* | Location overhaul, major commit.Nick Pelly2012-08-106-180/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Themes: Fused Location, Geofencing, LocationRequest. API changes o Fused location is always returned when asking for location by Criteria. o Fused location is never returned as a LocationProvider object, nor returned as a provider String. This wouldn't make sense because the current API design assumes that LocationProvider's have fixed properties (accuracy, power etc). o The fused location engine will tune itself based on the criteria passed by applications. o Deprecate LocationProvider. Apps should use fused location (via Criteria class), instead of enumerating through LocationProvider objects. It is also over-engineered: designed for a world with a plethora of location providers that never materialized. o The Criteria class is also over-engineered, with many methods that aren't currently used, but for now we won't deprecate them since they may have value in the future. It is now used to tune the fused location engine. o Deprecate getBestProvider() and getProvider(). o Add getLastKnownLocation(Criteria), so we can return last known fused locations. o Apps with only ACCESS_COARSE_LOCATION _can_ now use the GPS, but the location they receive will be fudged to a 1km radius. They can also use NETWORK and fused locatoins, which are fudged in the same way if necessary. o Totally deprecate Criteria, in favor of LocationRequest. Criteria was designed to map QOS to a location provider. What we really need is to map QOS to _locations_. The death knell was the conflicting ACCURACY_ constants on Criteria, with values 1, 2, 3, 1, 2. Yes not a typo. o Totally deprecate LocationProvider. o Deprecate test/mock provider support. They require a named provider, which is a concept we are moving away from. We do not yet have a replacement, but I think its ok to deprecate since you also need to have 'allow mock locations' checked in developer settings. They will continue to work. o Deprecate event codes associated with provider status. The fused provider is _always_ available. o Introduce Geofence data object to provide an easier path fowards for polygons etc. Implementation changes o Fused implementation: incoming (GPS and NLP) location fixes are given a weight, that exponentially decays with respect to age and accuracy. The half-life of age is ~60 seconds, and the half-life of accuracy is ~20 meters. The fixes are weighted and combined to output a fused location. o Move Fused Location impl into frameworks/base/packages/FusedLocation o Refactor Fused Location behind the IProvider AIDL interface. This allow us to distribute newer versions of Fused Location in a new APK, at run-time. o Introduce ServiceWatcher.java, to refactor code used for run-time upgrades of Fused Location, and the NLP. o Fused Location is by default run in the system server (but can be moved to any process or pacakge, even at run-time). o Plumb the Criteria requirements through to the Fused Location provider via ILocation.sendExtraCommand(). I re-used this interface to avoid modifying the ILocation interface, which would have broken run-time upgradability of the NLP. o Switch the geofence manager to using fused location. o Clean up 'adb shell dumpsys location' output. o Introduce config_locationProviderPackageNames and config_overlay_locationProviderPackageNames to configure the default and overlay package names for Geocoder, NLP and FLP. o Lots of misc cleanup. o Improve location fudging. Apply random vector then quantize. o Hide internal POJO's from clients of com.android.location.provider.jar (NLP and FLP). Introduce wrappers ProviderRequestUnbundled and ProviderPropertiesUnbundled. o Introduce ProviderProperties to collapse all the provider accuracy/ bearing/altitude/power plumbing (that is deprecated anyway). o DELETE lots of code: DummyLocationProvider, o Rename the (internal) LocationProvider to LocationProviderBase. o Plumb pid, uid and packageName throughout LocationManagerService#Receiver to support future features. TODO: The FLP and Geofencer have a lot of room to be more intelligent TODO: Documentation TODO: test test test Change-Id: Iacefd2f176ed40ce1e23b090a164792aa8819c55
* | Improve geofencing: throttle location updates with distance to fence.Nick Pelly2012-07-161-1/+10
|/ | | | | | | | | | | | | | | | | | | | | Previously any geofence (proximity alert) would turn the GPS on at full rate. Now, we modify the GPS interval with the distance to the nearest geofence. A speed of 100m/s is assumed to calculate the next GPS update. Also o Major refactor of geofencing code, to make it easier to continue to improve. o Discard proximity alerts when an app is removed. o Misc cleanup of nearby code. There are other upcoming changes that make this a good time for some house-keeping. TODO: The new geofencing heuristics are much better than before, but still relatively naive. The next steps could be: - Improve boundary detection - Improve update thottling for large geofences - Consider velocity when throttling Change-Id: Ie6e23d2cb2b931eba5d2a2fc759543bb96e2f7d0
* Acknowledge that the platform guarantees UTF-8 and UTF-16.Jesse Wilson2011-07-191-2/+2
| | | | | | | | These log statements were dead code. That isn't much of a problem, except that the 'e.getMessage()' that was being logged could be null, and that would cause a real problem. Change-Id: I8573bc687a7eda73782bd028e8ddc048a1954dc5
* Add FLAG_AUTO_CANCEL flag for multiple supl notifications.Anshuman Pandey2011-06-151-1/+1
| | | | | | | | | Added FLAG_AUTO_CANCEL to notification flags in GpsNetInitiatedHandler.java. This is done to clear consecutive notifications in UI Change-Id: I84be36af0b556f43ffd7d51ac04ff12300090ca5 Signed-off-by: Anshuman Pandey <anshuman.pandey@stericsson.com> Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
* Fixed GSM encoded network initiated position requestHakan Gustavsson2011-02-221-46/+21
| | | | | | | | | | | | GSM encoded network initiated position requests were previously not correctly decoded. The GSM encoded string was decoded as ASCII but not all characters are encoded in the same way for GSM and ASCII. These characters was not displayed. Besides that, when the number of characters was evenly divided by 8 the last character was lost. This is also corrected. Change-Id: Ic70b7c28bbba1f2936a9cc99e78f8002cc5c8761
* resolved conflicts for merge of 78742e01 to stage-korg-masterJean-Baptiste Queru2010-12-071-16/+17
|\ | | | | | | Change-Id: I0ce429afeb26184f075b4ed326fc4e1c0833e905
| * Strings for NI position request are moved to resourcesHakan Gustavsson2010-12-031-16/+17
| | | | | | | | | | | | | | The strings used by the framework for network initiated position requests are now string resources that can be properly localized. Change-Id: If1cba89adb1bfcb9c8fdb59b9c5aa1107b11279e
| * GPS: Initialize XTRA support when GPS is enabledMike Lockwood2010-08-301-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-08-301-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>
| * merge from open-source masterThe Android Open Source Project2010-05-061-23/+23
| |\ | | | | | | | | | Change-Id: I4c28751bd84b41259b12b0f3e3307e11234c8b64
| | * GpsLocationProvider: Store new Location before onGpsStatusChanged is sentHakan Gustavsson2010-04-191-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | In reportLocation() the new location is now stored before the callback onGpsStatusChanged(GPS_EVENT_FIRST_FIX) is sent. This will prevent users from getting a faulty location from LocationManager.getLastKnownLocation() after receiving onGpsStatusChanged(GPS_EVENT_FIRST_FIX). Change-Id: I6c654b2acbf2e216c99058a20f068bf4721a1c7a
| | * merge from open-source masterThe Android Open Source Project2010-02-051-0/+2
| | |\
| | | * 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: Ifeeb1d5094d1e7304974b7c3ac27dd83b1e65bca Signed-off-by: Mike Lockwood <lockwood@android.com>
| | | * Be tolerant of GPS session and engine on status messages arriving out of order.Mike Lockwood2010-02-021-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 2366194 Change-Id: Iac152cc46f3647e12c9077f1bfa4183f19ac94b6 Signed-off-by: Mike Lockwood <lockwood@android.com>
| | | * GpsLocationProvider: Do not release wakelock until the GPS engine is fully offMike Lockwood2010-02-021-36/+34
| | | | | | | | | | | | | | | | | | | | Change-Id: I705b1d33af2d70aa1084cca8f6280fade9461d2c Signed-off-by: Mike Lockwood <lockwood@android.com>
| | | * eclair snapshotJean-Baptiste Queru2009-11-135-39/+640
| | | |
| | | * donut snapshotJean-Baptiste Queru2009-07-213-91/+132
| | | |
| | | * donut snapshotJean-Baptiste Queru2009-05-2010-1374/+958
| | | |
* | | | New Location Manager APIs for Criteria based requests and single shot mode.Mike Lockwood2010-05-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | Move files internal to LocationManagerService from framework.jar to services.jarMike Lockwood2010-04-047-2495/+12
| | | | | | | | | | | | | | | | | | | | Change-Id: Iebbfc49b8300ab59730733efdf489ec87ea45a25 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | GpsNetInitiatedHandler: whitespace cleanupMike Lockwood2010-04-041-254/+254
| | | | | | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | Call LocationManager.sendNiResponse() instead of calling directly to ↵Mike Lockwood2010-04-042-11/+6
|/ / / | | | | | | | | | | | | | | | | | | GpsLocationProvider Change-Id: I6a5b47abb0519f5228d29bc3340bb2490564803e Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | 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-074-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | 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-173-2/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-082-118/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ILocationProvider.isEnabled() binder call and use cached value instead.Mike Lockwood2010-02-013-14/+4
| | | | | | | | | | | | | | | Change-Id: Id6a9f6d2e2f5cc5810a2beeb0f869f06e2d18860 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | 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.