summaryrefslogtreecommitdiff
path: root/powerstats/dataproviders/PixelStateResidencyDataProvider.cpp
AgeCommit message (Collapse)Author
2024-02-21powerstats: support registering callback by statesDarren Hsu
Bug: 315497129 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I38e28343e0e4b2df73ec7678c8421e5c7dcae76c Signed-off-by: Darren Hsu <darrenhsu@google.com>
2021-04-05powerstats: Add init_rc and vintf_fragments to pixel implBenjamin Schwartz
Also removed log tags as they will be set by the service or parent library Bug: 183052760 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I90d782d1fc9832fefe83d5a0cddbb4c1f987bdc1
2021-04-05Revert "powerstats: Add init_rc and vintf_fragments to pixel impl"Benjamin Schwartz
This reverts commit 004df5c1f00b1a36293ed715623e0775b3ca7c65. Reason for revert: Broke master Change-Id: I7cc269ea8071ae47d1150bbbafea9fbcff7bb889
2021-04-05powerstats: Add init_rc and vintf_fragments to pixel implBenjamin Schwartz
Also removed log tags as they will be set by the service or parent library Bug: 183052760 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I64f945e5c51a9f3c51c149e22a133d1d95ff1d79
2021-03-17powerstats: Use unique_ptr to store data providersBenjamin Schwartz
Pixel implementation of Power Stats HAL employs the use of data providers. The software model is such that the HAL has sole ownership of the various data providers. However the implementation was using shared_ptrs for the various data providers, which suggests multiple ownership. Moving to using unique_ptr enforces the ownership semantics that were intended in the design of the HAL implementation and will also hopefully prevent any bugs associated with multiple ownership gone awry. Bug: 183051413 Test: dumpsys android.hardware.power.stats.IPowerStats/default Test: atest VtsHalPowerStatsTargetTest Change-Id: I95bc9123b5002f1b9a035d7ec2725eae5b80eacf
2021-03-09Revert^2 "powerstats: Create vendor state residency provider"Benjamin Schwartz
8b5e4744b55c14e4d57cdbe31383f51a91c25ec2 Change-Id: I1b199ea53ca52cd5b82823f87f1d899ff3c40719
2021-03-09Revert "powerstats: Create vendor state residency provider"Benjamin Schwartz
Revert submission 13807923-pixel provider Reason for revert: caused build breakage Reverted Changes: I6b0c1d350:bthal/1.1: Use PixelStateResidencyProvider Ia028e589b:powerstats: Create vendor state residency provider... Id99e6d2a9:powerstats: Add PixelStateResidencyDataProvider Change-Id: I42fd10828e1447bc3c85ecee86b34562e9fe8534
2021-03-08powerstats: Create vendor state residency providerBenjamin Schwartz
Needed to change ::android::sp to shared_ptr in order to use the aidl interface ndk_platform backend. Bug: 167218032 Bug: 168834034 Test: adb shell dumpsys android.hardware.power.stats.IPowerStats/default Test: killed power.stats and bluetooth services and verified that providers are re-registered. Change-Id: Ia028e589b29b0163cd53e3f8b4f8bb764b1a11f2