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: I1598bde804857e3f362ff2af1184d81618b75cb6 Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
13813d56d2
commit
c3dd8a11be
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ int main() {
|
||||||
|
|
||||||
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
||||||
|
|
||||||
addDisplayVrr(p, "Inner-Display");
|
addPixelStateResidencyDataProvider(p, "Inner-Display");
|
||||||
addZumaProCommonDataProviders(p);
|
addZumaProCommonDataProviders(p);
|
||||||
addOuterDisplay(p);
|
addOuterDisplay(p);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue