Merge "Fix logging typos in GpsLocationProvider"

This commit is contained in:
Victoria Lease
2013-01-02 14:15:51 -08:00
committed by Gerrit Code Review

View File

@@ -490,7 +490,7 @@ static void android_location_GpsLocationProvider_agps_data_conn_open(JNIEnv* env
static void android_location_GpsLocationProvider_agps_data_conn_closed(JNIEnv* env, jobject obj) static void android_location_GpsLocationProvider_agps_data_conn_closed(JNIEnv* env, jobject obj)
{ {
if (!sAGpsInterface) { if (!sAGpsInterface) {
ALOGE("no AGPS interface in agps_data_conn_open"); ALOGE("no AGPS interface in agps_data_conn_closed");
return; return;
} }
sAGpsInterface->data_conn_closed(); sAGpsInterface->data_conn_closed();
@@ -499,7 +499,7 @@ static void android_location_GpsLocationProvider_agps_data_conn_closed(JNIEnv* e
static void android_location_GpsLocationProvider_agps_data_conn_failed(JNIEnv* env, jobject obj) static void android_location_GpsLocationProvider_agps_data_conn_failed(JNIEnv* env, jobject obj)
{ {
if (!sAGpsInterface) { if (!sAGpsInterface) {
ALOGE("no AGPS interface in agps_data_conn_open"); ALOGE("no AGPS interface in agps_data_conn_failed");
return; return;
} }
sAGpsInterface->data_conn_failed(); sAGpsInterface->data_conn_failed();
@@ -509,7 +509,7 @@ static void android_location_GpsLocationProvider_set_agps_server(JNIEnv* env, jo
jint type, jstring hostname, jint port) jint type, jstring hostname, jint port)
{ {
if (!sAGpsInterface) { if (!sAGpsInterface) {
ALOGE("no AGPS interface in agps_data_conn_open"); ALOGE("no AGPS interface in set_agps_server");
return; return;
} }
const char *c_hostname = env->GetStringUTFChars(hostname, NULL); const char *c_hostname = env->GetStringUTFChars(hostname, NULL);