Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8d9033d authored by Mike Lockwood's avatar Mike Lockwood
Browse files

GPS: Enable some more logging



Change-Id: I7d13c859002fa96fa8c361c0c709931c6b12eb99
Signed-off-by: default avatarMike Lockwood <lockwood@google.com>
parent 2d4d1bf1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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();
                }
+2 −1
Original line number Diff line number Diff line
@@ -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__);