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));
|
||||
|
||||
// Add display energy consumer
|
||||
/*
|
||||
* TODO(b/167216667): Add correct display power model here. Must read from display rail
|
||||
* and include proper coefficients for display states.
|
||||
*/
|
||||
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(p,
|
||||
EnergyConsumerType::DISPLAY, "display", {"PPVAR_VSYS_PWR_DISP"}, "Display",
|
||||
{{"On: 1600x2560@60", 1}}));
|
||||
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterConsumer(
|
||||
p,
|
||||
EnergyConsumerType::DISPLAY,
|
||||
"Display",
|
||||
{"VSYS_PWR_DISPLAY"}));
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue