powerstats: add NFC state residency stats for specific device
Bug: 213957442 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: Ic199fb87bc4679559f96fdf93197f39846fba023 Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
parent
8214580c68
commit
41b1b2debb
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,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());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue