powerstats: update display resolution
Bug: 240550846 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I5805db02cf7c6b35f6e9347d595cadc1b09e76cf Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
7f0987a3a0
commit
905a74d1d5
1 changed files with 3 additions and 8 deletions
|
@ -35,11 +35,8 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
|
|||
// Add display residency stats
|
||||
std::vector<std::string> 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<DisplayStateResidencyDataProvider>("Display",
|
||||
"/sys/class/backlight/panel0-backlight/state",
|
||||
|
@ -52,9 +49,7 @@ void addDisplay(std::shared_ptr<PowerStats> 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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue