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: I986a083f8a8ac5fcd01c3c39e2e6f0d97e011c52 Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
9815540170
commit
b731ba63af
3 changed files with 3 additions and 2 deletions
|
@ -62,6 +62,7 @@ int main() {
|
|||
|
||||
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
|
||||
|
||||
addPixelStateResidencyDataProvider(p, "");
|
||||
addZumaProCommonDataProviders(p);
|
||||
addDisplay(p);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue