Fix indentation for dumpsys

Test: na
Change-Id: I1a15505ed95fe1d3730b52e6ec116190a156e1ec
This commit is contained in:
Soonil Nagarkar
2019-11-21 12:40:49 -08:00
parent f10083e2ae
commit 1249eafeec
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));