Lines Matching refs:BatteryMonitor
80 BatteryMonitor::BatteryMonitor() : mHealthdConfig(nullptr), mBatteryDevicePresent(false), in BatteryMonitor() function in android::BatteryMonitor
85 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()
363 int BatteryMonitor::getChargeStatus() { in getChargeStatus()
374 status_t BatteryMonitor::getProperty(int id, struct BatteryProperty *val) { in getProperty()
435 void BatteryMonitor::dumpState(int fd) { in dumpState()
486 void BatteryMonitor::init(struct healthd_config *hc) { in init()