Merge "Fix indentation for dumpsys"

This commit is contained in:
TreeHugger Robot
2019-11-22 00:04:15 +00:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 5 deletions

View File

@@ -3309,18 +3309,24 @@ public class LocationManagerService extends ILocationManager.Stub {
ipw.decreaseIndent();
}
mSettingsStore.dump(fd, pw, args);
ipw.println("Location Settings:");
ipw.increaseIndent();
mSettingsStore.dump(fd, ipw, args);
ipw.decreaseIndent();
ipw.println("Location Providers:");
ipw.increaseIndent();
for (LocationProvider provider : mProviders) {
provider.dumpLocked(fd, ipw, args);
}
ipw.decreaseIndent();
}
if (mGnssManagerService != null) {
ipw.println("GNSS:");
ipw.increaseIndent();
mGnssManagerService.dump(fd, ipw, args);
ipw.decreaseIndent();
mGnssManagerService.dump(fd, pw, args);
}
}
}

View File

@@ -237,9 +237,6 @@ public class LocationSettingsStore {
IndentingPrintWriter ipw = new IndentingPrintWriter(pw, " ");
int userId = ActivityManager.getCurrentUser();
ipw.println("--Location Settings--");
ipw.increaseIndent();
ipw.print("Location Enabled: ");
ipw.println(isLocationEnabled(userId));