Add support for GPS measurement/navigation message capabilities.

b/16727892
b/16815124

The listeners are changed to receive statuses asynchronously, this is required because GPS HAL,
requires time to be notified of the capabilities it supports.

Change-Id: Ie69fdd629d8680341386a2c736bc851632dd2bda
This commit is contained in:
destradaa
2014-10-27 12:47:41 -07:00
parent b9eabc5c2b
commit 6568d709e7
15 changed files with 459 additions and 154 deletions

View File

@@ -1579,7 +1579,7 @@ public class LocationManager {
* Adds a GPS Measurement listener.
*
* @param listener a {@link GpsMeasurementsEvent.Listener} object to register.
* @return {@code true} if the listener was successfully registered, {@code false} otherwise.
* @return {@code true} if the listener was added successfully, {@code false} otherwise.
*
* @hide
*/
@@ -1602,7 +1602,7 @@ public class LocationManager {
* Adds a GPS Navigation Message listener.
*
* @param listener a {@link GpsNavigationMessageEvent.Listener} object to register.
* @return {@code true} if the listener was successfully registered, {@code false} otherwise.
* @return {@code true} if the listener was added successfully, {@code false} otherwise.
*
* @hide
*/