Add BatteryInfo logging to settings

This Cl adds a few log statements to BatteryInfo to try
and determine what the bottleneck in the Battery Settings
Advanced page could be.

Test: robotests still pass
Bug: 62959645
Change-Id: I1ff712d97bc8be78873c63e187edbffa8e10cd21
This commit is contained in:
Salvador Martinez
2017-06-26 17:21:05 -07:00
parent 5243d5dd85
commit cc7c9603db
3 changed files with 24 additions and 10 deletions

View File

@@ -285,6 +285,10 @@ public class BatteryUtils {
}
public static void logRuntime(String tag, String message, long startTime) {
Log.d(tag, message + ": " + (System.currentTimeMillis() - startTime) + "ms");
}
/**
* Find package uid from package name
*