powerstats: add NFC state residency stats am: 546a342277

Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/18220010

Change-Id: I2b44f80b9ea39476113d785c7b275680901be69a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Darren Hsu 2022-05-09 14:19:38 +00:00 committed by Automerger Merge Worker
commit 481ced38a3

View file

@ -63,6 +63,7 @@ int main() {
addGs201CommonDataProviders(p); addGs201CommonDataProviders(p);
addDisplay(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"; const std::string instance = std::string() + PowerStats::descriptor + "/default";
binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str()); binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());