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

Commit 05df0346 authored by Wyatt Riley's avatar Wyatt Riley Committed by android-build-merger
Browse files

Merge "Improved GNSS state debug logs" into oc-dr1-dev

am: bd2d9f8f

Change-Id: I414ff67d392f5d11a2b5919556ceff6fc6e1b393
parents 9022cf0c bd2d9f8f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2516,6 +2516,7 @@ public class GnssLocationProvider implements LocationProviderInterface {
    @Override
    public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
        StringBuilder s = new StringBuilder();
        s.append("  mStarted=").append(mStarted).append('\n');
        s.append("  mFixInterval=").append(mFixInterval).append('\n');
        s.append("  mDisableGps (battery saver mode)=").append(mDisableGps).append('\n');
        s.append("  mEngineCapabilities=0x").append(Integer.toHexString(mEngineCapabilities));
+4 −0
Original line number Diff line number Diff line
@@ -1523,6 +1523,10 @@ static jstring android_location_GnssLocationProvider_get_internal_state(JNIEnv*
                          << " satellites:: " << std::endl;
        }

        internalState << "constellation: 1=GPS, 2=SBAS, 3=GLO, 4=QZSS, 5=BDS, 6=GAL; "
                      << "ephemerisType: 0=Eph, 1=Alm, 2=?; "
                      << "ephemerisSource: 0=Demod, 1=Supl, 2=Server, 3=?; "
                      << "ephemerisHealth: 0=Good, 1=Bad, 2=?" << std::endl;
        for (size_t i = 0; i < data.satelliteDataArray.size(); i++) {
            internalState << "svid: " << data.satelliteDataArray[i].svid
                          << ", constellation: "