diff options
author | David Christie <dnchrist@google.com> | 2015-04-12 21:26:02 -0700 |
---|---|---|
committer | David Christie <dnchrist@google.com> | 2015-04-13 19:13:52 -0700 |
commit | fff30439cafb737eb54de807caab4fb61432f2cc (patch) | |
tree | 95f9f5ff2c65b0a495236b92e20f664c92ff61f4 /location | |
parent | 832017963d1d74ba41348deed5eb747b45b441fb (diff) | |
download | frameworks_base-fff30439cafb737eb54de807caab4fb61432f2cc.zip frameworks_base-fff30439cafb737eb54de807caab4fb61432f2cc.tar.gz frameworks_base-fff30439cafb737eb54de807caab4fb61432f2cc.tar.bz2 |
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
Diffstat (limited to 'location')
-rw-r--r-- | location/lib/java/com/android/location/provider/FusedLocationHardware.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/location/lib/java/com/android/location/provider/FusedLocationHardware.java b/location/lib/java/com/android/location/provider/FusedLocationHardware.java index cbe404b7..480a18c 100644 --- a/location/lib/java/com/android/location/provider/FusedLocationHardware.java +++ b/location/lib/java/com/android/location/provider/FusedLocationHardware.java @@ -174,6 +174,14 @@ public final class FusedLocationHardware { } } + public void flushBatchedLocations() { + try { + mLocationHardware.flushBatchedLocations(); + } catch(RemoteException e) { + Log.e(TAG, "RemoteException at flushBatchedLocations"); + } + } + public boolean supportsDiagnosticDataInjection() { try { return mLocationHardware.supportsDiagnosticDataInjection(); |