add default cpu.active power consumption
In CpuPowerCalculator it will calculate the power consumption based on
the PowerProfile. But when the device run on the GSI image, the
PowerProfile will not match the specific device's overlay. The default
power_profile.xml which don't have cpu.active will make some
multiple-cluster device have zero CPU power consumption calculation
result. So added the default value for the cpu.active values which
overlay by many devices.
This patch help below cts-on-gsi get pass:
run cts-on-gsi -m CtsStatsdHostTestCases -t
android.cts.statsd.atom.UidAtomTests#testDeviceCalculatedPowerBlameUid
run cts-on-gsi -m CtsStatsdHostTestCases -t
android.cts.statsd.validation.BatteryStatsValidationTests#testPowerBlameUid
TEST:
run cts -m CtsStatsdHostTestCases -t
android.cts.statsd.atom.UidAtomTests#testDeviceCalculatedPowerBlameUid
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Loading
Please register or sign in to comment