powerstats: update Display energy consumer
Bug: 248391573 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I9e3275a3d3404eede3fa8be696f623260b50c574 Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
a31ae38529
commit
761ee0a9d1
1 changed files with 5 additions and 7 deletions
|
@ -43,13 +43,11 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
|
||||||
states));
|
states));
|
||||||
|
|
||||||
// Add display energy consumer
|
// Add display energy consumer
|
||||||
/*
|
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterConsumer(
|
||||||
* TODO(b/167216667): Add correct display power model here. Must read from display rail
|
p,
|
||||||
* and include proper coefficients for display states.
|
EnergyConsumerType::DISPLAY,
|
||||||
*/
|
"Display",
|
||||||
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(p,
|
{"VSYS_PWR_DISPLAY"}));
|
||||||
EnergyConsumerType::DISPLAY, "display", {"PPVAR_VSYS_PWR_DISP"}, "Display",
|
|
||||||
{{"On: 1600x2560@60", 1}}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue