Merge "BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources" into mnc-dev

This commit is contained in:
Adam Lesinski
2015-07-21 19:26:43 +00:00
committed by Android (Google) Code Review

View File

@@ -68,12 +68,12 @@ public class KernelWakelockReader {
try { try {
FileInputStream is; FileInputStream is;
try { try {
is = new FileInputStream(sWakeupSourceFile); is = new FileInputStream(sWakelockFile);
wakeup_sources = true; wakeup_sources = false;
} catch (java.io.FileNotFoundException e) { } catch (java.io.FileNotFoundException e) {
try { try {
is = new FileInputStream(sWakelockFile); is = new FileInputStream(sWakeupSourceFile);
wakeup_sources = false; wakeup_sources = true;
} catch (java.io.FileNotFoundException e2) { } catch (java.io.FileNotFoundException e2) {
return null; return null;
} }