Home
last modified time | relevance | path

Searched refs:POWER_SUPPLY_SYSFS_PATH (Results 1 – 1 of 1) sorted by relevance

/system/core/healthd/
DBatteryMonitor.cpp42 #define POWER_SUPPLY_SYSFS_PATH "/sys/class/" POWER_SUPPLY_SUBSYSTEM macro
251 path.appendFormat("%s/%s/online", POWER_SUPPLY_SYSFS_PATH, in update()
255 path.appendFormat("%s/%s/type", POWER_SUPPLY_SYSFS_PATH, in update()
272 path.appendFormat("%s/%s/current_max", POWER_SUPPLY_SYSFS_PATH, in update()
278 path.appendFormat("%s/%s/voltage_max", POWER_SUPPLY_SYSFS_PATH, in update()
479 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(POWER_SUPPLY_SYSFS_PATH), closedir); in init()
481 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 …]