am a50f43e0: am 23e19066: Merge "BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources" into mnc-dev
* commit 'a50f43e0028ec174827e73d1e45666b8e694808f': BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources
This commit is contained in:
@@ -67,13 +67,13 @@ public class KernelWakelockReader {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
FileInputStream is;
|
FileInputStream is;
|
||||||
try {
|
|
||||||
is = new FileInputStream(sWakeupSourceFile);
|
|
||||||
wakeup_sources = true;
|
|
||||||
} catch (java.io.FileNotFoundException e) {
|
|
||||||
try {
|
try {
|
||||||
is = new FileInputStream(sWakelockFile);
|
is = new FileInputStream(sWakelockFile);
|
||||||
wakeup_sources = false;
|
wakeup_sources = false;
|
||||||
|
} catch (java.io.FileNotFoundException e) {
|
||||||
|
try {
|
||||||
|
is = new FileInputStream(sWakeupSourceFile);
|
||||||
|
wakeup_sources = true;
|
||||||
} catch (java.io.FileNotFoundException e2) {
|
} catch (java.io.FileNotFoundException e2) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user