am e54253bd: Merge "Fix crash when no power_profile is specified" into mnc-dr-dev
* commit 'e54253bdd317cbe806225081ad9ebe64f2b50b9a': Fix crash when no power_profile is specified
This commit is contained in:
@@ -58,7 +58,7 @@ public class KernelCpuSpeedReader {
|
||||
TextUtils.SimpleStringSplitter splitter = new TextUtils.SimpleStringSplitter(' ');
|
||||
String line;
|
||||
int speedIndex = 0;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
while (speedIndex < mLastSpeedTimes.length && (line = reader.readLine()) != null) {
|
||||
splitter.setString(line);
|
||||
Long.parseLong(splitter.next());
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ public class KernelUidCpuTimeReader {
|
||||
mLastPowerMaUs.put(uid, powerMaUs);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
Slog.e(TAG, "Failed to read uid_cputime", e);
|
||||
Slog.e(TAG, "Failed to read uid_cputime: " + e.getMessage());
|
||||
}
|
||||
mLastTimeReadUs = nowUs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user