Home
last modified time | relevance | path

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

/system/core/healthd/
DBatteryMonitor.cpp135 int BatteryMonitor::readFromFile(const String8& path, std::string* buf) { in readFromFile() function in android::BatteryMonitor
162 if (readFromFile(path, &buf) <= 0) in readPowerSupplyType()
178 if (readFromFile(path, &buf) > 0) in getBooleanField()
189 if (readFromFile(path, &buf) > 0) in getIntField()
237 if (readFromFile(mHealthdConfig->batteryStatusPath, &buf) > 0) in update()
240 if (readFromFile(mHealthdConfig->batteryHealthPath, &buf) > 0) in update()
243 if (readFromFile(mHealthdConfig->batteryTechnologyPath, &buf) > 0) in update()
346 if (readFromFile(mHealthdConfig->batteryStatusPath, &buf) > 0) in getChargeStatus()
/system/core/healthd/include/healthd/
DBatteryMonitor.h58 int readFromFile(const String8& path, std::string* buf);