powerstats: update Display state residency and energy consumer am: 436e914487
Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita/+/23708743 Change-Id: I65921709da773bcee2021c3e13b3b86d373141cf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
e28324343e
1 changed files with 11 additions and 11 deletions
|
@ -35,11 +35,11 @@ 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: 1080x2400@30",
|
||||||
"On: 1080x2340@60",
|
"On: 1080x2400@60",
|
||||||
"On: 1080x2340@90",
|
"On: 1080x2400@90",
|
||||||
"HBM: 1080x2340@60",
|
"HBM: 1080x2400@60",
|
||||||
"HBM: 1080x2340@90"};
|
"HBM: 1080x2400@90"};
|
||||||
|
|
||||||
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>(
|
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>(
|
||||||
"Display",
|
"Display",
|
||||||
|
@ -48,12 +48,12 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
|
||||||
|
|
||||||
// Add display energy consumer
|
// Add display energy consumer
|
||||||
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(
|
p->addEnergyConsumer(PowerStatsEnergyConsumer::createMeterAndEntityConsumer(
|
||||||
p, EnergyConsumerType::DISPLAY, "display", {"PPVAR_VSYS_PWR_DISP"}, "Display",
|
p, EnergyConsumerType::DISPLAY, "Display", {"VSYS_PWR_DISPLAY"}, "Display",
|
||||||
{{"LP: 1080x2340@30", 1},
|
{{"LP: 1080x2400@30", 1},
|
||||||
{"On: 1080x2340@60", 2},
|
{"On: 1080x2400@60", 2},
|
||||||
{"On: 1080x2340@90", 3},
|
{"On: 1080x2400@90", 3},
|
||||||
{"HBM: 1080x2340@60", 4},
|
{"HBM: 1080x2400@60", 4},
|
||||||
{"HBM: 1080x2340@90", 5}}));
|
{"HBM: 1080x2400@90", 5}}));
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue