OSDN Git Service

Avoid performing work in the platform when GPS HAL does not support a feature.
authordestradaa <destradaa@google.com>
Fri, 17 Apr 2015 20:10:47 +0000 (13:10 -0700)
committerdestradaa <destradaa@google.com>
Fri, 17 Apr 2015 20:13:52 +0000 (13:13 -0700)
commitef752b69444b1d63e2b177e0589d2bf4e5383845
tree9b4176f371c88bf9ac78c5cf6fba54a2800079bc
parente354f5d5806c1566761e03fbdf5a46a723d6ebd3
Avoid performing work in the platform when GPS HAL does not support a feature.
b/19271554

Prevents accessing and computing data in cases when we know that the result
cannot be used by the GPS HAL, because the required interface is not supported.

Change-Id: I74bf1719f2c8ab7fbfe1244ebe0bebe3ed55ba24
services/core/java/com/android/server/location/GpsLocationProvider.java
services/core/jni/com_android_server_location_GpsLocationProvider.cpp