From 905a74d1d5645a64bfaa1c85df803fedb034a1a8 Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Thu, 4 Aug 2022 16:03:08 +0800 Subject: [PATCH] powerstats: update display resolution Bug: 240550846 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I5805db02cf7c6b35f6e9347d595cadc1b09e76cf Signed-off-by: Darren Hsu --- powerstats/service.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/powerstats/service.cpp b/powerstats/service.cpp index 32515ee..67415a4 100644 --- a/powerstats/service.cpp +++ b/powerstats/service.cpp @@ -35,11 +35,8 @@ void addDisplay(std::shared_ptr p) { // Add display residency stats std::vector states = { "Off", - "LP: 1080x2340@30", - "On: 1080x2340@60", - "On: 1080x2340@90", - "HBM: 1080x2340@60", - "HBM: 1080x2340@90"}; + "On: 1600x2560@60", + "HBM: 1600x2560@60"}; p->addStateResidencyDataProvider(std::make_unique("Display", "/sys/class/backlight/panel0-backlight/state", @@ -52,9 +49,7 @@ void addDisplay(std::shared_ptr p) { */ p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(p, EnergyConsumerType::DISPLAY, "display", {"PPVAR_VSYS_PWR_DISP"}, "Display", - {{"LP: 1080x2340@30", 1}, - {"On: 1080x2340@60", 2}, - {"On: 1080x2340@90", 3}})); + {{"On: 1600x2560@60", 1}})); } int main() {