Searched refs:BatteryMonitor (Results 1 – 4 of 4) sorted by relevance
80 BatteryMonitor::BatteryMonitor() : mHealthdConfig(nullptr), mBatteryDevicePresent(false), in BatteryMonitor() function in android::BatteryMonitor85 int BatteryMonitor::getBatteryStatus(const char* status) { in getBatteryStatus()105 int BatteryMonitor::getBatteryHealth(const char* status) { in getBatteryHealth()127 int BatteryMonitor::readFromFile(const String8& path, char* buf, size_t size) { in readFromFile()151 BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String8& path) { in readPowerSupplyType()155 BatteryMonitor::PowerSupplyType ret; in readPowerSupplyType()176 ret = (BatteryMonitor::PowerSupplyType)mapSysfsString(buf, supplyTypeMap); in readPowerSupplyType()185 bool BatteryMonitor::getBooleanField(const String8& path) { in getBooleanField()199 int BatteryMonitor::getIntField(const String8& path) { in getIntField()210 bool BatteryMonitor::update(void) { in update()[all …]
77 static BatteryMonitor* gBatteryMonitor;324 gBatteryMonitor = new BatteryMonitor(); in healthd_init()
14 LOCAL_SRC_FILES := BatteryMonitor.cpp
29 class BatteryMonitor {40 BatteryMonitor();