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);
|
addSoC(p);
|
||||||
addGNSS(p);
|
addGNSS(p);
|
||||||
addMobileRadio(p);
|
addMobileRadio(p);
|
||||||
|
addNFC(p);
|
||||||
addPCIe(p);
|
addPCIe(p);
|
||||||
addWifi(p);
|
addWifi(p);
|
||||||
addTPU(p);
|
addTPU(p);
|
||||||
|
@ -708,7 +709,7 @@ void addZumaCommonDataProviders(std::shared_ptr<PowerStats> p) {
|
||||||
addGPU(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 = {
|
const GenericStateResidencyDataProvider::StateResidencyConfig nfcStateConfig = {
|
||||||
.entryCountSupported = true,
|
.entryCountSupported = true,
|
||||||
.entryCountPrefix = "Cumulative count:",
|
.entryCountPrefix = "Cumulative count:",
|
||||||
|
@ -728,5 +729,5 @@ void addNFC(std::shared_ptr<PowerStats> p, const std::string& path) {
|
||||||
"NFC", "NFC subsystem");
|
"NFC", "NFC subsystem");
|
||||||
|
|
||||||
p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>(
|
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 addGNSS(std::shared_ptr<PowerStats> p);
|
||||||
void addGPU(std::shared_ptr<PowerStats> p);
|
void addGPU(std::shared_ptr<PowerStats> p);
|
||||||
void addMobileRadio(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 addPCIe(std::shared_ptr<PowerStats> p);
|
||||||
void addPixelStateResidencyDataProvider(std::shared_ptr<PowerStats> p);
|
void addPixelStateResidencyDataProvider(std::shared_ptr<PowerStats> p);
|
||||||
void addPowerDomains(std::shared_ptr<PowerStats> p);
|
void addPowerDomains(std::shared_ptr<PowerStats> p);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue