summaryrefslogtreecommitdiff
path: root/powerstats/service.cpp
AgeCommit message (Collapse)Author
2019-04-12power.stats: Only access debugfs for userdebug buildsBenjamin Schwartz
Bug: 130202935 Test: adb shell lshal debug android.hardware.power.stats@1.0::IPowerStats/default Change-Id: I6f6c0ecaed749d2b3bf48f15d24b2dbdd1526369
2019-03-08Rename Citadel's "Reset" power state to "Last-Reset"Bill Richardson
The "Reset" name is a bit confusing since it's not actually a state, merely a transition. But we use this state to display the number of resets and the current uptime. Bug: 70510004 Test: Manual Change-Id: Ia8bc5368ed7b537df537b2870c231d2d173e0c9d Signed-off-by: Bill Richardson <wfrichar@google.com>
2019-02-28power.stats: Pull low power stats from citadeldBill Richardson
Bug: 70510004 Test: lshal debug android.hardware.power.stats@1.0::IPowerStats/default Observe that Citadel stats show up. Change-Id: Icc75eb3b22ed0a049df283b3fea8d22e324415b9 Signed-off-by: Bill Richardson <wfrichar@google.com>
2019-02-27power.stats: Add AidlStateResidencyDataProviderBenjamin Schwartz
Some drivers that we want to collect power stats from are pass-through and would require significant changes in order to provide a sysfs node that the current power stats framework can pull stats from. These pass-through drivers typically have a userspace daemon that is capable of keeping track of the power stats and providing them to the power.stats HAL service, but currently have no way to do that. The AidlStateResidencyDataProvider will provide a vendor binder service that will allow the userspace daemon to push updates or the power statistics to power.stats HAL. Bug: 117585786 Test: Created a PTS test to update some mock power entities that were created using the AidlStateResidencyDataProvider. Further testing is planned when real power entities start using this. Change-Id: Id88d489415d88375a0ee7e595bcdf32bf0c07246
2019-01-09power.stats: Update path to wlan sysfs nodeBenjamin Schwartz
The path to the wlan power stats sysfs node was changed, so the power.stats service needs to be updated with the new path. Bug: 120301114 Test: adb root && adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default" Change-Id: I678bf64acfdde4bcf6dc9cf25f1fe492794afdde
2018-12-10power.stats Port power stats HAL implementation to B4S4Benjamin Schwartz
Bug: 120301114 Test: run vts -m VtsHalPowerStatsV1_0Target Test: adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default" Change-Id: Ief2f0ef4dbceac103edd07f53f6414ce9772e694