powerstats: bring PixelStateResidencyDataProvider to device config
Second parameter is required to add PixelStateResidencyDataProvider. If display entity name is empty, the device doesn't support display VRR power stats. Bug: 335379104 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: Id70ce01ef50a56d690c0942ae7e2ac2560abc435 Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
ba7ecf114f
commit
b82515fe5d
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ int main() {
|
||||||
|
|
||||||
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
||||||
|
|
||||||
|
addPixelStateResidencyDataProvider(p, "");
|
||||||
addZumaProCommonDataProviders(p);
|
addZumaProCommonDataProviders(p);
|
||||||
addDisplay(p);
|
addDisplay(p);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue