Searched refs:POWER_SUPPLY_SYSFS_PATH (Results 1 – 1 of 1) sorted by relevance
/system/core/healthd/ |
D | BatteryMonitor.cpp | 46 #define POWER_SUPPLY_SYSFS_PATH "/sys/class/" POWER_SUPPLY_SUBSYSTEM macro 240 path.appendFormat("%s/%s/scope", POWER_SUPPLY_SYSFS_PATH, name); in isScopedPowerSupply() 306 path.appendFormat("%s/%s/online", POWER_SUPPLY_SYSFS_PATH, in updateValues() 310 path.appendFormat("%s/%s/type", POWER_SUPPLY_SYSFS_PATH, in updateValues() 327 path.appendFormat("%s/%s/current_max", POWER_SUPPLY_SYSFS_PATH, in updateValues() 333 path.appendFormat("%s/%s/voltage_max", POWER_SUPPLY_SYSFS_PATH, in updateValues() 527 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(POWER_SUPPLY_SYSFS_PATH), closedir); in init() 529 KLOG_ERROR(LOG_TAG, "Could not open %s\n", POWER_SUPPLY_SYSFS_PATH); in init() 547 path.appendFormat("%s/%s/type", POWER_SUPPLY_SYSFS_PATH, name); in init() 553 path.appendFormat("%s/%s/online", POWER_SUPPLY_SYSFS_PATH, name); in init() [all …]
|