powerstats: update state residency and energy consumer for Display
Bug: 262488433 Bug: 262491621 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I77ff227d3c50b135c3085f19f088f57a3b274cce Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
15548e038e
commit
7225af3349
1 changed files with 11 additions and 12 deletions
|
@ -35,11 +35,12 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
|
||||||
// Add display residency stats
|
// Add display residency stats
|
||||||
std::vector<std::string> states = {
|
std::vector<std::string> states = {
|
||||||
"Off",
|
"Off",
|
||||||
"LP: 1080x2340@30",
|
"LP: 1344x2992@30",
|
||||||
"On: 1080x2340@60",
|
"On: 1344x2992@10",
|
||||||
"On: 1080x2340@90",
|
"On: 1344x2992@60",
|
||||||
"HBM: 1080x2340@60",
|
"On: 1344x2992@120",
|
||||||
"HBM: 1080x2340@90"};
|
"HBM: 1344x2992@60",
|
||||||
|
"HBM: 1344x2992@120"};
|
||||||
|
|
||||||
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>(
|
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>(
|
||||||
"Display",
|
"Display",
|
||||||
|
@ -47,13 +48,11 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
|
||||||
states));
|
states));
|
||||||
|
|
||||||
// Add display energy consumer
|
// Add display energy consumer
|
||||||
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(
|
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterConsumer(
|
||||||
p, EnergyConsumerType::DISPLAY, "display", {"PPVAR_VSYS_PWR_DISP"}, "Display",
|
p,
|
||||||
{{"LP: 1080x2340@30", 1},
|
EnergyConsumerType::DISPLAY,
|
||||||
{"On: 1080x2340@60", 2},
|
"DISPLAY",
|
||||||
{"On: 1080x2340@90", 3},
|
{"VSYS_PWR_DISPLAY"}));
|
||||||
{"HBM: 1080x2340@60", 4},
|
|
||||||
{"HBM: 1080x2340@90", 5}}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue