History log of /frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b902698632be50231d1597a38200a44026c1c94f 28-Aug-2015 destradaa <destradaa@google.com> Clean up Gps/Flp Hardware on shut-down.

Ensures that the GPS and FLP HAL interfaces are deinitialized upon
system shut-down. This gives a chance for the underlying HAL to
close cleanly any resources it could be holding.
Note this approach only works for a device's power-off, scenarios
such as adb shell stop / start cannot be handled, because in such
cases the process is terminated sending SIGKILL to it.

Bug: 23279835
Bug: 23279593
Change-Id: I29b3306c0ae2b384d0542031080a15fdbe49dd71
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
a1a8e7f356582b12f91cf7608f6cf82a829a4564 20-Jun-2015 David Christie <dnchrist@google.com> Wait for the capabilities callback before deciding FLP HAL version.

-Some implementations require a modem handshake to determine
FLP HAL version and can't do it upon initialization. Wait
for a v2 callback before assuming that the HAL implementation
is actually v2.

Bug: 21958418
Change-Id: I7512d293f99363c63580c69d84f80da96a88dd2f
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
38feb6f1ece3b5213a42341c6dd91fd3e12b0760 15-May-2015 David Christie <dnchrist@google.com> Fix issue where GeofenceHardwareImpl can crash.
-It can't be instantiated before looper thread
is ready.
Bug: 21185178

Change-Id: I9e5434f7821c608a01bfd962c5482f6c2c2a022d
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
cfc9b6d6ab3c622ea4f9d06c28d6e0d2055d98e1 14-Apr-2015 David Christie <dnchrist@google.com> Add versioning to FLP HAL.

Retain compatibility with implementations compiled
against old headers or left unchanged from LMP.

Change-Id: I3f7cfaaf0cba8697c312940a805b053c6040caa6
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
fff30439cafb737eb54de807caab4fb61432f2cc 13-Apr-2015 David Christie <dnchrist@google.com> Add ability to flush FLP HAL batched locations buffer.

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
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
15003f19e5e5a443222569401f167a3ac0e1de3a 13-Apr-2015 David Christie <dnchrist@google.com> Add a status callback for location batching in FLP HAL

-Allows GmsCore to know when location is unsuccessful so
it can switch to a SW solution.

Change-Id: I3d1df7b828f7fb189446881eea87d9a952310614
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
ffca45a2cdd778e6edd5c3959bf53c6192b7e035 12-Apr-2015 David Christie <dnchrist@google.com> Add capability callback for FLP HAL.

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/services/core/java/com/android/server/location/FlpHardwareProvider.java
daf35c31363fd9cf43aa9e556d1257bd3c3b7a22 05-Aug-2014 David Christie <dnchrist@google.com> Fix issue where FlpHardwareProvider can crash if GmsCore re-registers a sink.

Change-Id: If6f4e9bc3c5be6ca537de2dae1fddd6351350e9e
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
17ff2b2b3a28da2f34e82ce1a623865fc249e87c 10-Jul-2014 destradaa <destradaa@google.com> Mark FLP constants as public, so they can be consumed by geofencing.

Change-Id: I6e73692064a9f58eeac6ba1118c37ac500df0d9f
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
5ce66d8dcc786b3d6a0fdfb42074e6c9741590ef 29-May-2014 destradaa <destradaa@google.com> Re-work the initialization of FLP HAL to make isSupported() static.
b/14839888

Change-Id: Ib5973586fd8a2d4a1e5fd09cf82dd4f4493398d0
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
a4dfc2c56b0efd0094d8cf9156c7b24fb4e67d25 13-May-2014 Zhentao Sun <robinvane@google.com> Make sure nativeInit is called on an object.

This bug is introduced by the attempt to fix b/14117917.
Worked around b/14469172. The implementation of nativeInit assumes that
it's called on a object instead of class.

Change-Id: I73241e62aa73ce98358ff37b772d1a26daf9e53c
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
cfbdcd259497ec5800028074ae487e5d4f112e5c 30-Apr-2014 destradaa <destradaa@google.com> Make sure the FlpHardwareProvider is only advertised to GmsCore if the platform supports it.
b/14117917

Change-Id: Id6c2444893bcf192049e3233d1296eac16fcf826
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
cc972725af35284c0b571aaa0dc6873e69b15119 25-Apr-2014 destradaa <destradaa@google.com> Make sure FLP HAL statuses currently used are translated (if needed) correctly into the framework.
b/14118906

Change-Id: I4723a3b9cad99aacc70bd3b7b5b5e034aa6c033d
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java
9158825f9c41869689d6b1786d7c7aa8bdd524ce 22-Nov-2013 Amith Yamasani <yamasani@google.com> Move some system services to separate directories

Refactored the directory structure so that services can be optionally
excluded. This is step 1. Will be followed by another change that makes
it possible to remove services from the build.

Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
/frameworks/base/services/core/java/com/android/server/location/FlpHardwareProvider.java