diff options
| author | 2010-10-25 13:49:13 -0700 | |
|---|---|---|
| committer | 2010-10-25 13:49:13 -0700 | |
| commit | 8c32bddfac259543f4ed87341fce42bc5ed60506 (patch) | |
| tree | 033b51eda76fb75f7f367b51957721ef6a0f94c0 | |
| parent | 457bed2bc6561dd67429dde238453fee8602fa9b (diff) | |
| parent | 4a7b65e0d544ef1feff8e1e5789f469f89ebb85c (diff) | |
Merge "GPS: Disable verbose logging" into gingerbread
| -rw-r--r-- | services/java/com/android/server/LocationManagerService.java | 5 | ||||
| -rwxr-xr-x | services/java/com/android/server/location/GpsLocationProvider.java | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/services/java/com/android/server/LocationManagerService.java b/services/java/com/android/server/LocationManagerService.java index fe1b231b5097..8644cebae524 100644 --- a/services/java/com/android/server/LocationManagerService.java +++ b/services/java/com/android/server/LocationManagerService.java @@ -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>(); @@ -1674,6 +1674,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); diff --git a/services/java/com/android/server/location/GpsLocationProvider.java b/services/java/com/android/server/location/GpsLocationProvider.java index 755a2281d398..356186279fd7 100755 --- a/services/java/com/android/server/location/GpsLocationProvider.java +++ b/services/java/com/android/server/location/GpsLocationProvider.java @@ -82,7 +82,7 @@ public class GpsLocationProvider implements LocationProviderInterface { private static final String TAG = "GpsLocationProvider"; - private static final boolean DEBUG = true; + private static final boolean DEBUG = false; private static final boolean VERBOSE = false; // these need to match GpsPositionMode enum in gps.h @@ -1250,7 +1250,7 @@ public class GpsLocationProvider implements LocationProviderInterface { native_agps_data_conn_failed(); } } else if (result == Phone.APN_REQUEST_STARTED) { - if (DEBUG) Log.d(TAG, "Phone.APN_ALREADYAPN_REQUEST_STARTED_ACTIVE"); + if (DEBUG) Log.d(TAG, "Phone.APN_REQUEST_STARTED"); // Nothing to do here } else { if (DEBUG) Log.d(TAG, "startUsingNetworkFeature failed"); @@ -1492,8 +1492,7 @@ public class GpsLocationProvider implements LocationProviderInterface { private final class ProviderHandler extends Handler { @Override - public void handleMessage(Message msg) - { + public void handleMessage(Message msg) { int message = msg.what; switch (message) { case ENABLE: |