Searched refs:readFromFile (Results 1 – 2 of 2) sorted by relevance
/system/core/healthd/ |
D | BatteryMonitor.cpp | 127 int BatteryMonitor::readFromFile(const String8& path, char* buf, size_t size) { in readFromFile() function in android::BatteryMonitor 154 int length = readFromFile(path, buf, SIZE); in readPowerSupplyType() 190 if (readFromFile(path, buf, SIZE) > 0) { in getBooleanField() 204 if (readFromFile(path, buf, SIZE) > 0) { in getIntField() 254 if (readFromFile(mHealthdConfig->batteryStatusPath, buf, SIZE) > 0) in update() 257 if (readFromFile(mHealthdConfig->batteryHealthPath, buf, SIZE) > 0) in update() 260 if (readFromFile(mHealthdConfig->batteryTechnologyPath, buf, SIZE) > 0) in update() 271 if (readFromFile(path, buf, SIZE) > 0) { in update() 367 if (readFromFile(mHealthdConfig->batteryStatusPath, buf, sizeof(buf)) > 0) { in getChargeStatus()
|
/system/core/healthd/include/healthd/ |
D | BatteryMonitor.h | 58 int readFromFile(const String8& path, char* buf, size_t size);
|