From 0c7179f60a9bf8f333262751ba61ccfd4d53667c Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Mon, 29 Nov 2021 16:06:56 +0800 Subject: [PATCH] powerstats: add NFC state residency for specific devices Bug: 206902456 Bug: 206901670 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I93b9123d9c52a5504b41cc83ee83764fdeeccdab Signed-off-by: Darren Hsu --- powerstats/cheetah/service.cpp | 2 +- powerstats/panther/service.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/powerstats/cheetah/service.cpp b/powerstats/cheetah/service.cpp index e1fe382..bd2c281 100644 --- a/powerstats/cheetah/service.cpp +++ b/powerstats/cheetah/service.cpp @@ -75,7 +75,7 @@ int main() { addGs201CommonDataProviders(p); addDisplay(p); // TODO(b/206566167): Add UWB state residency - // TODO(b/206901670): Add NFC state residency + 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()); diff --git a/powerstats/panther/service.cpp b/powerstats/panther/service.cpp index 9be4b79..094db17 100644 --- a/powerstats/panther/service.cpp +++ b/powerstats/panther/service.cpp @@ -66,7 +66,7 @@ int main() { addGs201CommonDataProviders(p); addDisplay(p); - // TODO(b/206902456): Add NFC state residency + 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());