am 6c8d8d89: am 8c32bddf: Merge "GPS: Disable verbose logging" into gingerbread

Merge commit '6c8d8d8927373fdb9ad1c853396b5dbc8295f996'

* commit '6c8d8d8927373fdb9ad1c853396b5dbc8295f996':
  GPS: Disable verbose logging
This commit is contained in:
Mike Lockwood
2010-10-25 14:00:38 -07:00
committed by Android Git Automerger
2 changed files with 7 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ import java.util.Set;
*/
public class LocationManagerService extends ILocationManager.Stub implements Runnable {
private static final String TAG = "LocationManagerService";
private static final boolean LOCAL_LOGV = true;
private static final boolean LOCAL_LOGV = false;
// The last time a location was written, by provider name.
private HashMap<String,Long> mLastWriteTime = new HashMap<String,Long>();
@@ -1677,6 +1677,9 @@ public class LocationManagerService extends ILocationManager.Stub implements Run
}
public Location getLastKnownLocation(String provider) {
if (LOCAL_LOGV) {
Slog.v(TAG, "getLastKnownLocation: " + provider);
}
try {
synchronized (mLock) {
return _getLastKnownLocationLocked(provider);