summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2010-10-18 15:14:46 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-10-18 15:14:46 -0700
commit5d5a9db514a9cf42fbc189fc3af6da602d89b747 (patch)
treed55457e5fb3d5f15c04327f7ebda81f109cbc5cd
parent7689dd4928d1cc4080e43f83a523521b5ecf44e5 (diff)
parentb8d9033d9928209e68518c4b12fea74187ddb382 (diff)
downloadframeworks_base-5d5a9db514a9cf42fbc189fc3af6da602d89b747.zip
frameworks_base-5d5a9db514a9cf42fbc189fc3af6da602d89b747.tar.gz
frameworks_base-5d5a9db514a9cf42fbc189fc3af6da602d89b747.tar.bz2
Merge "GPS: Enable some more logging" into gingerbread
-rwxr-xr-xservices/java/com/android/server/location/GpsLocationProvider.java4
-rwxr-xr-xservices/jni/com_android_server_location_GpsLocationProvider.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/services/java/com/android/server/location/GpsLocationProvider.java b/services/java/com/android/server/location/GpsLocationProvider.java
index b05d214..4a6b5f4 100755
--- a/services/java/com/android/server/location/GpsLocationProvider.java
+++ b/services/java/com/android/server/location/GpsLocationProvider.java
@@ -1113,7 +1113,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
* called from native code to update our status
*/
private void reportStatus(int status) {
- if (VERBOSE) Log.v(TAG, "reportStatus status: " + status);
+ if (DEBUG) Log.v(TAG, "reportStatus status: " + status);
synchronized(mListeners) {
boolean wasNavigating = mNavigating;
@@ -1250,8 +1250,10 @@ 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");
// Nothing to do here
} else {
+ if (DEBUG) Log.d(TAG, "startUsingNetworkFeature failed");
mAGpsDataConnectionState = AGPS_DATA_CONNECTION_CLOSED;
native_agps_data_conn_failed();
}
diff --git a/services/jni/com_android_server_location_GpsLocationProvider.cpp b/services/jni/com_android_server_location_GpsLocationProvider.cpp
index 1d93f82..f5e17f5 100755
--- a/services/jni/com_android_server_location_GpsLocationProvider.cpp
+++ b/services/jni/com_android_server_location_GpsLocationProvider.cpp
@@ -16,7 +16,7 @@
#define LOG_TAG "GpsLocationProvider"
-//#define LOG_NDEBUG 0
+#define LOG_NDEBUG 0
#include "JNIHelp.h"
#include "jni.h"
@@ -106,6 +106,7 @@ static void nmea_callback(GpsUtcTime timestamp, const char* nmea, int length)
static void set_capabilities_callback(uint32_t capabilities)
{
+ LOGD("set_capabilities_callback: %ld\n", capabilities);
JNIEnv* env = AndroidRuntime::getJNIEnv();
env->CallVoidMethod(mCallbacksObj, method_setEngineCapabilities, capabilities);
checkAndClearExceptionFromCallback(env, __FUNCTION__);