powerstats: add NFC state residency stats
Bug: 262487981 Bug: 262489554 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: Ib5c80601853c1d6080f1bc36b54b62715ea97081 Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
d766110827
commit
8ba4347676
2 changed files with 4 additions and 3 deletions
|
@ -698,6 +698,7 @@ void addZumaCommonDataProviders(std::shared_ptr<PowerStats> p) {
|
|||
addSoC(p);
|
||||
addGNSS(p);
|
||||
addMobileRadio(p);
|
||||
addNFC(p);
|
||||
addPCIe(p);
|
||||
addWifi(p);
|
||||
addTPU(p);
|
||||
|
@ -708,7 +709,7 @@ void addZumaCommonDataProviders(std::shared_ptr<PowerStats> p) {
|
|||
addGPU(p);
|
||||
}
|
||||
|
||||
void addNFC(std::shared_ptr<PowerStats> p, const std::string& path) {
|
||||
void addNFC(std::shared_ptr<PowerStats> p) {
|
||||
const GenericStateResidencyDataProvider::StateResidencyConfig nfcStateConfig = {
|
||||
.entryCountSupported = true,
|
||||
.entryCountPrefix = "Cumulative count:",
|
||||
|
@ -728,5 +729,5 @@ void addNFC(std::shared_ptr<PowerStats> p, const std::string& path) {
|
|||
"NFC", "NFC subsystem");
|
||||
|
||||
p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>(
|
||||
path, cfgs));
|
||||
"/sys/devices/platform/10c80000.hsi2c/i2c-6/6-0008/power_stats", cfgs));
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ void addDvfsStats(std::shared_ptr<PowerStats> p);
|
|||
void addGNSS(std::shared_ptr<PowerStats> p);
|
||||
void addGPU(std::shared_ptr<PowerStats> p);
|
||||
void addMobileRadio(std::shared_ptr<PowerStats> p);
|
||||
void addNFC(std::shared_ptr<PowerStats> p, const std::string& path);
|
||||
void addNFC(std::shared_ptr<PowerStats> p);
|
||||
void addPCIe(std::shared_ptr<PowerStats> p);
|
||||
void addPixelStateResidencyDataProvider(std::shared_ptr<PowerStats> p);
|
||||
void addPowerDomains(std::shared_ptr<PowerStats> p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue