浏览代码

powerstats: add NFC state residency stats

Bug: 227402176
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Iff54b2b1c4be531222c6b0dc601b2b6838ccd5af
Signed-off-by: Darren Hsu <[email protected]>
Darren Hsu 2 年之前
父节点
当前提交
546a342277
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      powerstats/service.cpp

+ 1 - 0
powerstats/service.cpp

@@ -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());