Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
546a342277
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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());