diff options
author | Sudheer Shanka <sudheersai@google.com> | 2017-08-08 12:16:09 -0700 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2017-08-11 00:04:50 -0700 |
commit | b8ad594300b26c89a1b4b0ec4957b49600e58c08 (patch) | |
tree | 0f0895615b0019241aa6d901d869064fcbef8b44 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | c222109a6189673b46dc079208386efd8e9952a6 (diff) |
Use cpu freq times to calculate power consumed by an uid.
Initially we used to approximate times spent by an uid at a particular
freq using total time spent by the uid but since now the freq times
are directly available from the proc file, we can use these to
calculate power.
Bug: 62240247
Test: bit FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Test: cts-tradefed run singleCommand cts-dev -m CtsIncidentHostTestCases -t \
com.android.server.cts.BatteryStatsValidationTest
Test: Used some apps and verified that battery usage is attributed to
those apps in Battery settings.
Change-Id: Ia8e2eb07fd778b8a8c83a6acec711e7b97aefdc0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions