summaryrefslogtreecommitdiffstats
path: root/location
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2012-08-13 19:36:38 -0700
committerNick Pelly <npelly@google.com>2012-08-16 15:22:24 -0700
commit74fa7eabda3d0c1a85e0b568e3fc4230ed4fe7a4 (patch)
treeaaf46ec024fa88f5172c39cfb46a0f8bf8c4a877 /location
parent08ca1046fe4f1890f91241f8d082a024ef6cfd93 (diff)
downloadframeworks_base-74fa7eabda3d0c1a85e0b568e3fc4230ed4fe7a4.zip
frameworks_base-74fa7eabda3d0c1a85e0b568e3fc4230ed4fe7a4.tar.gz
frameworks_base-74fa7eabda3d0c1a85e0b568e3fc4230ed4fe7a4.tar.bz2
Improve coarse locations.
Fix a couple of bugs, and modify the behavior of the random offset. The random offset now slowly changes over time, to mitigate against applications averaging out the offset over time while at a grid boundary. Change-Id: Iecffff29145b8c2b30d1eca1662cf9d3e8cff756
Diffstat (limited to 'location')
-rw-r--r--location/java/android/location/LocationRequest.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/location/java/android/location/LocationRequest.java b/location/java/android/location/LocationRequest.java
index 3110196..ce49b41 100644
--- a/location/java/android/location/LocationRequest.java
+++ b/location/java/android/location/LocationRequest.java
@@ -195,20 +195,6 @@ public final class LocationRequest implements Parcelable {
return mSmallestDisplacement;
}
- /** @hide */
- public LocationRequest applyCoarsePermissionRestrictions() {
- switch (mQuality) {
- case ACCURACY_FINE:
- mQuality = ACCURACY_BLOCK;
- break;
- }
- // cap fastest interval to 6 seconds
- if (mFastestInterval < 6 * 1000) mFastestInterval = 6 * 1000;
- // cap requested interval to 1 minute
- if (mInterval < 60 * 1000) mInterval = 60 * 1000;
- return this;
- }
-
private static void checkInterval(long millis) {
if (millis < 0) {
throw new IllegalArgumentException("invalid interval: " + millis);