Searched refs:readFromFile (Results 1 – 2 of 2) sorted by relevance
135 int BatteryMonitor::readFromFile(const String8& path, std::string* buf) { in readFromFile() function in android::BatteryMonitor162 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()
58 int readFromFile(const String8& path, std::string* buf);