powerstats: update display resolution am: 905a74d1d5
am: 1e361aa077
Original change: https://googleplex-android-review.googlesource.com/c/device/google/tangorpro/+/19518942 Change-Id: I7d6885ac5c28a635a16d9105b64b3d9d3c14e12e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
6c46dc4099
1 changed files with 3 additions and 8 deletions
|
@ -35,11 +35,8 @@ 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",
|
"On: 1600x2560@60",
|
||||||
"On: 1080x2340@60",
|
"HBM: 1600x2560@60"};
|
||||||
"On: 1080x2340@90",
|
|
||||||
"HBM: 1080x2340@60",
|
|
||||||
"HBM: 1080x2340@90"};
|
|
||||||
|
|
||||||
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>("Display",
|
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>("Display",
|
||||||
"/sys/class/backlight/panel0-backlight/state",
|
"/sys/class/backlight/panel0-backlight/state",
|
||||||
|
@ -52,9 +49,7 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
|
||||||
*/
|
*/
|
||||||
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(p,
|
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(p,
|
||||||
EnergyConsumerType::DISPLAY, "display", {"PPVAR_VSYS_PWR_DISP"}, "Display",
|
EnergyConsumerType::DISPLAY, "display", {"PPVAR_VSYS_PWR_DISP"}, "Display",
|
||||||
{{"LP: 1080x2340@30", 1},
|
{{"On: 1600x2560@60", 1}}));
|
||||||
{"On: 1080x2340@60", 2},
|
|
||||||
{"On: 1080x2340@90", 3}}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue