diff options
author | Kevin.KY Tsai <kevin.ky_tsai@htc.com> | 2010-05-21 15:10:39 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-05-21 15:10:39 -0400 |
commit | 0881f4f9339febee85c9ab4cba69970ac5cbde55 (patch) | |
tree | 61c2db5331dc37fe483f53ae8b233c9fcc6d03cc /services/java/com/android/server | |
parent | 71677f84e7705aa48b04829538b954a13cd11dec (diff) | |
download | frameworks_base-0881f4f9339febee85c9ab4cba69970ac5cbde55.zip frameworks_base-0881f4f9339febee85c9ab4cba69970ac5cbde55.tar.gz frameworks_base-0881f4f9339febee85c9ab4cba69970ac5cbde55.tar.bz2 |
Report number of satellites used in fix instead of total for GPS Location extra
Change-Id: Ibffc8d21b31b02a91c8506733002e4a778556978
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'services/java/com/android/server')
-rwxr-xr-x | services/java/com/android/server/location/GpsLocationProvider.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/location/GpsLocationProvider.java b/services/java/com/android/server/location/GpsLocationProvider.java index 6fe02c2..0cf67a3 100755 --- a/services/java/com/android/server/location/GpsLocationProvider.java +++ b/services/java/com/android/server/location/GpsLocationProvider.java @@ -1173,7 +1173,8 @@ public class GpsLocationProvider implements LocationProviderInterface { } } - updateStatus(mStatus, svCount); + // return number of sets used in fix instead of total + updateStatus(mStatus, Integer.bitCount(mSvMasks[USED_FOR_FIX_MASK])); if (mNavigating && mStatus == LocationProvider.AVAILABLE && mLastFixTime > 0 && System.currentTimeMillis() - mLastFixTime > RECENT_FIX_TIMEOUT) { |