Searched refs:POWER_SUPPLY_SYSFS_PATH (Results 1 – 1 of 1) sorted by relevance
/system/core/healthd/ |
D | BatteryMonitor.cpp | 44 #define POWER_SUPPLY_SYSFS_PATH "/sys/class/" POWER_SUPPLY_SUBSYSTEM macro 249 path.appendFormat("%s/%s/online", POWER_SUPPLY_SYSFS_PATH, in update() 253 path.appendFormat("%s/%s/type", POWER_SUPPLY_SYSFS_PATH, in update() 270 path.appendFormat("%s/%s/current_max", POWER_SUPPLY_SYSFS_PATH, in update() 276 path.appendFormat("%s/%s/voltage_max", POWER_SUPPLY_SYSFS_PATH, in update() 473 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(POWER_SUPPLY_SYSFS_PATH), closedir); in init() 475 KLOG_ERROR(LOG_TAG, "Could not open %s\n", POWER_SUPPLY_SYSFS_PATH); in init() 493 path.appendFormat("%s/%s/type", POWER_SUPPLY_SYSFS_PATH, name); in init() 499 path.appendFormat("%s/%s/online", POWER_SUPPLY_SYSFS_PATH, name); in init() 509 path.appendFormat("%s/%s/status", POWER_SUPPLY_SYSFS_PATH, in init() [all …]
|