powerstats: add NFC state residency stats

Bug: 227402176
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Iff54b2b1c4be531222c6b0dc601b2b6838ccd5af
Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
Darren Hsu 2022-05-09 15:32:56 +08:00
parent bfbc6e2545
commit 546a342277

View file

@ -63,6 +63,7 @@ int main() {
addGs201CommonDataProviders(p);
addDisplay(p);
addNFC(p, "/sys/devices/platform/10970000.hsi2c/i2c-4/i2c-st21nfc/power_stats");
const std::string instance = std::string() + PowerStats::descriptor + "/default";
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());