Merge "Improved GNSS state debug logs" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
bd2d9f8fdf
@@ -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));
|
||||
|
||||
@@ -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: "
|
||||
|
||||
Reference in New Issue
Block a user