Merge "Add Battery time to location dumpsys" into pi-dev

am: b1d14ec3e1

Change-Id: Ib5bd4eb953888da96be7dbee8ebaacb86e2e0a6c
This commit is contained in:
Siddharth Ray
2018-03-29 02:19:12 +00:00
committed by android-build-merger

View File

@@ -224,7 +224,9 @@ public class GnssMetrics {
s.append("GNSS_KPI_END").append("\n");
GpsBatteryStats stats = mGnssPowerMetrics.getGpsBatteryStats();
if (stats != null) {
s.append("Power Metrics").append('\n');
s.append("Power Metrics").append("\n");
s.append(" Time on battery (min): "
+ stats.getLoggingDurationMs() / ((double) DateUtils.MINUTE_IN_MILLIS)).append("\n");
long[] t = stats.getTimeInGpsSignalQualityLevel();
if (t != null && t.length == NUM_GPS_SIGNAL_QUALITY_LEVELS) {
s.append(" Amount of time (while on battery) Top 4 Avg CN0 > " +