powerstats: support for display VRR power stats
Bug: 329201432 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: Idaeb973dfa9c72d8e6adde1a83b183c3b90b2180 Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
e5089df66f
commit
0cf027cad7
2 changed files with 8 additions and 0 deletions
|
@ -656,6 +656,13 @@ void addDisplayMrr(std::shared_ptr<PowerStats> p) {
|
|||
addDisplayMrrByEntity(p, "Display", "/sys/class/drm/card0/device/primary-panel/");
|
||||
}
|
||||
|
||||
void addDisplayVrr(std::shared_ptr<PowerStats> p, std::string name) {
|
||||
auto provider = std::make_unique<PixelStateResidencyDataProvider>();
|
||||
provider->addEntity(name, {});
|
||||
provider->start();
|
||||
p->addStateResidencyDataProvider(std::move(provider));
|
||||
}
|
||||
|
||||
void addZumaProCommonDataProviders(std::shared_ptr<PowerStats> p) {
|
||||
setEnergyMeter(p);
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ void addCPUclusters(std::shared_ptr<PowerStats> p);
|
|||
void addDevfreq(std::shared_ptr<PowerStats> p);
|
||||
void addDisplayMrr(std::shared_ptr<PowerStats> p);
|
||||
void addDisplayMrrByEntity(std::shared_ptr<PowerStats> p, std::string name, std::string path);
|
||||
void addDisplayVrr(std::shared_ptr<PowerStats> p, std::string name);
|
||||
void addDvfsStats(std::shared_ptr<PowerStats> p);
|
||||
void addGNSS(std::shared_ptr<PowerStats> p);
|
||||
void addGPU(std::shared_ptr<PowerStats> p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue