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

This commit is contained in:
TreeHugger Robot
2017-07-17 14:21:01 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 0 deletions

View File

@@ -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));

View File

@@ -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: "