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

Commit 2c7eec74 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adds logging for the default GNSS HAL." into main

parents 7d5443de 32bd832e
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -123,10 +123,13 @@ ScopedAStatus Gnss::start() {
            std::this_thread::sleep_for(std::chrono::milliseconds(TTFF_MILLIS));
            std::this_thread::sleep_for(std::chrono::milliseconds(TTFF_MILLIS));
            mFirstFixReceived = true;
            mFirstFixReceived = true;
        }
        }
        int reportGnssCount = 0;
        do {
        do {
            if (!mIsActive) {
            if (!mIsActive) {
                ALOGD("Do not report location. mIsActive is false");
                break;
                break;
            }
            }
            reportGnssCount += 1;
            if (!mGnssMeasurementEnabled || mMinIntervalMs <= mGnssMeasurementIntervalMs) {
            if (!mGnssMeasurementEnabled || mMinIntervalMs <= mGnssMeasurementIntervalMs) {
                this->reportSvStatus();
                this->reportSvStatus();
            }
            }
@@ -141,6 +144,7 @@ ScopedAStatus Gnss::start() {
                this->reportLocation(location);
                this->reportLocation(location);
            }
            }
        } while (mIsActive && mThreadBlocker.wait_for(std::chrono::milliseconds(mMinIntervalMs)));
        } while (mIsActive && mThreadBlocker.wait_for(std::chrono::milliseconds(mMinIntervalMs)));
        ALOGD("reportGnssCount: %d", reportGnssCount);
    });
    });
    return ScopedAStatus::ok();
    return ScopedAStatus::ok();
}
}