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 <darrenhsu@google.com>
This commit is contained in:
Darren Hsu 2021-11-29 16:06:56 +08:00
parent d2b7273312
commit 0c7179f60a
2 changed files with 2 additions and 2 deletions

View file

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