summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware/location
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Disable AR HW when client binder dies." into mnc-dr-devDaniel Estrada Alva2015-08-261-13/+66
|\
| * Disable AR HW when client binder dies.destradaa2015-08-241-13/+66
| | | | | | | | | | | | | | | | | | Ensure that activities are unregistered from AR HW when the client's binder dies. This clean up is required to prevent AR HW to keep active when there are no clients listening for events. Bug: 19894637 Change-Id: Iccd609cf1d2d4a4453c7a96cb8645b61639c3234
* | Cherry-pick: Add callback-based support for HW Activity Recognition.destradaa2015-08-242-1/+39
|/ | | | | | | | | Add a callback-based mechanism for GmsCore to connect to Hardware Activity Recognition. This allows GmsCore to stop polling to identify if the Android platform supports the functionality or not. Bug: 17112184 Change-Id: I8f9459cbd15eecd70f6919c6551e6f7a663c732f
* Ensure GeofenceHardware will return capabilities for old implementations.David Christie2015-04-141-1/+6
| | | | | | | | | | New FLP HAL implementations will explicitly return their capabilities, but old versions won't (the implicit capability in old versions was GNNS). Ensure that the getCapabilities feature of GeofenceHardware will return GNNS for old binaries, so GmsCore doesn't have to worry about versioning. Change-Id: I4b1c942b0d68d87bfbb18b8c06fd9d8b8f68efa6
* Add versioning to FLP HAL.David Christie2015-04-142-1/+15
| | | | | | | Retain compatibility with implementations compiled against old headers or left unchanged from LMP. Change-Id: I3f7cfaaf0cba8697c312940a805b053c6040caa6
* Add ability to flush FLP HAL batched locations buffer.David Christie2015-04-131-11/+18
| | | | | | | | | Currently GmsCore has to guess how many locations to retrieve based on requested frequency and then demux the output looking for timestamps (that aren't monotonically increasing). This capability gives GmsCore a more graceful solution. Change-Id: Ie1d71615f699bc0d3c63f8b80aa7b40b9971cf96
* Add a status callback for location batching in FLP HALDavid Christie2015-04-131-0/+6
| | | | | | | -Allows GmsCore to know when location is unsuccessful so it can switch to a SW solution. Change-Id: I3d1df7b828f7fb189446881eea87d9a952310614
* Add capability callback for FLP HAL.David Christie2015-04-123-3/+45
| | | | | | | | | | | | | | | | | | | | Let HAL implementation tell if geofencing/batching is supported and which technologies (GNNS, wifi, etc) can be used. Still todo: Add ability for GmsCore geofencing to tell which technologies are supported (instead of just using it to update monitoring). This requires SystemApi change + approval so will do in separate CL. Note that the classes in the lib are not copied directly into GmsCore. The instance will always be whatever is in the platform. This is why the callback is backwards compatible as long as their is a default implementation (but not if it's abstract). Change-Id: I7d6adeb049b89935bc4443785df5d7ef4c730e5d
* Frameworks/base: Fix format string in GeofenceAndreas Gampe2015-03-171-1/+1
| | | | | | | | %p is not a valid conversion in format strings. It is also superfluous, as it is already known that location is null. Bug: 19797138 Change-Id: I5784e28b05b4ca9aac57e0fc9da4a7f01d9b3247
* Fixed a leak in GeofenceHardwareImpl.java.Zhentao Sun2014-12-031-3/+61
| | | | | | | | | | | | | Bug: 18542685. This CL includes two changes: * Fixed a leak of DeathRecipient when geofences are removed from the hardware. * Avoid creating more DeathRecipient than needed. Use the underlying binder object instead of the callback object to tell if they are the same. So if the client passes the same callback instance to GeofenceHardwareImpl, only one DeathRecipient is created. Change-Id: I7809e4bc04df4f9e3590de98a03178b276c821ea
* Put in real "code" (aka marketing) name.Dianne Hackborn2014-10-071-1/+1
| | | | Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
* Add @SystemApi annotation to Geofence Hardware types.destradaa2014-08-185-4/+22
| | | | | | b/17008446 Change-Id: Id3f92dd03309324d3343c87da8c3e30733d06a64
* Fix NPE when fused geofence hardware is not available.Wonsik Kim2014-07-311-2/+2
| | | | | b/16690237 Change-Id: I3ac50c8fd50fc799afcfc76126a5fd0c9ba0a5f4
* Add support for sources in Geofencing APIs.destradaa2014-07-3010-67/+321
| | | | | | | | | | Support setting the source when adding geofences. b/14117199 Surface the source when FLP geofence changes state. b/14119200 Change-Id: I50dc40a9caee400594e1778c98e284e0db0d5e66
* Fix exceptions in ActivityRecognition platform stack.destradaa2014-07-173-11/+35
| | | | | | b/16348349 Change-Id: I1f85283c86130b86389a1be7da49904658b0558c
* Add support in the platform for Activity Recognition Hardware.destradaa2014-07-117-0/+526
| | | | Change-Id: I7c4fff3526583475a5edf1f4ba8fede4e9419ead
* Mark FLP constants as public, so they can be consumed by geofencing.destradaa2014-07-101-4/+0
| | | | Change-Id: I6e73692064a9f58eeac6ba1118c37ac500df0d9f
* Make sure FLP HAL statuses currently used are translated (if needed) ↵destradaa2014-04-251-2/+2
| | | | | | | | correctly into the framework. b/14118906 Change-Id: I4723a3b9cad99aacc70bd3b7b5b5e034aa6c033d
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-2/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Ensure access to the map of geofence callbacks is synchronized in all casesdestradaa2013-09-201-8/+6
| | | | | | | Fix Java reference leak in the JNI layer Bug: 10624887 Change-Id: I656973653d82c73a7ba2b51f22989ffed144c5df
* Add support in the platform for Flp Geofencing.destradaa2013-08-136-147/+397
| | | | Change-Id: I0fb0e276d3a06322697bb5d46323779aca1f78c5
* Add FlpHal layer to support Location Batching.destradaa2013-08-082-0/+158
| | | | Change-Id: Ia3a57d869dfb3f067a1b95fa66d54f311ddcfdc3
* Passed the correct gps geofence availability value to client.Zhentao Sun2013-05-141-2/+2
| | | | | | Fixed b/8967427. Change-Id: If205b963533f096c27985476a5d487a2d090ccf8
* Fixed unreleased wake lock isues and NPE.Zhentao Sun2013-05-061-34/+40
| | | | | | | Fixed b/8834502. Wake lock might not be released when the callback is null. NPE is thrown when the callback is null in some cases too. Change-Id: I27d3af810669e446cfb57aba8715c80cba3e15e7
* Fixed race conditions in GeofenceHardwareImpl.Zhentao Sun2013-04-261-41/+65
| | | | | | | | | | Fixed b/8725226 1. Check if a geofence is registered before calling removeGeofence, pauseGeofence and resumeGeofence 2. Moved add/remove operation of mGeofences from handler thread to binder thread to fix potential race conditions by REMOVE_GEOFENCE. Change-Id: I1c68a49ac4a08324c13702ba9013d2adf031aed9
* Hardware geofence API changes.Jaikumar Ganesh2013-04-179-111/+529
| | | | | | | | | | | | | b/8631678 1.GeofenceRequest object created. 2.MonitorState moved to a new callback 3.getTypeAndStatus separated to 2 calls. 4.Binder death implemented 5.geofenceChange callback name changed. 6.Parameters rearranged in some calls. Change-Id: I8fe9621186aeb49efeb0eef1821a2556afe03cfc
* GPS Hardware geofencing.Jaikumar Ganesh2013-04-106-0/+1338
Add support for doing geofencing in hardware. Change-Id: I6d5015190e8d84e1f4beb1010ed977a71c1622d0